Mercurial > hg > xemacs-beta
comparison configure.in @ 410:de805c49cfc1 r21-2-35
Import from CVS: tag r21-2-35
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:19:21 +0200 |
parents | 501cfd01ee6d |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
409:301b9ebbdf3b | 410:de805c49cfc1 |
---|---|
785 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; | 785 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; |
786 | 786 |
787 dnl Has the user specified the toolkit(s) to use for GUI elements? | 787 dnl Has the user specified the toolkit(s) to use for GUI elements? |
788 "with_menubars" | \ | 788 "with_menubars" | \ |
789 "with_scrollbars" | \ | 789 "with_scrollbars" | \ |
790 "with_dialogs" | \ | 790 "with_dialogs" | \ |
791 "with_widgets" ) | 791 "with_widgets" ) |
792 case "$val" in | 792 case "$val" in |
793 l | lu | luc | luci | lucid ) val=lucid ;; | 793 l | lu | luc | luci | lucid ) val=lucid ;; |
794 m | mo | mot | moti | motif ) val=motif ;; | 794 m | mo | mot | moti | motif ) val=motif ;; |
795 a | at | ath | athe | athen | athena ) val=athena ;; | 795 a | at | ath | athe | athen | athena ) val=athena ;; |
796 n | no | non | none ) val=no ;; | 796 n | no | non | none ) val=no ;; |
797 y | ye | yes ) val=yes ;; | |
797 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: | 798 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: |
798 \`lucid', \`motif', \`athena', or \`no'."]) ;; | 799 \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;; |
799 esac | 800 esac |
800 eval "$opt=\"$val\"" | 801 eval "$opt=\"$val\"" |
801 ;; | 802 ;; |
802 | 803 |
803 dnl Obsolete legacy argument? Warn, but otherwise ignore. | 804 dnl Obsolete legacy argument? Warn, but otherwise ignore. |
1090 m68*-sony-* ) machine=news ;; | 1091 m68*-sony-* ) machine=news ;; |
1091 mips-sony-* ) machine=news-risc ;; | 1092 mips-sony-* ) machine=news-risc ;; |
1092 clipper-* ) machine=clipper ;; | 1093 clipper-* ) machine=clipper ;; |
1093 arm* ) machine=arm ;; | 1094 arm* ) machine=arm ;; |
1094 ns32k-* ) machine=ns32000 ;; | 1095 ns32k-* ) machine=ns32000 ;; |
1096 s390-* ) machine=s390 ;; | |
1095 esac | 1097 esac |
1096 | 1098 |
1097 dnl Straightforward OS determination | 1099 dnl Straightforward OS determination |
1098 case "$canonical" in | 1100 case "$canonical" in |
1099 *-*-linux* ) opsys=linux ;; | 1101 *-*-linux* ) opsys=linux ;; |
1651 dnl Compiler feature macros | 1653 dnl Compiler feature macros |
1652 dnl -------------------------------------------------------------------- | 1654 dnl -------------------------------------------------------------------- |
1653 | 1655 |
1654 AC_AIX dnl Defines _ALL_SOURCE on AIX. | 1656 AC_AIX dnl Defines _ALL_SOURCE on AIX. |
1655 | 1657 |
1656 dnl Determine which SMART_INCLUDE macro will work for this system | 1658 dnl We want feature macros defined here *and* in config.h.in, so that |
1657 cat > $srcdir/conffoo.h <<EOF | |
1658 #define CONFFOO 1 | |
1659 EOF | |
1660 AC_MSG_CHECKING(for a working inclusion macro) | |
1661 AC_TRY_COMPILE(,[ | |
1662 #define SMART_INCLUDE(path,file) <path/file> | |
1663 #define CONFFOO_H_PATH $srcdir | |
1664 #define CONFFOO_INCLUDE(file) SMART_INCLUDE (CONFFOO_H_PATH,file) | |
1665 #include CONFFOO_INCLUDE(conffoo.h) | |
1666 ], [ AC_MSG_RESULT(direct); AC_DEFINE(SMART_INCLUDE_INDIRECTIONS,0) ], | |
1667 AC_TRY_COMPILE(,[ | |
1668 #define GLUE_INCLUDE(path,file) <##path##/##file##> | |
1669 #define SMART_INCLUDE(path,file) GLUE_INCLUDE(path,file) | |
1670 #define CONFFOO_H_PATH $srcdir | |
1671 #define CONFFOO_INCLUDE(file) SMART_INCLUDE(CONFFOO_H_PATH,file) | |
1672 #include CONFFOO_INCLUDE(conffoo.h) | |
1673 ], [ AC_MSG_RESULT(simple); AC_DEFINE(SMART_INCLUDE_INDIRECTIONS,1) ], | |
1674 AC_TRY_COMPILE(,[ | |
1675 #define GLUE_INCLUDE_2(path,file) <##path##/##file##> | |
1676 #define GLUE_INCLUDE_1(path,file) GLUE_INCLUDE_2(path,file) | |
1677 #define SMART_INCLUDE(path,file) GLUE_INCLUDE_1(path,file) | |
1678 #define CONFFOO_H_PATH $srcdir | |
1679 #define CONFFOO_INCLUDE(file) SMART_INCLUDE (CONFFOO_H_PATH,file) | |
1680 #include CONFFOO_INCLUDE(conffoo.h) | |
1681 ], [ AC_MSG_RESULT(double); AC_DEFINE(SMART_INCLUDE_INDIRECTIONS,2) ], | |
1682 AC_MSG_ERROR([Cannot define a proper SMART_INCLUDE macro. Please report.])))) | |
1683 rm -f $srcdir/conffoo.h | |
1684 | |
1685 | |
1686 dnl We want feature macros defined here and in config.h.in, so that | |
1687 dnl the compilation environment at configure time and compile time agree. | 1659 dnl the compilation environment at configure time and compile time agree. |
1688 | 1660 |
1689 AC_MSG_CHECKING(for GNU libc) | 1661 AC_MSG_CHECKING(for GNU libc) |
1690 AC_TRY_COMPILE([#include <features.h>],[ | 1662 AC_TRY_COMPILE([#include <features.h>],[ |
1691 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) | 1663 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) |
1857 ordinary_link="yes" | 1829 ordinary_link="yes" |
1858 ld="${ordinary_ld}" | 1830 ld="${ordinary_ld}" |
1859 start_files= | 1831 start_files= |
1860 libs_standard= | 1832 libs_standard= |
1861 unexec= | 1833 unexec= |
1862 lib_gcc= | 1834 lib_gcc= |
1863 fi | 1835 fi |
1864 | 1836 |
1865 dnl For debugging... | 1837 dnl For debugging... |
1866 test "$extra_verbose" = "yes" && \ | 1838 test "$extra_verbose" = "yes" && \ |
1867 PRINT_VAR(libs_machine libs_system libs_termcap libs_standard | 1839 PRINT_VAR(libs_machine libs_system libs_termcap libs_standard |
1879 | 1851 |
1880 dnl Non-ordinary link usually requires -lc | 1852 dnl Non-ordinary link usually requires -lc |
1881 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" | 1853 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" |
1882 | 1854 |
1883 dnl Compiler-specific hacks | 1855 dnl Compiler-specific hacks |
1884 dnl DEC C requires -std | 1856 dnl DEC C `-std1' means ANSI C mode |
1885 test "$__DECC" = "yes" && XE_APPEND(-std, c_switch_site) | 1857 test "$__DECC" = "yes" && XE_APPEND(-std1, c_switch_site) |
1886 | 1858 |
1887 dnl Calculalate value of CFLAGS: | 1859 dnl Calculalate value of CFLAGS: |
1888 dnl Use either command line flag, environment var, or autodetection | 1860 dnl Use either command line flag, environment var, or autodetection |
1889 if test "$cflags_specified" = "no"; then | 1861 if test "$cflags_specified" = "no"; then |
1890 dnl Following values of CFLAGS are known to work well. | 1862 dnl Following values of CFLAGS are known to work well. |
2376 AC_TYPE_UID_T | 2348 AC_TYPE_UID_T |
2377 AC_TYPE_MODE_T | 2349 AC_TYPE_MODE_T |
2378 AC_TYPE_OFF_T | 2350 AC_TYPE_OFF_T |
2379 AC_CHECK_TYPE(ssize_t, int) | 2351 AC_CHECK_TYPE(ssize_t, int) |
2380 | 2352 |
2353 dnl check for Unix98 socklen_t | |
2354 AC_MSG_CHECKING(for socklen_t) | |
2355 AC_TRY_COMPILE([#include <sys/socket.h> | |
2356 socklen_t x; | |
2357 ],[],[AC_MSG_RESULT(yes)],[ | |
2358 AC_TRY_COMPILE([#include <sys/socket.h> | |
2359 int accept (int, struct sockaddr *, size_t *); | |
2360 ],[],[ | |
2361 AC_MSG_RESULT(size_t) | |
2362 AC_DEFINE(socklen_t,size_t)], [ | |
2363 AC_MSG_RESULT(int) | |
2364 AC_DEFINE(socklen_t,int)])]) | |
2365 | |
2381 AC_MSG_CHECKING(for struct timeval) | 2366 AC_MSG_CHECKING(for struct timeval) |
2382 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME | 2367 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
2383 #include <sys/time.h> | 2368 #include <sys/time.h> |
2384 #include <time.h> | 2369 #include <time.h> |
2385 #else | 2370 #else |
2439 AC_CHECK_FUNCS(lockf flock) | 2424 AC_CHECK_FUNCS(lockf flock) |
2440 dnl The mail_use_xxx variables are set according to the s&m headers. | 2425 dnl The mail_use_xxx variables are set according to the s&m headers. |
2441 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock | 2426 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock |
2442 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf | 2427 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf |
2443 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking | 2428 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking |
2429 if test -z "$mail_locking"; then | |
2430 case "$opsys" in cygwin* | mingw*) | |
2431 mail_locking=pop ;; | |
2432 esac | |
2433 fi | |
2434 | |
2444 if test "$mail_locking" = "lockf"; then AC_DEFINE(MAIL_LOCK_LOCKF) | 2435 if test "$mail_locking" = "lockf"; then AC_DEFINE(MAIL_LOCK_LOCKF) |
2445 elif test "$mail_locking" = "flock"; then AC_DEFINE(MAIL_LOCK_FLOCK) | 2436 elif test "$mail_locking" = "flock"; then AC_DEFINE(MAIL_LOCK_FLOCK) |
2446 elif test "$mail_locking" = "locking"; then AC_DEFINE(MAIL_LOCK_LOCKING) | 2437 elif test "$mail_locking" = "locking"; then AC_DEFINE(MAIL_LOCK_LOCKING) |
2438 elif test "$mail_locking" = "pop"; then | |
2439 with_pop=yes | |
2440 mail_locking= | |
2447 else mail_locking="dot-locking"; AC_DEFINE(MAIL_LOCK_DOT) | 2441 else mail_locking="dot-locking"; AC_DEFINE(MAIL_LOCK_DOT) |
2448 fi | 2442 fi |
2449 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \ | 2443 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \ |
2450 XE_DIE("lockf mail locking requested but not available.") | 2444 XE_DIE("lockf mail locking requested but not available.") |
2451 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \ | 2445 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \ |
2619 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` | 2613 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` |
2620 fi | 2614 fi |
2621 cd .. | 2615 cd .. |
2622 rm -fr conftestdir | 2616 rm -fr conftestdir |
2623 for word in $xmkmf_defines; do | 2617 for word in $xmkmf_defines; do |
2624 case "$word" in | 2618 case "$word" in -D* ) |
2625 -D*=* ) ;; | 2619 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` |
2626 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'` | 2620 case "$word" in |
2627 AC_DEFINE_UNQUOTED($word) ;; | 2621 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; |
2622 * ) val=1 ;; | |
2623 esac | |
2624 dnl Avoid re-AC_DEFINE-ing xmkmf symbols we've already defined above. | |
2625 if grep "^#define $sym " confdefs.h >/dev/null; then :; else | |
2626 if test "$val" = "1" | |
2627 then AC_DEFINE_UNQUOTED($sym) | |
2628 else AC_DEFINE_UNQUOTED($sym,$val) | |
2629 fi | |
2630 fi ;; | |
2628 esac | 2631 esac |
2629 done | 2632 done |
2630 fi | 2633 fi |
2631 | 2634 |
2632 dnl make sure we can find Intrinsic.h | 2635 dnl make sure we can find Intrinsic.h |
2710 AC_CHECKING(for MS-Windows) | 2713 AC_CHECKING(for MS-Windows) |
2711 AC_CHECK_LIB(gdi32,main,with_msw=yes) | 2714 AC_CHECK_LIB(gdi32,main,with_msw=yes) |
2712 if test "$with_msw" = "yes"; then | 2715 if test "$with_msw" = "yes"; then |
2713 AC_DEFINE(HAVE_MS_WINDOWS) | 2716 AC_DEFINE(HAVE_MS_WINDOWS) |
2714 install_pp="$blddir/lib-src/installexe.sh" | 2717 install_pp="$blddir/lib-src/installexe.sh" |
2715 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool, libs_system) | 2718 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool, libs_system) |
2716 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) | 2719 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) |
2717 if test "$window_system" != x11; then | 2720 if test "$window_system" != x11; then |
2718 window_system=msw | 2721 window_system=msw |
2719 test "$with_scrollbars" != "no" && with_scrollbars=msw \ | 2722 test "$with_scrollbars" != "no" && with_scrollbars=msw \ |
2720 && XE_ADD_OBJS(scrollbar-msw.o) | 2723 && XE_ADD_OBJS(scrollbar-msw.o) |
2943 fi | 2946 fi |
2944 AC_CHECK_FUNCS(ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result) | 2947 AC_CHECK_FUNCS(ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result) |
2945 fi | 2948 fi |
2946 | 2949 |
2947 dnl Autodetect PostgreSQL | 2950 dnl Autodetect PostgreSQL |
2948 dnl The default installation location (non-Linux) is /usr/local/pgsql; | 2951 dnl On many Linux systems, PostgreSQL is packaged to be installed in /usr; |
2949 dnl a different prefix can be selected at build/install time. If PostgreSQL | 2952 dnl in this case, configure will easily detect it there. |
2950 dnl is installed into a different prefix, that prefix must be specified in | 2953 dnl |
2951 dnl in the --site-prefixes flag. | 2954 dnl If PostgreSQL is installed into a different prefix, |
2952 dnl The default RPM-based Linux installation location is /usr. | 2955 dnl (such as the default /usr/local/pgsql when building from source), |
2953 AC_CHECKING(for PostgreSQL) | 2956 dnl that prefix must be specified using the --site-prefixes flag. |
2954 postgres_h_path="" | |
2955 postgres_includes_found=no | |
2956 save_c_switch_site="$c_switch_site" | |
2957 | |
2958 dnl First, test standard location and site prefixes only: | |
2959 if test "$with_postgresql" != "no"; then | 2957 if test "$with_postgresql" != "no"; then |
2960 AC_CHECK_HEADER(libpq-fe.h,postgres_includes_found=yes) | 2958 AC_CHECKING(for PostgreSQL) |
2961 fi | 2959 |
2962 | 2960 dnl Look for these standard header file locations, known to be used on Linux |
2963 dnl Otherwise, test different known headers locations on linux: | 2961 for header_dir in "" "pgsql/" "postgresql/"; do |
2964 if test "$postgres_includes_found" = "no" -a "$with_postgresql" != "no" -a \ | 2962 AC_CHECK_HEADER(${header_dir}libpq-fe.h, |
2965 -d "/usr/local/pgsql/include"; then | 2963 libpq_fe_h_file=${header_dir}libpq-fe.h; break) |
2966 c_switch_site="$c_switch_site -I/usr/local/pgsql/include" | 2964 done |
2967 AC_CHECK_HEADER(libpq-fe.h,postgres_includes_found=yes) | 2965 |
2968 if test "$postgres_includes_found" != "yes"; then | 2966 test -n "$libpq_fe_h_file" && { AC_CHECK_LIB(pq,PQconnectdb,have_libpq=yes) } |
2969 postgres_h_path="/usr/local/pgsql/include" | 2967 |
2970 fi | 2968 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then |
2971 c_switch_site="$save_c_switch_site" | 2969 with_postgresql=yes |
2972 fi | 2970 AC_DEFINE(HAVE_POSTGRESQL) |
2973 if test "$postgres_includes_found" = "no" -a "$with_postgresql" != "no" -a \ | 2971 AC_CHECK_LIB(pq,PQconnectStart, [ |
2974 -d "/usr/include/pgsql"; then | 2972 with_postgresqlv7=yes; |
2975 c_switch_site="$c_switch_site -I/usr/include/pgsql" | 2973 AC_DEFINE(HAVE_POSTGRESQLV7)]) |
2976 AC_CHECK_HEADER(libpq-fe.h,postgres_includes_found=yes) | 2974 AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file") |
2977 if test "$postgres_includes_found" = "yes"; then | 2975 XE_PREPEND(-lpq, LIBS) |
2978 postgres_h_path="pgsql" | 2976 XE_ADD_OBJS(postgresql.o) |
2979 fi | 2977 elif test "$with_postgresql" = "yes"; then |
2980 c_switch_site="$save_c_switch_site" | 2978 XE_DIE("Required PostgreSQL support cannot be provided. Check --site-prefixes.") |
2981 fi | 2979 fi |
2982 if test "$postgres_includes_found" = "no" -a "$with_postgresql" != "no" -a \ | |
2983 -d "/usr/include/postgresql"; then | |
2984 c_switch_site="$c_switch_site -I/usr/include/postgresql" | |
2985 AC_CHECK_HEADER(libpq-fe.h,postgres_includes_found=yes) | |
2986 if test "$postgres_includes_found" = "yes"; then | |
2987 postgres_h_path="postgresql" | |
2988 fi | |
2989 c_switch_site="$save_c_switch_site" | |
2990 fi | |
2991 | |
2992 dnl Finally, check if we can link with libpq: | |
2993 if test "$postgres_includes_found" = "yes"; then | |
2994 AC_CHECK_LIB(pq,PQconnectdb,with_postgresql=yes,with_postgresql=no) | |
2995 fi | |
2996 if test "$with_postgresql" = "yes"; then | |
2997 AC_CHECK_LIB(pq,PQconnectStart,with_postgresqlv7=yes,with_postgresqlv7=no) | |
2998 fi | |
2999 if test "$with_postgresql" = "yes"; then | |
3000 if test -n "$postgres_h_path"; then | |
3001 AC_DEFINE_UNQUOTED(POSTGRES_H_PATH, $postgres_h_path) | |
3002 fi | |
3003 AC_DEFINE(HAVE_POSTGRESQL) | |
3004 if test "$with_postgresqlv7" = "yes"; then | |
3005 AC_DEFINE(HAVE_POSTGRESQLV7) | |
3006 fi | |
3007 XE_PREPEND(-lpq, LIBS) | |
3008 XE_ADD_OBJS(postgresql.o) | |
3009 fi | 2980 fi |
3010 | 2981 |
3011 dnl ---------------------- | 2982 dnl ---------------------- |
3012 dnl Graphics libraries | 2983 dnl Graphics libraries |
3013 dnl ---------------------- | 2984 dnl ---------------------- |
3304 XE_APPEND(lwlib-Xaw.o, lwlib_objs) | 3275 XE_APPEND(lwlib-Xaw.o, lwlib_objs) |
3305 | 3276 |
3306 dnl Add the Athena widget library we located earlier | 3277 dnl Add the Athena widget library we located earlier |
3307 XE_PREPEND(-l$athena_lib, libs_x) | 3278 XE_PREPEND(-l$athena_lib, libs_x) |
3308 | 3279 |
3309 dnl Export the path for lwlib, used to build and include the headers | 3280 dnl Tell lwlib where to find the Athena header files. |
3310 dnl from the right place later on. | 3281 dnl Many people have tried to create a `smart' way of doing this, |
3311 AC_DEFINE_UNQUOTED(ATHENA_H_PATH, $athena_h_path) | 3282 dnl but all have failed. Before changing the following ugly definitions, |
3283 dnl consult the veterans of many a battle. | |
3284 AC_DEFINE_UNQUOTED(ATHENA_Scrollbar_h_,"$athena_h_path/Scrollbar.h") | |
3285 AC_DEFINE_UNQUOTED(ATHENA_Dialog_h_,"$athena_h_path/Dialog.h") | |
3286 AC_DEFINE_UNQUOTED(ATHENA_Form_h_,"$athena_h_path/Form.h") | |
3287 AC_DEFINE_UNQUOTED(ATHENA_Command_h_,"$athena_h_path/Command.h") | |
3288 AC_DEFINE_UNQUOTED(ATHENA_Label_h_,"$athena_h_path/Label.h") | |
3289 AC_DEFINE_UNQUOTED(ATHENA_LabelP_h_,"$athena_h_path/LabelP.h") | |
3290 AC_DEFINE_UNQUOTED(ATHENA_Toggle_h_,"$athena_h_path/Toggle.h") | |
3291 AC_DEFINE_UNQUOTED(ATHENA_ToggleP_h_,"$athena_h_path/ToggleP.h") | |
3292 AC_DEFINE_UNQUOTED(ATHENA_AsciiText_h_,"$athena_h_path/AsciiText.h") | |
3293 AC_DEFINE_UNQUOTED(ATHENA_XawInit_h_,"$athena_h_path/XawInit.h") | |
3312 | 3294 |
3313 AC_DEFINE(LWLIB_USES_ATHENA) | 3295 AC_DEFINE(LWLIB_USES_ATHENA) |
3314 AC_DEFINE(NEED_ATHENA) | 3296 AC_DEFINE(NEED_ATHENA) |
3297 need_athena="yes" | |
3315 | 3298 |
3316 if test "$athena_3d" = "yes"; then | 3299 if test "$athena_3d" = "yes"; then |
3317 AC_DEFINE(HAVE_ATHENA_3D) | 3300 AC_DEFINE(HAVE_ATHENA_3D) |
3318 fi | 3301 fi |
3319 ;; | 3302 ;; |
3818 [AC_DEFINE_UNQUOTED(SOUNDCARD_H_FILE, "${dir}/soundcard.h")] | 3801 [AC_DEFINE_UNQUOTED(SOUNDCARD_H_FILE, "${dir}/soundcard.h")] |
3819 break) | 3802 break) |
3820 done | 3803 done |
3821 fi | 3804 fi |
3822 | 3805 |
3806 dnl Win32 Native uses native sound | |
3807 if test -z "$sound_found"; then | |
3808 if test "$with_msw" = "yes"; then | |
3809 sound_found=yes | |
3810 native_sound_lib= | |
3811 fi | |
3812 fi | |
3813 | |
3823 test "$sound_found" = "yes" && with_native_sound=yes | 3814 test "$sound_found" = "yes" && with_native_sound=yes |
3824 fi | 3815 fi |
3825 | 3816 |
3826 if test "$with_native_sound" = "yes"; then | 3817 if test "$with_native_sound" = "yes"; then |
3827 AC_DEFINE(HAVE_NATIVE_SOUND) | 3818 AC_DEFINE(HAVE_NATIVE_SOUND) |
4065 | 4056 |
4066 dnl autodetect dll support | 4057 dnl autodetect dll support |
4067 if test "$with_modules" != "no"; then | 4058 if test "$with_modules" != "no"; then |
4068 AC_CHECKING(for module support) | 4059 AC_CHECKING(for module support) |
4069 | 4060 |
4070 dnl Find headers and libraries | 4061 dnl Check for MS-Windows |
4071 AC_CHECK_HEADER(dlfcn.h, [ | 4062 if test "$with_msw" = "yes"; then |
4072 AC_CHECK_LIB(dl, dlopen, [ have_dl=yes libdl=dl], [ | 4063 have_dl=yes; |
4073 AC_CHECK_LIB(c, dlopen, [ have_dl=yes ])])]) | |
4074 if test -n "$have_dl"; then | |
4075 AC_DEFINE(HAVE_DLOPEN) | |
4076 else | 4064 else |
4077 AC_CHECK_LIB(dld, shl_load, [ | 4065 dnl Find headers and libraries |
4078 libdl=dld have_dl=yes; | 4066 AC_CHECK_HEADER(dlfcn.h, [ |
4079 AC_DEFINE(HAVE_SHL_LOAD)], [ | 4067 AC_CHECK_LIB(dl, dlopen, [ have_dl=yes libdl=dl], [ |
4080 AC_CHECK_LIB(dld, dld_init, [ | 4068 AC_CHECK_LIB(c, dlopen, [ have_dl=yes ])])]) |
4081 libdl=dld have_dl=yes; | 4069 if test -n "$have_dl"; then |
4082 AC_DEFINE(HAVE_DLD_INIT)])]) | 4070 AC_DEFINE(HAVE_DLOPEN) |
4083 fi | 4071 else |
4072 AC_CHECK_LIB(dld, shl_load, [ | |
4073 libdl=dld have_dl=yes; | |
4074 AC_DEFINE(HAVE_SHL_LOAD)], [ | |
4075 AC_CHECK_LIB(dld, dld_init, [ | |
4076 libdl=dld have_dl=yes; | |
4077 AC_DEFINE(HAVE_DLD_INIT)])]) | |
4078 fi | |
4079 fi dnl end !MS-Windows | |
4084 | 4080 |
4085 if test -n "$have_dl"; then | 4081 if test -n "$have_dl"; then |
4086 dnl XE_SHLIB_STUFF (in aclocal.m4) defines $can_build_shared | 4082 dnl XE_SHLIB_STUFF (in aclocal.m4) defines $can_build_shared |
4087 XE_SHLIB_STUFF | 4083 XE_SHLIB_STUFF |
4088 fi | 4084 fi |
4535 fi | 4531 fi |
4536 if test "$with_wmcommand" != no; then | 4532 if test "$with_wmcommand" != no; then |
4537 echo " - Handling WM_COMMAND properly." | 4533 echo " - Handling WM_COMMAND properly." |
4538 fi | 4534 fi |
4539 fi | 4535 fi |
4540 if test "$have_xaw" = "yes"; then | 4536 if test "$need_athena" = "yes"; then |
4541 echo " Compiling in support for the Athena widget set:" | 4537 echo " Compiling in support for the Athena widget set:" |
4542 echo " - Athena headers location: $athena_h_path" | 4538 echo " - Athena headers location: $athena_h_path" |
4543 echo " - Athena library to link: $athena_lib" | 4539 echo " - Athena library to link: $athena_lib" |
4544 fi | 4540 fi |
4545 case "$with_menubars" in | 4541 case "$with_menubars" in |
4628 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." | 4624 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." |
4629 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." | 4625 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." |
4630 test "$with_ldap" = yes && echo " Compiling in support for LDAP." | 4626 test "$with_ldap" = yes && echo " Compiling in support for LDAP." |
4631 if test "$with_postgresql" = yes; then | 4627 if test "$with_postgresql" = yes; then |
4632 echo " Compiling in support for PostgreSQL." | 4628 echo " Compiling in support for PostgreSQL." |
4633 if test "$with_postgresqlv7" = yes; then | 4629 echo " - Using PostgreSQL header file: $libpq_fe_h_file" |
4634 echo " - Using PostgreSQL V7 bindings." | 4630 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings." |
4635 fi | |
4636 if test -n "$postgres_h_path"; then | |
4637 echo " - PostgreSQL headers location: $postgres_h_path" | |
4638 fi | |
4639 fi | 4631 fi |
4640 | 4632 |
4641 echo " | 4633 echo " |
4642 Internationalization:" | 4634 Internationalization:" |
4643 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." | 4635 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." |
4656 echo " | 4648 echo " |
4657 Mail:" | 4649 Mail:" |
4658 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval." | 4650 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval." |
4659 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication." | 4651 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication." |
4660 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access." | 4652 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access." |
4661 echo " Compiling in support for \"$mail_locking\" mail spool file locking method." | 4653 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method." |
4662 | 4654 |
4663 echo " | 4655 echo " |
4664 Other Features:" | 4656 Other Features:" |
4665 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | 4657 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." |
4666 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." | 4658 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." |