Mercurial > emacs
comparison configure @ 90418:f998539f09a9
Re-generated.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 06 Jun 2006 03:53:38 +0000 |
parents | 72dea2ff0142 |
children | a8190f7e546e |
comparison
equal
deleted
inserted
replaced
90417:bf2bc4490b64 | 90418:f998539f09a9 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
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 ## --------------------- ## |
9 ## M4sh Initialization. ## | 9 ## M4sh Initialization. ## |
10 ## --------------------- ## | 10 ## --------------------- ## |
308 #endif | 308 #endif |
309 #if HAVE_UNISTD_H | 309 #if HAVE_UNISTD_H |
310 # include <unistd.h> | 310 # include <unistd.h> |
311 #endif" | 311 #endif" |
312 | 312 |
313 ac_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' | 313 ac_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' |
314 ac_subst_files='' | 314 ac_subst_files='' |
315 | 315 |
316 # Initialize some variables set by options. | 316 # Initialize some variables set by options. |
317 ac_init_help= | 317 ac_init_help= |
318 ac_init_version=false | 318 ac_init_version=false |
854 Optional Features: | 854 Optional Features: |
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | 855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
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 |
862 --enable-locallisppath=PATH | 863 --enable-locallisppath=PATH |
863 directories Emacs should search for lisp files | 864 directories Emacs should search for lisp files |
878 --with-xpm use -lXpm for displaying XPM images | 879 --with-xpm use -lXpm for displaying XPM images |
879 --with-jpeg use -ljpeg for displaying JPEG images | 880 --with-jpeg use -ljpeg for displaying JPEG images |
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 |
886 don't use Motif or Xaw3d scroll bars | 889 don't use Motif or Xaw3d scroll bars |
887 --without-xim don't use X11 XIM | 890 --without-xim don't use X11 XIM |
1487 if test "${with_png+set}" = set; then | 1490 if test "${with_png+set}" = set; then |
1488 withval="$with_png" | 1491 withval="$with_png" |
1489 | 1492 |
1490 fi; | 1493 fi; |
1491 | 1494 |
1495 # Check whether --with-freetype or --without-freetype was given. | |
1496 if test "${with_freetype+set}" = set; then | |
1497 withval="$with_freetype" | |
1498 | |
1499 fi; | |
1500 | |
1501 # Check whether --with-xft or --without-xft was given. | |
1502 if test "${with_xft+set}" = set; then | |
1503 withval="$with_xft" | |
1504 | |
1505 fi; | |
1506 | |
1492 # Check whether --with-gtk or --without-gtk was given. | 1507 # Check whether --with-gtk or --without-gtk was given. |
1493 if test "${with_gtk+set}" = set; then | 1508 if test "${with_gtk+set}" = set; then |
1494 withval="$with_gtk" | 1509 withval="$with_gtk" |
1495 | 1510 |
1496 fi; | 1511 fi; |
1520 fi; | 1535 fi; |
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given. | 1536 # Check whether --enable-carbon-app or --disable-carbon-app was given. |
1522 if test "${enable_carbon_app+set}" = set; then | 1537 if test "${enable_carbon_app+set}" = set; then |
1523 enableval="$enable_carbon_app" | 1538 enableval="$enable_carbon_app" |
1524 carbon_appdir_x=${enableval} | 1539 carbon_appdir_x=${enableval} |
1540 fi; | |
1541 | |
1542 # Check whether --enable-font-backend or --disable-font-backend was given. | |
1543 if test "${enable_font_backend+set}" = set; then | |
1544 enableval="$enable_font_backend" | |
1545 USE_FONT_BACKEND=$enableval | |
1546 else | |
1547 USE_FONT_BACKEND=no | |
1525 fi; | 1548 fi; |
1526 | 1549 |
1527 # Check whether --enable-asserts or --disable-asserts was given. | 1550 # Check whether --enable-asserts or --disable-asserts was given. |
1528 if test "${enable_asserts+set}" = set; then | 1551 if test "${enable_asserts+set}" = set; then |
1529 enableval="$enable_asserts" | 1552 enableval="$enable_asserts" |
11712 | 11735 |
11713 fi | 11736 fi |
11714 CFLAGS=$late_CFLAGS | 11737 CFLAGS=$late_CFLAGS |
11715 fi | 11738 fi |
11716 | 11739 |
11740 ### For font-backend | |
11741 if test "${USE_FONT_BACKEND}" = "yes"; then | |
11742 | |
11743 | |
11744 cat >>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'. | |
11750 HAVE_XFT=maybe | |
11751 if 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. | |
11766 set dummy pkg-config; ac_word=$2 | |
11767 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11769 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11770 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11771 else | |
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 | |
11778 for as_dir in $PATH | |
11779 do | |
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 | |
11788 done | |
11789 done | |
11790 | |
11791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11792 ;; | |
11793 esac | |
11794 fi | |
11795 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11796 | |
11797 if test -n "$PKG_CONFIG"; then | |
11798 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11799 echo "${ECHO_T}$PKG_CONFIG" >&6 | |
11800 else | |
11801 echo "$as_me:$LINENO: result: no" >&5 | |
11802 echo "${ECHO_T}no" >&6 | |
11803 fi | |
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 | |
11816 echo $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 | |
11820 echo "${ECHO_T}yes" >&6 | |
11821 succeeded=yes | |
11822 | |
11823 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 | |
11824 echo $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 | |
11827 echo "${ECHO_T}$XFT_CFLAGS" >&6 | |
11828 | |
11829 echo "$as_me:$LINENO: checking XFT_LIBS" >&5 | |
11830 echo $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 | |
11833 echo "${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 | |
11866 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6 | |
11867 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
11868 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11869 fi | |
11870 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
11871 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6 | |
11872 else | |
11873 # Is the header compilable? | |
11874 echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5 | |
11875 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6 | |
11876 cat >conftest.$ac_ext <<_ACEOF | |
11877 /* confdefs.h. */ | |
11878 _ACEOF | |
11879 cat confdefs.h >>conftest.$ac_ext | |
11880 cat >>conftest.$ac_ext <<_ACEOF | |
11881 /* end confdefs.h. */ | |
11882 $ac_includes_default | |
11883 #include <X11/Xft/Xft.h> | |
11884 _ACEOF | |
11885 rm -f conftest.$ac_objext | |
11886 if { (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 | |
11908 else | |
11909 echo "$as_me: failed program was:" >&5 | |
11910 sed 's/^/| /' conftest.$ac_ext >&5 | |
11911 | |
11912 ac_header_compiler=no | |
11913 fi | |
11914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11916 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11917 | |
11918 # Is the header present? | |
11919 echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5 | |
11920 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6 | |
11921 cat >conftest.$ac_ext <<_ACEOF | |
11922 /* confdefs.h. */ | |
11923 _ACEOF | |
11924 cat confdefs.h >>conftest.$ac_ext | |
11925 cat >>conftest.$ac_ext <<_ACEOF | |
11926 /* end confdefs.h. */ | |
11927 #include <X11/Xft/Xft.h> | |
11928 _ACEOF | |
11929 if { (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 | |
11943 else | |
11944 ac_cpp_err=yes | |
11945 fi | |
11946 if test -z "$ac_cpp_err"; then | |
11947 ac_header_preproc=yes | |
11948 else | |
11949 echo "$as_me: failed program was:" >&5 | |
11950 sed 's/^/| /' conftest.$ac_ext >&5 | |
11951 | |
11952 ac_header_preproc=no | |
11953 fi | |
11954 rm -f conftest.err conftest.$ac_ext | |
11955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11956 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11957 | |
11958 # So? What about this header? | |
11959 case $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 | |
11962 echo "$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 | |
11964 echo "$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 | |
11969 echo "$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 | |
11971 echo "$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 | |
11973 echo "$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 | |
11975 echo "$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 | |
11977 echo "$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 | |
11979 echo "$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 ;; | |
11989 esac | |
11990 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
11991 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6 | |
11992 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
11993 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11994 else | |
11995 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc | |
11996 fi | |
11997 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
11998 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6 | |
11999 | |
12000 fi | |
12001 if test $ac_cv_header_X11_Xft_Xft_h = yes; then | |
12002 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 | |
12003 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6 | |
12004 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then | |
12005 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12006 else | |
12007 ac_check_lib_save_LIBS=$LIBS | |
12008 LIBS="-lXft $XFT_LIBS $LIBS" | |
12009 cat >conftest.$ac_ext <<_ACEOF | |
12010 /* confdefs.h. */ | |
12011 _ACEOF | |
12012 cat confdefs.h >>conftest.$ac_ext | |
12013 cat >>conftest.$ac_ext <<_ACEOF | |
12014 /* end confdefs.h. */ | |
12015 | |
12016 /* Override any gcc2 internal prototype to avoid an error. */ | |
12017 #ifdef __cplusplus | |
12018 extern "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. */ | |
12022 char XftFontOpen (); | |
12023 int | |
12024 main () | |
12025 { | |
12026 XftFontOpen (); | |
12027 ; | |
12028 return 0; | |
12029 } | |
12030 _ACEOF | |
12031 rm -f conftest.$ac_objext conftest$ac_exeext | |
12032 if { (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 | |
12054 else | |
12055 echo "$as_me: failed program was:" >&5 | |
12056 sed 's/^/| /' conftest.$ac_ext >&5 | |
12057 | |
12058 ac_cv_lib_Xft_XftFontOpen=no | |
12059 fi | |
12060 rm -f conftest.err conftest.$ac_objext \ | |
12061 conftest$ac_exeext conftest.$ac_ext | |
12062 LIBS=$ac_check_lib_save_LIBS | |
12063 fi | |
12064 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 | |
12065 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6 | |
12066 if test $ac_cv_lib_Xft_XftFontOpen = yes; then | |
12067 HAVE_XFT=yes | |
12068 fi | |
12069 | |
12070 fi | |
12071 | |
12072 | |
12073 | |
12074 if test "${HAVE_XFT}" = "yes"; then | |
12075 | |
12076 cat >>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 | |
12089 fi | |
12090 | |
12091 HAVE_FREETYPE=no | |
12092 ### Use -lfreetype if available, unless `--with-freetype=no'. | |
12093 if test "${HAVE_XFT}" = "yes"; then | |
12094 HAVE_FREETYPE=yes | |
12095 elif 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. | |
12105 set dummy pkg-config; ac_word=$2 | |
12106 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12108 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
12109 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12110 else | |
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 | |
12117 for as_dir in $PATH | |
12118 do | |
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 | |
12127 done | |
12128 done | |
12129 | |
12130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
12131 ;; | |
12132 esac | |
12133 fi | |
12134 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12135 | |
12136 if test -n "$PKG_CONFIG"; then | |
12137 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
12138 echo "${ECHO_T}$PKG_CONFIG" >&6 | |
12139 else | |
12140 echo "$as_me:$LINENO: result: no" >&5 | |
12141 echo "${ECHO_T}no" >&6 | |
12142 fi | |
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 | |
12155 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6 | |
12156 | |
12157 if $PKG_CONFIG --exists "freetype2" ; then | |
12158 echo "$as_me:$LINENO: result: yes" >&5 | |
12159 echo "${ECHO_T}yes" >&6 | |
12160 succeeded=yes | |
12161 | |
12162 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5 | |
12163 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6 | |
12164 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"` | |
12165 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5 | |
12166 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6 | |
12167 | |
12168 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5 | |
12169 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6 | |
12170 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"` | |
12171 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5 | |
12172 echo "${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. | |
12202 set dummy pkg-config; ac_word=$2 | |
12203 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12205 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
12206 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12207 else | |
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 | |
12214 for as_dir in $PATH | |
12215 do | |
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 | |
12224 done | |
12225 done | |
12226 | |
12227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
12228 ;; | |
12229 esac | |
12230 fi | |
12231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12232 | |
12233 if test -n "$PKG_CONFIG"; then | |
12234 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
12235 echo "${ECHO_T}$PKG_CONFIG" >&6 | |
12236 else | |
12237 echo "$as_me:$LINENO: result: no" >&5 | |
12238 echo "${ECHO_T}no" >&6 | |
12239 fi | |
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 | |
12252 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6 | |
12253 | |
12254 if $PKG_CONFIG --exists "fontconfig" ; then | |
12255 echo "$as_me:$LINENO: result: yes" >&5 | |
12256 echo "${ECHO_T}yes" >&6 | |
12257 succeeded=yes | |
12258 | |
12259 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5 | |
12260 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6 | |
12261 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"` | |
12262 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5 | |
12263 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6 | |
12264 | |
12265 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5 | |
12266 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6 | |
12267 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"` | |
12268 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5 | |
12269 echo "${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 | |
12297 fi | |
12298 if test "${HAVE_FREETYPE}" = "yes"; then | |
12299 | |
12300 cat >>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. | |
12305 set dummy libotf-config; ac_word=$2 | |
12306 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12308 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then | |
12309 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12310 else | |
12311 if test -n "$HAVE_LIBOTF"; then | |
12312 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test. | |
12313 else | |
12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12315 for as_dir in $PATH | |
12316 do | |
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 | |
12325 done | |
12326 done | |
12327 | |
12328 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no" | |
12329 fi | |
12330 fi | |
12331 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF | |
12332 if test -n "$HAVE_LIBOTF"; then | |
12333 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5 | |
12334 echo "${ECHO_T}$HAVE_LIBOTF" >&6 | |
12335 else | |
12336 echo "$as_me:$LINENO: result: no" >&5 | |
12337 echo "${ECHO_T}no" >&6 | |
12338 fi | |
12339 | |
12340 if test "${HAVE_LIBOTF}" = "yes"; then | |
12341 | |
12342 cat >>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 | |
12349 fi | |
12350 | |
12351 | |
12352 | |
12353 | |
12354 | |
12355 | |
12356 | |
12357 fi | |
12358 | |
11717 ### Use -lXpm if available, unless `--with-xpm=no'. | 12359 ### Use -lXpm if available, unless `--with-xpm=no'. |
11718 HAVE_XPM=no | 12360 HAVE_XPM=no |
11719 if test "${HAVE_X11}" = "yes"; then | 12361 if test "${HAVE_X11}" = "yes"; then |
11720 if test "${with_xpm}" != "no"; then | 12362 if test "${with_xpm}" != "no"; then |
11721 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | 12363 if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
23655 s,@LIBSOUND@,$LIBSOUND,;t t | 24297 s,@LIBSOUND@,$LIBSOUND,;t t |
23656 s,@SET_MAKE@,$SET_MAKE,;t t | 24298 s,@SET_MAKE@,$SET_MAKE,;t t |
23657 s,@PKG_CONFIG@,$PKG_CONFIG,;t t | 24299 s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
23658 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | 24300 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
23659 s,@GTK_LIBS@,$GTK_LIBS,;t t | 24301 s,@GTK_LIBS@,$GTK_LIBS,;t t |
24302 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t | |
24303 s,@XFT_LIBS@,$XFT_LIBS,;t t | |
24304 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t | |
24305 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t | |
24306 s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t | |
24307 s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t | |
24308 s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t | |
24309 s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t | |
24310 s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t | |
23660 s,@ALLOCA@,$ALLOCA,;t t | 24311 s,@ALLOCA@,$ALLOCA,;t t |
23661 s,@liblockfile@,$liblockfile,;t t | 24312 s,@liblockfile@,$liblockfile,;t t |
23662 s,@LIBOBJS@,$LIBOBJS,;t t | 24313 s,@LIBOBJS@,$LIBOBJS,;t t |
23663 s,@NEED_SETGID@,$NEED_SETGID,;t t | 24314 s,@NEED_SETGID@,$NEED_SETGID,;t t |
23664 s,@KMEM_GROUP@,$KMEM_GROUP,;t t | 24315 s,@KMEM_GROUP@,$KMEM_GROUP,;t t |