# HG changeset patch # User Ben Wing # Date 1263371317 21600 # Node ID 1d775c6304d1105ab43f27e94f3daedd2801d812 # Parent 3465c3161feabcee83b10d6794a0d03ff51998fb Use with-FOO consistently instead of enable-FOO INSTALL, PROBLEMS, configure, configure.ac: Rename all instances of enable-FOO to with-FOO. enable-FOO has long been aliased to with-FOO and we still preserve this, but formerly we randomly used enable-FOO but with-BAR. diff -r 3465c3161fea -r 1d775c6304d1 ChangeLog --- a/ChangeLog Wed Jan 13 01:55:56 2010 -0600 +++ b/ChangeLog Wed Jan 13 02:28:37 2010 -0600 @@ -1,3 +1,15 @@ +2010-01-13 Ben Wing + + * INSTALL: + * PROBLEMS: + * configure: + * configure.ac (XE_COMPLEX_ARG): + * configure.ac (XE_EXPAND_VARIABLE): + * configure.ac (TAB): + Rename all instances of enable-FOO to with-FOO. enable-FOO has long + been aliased to with-FOO and we still preserve this, but formerly + we randomly used enable-FOO but with-BAR. + 2010-01-11 Ben Wing * configure: diff -r 3465c3161fea -r 1d775c6304d1 INSTALL --- a/INSTALL Wed Jan 13 01:55:56 2010 -0600 +++ b/INSTALL Wed Jan 13 02:28:37 2010 -0600 @@ -460,10 +460,10 @@ and is intended for use only by the developers. It may be obtained from . -The `--enable-debug' and `--enable-error-checking' options are primarily -useful to the developers. `--enable-debug' incorporates code for +The `--with-debug' and `--with-error-checking' options are primarily +useful to the developers. `--with-debug' incorporates code for performing various tests, but does not impose a speed penalty. -`--enable-error-checking' adds additional tests to many of the commonly +`--with-error-checking' adds additional tests to many of the commonly used macros, and imposes a speed penalty. Using either or both of these options can make bug reports more useful to the developers. diff -r 3465c3161fea -r 1d775c6304d1 PROBLEMS --- a/PROBLEMS Wed Jan 13 01:55:56 2010 -0600 +++ b/PROBLEMS Wed Jan 13 02:28:37 2010 -0600 @@ -60,7 +60,7 @@ *** How do I configure to get the buffer tabs/progress bars? These features depend on support for "native widgets". Use the ---enable-widgets option to configure. Configuration of widgets is +--with-widgets option to configure. Configuration of widgets is automatic for "modern" toolkits (MS Windows, GTK, and Motif), but if you are using Xt and the Athena widgets, you will probably want to specify a "3d" widget set. See configure --usage, and don't forget to @@ -301,7 +301,7 @@ Larry Auton writes: Beware of not specifying - --enable-dialogs=athena + --with-dialogs=athena if it builds with the motif dialogs [boom!] you're a dead man. @@ -324,7 +324,7 @@ defined in string.h - basically anything the compiler knows how to inline.) -*** On AIX 4.3, you must specify --enable-dialogs=athena with configure +*** On AIX 4.3, you must specify --with-dialogs=athena with configure *** The libXt shipped with AIX 4.3 up to 4.3.2 is broken. This causes xemacs -nw to fail in various ways. The official APAR is this: @@ -392,7 +392,7 @@ are caused by using GNU ld. There are several workarounds available: In XEmacs 21.2 or later, configure using the new portable dumper -(--enable-pdump). +(--with-pdump). Alternatively, you can link using the Sun version of ld, which is normally held in /usr/ccs/bin. This can be done by one of: @@ -559,7 +559,7 @@ passes the result to something that things foo_struct is a bit bigger, trashing memory.... -Here's typical crash backtrace. With --enable-pdump, this occurs +Here's typical crash backtrace. With --with-pdump, this occurs usually at startup under X windows and xemacs -nw at least starts, while without --pdump a similar crash is observed during build. @@ -582,7 +582,7 @@ The MIPSpro Compiler (at least version 7.2.1) can't seem to handle the union type properly, and fails to compile src/glyphs.c. To avoid this -problem, always build --enable-union-type=no (but that's the default, so +problem, always build --with-union-type=no (but that's the default, so you should only see this problem if you're an XEmacs maintainer). *** Linking with -rpath on IRIX. @@ -711,7 +711,7 @@ /path_to_xemacs_source/configure --with-gcc=no \ --with-site-includes=/usr/local/include \ --with-site-libraries=/usr/local/lib \ - --with-xpm --with-xface --enable-sound=nas + --with-xpm --with-xface --with-sound=nas This version now supports ELF builds. I highly recommend this to reduce the in-core footprint of XEmacs. This is now how I compile @@ -720,7 +720,7 @@ /path_to_XEmacs_source/configure --with-gcc=no \ --with-site-includes=/usr/local/include --with-site-libraries=/usr/local/lib \ - --with-xpm --with-xface --enable-sound=nas --with-dynamic + --with-xpm --with-xface --with-sound=nas --with-dynamic The compiler known as icc [ supplied with the OpenServer 5 Development System ] generates a working binary, but it takes forever to generate @@ -733,7 +733,7 @@ /path_to_XEmacs_source/configure --with-gcc=no \ --with-site-includes=/usr/local/include \ --with-site-libraries=/usr/local/lib \ - --with-xpm --with-xface --enable-sound=nas --with-dynamic \ + --with-xpm --with-xface --with-sound=nas --with-dynamic \ --with-compiler="icc" NOTE I have the xpm, xface, and audio libraries and includes in @@ -1394,7 +1394,7 @@ undefined symbols. The only known case in which this happens is if you are using gcc, you -configured with --enable-error-checking=all and --enable-modules, and +configured with --with-error-checking=all and --with-modules, and you compiled with no optimization. If you encounter this problem in any other situation, please inform xemacs-beta@xemacs.org. @@ -1647,14 +1647,14 @@ that sorts the ELF reloc sections in the executable, giving dramatic speedups in startup for large executables. It also confuses the traditional unexec code in XEmacs, leading to the core dump. The -solution is to use the --enable-pdump or --with-ldflags='-z nocombreloc' +solution is to use the --with-pdump or --with-ldflags='-z nocombreloc' options to configure. Recent 21.4 and 12.5 autodetect this in configure. Red Hat and SuSE (at least) distributed a prerelease version of ld (versions around 2.11.90.x.y) where autodetection is impossible. The recommended procedure is to upgrade to binutils >= 2.12 and rerun -configure. Otherwise you must apply the flags by hand. --enable-pdump +configure. Otherwise you must apply the flags by hand. --with-pdump is recommended. *** I want XEmacs to use the Alt key, not the XXX key, for Meta commands diff -r 3465c3161fea -r 1d775c6304d1 configure --- a/configure Wed Jan 13 01:55:56 2010 -0600 +++ b/configure Wed Jan 13 02:28:37 2010 -0600 @@ -1669,9 +1669,9 @@ flags inserted for warnings, debugging or optimization; setting this does not disable the insertion of those flags. Use configure settings - such as `--with-optimization=no' or - `enable-debug=no' to turn them off, or override them - with `--with-cflags-optimization', + such as `--with-optimization=no' or `with-debug=no' + to turn them off, or override them with + `--with-cflags-optimization', `--with-cflags-debugging', or `with-cflags-warning'. --with-cflags-warning=FLAGS Override compiler flags used to control warnings. @@ -1783,8 +1783,7 @@ emulate Motif (mostly) but are faster. *WARNING* The Motif menubar is currently broken. Lucid menubars are the default. - --with-scrollbars=TYPE - Use TYPE scrollbars 'yes', '`no', `lucid', `motif', + --with-scrollbars=TYPE Use TYPE scrollbars 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). Lucid scrollbars are the default. --with-dialogs=TYPE Use TYPE dialog boxes 'yes', '`no', `lucid', @@ -1802,8 +1801,7 @@ GTK). *WARNING* The Drag'n'drop support is under development and is considered experimental. --with-cde Compile in support for CDE drag and drop. - --with-external-widget - Support XEmacs server for text widgets in other + --with-external-widget Support XEmacs server for text widgets in other applications. TTY (character terminal) options @@ -1864,8 +1862,8 @@ (proprietary). Requires Mule. --with-xfs Enable XFontSet support for internationalized menubar. Incompatible with `--with-xim=motif' and - `--with-xft'. `--with-menubars=lucid' (the - default) is desirable. + `--with-xft'. `--with-menubars=lucid' (the default) + is desirable. File-related options -------------------- @@ -1875,8 +1873,7 @@ type when reading a file. Applies to those platforms where auto-detection is off by default (non-Mule Unix). Has no effect otherwise. - --with-clash-detection - Disable use of lock files to detect multiple edits + --with-clash-detection Disable use of lock files to detect multiple edits of the same file. --with-zlib Support inflate (de)compression internally. @@ -4366,7 +4363,7 @@ eval "enable_sound_$y=\$_sound_${y}_default" unset _sound_${y}_default done -enable_sound_nas="" +with_sound_nas="" fi; # If --with-native-sound-lib or --without-native-sound-lib were given then copy the value to the # equivalent enable_native-sound-lib variable. @@ -4618,7 +4615,7 @@ unset _with_database_args _database_found x y _require_database -if test "$enable_database_dbm" = "yes" -a "$enable_database_gdbm" = "yes"; then +if test "$with_database_dbm" = "yes" -a "$with_database_gdbm" = "yes"; then (echo "$progname: Usage error:" echo " " "Only one of \`dbm' and \`gdbm' may be specified with the \`--with-database' option." @@ -4933,7 +4930,7 @@ withval="$with_kkcc" else - enable_kkcc=yes + with_kkcc=yes fi; # If --with-newgc or --without-newgc were given then copy the value to the @@ -5037,7 +5034,7 @@ eval "enable_vdb_$y=\$_vdb_${y}_default" unset _vdb_${y}_default done -enable_vdb="auto" +with_vdb="auto" fi; # If --with-modules or --without-modules were given then copy the value to the @@ -5087,7 +5084,7 @@ else - enable_bignum="no" + with_bignum="no" fi; # If --with-workshop or --without-workshop were given then copy the value to the @@ -5684,33 +5681,33 @@ if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi -test "${enable_error_checking_extents:=$beta}" = yes && $as_echo "#define ERROR_CHECK_EXTENTS 1" >>confdefs.h - -test "${enable_error_checking_types:=$beta}" = yes && $as_echo "#define ERROR_CHECK_TYPES 1" >>confdefs.h - -test "${enable_error_checking_text:=$beta}" = yes && $as_echo "#define ERROR_CHECK_TEXT 1" >>confdefs.h - -test "${enable_error_checking_gc:=$beta}" = yes && $as_echo "#define ERROR_CHECK_GC 1" >>confdefs.h - -test "${enable_error_checking_malloc:=$beta}" = yes && $as_echo "#define ERROR_CHECK_MALLOC 1" >>confdefs.h - -test "${enable_error_checking_byte_code:=$beta}" = yes && $as_echo "#define ERROR_CHECK_BYTE_CODE 1" >>confdefs.h - -test "${enable_error_checking_glyphs:=$beta}" = yes && $as_echo "#define ERROR_CHECK_GLYPHS 1" >>confdefs.h - -test "${enable_error_checking_display:=$beta}" = yes && $as_echo "#define ERROR_CHECK_DISPLAY 1" >>confdefs.h - -test "${enable_error_checking_structures:=$beta}" = yes && $as_echo "#define ERROR_CHECK_STRUCTURES 1" >>confdefs.h - -if test "${enable_debug:=$beta}" = "yes"; then - enable_assertions=yes - enable_memory_usage_stats=yes +test "${with_error_checking_extents:=$beta}" = yes && $as_echo "#define ERROR_CHECK_EXTENTS 1" >>confdefs.h + +test "${with_error_checking_types:=$beta}" = yes && $as_echo "#define ERROR_CHECK_TYPES 1" >>confdefs.h + +test "${with_error_checking_text:=$beta}" = yes && $as_echo "#define ERROR_CHECK_TEXT 1" >>confdefs.h + +test "${with_error_checking_gc:=$beta}" = yes && $as_echo "#define ERROR_CHECK_GC 1" >>confdefs.h + +test "${with_error_checking_malloc:=$beta}" = yes && $as_echo "#define ERROR_CHECK_MALLOC 1" >>confdefs.h + +test "${with_error_checking_byte_code:=$beta}" = yes && $as_echo "#define ERROR_CHECK_BYTE_CODE 1" >>confdefs.h + +test "${with_error_checking_glyphs:=$beta}" = yes && $as_echo "#define ERROR_CHECK_GLYPHS 1" >>confdefs.h + +test "${with_error_checking_display:=$beta}" = yes && $as_echo "#define ERROR_CHECK_DISPLAY 1" >>confdefs.h + +test "${with_error_checking_structures:=$beta}" = yes && $as_echo "#define ERROR_CHECK_STRUCTURES 1" >>confdefs.h + +if test "${with_debug:=$beta}" = "yes"; then + with_assertions=yes + with_memory_usage_stats=yes $as_echo "#define DEBUG_XEMACS 1" >>confdefs.h fi -test "$enable_assertions" = "yes" && $as_echo "#define USE_ASSERTIONS 1" >>confdefs.h - -test "$enable_memory_usage_stats" = "yes" && $as_echo "#define MEMORY_USAGE_STATS 1" >>confdefs.h +test "$with_assertions" = "yes" && $as_echo "#define USE_ASSERTIONS 1" >>confdefs.h + +test "$with_memory_usage_stats" = "yes" && $as_echo "#define MEMORY_USAGE_STATS 1" >>confdefs.h @@ -5866,14 +5863,14 @@ -if test -z "$enable_pdump"; then +if test -z "$with_pdump"; then case "$opsys" in - linux* ) enable_pdump=yes ;; darwin ) enable_pdump=yes ;; cygwin* ) enable_pdump=yes ;; * ) enable_pdump=no ;; - esac -fi - -if test "$enable_newgc" = "yes"; then - if test "$enable_vdb" = "auto"; then + linux* ) with_pdump=yes ;; darwin ) with_pdump=yes ;; cygwin* ) with_pdump=yes ;; * ) with_pdump=no ;; + esac +fi + +if test "$with_newgc" = "yes"; then + if test "$with_vdb" = "auto"; then case "$opsys" in darwin ) case "$machine" in i[3-9]86 ) check_vdb_posix=yes ;; @@ -5887,7 +5884,7 @@ * ) check_vdb_posix=yes ;; esac else - case "$enable_vdb" in + case "$with_vdb" in mach ) $as_echo "#define VDB_MACH 1" >>confdefs.h have_vdb_mach=yes ;; win32 ) $as_echo "#define VDB_WIN32 1" >>confdefs.h @@ -5944,7 +5941,7 @@ fi -if test "$enable_clash_detection" != "no"; then +if test "$with_clash_detection" != "no"; then $as_echo "#define CLASH_DETECTION 1" >>confdefs.h fi @@ -9371,9 +9368,9 @@ _ACEOF -test -z "$unexec" && enable_pdump=yes - -if test "$enable_pdump" = "yes"; then +test -z "$unexec" && with_pdump=yes + +if test "$with_pdump" = "yes"; then ordinary_link="yes" ld="${ordinary_ld}" start_files= @@ -9382,20 +9379,20 @@ lib_gcc= fi -test -z "$enable_kkcc" && enable_kkcc=yes - -if test -z "$enable_dump_in_exec"; then - if test "$enable_pdump" = "yes"; then - if test "$enable_newgc" = "yes"; then - enable_dump_in_exec=no +test -z "$with_kkcc" && with_kkcc=yes + +if test -z "$with_dump_in_exec"; then + if test "$with_pdump" = "yes"; then + if test "$with_newgc" = "yes"; then + with_dump_in_exec=no else - enable_dump_in_exec=yes - fi - fi -fi - -if test "$enable_newgc" = "yes"; then - enable_kkcc=yes + with_dump_in_exec=yes + fi + fi +fi + +if test "$with_newgc" = "yes"; then + with_kkcc=yes fi test "$verbose" = "yes" && \ @@ -9688,7 +9685,7 @@ $as_echo "no" >&6; } fi -if test "$enable_pdump" != "yes"; then +if test "$with_pdump" != "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"-z nocombreloc\" linker flag" >&5 $as_echo_n "checking for \"-z nocombreloc\" linker flag... " >&6; } case "`ld --help 2>&1`" in @@ -9772,10 +9769,10 @@ test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$verbose" = "yes"; then echo " xemacs will be linked with \"$objects_system\"" fi -test -n "$unexec" && test ! "$enable_pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$verbose" = "yes"; then +test -n "$unexec" && test ! "$with_pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$verbose" = "yes"; then echo " xemacs will be linked with \"$unexec\"" fi -test "$enable_pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$verbose" = "yes"; then +test "$with_pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$verbose" = "yes"; then echo " xemacs will be linked with \"dumper.o\"" fi @@ -11995,25 +11992,25 @@ for feature in scrollbars toolbars menubars dialogs widgets do - eval "feature_value=\${enable_${feature}}" + eval "feature_value=\${with_${feature}}" case "${feature_value}" in yes|no|gtk|"" ) ;; * ) feature_conflict_with_gtk=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-${feature}=${feature_value} is incompatible with --with-gtk" >&5 -$as_echo "$as_me: WARNING: --enable-${feature}=${feature_value} is incompatible with --with-gtk" >&2;} ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-${feature}=${feature_value} is incompatible with --with-gtk" >&5 +$as_echo "$as_me: WARNING: --with-${feature}=${feature_value} is incompatible with --with-gtk" >&2;} ;; esac done if test "${feature_conflict_with_gtk}" = "yes"; then { echo "Error:" "One or more GUI toolkit features conflict with GTK" >&2; exit 1; } fi - test "${enable_scrollbars}" != "no" && enable_scrollbars=gtk - test "${enable_toolbars}" != "no" && enable_toolbars=gtk - test "${enable_menubars}" != "no" && enable_menubars=gtk - test "${enable_dialogs}" != "no" && enable_dialogs=gtk - test "${enable_widgets}" != "no" && enable_widgets=gtk + test "${with_scrollbars}" != "no" && with_scrollbars=gtk + test "${with_toolbars}" != "no" && with_toolbars=gtk + test "${with_menubars}" != "no" && with_menubars=gtk + test "${with_dialogs}" != "no" && with_dialogs=gtk + test "${with_widgets}" != "no" && with_widgets=gtk OLD_CFLAGS="${CFLAGS}" OLD_CPPFLAGS="${CPPFLAGS}" @@ -13295,8 +13292,8 @@ if test "${x11_release}" = "4"; then - case "$enable_widgets" in - "" | "no") enable_widgets=no ;; + case "$with_widgets" in + "" | "no") with_widgets=no ;; *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;; esac fi @@ -13735,11 +13732,11 @@ fi if test "$window_system" != x11; then window_system=msw - test "$enable_scrollbars" != "no" && enable_scrollbars=msw - test "$enable_menubars" != "no" && enable_menubars=msw - test "$enable_toolbars" != "no" && enable_toolbars=msw - test "$enable_dialogs" != "no" && enable_dialogs=msw - test "$enable_widgets" != "no" && enable_widgets=msw + test "$with_scrollbars" != "no" && with_scrollbars=msw + test "$with_menubars" != "no" && with_menubars=msw + test "$with_toolbars" != "no" && with_toolbars=msw + test "$with_dialogs" != "no" && with_dialogs=msw + test "$with_widgets" != "no" && with_widgets=msw fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 @@ -13771,14 +13768,14 @@ if test "$window_system" = "none"; then for feature in menubars scrollbars toolbars dialogs dragndrop xface do - if eval "test -n \"\$enable_${feature}\" -a \"\$enable_${feature}\" != no" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-$feature ignored: Not valid without window system support" >&5 -$as_echo "$as_me: WARNING: --enable-$feature ignored: Not valid without window system support" >&2;} - fi - eval "enable_${feature}=no" - done -else - test -z "$enable_toolbars" && enable_toolbars=yes + if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-$feature ignored: Not valid without window system support" >&5 +$as_echo "$as_me: WARNING: --with-$feature ignored: Not valid without window system support" >&2;} + fi + eval "with_${feature}=no" + done +else + test -z "$with_toolbars" && with_toolbars=yes fi if test "$with_msw" != "yes"; then @@ -13795,7 +13792,7 @@ fi if test "$with_x11" != "yes"; then - for feature in with_tooltalk with_cde with_wmcommand with_xim enable_sound_nas + for feature in with_tooltalk with_cde with_wmcommand with_xim with_sound_nas do if eval "test -n \"\$${feature}\" -a \"\$${feature}\" != \"no\"" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --$feature ignored: Not valid without X support" >&5 @@ -13919,7 +13916,7 @@ fi -if test "$enable_modules" != "no"; then +if test "$with_modules" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module support" >&5 $as_echo_n "checking for module support... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 @@ -14676,22 +14673,22 @@ fi done - enable_modules=yes + with_modules=yes MOD_CC="../../lib-src/ellcc" MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src" INSTALLPATH="\$(moduledir)" MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM} OBJECT_TO_BUILD="\$(MODNAME).ell" else - if test "$enable_modules" = "yes"; then + if test "$with_modules" = "yes"; then { echo "Error:" "Required module support cannot be provided." >&2; exit 1; } else echo " No module support." fi - enable_modules=no - fi -fi -if test "$enable_modules" != "yes"; then + with_modules=no + fi +fi +if test "$with_modules" != "yes"; then MOD_CC="$XEMACS_CC" MODCFLAGS="\$(XE_CFLAGS) -I../../src -I\$(srcdir)/../../src" INSTALLPATH="" @@ -14700,7 +14697,7 @@ fi MODARCHDIR= MAKE_DOCFILE="../../lib-src/make-docfile" -with_modules=$enable_modules +with_modules=$with_modules @@ -15136,7 +15133,7 @@ LIBS="$save_LIBS" MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi need_modules_common=yes - if test "$enable_modules" = "yes"; then + if test "$with_modules" = "yes"; then INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi fi fi @@ -15309,7 +15306,7 @@ postgresql_libs="$pq_libs $postgresql_libs" && if test "$verbose" = "yes"; then echo " Prepending \"$pq_libs\" to \$postgresql_libs"; fi MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi need_modules_common=yes - if test "$enable_modules" = "yes"; then + if test "$with_modules" = "yes"; then INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi fi elif test "$with_postgresql" = "yes"; then @@ -16011,12 +16008,12 @@ $as_echo "" >&6; } fi -case "$enable_widgets" in +case "$with_widgets" in "" | "yes" | "athena") detect_athena=yes ;; *) detect_athena=no ;; esac -case "$enable_dialogs" in +case "$with_dialogs" in "" | "yes" | "athena") detect_athena=yes ;; esac @@ -16446,8 +16443,8 @@ * ) lucid_prefers_motif="yes" ;; esac -case "$enable_menubars" in "" | "yes" | "athena" ) - enable_menubars="lucid" ;; +case "$with_menubars" in "" | "yes" | "athena" ) + with_menubars="lucid" ;; esac if test "$with_xft_menubars" != "no" ; then if test "$with_xft_emacs" = "yes" -a "$with_menubars" != "no" ; then @@ -16456,55 +16453,55 @@ with_xft_menubars="no" fi fi -case "$enable_dialogs" in "" | "yes" | "lucid" ) +case "$with_dialogs" in "" | "yes" | "lucid" ) if test "$lucid_prefers_motif" = "yes"; then - if test "$have_motif" = "yes"; then enable_dialogs="motif" - elif test "$have_xaw" = "yes"; then enable_dialogs="athena" - elif test "$with_msw" = "yes"; then enable_dialogs="msw" - else enable_dialogs=no - fi - else - if test "$have_xaw" = "yes"; then enable_dialogs="athena" - elif test "$have_motif" = "yes"; then enable_dialogs="motif" - elif test "$with_msw" = "yes"; then enable_dialogs="msw" - else enable_dialogs=no + if test "$have_motif" = "yes"; then with_dialogs="motif" + elif test "$have_xaw" = "yes"; then with_dialogs="athena" + elif test "$with_msw" = "yes"; then with_dialogs="msw" + else with_dialogs=no + fi + else + if test "$have_xaw" = "yes"; then with_dialogs="athena" + elif test "$have_motif" = "yes"; then with_dialogs="motif" + elif test "$with_msw" = "yes"; then with_dialogs="msw" + else with_dialogs=no fi fi ;; esac -case "$enable_scrollbars" in "" | "yes" ) - enable_scrollbars="lucid" ;; -esac -case "$enable_widgets" in "" | "yes" | "lucid") +case "$with_scrollbars" in "" | "yes" ) + with_scrollbars="lucid" ;; +esac +case "$with_widgets" in "" | "yes" | "lucid") if test "$lucid_prefers_motif" = "yes"; then - if test "$have_motif" = "yes"; then enable_widgets="motif" - elif test "$have_xaw" = "yes"; then enable_widgets="athena" - elif test "$with_msw" = "yes"; then enable_widgets="msw" - else enable_widgets=no - fi - else - if test "$have_xaw" = "yes"; then enable_widgets="athena" - elif test "$have_motif" = "yes"; then enable_widgets="motif" - elif test "$with_msw" = "yes"; then enable_widgets="msw" - else enable_widgets=no + if test "$have_motif" = "yes"; then with_widgets="motif" + elif test "$have_xaw" = "yes"; then with_widgets="athena" + elif test "$with_msw" = "yes"; then with_widgets="msw" + else with_widgets=no + fi + else + if test "$have_xaw" = "yes"; then with_widgets="athena" + elif test "$have_motif" = "yes"; then with_widgets="motif" + elif test "$with_msw" = "yes"; then with_widgets="msw" + else with_widgets=no fi fi ;; esac if test "$with_xft_tabs" != "no" ; then - if test "$with_xft_emacs" = "yes" -a "$enable_widgets" != "no" ; then + if test "$with_xft_emacs" = "yes" -a "$with_widgets" != "no" ; then with_xft_tabs="yes" else with_xft_tabs="no" fi fi if test "$with_xft_gauges" != "no" ; then - if test "$with_xft_emacs" = "yes" -a "$enable_widgets" != "no" ; then + if test "$with_xft_emacs" = "yes" -a "$with_widgets" != "no" ; then with_xft_gauges="yes" else with_xft_gauges="no" fi fi -all_widgets="$enable_menubars $enable_scrollbars $enable_dialogs $enable_toolbars $enable_widgets" +all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets" case "$all_widgets" in *athena* ) @@ -16579,12 +16576,12 @@ need_motif=yes ;; esac -test "$enable_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi -test "$enable_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi -test "$enable_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi -test "$enable_widgets" != "no" && test "$enable_widgets" != "msw" && \ +test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi +test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi +test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi +test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi -case "$enable_widgets" in athena* ) +case "$with_widgets" in athena* ) lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;; esac case "$all_widgets" in *lucid* ) @@ -16595,47 +16592,47 @@ -test "$enable_scrollbars" = "athena" && $as_echo "#define LWLIB_SCROLLBARS_ATHENA 1" >>confdefs.h - -test "$enable_dialogs" = "athena" && $as_echo "#define LWLIB_DIALOGS_ATHENA 1" >>confdefs.h +test "$with_scrollbars" = "athena" && $as_echo "#define LWLIB_SCROLLBARS_ATHENA 1" >>confdefs.h + +test "$with_dialogs" = "athena" && $as_echo "#define LWLIB_DIALOGS_ATHENA 1" >>confdefs.h if test "$athena_3d" = "yes"; then - test "$enable_scrollbars" = "athena" && $as_echo "#define LWLIB_SCROLLBARS_ATHENA3D 1" >>confdefs.h - - test "$enable_dialogs" = "athena" && $as_echo "#define LWLIB_DIALOGS_ATHENA3D 1" >>confdefs.h - -fi - -case "$enable_widgets" in athena* ) $as_echo "#define LWLIB_WIDGETS_ATHENA 1" >>confdefs.h + test "$with_scrollbars" = "athena" && $as_echo "#define LWLIB_SCROLLBARS_ATHENA3D 1" >>confdefs.h + + test "$with_dialogs" = "athena" && $as_echo "#define LWLIB_DIALOGS_ATHENA3D 1" >>confdefs.h + +fi + +case "$with_widgets" in athena* ) $as_echo "#define LWLIB_WIDGETS_ATHENA 1" >>confdefs.h ;; esac -test "$enable_widgets" != "no" && test "$enable_widgets" != "msw" && \ +test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ $as_echo "#define LWLIB_TABS_LUCID 1" >>confdefs.h -test "$enable_menubars" != "no" && $as_echo "#define HAVE_MENUBARS 1" >>confdefs.h - -test "$enable_scrollbars" != "no" && $as_echo "#define HAVE_SCROLLBARS 1" >>confdefs.h - -test "$enable_dialogs" != "no" && $as_echo "#define HAVE_DIALOGS 1" >>confdefs.h - -test "$enable_toolbars" != "no" && $as_echo "#define HAVE_TOOLBARS 1" >>confdefs.h - -test "$enable_widgets" != "no" && $as_echo "#define HAVE_WIDGETS 1" >>confdefs.h - - -test "$enable_menubars" = "lucid" && $as_echo "#define LWLIB_MENUBARS_LUCID 1" >>confdefs.h - -test "$enable_scrollbars" = "lucid" && $as_echo "#define LWLIB_SCROLLBARS_LUCID 1" >>confdefs.h - - -test "$enable_menubars" = "motif" && $as_echo "#define LWLIB_MENUBARS_MOTIF 1" >>confdefs.h - -test "$enable_scrollbars" = "motif" && $as_echo "#define LWLIB_SCROLLBARS_MOTIF 1" >>confdefs.h - -test "$enable_dialogs" = "motif" && $as_echo "#define LWLIB_DIALOGS_MOTIF 1" >>confdefs.h - -test "$enable_widgets" = "motif" && $as_echo "#define LWLIB_WIDGETS_MOTIF 1" >>confdefs.h +test "$with_menubars" != "no" && $as_echo "#define HAVE_MENUBARS 1" >>confdefs.h + +test "$with_scrollbars" != "no" && $as_echo "#define HAVE_SCROLLBARS 1" >>confdefs.h + +test "$with_dialogs" != "no" && $as_echo "#define HAVE_DIALOGS 1" >>confdefs.h + +test "$with_toolbars" != "no" && $as_echo "#define HAVE_TOOLBARS 1" >>confdefs.h + +test "$with_widgets" != "no" && $as_echo "#define HAVE_WIDGETS 1" >>confdefs.h + + +test "$with_menubars" = "lucid" && $as_echo "#define LWLIB_MENUBARS_LUCID 1" >>confdefs.h + +test "$with_scrollbars" = "lucid" && $as_echo "#define LWLIB_SCROLLBARS_LUCID 1" >>confdefs.h + + +test "$with_menubars" = "motif" && $as_echo "#define LWLIB_MENUBARS_MOTIF 1" >>confdefs.h + +test "$with_scrollbars" = "motif" && $as_echo "#define LWLIB_SCROLLBARS_MOTIF 1" >>confdefs.h + +test "$with_dialogs" = "motif" && $as_echo "#define LWLIB_DIALOGS_MOTIF 1" >>confdefs.h + +test "$with_widgets" = "motif" && $as_echo "#define LWLIB_WIDGETS_MOTIF 1" >>confdefs.h test "$with_xft_menubars" = "yes" && $as_echo "#define USE_XFT_MENUBARS 1" >>confdefs.h @@ -16646,10 +16643,10 @@ -test -z "$enable_mule" && enable_mule=no - - -if test "$enable_default_eol_detection" = "yes"; then +test -z "$with_mule" && with_mule=no + + +if test "$with_default_eol_detection" = "yes"; then $as_echo "#define HAVE_DEFAULT_EOL_DETECTION 1" >>confdefs.h fi @@ -16657,7 +16654,7 @@ canna_libs= wnn_libs= -if test "$enable_mule" = "yes" ; then +if test "$with_mule" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mule-related features" >&5 $as_echo_n "checking for Mule-related features... " >&6; } $as_echo "#define MULE 1" >>confdefs.h @@ -16920,7 +16917,7 @@ with_xfs=no fi - if test "$with_xfs" = "yes" && test "$enable_menubars" = "lucid"; then + if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then $as_echo "#define USE_XFONTSET 1" >>confdefs.h if test "$with_xim" = "no" ; then @@ -18748,9 +18745,9 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } -test -n "$with_native_sound_lib" && enable_sound_native=yes - -if test "$enable_sound_native" != "no"; then +test -n "$with_native_sound_lib" && with_sound_native=yes + +if test "$with_sound_native" != "no"; then if test -n "$with_native_sound_lib"; then ac_fn_c_check_header_mongrel "$LINENO" "multimedia/audio_device.h" "ac_cv_header_multimedia_audio_device_h" "$ac_includes_default" if test "x$ac_cv_header_multimedia_audio_device_h" = x""yes; then : @@ -18985,23 +18982,23 @@ fi if test "$sound_found" = "yes"; then - enable_sound_native=yes - else - if test "$enable_sound_native" = "yes" ; then + with_sound_native=yes + else + if test "$with_sound_native" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No native libraries found. Disabling native sound support." >&5 $as_echo "$as_me: WARNING: No native libraries found. Disabling native sound support." >&2;} fi - enable_sound_native=no - fi -fi - -if test "$enable_sound_native" = "yes"; then + with_sound_native=no + fi +fi + +if test "$with_sound_native" = "yes"; then $as_echo "#define HAVE_NATIVE_SOUND 1" >>confdefs.h test -n "$with_native_sound_lib" && LIBS="$with_native_sound_lib $LIBS" && if test "$verbose" = "yes"; then echo " Prepending \"$with_native_sound_lib\" to \$LIBS"; fi fi -if test "$enable_sound_alsa" != "no"; then +if test "$with_sound_alsa" != "no"; then ac_fn_c_check_header_mongrel "$LINENO" "alsa/input.h" "ac_cv_header_alsa_input_h" "$ac_includes_default" if test "x$ac_cv_header_alsa_input_h" = x""yes; then : @@ -19049,7 +19046,7 @@ if test "$have_alsa_sound" = "yes"; then - enable_sound_alsa=yes + with_sound_alsa=yes $as_echo "#define HAVE_ALSA_SOUND 1" >>confdefs.h extra_objs="$extra_objs alsaplay.o" && if test "$verbose" = "yes"; then @@ -19057,13 +19054,13 @@ fi LIBS="-lasound $LIBS" && if test "$verbose" = "yes"; then echo " Prepending \"-lasound\" to \$LIBS"; fi else - test "$enable_sound_alsa" = "yes" && \ + test "$with_sound_alsa" = "yes" && \ { echo "Error:" "Required ALSA sound support cannot be provided." >&2; exit 1; } - enable_sound_alsa=no - fi -fi - -if test "$enable_sound_nas" != "no"; then + with_sound_alsa=no + fi +fi + +if test "$with_sound_nas" != "no"; then ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default" if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then : @@ -19111,7 +19108,7 @@ if test "$have_nas_sound" = "yes"; then - enable_sound_nas=yes + with_sound_nas=yes $as_echo "#define HAVE_NAS_SOUND 1" >>confdefs.h extra_objs="$extra_objs nas.o" && if test "$verbose" = "yes"; then @@ -19133,13 +19130,13 @@ rm -f conftest* else - test "$enable_sound_nas" = "yes" && \ + test "$with_sound_nas" = "yes" && \ { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; } - enable_sound_nas=no - fi -fi - -if test "$enable_sound_esd" != "no"; then + with_sound_nas=no + fi +fi + +if test "$with_sound_esd" != "no"; then # Extract the first word of "esd-config", so it can be a program name with args. set dummy esd-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 @@ -19192,7 +19189,7 @@ fi if test "$have_esd_sound" = "yes"; then - enable_sound_esd=yes + with_sound_esd=yes need_miscplay=yes extra_objs="$extra_objs esd.o" && if test "$verbose" = "yes"; then echo " xemacs will be linked with \"esd.o\"" @@ -19200,9 +19197,9 @@ $as_echo "#define HAVE_ESD_SOUND 1" >>confdefs.h else - test "$enable_sound_esd" = "yes" && \ + test "$with_sound_esd" = "yes" && \ { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; } - enable_sound_esd=no + with_sound_esd=no fi fi @@ -19525,13 +19522,13 @@ done fi -test "$enable_database_gdbm $enable_database_dbm $enable_database_berkdb" \ +test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ != "no no no" && { $as_echo "$as_me:${as_lineno-$LINENO}: checking for database support" >&5 $as_echo_n "checking for database support... " >&6; } && \ { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } -if test "$enable_database_gdbm $enable_database_dbm" != "no no"; then +if test "$with_database_gdbm $with_database_dbm" != "no no"; then ndbm_h_file="" for ac_header in ndbm.h gdbm/ndbm.h do : @@ -19548,14 +19545,14 @@ done if test "x$ndbm_h_file" = "x"; then - test "$enable_database_gdbm" = "yes" -o \ - "$enable_database_dbm" = "yes" && \ + test "$with_database_gdbm" = "yes" -o \ + "$with_database_dbm" = "yes" && \ { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } - enable_database_gdbm=no enable_database_dbm=no] - fi -fi - -if test "$enable_database_gdbm" != "no"; then + with_database_gdbm=no with_database_dbm=no] + fi +fi + +if test "$with_database_gdbm" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm" >&5 $as_echo_n "checking for dbm_open in -lgdbm... " >&6; } if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then : @@ -19594,7 +19591,7 @@ $as_echo "$ac_cv_lib_gdbm_dbm_open" >&6; } if test "x$ac_cv_lib_gdbm_dbm_open" = x""yes; then : - enable_database_gdbm=yes enable_database_dbm=no libdbm=-lgdbm + with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm_compat" >&5 @@ -19635,24 +19632,24 @@ $as_echo "$ac_cv_lib_gdbm_compat_dbm_open" >&6; } if test "x$ac_cv_lib_gdbm_compat_dbm_open" = x""yes; then : - enable_database_gdbm=yes enable_database_dbm=no libdbm="-lgdbm_compat -lgdbm" -else - - if test "$enable_database_gdbm" = "yes"; then + with_database_gdbm=yes with_database_dbm=no libdbm="-lgdbm_compat -lgdbm" +else + + if test "$with_database_gdbm" = "yes"; then { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; } fi - enable_database_gdbm=no -fi - - -fi - -fi - -if test "$enable_database_dbm" != "no"; then + with_database_gdbm=no +fi + + +fi + +fi + +if test "$with_database_dbm" != "no"; then ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open" if test "x$ac_cv_func_dbm_open" = x""yes; then : - enable_database_dbm=yes libdbm= + with_database_dbm=yes libdbm= else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldbm" >&5 @@ -19692,12 +19689,12 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbm_dbm_open" >&5 $as_echo "$ac_cv_lib_dbm_dbm_open" >&6; } if test "x$ac_cv_lib_dbm_dbm_open" = x""yes; then : - enable_database_dbm=yes libdbm=-ldbm -else - - test "$enable_database_dbm" = "yes" && \ + with_database_dbm=yes libdbm=-ldbm +else + + test "$with_database_dbm" = "yes" && \ { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } - enable_database_dbm=no + with_database_dbm=no fi fi @@ -19705,8 +19702,8 @@ fi test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi -if test "$enable_database_gdbm" = "yes" -o \ - "$enable_database_dbm" = "yes"; then +if test "$with_database_gdbm" = "yes" -o \ + "$with_database_dbm" = "yes"; then cat >>confdefs.h <<_ACEOF #define NDBM_H_FILE "$ndbm_h_file" _ACEOF @@ -19745,7 +19742,7 @@ fi -if test "$enable_database_berkdb" != "no"; then +if test "$with_database_berkdb" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley db.h" >&5 $as_echo_n "checking for Berkeley db.h... " >&6; } for header in "db/db.h" "db.h"; do @@ -19783,12 +19780,12 @@ done if test -z "$db_h_file" then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; }; enable_database_berkdb=no +$as_echo "no" >&6; }; with_database_berkdb=no else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_h_file" >&5 $as_echo "$db_h_file" >&6; } fi - if test "$enable_database_berkdb" != "no"; then + if test "$with_database_berkdb" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB version" >&5 $as_echo_n "checking for Berkeley DB version... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -19848,7 +19845,7 @@ ac_fn_c_check_func "$LINENO" "$dbfunc" "$as_ac_var" eval as_val=\$$as_ac_var if test "x$as_val" = x""yes; then : - enable_database_berkdb=yes need_libdb=no + with_database_berkdb=yes need_libdb=no else as_ac_Lib=`$as_echo "ac_cv_lib_db_$dbfunc" | $as_tr_sh` @@ -19891,14 +19888,14 @@ $as_echo "$ac_res" >&6; } eval as_val=\$$as_ac_Lib if test "x$as_val" = x""yes; then : - enable_database_berkdb=yes need_libdb=yes -fi - -fi - - fi - - if test "$enable_database_berkdb" = "yes" -a "$dbver" = "4"; then + with_database_berkdb=yes need_libdb=yes +fi + +fi + + fi + + if test "$with_database_berkdb" = "yes" -a "$dbver" = "4"; then rm -f $tempcname echo "#include <$db_h_file>" > $tempcname echo "configure___ dbfunc=db_create" >> $tempcname @@ -19947,12 +19944,12 @@ $as_echo "$ac_res" >&6; } eval as_val=\$$as_ac_Lib if test "x$as_val" = x""yes; then : - enable_database_berkdb=yes need_libdb=yes -fi - - fi - - if test "$enable_database_berkdb" = "yes"; then + with_database_berkdb=yes need_libdb=yes +fi + + fi + + if test "$with_database_berkdb" = "yes"; then cat >>confdefs.h <<_ACEOF #define DB_H_FILE "$db_h_file" _ACEOF @@ -19960,11 +19957,11 @@ $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi - else enable_database_berkdb=no - fi -fi - -if test "$enable_database_gdbm $enable_database_dbm $enable_database_berkdb" \ + else with_database_berkdb=no + fi +fi + +if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ != "no no no"; then $as_echo "#define HAVE_DATABASE 1" >>confdefs.h @@ -20026,7 +20023,7 @@ LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi fi -if test "$enable_bignum" = "gmp"; then +if test "$with_bignum" = "gmp"; then ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" if test "x$ac_cv_header_gmp_h" = x""yes; then : @@ -20082,7 +20079,7 @@ else { echo "Error:" "Required GMP numeric support cannot be provided." >&2; exit 1; } fi -elif test "$enable_bignum" = "mp"; then +elif test "$with_bignum" = "mp"; then for library in "" "-lcrypto"; do ac_fn_c_check_header_mongrel "$LINENO" "mp.h" "ac_cv_header_mp_h" "$ac_includes_default" if test "x$ac_cv_header_mp_h" = x""yes; then : @@ -20247,7 +20244,7 @@ fi -if test "$enable_modules" = "yes"; then +if test "$with_modules" = "yes"; then ld_libs_module= else @@ -20313,7 +20310,7 @@ ld_libs_all="$T" -if test "$enable_modules" = "no"; then +if test "$with_modules" = "no"; then MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi fi @@ -20680,17 +20677,17 @@ test "$with_xemacs_compiler" = "g++" && $as_echo "#define USE_GPLUSPLUS 1" >>confdefs.h -test "$enable_external_widget" = "yes" && $as_echo "#define EXTERNAL_WIDGET 1" >>confdefs.h - -test "$enable_kkcc" = "yes" && $as_echo "#define USE_KKCC 1" >>confdefs.h - -test "$enable_newgc" = "yes" && $as_echo "#define NEW_GC 1" >>confdefs.h +test "$with_external_widget" = "yes" && $as_echo "#define EXTERNAL_WIDGET 1" >>confdefs.h + +test "$with_kkcc" = "yes" && $as_echo "#define USE_KKCC 1" >>confdefs.h + +test "$with_newgc" = "yes" && $as_echo "#define NEW_GC 1" >>confdefs.h test "$have_vdb_posix" = "yes" && $as_echo "#define VDB_POSIX 1" >>confdefs.h test "$have_vdb_fake" = "yes" && $as_echo "#define VDB_FAKE 1" >>confdefs.h -test "$enable_quick_build" = "yes" && $as_echo "#define QUICK_BUILD 1" >>confdefs.h +test "$with_quick_build" = "yes" && $as_echo "#define QUICK_BUILD 1" >>confdefs.h test "$with_purify" = "yes" && $as_echo "#define PURIFY 1" >>confdefs.h @@ -20704,11 +20701,11 @@ test "$with_hesiod" = "yes" && $as_echo "#define HESIOD 1" >>confdefs.h -test "$enable_union_type" = "yes" && $as_echo "#define USE_UNION_TYPE 1" >>confdefs.h - -test "$enable_pdump" = "yes" && $as_echo "#define PDUMP 1" >>confdefs.h - -test "$enable_dump_in_exec" = "yes" && $as_echo "#define DUMP_IN_EXEC 1" >>confdefs.h +test "$with_union_type" = "yes" && $as_echo "#define USE_UNION_TYPE 1" >>confdefs.h + +test "$with_pdump" = "yes" && $as_echo "#define PDUMP 1" >>confdefs.h + +test "$with_dump_in_exec" = "yes" && $as_echo "#define DUMP_IN_EXEC 1" >>confdefs.h test "$with_ipv6_cname" = "yes" && $as_echo "#define IPV6_CANONICALIZE 1" >>confdefs.h @@ -20784,7 +20781,7 @@ echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}" case "$ld_switch_site" in *nocombreloc*) echo " Linking with \`-z nocombreloc'. - - Consider configuring with --enable-pdump." ;; + - Consider configuring with --with-pdump." ;; esac echo " @@ -20824,39 +20821,39 @@ echo " - Athena headers location: $athena_h_path" echo " - Athena library to link: $athena_lib" fi -case "$enable_menubars" in +case "$with_menubars" in gtk ) echo " Using GTK menubars." ;; lucid ) echo " Using Lucid menubars." ;; motif ) echo " Using Motif menubars." echo " *WARNING* The Motif menubar implementation is currently buggy." echo " We recommend using the Lucid menubar instead." - echo " Re-run configure with --enable-menubars='lucid'." ;; + echo " Re-run configure with --with-menubars='lucid'." ;; msw ) echo " Using MS-Windows menubars." ;; esac if test "$with_xft_menubars" = "yes"; then echo " - Using Xft to render antialiased fonts in menubars." echo " WARNING: This feature will be replaced with a face." fi -case "$enable_scrollbars" in +case "$with_scrollbars" in gtk ) echo " Using GTK scrollbars." ;; lucid ) echo " Using Lucid scrollbars." ;; motif ) echo " Using Motif scrollbars." ;; athena ) echo " Using Athena scrollbars." ;; msw ) echo " Using MS-Windows scrollbars." ;; esac -case "$enable_dialogs" in +case "$with_dialogs" in gtk ) echo " Using GTK dialog boxes." ;; motif ) echo " Using Motif dialog boxes." if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." echo " We recommend using the Athena dialog boxes instead." - echo " Install libXaw and re-run configure with --enable-dialogs='athena'." + echo " Install libXaw and re-run configure with --with-dialogs='athena'." echo " Read the PROBLEMS file for more information." fi; fi ;; athena ) echo " Using Athena dialog boxes." ;; msw ) echo " Using MS-Windows dialog boxes." ;; esac -case "$enable_widgets" in +case "$with_widgets" in gtk ) echo " Using GTK native widgets." ;; motif ) echo " Using Motif native widgets." ;; athena ) echo " Using Athena native widgets." ;; @@ -20916,17 +20913,17 @@ echo " Sound:" -test "$enable_sound_native" = yes && echo " Compiling in support for sound (native)." -test "$enable_sound_alsa" = yes && echo " Compiling in support for ALSA (Advanced Linux Sound Architecture)." -test "$enable_sound_nas" = yes && echo " Compiling in support for NAS (network audio system)." +test "$with_sound_native" = yes && echo " Compiling in support for sound (native)." +test "$with_sound_alsa" = yes && echo " Compiling in support for ALSA (Advanced Linux Sound Architecture)." +test "$with_sound_nas" = yes && echo " Compiling in support for NAS (network audio system)." test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously." -test "$enable_sound_esd" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)." +test "$with_sound_esd" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)." echo " Databases:" -test "$enable_database_berkdb" = yes && echo " Compiling in support for Berkeley database." -test "$enable_database_dbm" = yes && echo " Compiling in support for DBM." -test "$enable_database_gdbm" = yes && echo " Compiling in support for GNU DBM." +test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database." +test "$with_database_dbm" = yes && echo " Compiling in support for DBM." +test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." test "$with_ldap" = yes && echo " Compiling in support for LDAP." if test "$with_postgresql" = yes; then echo " Compiling in support for PostgreSQL." @@ -20936,7 +20933,7 @@ echo " Internationalization:" -test "$enable_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." +test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)." test "$with_xim" = motif && echo " - Using Motif to provide XIM support." test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support." @@ -20961,10 +20958,10 @@ test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." test "$with_socks" = yes && echo " Compiling in support for SOCKS." test "$with_dnet" = yes && echo " Compiling in support for DNET." -test "$enable_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." -test "$enable_bignum" = "gmp" && echo " Compiling in support for more number types using the GNU MP library." -test "$enable_bignum" = "mp" && echo " Compiling in support for more number types using the BSD MP library." -if test "$enable_union_type" = yes ; then +test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." +test "$with_bignum" = "gmp" && echo " Compiling in support for more number types using the GNU MP library." +test "$with_bignum" = "mp" && echo " Compiling in support for more number types using the BSD MP library." +if test "$with_union_type" = yes ; then echo " Using the union type for Lisp_Objects." echo " WARNING: ---------------------------------------------------------" echo " WARNING: This tends to trigger compiler bugs, especially when" @@ -20974,7 +20971,7 @@ echo " WARNING: More recent versions may be safer, or not." echo " WARNING: ---------------------------------------------------------" fi -if test "$enable_kkcc" = yes ; then +if test "$with_kkcc" = yes ; then echo " Using the new GC mark algorithms (KKCC)." echo " WARNING: ---------------------------------------------------------" echo " WARNING: The new algorithms are experimental. They are enabled by" @@ -20982,7 +20979,7 @@ echo " WARNING: turn it off." echo " WARNING: ---------------------------------------------------------" fi -test "$enable_newgc" = yes && echo " Using the new incremental garbage collector and the new allocator." +test "$with_newgc" = yes && echo " Using the new incremental garbage collector and the new allocator." if test "$have_vdb_posix" = yes ; then if test "$have_vdb_sigaction" = yes ; then echo " Using POSIX sigaction() to install fault handler." @@ -20996,14 +20993,14 @@ if test "$have_vdb_mach" = yes ; then echo " Using mach exception mechanism as vdb fault handler." fi -if test "$have_vdb_fake" = yes && test "$enable_vdb" == fake; then +if test "$have_vdb_fake" = yes && test "$with_vdb" == fake; then echo " Virtual dirty bit write barrier manually disabled." fi -test "$enable_pdump" = yes && echo " Using the new portable dumper." -test "$enable_dump_in_exec" = yes && echo " Dumping into executable." -test "$enable_debug" = yes && echo " Compiling in support for extra debugging code." +test "$with_pdump" = yes && echo " Using the new portable dumper." +test "$with_dump_in_exec" = yes && echo " Dumping into executable." +test "$with_debug" = yes && echo " Compiling in support for extra debugging code." test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)." -if test "$enable_error_checking_extents $enable_error_checking_types $enable_error_checking_text $enable_error_checking_gc $enable_error_checking_malloc $enable_error_checking_glyphs $enable_error_checking_byte_code $enable_error_checking_display $enable_error_checking_structures" \ +if test "$with_error_checking_extents $with_error_checking_types $with_error_checking_text $with_error_checking_gc $with_error_checking_malloc $with_error_checking_glyphs $with_error_checking_byte_code $with_error_checking_display $with_error_checking_structures" \ != "no no no no no no no no no"; then echo " Compiling in support for runtime error checking." echo " WARNING: ---------------------------------------------------------" @@ -21043,7 +21040,7 @@ done ac_config_files="$ac_config_files src/paths.h src/xemacs.def.in lib-src/config.values" -test "$enable_modules" = "yes" && ac_config_files="$ac_config_files lib-src/ellcc.h" +test "$with_modules" = "yes" && ac_config_files="$ac_config_files lib-src/ellcc.h" diff -r 3465c3161fea -r 1d775c6304d1 configure.ac --- a/configure.ac Wed Jan 13 01:55:56 2010 -0600 +++ b/configure.ac Wed Jan 13 02:28:37 2010 -0600 @@ -544,18 +544,18 @@ dnl dnl I think these will be caught by autoconf internal checks, dnl only --with-* are unchecked -dnl --external-widget --enable-external-widget +dnl --external-widget --with-external-widget dnl --native-sound-lib=LIB --with-native-sound-lib dnl --mail-locking=TYPE --with-mail-locking dnl --rel-alloc --with-rel-alloc -dnl --use-number-lib --enable-bignum -dnl --debug --enable-debug -dnl --error-checking --enable-error-checking -dnl --memory-usage-stats --enable-memory-usage-stats -dnl --quick-build --enable-quick-build -dnl --use-union-type --enable-union-type -dnl --pdump --enable-pdump -dnl --use-kkcc --enable-kkcc +dnl --use-number-lib --with-bignum +dnl --debug --with-debug +dnl --error-checking --with-error-checking +dnl --memory-usage-stats --with-memory-usage-stats +dnl --quick-build --with-quick-build +dnl --use-union-type --with-union-type +dnl --pdump --with-pdump +dnl --use-kkcc --with-kkcc dnl dnl parse flags XE_HELP_SUBSECTION([Compilation options]) @@ -574,7 +574,7 @@ [], []) XE_MERGED_ARG([cflags], AS_HELP_STRING([--with-cflags=FLAGS], - [Compiler flags. These flags will be placed after any flags inserted for warnings, debugging or optimization; setting this does not disable the insertion of those flags. Use configure settings such as `--with-optimization=no' or `enable-debug=no' to turn them off, or override them with `--with-cflags-optimization', `--with-cflags-debugging', or `with-cflags-warning'.]), + [Compiler flags. These flags will be placed after any flags inserted for warnings, debugging or optimization; setting this does not disable the insertion of those flags. Use configure settings such as `--with-optimization=no' or `with-debug=no' to turn them off, or override them with `--with-cflags-optimization', `--with-cflags-debugging', or `with-cflags-warning'.]), [], []) XE_MERGED_ARG([cflags-warning], AS_HELP_STRING([--with-cflags-warning=FLAGS],[Override compiler flags used to control warnings. @@ -709,7 +709,7 @@ AS_HELP_STRING([--with-msw],[Support MS Windows as a window system (only under Cygwin and MinGW). `--with-msw=no' may be needed on *nix systems with Wine installed.]), [], []) XE_MERGED_ARG([toolbars], - AS_HELP_STRING([--enable-toolbars],[Enable toolbar support. Default: yes.]), + AS_HELP_STRING([--with-toolbars],[Enable toolbar support. Default: yes.]), [], []) XE_MERGED_ARG([wmcommand], AS_HELP_STRING([--with-wmcommand],[Compile without realized leader window which will @@ -719,22 +719,22 @@ AS_HELP_STRING([--with-athena=TYPE],[Use TYPE Athena widgets (`xaw', `3d', `next', `95', or `xpm').]), [],[],[xaw,3d,next,95,xpm])dnl XE_KEYWORD_ARG([menubars], - AS_HELP_STRING([--enable-menubars=TYPE],[Use TYPE menubars ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). The Lucid + AS_HELP_STRING([--with-menubars=TYPE],[Use TYPE menubars ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). The Lucid widgets emulate Motif (mostly) but are faster. *WARNING* The Motif menubar is currently broken. Lucid menubars are the default.]), [], [],[yes,no,lucid,motif,athena,gtk,msw]) XE_KEYWORD_ARG([scrollbars], - AS_HELP_STRING([--enable-scrollbars=TYPE],[Use TYPE scrollbars 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). + AS_HELP_STRING([--with-scrollbars=TYPE],[Use TYPE scrollbars 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). Lucid scrollbars are the default.]), [], [],[yes,no,lucid,motif,athena,gtk,msw]) XE_KEYWORD_ARG([dialogs], - AS_HELP_STRING([--enable-dialogs=TYPE],[Use TYPE dialog boxes 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). + AS_HELP_STRING([--with-dialogs=TYPE],[Use TYPE dialog boxes 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). There are no true Lucid dialogs; Motif dialogs will be used if Motif can be found, else Athena is used.]), [], [],[yes,no,lucid,motif,athena,gtk,msw]) XE_KEYWORD_ARG([widgets], - AS_HELP_STRING([--enable-widgets=TYPE],[Use TYPE native widgets ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). + AS_HELP_STRING([--with-widgets=TYPE],[Use TYPE native widgets ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). Other widget types are currently unsupported. There are no true Lucid widgets; Motif widgets will be used if Motif can be found, else Athena is used.]), @@ -749,7 +749,7 @@ AS_HELP_STRING([--with-cde],[Compile in support for CDE drag and drop.]), [], []) XE_MERGED_ARG([external-widget], - AS_HELP_STRING([--enable-external-widget],[Support XEmacs server for text widgets in other applications.]), + AS_HELP_STRING([--with-external-widget],[Support XEmacs server for text widgets in other applications.]), [], []) dnl XE_HELP_SUBSECTION([TTY (character terminal) options]) @@ -795,7 +795,7 @@ dnl XE_HELP_SUBSECTION([Sound options]) XE_COMPLEX_ARG([sound], - AS_HELP_STRING([--enable-sound=TYPE],[Compile with sound support. + AS_HELP_STRING([--with-sound=TYPE],[Compile with sound support. Valid types are `native', `alsa', `nas' and `esd'. Prefix a type with 'no' to disable. The first type can be `none' or `all'. `none' means @@ -805,7 +805,7 @@ all sound support except for ESD which defaults to off.]), [], - [enable_sound_nas=""], + [with_sound_nas=""], [XE_COMPLEX_OPTION([native],[""]), XE_COMPLEX_OPTION([alsa],[""]), XE_COMPLEX_OPTION([nas],[""]), @@ -816,7 +816,7 @@ dnl XE_HELP_SUBSECTION([Internationalization options]) XE_MERGED_ARG([mule], - AS_HELP_STRING([--enable-mule],[Compile with Mule (Multi-Lingual Emacs) support, + AS_HELP_STRING([--with-mule],[Compile with Mule (Multi-Lingual Emacs) support, needed to support non-Latin-1 (including Asian) languages.]), [], []) @@ -837,18 +837,18 @@ XE_MERGED_ARG([xfs], AS_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized menubar. Incompatible with `--with-xim=motif' and `--with-xft'. - `--enable-menubars=lucid' (the default) is desirable.]), + `--with-menubars=lucid' (the default) is desirable.]), [], []) dnl XE_HELP_SUBSECTION([File-related options]) XE_MERGED_ARG([default-eol-detection], - AS_HELP_STRING([--enable-default-eol-detection],[Turns on by default auto-detection of end-of-line type + AS_HELP_STRING([--with-default-eol-detection],[Turns on by default auto-detection of end-of-line type when reading a file. Applies to those platforms where auto-detection is off by default (non-Mule Unix). Has no effect otherwise.]), [], []) XE_MERGED_ARG([clash-detection], - AS_HELP_STRING([--enable-clash-detection],[Disable use of lock files to detect multiple edits + AS_HELP_STRING([--with-clash-detection],[Disable use of lock files to detect multiple edits of the same file.]), [], []) XE_MERGED_ARG([zlib], @@ -857,11 +857,11 @@ dnl XE_HELP_SUBSECTION([Database options]) XE_COMPLEX_ARG([database], - AS_HELP_STRING([--enable-database=TYPE],[Compile with database support. Valid types are + AS_HELP_STRING([--with-database=TYPE],[Compile with database support. Valid types are `no' or a comma-separated list of one or more of `berkdb' and either `dbm' or `gdbm'.]), [ -if test "$enable_database_dbm" = "yes" -a "$enable_database_gdbm" = "yes"; then +if test "$with_database_dbm" = "yes" -a "$with_database_gdbm" = "yes"; then USAGE_ERROR("Only one of \`dbm' and \`gdbm' may be specified with the \`--with-database' option.") fi @@ -921,40 +921,40 @@ AS_HELP_STRING([--with-debug-malloc],[Use a debugging malloc.]), [], []) XE_MERGED_ARG([pdump], - AS_HELP_STRING([--enable-pdump],[Enable portable LISP preloader.]), + AS_HELP_STRING([--with-pdump],[Enable portable LISP preloader.]), [], []) XE_MERGED_ARG([dump-in-exec], - AS_HELP_STRING([--enable-dump-in-exec],[Enable dumping into executable (enabled by default + AS_HELP_STRING([--with-dump-in-exec],[Enable dumping into executable (enabled by default for `pdump', not enabled by default in combination with `newgc').]), [], []) XE_MERGED_ARG([kkcc], - AS_HELP_STRING([--enable-kkcc],[Enable experimental new GC mark algorithms.]), - [], [enable_kkcc=yes]) + AS_HELP_STRING([--with-kkcc],[Enable experimental new GC mark algorithms.]), + [], [with_kkcc=yes]) XE_MERGED_ARG([newgc], - AS_HELP_STRING([--enable-newgc],[Enable new incremental garbage collector and new allocator.]), + AS_HELP_STRING([--with-newgc],[Enable new incremental garbage collector and new allocator.]), [], []) XE_COMPLEX_ARG([vdb], - AS_HELP_STRING([--enable-vdb=TYPE],[Override auto-detection of + AS_HELP_STRING([--with-vdb=TYPE],[Override auto-detection of virtual-dirty-bit write-barrier implementation for the new garbage collector. TYPE must be one of "auto" (for auto-detection), "posix", "win32", "mach", or "fake" (uses the new garbage collector but disables incremental collections). The default is to use auto-detection.]), - [], [enable_vdb="auto"],[auto,posix,win32,mach,fake,no]) + [], [with_vdb="auto"],[auto,posix,win32,mach,fake,no]) dnl XE_HELP_SUBSECTION([Emacs Lisp options]) XE_MERGED_ARG([modules], - AS_HELP_STRING([--enable-modules],[Compile in experimental support for dynamically + AS_HELP_STRING([--with-modules],[Compile in experimental support for dynamically loaded libraries (Dynamic Shared Objects).]), [], []) XE_KEYWORD_ARG([bignum], - AS_HELP_STRING([--enable-bignum=TYPE],[Compile in support for bignums, ratios, or bigfloats + AS_HELP_STRING([--with-bignum=TYPE],[Compile in support for bignums, ratios, or bigfloats using library support. TYPE must be one of "gmp" (for GNU MP), "mp" (for BSD MP), or "no" (disabled).]), - [], [enable_bignum="no"],[no,gmp,mp]) + [], [with_bignum="no"],[no,gmp,mp]) dnl XE_HELP_SUBSECTION([Platform Specific options]) XE_MERGED_ARG([workshop], @@ -970,11 +970,11 @@ dnl XE_HELP_SUBSECTION([Debugging options]) XE_MERGED_ARG([debug], - AS_HELP_STRING([--enable-debug],[Enable additional debugging information. No time cost.]), + AS_HELP_STRING([--with-debug],[Enable additional debugging information. No time cost.]), [], []) dnl Keep TESTS sorted to help with syncing doc to reality. XE_COMPLEX_ARG([error-checking], - AS_HELP_STRING([--enable-error-checking=TESTS],[Compile with internal error-checking added. + AS_HELP_STRING([--with-error-checking=TESTS],[Compile with internal error-checking added. Causes noticeable loss of speed. Valid TESTS are `byte_code', `display', `extents', `gc', `glyphs', `malloc', `structures' `text', `types'.]), [], [], @@ -988,13 +988,13 @@ XE_COMPLEX_OPTION([text],[""]), XE_COMPLEX_OPTION([types],[""])]) XE_MERGED_ARG([assertions], - AS_HELP_STRING([--enable-assertions],[Compile in runtime assertions.]), + AS_HELP_STRING([--with-assertions],[Compile in runtime assertions.]), [], []) XE_MERGED_ARG([memory-usage-stats], - AS_HELP_STRING([--enable-memory-usage-stats],[Enable LISP memory usage API.]), + AS_HELP_STRING([--with-memory-usage-stats],[Enable LISP memory usage API.]), [], []) XE_MERGED_ARG([quick-build], - AS_HELP_STRING([--enable-quick-build],[Speed up the build cycle by leaving out steps where + AS_HELP_STRING([--with-quick-build],[Speed up the build cycle by leaving out steps where XEmacs will still work (more or less) without them. Potentially dangerous if you don't know what you're doing. This (1) doesn't garbage-collect after loading @@ -1006,7 +1006,7 @@ to be rebuilt.]), [], []) XE_MERGED_ARG([union-type], - AS_HELP_STRING([--enable-union-type],[Use union definition of Lisp_Object type. Known to trigger bugs in some compilers.]), + AS_HELP_STRING([--with-union-type],[Use union definition of Lisp_Object type. Known to trigger bugs in some compilers.]), [], []) XE_MERGED_ARG([quantify], AS_HELP_STRING([--with-quantify],[Support performance debugging using Quantify.]), @@ -1223,27 +1223,27 @@ dnl Error checking and debugging flags dnl ---------------------------------- dnl Error checking default to "yes" in beta versions, to "no" in releases. -dnl Same goes for --enable-debug and --extra-verbosity. +dnl Same goes for --with-debug and --extra-verbosity. if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi -test "${enable_error_checking_extents:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) -test "${enable_error_checking_types:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPES) -test "${enable_error_checking_text:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TEXT) -test "${enable_error_checking_gc:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) -test "${enable_error_checking_malloc:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) -test "${enable_error_checking_byte_code:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE) -test "${enable_error_checking_glyphs:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GLYPHS) -test "${enable_error_checking_display:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_DISPLAY) -test "${enable_error_checking_structures:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_STRUCTURES) -dnl enable_debug=yes must be set when error checking is present. This should be +test "${with_error_checking_extents:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) +test "${with_error_checking_types:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPES) +test "${with_error_checking_text:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TEXT) +test "${with_error_checking_gc:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) +test "${with_error_checking_malloc:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) +test "${with_error_checking_byte_code:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE) +test "${with_error_checking_glyphs:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GLYPHS) +test "${with_error_checking_display:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_DISPLAY) +test "${with_error_checking_structures:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_STRUCTURES) +dnl with_debug=yes must be set when error checking is present. This should be dnl fixed up. -dnl enable_debug implies other options -if test "${enable_debug:=$beta}" = "yes"; then - enable_assertions=yes - enable_memory_usage_stats=yes +dnl with_debug implies other options +if test "${with_debug:=$beta}" = "yes"; then + with_assertions=yes + with_memory_usage_stats=yes AC_DEFINE(DEBUG_XEMACS) fi -test "$enable_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) -test "$enable_memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) +test "$with_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) +test "$with_memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) dnl ------------------------------ dnl Determine the s&m files to use @@ -1438,17 +1438,17 @@ dnl $opsys detection complete; defaults depending on $opsys follow dnl -------------------------------------------------------------- -if test -z "$enable_pdump"; then +if test -z "$with_pdump"; then case "$opsys" in - linux* ) enable_pdump=yes ;; dnl glibc 2.3.1 seems to hose unexec - darwin ) enable_pdump=yes ;; dnl No "native" working dumper available - cygwin* ) enable_pdump=yes ;; dnl unexec is broken - * ) enable_pdump=no ;; + linux* ) with_pdump=yes ;; dnl glibc 2.3.1 seems to hose unexec + darwin ) with_pdump=yes ;; dnl No "native" working dumper available + cygwin* ) with_pdump=yes ;; dnl unexec is broken + * ) with_pdump=no ;; esac fi -if test "$enable_newgc" = "yes"; then - if test "$enable_vdb" = "auto"; then +if test "$with_newgc" = "yes"; then + if test "$with_vdb" = "auto"; then case "$opsys" in darwin ) case "$machine" in i[[3-9]]86 ) check_vdb_posix=yes ;; @@ -1461,7 +1461,7 @@ * ) check_vdb_posix=yes ;; esac else - case "$enable_vdb" in + case "$with_vdb" in mach ) AC_DEFINE(VDB_MACH) have_vdb_mach=yes ;; win32 ) AC_DEFINE(VDB_WIN32) have_vdb_win32=yes ;; posix ) check_vdb_posix=yes ;; @@ -1512,7 +1512,7 @@ AC_DEFINE(SUNPRO) fi -if test "$enable_clash_detection" != "no"; then +if test "$with_clash_detection" != "no"; then AC_DEFINE(CLASH_DETECTION) fi @@ -1794,9 +1794,9 @@ dnl If the s&m files don't define a system-specific dumper, simply use pdump. dnl Sometime in the future, we'll remove all definitions of UNEXEC dnl from all the s&m files. -test -z "$unexec" && enable_pdump=yes - -if test "$enable_pdump" = "yes"; then +test -z "$unexec" && with_pdump=yes + +if test "$with_pdump" = "yes"; then ordinary_link="yes" ld="${ordinary_ld}" start_files= @@ -1806,22 +1806,22 @@ fi dnl Enable KKCC by default -test -z "$enable_kkcc" && enable_kkcc=yes +test -z "$with_kkcc" && with_kkcc=yes dnl Dump into executable -if test -z "$enable_dump_in_exec"; then - if test "$enable_pdump" = "yes"; then - if test "$enable_newgc" = "yes"; then - enable_dump_in_exec=no +if test -z "$with_dump_in_exec"; then + if test "$with_pdump" = "yes"; then + if test "$with_newgc" = "yes"; then + with_dump_in_exec=no else - enable_dump_in_exec=yes + with_dump_in_exec=yes fi fi fi dnl New incremental garbage collector -if test "$enable_newgc" = "yes"; then - enable_kkcc=yes +if test "$with_newgc" = "yes"; then + with_kkcc=yes fi dnl For debugging... @@ -2125,7 +2125,7 @@ dnl a usage message, that's often good enough. Please report it, though. dnl #### Should make this Solaris-friendly. dnl Link with -z nocombreloc for now. -if test "$enable_pdump" != "yes"; then +if test "$with_pdump" != "yes"; then AC_MSG_CHECKING([for "-z nocombreloc" linker flag]) case "`ld --help 2>&1`" in *-z\ nocombreloc* ) AC_MSG_RESULT(yes) @@ -2144,8 +2144,8 @@ dnl Add s&m-determined objects (including unexec) to link line test -n "$objects_machine" && XE_ADD_OBJS($objects_machine) test -n "$objects_system" && XE_ADD_OBJS($objects_system) -test -n "$unexec" && test ! "$enable_pdump" = "yes" && XE_ADD_OBJS($unexec) -test "$enable_pdump" = "yes" && XE_ADD_OBJS(dumper.o) +test -n "$unexec" && test ! "$with_pdump" = "yes" && XE_ADD_OBJS($unexec) +test "$with_pdump" = "yes" && XE_ADD_OBJS(dumper.o) dnl Feed s&m crud to src/Makefile @@ -2502,7 +2502,7 @@ dnl Try this again when 2.1 hits the streets. dnl Avoid using free-hook.c if support exists for malloc debugging in libc dnl have_libmcheck=no -dnl if test "$enable_error_checking_malloc" = "yes" -a \ +dnl if test "$with_error_checking_malloc" = "yes" -a \ dnl "$have_glibc" = "yes" -a \ dnl "$doug_lea_malloc" = "yes"; then dnl AC_CHECK_HEADERS(mcheck.h) @@ -2826,24 +2826,24 @@ for feature in scrollbars toolbars menubars dialogs widgets do - eval "feature_value=\${enable_${feature}}" + eval "feature_value=\${with_${feature}}" case "${feature_value}" in yes|no|gtk|"" ) ;; * ) feature_conflict_with_gtk=yes - AC_MSG_WARN([--enable-${feature}=${feature_value} is incompatible with --with-gtk]) ;; + AC_MSG_WARN([--with-${feature}=${feature_value} is incompatible with --with-gtk]) ;; esac done if test "${feature_conflict_with_gtk}" = "yes"; then XE_DIE(["One or more GUI toolkit features conflict with GTK"]) fi - test "${enable_scrollbars}" != "no" && enable_scrollbars=gtk - test "${enable_toolbars}" != "no" && enable_toolbars=gtk - test "${enable_menubars}" != "no" && enable_menubars=gtk - test "${enable_dialogs}" != "no" && enable_dialogs=gtk - test "${enable_widgets}" != "no" && enable_widgets=gtk + test "${with_scrollbars}" != "no" && with_scrollbars=gtk + test "${with_toolbars}" != "no" && with_toolbars=gtk + test "${with_menubars}" != "no" && with_menubars=gtk + test "${with_dialogs}" != "no" && with_dialogs=gtk + test "${with_widgets}" != "no" && with_widgets=gtk dnl Check for libglade support (it rocks) OLD_CFLAGS="${CFLAGS}" @@ -3057,8 +3057,8 @@ AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release}) if test "${x11_release}" = "4"; then - case "$enable_widgets" in - "" | "no") enable_widgets=no ;; + case "$with_widgets" in + "" | "no") with_widgets=no ;; *) XE_DIE("Widget support requires X11R5 or greater") ;; esac fi @@ -3194,11 +3194,11 @@ fi if test "$window_system" != x11; then window_system=msw - test "$enable_scrollbars" != "no" && enable_scrollbars=msw - test "$enable_menubars" != "no" && enable_menubars=msw - test "$enable_toolbars" != "no" && enable_toolbars=msw - test "$enable_dialogs" != "no" && enable_dialogs=msw - test "$enable_widgets" != "no" && enable_widgets=msw + test "$with_scrollbars" != "no" && with_scrollbars=msw + test "$with_menubars" != "no" && with_menubars=msw + test "$with_toolbars" != "no" && with_toolbars=msw + test "$with_dialogs" != "no" && with_dialogs=msw + test "$with_widgets" != "no" && with_widgets=msw fi dnl check for our special version of select AC_RUN_IFELSE([AC_LANG_SOURCE([#include @@ -3216,13 +3216,13 @@ if test "$window_system" = "none"; then for feature in menubars scrollbars toolbars dialogs dragndrop xface do - if eval "test -n \"\$enable_${feature}\" -a \"\$enable_${feature}\" != no" ; then - AC_MSG_WARN([--enable-$feature ignored: Not valid without window system support]) + if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then + AC_MSG_WARN([--with-$feature ignored: Not valid without window system support]) fi - eval "enable_${feature}=no" + eval "with_${feature}=no" done else - test -z "$enable_toolbars" && enable_toolbars=yes + test -z "$with_toolbars" && with_toolbars=yes fi dnl ### Test for features that require mswindows support - currently none @@ -3246,7 +3246,7 @@ dnl if test "$with_tty" = "no" ; then dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) dnl fi - for feature in with_tooltalk with_cde with_wmcommand with_xim enable_sound_nas + for feature in with_tooltalk with_cde with_wmcommand with_xim with_sound_nas do if eval "test -n \"\$${feature}\" -a \"\$${feature}\" != \"no\"" ; then AC_MSG_WARN([--$feature ignored: Not valid without X support]) @@ -3320,7 +3320,7 @@ AC_SUBST(LIBSTDCPP) dnl This must come before the detection code for anything that is in a module -if test "$enable_modules" != "no"; then +if test "$with_modules" != "no"; then AC_MSG_CHECKING([for module support]) AC_MSG_RESULT() @@ -3398,22 +3398,22 @@ XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR) test -n "$libdl" && XE_PREPEND(-l${libdl}, LIBS) AC_CHECK_FUNCS(dlerror _dlerror) - enable_modules=yes + with_modules=yes MOD_CC="../../lib-src/ellcc" MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src" INSTALLPATH="\$(moduledir)" MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM} OBJECT_TO_BUILD="\$(MODNAME).ell" else - if test "$enable_modules" = "yes"; then + if test "$with_modules" = "yes"; then XE_DIE("Required module support cannot be provided.") else echo " No module support." fi - enable_modules=no + with_modules=no fi fi -if test "$enable_modules" != "yes"; then +if test "$with_modules" != "yes"; then MOD_CC="$XEMACS_CC" MODCFLAGS="\$(XE_CFLAGS) -I../../src -I\$(srcdir)/../../src" INSTALLPATH="" @@ -3422,7 +3422,7 @@ fi MODARCHDIR= MAKE_DOCFILE="../../lib-src/make-docfile" -AC_SUBST(with_modules, $enable_modules) +AC_SUBST(with_modules, $with_modules) AC_SUBST(MOD_CC) AC_SUBST(MODARCHDIR) AC_SUBST(MAKE_DOCFILE) @@ -3538,7 +3538,7 @@ LIBS="$save_LIBS" XE_APPEND(modules/ldap, MAKE_SUBDIR) need_modules_common=yes - if test "$enable_modules" = "yes"; then + if test "$with_modules" = "yes"; then XE_APPEND(modules/ldap, INSTALL_ARCH_DEP_SUBDIR) fi fi @@ -3589,7 +3589,7 @@ XE_PREPEND([$pq_libs], postgresql_libs) XE_APPEND(modules/postgresql, MAKE_SUBDIR) need_modules_common=yes - if test "$enable_modules" = "yes"; then + if test "$with_modules" = "yes"; then XE_APPEND(modules/postgresql, INSTALL_ARCH_DEP_SUBDIR) fi elif test "$with_postgresql" = "yes"; then @@ -3805,12 +3805,12 @@ AC_MSG_RESULT() fi -case "$enable_widgets" in +case "$with_widgets" in "" | "yes" | "athena") detect_athena=yes ;; *) detect_athena=no ;; esac -case "$enable_dialogs" in +case "$with_dialogs" in "" | "yes" | "athena") detect_athena=yes ;; esac @@ -3974,8 +3974,8 @@ * ) lucid_prefers_motif="yes" ;; esac -case "$enable_menubars" in "" | "yes" | "athena" ) - enable_menubars="lucid" ;; +case "$with_menubars" in "" | "yes" | "athena" ) + with_menubars="lucid" ;; esac dnl this is not in xft reloaded #3 if test "$with_xft_menubars" != "no" ; then @@ -3985,42 +3985,42 @@ with_xft_menubars="no" fi fi -case "$enable_dialogs" in "" | "yes" | "lucid" ) +case "$with_dialogs" in "" | "yes" | "lucid" ) if test "$lucid_prefers_motif" = "yes"; then - if test "$have_motif" = "yes"; then enable_dialogs="motif" - elif test "$have_xaw" = "yes"; then enable_dialogs="athena" - elif test "$with_msw" = "yes"; then enable_dialogs="msw" - else enable_dialogs=no + if test "$have_motif" = "yes"; then with_dialogs="motif" + elif test "$have_xaw" = "yes"; then with_dialogs="athena" + elif test "$with_msw" = "yes"; then with_dialogs="msw" + else with_dialogs=no fi else - if test "$have_xaw" = "yes"; then enable_dialogs="athena" - elif test "$have_motif" = "yes"; then enable_dialogs="motif" - elif test "$with_msw" = "yes"; then enable_dialogs="msw" - else enable_dialogs=no + if test "$have_xaw" = "yes"; then with_dialogs="athena" + elif test "$have_motif" = "yes"; then with_dialogs="motif" + elif test "$with_msw" = "yes"; then with_dialogs="msw" + else with_dialogs=no fi fi ;; esac -case "$enable_scrollbars" in "" | "yes" ) - enable_scrollbars="lucid" ;; +case "$with_scrollbars" in "" | "yes" ) + with_scrollbars="lucid" ;; esac -case "$enable_widgets" in "" | "yes" | "lucid") +case "$with_widgets" in "" | "yes" | "lucid") if test "$lucid_prefers_motif" = "yes"; then - if test "$have_motif" = "yes"; then enable_widgets="motif" - elif test "$have_xaw" = "yes"; then enable_widgets="athena" - elif test "$with_msw" = "yes"; then enable_widgets="msw" - else enable_widgets=no + if test "$have_motif" = "yes"; then with_widgets="motif" + elif test "$have_xaw" = "yes"; then with_widgets="athena" + elif test "$with_msw" = "yes"; then with_widgets="msw" + else with_widgets=no fi else - if test "$have_xaw" = "yes"; then enable_widgets="athena" - elif test "$have_motif" = "yes"; then enable_widgets="motif" - elif test "$with_msw" = "yes"; then enable_widgets="msw" - else enable_widgets=no + if test "$have_xaw" = "yes"; then with_widgets="athena" + elif test "$have_motif" = "yes"; then with_widgets="motif" + elif test "$with_msw" = "yes"; then with_widgets="msw" + else with_widgets=no fi fi ;; esac dnl this is not in xft reloaded #3 if test "$with_xft_tabs" != "no" ; then - if test "$with_xft_emacs" = "yes" -a "$enable_widgets" != "no" ; then + if test "$with_xft_emacs" = "yes" -a "$with_widgets" != "no" ; then with_xft_tabs="yes" else with_xft_tabs="no" @@ -4028,14 +4028,14 @@ fi dnl this is not in xft reloaded #3 if test "$with_xft_gauges" != "no" ; then - if test "$with_xft_emacs" = "yes" -a "$enable_widgets" != "no" ; then + if test "$with_xft_emacs" = "yes" -a "$with_widgets" != "no" ; then with_xft_gauges="yes" else with_xft_gauges="no" fi fi -all_widgets="$enable_menubars $enable_scrollbars $enable_dialogs $enable_toolbars $enable_widgets" +all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets" case "$all_widgets" in *athena* ) @@ -4081,12 +4081,12 @@ need_motif=yes ;; esac -test "$enable_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs) -test "$enable_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs) -test "$enable_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs) -test "$enable_widgets" != "no" && test "$enable_widgets" != "msw" && \ +test "$with_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs) +test "$with_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs) +test "$with_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs) +test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ XE_APPEND(xlwtabs.o xlwgcs.o, lwlib_objs) -case "$enable_widgets" in athena* ) +case "$with_widgets" in athena* ) XE_APPEND(xlwradio.o xlwcheckbox.o xlwgauge.o, lwlib_objs);; esac case "$all_widgets" in *lucid* ) @@ -4096,31 +4096,31 @@ AC_SUBST(lwlib_objs) -test "$enable_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) -test "$enable_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA) +test "$with_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) +test "$with_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA) if test "$athena_3d" = "yes"; then - test "$enable_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D) - test "$enable_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D) -fi - -case "$enable_widgets" in athena* ) AC_DEFINE(LWLIB_WIDGETS_ATHENA);; esac -test "$enable_widgets" != "no" && test "$enable_widgets" != "msw" && \ + test "$with_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D) + test "$with_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D) +fi + +case "$with_widgets" in athena* ) AC_DEFINE(LWLIB_WIDGETS_ATHENA);; esac +test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ AC_DEFINE(LWLIB_TABS_LUCID) -test "$enable_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) -test "$enable_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) -test "$enable_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) -test "$enable_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) -test "$enable_widgets" != "no" && AC_DEFINE(HAVE_WIDGETS) - -test "$enable_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) -test "$enable_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) - -test "$enable_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) -test "$enable_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) -test "$enable_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) -test "$enable_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF) +test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) +test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) +test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) +test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) +test "$with_widgets" != "no" && AC_DEFINE(HAVE_WIDGETS) + +test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) +test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) + +test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) +test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) +test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) +test "$with_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF) test "$with_xft_menubars" = "yes" && AC_DEFINE(USE_XFT_MENUBARS) test "$with_xft_tabs" = "yes" && AC_DEFINE(USE_XFT_TABS) @@ -4130,16 +4130,16 @@ dnl Mule-dependent options dnl ---------------------- -test -z "$enable_mule" && enable_mule=no - -dnl if test "$enable_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then +test -z "$with_mule" && with_mule=no + +dnl if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then dnl echo "Attempt to Build with Mule without Mule/Lisp" dnl echo "Please install the XEmacs/Mule tarball or" dnl echo "rerun configure with --with-mule=no" dnl exit 1 dnl fi -if test "$enable_default_eol_detection" = "yes"; then +if test "$with_default_eol_detection" = "yes"; then AC_DEFINE(HAVE_DEFAULT_EOL_DETECTION) fi @@ -4147,7 +4147,7 @@ canna_libs= wnn_libs= -if test "$enable_mule" = "yes" ; then +if test "$with_mule" = "yes" ; then AC_MSG_CHECKING([for Mule-related features]) AC_DEFINE(MULE) @@ -4190,7 +4190,7 @@ if test "$with_xfs" = "yes" ; then AC_MSG_CHECKING([for XFontSet]) AC_CHECK_LIB(X11, XmbDrawString, [:], with_xfs=no) - if test "$with_xfs" = "yes" && test "$enable_menubars" = "lucid"; then + if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then AC_DEFINE(USE_XFONTSET) if test "$with_xim" = "no" ; then XE_ADD_OBJS(input-method-xlib.o) @@ -4273,7 +4273,7 @@ fi AC_SUBST(canna_libs) -else dnl "$enable_mule" = "no" +else dnl "$with_mule" = "no" for feature in xim canna wnn; do if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then AC_MSG_WARN([--with-${feature} ignored: Not valid without Mule support]) @@ -4722,9 +4722,9 @@ AC_MSG_RESULT() dnl Autodetect native sound -test -n "$with_native_sound_lib" && enable_sound_native=yes - -if test "$enable_sound_native" != "no"; then +test -n "$with_native_sound_lib" && with_sound_native=yes + +if test "$with_sound_native" != "no"; then dnl Maybe sound is already on include path... if test -n "$with_native_sound_lib"; then AC_CHECK_HEADER(multimedia/audio_device.h, @@ -4826,42 +4826,42 @@ fi if test "$sound_found" = "yes"; then - enable_sound_native=yes + with_sound_native=yes else - if test "$enable_sound_native" = "yes" ; then + if test "$with_sound_native" = "yes" ; then AC_MSG_WARN([No native libraries found. Disabling native sound support.]) fi - enable_sound_native=no + with_sound_native=no fi fi -if test "$enable_sound_native" = "yes"; then +if test "$with_sound_native" = "yes"; then AC_DEFINE(HAVE_NATIVE_SOUND) test -n "$with_native_sound_lib" && XE_PREPEND($with_native_sound_lib, LIBS) fi dnl ALSA sound support -if test "$enable_sound_alsa" != "no"; then +if test "$with_sound_alsa" != "no"; then AC_CHECK_HEADER([alsa/input.h], [ AC_CHECK_LIB(asound, snd_pcm_open, have_alsa_sound=yes)]) if test "$have_alsa_sound" = "yes"; then - enable_sound_alsa=yes + with_sound_alsa=yes AC_DEFINE(HAVE_ALSA_SOUND) XE_ADD_OBJS(alsaplay.o) XE_PREPEND(-lasound, LIBS) else - test "$enable_sound_alsa" = "yes" && \ + test "$with_sound_alsa" = "yes" && \ XE_DIE("Required ALSA sound support cannot be provided.") - enable_sound_alsa=no + with_sound_alsa=no fi fi dnl NAS Sound support -if test "$enable_sound_nas" != "no"; then +if test "$with_sound_nas" != "no"; then AC_CHECK_HEADER(audio/audiolib.h, [ AC_CHECK_LIB(audio, AuOpenServer, have_nas_sound=yes)]) if test "$have_nas_sound" = "yes"; then - enable_sound_nas=yes + with_sound_nas=yes AC_DEFINE(HAVE_NAS_SOUND) XE_ADD_OBJS(nas.o) XE_PREPEND(-laudio, libs_x) @@ -4869,14 +4869,14 @@ dnl then we force safer behavior. AC_EGREP_HEADER(AuXtErrorJump,audio/Xtutil.h,,[old_nas=yes; AC_DEFINE(NAS_NO_ERROR_JUMP)]) else - test "$enable_sound_nas" = "yes" && \ + test "$with_sound_nas" = "yes" && \ XE_DIE("Required NAS sound support cannot be provided.") - enable_sound_nas=no + with_sound_nas=no fi fi dnl ESD Sound support -if test "$enable_sound_esd" != "no"; then +if test "$with_sound_esd" != "no"; then AC_CHECK_PROG(have_esd_config, esd-config, yes, no) if test "$have_esd_config" = "yes"; then save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" @@ -4888,14 +4888,14 @@ fi if test "$have_esd_sound" = "yes"; then - enable_sound_esd=yes + with_sound_esd=yes need_miscplay=yes XE_ADD_OBJS(esd.o) AC_DEFINE(HAVE_ESD_SOUND) else - test "$enable_sound_esd" = "yes" && \ + test "$with_sound_esd" = "yes" && \ XE_DIE("Required ESD sound support cannot be provided.") - enable_sound_esd=no + with_sound_esd=no fi fi @@ -4993,49 +4993,49 @@ dnl On FreeBSD, both DB and DBM are part of libc. dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. -test "$enable_database_gdbm $enable_database_dbm $enable_database_berkdb" \ +test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ != "no no no" && AC_MSG_CHECKING([for database support]) && \ AC_MSG_RESULT() dnl Check for ndbm.h, required for either kind of DBM support. dnl #### Should we check for gdbm.h, too? (Seen on MacPorts.) -if test "$enable_database_gdbm $enable_database_dbm" != "no no"; then +if test "$with_database_gdbm $with_database_dbm" != "no no"; then ndbm_h_file="" AC_CHECK_HEADERS([ndbm.h gdbm/ndbm.h],[ndbm_h_file=$ac_header; break;],[],[]) if test "x$ndbm_h_file" = "x"; then - test "$enable_database_gdbm" = "yes" -o \ - "$enable_database_dbm" = "yes" && \ + test "$with_database_gdbm" = "yes" -o \ + "$with_database_dbm" = "yes" && \ XE_DIE("Required DBM support cannot be provided.") - enable_database_gdbm=no enable_database_dbm=no] + with_database_gdbm=no with_database_dbm=no] fi fi dnl Check for DBM support in libgdbm. -if test "$enable_database_gdbm" != "no"; then +if test "$with_database_gdbm" != "no"; then AC_CHECK_LIB(gdbm, dbm_open, [ - enable_database_gdbm=yes enable_database_dbm=no libdbm=-lgdbm], [ + with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm], [ AC_CHECK_LIB(gdbm_compat, dbm_open, [ - enable_database_gdbm=yes enable_database_dbm=no libdbm="-lgdbm_compat -lgdbm"], [ - if test "$enable_database_gdbm" = "yes"; then + with_database_gdbm=yes with_database_dbm=no libdbm="-lgdbm_compat -lgdbm"], [ + if test "$with_database_gdbm" = "yes"; then XE_DIE("Required GNU DBM support cannot be provided.") fi - enable_database_gdbm=no], -lgdbm) + with_database_gdbm=no], -lgdbm) ]) fi dnl Check for DBM support in libc and libdbm. -if test "$enable_database_dbm" != "no"; then - AC_CHECK_FUNC(dbm_open, [enable_database_dbm=yes libdbm=], [ - AC_CHECK_LIB(dbm, dbm_open, [enable_database_dbm=yes libdbm=-ldbm], [ - test "$enable_database_dbm" = "yes" && \ +if test "$with_database_dbm" != "no"; then + AC_CHECK_FUNC(dbm_open, [with_database_dbm=yes libdbm=], [ + AC_CHECK_LIB(dbm, dbm_open, [with_database_dbm=yes libdbm=-ldbm], [ + test "$with_database_dbm" = "yes" && \ XE_DIE("Required DBM support cannot be provided.") - enable_database_dbm=no])]) + with_database_dbm=no])]) fi dnl Tell make about the DBM support we detected. test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS) -if test "$enable_database_gdbm" = "yes" -o \ - "$enable_database_dbm" = "yes"; then +if test "$with_database_gdbm" = "yes" -o \ + "$with_database_dbm" = "yes"; then AC_DEFINE_UNQUOTED(NDBM_H_FILE,"$ndbm_h_file") AC_DEFINE(HAVE_DBM) $as_unset ndbm_h_file @@ -5045,7 +5045,7 @@ AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t]) dnl Check for Berkeley DB. -if test "$enable_database_berkdb" != "no"; then +if test "$with_database_berkdb" != "no"; then AC_MSG_CHECKING(for Berkeley db.h) for header in "db/db.h" "db.h"; do AC_COMPILE_IFELSE([AC_LANG_SOURCE([ @@ -5074,11 +5074,11 @@ ])], db_h_file="$header"; break) done if test -z "$db_h_file" - then AC_MSG_RESULT(no); enable_database_berkdb=no + then AC_MSG_RESULT(no); with_database_berkdb=no else AC_MSG_RESULT($db_h_file) fi - if test "$enable_database_berkdb" != "no"; then + if test "$with_database_berkdb" != "no"; then AC_MSG_CHECKING(for Berkeley DB version) AC_EGREP_CPP(yes, [#include <$db_h_file> @@ -5099,12 +5099,12 @@ AC_MSG_RESULT(3); dbfunc=db_create; dbver=3])],[ AC_MSG_RESULT(2); dbfunc=db_open; dbver=2])],[ AC_MSG_RESULT(1); dbfunc=dbopen; dbver=1]) - AC_CHECK_FUNC($dbfunc, enable_database_berkdb=yes need_libdb=no, [ - AC_CHECK_LIB(db, $dbfunc, enable_database_berkdb=yes need_libdb=yes)]) + AC_CHECK_FUNC($dbfunc, with_database_berkdb=yes need_libdb=no, [ + AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)]) fi dnl Berk db 4.1 decorates public functions with version information - if test "$enable_database_berkdb" = "yes" -a "$dbver" = "4"; then + if test "$with_database_berkdb" = "yes" -a "$dbver" = "4"; then rm -f $tempcname echo "#include <$db_h_file>" > $tempcname echo "configure___ dbfunc=db_create" >> $tempcname @@ -5113,18 +5113,18 @@ | sed -n -e "s/[[ TAB]]*=[[ TAB\"]]*/='/" -e "s/[[ TAB\"]]*\$/'/" -e "s/^configure___//p"` rm -f $tempcname AC_MSG_WARN("db_create is really $dbfunc") - AC_CHECK_LIB(db, $dbfunc, enable_database_berkdb=yes need_libdb=yes) + AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes) fi - if test "$enable_database_berkdb" = "yes"; then + if test "$with_database_berkdb" = "yes"; then AC_DEFINE_UNQUOTED(DB_H_FILE, "$db_h_file") AC_DEFINE(HAVE_BERKELEY_DB) test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS) - else enable_database_berkdb=no + else with_database_berkdb=no fi fi -if test "$enable_database_gdbm $enable_database_dbm $enable_database_berkdb" \ +if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ != "no no no"; then AC_DEFINE(HAVE_DATABASE) fi @@ -5142,7 +5142,7 @@ fi dnl Enhanced number support -if test "$enable_bignum" = "gmp"; then +if test "$with_bignum" = "gmp"; then AC_CHECK_HEADER(gmp.h, [ AC_CHECK_LIB(gmp, __gmpz_init, have_mpz_init=yes)]) if test "$have_mpz_init" = "yes"; then @@ -5152,7 +5152,7 @@ else XE_DIE("Required GMP numeric support cannot be provided.") fi -elif test "$enable_bignum" = "mp"; then +elif test "$with_bignum" = "mp"; then for library in "" "-lcrypto"; do AC_CHECK_HEADER(mp.h, [ AC_CHECK_LIB(mp, mp_mfree, have_mp_mfree=yes; break, [ @@ -5211,7 +5211,7 @@ dnl We ignore (C|LD)_SWITCH_X_(MACHINE|SYSTEM) dnl Use XE_SPACE instead of plain assignment statements to remove extraneous blanks -if test "$enable_modules" = "yes"; then +if test "$with_modules" = "yes"; then ld_libs_module= else XE_SPACE(ld_libs_module, $ldap_libs $postgresql_libs $canna_libs) @@ -5230,7 +5230,7 @@ XE_SPACE(ld_libs_all, $ld_libs_window_system $ld_libs_general $ld_libs_module) dnl For no-module builds, make the src dir last -if test "$enable_modules" = "no"; then +if test "$with_modules" = "no"; then XE_APPEND(src, MAKE_SUBDIR) fi @@ -5492,21 +5492,21 @@ fi test "$GCC" = "yes" && AC_DEFINE(USE_GCC) test "$with_xemacs_compiler" = "g++" && AC_DEFINE(USE_GPLUSPLUS) -test "$enable_external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) -test "$enable_kkcc" = "yes" && AC_DEFINE(USE_KKCC) -test "$enable_newgc" = "yes" && AC_DEFINE(NEW_GC) +test "$with_external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) +test "$with_kkcc" = "yes" && AC_DEFINE(USE_KKCC) +test "$with_newgc" = "yes" && AC_DEFINE(NEW_GC) test "$have_vdb_posix" = "yes" && AC_DEFINE(VDB_POSIX) test "$have_vdb_fake" = "yes" && AC_DEFINE(VDB_FAKE) -test "$enable_quick_build" = "yes" && AC_DEFINE(QUICK_BUILD) +test "$with_quick_build" = "yes" && AC_DEFINE(QUICK_BUILD) test "$with_purify" = "yes" && AC_DEFINE(PURIFY) test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) test "$with_valgrind" = "yes" && AC_DEFINE(USE_VALGRIND) test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) -test "$enable_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE) -test "$enable_pdump" = "yes" && AC_DEFINE(PDUMP) -test "$enable_dump_in_exec" = "yes" && AC_DEFINE(DUMP_IN_EXEC) +test "$with_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE) +test "$with_pdump" = "yes" && AC_DEFINE(PDUMP) +test "$with_dump_in_exec" = "yes" && AC_DEFINE(DUMP_IN_EXEC) test "$with_ipv6_cname" = "yes" && AC_DEFINE(IPV6_CANONICALIZE) @@ -5589,7 +5589,7 @@ echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}" case "$ld_switch_site" in *nocombreloc*) echo " Linking with \`-z nocombreloc'. - - Consider configuring with --enable-pdump." ;; + - Consider configuring with --with-pdump." ;; esac echo " @@ -5629,39 +5629,39 @@ echo " - Athena headers location: $athena_h_path" echo " - Athena library to link: $athena_lib" fi -case "$enable_menubars" in +case "$with_menubars" in gtk ) echo " Using GTK menubars." ;; lucid ) echo " Using Lucid menubars." ;; motif ) echo " Using Motif menubars." echo " *WARNING* The Motif menubar implementation is currently buggy." echo " We recommend using the Lucid menubar instead." - echo " Re-run configure with --enable-menubars='lucid'." ;; + echo " Re-run configure with --with-menubars='lucid'." ;; msw ) echo " Using MS-Windows menubars." ;; esac if test "$with_xft_menubars" = "yes"; then echo " - Using Xft to render antialiased fonts in menubars." echo " WARNING: This feature will be replaced with a face." fi -case "$enable_scrollbars" in +case "$with_scrollbars" in gtk ) echo " Using GTK scrollbars." ;; lucid ) echo " Using Lucid scrollbars." ;; motif ) echo " Using Motif scrollbars." ;; athena ) echo " Using Athena scrollbars." ;; msw ) echo " Using MS-Windows scrollbars." ;; esac -case "$enable_dialogs" in +case "$with_dialogs" in gtk ) echo " Using GTK dialog boxes." ;; motif ) echo " Using Motif dialog boxes." if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." echo " We recommend using the Athena dialog boxes instead." - echo " Install libXaw and re-run configure with --enable-dialogs='athena'." + echo " Install libXaw and re-run configure with --with-dialogs='athena'." echo " Read the PROBLEMS file for more information." fi; fi ;; athena ) echo " Using Athena dialog boxes." ;; msw ) echo " Using MS-Windows dialog boxes." ;; esac -case "$enable_widgets" in +case "$with_widgets" in gtk ) echo " Using GTK native widgets." ;; motif ) echo " Using Motif native widgets." ;; athena ) echo " Using Athena native widgets." ;; @@ -5721,17 +5721,17 @@ echo " Sound:" -test "$enable_sound_native" = yes && echo " Compiling in support for sound (native)." -test "$enable_sound_alsa" = yes && echo " Compiling in support for ALSA (Advanced Linux Sound Architecture)." -test "$enable_sound_nas" = yes && echo " Compiling in support for NAS (network audio system)." +test "$with_sound_native" = yes && echo " Compiling in support for sound (native)." +test "$with_sound_alsa" = yes && echo " Compiling in support for ALSA (Advanced Linux Sound Architecture)." +test "$with_sound_nas" = yes && echo " Compiling in support for NAS (network audio system)." test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously." -test "$enable_sound_esd" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)." +test "$with_sound_esd" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)." echo " Databases:" -test "$enable_database_berkdb" = yes && echo " Compiling in support for Berkeley database." -test "$enable_database_dbm" = yes && echo " Compiling in support for DBM." -test "$enable_database_gdbm" = yes && echo " Compiling in support for GNU DBM." +test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database." +test "$with_database_dbm" = yes && echo " Compiling in support for DBM." +test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." test "$with_ldap" = yes && echo " Compiling in support for LDAP." if test "$with_postgresql" = yes; then echo " Compiling in support for PostgreSQL." @@ -5741,7 +5741,7 @@ echo " Internationalization:" -test "$enable_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." +test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)." test "$with_xim" = motif && echo " - Using Motif to provide XIM support." test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support." @@ -5766,10 +5766,10 @@ test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." test "$with_socks" = yes && echo " Compiling in support for SOCKS." test "$with_dnet" = yes && echo " Compiling in support for DNET." -test "$enable_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." -test "$enable_bignum" = "gmp" && echo " Compiling in support for more number types using the GNU MP library." -test "$enable_bignum" = "mp" && echo " Compiling in support for more number types using the BSD MP library." -if test "$enable_union_type" = yes ; then +test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." +test "$with_bignum" = "gmp" && echo " Compiling in support for more number types using the GNU MP library." +test "$with_bignum" = "mp" && echo " Compiling in support for more number types using the BSD MP library." +if test "$with_union_type" = yes ; then echo " Using the union type for Lisp_Objects." echo " WARNING: ---------------------------------------------------------" echo " WARNING: This tends to trigger compiler bugs, especially when" @@ -5779,7 +5779,7 @@ echo " WARNING: More recent versions may be safer, or not." echo " WARNING: ---------------------------------------------------------" fi -if test "$enable_kkcc" = yes ; then +if test "$with_kkcc" = yes ; then echo " Using the new GC mark algorithms (KKCC)." echo " WARNING: ---------------------------------------------------------" echo " WARNING: The new algorithms are experimental. They are enabled by" @@ -5787,7 +5787,7 @@ echo " WARNING: turn it off." echo " WARNING: ---------------------------------------------------------" fi -test "$enable_newgc" = yes && echo " Using the new incremental garbage collector and the new allocator." +test "$with_newgc" = yes && echo " Using the new incremental garbage collector and the new allocator." if test "$have_vdb_posix" = yes ; then if test "$have_vdb_sigaction" = yes ; then echo " Using POSIX sigaction() to install fault handler." @@ -5801,14 +5801,14 @@ if test "$have_vdb_mach" = yes ; then echo " Using mach exception mechanism as vdb fault handler." fi -if test "$have_vdb_fake" = yes && test "$enable_vdb" == fake; then +if test "$have_vdb_fake" = yes && test "$with_vdb" == fake; then echo " Virtual dirty bit write barrier manually disabled." fi -test "$enable_pdump" = yes && echo " Using the new portable dumper." -test "$enable_dump_in_exec" = yes && echo " Dumping into executable." -test "$enable_debug" = yes && echo " Compiling in support for extra debugging code." +test "$with_pdump" = yes && echo " Using the new portable dumper." +test "$with_dump_in_exec" = yes && echo " Dumping into executable." +test "$with_debug" = yes && echo " Compiling in support for extra debugging code." test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)." -if test "$enable_error_checking_extents $enable_error_checking_types $enable_error_checking_text $enable_error_checking_gc $enable_error_checking_malloc $enable_error_checking_glyphs $enable_error_checking_byte_code $enable_error_checking_display $enable_error_checking_structures" \ +if test "$with_error_checking_extents $with_error_checking_types $with_error_checking_text $with_error_checking_gc $with_error_checking_malloc $with_error_checking_glyphs $with_error_checking_byte_code $with_error_checking_display $with_error_checking_structures" \ != "no no no no no no no no no"; then echo " Compiling in support for runtime error checking." echo " WARNING: ---------------------------------------------------------" @@ -5857,7 +5857,7 @@ AC_CONFIG_FILES($file) done AC_CONFIG_FILES(src/paths.h src/xemacs.def.in lib-src/config.values) -test "$enable_modules" = "yes" && AC_CONFIG_FILES(lib-src/ellcc.h) +test "$with_modules" = "yes" && AC_CONFIG_FILES(lib-src/ellcc.h) dnl Normally []'s are used for quoting but this will cause problems