comparison configure.ac @ 4842:1d775c6304d1

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.
author Ben Wing <ben@xemacs.org>
date Wed, 13 Jan 2010 02:28:37 -0600
parents b3ea9c582280
children bde90bc762f2
comparison
equal deleted inserted replaced
4841:3465c3161fea 4842:1d775c6304d1
542 dnl Note that AS_HELP_STRING compresses whitespace, wraps, and indents the 542 dnl Note that AS_HELP_STRING compresses whitespace, wraps, and indents the
543 dnl string to fit the --help display; there's no need to preformat. 543 dnl string to fit the --help display; there's no need to preformat.
544 dnl 544 dnl
545 dnl I think these will be caught by autoconf internal checks, 545 dnl I think these will be caught by autoconf internal checks,
546 dnl only --with-* are unchecked 546 dnl only --with-* are unchecked
547 dnl --external-widget --enable-external-widget 547 dnl --external-widget --with-external-widget
548 dnl --native-sound-lib=LIB --with-native-sound-lib 548 dnl --native-sound-lib=LIB --with-native-sound-lib
549 dnl --mail-locking=TYPE --with-mail-locking 549 dnl --mail-locking=TYPE --with-mail-locking
550 dnl --rel-alloc --with-rel-alloc 550 dnl --rel-alloc --with-rel-alloc
551 dnl --use-number-lib --enable-bignum 551 dnl --use-number-lib --with-bignum
552 dnl --debug --enable-debug 552 dnl --debug --with-debug
553 dnl --error-checking --enable-error-checking 553 dnl --error-checking --with-error-checking
554 dnl --memory-usage-stats --enable-memory-usage-stats 554 dnl --memory-usage-stats --with-memory-usage-stats
555 dnl --quick-build --enable-quick-build 555 dnl --quick-build --with-quick-build
556 dnl --use-union-type --enable-union-type 556 dnl --use-union-type --with-union-type
557 dnl --pdump --enable-pdump 557 dnl --pdump --with-pdump
558 dnl --use-kkcc --enable-kkcc 558 dnl --use-kkcc --with-kkcc
559 dnl 559 dnl
560 dnl parse flags 560 dnl parse flags
561 XE_HELP_SUBSECTION([Compilation options]) 561 XE_HELP_SUBSECTION([Compilation options])
562 XE_MERGED_ARG([compiler], 562 XE_MERGED_ARG([compiler],
563 AS_HELP_STRING([--with-compiler],[C compiler to use]), 563 AS_HELP_STRING([--with-compiler],[C compiler to use]),
572 XE_MERGED_ARG([gcc], 572 XE_MERGED_ARG([gcc],
573 AS_HELP_STRING([--with-gcc],[Use GCC to compile XEmacs.]), 573 AS_HELP_STRING([--with-gcc],[Use GCC to compile XEmacs.]),
574 [], []) 574 [], [])
575 XE_MERGED_ARG([cflags], 575 XE_MERGED_ARG([cflags],
576 AS_HELP_STRING([--with-cflags=FLAGS], 576 AS_HELP_STRING([--with-cflags=FLAGS],
577 [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'.]), 577 [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'.]),
578 [], []) 578 [], [])
579 XE_MERGED_ARG([cflags-warning], 579 XE_MERGED_ARG([cflags-warning],
580 AS_HELP_STRING([--with-cflags-warning=FLAGS],[Override compiler flags used to control warnings. 580 AS_HELP_STRING([--with-cflags-warning=FLAGS],[Override compiler flags used to control warnings.
581 Normally, don't set this, as XEmacs already turns on 581 Normally, don't set this, as XEmacs already turns on
582 the maximum safe warning level.]), 582 the maximum safe warning level.]),
707 [true], [with_gnome=no]) 707 [true], [with_gnome=no])
708 XE_MERGED_ARG([msw], 708 XE_MERGED_ARG([msw],
709 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.]), 709 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.]),
710 [], []) 710 [], [])
711 XE_MERGED_ARG([toolbars], 711 XE_MERGED_ARG([toolbars],
712 AS_HELP_STRING([--enable-toolbars],[Enable toolbar support. Default: yes.]), 712 AS_HELP_STRING([--with-toolbars],[Enable toolbar support. Default: yes.]),
713 [], []) 713 [], [])
714 XE_MERGED_ARG([wmcommand], 714 XE_MERGED_ARG([wmcommand],
715 AS_HELP_STRING([--with-wmcommand],[Compile without realized leader window which will 715 AS_HELP_STRING([--with-wmcommand],[Compile without realized leader window which will
716 keep the WM_COMMAND property.]), 716 keep the WM_COMMAND property.]),
717 [], []) 717 [], [])
718 XE_KEYWORD_ARG([athena], 718 XE_KEYWORD_ARG([athena],
719 AS_HELP_STRING([--with-athena=TYPE],[Use TYPE Athena widgets (`xaw', `3d', `next', `95', or `xpm').]), 719 AS_HELP_STRING([--with-athena=TYPE],[Use TYPE Athena widgets (`xaw', `3d', `next', `95', or `xpm').]),
720 [],[],[xaw,3d,next,95,xpm])dnl 720 [],[],[xaw,3d,next,95,xpm])dnl
721 XE_KEYWORD_ARG([menubars], 721 XE_KEYWORD_ARG([menubars],
722 AS_HELP_STRING([--enable-menubars=TYPE],[Use TYPE menubars ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). The Lucid 722 AS_HELP_STRING([--with-menubars=TYPE],[Use TYPE menubars ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). The Lucid
723 widgets emulate Motif (mostly) but are faster. 723 widgets emulate Motif (mostly) but are faster.
724 *WARNING* The Motif menubar is currently broken. 724 *WARNING* The Motif menubar is currently broken.
725 Lucid menubars are the default.]), 725 Lucid menubars are the default.]),
726 [], [],[yes,no,lucid,motif,athena,gtk,msw]) 726 [], [],[yes,no,lucid,motif,athena,gtk,msw])
727 XE_KEYWORD_ARG([scrollbars], 727 XE_KEYWORD_ARG([scrollbars],
728 AS_HELP_STRING([--enable-scrollbars=TYPE],[Use TYPE scrollbars 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). 728 AS_HELP_STRING([--with-scrollbars=TYPE],[Use TYPE scrollbars 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw').
729 Lucid scrollbars are the default.]), 729 Lucid scrollbars are the default.]),
730 [], [],[yes,no,lucid,motif,athena,gtk,msw]) 730 [], [],[yes,no,lucid,motif,athena,gtk,msw])
731 XE_KEYWORD_ARG([dialogs], 731 XE_KEYWORD_ARG([dialogs],
732 AS_HELP_STRING([--enable-dialogs=TYPE],[Use TYPE dialog boxes 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). 732 AS_HELP_STRING([--with-dialogs=TYPE],[Use TYPE dialog boxes 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw').
733 There are no true Lucid dialogs; Motif dialogs will be 733 There are no true Lucid dialogs; Motif dialogs will be
734 used if Motif can be found, else Athena is used.]), 734 used if Motif can be found, else Athena is used.]),
735 [], [],[yes,no,lucid,motif,athena,gtk,msw]) 735 [], [],[yes,no,lucid,motif,athena,gtk,msw])
736 XE_KEYWORD_ARG([widgets], 736 XE_KEYWORD_ARG([widgets],
737 AS_HELP_STRING([--enable-widgets=TYPE],[Use TYPE native widgets ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). 737 AS_HELP_STRING([--with-widgets=TYPE],[Use TYPE native widgets ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw').
738 Other widget types are currently unsupported. 738 Other widget types are currently unsupported.
739 There are no true Lucid widgets; Motif widgets will be 739 There are no true Lucid widgets; Motif widgets will be
740 used if Motif can be found, else Athena is used.]), 740 used if Motif can be found, else Athena is used.]),
741 [], [],[yes,no,lucid,motif,athena,gtk,msw]) 741 [], [],[yes,no,lucid,motif,athena,gtk,msw])
742 XE_MERGED_ARG([dragndrop], 742 XE_MERGED_ARG([dragndrop],
747 [], []) 747 [], [])
748 XE_MERGED_ARG([cde], 748 XE_MERGED_ARG([cde],
749 AS_HELP_STRING([--with-cde],[Compile in support for CDE drag and drop.]), 749 AS_HELP_STRING([--with-cde],[Compile in support for CDE drag and drop.]),
750 [], []) 750 [], [])
751 XE_MERGED_ARG([external-widget], 751 XE_MERGED_ARG([external-widget],
752 AS_HELP_STRING([--enable-external-widget],[Support XEmacs server for text widgets in other applications.]), 752 AS_HELP_STRING([--with-external-widget],[Support XEmacs server for text widgets in other applications.]),
753 [], []) 753 [], [])
754 dnl 754 dnl
755 XE_HELP_SUBSECTION([TTY (character terminal) options]) 755 XE_HELP_SUBSECTION([TTY (character terminal) options])
756 XE_MERGED_ARG([tty], 756 XE_MERGED_ARG([tty],
757 AS_HELP_STRING([--with-tty],[Enable TTY support. Default: yes.]), 757 AS_HELP_STRING([--with-tty],[Enable TTY support. Default: yes.]),
793 AS_HELP_STRING([--with-gif],[Compile with support for GIF images.]), 793 AS_HELP_STRING([--with-gif],[Compile with support for GIF images.]),
794 [], []) 794 [], [])
795 dnl 795 dnl
796 XE_HELP_SUBSECTION([Sound options]) 796 XE_HELP_SUBSECTION([Sound options])
797 XE_COMPLEX_ARG([sound], 797 XE_COMPLEX_ARG([sound],
798 AS_HELP_STRING([--enable-sound=TYPE],[Compile with sound support. 798 AS_HELP_STRING([--with-sound=TYPE],[Compile with sound support.
799 Valid types are `native', `alsa', `nas' and `esd'. 799 Valid types are `native', `alsa', `nas' and `esd'.
800 Prefix a type with 'no' to disable. 800 Prefix a type with 'no' to disable.
801 The first type can be `none' or `all'. `none' means 801 The first type can be `none' or `all'. `none' means
802 `nonative,noalsa,nonas,noesd'. `all' means 802 `nonative,noalsa,nonas,noesd'. `all' means
803 `native,alsa,nas,esd'. Later options override earlier 803 `native,alsa,nas,esd'. Later options override earlier
804 ones for the same TYPE. The default is to autodetect 804 ones for the same TYPE. The default is to autodetect
805 all sound support except for ESD which defaults to 805 all sound support except for ESD which defaults to
806 off.]), 806 off.]),
807 [], 807 [],
808 [enable_sound_nas=""], 808 [with_sound_nas=""],
809 [XE_COMPLEX_OPTION([native],[""]), 809 [XE_COMPLEX_OPTION([native],[""]),
810 XE_COMPLEX_OPTION([alsa],[""]), 810 XE_COMPLEX_OPTION([alsa],[""]),
811 XE_COMPLEX_OPTION([nas],[""]), 811 XE_COMPLEX_OPTION([nas],[""]),
812 XE_COMPLEX_OPTION([esd],[no])]) 812 XE_COMPLEX_OPTION([esd],[no])])
813 XE_MERGED_ARG([native-sound-lib], 813 XE_MERGED_ARG([native-sound-lib],
814 AS_HELP_STRING([--with-native-sound-lib],[Path to sound library (for systems with name conflicts).]), 814 AS_HELP_STRING([--with-native-sound-lib],[Path to sound library (for systems with name conflicts).]),
815 [], []) 815 [], [])
816 dnl 816 dnl
817 XE_HELP_SUBSECTION([Internationalization options]) 817 XE_HELP_SUBSECTION([Internationalization options])
818 XE_MERGED_ARG([mule], 818 XE_MERGED_ARG([mule],
819 AS_HELP_STRING([--enable-mule],[Compile with Mule (Multi-Lingual Emacs) support, 819 AS_HELP_STRING([--with-mule],[Compile with Mule (Multi-Lingual Emacs) support,
820 needed to support non-Latin-1 (including Asian) 820 needed to support non-Latin-1 (including Asian)
821 languages.]), 821 languages.]),
822 [], []) 822 [], [])
823 XE_KEYWORD_ARG([xim], 823 XE_KEYWORD_ARG([xim],
824 AS_HELP_STRING([--with-xim==TYPE],[Enable XIM support. TYPE is `yes', `no', `xlib', or `motif']), 824 AS_HELP_STRING([--with-xim==TYPE],[Enable XIM support. TYPE is `yes', `no', `xlib', or `motif']),
835 method (proprietary). Requires Mule.]), 835 method (proprietary). Requires Mule.]),
836 [], []) 836 [], [])
837 XE_MERGED_ARG([xfs], 837 XE_MERGED_ARG([xfs],
838 AS_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized 838 AS_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized
839 menubar. Incompatible with `--with-xim=motif' and `--with-xft'. 839 menubar. Incompatible with `--with-xim=motif' and `--with-xft'.
840 `--enable-menubars=lucid' (the default) is desirable.]), 840 `--with-menubars=lucid' (the default) is desirable.]),
841 [], []) 841 [], [])
842 dnl 842 dnl
843 XE_HELP_SUBSECTION([File-related options]) 843 XE_HELP_SUBSECTION([File-related options])
844 XE_MERGED_ARG([default-eol-detection], 844 XE_MERGED_ARG([default-eol-detection],
845 AS_HELP_STRING([--enable-default-eol-detection],[Turns on by default auto-detection of end-of-line type 845 AS_HELP_STRING([--with-default-eol-detection],[Turns on by default auto-detection of end-of-line type
846 when reading a file. Applies to those platforms where 846 when reading a file. Applies to those platforms where
847 auto-detection is off by default (non-Mule Unix). Has 847 auto-detection is off by default (non-Mule Unix). Has
848 no effect otherwise.]), 848 no effect otherwise.]),
849 [], []) 849 [], [])
850 XE_MERGED_ARG([clash-detection], 850 XE_MERGED_ARG([clash-detection],
851 AS_HELP_STRING([--enable-clash-detection],[Disable use of lock files to detect multiple edits 851 AS_HELP_STRING([--with-clash-detection],[Disable use of lock files to detect multiple edits
852 of the same file.]), 852 of the same file.]),
853 [], []) 853 [], [])
854 XE_MERGED_ARG([zlib], 854 XE_MERGED_ARG([zlib],
855 AS_HELP_STRING([--with-zlib],[Support inflate (de)compression internally.]), 855 AS_HELP_STRING([--with-zlib],[Support inflate (de)compression internally.]),
856 [], []) 856 [], [])
857 dnl 857 dnl
858 XE_HELP_SUBSECTION([Database options]) 858 XE_HELP_SUBSECTION([Database options])
859 XE_COMPLEX_ARG([database], 859 XE_COMPLEX_ARG([database],
860 AS_HELP_STRING([--enable-database=TYPE],[Compile with database support. Valid types are 860 AS_HELP_STRING([--with-database=TYPE],[Compile with database support. Valid types are
861 `no' or a comma-separated list of one or more 861 `no' or a comma-separated list of one or more
862 of `berkdb' and either `dbm' or `gdbm'.]), 862 of `berkdb' and either `dbm' or `gdbm'.]),
863 [ 863 [
864 if test "$enable_database_dbm" = "yes" -a "$enable_database_gdbm" = "yes"; then 864 if test "$with_database_dbm" = "yes" -a "$with_database_gdbm" = "yes"; then
865 USAGE_ERROR("Only one of \`dbm' and \`gdbm' may be specified 865 USAGE_ERROR("Only one of \`dbm' and \`gdbm' may be specified
866 with the \`--with-database' option.") 866 with the \`--with-database' option.")
867 fi 867 fi
868 ], 868 ],
869 [], 869 [],
919 [], [with_system_malloc='default']) 919 [], [with_system_malloc='default'])
920 XE_MERGED_ARG([debug-malloc], 920 XE_MERGED_ARG([debug-malloc],
921 AS_HELP_STRING([--with-debug-malloc],[Use a debugging malloc.]), 921 AS_HELP_STRING([--with-debug-malloc],[Use a debugging malloc.]),
922 [], []) 922 [], [])
923 XE_MERGED_ARG([pdump], 923 XE_MERGED_ARG([pdump],
924 AS_HELP_STRING([--enable-pdump],[Enable portable LISP preloader.]), 924 AS_HELP_STRING([--with-pdump],[Enable portable LISP preloader.]),
925 [], []) 925 [], [])
926 XE_MERGED_ARG([dump-in-exec], 926 XE_MERGED_ARG([dump-in-exec],
927 AS_HELP_STRING([--enable-dump-in-exec],[Enable dumping into executable (enabled by default 927 AS_HELP_STRING([--with-dump-in-exec],[Enable dumping into executable (enabled by default
928 for `pdump', not enabled by default in combination 928 for `pdump', not enabled by default in combination
929 with `newgc').]), 929 with `newgc').]),
930 [], []) 930 [], [])
931 XE_MERGED_ARG([kkcc], 931 XE_MERGED_ARG([kkcc],
932 AS_HELP_STRING([--enable-kkcc],[Enable experimental new GC mark algorithms.]), 932 AS_HELP_STRING([--with-kkcc],[Enable experimental new GC mark algorithms.]),
933 [], [enable_kkcc=yes]) 933 [], [with_kkcc=yes])
934 934
935 XE_MERGED_ARG([newgc], 935 XE_MERGED_ARG([newgc],
936 AS_HELP_STRING([--enable-newgc],[Enable new incremental garbage collector and new allocator.]), 936 AS_HELP_STRING([--with-newgc],[Enable new incremental garbage collector and new allocator.]),
937 [], []) 937 [], [])
938 XE_COMPLEX_ARG([vdb], 938 XE_COMPLEX_ARG([vdb],
939 AS_HELP_STRING([--enable-vdb=TYPE],[Override auto-detection of 939 AS_HELP_STRING([--with-vdb=TYPE],[Override auto-detection of
940 virtual-dirty-bit write-barrier implementation for the 940 virtual-dirty-bit write-barrier implementation for the
941 new garbage collector. TYPE must be one of "auto" (for 941 new garbage collector. TYPE must be one of "auto" (for
942 auto-detection), "posix", "win32", "mach", or "fake" 942 auto-detection), "posix", "win32", "mach", or "fake"
943 (uses the new garbage collector but disables 943 (uses the new garbage collector but disables
944 incremental collections). The default is to 944 incremental collections). The default is to
945 use auto-detection.]), 945 use auto-detection.]),
946 [], [enable_vdb="auto"],[auto,posix,win32,mach,fake,no]) 946 [], [with_vdb="auto"],[auto,posix,win32,mach,fake,no])
947 dnl 947 dnl
948 XE_HELP_SUBSECTION([Emacs Lisp options]) 948 XE_HELP_SUBSECTION([Emacs Lisp options])
949 XE_MERGED_ARG([modules], 949 XE_MERGED_ARG([modules],
950 AS_HELP_STRING([--enable-modules],[Compile in experimental support for dynamically 950 AS_HELP_STRING([--with-modules],[Compile in experimental support for dynamically
951 loaded libraries (Dynamic Shared Objects).]), 951 loaded libraries (Dynamic Shared Objects).]),
952 [], []) 952 [], [])
953 XE_KEYWORD_ARG([bignum], 953 XE_KEYWORD_ARG([bignum],
954 AS_HELP_STRING([--enable-bignum=TYPE],[Compile in support for bignums, ratios, or bigfloats 954 AS_HELP_STRING([--with-bignum=TYPE],[Compile in support for bignums, ratios, or bigfloats
955 using library support. TYPE must be one of "gmp" 955 using library support. TYPE must be one of "gmp"
956 (for GNU MP), "mp" (for BSD MP), or "no" (disabled).]), 956 (for GNU MP), "mp" (for BSD MP), or "no" (disabled).]),
957 [], [enable_bignum="no"],[no,gmp,mp]) 957 [], [with_bignum="no"],[no,gmp,mp])
958 dnl 958 dnl
959 XE_HELP_SUBSECTION([Platform Specific options]) 959 XE_HELP_SUBSECTION([Platform Specific options])
960 XE_MERGED_ARG([workshop], 960 XE_MERGED_ARG([workshop],
961 AS_HELP_STRING([--with-workshop],[Support the Sun WorkShop (formerly Sparcworks) 961 AS_HELP_STRING([--with-workshop],[Support the Sun WorkShop (formerly Sparcworks)
962 development environment.]), 962 development environment.]),
968 AS_HELP_STRING([--with-infodock],[Support the Infodock version of XEmacs. Infodock is a SourceForge project).]), 968 AS_HELP_STRING([--with-infodock],[Support the Infodock version of XEmacs. Infodock is a SourceForge project).]),
969 [], []) 969 [], [])
970 dnl 970 dnl
971 XE_HELP_SUBSECTION([Debugging options]) 971 XE_HELP_SUBSECTION([Debugging options])
972 XE_MERGED_ARG([debug], 972 XE_MERGED_ARG([debug],
973 AS_HELP_STRING([--enable-debug],[Enable additional debugging information. No time cost.]), 973 AS_HELP_STRING([--with-debug],[Enable additional debugging information. No time cost.]),
974 [], []) 974 [], [])
975 dnl Keep TESTS sorted to help with syncing doc to reality. 975 dnl Keep TESTS sorted to help with syncing doc to reality.
976 XE_COMPLEX_ARG([error-checking], 976 XE_COMPLEX_ARG([error-checking],
977 AS_HELP_STRING([--enable-error-checking=TESTS],[Compile with internal error-checking added. 977 AS_HELP_STRING([--with-error-checking=TESTS],[Compile with internal error-checking added.
978 Causes noticeable loss of speed. Valid TESTS 978 Causes noticeable loss of speed. Valid TESTS
979 are `byte_code', `display', `extents', `gc', `glyphs', `malloc', `structures' `text', `types'.]), 979 are `byte_code', `display', `extents', `gc', `glyphs', `malloc', `structures' `text', `types'.]),
980 [], [], 980 [], [],
981 [XE_COMPLEX_OPTION([byte_code],[""]), 981 [XE_COMPLEX_OPTION([byte_code],[""]),
982 XE_COMPLEX_OPTION([display],[""]), 982 XE_COMPLEX_OPTION([display],[""]),
986 XE_COMPLEX_OPTION([malloc],[""]), 986 XE_COMPLEX_OPTION([malloc],[""]),
987 XE_COMPLEX_OPTION([structures],[""]), 987 XE_COMPLEX_OPTION([structures],[""]),
988 XE_COMPLEX_OPTION([text],[""]), 988 XE_COMPLEX_OPTION([text],[""]),
989 XE_COMPLEX_OPTION([types],[""])]) 989 XE_COMPLEX_OPTION([types],[""])])
990 XE_MERGED_ARG([assertions], 990 XE_MERGED_ARG([assertions],
991 AS_HELP_STRING([--enable-assertions],[Compile in runtime assertions.]), 991 AS_HELP_STRING([--with-assertions],[Compile in runtime assertions.]),
992 [], []) 992 [], [])
993 XE_MERGED_ARG([memory-usage-stats], 993 XE_MERGED_ARG([memory-usage-stats],
994 AS_HELP_STRING([--enable-memory-usage-stats],[Enable LISP memory usage API.]), 994 AS_HELP_STRING([--with-memory-usage-stats],[Enable LISP memory usage API.]),
995 [], []) 995 [], [])
996 XE_MERGED_ARG([quick-build], 996 XE_MERGED_ARG([quick-build],
997 AS_HELP_STRING([--enable-quick-build],[Speed up the build cycle by leaving out steps where 997 AS_HELP_STRING([--with-quick-build],[Speed up the build cycle by leaving out steps where
998 XEmacs will still work (more or less) without them. 998 XEmacs will still work (more or less) without them.
999 Potentially dangerous if you don't know what you're 999 Potentially dangerous if you don't know what you're
1000 doing. This (1) doesn't garbage-collect after loading 1000 doing. This (1) doesn't garbage-collect after loading
1001 each file during dumping, (2) doesn't 1001 each file during dumping, (2) doesn't
1002 automatically rebuild the DOC file (remove it by hand 1002 automatically rebuild the DOC file (remove it by hand
1004 associated files from the dependency lists, so changes 1004 associated files from the dependency lists, so changes
1005 to these files don't automatically cause all .c files 1005 to these files don't automatically cause all .c files
1006 to be rebuilt.]), 1006 to be rebuilt.]),
1007 [], []) 1007 [], [])
1008 XE_MERGED_ARG([union-type], 1008 XE_MERGED_ARG([union-type],
1009 AS_HELP_STRING([--enable-union-type],[Use union definition of Lisp_Object type. Known to trigger bugs in some compilers.]), 1009 AS_HELP_STRING([--with-union-type],[Use union definition of Lisp_Object type. Known to trigger bugs in some compilers.]),
1010 [], []) 1010 [], [])
1011 XE_MERGED_ARG([quantify], 1011 XE_MERGED_ARG([quantify],
1012 AS_HELP_STRING([--with-quantify],[Support performance debugging using Quantify.]), 1012 AS_HELP_STRING([--with-quantify],[Support performance debugging using Quantify.]),
1013 [], []) 1013 [], [])
1014 XE_MERGED_ARG([purify], 1014 XE_MERGED_ARG([purify],
1221 1221
1222 dnl ---------------------------------- 1222 dnl ----------------------------------
1223 dnl Error checking and debugging flags 1223 dnl Error checking and debugging flags
1224 dnl ---------------------------------- 1224 dnl ----------------------------------
1225 dnl Error checking default to "yes" in beta versions, to "no" in releases. 1225 dnl Error checking default to "yes" in beta versions, to "no" in releases.
1226 dnl Same goes for --enable-debug and --extra-verbosity. 1226 dnl Same goes for --with-debug and --extra-verbosity.
1227 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi 1227 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1228 test "${enable_error_checking_extents:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) 1228 test "${with_error_checking_extents:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS)
1229 test "${enable_error_checking_types:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPES) 1229 test "${with_error_checking_types:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPES)
1230 test "${enable_error_checking_text:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TEXT) 1230 test "${with_error_checking_text:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TEXT)
1231 test "${enable_error_checking_gc:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) 1231 test "${with_error_checking_gc:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC)
1232 test "${enable_error_checking_malloc:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) 1232 test "${with_error_checking_malloc:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC)
1233 test "${enable_error_checking_byte_code:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE) 1233 test "${with_error_checking_byte_code:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE)
1234 test "${enable_error_checking_glyphs:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GLYPHS) 1234 test "${with_error_checking_glyphs:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GLYPHS)
1235 test "${enable_error_checking_display:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_DISPLAY) 1235 test "${with_error_checking_display:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_DISPLAY)
1236 test "${enable_error_checking_structures:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_STRUCTURES) 1236 test "${with_error_checking_structures:=$beta}" = yes && AC_DEFINE(ERROR_CHECK_STRUCTURES)
1237 dnl enable_debug=yes must be set when error checking is present. This should be 1237 dnl with_debug=yes must be set when error checking is present. This should be
1238 dnl fixed up. 1238 dnl fixed up.
1239 dnl enable_debug implies other options 1239 dnl with_debug implies other options
1240 if test "${enable_debug:=$beta}" = "yes"; then 1240 if test "${with_debug:=$beta}" = "yes"; then
1241 enable_assertions=yes 1241 with_assertions=yes
1242 enable_memory_usage_stats=yes 1242 with_memory_usage_stats=yes
1243 AC_DEFINE(DEBUG_XEMACS) 1243 AC_DEFINE(DEBUG_XEMACS)
1244 fi 1244 fi
1245 test "$enable_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) 1245 test "$with_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS)
1246 test "$enable_memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) 1246 test "$with_memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS)
1247 1247
1248 dnl ------------------------------ 1248 dnl ------------------------------
1249 dnl Determine the s&m files to use 1249 dnl Determine the s&m files to use
1250 dnl ------------------------------ 1250 dnl ------------------------------
1251 dnl Given the configuration name, set machfile and opsysfile to the 1251 dnl Given the configuration name, set machfile and opsysfile to the
1436 1436
1437 dnl -------------------------------------------------------------- 1437 dnl --------------------------------------------------------------
1438 dnl $opsys detection complete; defaults depending on $opsys follow 1438 dnl $opsys detection complete; defaults depending on $opsys follow
1439 dnl -------------------------------------------------------------- 1439 dnl --------------------------------------------------------------
1440 1440
1441 if test -z "$enable_pdump"; then 1441 if test -z "$with_pdump"; then
1442 case "$opsys" in 1442 case "$opsys" in
1443 linux* ) enable_pdump=yes ;; dnl glibc 2.3.1 seems to hose unexec 1443 linux* ) with_pdump=yes ;; dnl glibc 2.3.1 seems to hose unexec
1444 darwin ) enable_pdump=yes ;; dnl No "native" working dumper available 1444 darwin ) with_pdump=yes ;; dnl No "native" working dumper available
1445 cygwin* ) enable_pdump=yes ;; dnl unexec is broken 1445 cygwin* ) with_pdump=yes ;; dnl unexec is broken
1446 * ) enable_pdump=no ;; 1446 * ) with_pdump=no ;;
1447 esac 1447 esac
1448 fi 1448 fi
1449 1449
1450 if test "$enable_newgc" = "yes"; then 1450 if test "$with_newgc" = "yes"; then
1451 if test "$enable_vdb" = "auto"; then 1451 if test "$with_vdb" = "auto"; then
1452 case "$opsys" in 1452 case "$opsys" in
1453 darwin ) case "$machine" in 1453 darwin ) case "$machine" in
1454 i[[3-9]]86 ) check_vdb_posix=yes ;; 1454 i[[3-9]]86 ) check_vdb_posix=yes ;;
1455 * ) AC_DEFINE(VDB_MACH) have_vdb_mach=yes ;; 1455 * ) AC_DEFINE(VDB_MACH) have_vdb_mach=yes ;;
1456 esac ;; 1456 esac ;;
1459 freebsd ) check_vdb_posix=yes ;; 1459 freebsd ) check_vdb_posix=yes ;;
1460 dnl if not sure, try posix first, maybe we are lucky 1460 dnl if not sure, try posix first, maybe we are lucky
1461 * ) check_vdb_posix=yes ;; 1461 * ) check_vdb_posix=yes ;;
1462 esac 1462 esac
1463 else 1463 else
1464 case "$enable_vdb" in 1464 case "$with_vdb" in
1465 mach ) AC_DEFINE(VDB_MACH) have_vdb_mach=yes ;; 1465 mach ) AC_DEFINE(VDB_MACH) have_vdb_mach=yes ;;
1466 win32 ) AC_DEFINE(VDB_WIN32) have_vdb_win32=yes ;; 1466 win32 ) AC_DEFINE(VDB_WIN32) have_vdb_win32=yes ;;
1467 posix ) check_vdb_posix=yes ;; 1467 posix ) check_vdb_posix=yes ;;
1468 fake ) have_vdb_fake=yes ;; 1468 fake ) have_vdb_fake=yes ;;
1469 no ) have_vdb_fake=yes ;; 1469 no ) have_vdb_fake=yes ;;
1510 XE_CHECK_FEATURE_DEPENDENCY(workshop, tooltalk) 1510 XE_CHECK_FEATURE_DEPENDENCY(workshop, tooltalk)
1511 if test "$with_workshop" = "yes"; then 1511 if test "$with_workshop" = "yes"; then
1512 AC_DEFINE(SUNPRO) 1512 AC_DEFINE(SUNPRO)
1513 fi 1513 fi
1514 1514
1515 if test "$enable_clash_detection" != "no"; then 1515 if test "$with_clash_detection" != "no"; then
1516 AC_DEFINE(CLASH_DETECTION) 1516 AC_DEFINE(CLASH_DETECTION)
1517 fi 1517 fi
1518 1518
1519 dnl Choose a compiler from (in order) 1519 dnl Choose a compiler from (in order)
1520 dnl --with-compiler, env var CC, with_gcc=no && ${NON_GNU_CC:-cc}, AC_PROG_CC 1520 dnl --with-compiler, env var CC, with_gcc=no && ${NON_GNU_CC:-cc}, AC_PROG_CC
1792 AC_DEFINE_UNQUOTED(SYSTEM_TYPE,"`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`") 1792 AC_DEFINE_UNQUOTED(SYSTEM_TYPE,"`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`")
1793 1793
1794 dnl If the s&m files don't define a system-specific dumper, simply use pdump. 1794 dnl If the s&m files don't define a system-specific dumper, simply use pdump.
1795 dnl Sometime in the future, we'll remove all definitions of UNEXEC 1795 dnl Sometime in the future, we'll remove all definitions of UNEXEC
1796 dnl from all the s&m files. 1796 dnl from all the s&m files.
1797 test -z "$unexec" && enable_pdump=yes 1797 test -z "$unexec" && with_pdump=yes
1798 1798
1799 if test "$enable_pdump" = "yes"; then 1799 if test "$with_pdump" = "yes"; then
1800 ordinary_link="yes" 1800 ordinary_link="yes"
1801 ld="${ordinary_ld}" 1801 ld="${ordinary_ld}"
1802 start_files= 1802 start_files=
1803 libs_standard= 1803 libs_standard=
1804 unexec= 1804 unexec=
1805 lib_gcc= 1805 lib_gcc=
1806 fi 1806 fi
1807 1807
1808 dnl Enable KKCC by default 1808 dnl Enable KKCC by default
1809 test -z "$enable_kkcc" && enable_kkcc=yes 1809 test -z "$with_kkcc" && with_kkcc=yes
1810 1810
1811 dnl Dump into executable 1811 dnl Dump into executable
1812 if test -z "$enable_dump_in_exec"; then 1812 if test -z "$with_dump_in_exec"; then
1813 if test "$enable_pdump" = "yes"; then 1813 if test "$with_pdump" = "yes"; then
1814 if test "$enable_newgc" = "yes"; then 1814 if test "$with_newgc" = "yes"; then
1815 enable_dump_in_exec=no 1815 with_dump_in_exec=no
1816 else 1816 else
1817 enable_dump_in_exec=yes 1817 with_dump_in_exec=yes
1818 fi 1818 fi
1819 fi 1819 fi
1820 fi 1820 fi
1821 1821
1822 dnl New incremental garbage collector 1822 dnl New incremental garbage collector
1823 if test "$enable_newgc" = "yes"; then 1823 if test "$with_newgc" = "yes"; then
1824 enable_kkcc=yes 1824 with_kkcc=yes
1825 fi 1825 fi
1826 1826
1827 dnl For debugging... 1827 dnl For debugging...
1828 test "$verbose" = "yes" && \ 1828 test "$verbose" = "yes" && \
1829 PRINT_VAR(libs_machine libs_system libs_termcap libs_standard 1829 PRINT_VAR(libs_machine libs_system libs_termcap libs_standard
2123 dnl GNU ld now defaults to combreloc, which screws up unexec, but not pdump. 2123 dnl GNU ld now defaults to combreloc, which screws up unexec, but not pdump.
2124 dnl Note that it's OK if the GNU style long option causes non-GNU ld to barf 2124 dnl Note that it's OK if the GNU style long option causes non-GNU ld to barf
2125 dnl a usage message, that's often good enough. Please report it, though. 2125 dnl a usage message, that's often good enough. Please report it, though.
2126 dnl #### Should make this Solaris-friendly. 2126 dnl #### Should make this Solaris-friendly.
2127 dnl Link with -z nocombreloc for now. 2127 dnl Link with -z nocombreloc for now.
2128 if test "$enable_pdump" != "yes"; then 2128 if test "$with_pdump" != "yes"; then
2129 AC_MSG_CHECKING([for "-z nocombreloc" linker flag]) 2129 AC_MSG_CHECKING([for "-z nocombreloc" linker flag])
2130 case "`ld --help 2>&1`" in 2130 case "`ld --help 2>&1`" in
2131 *-z\ nocombreloc* ) AC_MSG_RESULT(yes) 2131 *-z\ nocombreloc* ) AC_MSG_RESULT(yes)
2132 XE_PREPEND(-z nocombreloc, ld_switch_site) ;; 2132 XE_PREPEND(-z nocombreloc, ld_switch_site) ;;
2133 *) AC_MSG_RESULT(no) ;; 2133 *) AC_MSG_RESULT(no) ;;
2142 XE_PROTECT_LINKER_FLAGS(ld_call_shared) 2142 XE_PROTECT_LINKER_FLAGS(ld_call_shared)
2143 2143
2144 dnl Add s&m-determined objects (including unexec) to link line 2144 dnl Add s&m-determined objects (including unexec) to link line
2145 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine) 2145 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine)
2146 test -n "$objects_system" && XE_ADD_OBJS($objects_system) 2146 test -n "$objects_system" && XE_ADD_OBJS($objects_system)
2147 test -n "$unexec" && test ! "$enable_pdump" = "yes" && XE_ADD_OBJS($unexec) 2147 test -n "$unexec" && test ! "$with_pdump" = "yes" && XE_ADD_OBJS($unexec)
2148 test "$enable_pdump" = "yes" && XE_ADD_OBJS(dumper.o) 2148 test "$with_pdump" = "yes" && XE_ADD_OBJS(dumper.o)
2149 2149
2150 dnl Feed s&m crud to src/Makefile 2150 dnl Feed s&m crud to src/Makefile
2151 2151
2152 dnl Linux/powerpc needs the following magic for some reason 2152 dnl Linux/powerpc needs the following magic for some reason
2153 dnl [Not needed with YellowDog 2.3 and causes link problems with YellowDog 3.0, 2153 dnl [Not needed with YellowDog 2.3 and causes link problems with YellowDog 3.0,
2500 2500
2501 dnl #### mcheck is broken in all versions of Linux libc and glibc. 2501 dnl #### mcheck is broken in all versions of Linux libc and glibc.
2502 dnl Try this again when 2.1 hits the streets. 2502 dnl Try this again when 2.1 hits the streets.
2503 dnl Avoid using free-hook.c if support exists for malloc debugging in libc 2503 dnl Avoid using free-hook.c if support exists for malloc debugging in libc
2504 dnl have_libmcheck=no 2504 dnl have_libmcheck=no
2505 dnl if test "$enable_error_checking_malloc" = "yes" -a \ 2505 dnl if test "$with_error_checking_malloc" = "yes" -a \
2506 dnl "$have_glibc" = "yes" -a \ 2506 dnl "$have_glibc" = "yes" -a \
2507 dnl "$doug_lea_malloc" = "yes"; then 2507 dnl "$doug_lea_malloc" = "yes"; then
2508 dnl AC_CHECK_HEADERS(mcheck.h) 2508 dnl AC_CHECK_HEADERS(mcheck.h)
2509 dnl AC_CHECK_LIB(mcheck, mcheck, have_libmcheck=yes, have_libmcheck=no) 2509 dnl AC_CHECK_LIB(mcheck, mcheck, have_libmcheck=yes, have_libmcheck=no)
2510 dnl fi 2510 dnl fi
2824 with_x11=no 2824 with_x11=no
2825 fi 2825 fi
2826 2826
2827 for feature in scrollbars toolbars menubars dialogs widgets 2827 for feature in scrollbars toolbars menubars dialogs widgets
2828 do 2828 do
2829 eval "feature_value=\${enable_${feature}}" 2829 eval "feature_value=\${with_${feature}}"
2830 case "${feature_value}" in 2830 case "${feature_value}" in
2831 yes|no|gtk|"" ) 2831 yes|no|gtk|"" )
2832 ;; 2832 ;;
2833 * ) 2833 * )
2834 feature_conflict_with_gtk=yes 2834 feature_conflict_with_gtk=yes
2835 AC_MSG_WARN([--enable-${feature}=${feature_value} is incompatible with --with-gtk]) ;; 2835 AC_MSG_WARN([--with-${feature}=${feature_value} is incompatible with --with-gtk]) ;;
2836 esac 2836 esac
2837 done 2837 done
2838 if test "${feature_conflict_with_gtk}" = "yes"; then 2838 if test "${feature_conflict_with_gtk}" = "yes"; then
2839 XE_DIE(["One or more GUI toolkit features conflict with GTK"]) 2839 XE_DIE(["One or more GUI toolkit features conflict with GTK"])
2840 fi 2840 fi
2841 2841
2842 test "${enable_scrollbars}" != "no" && enable_scrollbars=gtk 2842 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
2843 test "${enable_toolbars}" != "no" && enable_toolbars=gtk 2843 test "${with_toolbars}" != "no" && with_toolbars=gtk
2844 test "${enable_menubars}" != "no" && enable_menubars=gtk 2844 test "${with_menubars}" != "no" && with_menubars=gtk
2845 test "${enable_dialogs}" != "no" && enable_dialogs=gtk 2845 test "${with_dialogs}" != "no" && with_dialogs=gtk
2846 test "${enable_widgets}" != "no" && enable_widgets=gtk 2846 test "${with_widgets}" != "no" && with_widgets=gtk
2847 2847
2848 dnl Check for libglade support (it rocks) 2848 dnl Check for libglade support (it rocks)
2849 OLD_CFLAGS="${CFLAGS}" 2849 OLD_CFLAGS="${CFLAGS}"
2850 OLD_CPPFLAGS="${CPPFLAGS}" 2850 OLD_CPPFLAGS="${CPPFLAGS}"
2851 OLD_LDFLAGS="${LDFLAGS}" 2851 OLD_LDFLAGS="${LDFLAGS}"
3055 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4]) 3055 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4])
3056 AC_MSG_RESULT(R${x11_release}) 3056 AC_MSG_RESULT(R${x11_release})
3057 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release}) 3057 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release})
3058 3058
3059 if test "${x11_release}" = "4"; then 3059 if test "${x11_release}" = "4"; then
3060 case "$enable_widgets" in 3060 case "$with_widgets" in
3061 "" | "no") enable_widgets=no ;; 3061 "" | "no") with_widgets=no ;;
3062 *) XE_DIE("Widget support requires X11R5 or greater") ;; 3062 *) XE_DIE("Widget support requires X11R5 or greater") ;;
3063 esac 3063 esac
3064 fi 3064 fi
3065 3065
3066 AC_CHECK_FUNCS(XConvertCase XtRegisterDrawable) 3066 AC_CHECK_FUNCS(XConvertCase XtRegisterDrawable)
3192 XE_APPEND(msw, dragndrop_proto) 3192 XE_APPEND(msw, dragndrop_proto)
3193 with_dragndrop=yes 3193 with_dragndrop=yes
3194 fi 3194 fi
3195 if test "$window_system" != x11; then 3195 if test "$window_system" != x11; then
3196 window_system=msw 3196 window_system=msw
3197 test "$enable_scrollbars" != "no" && enable_scrollbars=msw 3197 test "$with_scrollbars" != "no" && with_scrollbars=msw
3198 test "$enable_menubars" != "no" && enable_menubars=msw 3198 test "$with_menubars" != "no" && with_menubars=msw
3199 test "$enable_toolbars" != "no" && enable_toolbars=msw 3199 test "$with_toolbars" != "no" && with_toolbars=msw
3200 test "$enable_dialogs" != "no" && enable_dialogs=msw 3200 test "$with_dialogs" != "no" && with_dialogs=msw
3201 test "$enable_widgets" != "no" && enable_widgets=msw 3201 test "$with_widgets" != "no" && with_widgets=msw
3202 fi 3202 fi
3203 dnl check for our special version of select 3203 dnl check for our special version of select
3204 AC_RUN_IFELSE([AC_LANG_SOURCE([#include <fcntl.h> 3204 AC_RUN_IFELSE([AC_LANG_SOURCE([#include <fcntl.h>
3205 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }])], 3205 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }])],
3206 [AC_DEFINE(HAVE_MSG_SELECT)]) 3206 [AC_DEFINE(HAVE_MSG_SELECT)])
3214 3214
3215 dnl Test for features that require a window system - ANY window system 3215 dnl Test for features that require a window system - ANY window system
3216 if test "$window_system" = "none"; then 3216 if test "$window_system" = "none"; then
3217 for feature in menubars scrollbars toolbars dialogs dragndrop xface 3217 for feature in menubars scrollbars toolbars dialogs dragndrop xface
3218 do 3218 do
3219 if eval "test -n \"\$enable_${feature}\" -a \"\$enable_${feature}\" != no" ; then 3219 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
3220 AC_MSG_WARN([--enable-$feature ignored: Not valid without window system support]) 3220 AC_MSG_WARN([--with-$feature ignored: Not valid without window system support])
3221 fi 3221 fi
3222 eval "enable_${feature}=no" 3222 eval "with_${feature}=no"
3223 done 3223 done
3224 else 3224 else
3225 test -z "$enable_toolbars" && enable_toolbars=yes 3225 test -z "$with_toolbars" && with_toolbars=yes
3226 fi 3226 fi
3227 3227
3228 dnl ### Test for features that require mswindows support - currently none 3228 dnl ### Test for features that require mswindows support - currently none
3229 dnl ### MS-Windows folks: add code here..... (martin) 3229 dnl ### MS-Windows folks: add code here..... (martin)
3230 if test "$with_msw" != "yes"; then 3230 if test "$with_msw" != "yes"; then
3244 dnl It ought to be reasonable to have no output device at all, and only use 3244 dnl It ought to be reasonable to have no output device at all, and only use
3245 dnl XEmacs in --batch mode. 3245 dnl XEmacs in --batch mode.
3246 dnl if test "$with_tty" = "no" ; then 3246 dnl if test "$with_tty" = "no" ; then
3247 dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) 3247 dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.])
3248 dnl fi 3248 dnl fi
3249 for feature in with_tooltalk with_cde with_wmcommand with_xim enable_sound_nas 3249 for feature in with_tooltalk with_cde with_wmcommand with_xim with_sound_nas
3250 do 3250 do
3251 if eval "test -n \"\$${feature}\" -a \"\$${feature}\" != \"no\"" ; then 3251 if eval "test -n \"\$${feature}\" -a \"\$${feature}\" != \"no\"" ; then
3252 AC_MSG_WARN([--$feature ignored: Not valid without X support]) 3252 AC_MSG_WARN([--$feature ignored: Not valid without X support])
3253 fi 3253 fi
3254 eval "${feature}=no" 3254 eval "${feature}=no"
3318 LIBSTDCPP= 3318 LIBSTDCPP=
3319 fi 3319 fi
3320 AC_SUBST(LIBSTDCPP) 3320 AC_SUBST(LIBSTDCPP)
3321 3321
3322 dnl This must come before the detection code for anything that is in a module 3322 dnl This must come before the detection code for anything that is in a module
3323 if test "$enable_modules" != "no"; then 3323 if test "$with_modules" != "no"; then
3324 AC_MSG_CHECKING([for module support]) 3324 AC_MSG_CHECKING([for module support])
3325 AC_MSG_RESULT() 3325 AC_MSG_RESULT()
3326 3326
3327 case "$opsys" in 3327 case "$opsys" in
3328 mingw* | cygwin* ) have_dl=yes ;; 3328 mingw* | cygwin* ) have_dl=yes ;;
3396 dnl For no-module builds, this is added *after* the module directories 3396 dnl For no-module builds, this is added *after* the module directories
3397 XE_APPEND(src, MAKE_SUBDIR) 3397 XE_APPEND(src, MAKE_SUBDIR)
3398 XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR) 3398 XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR)
3399 test -n "$libdl" && XE_PREPEND(-l${libdl}, LIBS) 3399 test -n "$libdl" && XE_PREPEND(-l${libdl}, LIBS)
3400 AC_CHECK_FUNCS(dlerror _dlerror) 3400 AC_CHECK_FUNCS(dlerror _dlerror)
3401 enable_modules=yes 3401 with_modules=yes
3402 MOD_CC="../../lib-src/ellcc" 3402 MOD_CC="../../lib-src/ellcc"
3403 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src" 3403 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
3404 INSTALLPATH="\$(moduledir)" 3404 INSTALLPATH="\$(moduledir)"
3405 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM} 3405 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
3406 OBJECT_TO_BUILD="\$(MODNAME).ell" 3406 OBJECT_TO_BUILD="\$(MODNAME).ell"
3407 else 3407 else
3408 if test "$enable_modules" = "yes"; then 3408 if test "$with_modules" = "yes"; then
3409 XE_DIE("Required module support cannot be provided.") 3409 XE_DIE("Required module support cannot be provided.")
3410 else 3410 else
3411 echo " No module support." 3411 echo " No module support."
3412 fi 3412 fi
3413 enable_modules=no 3413 with_modules=no
3414 fi 3414 fi
3415 fi 3415 fi
3416 if test "$enable_modules" != "yes"; then 3416 if test "$with_modules" != "yes"; then
3417 MOD_CC="$XEMACS_CC" 3417 MOD_CC="$XEMACS_CC"
3418 MODCFLAGS="\$(XE_CFLAGS) -I../../src -I\$(srcdir)/../../src" 3418 MODCFLAGS="\$(XE_CFLAGS) -I../../src -I\$(srcdir)/../../src"
3419 INSTALLPATH="" 3419 INSTALLPATH=""
3420 MOD_INSTALL_PROGRAM="true" 3420 MOD_INSTALL_PROGRAM="true"
3421 OBJECT_TO_BUILD="\$(MODNAME).o" 3421 OBJECT_TO_BUILD="\$(MODNAME).o"
3422 fi 3422 fi
3423 MODARCHDIR= 3423 MODARCHDIR=
3424 MAKE_DOCFILE="../../lib-src/make-docfile" 3424 MAKE_DOCFILE="../../lib-src/make-docfile"
3425 AC_SUBST(with_modules, $enable_modules) 3425 AC_SUBST(with_modules, $with_modules)
3426 AC_SUBST(MOD_CC) 3426 AC_SUBST(MOD_CC)
3427 AC_SUBST(MODARCHDIR) 3427 AC_SUBST(MODARCHDIR)
3428 AC_SUBST(MAKE_DOCFILE) 3428 AC_SUBST(MAKE_DOCFILE)
3429 AC_SUBST(MODCFLAGS) 3429 AC_SUBST(MODCFLAGS)
3430 AC_SUBST(INSTALLPATH) 3430 AC_SUBST(INSTALLPATH)
3536 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs" 3536 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
3537 AC_CHECK_FUNCS(ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result) 3537 AC_CHECK_FUNCS(ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result)
3538 LIBS="$save_LIBS" 3538 LIBS="$save_LIBS"
3539 XE_APPEND(modules/ldap, MAKE_SUBDIR) 3539 XE_APPEND(modules/ldap, MAKE_SUBDIR)
3540 need_modules_common=yes 3540 need_modules_common=yes
3541 if test "$enable_modules" = "yes"; then 3541 if test "$with_modules" = "yes"; then
3542 XE_APPEND(modules/ldap, INSTALL_ARCH_DEP_SUBDIR) 3542 XE_APPEND(modules/ldap, INSTALL_ARCH_DEP_SUBDIR)
3543 fi 3543 fi
3544 fi 3544 fi
3545 AC_SUBST(ldap_libs) 3545 AC_SUBST(ldap_libs)
3546 3546
3587 AC_DEFINE(HAVE_POSTGRESQLV7)], [:], $extra_libs) 3587 AC_DEFINE(HAVE_POSTGRESQLV7)], [:], $extra_libs)
3588 AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file") 3588 AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file")
3589 XE_PREPEND([$pq_libs], postgresql_libs) 3589 XE_PREPEND([$pq_libs], postgresql_libs)
3590 XE_APPEND(modules/postgresql, MAKE_SUBDIR) 3590 XE_APPEND(modules/postgresql, MAKE_SUBDIR)
3591 need_modules_common=yes 3591 need_modules_common=yes
3592 if test "$enable_modules" = "yes"; then 3592 if test "$with_modules" = "yes"; then
3593 XE_APPEND(modules/postgresql, INSTALL_ARCH_DEP_SUBDIR) 3593 XE_APPEND(modules/postgresql, INSTALL_ARCH_DEP_SUBDIR)
3594 fi 3594 fi
3595 elif test "$with_postgresql" = "yes"; then 3595 elif test "$with_postgresql" = "yes"; then
3596 XE_DIE("Required PostgreSQL support cannot be provided. Check --with-site-prefixes.") 3596 XE_DIE("Required PostgreSQL support cannot be provided. Check --with-site-prefixes.")
3597 fi 3597 fi
3803 if test "$with_x11" = "yes"; then 3803 if test "$with_x11" = "yes"; then
3804 AC_MSG_CHECKING([for X11 graphics libraries]) 3804 AC_MSG_CHECKING([for X11 graphics libraries])
3805 AC_MSG_RESULT() 3805 AC_MSG_RESULT()
3806 fi 3806 fi
3807 3807
3808 case "$enable_widgets" in 3808 case "$with_widgets" in
3809 "" | "yes" | "athena") detect_athena=yes ;; 3809 "" | "yes" | "athena") detect_athena=yes ;;
3810 *) detect_athena=no ;; 3810 *) detect_athena=no ;;
3811 esac 3811 esac
3812 3812
3813 case "$enable_dialogs" in 3813 case "$with_dialogs" in
3814 "" | "yes" | "athena") detect_athena=yes ;; 3814 "" | "yes" | "athena") detect_athena=yes ;;
3815 esac 3815 esac
3816 3816
3817 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then 3817 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
3818 AC_MSG_CHECKING([for the Athena widgets]) 3818 AC_MSG_CHECKING([for the Athena widgets])
3972 case "$opsys" in 3972 case "$opsys" in
3973 *linux* | *darwin* | *bsd* | *cygwin* ) lucid_prefers_motif="no" ;; 3973 *linux* | *darwin* | *bsd* | *cygwin* ) lucid_prefers_motif="no" ;;
3974 * ) lucid_prefers_motif="yes" ;; 3974 * ) lucid_prefers_motif="yes" ;;
3975 esac 3975 esac
3976 3976
3977 case "$enable_menubars" in "" | "yes" | "athena" ) 3977 case "$with_menubars" in "" | "yes" | "athena" )
3978 enable_menubars="lucid" ;; 3978 with_menubars="lucid" ;;
3979 esac 3979 esac
3980 dnl this is not in xft reloaded #3 3980 dnl this is not in xft reloaded #3
3981 if test "$with_xft_menubars" != "no" ; then 3981 if test "$with_xft_menubars" != "no" ; then
3982 if test "$with_xft_emacs" = "yes" -a "$with_menubars" != "no" ; then 3982 if test "$with_xft_emacs" = "yes" -a "$with_menubars" != "no" ; then
3983 with_xft_menubars="yes" 3983 with_xft_menubars="yes"
3984 else 3984 else
3985 with_xft_menubars="no" 3985 with_xft_menubars="no"
3986 fi 3986 fi
3987 fi 3987 fi
3988 case "$enable_dialogs" in "" | "yes" | "lucid" ) 3988 case "$with_dialogs" in "" | "yes" | "lucid" )
3989 if test "$lucid_prefers_motif" = "yes"; then 3989 if test "$lucid_prefers_motif" = "yes"; then
3990 if test "$have_motif" = "yes"; then enable_dialogs="motif" 3990 if test "$have_motif" = "yes"; then with_dialogs="motif"
3991 elif test "$have_xaw" = "yes"; then enable_dialogs="athena" 3991 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
3992 elif test "$with_msw" = "yes"; then enable_dialogs="msw" 3992 elif test "$with_msw" = "yes"; then with_dialogs="msw"
3993 else enable_dialogs=no 3993 else with_dialogs=no
3994 fi 3994 fi
3995 else 3995 else
3996 if test "$have_xaw" = "yes"; then enable_dialogs="athena" 3996 if test "$have_xaw" = "yes"; then with_dialogs="athena"
3997 elif test "$have_motif" = "yes"; then enable_dialogs="motif" 3997 elif test "$have_motif" = "yes"; then with_dialogs="motif"
3998 elif test "$with_msw" = "yes"; then enable_dialogs="msw" 3998 elif test "$with_msw" = "yes"; then with_dialogs="msw"
3999 else enable_dialogs=no 3999 else with_dialogs=no
4000 fi 4000 fi
4001 fi ;; 4001 fi ;;
4002 esac 4002 esac
4003 case "$enable_scrollbars" in "" | "yes" ) 4003 case "$with_scrollbars" in "" | "yes" )
4004 enable_scrollbars="lucid" ;; 4004 with_scrollbars="lucid" ;;
4005 esac 4005 esac
4006 case "$enable_widgets" in "" | "yes" | "lucid") 4006 case "$with_widgets" in "" | "yes" | "lucid")
4007 if test "$lucid_prefers_motif" = "yes"; then 4007 if test "$lucid_prefers_motif" = "yes"; then
4008 if test "$have_motif" = "yes"; then enable_widgets="motif" 4008 if test "$have_motif" = "yes"; then with_widgets="motif"
4009 elif test "$have_xaw" = "yes"; then enable_widgets="athena" 4009 elif test "$have_xaw" = "yes"; then with_widgets="athena"
4010 elif test "$with_msw" = "yes"; then enable_widgets="msw" 4010 elif test "$with_msw" = "yes"; then with_widgets="msw"
4011 else enable_widgets=no 4011 else with_widgets=no
4012 fi 4012 fi
4013 else 4013 else
4014 if test "$have_xaw" = "yes"; then enable_widgets="athena" 4014 if test "$have_xaw" = "yes"; then with_widgets="athena"
4015 elif test "$have_motif" = "yes"; then enable_widgets="motif" 4015 elif test "$have_motif" = "yes"; then with_widgets="motif"
4016 elif test "$with_msw" = "yes"; then enable_widgets="msw" 4016 elif test "$with_msw" = "yes"; then with_widgets="msw"
4017 else enable_widgets=no 4017 else with_widgets=no
4018 fi 4018 fi
4019 fi ;; 4019 fi ;;
4020 esac 4020 esac
4021 dnl this is not in xft reloaded #3 4021 dnl this is not in xft reloaded #3
4022 if test "$with_xft_tabs" != "no" ; then 4022 if test "$with_xft_tabs" != "no" ; then
4023 if test "$with_xft_emacs" = "yes" -a "$enable_widgets" != "no" ; then 4023 if test "$with_xft_emacs" = "yes" -a "$with_widgets" != "no" ; then
4024 with_xft_tabs="yes" 4024 with_xft_tabs="yes"
4025 else 4025 else
4026 with_xft_tabs="no" 4026 with_xft_tabs="no"
4027 fi 4027 fi
4028 fi 4028 fi
4029 dnl this is not in xft reloaded #3 4029 dnl this is not in xft reloaded #3
4030 if test "$with_xft_gauges" != "no" ; then 4030 if test "$with_xft_gauges" != "no" ; then
4031 if test "$with_xft_emacs" = "yes" -a "$enable_widgets" != "no" ; then 4031 if test "$with_xft_emacs" = "yes" -a "$with_widgets" != "no" ; then
4032 with_xft_gauges="yes" 4032 with_xft_gauges="yes"
4033 else 4033 else
4034 with_xft_gauges="no" 4034 with_xft_gauges="no"
4035 fi 4035 fi
4036 fi 4036 fi
4037 4037
4038 all_widgets="$enable_menubars $enable_scrollbars $enable_dialogs $enable_toolbars $enable_widgets" 4038 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
4039 4039
4040 case "$all_widgets" in 4040 case "$all_widgets" in
4041 *athena* ) 4041 *athena* )
4042 if test "$have_xaw" != "yes"; then 4042 if test "$have_xaw" != "yes"; then
4043 XE_DIE("Could not find a suitable Athena library to build with.") 4043 XE_DIE("Could not find a suitable Athena library to build with.")
4079 AC_DEFINE(NEED_MOTIF) 4079 AC_DEFINE(NEED_MOTIF)
4080 XE_APPEND(lwlib-Xm.o, lwlib_objs) 4080 XE_APPEND(lwlib-Xm.o, lwlib_objs)
4081 need_motif=yes ;; 4081 need_motif=yes ;;
4082 esac 4082 esac
4083 4083
4084 test "$enable_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs) 4084 test "$with_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs)
4085 test "$enable_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs) 4085 test "$with_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs)
4086 test "$enable_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs) 4086 test "$with_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs)
4087 test "$enable_widgets" != "no" && test "$enable_widgets" != "msw" && \ 4087 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
4088 XE_APPEND(xlwtabs.o xlwgcs.o, lwlib_objs) 4088 XE_APPEND(xlwtabs.o xlwgcs.o, lwlib_objs)
4089 case "$enable_widgets" in athena* ) 4089 case "$with_widgets" in athena* )
4090 XE_APPEND(xlwradio.o xlwcheckbox.o xlwgauge.o, lwlib_objs);; 4090 XE_APPEND(xlwradio.o xlwcheckbox.o xlwgauge.o, lwlib_objs);;
4091 esac 4091 esac
4092 case "$all_widgets" in *lucid* ) 4092 case "$all_widgets" in *lucid* )
4093 AC_DEFINE(NEED_LUCID) 4093 AC_DEFINE(NEED_LUCID)
4094 XE_APPEND(lwlib-Xlw.o, lwlib_objs) ;; 4094 XE_APPEND(lwlib-Xlw.o, lwlib_objs) ;;
4095 esac 4095 esac
4096 4096
4097 AC_SUBST(lwlib_objs) 4097 AC_SUBST(lwlib_objs)
4098 4098
4099 test "$enable_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) 4099 test "$with_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA)
4100 test "$enable_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA) 4100 test "$with_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA)
4101 4101
4102 if test "$athena_3d" = "yes"; then 4102 if test "$athena_3d" = "yes"; then
4103 test "$enable_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D) 4103 test "$with_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D)
4104 test "$enable_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D) 4104 test "$with_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D)
4105 fi 4105 fi
4106 4106
4107 case "$enable_widgets" in athena* ) AC_DEFINE(LWLIB_WIDGETS_ATHENA);; esac 4107 case "$with_widgets" in athena* ) AC_DEFINE(LWLIB_WIDGETS_ATHENA);; esac
4108 test "$enable_widgets" != "no" && test "$enable_widgets" != "msw" && \ 4108 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
4109 AC_DEFINE(LWLIB_TABS_LUCID) 4109 AC_DEFINE(LWLIB_TABS_LUCID)
4110 4110
4111 test "$enable_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) 4111 test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS)
4112 test "$enable_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) 4112 test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS)
4113 test "$enable_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) 4113 test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS)
4114 test "$enable_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) 4114 test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS)
4115 test "$enable_widgets" != "no" && AC_DEFINE(HAVE_WIDGETS) 4115 test "$with_widgets" != "no" && AC_DEFINE(HAVE_WIDGETS)
4116 4116
4117 test "$enable_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) 4117 test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID)
4118 test "$enable_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) 4118 test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID)
4119 4119
4120 test "$enable_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) 4120 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF)
4121 test "$enable_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) 4121 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF)
4122 test "$enable_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) 4122 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF)
4123 test "$enable_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF) 4123 test "$with_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF)
4124 4124
4125 test "$with_xft_menubars" = "yes" && AC_DEFINE(USE_XFT_MENUBARS) 4125 test "$with_xft_menubars" = "yes" && AC_DEFINE(USE_XFT_MENUBARS)
4126 test "$with_xft_tabs" = "yes" && AC_DEFINE(USE_XFT_TABS) 4126 test "$with_xft_tabs" = "yes" && AC_DEFINE(USE_XFT_TABS)
4127 test "$with_xft_gauges" = "yes" && AC_DEFINE(USE_XFT_GAUGES) 4127 test "$with_xft_gauges" = "yes" && AC_DEFINE(USE_XFT_GAUGES)
4128 4128
4129 dnl ---------------------- 4129 dnl ----------------------
4130 dnl Mule-dependent options 4130 dnl Mule-dependent options
4131 dnl ---------------------- 4131 dnl ----------------------
4132 4132
4133 test -z "$enable_mule" && enable_mule=no 4133 test -z "$with_mule" && with_mule=no
4134 4134
4135 dnl if test "$enable_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then 4135 dnl if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then
4136 dnl echo "Attempt to Build with Mule without Mule/Lisp" 4136 dnl echo "Attempt to Build with Mule without Mule/Lisp"
4137 dnl echo "Please install the XEmacs/Mule tarball or" 4137 dnl echo "Please install the XEmacs/Mule tarball or"
4138 dnl echo "rerun configure with --with-mule=no" 4138 dnl echo "rerun configure with --with-mule=no"
4139 dnl exit 1 4139 dnl exit 1
4140 dnl fi 4140 dnl fi
4141 4141
4142 if test "$enable_default_eol_detection" = "yes"; then 4142 if test "$with_default_eol_detection" = "yes"; then
4143 AC_DEFINE(HAVE_DEFAULT_EOL_DETECTION) 4143 AC_DEFINE(HAVE_DEFAULT_EOL_DETECTION)
4144 fi 4144 fi
4145 4145
4146 dnl initialize _libs variables for possible modules at top level 4146 dnl initialize _libs variables for possible modules at top level
4147 canna_libs= 4147 canna_libs=
4148 wnn_libs= 4148 wnn_libs=
4149 4149
4150 if test "$enable_mule" = "yes" ; then 4150 if test "$with_mule" = "yes" ; then
4151 AC_MSG_CHECKING([for Mule-related features]) 4151 AC_MSG_CHECKING([for Mule-related features])
4152 AC_DEFINE(MULE) 4152 AC_DEFINE(MULE)
4153 4153
4154 dnl Use -lintl to get internationalized strerror for Mule 4154 dnl Use -lintl to get internationalized strerror for Mule
4155 AC_CHECK_HEADERS(libintl.h) 4155 AC_CHECK_HEADERS(libintl.h)
4188 4188
4189 dnl "with_xfs" = "yes" 4189 dnl "with_xfs" = "yes"
4190 if test "$with_xfs" = "yes" ; then 4190 if test "$with_xfs" = "yes" ; then
4191 AC_MSG_CHECKING([for XFontSet]) 4191 AC_MSG_CHECKING([for XFontSet])
4192 AC_CHECK_LIB(X11, XmbDrawString, [:], with_xfs=no) 4192 AC_CHECK_LIB(X11, XmbDrawString, [:], with_xfs=no)
4193 if test "$with_xfs" = "yes" && test "$enable_menubars" = "lucid"; then 4193 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
4194 AC_DEFINE(USE_XFONTSET) 4194 AC_DEFINE(USE_XFONTSET)
4195 if test "$with_xim" = "no" ; then 4195 if test "$with_xim" = "no" ; then
4196 XE_ADD_OBJS(input-method-xlib.o) 4196 XE_ADD_OBJS(input-method-xlib.o)
4197 fi 4197 fi
4198 fi 4198 fi
4271 AC_MSG_WARN([Canna configuration failed. If you expected success, 4271 AC_MSG_WARN([Canna configuration failed. If you expected success,
4272 maybe you need --with-site-prefixes=/usr/local/canna?]) 4272 maybe you need --with-site-prefixes=/usr/local/canna?])
4273 fi 4273 fi
4274 AC_SUBST(canna_libs) 4274 AC_SUBST(canna_libs)
4275 4275
4276 else dnl "$enable_mule" = "no" 4276 else dnl "$with_mule" = "no"
4277 for feature in xim canna wnn; do 4277 for feature in xim canna wnn; do
4278 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 4278 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
4279 AC_MSG_WARN([--with-${feature} ignored: Not valid without Mule support]) 4279 AC_MSG_WARN([--with-${feature} ignored: Not valid without Mule support])
4280 fi 4280 fi
4281 eval "with_${feature}=no" 4281 eval "with_${feature}=no"
4720 dnl Check for sound of various sorts. 4720 dnl Check for sound of various sorts.
4721 AC_MSG_CHECKING([for sound support]) 4721 AC_MSG_CHECKING([for sound support])
4722 AC_MSG_RESULT() 4722 AC_MSG_RESULT()
4723 4723
4724 dnl Autodetect native sound 4724 dnl Autodetect native sound
4725 test -n "$with_native_sound_lib" && enable_sound_native=yes 4725 test -n "$with_native_sound_lib" && with_sound_native=yes
4726 4726
4727 if test "$enable_sound_native" != "no"; then 4727 if test "$with_sound_native" != "no"; then
4728 dnl Maybe sound is already on include path... 4728 dnl Maybe sound is already on include path...
4729 if test -n "$with_native_sound_lib"; then 4729 if test -n "$with_native_sound_lib"; then
4730 AC_CHECK_HEADER(multimedia/audio_device.h, 4730 AC_CHECK_HEADER(multimedia/audio_device.h,
4731 [sound_found=yes sound_cflags="" 4731 [sound_found=yes sound_cflags=""
4732 XE_ADD_OBJS(sunplay.o)]) 4732 XE_ADD_OBJS(sunplay.o)])
4824 AC_DEFINE_UNQUOTED(SOUNDCARD_H_FILE, ["${dir}/soundcard.h"]) 4824 AC_DEFINE_UNQUOTED(SOUNDCARD_H_FILE, ["${dir}/soundcard.h"])
4825 fi 4825 fi
4826 fi 4826 fi
4827 4827
4828 if test "$sound_found" = "yes"; then 4828 if test "$sound_found" = "yes"; then
4829 enable_sound_native=yes 4829 with_sound_native=yes
4830 else 4830 else
4831 if test "$enable_sound_native" = "yes" ; then 4831 if test "$with_sound_native" = "yes" ; then
4832 AC_MSG_WARN([No native libraries found. Disabling native sound support.]) 4832 AC_MSG_WARN([No native libraries found. Disabling native sound support.])
4833 fi 4833 fi
4834 enable_sound_native=no 4834 with_sound_native=no
4835 fi 4835 fi
4836 fi 4836 fi
4837 4837
4838 if test "$enable_sound_native" = "yes"; then 4838 if test "$with_sound_native" = "yes"; then
4839 AC_DEFINE(HAVE_NATIVE_SOUND) 4839 AC_DEFINE(HAVE_NATIVE_SOUND)
4840 test -n "$with_native_sound_lib" && XE_PREPEND($with_native_sound_lib, LIBS) 4840 test -n "$with_native_sound_lib" && XE_PREPEND($with_native_sound_lib, LIBS)
4841 fi 4841 fi
4842 4842
4843 dnl ALSA sound support 4843 dnl ALSA sound support
4844 if test "$enable_sound_alsa" != "no"; then 4844 if test "$with_sound_alsa" != "no"; then
4845 AC_CHECK_HEADER([alsa/input.h], [ 4845 AC_CHECK_HEADER([alsa/input.h], [
4846 AC_CHECK_LIB(asound, snd_pcm_open, have_alsa_sound=yes)]) 4846 AC_CHECK_LIB(asound, snd_pcm_open, have_alsa_sound=yes)])
4847 if test "$have_alsa_sound" = "yes"; then 4847 if test "$have_alsa_sound" = "yes"; then
4848 enable_sound_alsa=yes 4848 with_sound_alsa=yes
4849 AC_DEFINE(HAVE_ALSA_SOUND) 4849 AC_DEFINE(HAVE_ALSA_SOUND)
4850 XE_ADD_OBJS(alsaplay.o) 4850 XE_ADD_OBJS(alsaplay.o)
4851 XE_PREPEND(-lasound, LIBS) 4851 XE_PREPEND(-lasound, LIBS)
4852 else 4852 else
4853 test "$enable_sound_alsa" = "yes" && \ 4853 test "$with_sound_alsa" = "yes" && \
4854 XE_DIE("Required ALSA sound support cannot be provided.") 4854 XE_DIE("Required ALSA sound support cannot be provided.")
4855 enable_sound_alsa=no 4855 with_sound_alsa=no
4856 fi 4856 fi
4857 fi 4857 fi
4858 4858
4859 dnl NAS Sound support 4859 dnl NAS Sound support
4860 if test "$enable_sound_nas" != "no"; then 4860 if test "$with_sound_nas" != "no"; then
4861 AC_CHECK_HEADER(audio/audiolib.h, [ 4861 AC_CHECK_HEADER(audio/audiolib.h, [
4862 AC_CHECK_LIB(audio, AuOpenServer, have_nas_sound=yes)]) 4862 AC_CHECK_LIB(audio, AuOpenServer, have_nas_sound=yes)])
4863 if test "$have_nas_sound" = "yes"; then 4863 if test "$have_nas_sound" = "yes"; then
4864 enable_sound_nas=yes 4864 with_sound_nas=yes
4865 AC_DEFINE(HAVE_NAS_SOUND) 4865 AC_DEFINE(HAVE_NAS_SOUND)
4866 XE_ADD_OBJS(nas.o) 4866 XE_ADD_OBJS(nas.o)
4867 XE_PREPEND(-laudio, libs_x) 4867 XE_PREPEND(-laudio, libs_x)
4868 dnl If the nas library does not contain the error jump point, 4868 dnl If the nas library does not contain the error jump point,
4869 dnl then we force safer behavior. 4869 dnl then we force safer behavior.
4870 AC_EGREP_HEADER(AuXtErrorJump,audio/Xtutil.h,,[old_nas=yes; AC_DEFINE(NAS_NO_ERROR_JUMP)]) 4870 AC_EGREP_HEADER(AuXtErrorJump,audio/Xtutil.h,,[old_nas=yes; AC_DEFINE(NAS_NO_ERROR_JUMP)])
4871 else 4871 else
4872 test "$enable_sound_nas" = "yes" && \ 4872 test "$with_sound_nas" = "yes" && \
4873 XE_DIE("Required NAS sound support cannot be provided.") 4873 XE_DIE("Required NAS sound support cannot be provided.")
4874 enable_sound_nas=no 4874 with_sound_nas=no
4875 fi 4875 fi
4876 fi 4876 fi
4877 4877
4878 dnl ESD Sound support 4878 dnl ESD Sound support
4879 if test "$enable_sound_esd" != "no"; then 4879 if test "$with_sound_esd" != "no"; then
4880 AC_CHECK_PROG(have_esd_config, esd-config, yes, no) 4880 AC_CHECK_PROG(have_esd_config, esd-config, yes, no)
4881 if test "$have_esd_config" = "yes"; then 4881 if test "$have_esd_config" = "yes"; then
4882 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 4882 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
4883 XE_APPEND(`esd-config --cflags`, c_switch_site) 4883 XE_APPEND(`esd-config --cflags`, c_switch_site)
4884 XE_PREPEND(`esd-config --libs`, LIBS) 4884 XE_PREPEND(`esd-config --libs`, LIBS)
4886 have_esd_sound=yes, 4886 have_esd_sound=yes,
4887 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS") 4887 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS")
4888 fi 4888 fi
4889 4889
4890 if test "$have_esd_sound" = "yes"; then 4890 if test "$have_esd_sound" = "yes"; then
4891 enable_sound_esd=yes 4891 with_sound_esd=yes
4892 need_miscplay=yes 4892 need_miscplay=yes
4893 XE_ADD_OBJS(esd.o) 4893 XE_ADD_OBJS(esd.o)
4894 AC_DEFINE(HAVE_ESD_SOUND) 4894 AC_DEFINE(HAVE_ESD_SOUND)
4895 else 4895 else
4896 test "$enable_sound_esd" = "yes" && \ 4896 test "$with_sound_esd" = "yes" && \
4897 XE_DIE("Required ESD sound support cannot be provided.") 4897 XE_DIE("Required ESD sound support cannot be provided.")
4898 enable_sound_esd=no 4898 with_sound_esd=no
4899 fi 4899 fi
4900 fi 4900 fi
4901 4901
4902 test "$need_miscplay" = "yes" && XE_ADD_OBJS(miscplay.o) 4902 test "$need_miscplay" = "yes" && XE_ADD_OBJS(miscplay.o)
4903 4903
4991 dnl Database support 4991 dnl Database support
4992 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. 4992 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
4993 dnl On FreeBSD, both DB and DBM are part of libc. 4993 dnl On FreeBSD, both DB and DBM are part of libc.
4994 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. 4994 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm.
4995 4995
4996 test "$enable_database_gdbm $enable_database_dbm $enable_database_berkdb" \ 4996 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
4997 != "no no no" && AC_MSG_CHECKING([for database support]) && \ 4997 != "no no no" && AC_MSG_CHECKING([for database support]) && \
4998 AC_MSG_RESULT() 4998 AC_MSG_RESULT()
4999 4999
5000 dnl Check for ndbm.h, required for either kind of DBM support. 5000 dnl Check for ndbm.h, required for either kind of DBM support.
5001 dnl #### Should we check for gdbm.h, too? (Seen on MacPorts.) 5001 dnl #### Should we check for gdbm.h, too? (Seen on MacPorts.)
5002 if test "$enable_database_gdbm $enable_database_dbm" != "no no"; then 5002 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
5003 ndbm_h_file="" 5003 ndbm_h_file=""
5004 AC_CHECK_HEADERS([ndbm.h gdbm/ndbm.h],[ndbm_h_file=$ac_header; break;],[],[]) 5004 AC_CHECK_HEADERS([ndbm.h gdbm/ndbm.h],[ndbm_h_file=$ac_header; break;],[],[])
5005 if test "x$ndbm_h_file" = "x"; then 5005 if test "x$ndbm_h_file" = "x"; then
5006 test "$enable_database_gdbm" = "yes" -o \ 5006 test "$with_database_gdbm" = "yes" -o \
5007 "$enable_database_dbm" = "yes" && \ 5007 "$with_database_dbm" = "yes" && \
5008 XE_DIE("Required DBM support cannot be provided.") 5008 XE_DIE("Required DBM support cannot be provided.")
5009 enable_database_gdbm=no enable_database_dbm=no] 5009 with_database_gdbm=no with_database_dbm=no]
5010 fi 5010 fi
5011 fi 5011 fi
5012 5012
5013 dnl Check for DBM support in libgdbm. 5013 dnl Check for DBM support in libgdbm.
5014 if test "$enable_database_gdbm" != "no"; then 5014 if test "$with_database_gdbm" != "no"; then
5015 AC_CHECK_LIB(gdbm, dbm_open, [ 5015 AC_CHECK_LIB(gdbm, dbm_open, [
5016 enable_database_gdbm=yes enable_database_dbm=no libdbm=-lgdbm], [ 5016 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm], [
5017 AC_CHECK_LIB(gdbm_compat, dbm_open, [ 5017 AC_CHECK_LIB(gdbm_compat, dbm_open, [
5018 enable_database_gdbm=yes enable_database_dbm=no libdbm="-lgdbm_compat -lgdbm"], [ 5018 with_database_gdbm=yes with_database_dbm=no libdbm="-lgdbm_compat -lgdbm"], [
5019 if test "$enable_database_gdbm" = "yes"; then 5019 if test "$with_database_gdbm" = "yes"; then
5020 XE_DIE("Required GNU DBM support cannot be provided.") 5020 XE_DIE("Required GNU DBM support cannot be provided.")
5021 fi 5021 fi
5022 enable_database_gdbm=no], -lgdbm) 5022 with_database_gdbm=no], -lgdbm)
5023 ]) 5023 ])
5024 fi 5024 fi
5025 5025
5026 dnl Check for DBM support in libc and libdbm. 5026 dnl Check for DBM support in libc and libdbm.
5027 if test "$enable_database_dbm" != "no"; then 5027 if test "$with_database_dbm" != "no"; then
5028 AC_CHECK_FUNC(dbm_open, [enable_database_dbm=yes libdbm=], [ 5028 AC_CHECK_FUNC(dbm_open, [with_database_dbm=yes libdbm=], [
5029 AC_CHECK_LIB(dbm, dbm_open, [enable_database_dbm=yes libdbm=-ldbm], [ 5029 AC_CHECK_LIB(dbm, dbm_open, [with_database_dbm=yes libdbm=-ldbm], [
5030 test "$enable_database_dbm" = "yes" && \ 5030 test "$with_database_dbm" = "yes" && \
5031 XE_DIE("Required DBM support cannot be provided.") 5031 XE_DIE("Required DBM support cannot be provided.")
5032 enable_database_dbm=no])]) 5032 with_database_dbm=no])])
5033 fi 5033 fi
5034 5034
5035 dnl Tell make about the DBM support we detected. 5035 dnl Tell make about the DBM support we detected.
5036 test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS) 5036 test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS)
5037 if test "$enable_database_gdbm" = "yes" -o \ 5037 if test "$with_database_gdbm" = "yes" -o \
5038 "$enable_database_dbm" = "yes"; then 5038 "$with_database_dbm" = "yes"; then
5039 AC_DEFINE_UNQUOTED(NDBM_H_FILE,"$ndbm_h_file") 5039 AC_DEFINE_UNQUOTED(NDBM_H_FILE,"$ndbm_h_file")
5040 AC_DEFINE(HAVE_DBM) 5040 AC_DEFINE(HAVE_DBM)
5041 $as_unset ndbm_h_file 5041 $as_unset ndbm_h_file
5042 fi 5042 fi
5043 5043
5044 dnl Check for u_int*_t typedefs. 5044 dnl Check for u_int*_t typedefs.
5045 AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t]) 5045 AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t])
5046 5046
5047 dnl Check for Berkeley DB. 5047 dnl Check for Berkeley DB.
5048 if test "$enable_database_berkdb" != "no"; then 5048 if test "$with_database_berkdb" != "no"; then
5049 AC_MSG_CHECKING(for Berkeley db.h) 5049 AC_MSG_CHECKING(for Berkeley db.h)
5050 for header in "db/db.h" "db.h"; do 5050 for header in "db/db.h" "db.h"; do
5051 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ 5051 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
5052 #include <stdlib.h> 5052 #include <stdlib.h>
5053 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 5053 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
5072 #endif 5072 #endif
5073 #include <$header> 5073 #include <$header>
5074 ])], db_h_file="$header"; break) 5074 ])], db_h_file="$header"; break)
5075 done 5075 done
5076 if test -z "$db_h_file" 5076 if test -z "$db_h_file"
5077 then AC_MSG_RESULT(no); enable_database_berkdb=no 5077 then AC_MSG_RESULT(no); with_database_berkdb=no
5078 else AC_MSG_RESULT($db_h_file) 5078 else AC_MSG_RESULT($db_h_file)
5079 fi 5079 fi
5080 5080
5081 if test "$enable_database_berkdb" != "no"; then 5081 if test "$with_database_berkdb" != "no"; then
5082 AC_MSG_CHECKING(for Berkeley DB version) 5082 AC_MSG_CHECKING(for Berkeley DB version)
5083 AC_EGREP_CPP(yes, 5083 AC_EGREP_CPP(yes,
5084 [#include <$db_h_file> 5084 [#include <$db_h_file>
5085 #if DB_VERSION_MAJOR > 1 5085 #if DB_VERSION_MAJOR > 1
5086 yes 5086 yes
5097 #endif 5097 #endif
5098 ], [AC_MSG_RESULT(4); dbfunc=db_create; dbver=4],[ 5098 ], [AC_MSG_RESULT(4); dbfunc=db_create; dbver=4],[
5099 AC_MSG_RESULT(3); dbfunc=db_create; dbver=3])],[ 5099 AC_MSG_RESULT(3); dbfunc=db_create; dbver=3])],[
5100 AC_MSG_RESULT(2); dbfunc=db_open; dbver=2])],[ 5100 AC_MSG_RESULT(2); dbfunc=db_open; dbver=2])],[
5101 AC_MSG_RESULT(1); dbfunc=dbopen; dbver=1]) 5101 AC_MSG_RESULT(1); dbfunc=dbopen; dbver=1])
5102 AC_CHECK_FUNC($dbfunc, enable_database_berkdb=yes need_libdb=no, [ 5102 AC_CHECK_FUNC($dbfunc, with_database_berkdb=yes need_libdb=no, [
5103 AC_CHECK_LIB(db, $dbfunc, enable_database_berkdb=yes need_libdb=yes)]) 5103 AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)])
5104 fi 5104 fi
5105 5105
5106 dnl Berk db 4.1 decorates public functions with version information 5106 dnl Berk db 4.1 decorates public functions with version information
5107 if test "$enable_database_berkdb" = "yes" -a "$dbver" = "4"; then 5107 if test "$with_database_berkdb" = "yes" -a "$dbver" = "4"; then
5108 rm -f $tempcname 5108 rm -f $tempcname
5109 echo "#include <$db_h_file>" > $tempcname 5109 echo "#include <$db_h_file>" > $tempcname
5110 echo "configure___ dbfunc=db_create" >> $tempcname 5110 echo "configure___ dbfunc=db_create" >> $tempcname
5111 define(TAB, [ ])dnl 5111 define(TAB, [ ])dnl
5112 eval `$CPP -Isrc $tempcname \ 5112 eval `$CPP -Isrc $tempcname \
5113 | sed -n -e "s/[[ TAB]]*=[[ TAB\"]]*/='/" -e "s/[[ TAB\"]]*\$/'/" -e "s/^configure___//p"` 5113 | sed -n -e "s/[[ TAB]]*=[[ TAB\"]]*/='/" -e "s/[[ TAB\"]]*\$/'/" -e "s/^configure___//p"`
5114 rm -f $tempcname 5114 rm -f $tempcname
5115 AC_MSG_WARN("db_create is really $dbfunc") 5115 AC_MSG_WARN("db_create is really $dbfunc")
5116 AC_CHECK_LIB(db, $dbfunc, enable_database_berkdb=yes need_libdb=yes) 5116 AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)
5117 fi 5117 fi
5118 5118
5119 if test "$enable_database_berkdb" = "yes"; then 5119 if test "$with_database_berkdb" = "yes"; then
5120 AC_DEFINE_UNQUOTED(DB_H_FILE, "$db_h_file") 5120 AC_DEFINE_UNQUOTED(DB_H_FILE, "$db_h_file")
5121 AC_DEFINE(HAVE_BERKELEY_DB) 5121 AC_DEFINE(HAVE_BERKELEY_DB)
5122 test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS) 5122 test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS)
5123 else enable_database_berkdb=no 5123 else with_database_berkdb=no
5124 fi 5124 fi
5125 fi 5125 fi
5126 5126
5127 if test "$enable_database_gdbm $enable_database_dbm $enable_database_berkdb" \ 5127 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
5128 != "no no no"; then 5128 != "no no no"; then
5129 AC_DEFINE(HAVE_DATABASE) 5129 AC_DEFINE(HAVE_DATABASE)
5130 fi 5130 fi
5131 5131
5132 dnl Socks support 5132 dnl Socks support
5140 AC_DEFINE(USAGE_TRACKING) 5140 AC_DEFINE(USAGE_TRACKING)
5141 XE_PREPEND(-Bstatic -lut -Bdynamic, LIBS) 5141 XE_PREPEND(-Bstatic -lut -Bdynamic, LIBS)
5142 fi 5142 fi
5143 5143
5144 dnl Enhanced number support 5144 dnl Enhanced number support
5145 if test "$enable_bignum" = "gmp"; then 5145 if test "$with_bignum" = "gmp"; then
5146 AC_CHECK_HEADER(gmp.h, [ 5146 AC_CHECK_HEADER(gmp.h, [
5147 AC_CHECK_LIB(gmp, __gmpz_init, have_mpz_init=yes)]) 5147 AC_CHECK_LIB(gmp, __gmpz_init, have_mpz_init=yes)])
5148 if test "$have_mpz_init" = "yes"; then 5148 if test "$have_mpz_init" = "yes"; then
5149 AC_DEFINE(WITH_NUMBER_TYPES) 5149 AC_DEFINE(WITH_NUMBER_TYPES)
5150 AC_DEFINE(WITH_GMP) 5150 AC_DEFINE(WITH_GMP)
5151 XE_PREPEND(-lgmp, LIBS) 5151 XE_PREPEND(-lgmp, LIBS)
5152 else 5152 else
5153 XE_DIE("Required GMP numeric support cannot be provided.") 5153 XE_DIE("Required GMP numeric support cannot be provided.")
5154 fi 5154 fi
5155 elif test "$enable_bignum" = "mp"; then 5155 elif test "$with_bignum" = "mp"; then
5156 for library in "" "-lcrypto"; do 5156 for library in "" "-lcrypto"; do
5157 AC_CHECK_HEADER(mp.h, [ 5157 AC_CHECK_HEADER(mp.h, [
5158 AC_CHECK_LIB(mp, mp_mfree, have_mp_mfree=yes; break, [ 5158 AC_CHECK_LIB(mp, mp_mfree, have_mp_mfree=yes; break, [
5159 AC_CHECK_LIB(mp, mfree, have_mfree=yes; break, , $library)], 5159 AC_CHECK_LIB(mp, mfree, have_mfree=yes; break, , $library)],
5160 $library)]) 5160 $library)])
5209 dnl Compute SUBST-itutable variables 5209 dnl Compute SUBST-itutable variables
5210 dnl -------------------------------- 5210 dnl --------------------------------
5211 5211
5212 dnl We ignore (C|LD)_SWITCH_X_(MACHINE|SYSTEM) 5212 dnl We ignore (C|LD)_SWITCH_X_(MACHINE|SYSTEM)
5213 dnl Use XE_SPACE instead of plain assignment statements to remove extraneous blanks 5213 dnl Use XE_SPACE instead of plain assignment statements to remove extraneous blanks
5214 if test "$enable_modules" = "yes"; then 5214 if test "$with_modules" = "yes"; then
5215 ld_libs_module= 5215 ld_libs_module=
5216 else 5216 else
5217 XE_SPACE(ld_libs_module, $ldap_libs $postgresql_libs $canna_libs) 5217 XE_SPACE(ld_libs_module, $ldap_libs $postgresql_libs $canna_libs)
5218 fi 5218 fi
5219 5219
5228 XE_SPACE(ld_libs_general, $LIBS $libs_machine $libs_system $libs_standard) 5228 XE_SPACE(ld_libs_general, $LIBS $libs_machine $libs_system $libs_standard)
5229 XE_SPACE(ld_libs_window_system, $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS) 5229 XE_SPACE(ld_libs_window_system, $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS)
5230 XE_SPACE(ld_libs_all, $ld_libs_window_system $ld_libs_general $ld_libs_module) 5230 XE_SPACE(ld_libs_all, $ld_libs_window_system $ld_libs_general $ld_libs_module)
5231 5231
5232 dnl For no-module builds, make the src dir last 5232 dnl For no-module builds, make the src dir last
5233 if test "$enable_modules" = "no"; then 5233 if test "$with_modules" = "no"; then
5234 XE_APPEND(src, MAKE_SUBDIR) 5234 XE_APPEND(src, MAKE_SUBDIR)
5235 fi 5235 fi
5236 5236
5237 dnl Compute lists of Makefiles and subdirs 5237 dnl Compute lists of Makefiles and subdirs
5238 AC_SUBST(SRC_SUBDIR_DEPS) 5238 AC_SUBST(SRC_SUBDIR_DEPS)
5490 elif test "$with_debug_malloc" = "yes"; then AC_DEFINE(USE_DEBUG_MALLOC) 5490 elif test "$with_debug_malloc" = "yes"; then AC_DEFINE(USE_DEBUG_MALLOC)
5491 AC_DEFINE(USE_SYSTEM_MALLOC) 5491 AC_DEFINE(USE_SYSTEM_MALLOC)
5492 fi 5492 fi
5493 test "$GCC" = "yes" && AC_DEFINE(USE_GCC) 5493 test "$GCC" = "yes" && AC_DEFINE(USE_GCC)
5494 test "$with_xemacs_compiler" = "g++" && AC_DEFINE(USE_GPLUSPLUS) 5494 test "$with_xemacs_compiler" = "g++" && AC_DEFINE(USE_GPLUSPLUS)
5495 test "$enable_external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) 5495 test "$with_external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET)
5496 test "$enable_kkcc" = "yes" && AC_DEFINE(USE_KKCC) 5496 test "$with_kkcc" = "yes" && AC_DEFINE(USE_KKCC)
5497 test "$enable_newgc" = "yes" && AC_DEFINE(NEW_GC) 5497 test "$with_newgc" = "yes" && AC_DEFINE(NEW_GC)
5498 test "$have_vdb_posix" = "yes" && AC_DEFINE(VDB_POSIX) 5498 test "$have_vdb_posix" = "yes" && AC_DEFINE(VDB_POSIX)
5499 test "$have_vdb_fake" = "yes" && AC_DEFINE(VDB_FAKE) 5499 test "$have_vdb_fake" = "yes" && AC_DEFINE(VDB_FAKE)
5500 test "$enable_quick_build" = "yes" && AC_DEFINE(QUICK_BUILD) 5500 test "$with_quick_build" = "yes" && AC_DEFINE(QUICK_BUILD)
5501 test "$with_purify" = "yes" && AC_DEFINE(PURIFY) 5501 test "$with_purify" = "yes" && AC_DEFINE(PURIFY)
5502 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) 5502 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY)
5503 test "$with_valgrind" = "yes" && AC_DEFINE(USE_VALGRIND) 5503 test "$with_valgrind" = "yes" && AC_DEFINE(USE_VALGRIND)
5504 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) 5504 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP)
5505 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) 5505 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS)
5506 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) 5506 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD)
5507 test "$enable_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE) 5507 test "$with_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE)
5508 test "$enable_pdump" = "yes" && AC_DEFINE(PDUMP) 5508 test "$with_pdump" = "yes" && AC_DEFINE(PDUMP)
5509 test "$enable_dump_in_exec" = "yes" && AC_DEFINE(DUMP_IN_EXEC) 5509 test "$with_dump_in_exec" = "yes" && AC_DEFINE(DUMP_IN_EXEC)
5510 test "$with_ipv6_cname" = "yes" && AC_DEFINE(IPV6_CANONICALIZE) 5510 test "$with_ipv6_cname" = "yes" && AC_DEFINE(IPV6_CANONICALIZE)
5511 5511
5512 5512
5513 5513
5514 dnl ------------------------------------------------------------------------- 5514 dnl -------------------------------------------------------------------------
5587 echo " libc version: $libc_version" 5587 echo " libc version: $libc_version"
5588 echo " Relocating allocator for buffers: $with_rel_alloc" 5588 echo " Relocating allocator for buffers: $with_rel_alloc"
5589 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}" 5589 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
5590 case "$ld_switch_site" in 5590 case "$ld_switch_site" in
5591 *nocombreloc*) echo " Linking with \`-z nocombreloc'. 5591 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
5592 - Consider configuring with --enable-pdump." ;; 5592 - Consider configuring with --with-pdump." ;;
5593 esac 5593 esac
5594 5594
5595 echo " 5595 echo "
5596 Window System:" 5596 Window System:"
5597 if test "$with_msw" = "yes"; then 5597 if test "$with_msw" = "yes"; then
5627 if test "$need_athena" = "yes"; then 5627 if test "$need_athena" = "yes"; then
5628 echo " Compiling in support for the Athena widget set:" 5628 echo " Compiling in support for the Athena widget set:"
5629 echo " - Athena headers location: $athena_h_path" 5629 echo " - Athena headers location: $athena_h_path"
5630 echo " - Athena library to link: $athena_lib" 5630 echo " - Athena library to link: $athena_lib"
5631 fi 5631 fi
5632 case "$enable_menubars" in 5632 case "$with_menubars" in
5633 gtk ) echo " Using GTK menubars." ;; 5633 gtk ) echo " Using GTK menubars." ;;
5634 lucid ) echo " Using Lucid menubars." ;; 5634 lucid ) echo " Using Lucid menubars." ;;
5635 motif ) echo " Using Motif menubars." 5635 motif ) echo " Using Motif menubars."
5636 echo " *WARNING* The Motif menubar implementation is currently buggy." 5636 echo " *WARNING* The Motif menubar implementation is currently buggy."
5637 echo " We recommend using the Lucid menubar instead." 5637 echo " We recommend using the Lucid menubar instead."
5638 echo " Re-run configure with --enable-menubars='lucid'." ;; 5638 echo " Re-run configure with --with-menubars='lucid'." ;;
5639 msw ) echo " Using MS-Windows menubars." ;; 5639 msw ) echo " Using MS-Windows menubars." ;;
5640 esac 5640 esac
5641 if test "$with_xft_menubars" = "yes"; then 5641 if test "$with_xft_menubars" = "yes"; then
5642 echo " - Using Xft to render antialiased fonts in menubars." 5642 echo " - Using Xft to render antialiased fonts in menubars."
5643 echo " WARNING: This feature will be replaced with a face." 5643 echo " WARNING: This feature will be replaced with a face."
5644 fi 5644 fi
5645 case "$enable_scrollbars" in 5645 case "$with_scrollbars" in
5646 gtk ) echo " Using GTK scrollbars." ;; 5646 gtk ) echo " Using GTK scrollbars." ;;
5647 lucid ) echo " Using Lucid scrollbars." ;; 5647 lucid ) echo " Using Lucid scrollbars." ;;
5648 motif ) echo " Using Motif scrollbars." ;; 5648 motif ) echo " Using Motif scrollbars." ;;
5649 athena ) echo " Using Athena scrollbars." ;; 5649 athena ) echo " Using Athena scrollbars." ;;
5650 msw ) echo " Using MS-Windows scrollbars." ;; 5650 msw ) echo " Using MS-Windows scrollbars." ;;
5651 esac 5651 esac
5652 case "$enable_dialogs" in 5652 case "$with_dialogs" in
5653 gtk ) echo " Using GTK dialog boxes." ;; 5653 gtk ) echo " Using GTK dialog boxes." ;;
5654 motif ) echo " Using Motif dialog boxes." 5654 motif ) echo " Using Motif dialog boxes."
5655 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then 5655 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
5656 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." 5656 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
5657 echo " We recommend using the Athena dialog boxes instead." 5657 echo " We recommend using the Athena dialog boxes instead."
5658 echo " Install libXaw and re-run configure with --enable-dialogs='athena'." 5658 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
5659 echo " Read the PROBLEMS file for more information." 5659 echo " Read the PROBLEMS file for more information."
5660 fi; fi ;; 5660 fi; fi ;;
5661 athena ) echo " Using Athena dialog boxes." ;; 5661 athena ) echo " Using Athena dialog boxes." ;;
5662 msw ) echo " Using MS-Windows dialog boxes." ;; 5662 msw ) echo " Using MS-Windows dialog boxes." ;;
5663 esac 5663 esac
5664 case "$enable_widgets" in 5664 case "$with_widgets" in
5665 gtk ) echo " Using GTK native widgets." ;; 5665 gtk ) echo " Using GTK native widgets." ;;
5666 motif ) echo " Using Motif native widgets." ;; 5666 motif ) echo " Using Motif native widgets." ;;
5667 athena ) echo " Using Athena native widgets." ;; 5667 athena ) echo " Using Athena native widgets." ;;
5668 msw ) echo " Using MS-Windows native widgets." ;; 5668 msw ) echo " Using MS-Windows native widgets." ;;
5669 esac 5669 esac
5719 test "$with_tiff" = yes && echo " Compiling in support for TIFF images." 5719 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
5720 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." 5720 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
5721 5721
5722 echo " 5722 echo "
5723 Sound:" 5723 Sound:"
5724 test "$enable_sound_native" = yes && echo " Compiling in support for sound (native)." 5724 test "$with_sound_native" = yes && echo " Compiling in support for sound (native)."
5725 test "$enable_sound_alsa" = yes && echo " Compiling in support for ALSA (Advanced Linux Sound Architecture)." 5725 test "$with_sound_alsa" = yes && echo " Compiling in support for ALSA (Advanced Linux Sound Architecture)."
5726 test "$enable_sound_nas" = yes && echo " Compiling in support for NAS (network audio system)." 5726 test "$with_sound_nas" = yes && echo " Compiling in support for NAS (network audio system)."
5727 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously." 5727 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
5728 test "$enable_sound_esd" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)." 5728 test "$with_sound_esd" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
5729 5729
5730 echo " 5730 echo "
5731 Databases:" 5731 Databases:"
5732 test "$enable_database_berkdb" = yes && echo " Compiling in support for Berkeley database." 5732 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
5733 test "$enable_database_dbm" = yes && echo " Compiling in support for DBM." 5733 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
5734 test "$enable_database_gdbm" = yes && echo " Compiling in support for GNU DBM." 5734 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
5735 test "$with_ldap" = yes && echo " Compiling in support for LDAP." 5735 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
5736 if test "$with_postgresql" = yes; then 5736 if test "$with_postgresql" = yes; then
5737 echo " Compiling in support for PostgreSQL." 5737 echo " Compiling in support for PostgreSQL."
5738 echo " - Using PostgreSQL header file: $libpq_fe_h_file" 5738 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
5739 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings." 5739 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
5740 fi 5740 fi
5741 5741
5742 echo " 5742 echo "
5743 Internationalization:" 5743 Internationalization:"
5744 test "$enable_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." 5744 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
5745 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)." 5745 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
5746 test "$with_xim" = motif && echo " - Using Motif to provide XIM support." 5746 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
5747 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support." 5747 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
5748 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar." 5748 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
5749 test "$have_canna" = yes && echo " Compiling in support for Canna on Mule." 5749 test "$have_canna" = yes && echo " Compiling in support for Canna on Mule."
5764 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup." 5764 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
5765 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 5765 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
5766 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 5766 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
5767 test "$with_socks" = yes && echo " Compiling in support for SOCKS." 5767 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
5768 test "$with_dnet" = yes && echo " Compiling in support for DNET." 5768 test "$with_dnet" = yes && echo " Compiling in support for DNET."
5769 test "$enable_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." 5769 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
5770 test "$enable_bignum" = "gmp" && echo " Compiling in support for more number types using the GNU MP library." 5770 test "$with_bignum" = "gmp" && echo " Compiling in support for more number types using the GNU MP library."
5771 test "$enable_bignum" = "mp" && echo " Compiling in support for more number types using the BSD MP library." 5771 test "$with_bignum" = "mp" && echo " Compiling in support for more number types using the BSD MP library."
5772 if test "$enable_union_type" = yes ; then 5772 if test "$with_union_type" = yes ; then
5773 echo " Using the union type for Lisp_Objects." 5773 echo " Using the union type for Lisp_Objects."
5774 echo " WARNING: ---------------------------------------------------------" 5774 echo " WARNING: ---------------------------------------------------------"
5775 echo " WARNING: This tends to trigger compiler bugs, especially when" 5775 echo " WARNING: This tends to trigger compiler bugs, especially when"
5776 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have" 5776 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have"
5777 echo " WARNING: been seen with various versions of GCC (up to about 2.95)," 5777 echo " WARNING: been seen with various versions of GCC (up to about 2.95),"
5778 echo " WARNING: and recently with Visual C++ as well (mid-2003)." 5778 echo " WARNING: and recently with Visual C++ as well (mid-2003)."
5779 echo " WARNING: More recent versions may be safer, or not." 5779 echo " WARNING: More recent versions may be safer, or not."
5780 echo " WARNING: ---------------------------------------------------------" 5780 echo " WARNING: ---------------------------------------------------------"
5781 fi 5781 fi
5782 if test "$enable_kkcc" = yes ; then 5782 if test "$with_kkcc" = yes ; then
5783 echo " Using the new GC mark algorithms (KKCC)." 5783 echo " Using the new GC mark algorithms (KKCC)."
5784 echo " WARNING: ---------------------------------------------------------" 5784 echo " WARNING: ---------------------------------------------------------"
5785 echo " WARNING: The new algorithms are experimental. They are enabled by" 5785 echo " WARNING: The new algorithms are experimental. They are enabled by"
5786 echo " WARNING: default for this release. Use \`--disable-kkcc' to" 5786 echo " WARNING: default for this release. Use \`--disable-kkcc' to"
5787 echo " WARNING: turn it off." 5787 echo " WARNING: turn it off."
5788 echo " WARNING: ---------------------------------------------------------" 5788 echo " WARNING: ---------------------------------------------------------"
5789 fi 5789 fi
5790 test "$enable_newgc" = yes && echo " Using the new incremental garbage collector and the new allocator." 5790 test "$with_newgc" = yes && echo " Using the new incremental garbage collector and the new allocator."
5791 if test "$have_vdb_posix" = yes ; then 5791 if test "$have_vdb_posix" = yes ; then
5792 if test "$have_vdb_sigaction" = yes ; then 5792 if test "$have_vdb_sigaction" = yes ; then
5793 echo " Using POSIX sigaction() to install fault handler." 5793 echo " Using POSIX sigaction() to install fault handler."
5794 else 5794 else
5795 echo " Using POSIX signal() to install vdb fault handler." 5795 echo " Using POSIX signal() to install vdb fault handler."
5799 echo " Using special WIN32 vdb fault handler." 5799 echo " Using special WIN32 vdb fault handler."
5800 fi 5800 fi
5801 if test "$have_vdb_mach" = yes ; then 5801 if test "$have_vdb_mach" = yes ; then
5802 echo " Using mach exception mechanism as vdb fault handler." 5802 echo " Using mach exception mechanism as vdb fault handler."
5803 fi 5803 fi
5804 if test "$have_vdb_fake" = yes && test "$enable_vdb" == fake; then 5804 if test "$have_vdb_fake" = yes && test "$with_vdb" == fake; then
5805 echo " Virtual dirty bit write barrier manually disabled." 5805 echo " Virtual dirty bit write barrier manually disabled."
5806 fi 5806 fi
5807 test "$enable_pdump" = yes && echo " Using the new portable dumper." 5807 test "$with_pdump" = yes && echo " Using the new portable dumper."
5808 test "$enable_dump_in_exec" = yes && echo " Dumping into executable." 5808 test "$with_dump_in_exec" = yes && echo " Dumping into executable."
5809 test "$enable_debug" = yes && echo " Compiling in support for extra debugging code." 5809 test "$with_debug" = yes && echo " Compiling in support for extra debugging code."
5810 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)." 5810 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
5811 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" \ 5811 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" \
5812 != "no no no no no no no no no"; then 5812 != "no no no no no no no no no"; then
5813 echo " Compiling in support for runtime error checking." 5813 echo " Compiling in support for runtime error checking."
5814 echo " WARNING: ---------------------------------------------------------" 5814 echo " WARNING: ---------------------------------------------------------"
5815 echo " WARNING: XEmacs will run noticeably more slowly as a result." 5815 echo " WARNING: XEmacs will run noticeably more slowly as a result."
5816 echo " WARNING: Error checking is on by default for XEmacs beta releases." 5816 echo " WARNING: Error checking is on by default for XEmacs beta releases."
5855 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;; 5855 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
5856 esac 5856 esac
5857 AC_CONFIG_FILES($file) 5857 AC_CONFIG_FILES($file)
5858 done 5858 done
5859 AC_CONFIG_FILES(src/paths.h src/xemacs.def.in lib-src/config.values) 5859 AC_CONFIG_FILES(src/paths.h src/xemacs.def.in lib-src/config.values)
5860 test "$enable_modules" = "yes" && AC_CONFIG_FILES(lib-src/ellcc.h) 5860 test "$with_modules" = "yes" && AC_CONFIG_FILES(lib-src/ellcc.h)
5861 5861
5862 5862
5863 dnl Normally []'s are used for quoting but this will cause problems 5863 dnl Normally []'s are used for quoting but this will cause problems
5864 dnl since we use brackets in sed. When not inside of a macro definition, 5864 dnl since we use brackets in sed. When not inside of a macro definition,
5865 dnl two brackets become one, but inside of a macro definition you need 5865 dnl two brackets become one, but inside of a macro definition you need