aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2006-06-06 03:53:38 +0000
committerKenichi Handa2006-06-06 03:53:38 +0000
commit45a4b03e85240e7d43dd26985ba64c49f8ba2289 (patch)
tree1938ce957b241d014efc44f62c112bedfef4e750
parent0666b4f1c98f1ea0d5cf0ba732a461516b2e50a6 (diff)
downloademacs-45a4b03e85240e7d43dd26985ba64c49f8ba2289.tar.gz
emacs-45a4b03e85240e7d43dd26985ba64c49f8ba2289.zip
Re-generated.
-rwxr-xr-xconfigure655
-rw-r--r--src/config.in12
2 files changed, 665 insertions, 2 deletions
diff --git a/configure b/configure
index bf8f816b8cb..6969f29fed4 100755
--- a/configure
+++ b/configure
@@ -2,7 +2,7 @@
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59. 3# Generated by GNU Autoconf 2.59.
4# 4#
5# Copyright (C) 2003, 2006 Free Software Foundation, Inc. 5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation 6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it. 7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ## 8## --------------------- ##
@@ -310,7 +310,7 @@ ac_includes_default="\
310# include <unistd.h> 310# include <unistd.h>
311#endif" 311#endif"
312 312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS' 313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS XFT_CFLAGS XFT_LIBS FREETYPE_CFLAGS FREETYPE_LIBS FONTCONFIG_CFLAGS FONTCONFIG_LIBS HAVE_LIBOTF LIBOTF_CFLAGS LIBOTF_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314ac_subst_files='' 314ac_subst_files=''
315 315
316# Initialize some variables set by options. 316# Initialize some variables set by options.
@@ -856,6 +856,7 @@ Optional Features:
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application] 857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X 858 specify install directory for Emacs.app on Mac OS X
859 --enable-font-backend compile code of font-backend support
859 --enable-asserts compile code with asserts enabled 860 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful 861 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer 862 (and sometimes confusing) to the casual installer
@@ -880,6 +881,8 @@ Optional Packages:
880 --with-tiff use -ltiff for displaying TIFF images 881 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images 882 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images 883 --with-png use -lpng for displaying PNG images
884 --with-freetype use -lfreetype for local fonts support
885 --with-xft use -lXft for anti aliased fonts
883 --with-gtk use GTK (same as --with-x-toolkit=gtk) 886 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK 887 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars 888 --without-toolkit-scroll-bars
@@ -1489,6 +1492,18 @@ if test "${with_png+set}" = set; then
1489 1492
1490fi; 1493fi;
1491 1494
1495# Check whether --with-freetype or --without-freetype was given.
1496if test "${with_freetype+set}" = set; then
1497 withval="$with_freetype"
1498
1499fi;
1500
1501# Check whether --with-xft or --without-xft was given.
1502if test "${with_xft+set}" = set; then
1503 withval="$with_xft"
1504
1505fi;
1506
1492# Check whether --with-gtk or --without-gtk was given. 1507# Check whether --with-gtk or --without-gtk was given.
1493if test "${with_gtk+set}" = set; then 1508if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk" 1509 withval="$with_gtk"
@@ -1524,6 +1539,14 @@ if test "${enable_carbon_app+set}" = set; then
1524 carbon_appdir_x=${enableval} 1539 carbon_appdir_x=${enableval}
1525fi; 1540fi;
1526 1541
1542# Check whether --enable-font-backend or --disable-font-backend was given.
1543if test "${enable_font_backend+set}" = set; then
1544 enableval="$enable_font_backend"
1545 USE_FONT_BACKEND=$enableval
1546else
1547 USE_FONT_BACKEND=no
1548fi;
1549
1527# Check whether --enable-asserts or --disable-asserts was given. 1550# Check whether --enable-asserts or --disable-asserts was given.
1528if test "${enable_asserts+set}" = set; then 1551if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts" 1552 enableval="$enable_asserts"
@@ -11714,6 +11737,625 @@ _ACEOF
11714 CFLAGS=$late_CFLAGS 11737 CFLAGS=$late_CFLAGS
11715fi 11738fi
11716 11739
11740### For font-backend
11741if test "${USE_FONT_BACKEND}" = "yes"; then
11742
11743
11744cat >>confdefs.h <<\_ACEOF
11745#define USE_FONT_BACKEND 1
11746_ACEOF
11747
11748
11749### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
11750HAVE_XFT=maybe
11751if test "${HAVE_X11}" = "yes"; then
11752 if test "x${with_freetype}" = "xno"; then
11753 with_xft="no";
11754 fi
11755 if test "x${with_xft}" != "xno"; then
11756
11757 if test "X${with_pkg_config_prog}" != X; then
11758 PKG_CONFIG="${with_pkg_config_prog}"
11759 fi
11760
11761
11762 succeeded=no
11763
11764 if test -z "$PKG_CONFIG"; then
11765 # Extract the first word of "pkg-config", so it can be a program name with args.
11766set dummy pkg-config; ac_word=$2
11767echo "$as_me:$LINENO: checking for $ac_word" >&5
11768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11769if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771else
11772 case $PKG_CONFIG in
11773 [\\/]* | ?:[\\/]*)
11774 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11775 ;;
11776 *)
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778for as_dir in $PATH
11779do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11787 fi
11788done
11789done
11790
11791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11792 ;;
11793esac
11794fi
11795PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11796
11797if test -n "$PKG_CONFIG"; then
11798 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11799echo "${ECHO_T}$PKG_CONFIG" >&6
11800else
11801 echo "$as_me:$LINENO: result: no" >&5
11802echo "${ECHO_T}no" >&6
11803fi
11804
11805 fi
11806
11807 if test "$PKG_CONFIG" = "no" ; then
11808 echo "*** The pkg-config script could not be found. Make sure it is"
11809 echo "*** in your path, or give the full path to pkg-config with"
11810 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
11811 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11812 else
11813 PKG_CONFIG_MIN_VERSION=0.9.0
11814 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11815 echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11816echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6
11817
11818 if $PKG_CONFIG --exists "xft >= 0.13.0" ; then
11819 echo "$as_me:$LINENO: result: yes" >&5
11820echo "${ECHO_T}yes" >&6
11821 succeeded=yes
11822
11823 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11824echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6
11825 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11826 echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11827echo "${ECHO_T}$XFT_CFLAGS" >&6
11828
11829 echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11830echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6
11831 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11832 echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11833echo "${ECHO_T}$XFT_LIBS" >&6
11834 else
11835 XFT_CFLAGS=""
11836 XFT_LIBS=""
11837 ## If we have a custom action on failure, don't print errors, but
11838 ## do set a variable so people can do so.
11839 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11840
11841 fi
11842
11843
11844
11845 else
11846 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11847 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11848 fi
11849 fi
11850
11851 if test $succeeded = yes; then
11852 :
11853 else
11854 HAVE_XFT=no
11855 fi
11856
11857 if test "$HAVE_XFT" != no; then
11858 OLD_CPPFLAGS="$CPPFLAGS"
11859 OLD_CFLAGS="$CFLAGS"
11860 OLD_LIBS="$LIBS"
11861 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11862 CFLAGS="$CFLAGS $XFT_CFLAGS"
11863 LIBS="$XFT_LIBS $LIBS"
11864 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11865 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11866echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11867if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869fi
11870echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11871echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
11872else
11873 # Is the header compilable?
11874echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11875echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6
11876cat >conftest.$ac_ext <<_ACEOF
11877/* confdefs.h. */
11878_ACEOF
11879cat confdefs.h >>conftest.$ac_ext
11880cat >>conftest.$ac_ext <<_ACEOF
11881/* end confdefs.h. */
11882$ac_includes_default
11883#include <X11/Xft/Xft.h>
11884_ACEOF
11885rm -f conftest.$ac_objext
11886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -z "$ac_c_werror_flag"
11895 || test ! -s conftest.err'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try='test -s conftest.$ac_objext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 ac_header_compiler=yes
11908else
11909 echo "$as_me: failed program was:" >&5
11910sed 's/^/| /' conftest.$ac_ext >&5
11911
11912ac_header_compiler=no
11913fi
11914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11915echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11916echo "${ECHO_T}$ac_header_compiler" >&6
11917
11918# Is the header present?
11919echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11920echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6
11921cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
11927#include <X11/Xft/Xft.h>
11928_ACEOF
11929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } >/dev/null; then
11937 if test -s conftest.err; then
11938 ac_cpp_err=$ac_c_preproc_warn_flag
11939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11940 else
11941 ac_cpp_err=
11942 fi
11943else
11944 ac_cpp_err=yes
11945fi
11946if test -z "$ac_cpp_err"; then
11947 ac_header_preproc=yes
11948else
11949 echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952 ac_header_preproc=no
11953fi
11954rm -f conftest.err conftest.$ac_ext
11955echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11956echo "${ECHO_T}$ac_header_preproc" >&6
11957
11958# So? What about this header?
11959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11960 yes:no: )
11961 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11962echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11963 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11964echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11965 ac_header_preproc=yes
11966 ;;
11967 no:yes:* )
11968 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11969echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11971echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11972 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11973echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11975echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11977echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11979echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11980 (
11981 cat <<\_ASBOX
11982## ------------------------------------------ ##
11983## Report this to the AC_PACKAGE_NAME lists. ##
11984## ------------------------------------------ ##
11985_ASBOX
11986 ) |
11987 sed "s/^/$as_me: WARNING: /" >&2
11988 ;;
11989esac
11990echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11991echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11992if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994else
11995 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11996fi
11997echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11998echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
11999
12000fi
12001if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12002 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12003echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
12004if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006else
12007 ac_check_lib_save_LIBS=$LIBS
12008LIBS="-lXft $XFT_LIBS $LIBS"
12009cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h. */
12015
12016/* Override any gcc2 internal prototype to avoid an error. */
12017#ifdef __cplusplus
12018extern "C"
12019#endif
12020/* We use char because int might match the return type of a gcc2
12021 builtin and then its argument prototype would still apply. */
12022char XftFontOpen ();
12023int
12024main ()
12025{
12026XftFontOpen ();
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031rm -f conftest.$ac_objext conftest$ac_exeext
12032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_cv_lib_Xft_XftFontOpen=yes
12054else
12055 echo "$as_me: failed program was:" >&5
12056sed 's/^/| /' conftest.$ac_ext >&5
12057
12058ac_cv_lib_Xft_XftFontOpen=no
12059fi
12060rm -f conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12062LIBS=$ac_check_lib_save_LIBS
12063fi
12064echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12065echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
12066if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12067 HAVE_XFT=yes
12068fi
12069
12070fi
12071
12072
12073
12074 if test "${HAVE_XFT}" = "yes"; then
12075
12076cat >>confdefs.h <<\_ACEOF
12077#define HAVE_XFT 1
12078_ACEOF
12079
12080
12081 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12082 else
12083 CFLAGS="$OLD_CPPFLAGS"
12084 CFLAGS="$OLD_CFLAGS"
12085 LIBS="$OLD_LIBS"
12086 fi
12087 fi
12088 fi
12089fi
12090
12091HAVE_FREETYPE=no
12092### Use -lfreetype if available, unless `--with-freetype=no'.
12093if test "${HAVE_XFT}" = "yes"; then
12094 HAVE_FREETYPE=yes
12095elif test "x${with_freetype}" != "xno"; then
12096 if test "X${with_pkg_config_prog}" != X; then
12097 PKG_CONFIG="${with_pkg_config_prog}"
12098 fi
12099
12100
12101 succeeded=no
12102
12103 if test -z "$PKG_CONFIG"; then
12104 # Extract the first word of "pkg-config", so it can be a program name with args.
12105set dummy pkg-config; ac_word=$2
12106echo "$as_me:$LINENO: checking for $ac_word" >&5
12107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12108if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110else
12111 case $PKG_CONFIG in
12112 [\\/]* | ?:[\\/]*)
12113 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12114 ;;
12115 *)
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117for as_dir in $PATH
12118do
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12123 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12126 fi
12127done
12128done
12129
12130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12131 ;;
12132esac
12133fi
12134PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12135
12136if test -n "$PKG_CONFIG"; then
12137 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12138echo "${ECHO_T}$PKG_CONFIG" >&6
12139else
12140 echo "$as_me:$LINENO: result: no" >&5
12141echo "${ECHO_T}no" >&6
12142fi
12143
12144 fi
12145
12146 if test "$PKG_CONFIG" = "no" ; then
12147 echo "*** The pkg-config script could not be found. Make sure it is"
12148 echo "*** in your path, or give the full path to pkg-config with"
12149 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12150 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12151 else
12152 PKG_CONFIG_MIN_VERSION=0.9.0
12153 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12154 echo "$as_me:$LINENO: checking for freetype2" >&5
12155echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12156
12157 if $PKG_CONFIG --exists "freetype2" ; then
12158 echo "$as_me:$LINENO: result: yes" >&5
12159echo "${ECHO_T}yes" >&6
12160 succeeded=yes
12161
12162 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12163echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
12164 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12165 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12166echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
12167
12168 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12169echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
12170 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12171 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12172echo "${ECHO_T}$FREETYPE_LIBS" >&6
12173 else
12174 FREETYPE_CFLAGS=""
12175 FREETYPE_LIBS=""
12176 ## If we have a custom action on failure, don't print errors, but
12177 ## do set a variable so people can do so.
12178 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12179
12180 fi
12181
12182
12183
12184 else
12185 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12186 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12187 fi
12188 fi
12189
12190 if test $succeeded = yes; then
12191 HAVE_FREETYPE=yes
12192 else
12193 HAVE_FREETYPE=no
12194 fi
12195
12196 if test "${HAVE_FREETYPE}" = "yes"; then
12197
12198 succeeded=no
12199
12200 if test -z "$PKG_CONFIG"; then
12201 # Extract the first word of "pkg-config", so it can be a program name with args.
12202set dummy pkg-config; ac_word=$2
12203echo "$as_me:$LINENO: checking for $ac_word" >&5
12204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12205if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208 case $PKG_CONFIG in
12209 [\\/]* | ?:[\\/]*)
12210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12211 ;;
12212 *)
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214for as_dir in $PATH
12215do
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 break 2
12223 fi
12224done
12225done
12226
12227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12228 ;;
12229esac
12230fi
12231PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12232
12233if test -n "$PKG_CONFIG"; then
12234 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12235echo "${ECHO_T}$PKG_CONFIG" >&6
12236else
12237 echo "$as_me:$LINENO: result: no" >&5
12238echo "${ECHO_T}no" >&6
12239fi
12240
12241 fi
12242
12243 if test "$PKG_CONFIG" = "no" ; then
12244 echo "*** The pkg-config script could not be found. Make sure it is"
12245 echo "*** in your path, or give the full path to pkg-config with"
12246 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12247 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12248 else
12249 PKG_CONFIG_MIN_VERSION=0.9.0
12250 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12251 echo "$as_me:$LINENO: checking for fontconfig" >&5
12252echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6
12253
12254 if $PKG_CONFIG --exists "fontconfig" ; then
12255 echo "$as_me:$LINENO: result: yes" >&5
12256echo "${ECHO_T}yes" >&6
12257 succeeded=yes
12258
12259 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12260echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
12261 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
12262 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12263echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
12264
12265 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12266echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
12267 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
12268 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12269echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
12270 else
12271 FONTCONFIG_CFLAGS=""
12272 FONTCONFIG_LIBS=""
12273 ## If we have a custom action on failure, don't print errors, but
12274 ## do set a variable so people can do so.
12275 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12276
12277 fi
12278
12279
12280
12281 else
12282 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12283 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12284 fi
12285 fi
12286
12287 if test $succeeded = yes; then
12288 HAVE_FC=yes
12289 else
12290 HAVE_FC=no
12291 fi
12292
12293 if test "${HAVE_FC}" = "no"; then
12294 HAVE_FREETYPE=no
12295 fi
12296 fi
12297fi
12298if test "${HAVE_FREETYPE}" = "yes"; then
12299
12300cat >>confdefs.h <<\_ACEOF
12301#define HAVE_FREETYPE 1
12302_ACEOF
12303
12304 # Extract the first word of "libotf-config", so it can be a program name with args.
12305set dummy libotf-config; ac_word=$2
12306echo "$as_me:$LINENO: checking for $ac_word" >&5
12307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12308if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310else
12311 if test -n "$HAVE_LIBOTF"; then
12312 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
12313else
12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321 ac_cv_prog_HAVE_LIBOTF="yes"
12322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 break 2
12324 fi
12325done
12326done
12327
12328 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
12329fi
12330fi
12331HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
12332if test -n "$HAVE_LIBOTF"; then
12333 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
12334echo "${ECHO_T}$HAVE_LIBOTF" >&6
12335else
12336 echo "$as_me:$LINENO: result: no" >&5
12337echo "${ECHO_T}no" >&6
12338fi
12339
12340 if test "${HAVE_LIBOTF}" = "yes"; then
12341
12342cat >>confdefs.h <<\_ACEOF
12343#define HAVE_LIBOTF 1
12344_ACEOF
12345
12346 LIBOTF_CFLAGS=`libotf-config --cflags`
12347 LIBOTF_LIBS=`libotf-config --libs`
12348 fi
12349fi
12350
12351
12352
12353
12354
12355
12356
12357fi
12358
11717### Use -lXpm if available, unless `--with-xpm=no'. 12359### Use -lXpm if available, unless `--with-xpm=no'.
11718HAVE_XPM=no 12360HAVE_XPM=no
11719if test "${HAVE_X11}" = "yes"; then 12361if test "${HAVE_X11}" = "yes"; then
@@ -23657,6 +24299,15 @@ s,@SET_MAKE@,$SET_MAKE,;t t
23657s,@PKG_CONFIG@,$PKG_CONFIG,;t t 24299s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23658s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 24300s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23659s,@GTK_LIBS@,$GTK_LIBS,;t t 24301s,@GTK_LIBS@,$GTK_LIBS,;t t
24302s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
24303s,@XFT_LIBS@,$XFT_LIBS,;t t
24304s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
24305s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
24306s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
24307s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
24308s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t
24309s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t
24310s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t
23660s,@ALLOCA@,$ALLOCA,;t t 24311s,@ALLOCA@,$ALLOCA,;t t
23661s,@liblockfile@,$liblockfile,;t t 24312s,@liblockfile@,$liblockfile,;t t
23662s,@LIBOBJS@,$LIBOBJS,;t t 24313s,@LIBOBJS@,$LIBOBJS,;t t
diff --git a/src/config.in b/src/config.in
index 2bc4ba56e79..9c1abadd283 100644
--- a/src/config.in
+++ b/src/config.in
@@ -152,6 +152,9 @@ Boston, MA 02110-1301, USA. */
152/* Define to 1 if you have the `fpathconf' function. */ 152/* Define to 1 if you have the `fpathconf' function. */
153#undef HAVE_FPATHCONF 153#undef HAVE_FPATHCONF
154 154
155/* Define to 1 if you have freetype and fontconfig libraries. */
156#undef HAVE_FREETYPE
157
155/* Define to 1 if you have the `frexp' function. */ 158/* Define to 1 if you have the `frexp' function. */
156#undef HAVE_FREXP 159#undef HAVE_FREXP
157 160
@@ -335,6 +338,9 @@ Boston, MA 02110-1301, USA. */
335/* Define to 1 if you have the `ncurses' library (-lncurses). */ 338/* Define to 1 if you have the `ncurses' library (-lncurses). */
336#undef HAVE_LIBNCURSES 339#undef HAVE_LIBNCURSES
337 340
341/* Define to 1 if you have libotf library. */
342#undef HAVE_LIBOTF
343
338/* Define to 1 if you have the <libpng/png.h> header file. */ 344/* Define to 1 if you have the <libpng/png.h> header file. */
339#undef HAVE_LIBPNG_PNG_H 345#undef HAVE_LIBPNG_PNG_H
340 346
@@ -700,6 +706,9 @@ Boston, MA 02110-1301, USA. */
700/* Define to 1 if you're using XFree386. */ 706/* Define to 1 if you're using XFree386. */
701#undef HAVE_XFREE386 707#undef HAVE_XFREE386
702 708
709/* Define to 1 if you have the Xft library. */
710#undef HAVE_XFT
711
703/* Define to 1 if XIM is available */ 712/* Define to 1 if XIM is available */
704#undef HAVE_XIM 713#undef HAVE_XIM
705 714
@@ -821,6 +830,9 @@ Boston, MA 02110-1301, USA. */
821/* Define to the unexec source file name. */ 830/* Define to the unexec source file name. */
822#undef UNEXEC_SRC 831#undef UNEXEC_SRC
823 832
833/* Define to 1 if we should use font-backend. */
834#undef USE_FONT_BACKEND
835
824/* Define to 1 if we should use toolkit scroll bars. */ 836/* Define to 1 if we should use toolkit scroll bars. */
825#undef USE_TOOLKIT_SCROLL_BARS 837#undef USE_TOOLKIT_SCROLL_BARS
826 838