comparison configure.in @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents 8ae895c67ce7
children e65d9cf16707
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
4 #### Guess values for system-dependent variables and create Makefiles. 4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version] AC_ACVERSION [ 5 #### Generated automatically using autoconf version] AC_ACVERSION [
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. 6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. 7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc. 8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing. 9 #### Copyright (C) 1995, 1996, 2002 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz. 10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston. 11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 12
13 ### Don't edit this script! 13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program 14 ### This script was automatically generated by the `autoconf' program
371 with_toolbars="" 371 with_toolbars=""
372 with_tty="" 372 with_tty=""
373 use_union_type="no" 373 use_union_type="no"
374 with_dnet="" 374 with_dnet=""
375 pdump="no" 375 pdump="no"
376 dnl dragndrop is still experimental. When it is stable, comment out the following line: 376 dnl dragndrop is still experimental, except on Windows. When it is stable, comment out the following line:
377 with_dragndrop="no" 377 with_dragndrop_default="no"
378 dnl Too annoying, even if mandated by IPv6 (and I'm not even sure of that) 378 dnl Too annoying, even if mandated by IPv6 (and I'm not even sure of that)
379 dnl #### Change this to yes when somebody understands IPv6 and handle bugs. 379 dnl #### Change this to yes when somebody understands IPv6 and handle bugs.
380 with_ipv6_cname="no" 380 with_ipv6_cname="no"
381 381
382 dnl ------------------ 382 dnl ------------------
478 with_xface | \ 478 with_xface | \
479 with_gif | \ 479 with_gif | \
480 with_jpeg | \ 480 with_jpeg | \
481 with_png | \ 481 with_png | \
482 with_tiff | \ 482 with_tiff | \
483 with_zlib | \
483 with_wmcommand | \ 484 with_wmcommand | \
484 with_xmu | \ 485 with_xmu | \
485 with_purify | \ 486 with_purify | \
486 with_quantify | \ 487 with_quantify | \
487 with_toolbars | \ 488 with_toolbars | \
488 with_tty | \ 489 with_tty | \
489 with_xfs | \ 490 with_xfs | \
490 with_i18n3 | \
491 with_mule | \ 491 with_mule | \
492 with_file_coding| \ 492 with_default_eol_detection | \
493 with_canna | \ 493 with_canna | \
494 with_wnn | \ 494 with_wnn | \
495 with_wnn6 | \ 495 with_wnn6 | \
496 with_workshop | \ 496 with_workshop | \
497 with_sparcworks | \ 497 with_sparcworks | \
1025 test "${error_check_glyphs=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GLYPHS) 1025 test "${error_check_glyphs=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GLYPHS)
1026 dnl debug=yes must be set when error checking is present. This should be 1026 dnl debug=yes must be set when error checking is present. This should be
1027 dnl fixed up. 1027 dnl fixed up.
1028 dnl debug implies other options 1028 dnl debug implies other options
1029 if test "${debug:=$beta}" = "yes"; then 1029 if test "${debug:=$beta}" = "yes"; then
1030 use_assertions=yes memory_usage_stats=yes 1030 use_assertions=yes
1031 XE_ADD_OBJS(debug.o) 1031 memory_usage_stats=yes
1032 XE_ADD_OBJS(tests.o)
1033 AC_DEFINE(DEBUG_XEMACS) 1032 AC_DEFINE(DEBUG_XEMACS)
1034 fi 1033 fi
1035 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) 1034 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS)
1036 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) 1035 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS)
1037 1036
1601 dnl Sun Development environment support 1600 dnl Sun Development environment support
1602 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias 1601 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1603 XE_CHECK_FEATURE_DEPENDENCY(workshop, tooltalk) 1602 XE_CHECK_FEATURE_DEPENDENCY(workshop, tooltalk)
1604 if test "$with_workshop" = "yes"; then 1603 if test "$with_workshop" = "yes"; then
1605 AC_DEFINE(SUNPRO) 1604 AC_DEFINE(SUNPRO)
1606 XE_ADD_OBJS(sunpro.o)
1607 fi 1605 fi
1608 1606
1609 if test "$with_clash_detection" != "no"; then 1607 if test "$with_clash_detection" != "no"; then
1610 AC_DEFINE(CLASH_DETECTION) 1608 AC_DEFINE(CLASH_DETECTION)
1611 XE_ADD_OBJS(filelock.o)
1612 fi 1609 fi
1613 1610
1614 dnl Choose a compiler from (in order) 1611 dnl Choose a compiler from (in order)
1615 dnl --compiler, env var CC, with_gcc=no && ${NON_GNU_CC:-cc}, AC_PROG_CC 1612 dnl --compiler, env var CC, with_gcc=no && ${NON_GNU_CC:-cc}, AC_PROG_CC
1616 test -n "$compiler" && CC="$compiler" 1613 test -n "$compiler" && CC="$compiler"
1914 dnl Should we take debugging options into consideration? 1911 dnl Should we take debugging options into consideration?
1915 if test "$GCC" = "yes"; then 1912 if test "$GCC" = "yes"; then
1916 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes" 1913 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
1917 dnl Yuck, bad compares have been worth at least 3 crashes! 1914 dnl Yuck, bad compares have been worth at least 3 crashes!
1918 CFLAGS="$CFLAGS -Wsign-compare" 1915 CFLAGS="$CFLAGS -Wsign-compare"
1919 dnl You get five zillion shadowing warnings with g++. 1916 dnl With g++, -Wshadow produces five zillion utterly random warnings --
1920 dnl Even with gcc, -Wshadow is questionable because of its complaints 1917 dnl a local var named `buffer' conflicts with `struct buffer' for
1921 dnl about parameters with the same names as global functions. 1918 dnl example. Even with gcc, -Wshadow is questionable because of its
1919 dnl complaints about parameters with the same names as global functions.
1922 if test "$xemacs_compiler" != "g++"; then 1920 if test "$xemacs_compiler" != "g++"; then
1923 CFLAGS="$CFLAGS -Wshadow" 1921 CFLAGS="$CFLAGS -Wshadow"
1924 fi 1922 fi
1925 dnl glibc is intentionally not `-Wpointer-arith'-clean. 1923 dnl glibc is intentionally not `-Wpointer-arith'-clean.
1926 dnl Ulrich Drepper has rejected patches to fix the glibc header files. 1924 dnl Ulrich Drepper has rejected patches to fix the glibc header files.
2644 test "${with_toolbars}" != no && with_toolbars=gtk 2642 test "${with_toolbars}" != no && with_toolbars=gtk
2645 test "${with_menubars}" != "no" && with_menubars=gtk 2643 test "${with_menubars}" != "no" && with_menubars=gtk
2646 test "${with_dialogs}" != "no" && with_dialogs=gtk 2644 test "${with_dialogs}" != "no" && with_dialogs=gtk
2647 test "${with_widgets}" != "no" && with_widgets=gtk 2645 test "${with_widgets}" != "no" && with_widgets=gtk
2648 2646
2649 XE_ADD_OBJS(console-gtk.o device-gtk.o event-gtk.o frame-gtk.o)
2650 XE_ADD_OBJS(objects-gtk.o redisplay-gtk.o glyphs-gtk.o)
2651 XE_ADD_OBJS(select-gtk.o gccache-gtk.o)
2652 XE_ADD_OBJS(gtk-xemacs.o ui-gtk.o)
2653
2654 dnl Check for libglade support (it rocks) 2647 dnl Check for libglade support (it rocks)
2655 OLD_CFLAGS="${CFLAGS}" 2648 OLD_CFLAGS="${CFLAGS}"
2656 OLD_CPPFLAGS="${CPPFLAGS}" 2649 OLD_CPPFLAGS="${CPPFLAGS}"
2657 OLD_LDFLAGS="${LDFLAGS}" 2650 OLD_LDFLAGS="${LDFLAGS}"
2658 CFLAGS="${GTK_CFLAGS} ${CFLAGS}" 2651 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
2927 XE_APPEND(netinstall, SRC_SUBDIR_DEPS) 2920 XE_APPEND(netinstall, SRC_SUBDIR_DEPS)
2928 XE_APPEND(netinstall, INSTALL_ARCH_DEP_SUBDIR) 2921 XE_APPEND(netinstall, INSTALL_ARCH_DEP_SUBDIR)
2929 fi 2922 fi
2930 2923
2931 install_pp="$blddir/lib-src/installexe.sh" 2924 install_pp="$blddir/lib-src/installexe.sh"
2932 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool, libs_system) 2925 XE_APPEND(-limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr, libs_system)
2933 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) 2926 if test "$with_dragndrop" != no; then
2927 XE_APPEND(msw, dragndrop_proto)
2928 with_dragndrop=yes
2929 fi
2934 if test "$window_system" != x11; then 2930 if test "$window_system" != x11; then
2935 window_system=msw 2931 window_system=msw
2936 test "$with_scrollbars" != "no" && with_scrollbars=msw \ 2932 test "$with_scrollbars" != "no" && with_scrollbars=msw
2937 && XE_ADD_OBJS(scrollbar-msw.o) 2933 test "$with_menubars" != "no" && with_menubars=msw
2938 test "$with_menubars" != "no" && with_menubars=msw \ 2934 test "$with_toolbars" != "no" && with_toolbars=msw
2939 && XE_ADD_OBJS(menubar-msw.o) 2935 test "$with_dialogs" != "no" && with_dialogs=msw
2940 test "$with_toolbars" != "no" && with_toolbars=msw \ 2936 test "$with_widgets" != "no" && with_widgets=msw
2941 && XE_ADD_OBJS(toolbar-msw.o)
2942 test "$with_dialogs" != "no" && with_dialogs=msw \
2943 && XE_ADD_OBJS(dialog-msw.o)
2944 test "$with_widgets" != "no" && with_widgets=msw
2945 else
2946 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-msw.o)
2947 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-msw.o)
2948 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-msw.o)
2949 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-msw.o)
2950 fi 2937 fi
2951 dnl check for our special version of select 2938 dnl check for our special version of select
2952 AC_TRY_RUN([#include <fcntl.h> 2939 AC_TRY_RUN([#include <fcntl.h>
2953 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], 2940 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }],
2954 [need_event_unixoid=yes; AC_DEFINE(HAVE_MSG_SELECT)]) 2941 [AC_DEFINE(HAVE_MSG_SELECT)])
2955 with_file_coding=yes
2956 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o)
2957 fi 2942 fi
2958 fi 2943 fi
2959 2944
2960 AC_SUBST(install_pp) 2945 AC_SUBST(install_pp)
2961 2946
2947 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default"
2962 test -z "$window_system" && window_system="none" 2948 test -z "$window_system" && window_system="none"
2963 2949
2964 dnl Test for features that require a window system - ANY window system 2950 dnl Test for features that require a window system - ANY window system
2965 if test "$window_system" = "none"; then 2951 if test "$window_system" = "none"; then
2966 for feature in menubars scrollbars toolbars dialogs dragndrop xface 2952 for feature in menubars scrollbars toolbars dialogs dragndrop xface
3007 dnl Balloon Help requires the Shape extension, not available everywhere, 2993 dnl Balloon Help requires the Shape extension, not available everywhere,
3008 dnl for example not on AIX 4.3. 2994 dnl for example not on AIX 4.3.
3009 if test "$with_x11" = "yes"; then 2995 if test "$with_x11" = "yes"; then
3010 AC_CHECK_HEADER(X11/extensions/shape.h, [ 2996 AC_CHECK_HEADER(X11/extensions/shape.h, [
3011 AC_DEFINE(HAVE_BALLOON_HELP) 2997 AC_DEFINE(HAVE_BALLOON_HELP)
3012 XE_ADD_OBJS(balloon_help.o balloon-x.o)]) 2998 ])
3013 fi 2999 fi
3014 3000
3015 dnl FSF 19.29 has some bitmapdir stuff here. 3001 dnl FSF 19.29 has some bitmapdir stuff here.
3016 bitmapdir= 3002 bitmapdir=
3017 3003
3083 test -z "$with_tooltalk" && with_tooltalk=yes 3069 test -z "$with_tooltalk" && with_tooltalk=yes
3084 if test "$with_tooltalk" = "yes"; then 3070 if test "$with_tooltalk" = "yes"; then
3085 AC_DEFINE(TOOLTALK) 3071 AC_DEFINE(TOOLTALK)
3086 AC_DEFINE_UNQUOTED(TT_C_H_FILE, "$tt_c_h_file") 3072 AC_DEFINE_UNQUOTED(TT_C_H_FILE, "$tt_c_h_file")
3087 XE_PREPEND($tt_libs, libs_x) 3073 XE_PREPEND($tt_libs, libs_x)
3088 XE_ADD_OBJS(tooltalk.o)
3089 fi 3074 fi
3090 3075
3091 dnl Autodetect CDE 3076 dnl Autodetect CDE
3092 test -z "$with_cde" && { AC_CHECK_HEADER(Dt/Dt.h, , with_cde=no) } 3077 test -z "$with_cde" && { AC_CHECK_HEADER(Dt/Dt.h, , with_cde=no) }
3093 test -z "$with_cde" && { AC_CHECK_LIB(DtSvc, DtDndDragStart, [:], with_cde=no) } 3078 test -z "$with_cde" && { AC_CHECK_LIB(DtSvc, DtDndDragStart, [:], with_cde=no) }
3166 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { AC_CHECK_LIB(ldap, ldap_open, with_ldap_krbdes=yes, with_ldap_krbdes=no, -llber -lkrb -ldes) } 3151 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { AC_CHECK_LIB(ldap, ldap_open, with_ldap_krbdes=yes, with_ldap_krbdes=no, -llber -lkrb -ldes) }
3167 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes 3152 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
3168 fi 3153 fi
3169 if test "$with_ldap" = "yes"; then 3154 if test "$with_ldap" = "yes"; then
3170 AC_DEFINE(HAVE_LDAP) 3155 AC_DEFINE(HAVE_LDAP)
3171 XE_ADD_OBJS(eldap.o)
3172 if test "$with_ldap_nolber" = "yes" ; then 3156 if test "$with_ldap_nolber" = "yes" ; then
3173 XE_PREPEND(-lldap, LIBS) 3157 XE_PREPEND(-lldap, LIBS)
3174 else 3158 else
3175 if test "$with_ldap_krb" = "yes" ; then 3159 if test "$with_ldap_krb" = "yes" ; then
3176 XE_PREPEND(-lkrb, LIBS) 3160 XE_PREPEND(-lkrb, LIBS)
3209 AC_CHECK_LIB(pq,PQconnectStart, [ 3193 AC_CHECK_LIB(pq,PQconnectStart, [
3210 with_postgresqlv7=yes; 3194 with_postgresqlv7=yes;
3211 AC_DEFINE(HAVE_POSTGRESQLV7)]) 3195 AC_DEFINE(HAVE_POSTGRESQLV7)])
3212 AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file") 3196 AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file")
3213 XE_PREPEND(-lpq, LIBS) 3197 XE_PREPEND(-lpq, LIBS)
3214 XE_ADD_OBJS(postgresql.o)
3215 elif test "$with_postgresql" = "yes"; then 3198 elif test "$with_postgresql" = "yes"; then
3216 XE_DIE("Required PostgreSQL support cannot be provided. Check --site-prefixes.") 3199 XE_DIE("Required PostgreSQL support cannot be provided. Check --site-prefixes.")
3217 fi 3200 fi
3218 fi 3201 fi
3219 3202
3319 dnl but patent problems, etc. sort of squashed that idea. 3302 dnl but patent problems, etc. sort of squashed that idea.
3320 dnl We default to building with builtin GIF decoding 3303 dnl We default to building with builtin GIF decoding
3321 if test "$with_gif" != "no"; then 3304 if test "$with_gif" != "no"; then
3322 with_gif="yes" 3305 with_gif="yes"
3323 AC_DEFINE(HAVE_GIF) 3306 AC_DEFINE(HAVE_GIF)
3324 XE_ADD_OBJS(dgif_lib.o gif_io.o)
3325 fi 3307 fi
3326 3308
3327 dnl Too many stupid linkers can't detect cascaded lib dependencies until runtime 3309 dnl Too many stupid linkers can't detect cascaded lib dependencies until runtime
3328 dnl So we always search for libz compression support. 3310 dnl So we always search for libz compression support.
3329 if test "$with_png $with_tiff" != "no no"; then 3311 if test "$with_png $with_tiff" != "no no"; then
3550 with_menubars="lucid" ;; 3532 with_menubars="lucid" ;;
3551 esac 3533 esac
3552 case "$with_dialogs" in "" | "yes" | "lucid" ) 3534 case "$with_dialogs" in "" | "yes" | "lucid" )
3553 if test "$have_motif" = "yes"; then with_dialogs="motif" 3535 if test "$have_motif" = "yes"; then with_dialogs="motif"
3554 elif test "$have_xaw" = "yes"; then with_dialogs="athena" 3536 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
3537 elif test "$with_msw" = "yes"; then with_dialogs="msw"
3555 else with_dialogs=no 3538 else with_dialogs=no
3556 fi ;; 3539 fi ;;
3557 esac 3540 esac
3558 case "$with_scrollbars" in "" | "yes" ) 3541 case "$with_scrollbars" in "" | "yes" )
3559 with_scrollbars="lucid" ;; 3542 with_scrollbars="lucid" ;;
3560 esac 3543 esac
3561 case "$with_widgets" in "" | "yes" | "lucid") 3544 case "$with_widgets" in "" | "yes" | "lucid")
3562 if test "$have_motif" = "yes"; then with_widgets="motif" 3545 if test "$have_motif" = "yes"; then with_widgets="motif"
3563 elif test "$have_xaw" = "yes"; then with_widgets="athena" 3546 elif test "$have_xaw" = "yes"; then with_widgets="athena"
3547 elif test "$with_msw" = "yes"; then with_widgets="msw"
3564 else with_widgets=no 3548 else with_widgets=no
3565 fi ;; 3549 fi ;;
3566 esac 3550 esac
3567 3551
3568 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets" 3552 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
3650 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) 3634 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF)
3651 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) 3635 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF)
3652 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) 3636 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF)
3653 test "$with_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF) 3637 test "$with_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF)
3654 3638
3655 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o)
3656 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o)
3657 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o)
3658 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o)
3659
3660 if test "$with_gtk" = "yes"; then
3661 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-gtk.o)
3662 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-gtk.o)
3663 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-gtk.o)
3664 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-common.o toolbar-gtk.o)
3665 test "$all_widgets" != "no no no no no" && XE_ADD_OBJS(gui-gtk.o)
3666 fi
3667
3668 if test "$with_x11" = "yes"; then
3669 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o)
3670 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o)
3671 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-x.o)
3672 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-common.o toolbar-x.o)
3673 test "$all_widgets" != "no no no no no" && XE_ADD_OBJS(gui-x.o)
3674 fi
3675
3676 dnl ---------------------- 3639 dnl ----------------------
3677 dnl Mule-dependent options 3640 dnl Mule-dependent options
3678 dnl ---------------------- 3641 dnl ----------------------
3679 3642
3680 test -z "$with_mule" && with_mule=no 3643 test -z "$with_mule" && with_mule=no
3684 dnl echo "Please install the XEmacs/Mule tarball or" 3647 dnl echo "Please install the XEmacs/Mule tarball or"
3685 dnl echo "rerun configure with --with-mule=no" 3648 dnl echo "rerun configure with --with-mule=no"
3686 dnl exit 1 3649 dnl exit 1
3687 dnl fi 3650 dnl fi
3688 3651
3689 if test "$with_file_coding" = "no" && test "$with_mule" = "yes"; then 3652 if test "$with_default_eol_detection" = "yes"; then
3690 AC_MSG_WARN([--with-file-coding forced to \`yes': Required for Mule support]) 3653 AC_DEFINE(HAVE_DEFAULT_EOL_DETECTION)
3691 with_file_coding=yes 3654 fi
3692 fi
3693
3694 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
3695 AC_DEFINE(FILE_CODING)
3696 XE_ADD_OBJS(file-coding.o)
3697 fi
3698
3699 dnl will change to yes as soon as my mule ws is merged in.
3700 test -z "$with_file_coding" && with_file_coding=no
3701 3655
3702 if test "$with_mule" = "yes" ; then 3656 if test "$with_mule" = "yes" ; then
3703 AC_CHECKING(for Mule-related features) 3657 AC_CHECKING(for Mule-related features)
3704 AC_DEFINE(MULE) 3658 AC_DEFINE(MULE)
3705 AC_DEFINE(FILE_CODING)
3706 XE_ADD_OBJS(mule.o mule-ccl.o mule-charset.o file-coding.o)
3707 3659
3708 dnl Use -lintl to get internationalized strerror for Mule 3660 dnl Use -lintl to get internationalized strerror for Mule
3709 AC_CHECK_HEADERS(libintl.h) 3661 AC_CHECK_HEADERS(libintl.h)
3710 AC_CHECK_LIB(intl, strerror) 3662 AC_CHECK_LIB(intl, strerror)
3711 3663
3768 fi 3720 fi
3769 test -z "$with_wnn" && with_wnn=yes 3721 test -z "$with_wnn" && with_wnn=yes
3770 if test "$with_wnn" = "yes"; then 3722 if test "$with_wnn" = "yes"; then
3771 AC_DEFINE(HAVE_WNN) 3723 AC_DEFINE(HAVE_WNN)
3772 XE_PREPEND(-l$libwnn, libs_x) 3724 XE_PREPEND(-l$libwnn, libs_x)
3773 XE_ADD_OBJS(mule-wnnfns.o)
3774 if test "$with_wnn6" != "no"; then 3725 if test "$with_wnn6" != "no"; then
3775 AC_CHECK_LIB($libwnn, jl_fi_dic_list, with_wnn6=yes) 3726 AC_CHECK_LIB($libwnn, jl_fi_dic_list, with_wnn6=yes)
3776 test "$with_wnn6" = "yes" && AC_DEFINE(WNN6) 3727 test "$with_wnn6" = "yes" && AC_DEFINE(WNN6)
3777 fi 3728 fi
3778 fi 3729 fi
3798 test -z "$with_canna" && { AC_CHECK_LIB(canna,jrKanjiControl,[:],with_canna=no) } 3749 test -z "$with_canna" && { AC_CHECK_LIB(canna,jrKanjiControl,[:],with_canna=no) }
3799 test -z "$with_canna" && with_canna=yes 3750 test -z "$with_canna" && with_canna=yes
3800 if test "$with_canna" = "yes"; then 3751 if test "$with_canna" = "yes"; then
3801 AC_DEFINE(HAVE_CANNA) 3752 AC_DEFINE(HAVE_CANNA)
3802 XE_PREPEND(-lcanna -lRKC, libs_x) 3753 XE_PREPEND(-lcanna -lRKC, libs_x)
3803 XE_ADD_OBJS(mule-canna.o)
3804 fi 3754 fi
3805 3755
3806 else dnl "$with_mule" = "no" 3756 else dnl "$with_mule" = "no"
3807 for feature in xim canna wnn; do 3757 for feature in xim canna wnn; do
3808 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 3758 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
3819 dnl AIX needs the following library for use with Motif 3769 dnl AIX needs the following library for use with Motif
3820 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) 3770 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)])
3821 XE_COMPUTE_RUNPATH() 3771 XE_COMPUTE_RUNPATH()
3822 fi 3772 fi
3823 3773
3824 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask) 3774 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask)
3825 3775
3826 dnl ---------------------------------------------------------------- 3776 dnl ----------------------------------------------------------------
3827 dnl Check for Unixoid pty/process support. 3777 dnl Check for Unixoid pty/process support.
3828 dnl ---------------------------------------------------------------- 3778 dnl ----------------------------------------------------------------
3829 3779
3861 AC_CHECK_HEADERS(stropts.h) 3811 AC_CHECK_HEADERS(stropts.h)
3862 if test "$ac_cv_header_stropts_h" = "yes"; then 3812 if test "$ac_cv_header_stropts_h" = "yes"; then
3863 AC_CHECK_FUNCS(isastream) 3813 AC_CHECK_FUNCS(isastream)
3864 AC_CHECK_HEADERS(strtio.h) dnl TIOCSIGNAL 3814 AC_CHECK_HEADERS(strtio.h) dnl TIOCSIGNAL
3865 fi 3815 fi
3866
3867 dnl Use our own realpath always.
3868 XE_ADD_OBJS(realpath.o)
3869 3816
3870 dnl Check whether the system provides getloadavg(). 3817 dnl Check whether the system provides getloadavg().
3871 AC_CHECK_FUNCS(getloadavg) 3818 AC_CHECK_FUNCS(getloadavg)
3872 3819
3873 if test "$ac_cv_func_getloadavg" = "yes"; then 3820 if test "$ac_cv_func_getloadavg" = "yes"; then
3985 if test "$__DECC" != "yes"; then 3932 if test "$__DECC" != "yes"; then
3986 AC_FUNC_ALLOCA 3933 AC_FUNC_ALLOCA
3987 test -n "$ALLOCA" && XE_ADD_OBJS($ALLOCA) 3934 test -n "$ALLOCA" && XE_ADD_OBJS($ALLOCA)
3988 fi 3935 fi
3989 3936
3990 dnl Check whether vfork exists and works correctly. (This does more
3991 dnl than just check for its existence.) If so, it defines HAVE_VFORK_H.
3992 dnl If not, it defines vfork to be fork.
3993 AC_FUNC_VFORK
3994
3995 dnl Check whether strcoll exists and works correctly. (This does more 3937 dnl Check whether strcoll exists and works correctly. (This does more
3996 dnl than just check for its existence.) If so, it defines HAVE_STRCOLL. 3938 dnl than just check for its existence.) If so, it defines HAVE_STRCOLL.
3997 AC_FUNC_STRCOLL 3939 AC_FUNC_STRCOLL
3998 3940
3999 dnl If `getpgrp' takes no argument (the POSIX.1 version), define 3941 dnl If `getpgrp' takes no argument (the POSIX.1 version), define
4245 test -z "$with_tty" && with_tty=yes 4187 test -z "$with_tty" && with_tty=yes
4246 4188
4247 if test "$with_tty" = "yes" ; then 4189 if test "$with_tty" = "yes" ; then
4248 AC_CHECKING(for TTY-related features) 4190 AC_CHECKING(for TTY-related features)
4249 AC_DEFINE(HAVE_TTY) 4191 AC_DEFINE(HAVE_TTY)
4250 XE_ADD_OBJS(console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o)
4251 4192
4252 dnl Autodetect ncurses. 4193 dnl Autodetect ncurses.
4253 if test -z "$with_ncurses"; then 4194 if test -z "$with_ncurses"; then
4254 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no) 4195 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no)
4255 fi 4196 fi
4304 dnl Autodetect gpm 4245 dnl Autodetect gpm
4305 test -z "$with_gpm" && { AC_CHECK_HEADER(gpm.h, , with_gpm=no) } 4246 test -z "$with_gpm" && { AC_CHECK_HEADER(gpm.h, , with_gpm=no) }
4306 test -z "$with_gpm" && { AC_CHECK_LIB(gpm, Gpm_Open, with_gpm=yes, with_gpm=no) } 4247 test -z "$with_gpm" && { AC_CHECK_LIB(gpm, Gpm_Open, with_gpm=yes, with_gpm=no) }
4307 if test "$with_gpm" = "yes"; then 4248 if test "$with_gpm" = "yes"; then
4308 AC_DEFINE(HAVE_GPM) 4249 AC_DEFINE(HAVE_GPM)
4309 XE_ADD_OBJS(gpmevent.o)
4310 XE_PREPEND(-lgpm, LIBS) 4250 XE_PREPEND(-lgpm, LIBS)
4311 fi 4251 fi
4312 4252
4313 else dnl "$with_tty" = "no" 4253 else dnl "$with_tty" = "no"
4314 for feature in ncurses gpm; do 4254 for feature in ncurses gpm; do
4316 AC_MSG_WARN([--with-${feature} ignored: Not valid without TTY support]) 4256 AC_MSG_WARN([--with-${feature} ignored: Not valid without TTY support])
4317 fi 4257 fi
4318 eval "with_${feature}=no" 4258 eval "with_${feature}=no"
4319 done 4259 done
4320 fi dnl with_tty 4260 fi dnl with_tty
4321
4322 dnl Do we need event-unixoid.o ?
4323 dnl This is needed for X, or for TTY, or for MSWIN w/Cygwin select()
4324 dnl [but not Mingw MSWIN]
4325 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && XE_ADD_OBJS(event-unixoid.o)
4326 4261
4327 dnl Database support 4262 dnl Database support
4328 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. 4263 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
4329 dnl On FreeBSD, both DB and DBM are part of libc. 4264 dnl On FreeBSD, both DB and DBM are part of libc.
4330 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. 4265 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm.
4420 fi 4355 fi
4421 4356
4422 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 4357 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
4423 != "no no no"; then 4358 != "no no no"; then
4424 AC_DEFINE(HAVE_DATABASE) 4359 AC_DEFINE(HAVE_DATABASE)
4425 XE_ADD_OBJS(database.o)
4426 fi 4360 fi
4427 4361
4428 dnl Socks support 4362 dnl Socks support
4429 if test "$with_socks" = "yes"; then 4363 if test "$with_socks" = "yes"; then
4430 AC_CHECK_LIB(socks, SOCKSinit) 4364 AC_CHECK_LIB(socks, SOCKSinit)
4474 XE_SHLIB_STUFF 4408 XE_SHLIB_STUFF
4475 fi 4409 fi
4476 4410
4477 if test "$can_build_shared" = "yes"; then 4411 if test "$can_build_shared" = "yes"; then
4478 AC_DEFINE(HAVE_SHLIB) 4412 AC_DEFINE(HAVE_SHLIB)
4479 XE_ADD_OBJS(sysdll.o emodules.o)
4480 XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR) 4413 XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR)
4481 test -n "$libdl" && XE_PREPEND(-l${libdl}, LIBS) 4414 test -n "$libdl" && XE_PREPEND(-l${libdl}, LIBS)
4482 AC_CHECK_FUNCS(dlerror _dlerror) 4415 AC_CHECK_FUNCS(dlerror _dlerror)
4483 with_modules=yes 4416 with_modules=yes
4484 else 4417 else
4511 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed" 4444 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
4512 echo "*** PANIC *** on your system. Don't do that." 4445 echo "*** PANIC *** on your system. Don't do that."
4513 exit 1]) 4446 exit 1])
4514 4447
4515 dnl Process support 4448 dnl Process support
4516 if test "$win32_processes" = "yes"; then 4449 if test "$win32_processes" != "yes"; then
4517 XE_ADD_OBJS(process-nt.o)
4518 else
4519 AC_DEFINE(HAVE_UNIX_PROCESSES) 4450 AC_DEFINE(HAVE_UNIX_PROCESSES)
4520 XE_ADD_OBJS(process-unix.o)
4521 fi 4451 fi
4522 4452
4523 dnl -------------------------------- 4453 dnl --------------------------------
4524 dnl Compute SUBST-itutable variables 4454 dnl Compute SUBST-itutable variables
4525 dnl -------------------------------- 4455 dnl --------------------------------
4846 if test "$GNU_MALLOC" = "yes"; then AC_DEFINE(GNU_MALLOC) 4776 if test "$GNU_MALLOC" = "yes"; then AC_DEFINE(GNU_MALLOC)
4847 elif test "$with_system_malloc" = "yes"; then AC_DEFINE(USE_SYSTEM_MALLOC) 4777 elif test "$with_system_malloc" = "yes"; then AC_DEFINE(USE_SYSTEM_MALLOC)
4848 elif test "$with_debug_malloc" = "yes"; then AC_DEFINE(USE_DEBUG_MALLOC) 4778 elif test "$with_debug_malloc" = "yes"; then AC_DEFINE(USE_DEBUG_MALLOC)
4849 AC_DEFINE(USE_SYSTEM_MALLOC) 4779 AC_DEFINE(USE_SYSTEM_MALLOC)
4850 fi 4780 fi
4851 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3)
4852 test "$GCC" = "yes" && AC_DEFINE(USE_GCC) 4781 test "$GCC" = "yes" && AC_DEFINE(USE_GCC)
4853 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) 4782 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET)
4854 test "$quick_build" = "yes" && AC_DEFINE(QUICK_BUILD) 4783 test "$quick_build" = "yes" && AC_DEFINE(QUICK_BUILD)
4855 test "$with_purify" = "yes" && AC_DEFINE(PURIFY) 4784 test "$with_purify" = "yes" && AC_DEFINE(PURIFY)
4856 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) 4785 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY)
5047 fi 4976 fi
5048 4977
5049 echo " 4978 echo "
5050 Internationalization:" 4979 Internationalization:"
5051 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." 4980 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
5052 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
5053 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)." 4981 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
5054 test "$with_xim" = motif && echo " - Using Motif to provide XIM support." 4982 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
5055 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support." 4983 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
5056 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar." 4984 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
5057 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." 4985 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
5058 if test "$with_wnn" = yes; then 4986 if test "$with_wnn" = yes; then
5059 echo " Compiling in support for the WNN input method on Mule." 4987 echo " Compiling in support for the WNN input method on Mule."
5060 test "$with_wnn6" = yes && echo " - Using WNN version 6." 4988 test "$with_wnn6" = yes && echo " - Using WNN version 6."
5061 fi 4989 fi
5062 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
5063 4990
5064 echo " 4991 echo "
5065 Mail:" 4992 Mail:"
5066 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval." 4993 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
5067 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication." 4994 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."