Mercurial > hg > xemacs-beta
comparison configure.ac @ 3312:b145b32294ff
[xemacs-hg @ 2006-03-28 15:55:48 by james]
Update obsolete autoconf macros. See xemacs-patches discussion starting with
message <m3r74nvb3t.fsf@jerrypc.cs.usu.edu>.
author | james |
---|---|
date | Tue, 28 Mar 2006 15:55:52 +0000 |
parents | ad7894a4ab41 |
children | d45de99b5d79 |
comparison
equal
deleted
inserted
replaced
3311:acafd7f94209 | 3312:b145b32294ff |
---|---|
495 dnl ----------------------------------------------------------------------- | 495 dnl ----------------------------------------------------------------------- |
496 dnl Boilerplate help string for complex options. | 496 dnl Boilerplate help string for complex options. |
497 dnl #### This doesn't read so well for alternative libraries like sound. | 497 dnl #### This doesn't read so well for alternative libraries like sound. |
498 dnl | 498 dnl |
499 define([XE_COMPLEX_OPTION_HELP_STRING], | 499 define([XE_COMPLEX_OPTION_HELP_STRING], |
500 [AC_HELP_STRING([$1],[Compile with support for $2. Components that can use | 500 [AS_HELP_STRING([$1],[Compile with support for $2. Components that can use |
501 $3 are $4. Prefix component with `no' to disable its use of $3. Requires | 501 $3 are $4. Prefix component with `no' to disable its use of $3. Requires |
502 $5 support. Default is $6.])])dnl | 502 $5 support. Default is $6.])])dnl |
503 dnl | 503 dnl |
504 dnl XE_COMPLEX_ARG(PACKAGE, HELP-STRING, ACTION-IF-TRUE, ACTION-IF-FALSE, | 504 dnl XE_COMPLEX_ARG(PACKAGE, HELP-STRING, ACTION-IF-TRUE, ACTION-IF-FALSE, |
505 dnl [XE_COMPLEX_OPTION(a,yes), ....]) | 505 dnl [XE_COMPLEX_OPTION(a,yes), ....]) |
526 XE_APPEND(lib-src, MAKE_SUBDIR) | 526 XE_APPEND(lib-src, MAKE_SUBDIR) |
527 XE_APPEND(lib-src, INSTALL_ARCH_DEP_SUBDIR) | 527 XE_APPEND(lib-src, INSTALL_ARCH_DEP_SUBDIR) |
528 with_dragndrop_default="no" | 528 with_dragndrop_default="no" |
529 dnl ------------------------------------------------------------------------- | 529 dnl ------------------------------------------------------------------------- |
530 dnl Command line argument processing. | 530 dnl Command line argument processing. |
531 dnl Note that AC_HELP_STRING compresses whitespace, wraps, and indents the | 531 dnl Note that AS_HELP_STRING compresses whitespace, wraps, and indents the |
532 dnl string to fit the --help display; there's no need to preformat. | 532 dnl string to fit the --help display; there's no need to preformat. |
533 dnl | 533 dnl |
534 dnl I think these will be caught by autoconf internal checks, | 534 dnl I think these will be caught by autoconf internal checks, |
535 dnl only --with-* are unchecked | 535 dnl only --with-* are unchecked |
536 dnl --external-widget --enable-external-widget | 536 dnl --external-widget --enable-external-widget |
547 dnl --use-kkcc --enable-kkcc | 547 dnl --use-kkcc --enable-kkcc |
548 dnl | 548 dnl |
549 dnl parse flags | 549 dnl parse flags |
550 XE_HELP_SUBSECTION([Compilation options]) | 550 XE_HELP_SUBSECTION([Compilation options]) |
551 XE_MERGED_ARG([compiler], | 551 XE_MERGED_ARG([compiler], |
552 AC_HELP_STRING([--with-compiler],[C compiler to use]), | 552 AS_HELP_STRING([--with-compiler],[C compiler to use]), |
553 [], []) | 553 [], []) |
554 XE_MERGED_ARG([xemacs-compiler], | 554 XE_MERGED_ARG([xemacs-compiler], |
555 AC_HELP_STRING([--with-xemacs-compiler], | 555 AS_HELP_STRING([--with-xemacs-compiler], |
556 [compiler to use to compile just the xemacs executable and C modules. | 556 [compiler to use to compile just the xemacs executable and C modules. |
557 If you want to compile XEmacs as C++, use e.g. | 557 If you want to compile XEmacs as C++, use e.g. |
558 `--with-xemacs-compiler=g++'. This turns on a lot of | 558 `--with-xemacs-compiler=g++'. This turns on a lot of |
559 additional error-checking.]), | 559 additional error-checking.]), |
560 [], []) | 560 [], []) |
561 XE_MERGED_ARG([gcc], | 561 XE_MERGED_ARG([gcc], |
562 AC_HELP_STRING([--with-gcc],[Use GCC to compile XEmacs.]), | 562 AS_HELP_STRING([--with-gcc],[Use GCC to compile XEmacs.]), |
563 [], []) | 563 [], []) |
564 XE_MERGED_ARG([cflags], | 564 XE_MERGED_ARG([cflags], |
565 AC_HELP_STRING([--with-cflags=FLAGS], | 565 AS_HELP_STRING([--with-cflags=FLAGS], |
566 [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'.]), | 566 [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'.]), |
567 [], []) | 567 [], []) |
568 XE_MERGED_ARG([cflags-warning], | 568 XE_MERGED_ARG([cflags-warning], |
569 AC_HELP_STRING([--with-cflags-warning=FLAGS],[Override compiler flags used to control warnings. | 569 AS_HELP_STRING([--with-cflags-warning=FLAGS],[Override compiler flags used to control warnings. |
570 Normally, don't set this, as XEmacs already turns on | 570 Normally, don't set this, as XEmacs already turns on |
571 the maximum safe warning level.]), | 571 the maximum safe warning level.]), |
572 [], []) | 572 [], []) |
573 XE_MERGED_ARG([optimization], | 573 XE_MERGED_ARG([optimization], |
574 AC_HELP_STRING([--with-optimization],[Control whether compilation is optimized. By default, optimization is on in release versions and off in beta versions, since it can interfere with proper stack backtraces.]), | 574 AS_HELP_STRING([--with-optimization],[Control whether compilation is optimized. By default, optimization is on in release versions and off in beta versions, since it can interfere with proper stack backtraces.]), |
575 [], []) | 575 [], []) |
576 XE_MERGED_ARG([cflags-optimization], | 576 XE_MERGED_ARG([cflags-optimization], |
577 AC_HELP_STRING([--with-cflags-optimization=FLAGS], | 577 AS_HELP_STRING([--with-cflags-optimization=FLAGS], |
578 [Override compiler flags used to control optimization. If blank, forces no optimization; if non-blank, forces optimization. Normally, don't set this; XEmacs automatically sets the maximum safe optimization flags appropriate for the compiler being invoked. If you just want to turn optimization on or off, use `with-optimization' instead.]), | 578 [Override compiler flags used to control optimization. If blank, forces no optimization; if non-blank, forces optimization. Normally, don't set this; XEmacs automatically sets the maximum safe optimization flags appropriate for the compiler being invoked. If you just want to turn optimization on or off, use `with-optimization' instead.]), |
579 [], []) | 579 [], []) |
580 XE_MERGED_ARG([cflags-debugging], | 580 XE_MERGED_ARG([cflags-debugging], |
581 AC_HELP_STRING([--with-cflags-debugging=FLAGS], | 581 AS_HELP_STRING([--with-cflags-debugging=FLAGS], |
582 [Override compiler flags used to add debugging information to the executable. Normally, debugging information is added whenever possible (i.e. unless optimization is turned on and the compiler does not permit debugging and optimization simultaneously).]), | 582 [Override compiler flags used to add debugging information to the executable. Normally, debugging information is added whenever possible (i.e. unless optimization is turned on and the compiler does not permit debugging and optimization simultaneously).]), |
583 [], []) | 583 [], []) |
584 XE_MERGED_ARG([cpp], | 584 XE_MERGED_ARG([cpp], |
585 AC_HELP_STRING([--with-cpp],[C preprocessor to use (e.g. /usr/ccs/lib/cpp or cc -E)]), | 585 AS_HELP_STRING([--with-cpp],[C preprocessor to use (e.g. /usr/ccs/lib/cpp or cc -E)]), |
586 [CPP="$with_cpp"], []) | 586 [CPP="$with_cpp"], []) |
587 XE_MERGED_ARG([cppflags], | 587 XE_MERGED_ARG([cppflags], |
588 AC_HELP_STRING([--with-cppflags],[C preprocessor flags (e.g. -I/foo or -Dfoo=bar)]), | 588 AS_HELP_STRING([--with-cppflags],[C preprocessor flags (e.g. -I/foo or -Dfoo=bar)]), |
589 [CPPFLAGS="$with_cppflags"], []) | 589 [CPPFLAGS="$with_cppflags"], []) |
590 XE_MERGED_ARG([libs=LIBS], | 590 XE_MERGED_ARG([libs=LIBS], |
591 AC_HELP_STRING([--with-libs],[Additional libraries (e.g. -lfoo)]), | 591 AS_HELP_STRING([--with-libs],[Additional libraries (e.g. -lfoo)]), |
592 [LIBS="$with_libs"], []) | 592 [LIBS="$with_libs"], []) |
593 XE_MERGED_ARG([ldflags=FLAGS], | 593 XE_MERGED_ARG([ldflags=FLAGS], |
594 AC_HELP_STRING([--with-ldflags],[Additional linker flags (e.g. -L/foo)]), | 594 AS_HELP_STRING([--with-ldflags],[Additional linker flags (e.g. -L/foo)]), |
595 [LDFLAGS="$with_ldflags"], []) | 595 [LDFLAGS="$with_ldflags"], []) |
596 XE_MERGED_ARG([site-includes], | 596 XE_MERGED_ARG([site-includes], |
597 AC_HELP_STRING([--with-site-includes=PATHS],[Prepend to include search path.]), | 597 AS_HELP_STRING([--with-site-includes=PATHS],[Prepend to include search path.]), |
598 [], []) | 598 [], []) |
599 XE_MERGED_ARG([site-libraries], | 599 XE_MERGED_ARG([site-libraries], |
600 AC_HELP_STRING([--with-site-libraries=PATHS],[Prepend to library search path.]), | 600 AS_HELP_STRING([--with-site-libraries=PATHS],[Prepend to library search path.]), |
601 [], []) | 601 [], []) |
602 XE_MERGED_ARG([site-prefixes], | 602 XE_MERGED_ARG([site-prefixes], |
603 AC_HELP_STRING([--with-site-prefixes=PATHS],[Prepend to include and library search paths, with /include and /lib added. Comes after site-includes and site-libraries, if any.]), | 603 AS_HELP_STRING([--with-site-prefixes=PATHS],[Prepend to include and library search paths, with /include and /lib added. Comes after site-includes and site-libraries, if any.]), |
604 [], []) | 604 [], []) |
605 XE_MERGED_ARG([site-runtime-libraries], | 605 XE_MERGED_ARG([site-runtime-libraries], |
606 AC_HELP_STRING([--with-site-runtime-libraries=PATHS],[Prepend to the runtime library search path]), | 606 AS_HELP_STRING([--with-site-runtime-libraries=PATHS],[Prepend to the runtime library search path]), |
607 [], []) | 607 [], []) |
608 XE_MERGED_ARG([dynamic], | 608 XE_MERGED_ARG([dynamic], |
609 AC_HELP_STRING([--with-dynamic],[Link dynamically if supported by system. 'No' forces static linking.]), | 609 AS_HELP_STRING([--with-dynamic],[Link dynamically if supported by system. 'No' forces static linking.]), |
610 [], []) | 610 [], []) |
611 dnl | 611 dnl |
612 XE_HELP_SUBSECTION([Installation options]) | 612 XE_HELP_SUBSECTION([Installation options]) |
613 XE_MERGED_ARG([prefix], | 613 XE_MERGED_ARG([prefix], |
614 AC_HELP_STRING([--with-prefix=no],[Don't compile the value for `prefix' into the executable.]), | 614 AS_HELP_STRING([--with-prefix=no],[Don't compile the value for `prefix' into the executable.]), |
615 [true], [with_prefix=yes]) | 615 [true], [with_prefix=yes]) |
616 XE_MERGED_ARG([netinstall], | 616 XE_MERGED_ARG([netinstall], |
617 AC_HELP_STRING([--with-netinstall],[Support for installation over the internet. | 617 AS_HELP_STRING([--with-netinstall],[Support for installation over the internet. |
618 Only functional on the MS Windows platforms.]), | 618 Only functional on the MS Windows platforms.]), |
619 [], [with_netinstall="no"]) | 619 [], [with_netinstall="no"]) |
620 XE_MERGED_ARG([statedir], | 620 XE_MERGED_ARG([statedir], |
621 AC_HELP_STRING([--with-statedir=DIR],[]), | 621 AS_HELP_STRING([--with-statedir=DIR],[]), |
622 [], [with_statedir='${prefix}/lib']) | 622 [], [with_statedir='${prefix}/lib']) |
623 XE_MERGED_ARG([lispdir], | 623 XE_MERGED_ARG([lispdir], |
624 AC_HELP_STRING([--with-lispdir=DIR],[]), | 624 AS_HELP_STRING([--with-lispdir=DIR],[]), |
625 [AC_DEFINE(LISPDIR_USER_DEFINED)], [with_lispdir='${datadir}/${instvardir}/lisp']) | 625 [AC_DEFINE(LISPDIR_USER_DEFINED)], [with_lispdir='${datadir}/${instvardir}/lisp']) |
626 XE_MERGED_ARG([archlibdir], | 626 XE_MERGED_ARG([archlibdir], |
627 AC_HELP_STRING([--with-archlibdir=DIR],[]), | 627 AS_HELP_STRING([--with-archlibdir=DIR],[]), |
628 [AC_DEFINE(ARCHLIBDIR_USER_DEFINED)], [with_archlibdir='${libdir}/${instvardir}/${configuration}']) | 628 [AC_DEFINE(ARCHLIBDIR_USER_DEFINED)], [with_archlibdir='${libdir}/${instvardir}/${configuration}']) |
629 XE_MERGED_ARG([moduledir], | 629 XE_MERGED_ARG([moduledir], |
630 AC_HELP_STRING([--with-moduledir=DIR],[]), | 630 AS_HELP_STRING([--with-moduledir=DIR],[]), |
631 [AC_DEFINE(MODULEDIR_USER_DEFINED)], [with_moduledir='${libdir}/${instvardir}/${configuration}/modules']) | 631 [AC_DEFINE(MODULEDIR_USER_DEFINED)], [with_moduledir='${libdir}/${instvardir}/${configuration}/modules']) |
632 XE_MERGED_ARG([etcdir], | 632 XE_MERGED_ARG([etcdir], |
633 AC_HELP_STRING([--with-etcdir=DIR],[]), | 633 AS_HELP_STRING([--with-etcdir=DIR],[]), |
634 [AC_DEFINE(ETCDIR_USER_DEFINED)], [with_etcdir='${datadir}/${instvardir}/etc']) | 634 [AC_DEFINE(ETCDIR_USER_DEFINED)], [with_etcdir='${datadir}/${instvardir}/etc']) |
635 XE_MERGED_ARG([docdir], | 635 XE_MERGED_ARG([docdir], |
636 AC_HELP_STRING([--with-docdir=DIR],[]), | 636 AS_HELP_STRING([--with-docdir=DIR],[]), |
637 [AC_DEFINE(DOCDIR_USER_DEFINED)], [with_docdir='${archlibdir}']) | 637 [AC_DEFINE(DOCDIR_USER_DEFINED)], [with_docdir='${archlibdir}']) |
638 dnl | 638 dnl |
639 XE_HELP_SUBSECTION([Run-time path-searching options]) | 639 XE_HELP_SUBSECTION([Run-time path-searching options]) |
640 XE_MERGED_ARG([site-lisp], | 640 XE_MERGED_ARG([site-lisp], |
641 AC_HELP_STRING([--with-site-lisp=no],[Allow for a site-lisp directory in the XEmacs hierarchy searched before the installation packages.]), | 641 AS_HELP_STRING([--with-site-lisp=no],[Allow for a site-lisp directory in the XEmacs hierarchy searched before the installation packages.]), |
642 [true], [with_site_lisp=no]) | 642 [true], [with_site_lisp=no]) |
643 XE_MERGED_ARG([site-modules], | 643 XE_MERGED_ARG([site-modules], |
644 AC_HELP_STRING([--with-site-modules=no],[Disable site-modules directory in the XEmacs hierarchy, which is searched before the installation modules.]), | 644 AS_HELP_STRING([--with-site-modules=no],[Disable site-modules directory in the XEmacs hierarchy, which is searched before the installation modules.]), |
645 [], []) | 645 [], []) |
646 XE_MERGED_ARG([early-packages], | 646 XE_MERGED_ARG([early-packages], |
647 AC_HELP_STRING([--with-early-packages=DIR],[Specify location of early/user packages (instead of ~/.xemacs; same as --with-user-packages).]), | 647 AS_HELP_STRING([--with-early-packages=DIR],[Specify location of early/user packages (instead of ~/.xemacs; same as --with-user-packages).]), |
648 [AC_DEFINE(EARLY_PACKAGE_DIRECTORIES_USER_DEFINED)], []) | 648 [AC_DEFINE(EARLY_PACKAGE_DIRECTORIES_USER_DEFINED)], []) |
649 XE_MERGED_ARG([user-packages], | 649 XE_MERGED_ARG([user-packages], |
650 AC_HELP_STRING([--with-user-packages=DIR],[Specify location of early/user packages (instead of ~/.xemacs; same as --with-early-packages).]), | 650 AS_HELP_STRING([--with-user-packages=DIR],[Specify location of early/user packages (instead of ~/.xemacs; same as --with-early-packages).]), |
651 [AC_DEFINE(EARLY_PACKAGE_DIRECTORIES_USER_DEFINED)], []) | 651 [AC_DEFINE(EARLY_PACKAGE_DIRECTORIES_USER_DEFINED)], []) |
652 XE_MERGED_ARG([late-packages], | 652 XE_MERGED_ARG([late-packages], |
653 AC_HELP_STRING([--with-late-packages=DIR],[Specify location of late/system packages (instead of default location; same as --with-system-packages).]), | 653 AS_HELP_STRING([--with-late-packages=DIR],[Specify location of late/system packages (instead of default location; same as --with-system-packages).]), |
654 [AC_DEFINE(LATE_PACKAGE_DIRECTORIES_USER_DEFINED)], []) | 654 [AC_DEFINE(LATE_PACKAGE_DIRECTORIES_USER_DEFINED)], []) |
655 XE_MERGED_ARG([system-packages], | 655 XE_MERGED_ARG([system-packages], |
656 AC_HELP_STRING([--with-late-packages=DIR],[Specify location of late/system packages (instead of default location; same as --with-late-packages).]), | 656 AS_HELP_STRING([--with-late-packages=DIR],[Specify location of late/system packages (instead of default location; same as --with-late-packages).]), |
657 [AC_DEFINE(LATE_PACKAGE_DIRECTORIES_USER_DEFINED)], []) | 657 [AC_DEFINE(LATE_PACKAGE_DIRECTORIES_USER_DEFINED)], []) |
658 XE_MERGED_ARG([last-packages], | 658 XE_MERGED_ARG([last-packages], |
659 AC_HELP_STRING([--with-last-packages=DIR],[Specify location of last/legacy packages (instead of default location; same as --with-legacy-packages).]), | 659 AS_HELP_STRING([--with-last-packages=DIR],[Specify location of last/legacy packages (instead of default location; same as --with-legacy-packages).]), |
660 [AC_DEFINE(LAST_PACKAGE_DIRECTORIES_USER_DEFINED)], []) | 660 [AC_DEFINE(LAST_PACKAGE_DIRECTORIES_USER_DEFINED)], []) |
661 XE_MERGED_ARG([legacy-packages], | 661 XE_MERGED_ARG([legacy-packages], |
662 AC_HELP_STRING([--with-late-packages=DIR],[Specify location of late/legacy packages (instead of default location; same as --with-late-packages).]), | 662 AS_HELP_STRING([--with-late-packages=DIR],[Specify location of late/legacy packages (instead of default location; same as --with-late-packages).]), |
663 [AC_DEFINE(LATE_PACKAGE_DIRECTORIES_USER_DEFINED)], []) | 663 [AC_DEFINE(LATE_PACKAGE_DIRECTORIES_USER_DEFINED)], []) |
664 XE_MERGED_ARG([package-path], | 664 XE_MERGED_ARG([package-path], |
665 AC_HELP_STRING([--with-package-path=PATH],[Search path for package directories.]), | 665 AS_HELP_STRING([--with-package-path=PATH],[Search path for package directories.]), |
666 [AC_DEFINE(PACKAGE_PATH_USER_DEFINED)], []) | 666 [AC_DEFINE(PACKAGE_PATH_USER_DEFINED)], []) |
667 XE_MERGED_ARG([infopath], | 667 XE_MERGED_ARG([infopath], |
668 AC_HELP_STRING([--with-infopath=PATH],[Location of info directories]), | 668 AS_HELP_STRING([--with-infopath=PATH],[Location of info directories]), |
669 [AC_DEFINE(INFOPATH_USER_DEFINED)], []) | 669 [AC_DEFINE(INFOPATH_USER_DEFINED)], []) |
670 dnl | 670 dnl |
671 XE_HELP_SUBSECTION([Window-system options]) | 671 XE_HELP_SUBSECTION([Window-system options]) |
672 dnl if you change defaults, make sure to fix arg 6 of the OPTION_HELP macro. | 672 dnl if you change defaults, make sure to fix arg 6 of the OPTION_HELP macro. |
673 XE_COMPLEX_ARG([xft], | 673 XE_COMPLEX_ARG([xft], |
681 [XE_COMPLEX_OPTION([emacs],[no]), | 681 [XE_COMPLEX_OPTION([emacs],[no]), |
682 XE_COMPLEX_OPTION([menubars],[no]), | 682 XE_COMPLEX_OPTION([menubars],[no]), |
683 XE_COMPLEX_OPTION([tabs],[no]), | 683 XE_COMPLEX_OPTION([tabs],[no]), |
684 XE_COMPLEX_OPTION([gauges],[no])]) | 684 XE_COMPLEX_OPTION([gauges],[no])]) |
685 XE_MERGED_ARG([gtk], | 685 XE_MERGED_ARG([gtk], |
686 AC_HELP_STRING([--with-gtk],[Support GTK on the X Window System. (EXPERIMENTAL)]), | 686 AS_HELP_STRING([--with-gtk],[Support GTK on the X Window System. (EXPERIMENTAL)]), |
687 [true], [with_gtk=no]) | 687 [true], [with_gtk=no]) |
688 XE_MERGED_ARG([gnome], | 688 XE_MERGED_ARG([gnome], |
689 AC_HELP_STRING([--with-gnome],[Support GNOME on the X Window System. (EXPERIMENTAL)]), | 689 AS_HELP_STRING([--with-gnome],[Support GNOME on the X Window System. (EXPERIMENTAL)]), |
690 [true], [with_gnome=no]) | 690 [true], [with_gnome=no]) |
691 XE_MERGED_ARG([msw], | 691 XE_MERGED_ARG([msw], |
692 AC_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.]), | 692 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.]), |
693 [], []) | 693 [], []) |
694 XE_MERGED_ARG([toolbars], | 694 XE_MERGED_ARG([toolbars], |
695 AC_HELP_STRING([--enable-toolbars],[Enable toolbar support. Default: yes.]), | 695 AS_HELP_STRING([--enable-toolbars],[Enable toolbar support. Default: yes.]), |
696 [], []) | 696 [], []) |
697 XE_MERGED_ARG([wmcommand], | 697 XE_MERGED_ARG([wmcommand], |
698 AC_HELP_STRING([--with-wmcommand],[Compile without realized leader window which will | 698 AS_HELP_STRING([--with-wmcommand],[Compile without realized leader window which will |
699 keep the WM_COMMAND property.]), | 699 keep the WM_COMMAND property.]), |
700 [], []) | 700 [], []) |
701 XE_KEYWORD_ARG([athena], | 701 XE_KEYWORD_ARG([athena], |
702 AC_HELP_STRING([--with-athena=TYPE],[Use TYPE Athena widgets (`xaw', `3d', `next', `95', or `xpm').]), | 702 AS_HELP_STRING([--with-athena=TYPE],[Use TYPE Athena widgets (`xaw', `3d', `next', `95', or `xpm').]), |
703 [],[],[xaw,3d,next,95,xpm])dnl | 703 [],[],[xaw,3d,next,95,xpm])dnl |
704 XE_KEYWORD_ARG([menubars], | 704 XE_KEYWORD_ARG([menubars], |
705 AC_HELP_STRING([--enable-menubars=TYPE],[Use TYPE menubars ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). The Lucid | 705 AS_HELP_STRING([--enable-menubars=TYPE],[Use TYPE menubars ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). The Lucid |
706 widgets emulate Motif (mostly) but are faster. | 706 widgets emulate Motif (mostly) but are faster. |
707 *WARNING* The Motif menubar is currently broken. | 707 *WARNING* The Motif menubar is currently broken. |
708 Lucid menubars are the default.]), | 708 Lucid menubars are the default.]), |
709 [], [],[yes,no,lucid,motif,athena,gtk,msw]) | 709 [], [],[yes,no,lucid,motif,athena,gtk,msw]) |
710 XE_KEYWORD_ARG([scrollbars], | 710 XE_KEYWORD_ARG([scrollbars], |
711 AC_HELP_STRING([--enable-scrollbars=TYPE],[Use TYPE scrollbars 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). | 711 AS_HELP_STRING([--enable-scrollbars=TYPE],[Use TYPE scrollbars 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). |
712 Lucid scrollbars are the default.]), | 712 Lucid scrollbars are the default.]), |
713 [], [],[yes,no,lucid,motif,athena,gtk,msw]) | 713 [], [],[yes,no,lucid,motif,athena,gtk,msw]) |
714 XE_KEYWORD_ARG([dialogs], | 714 XE_KEYWORD_ARG([dialogs], |
715 AC_HELP_STRING([--enable-dialogs=TYPE],[Use TYPE dialog boxes 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). | 715 AS_HELP_STRING([--enable-dialogs=TYPE],[Use TYPE dialog boxes 'yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). |
716 There are no true Lucid dialogs; Motif dialogs will be | 716 There are no true Lucid dialogs; Motif dialogs will be |
717 used if Motif can be found, else Athena is used.]), | 717 used if Motif can be found, else Athena is used.]), |
718 [], [],[yes,no,lucid,motif,athena,gtk,msw]) | 718 [], [],[yes,no,lucid,motif,athena,gtk,msw]) |
719 XE_KEYWORD_ARG([widgets], | 719 XE_KEYWORD_ARG([widgets], |
720 AC_HELP_STRING([--enable-widgets=TYPE],[Use TYPE native widgets ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). | 720 AS_HELP_STRING([--enable-widgets=TYPE],[Use TYPE native widgets ('yes', '`no', `lucid', `motif', `athena', `gtk', or `msw'). |
721 Other widget types are currently unsupported. | 721 Other widget types are currently unsupported. |
722 There are no true Lucid widgets; Motif widgets will be | 722 There are no true Lucid widgets; Motif widgets will be |
723 used if Motif can be found, else Athena is used.]), | 723 used if Motif can be found, else Athena is used.]), |
724 [], [],[yes,no,lucid,motif,athena,gtk,msw]) | 724 [], [],[yes,no,lucid,motif,athena,gtk,msw]) |
725 XE_MERGED_ARG([dragndrop], | 725 XE_MERGED_ARG([dragndrop], |
726 AC_HELP_STRING([--with-dragndrop],[Compile in the generic drag and drop API. This is automatically added if one of the drag and drop | 726 AS_HELP_STRING([--with-dragndrop],[Compile in the generic drag and drop API. This is automatically added if one of the drag and drop |
727 protocols is found (currently CDE, OffiX, MSWindows, | 727 protocols is found (currently CDE, OffiX, MSWindows, |
728 and GTK). | 728 and GTK). |
729 *WARNING* The Drag'n'drop support is under development | 729 *WARNING* The Drag'n'drop support is under development |
730 and is considered experimental.]), | 730 and is considered experimental.]), |
731 [], []) | 731 [], []) |
732 XE_MERGED_ARG([cde], | 732 XE_MERGED_ARG([cde], |
733 AC_HELP_STRING([--with-cde],[Compile in support for CDE drag and drop.]), | 733 AS_HELP_STRING([--with-cde],[Compile in support for CDE drag and drop.]), |
734 [], []) | 734 [], []) |
735 XE_MERGED_ARG([offix], | 735 XE_MERGED_ARG([offix], |
736 AC_HELP_STRING([--with-offix],[Compile in support for OffiX drag and drop. | 736 AS_HELP_STRING([--with-offix],[Compile in support for OffiX drag and drop. |
737 *WARNING* If you compile in OffiX, you may not be | 737 *WARNING* If you compile in OffiX, you may not be |
738 able to use multiple X displays success- | 738 able to use multiple X displays success- |
739 fully. If the two servers are from | 739 fully. If the two servers are from |
740 different vendors, the results may be | 740 different vendors, the results may be |
741 unpredictable.]), | 741 unpredictable.]), |
742 [], []) | 742 [], []) |
743 XE_MERGED_ARG([xmu], | 743 XE_MERGED_ARG([xmu], |
744 AC_HELP_STRING([--with-xmu],[Use Xmu utilities. Default: yes.]), | 744 AS_HELP_STRING([--with-xmu],[Use Xmu utilities. Default: yes.]), |
745 [], []) | 745 [], []) |
746 XE_MERGED_ARG([external-widget], | 746 XE_MERGED_ARG([external-widget], |
747 AC_HELP_STRING([--enable-external-widget],[Support XEmacs server for text widgets in other applications.]), | 747 AS_HELP_STRING([--enable-external-widget],[Support XEmacs server for text widgets in other applications.]), |
748 [], []) | 748 [], []) |
749 dnl | 749 dnl |
750 XE_HELP_SUBSECTION([TTY (character terminal) options]) | 750 XE_HELP_SUBSECTION([TTY (character terminal) options]) |
751 XE_MERGED_ARG([tty], | 751 XE_MERGED_ARG([tty], |
752 AC_HELP_STRING([--with-tty],[Enable TTY support. Default: yes.]), | 752 AS_HELP_STRING([--with-tty],[Enable TTY support. Default: yes.]), |
753 [], []) | 753 [], []) |
754 XE_MERGED_ARG([ncurses], | 754 XE_MERGED_ARG([ncurses], |
755 AC_HELP_STRING([--with-ncurses],[Use the ncurses library for tty support.]), | 755 AS_HELP_STRING([--with-ncurses],[Use the ncurses library for tty support.]), |
756 [], []) | 756 [], []) |
757 XE_MERGED_ARG([gpm], | 757 XE_MERGED_ARG([gpm], |
758 AC_HELP_STRING([--with-gpm],[Compile in GPM mouse support for ttys.]), | 758 AS_HELP_STRING([--with-gpm],[Compile in GPM mouse support for ttys.]), |
759 [], []) | 759 [], []) |
760 dnl | 760 dnl |
761 XE_HELP_SUBSECTION([Image options]) | 761 XE_HELP_SUBSECTION([Image options]) |
762 XE_MERGED_ARG([xpm], | 762 XE_MERGED_ARG([xpm], |
763 AC_HELP_STRING([--with-xpm],[Compile with support for XPM images. PRACTICALLY | 763 AS_HELP_STRING([--with-xpm],[Compile with support for XPM images. PRACTICALLY |
764 REQUIRED. Although this library is nonstandard and | 764 REQUIRED. Although this library is nonstandard and |
765 a real hassle to build, many basic things (e.g. | 765 a real hassle to build, many basic things (e.g. |
766 toolbars) depend on it, and you will run into | 766 toolbars) depend on it, and you will run into |
767 many problems without it.]), | 767 many problems without it.]), |
768 [], []) | 768 [], []) |
769 XE_MERGED_ARG([png], | 769 XE_MERGED_ARG([png], |
770 AC_HELP_STRING([--with-png],[Compile with support for PNG images. Recommended | 770 AS_HELP_STRING([--with-png],[Compile with support for PNG images. Recommended |
771 because the images on the About page are not viewable | 771 because the images on the About page are not viewable |
772 without it.]), | 772 without it.]), |
773 [], []) | 773 [], []) |
774 XE_MERGED_ARG([jpeg], | 774 XE_MERGED_ARG([jpeg], |
775 AC_HELP_STRING([--with-jpeg],[Compile with support for JPEG images. Useful if | 775 AS_HELP_STRING([--with-jpeg],[Compile with support for JPEG images. Useful if |
776 you are using a mail, news reader, or web browser | 776 you are using a mail, news reader, or web browser |
777 in XEmacs, so that JPEG images can be displayed.]), | 777 in XEmacs, so that JPEG images can be displayed.]), |
778 [], []) | 778 [], []) |
779 XE_MERGED_ARG([tiff], | 779 XE_MERGED_ARG([tiff], |
780 AC_HELP_STRING([--with-tiff],[Compile with support for TIFF images. Possibly | 780 AS_HELP_STRING([--with-tiff],[Compile with support for TIFF images. Possibly |
781 useful, for the same reason as JPEG images.]), | 781 useful, for the same reason as JPEG images.]), |
782 [], []) | 782 [], []) |
783 XE_MERGED_ARG([xface], | 783 XE_MERGED_ARG([xface], |
784 AC_HELP_STRING([--with-xface],[Compile with support for X-Face mail headers. | 784 AS_HELP_STRING([--with-xface],[Compile with support for X-Face mail headers. |
785 Requires the compface package.]), | 785 Requires the compface package.]), |
786 [], []) | 786 [], []) |
787 XE_MERGED_ARG([gif], | 787 XE_MERGED_ARG([gif], |
788 AC_HELP_STRING([--with-gif],[Compile without the (builtin) support for GIF images.]), | 788 AS_HELP_STRING([--with-gif],[Compile without the (builtin) support for GIF images.]), |
789 [], []) | 789 [], []) |
790 dnl | 790 dnl |
791 XE_HELP_SUBSECTION([Sound options]) | 791 XE_HELP_SUBSECTION([Sound options]) |
792 XE_COMPLEX_ARG([sound], | 792 XE_COMPLEX_ARG([sound], |
793 AC_HELP_STRING([--enable-sound=TYPE],[Compile with sound support. | 793 AS_HELP_STRING([--enable-sound=TYPE],[Compile with sound support. |
794 Valid types are `native', `alsa', `nas' and `esd'. | 794 Valid types are `native', `alsa', `nas' and `esd'. |
795 Prefix a type with 'no' to disable. | 795 Prefix a type with 'no' to disable. |
796 The first type can be `none' or `all'. `none' means | 796 The first type can be `none' or `all'. `none' means |
797 `nonative,noalsa,nonas,noesd'. `all' means | 797 `nonative,noalsa,nonas,noesd'. `all' means |
798 `native,alsa,nas,esd'. Later options override earlier | 798 `native,alsa,nas,esd'. Later options override earlier |
804 [XE_COMPLEX_OPTION([native],[""]), | 804 [XE_COMPLEX_OPTION([native],[""]), |
805 XE_COMPLEX_OPTION([alsa],[""]), | 805 XE_COMPLEX_OPTION([alsa],[""]), |
806 XE_COMPLEX_OPTION([nas],[""]), | 806 XE_COMPLEX_OPTION([nas],[""]), |
807 XE_COMPLEX_OPTION([esd],[no])]) | 807 XE_COMPLEX_OPTION([esd],[no])]) |
808 XE_MERGED_ARG([native-sound-lib], | 808 XE_MERGED_ARG([native-sound-lib], |
809 AC_HELP_STRING([--with-native-sound-lib],[Path to sound library (for systems with name conflicts).]), | 809 AS_HELP_STRING([--with-native-sound-lib],[Path to sound library (for systems with name conflicts).]), |
810 [], []) | 810 [], []) |
811 dnl | 811 dnl |
812 XE_HELP_SUBSECTION([Internationalization options]) | 812 XE_HELP_SUBSECTION([Internationalization options]) |
813 XE_MERGED_ARG([mule], | 813 XE_MERGED_ARG([mule], |
814 AC_HELP_STRING([--enable-mule],[Compile with Mule (Multi-Lingual Emacs) support, | 814 AS_HELP_STRING([--enable-mule],[Compile with Mule (Multi-Lingual Emacs) support, |
815 needed to support non-Latin-1 (including Asian) | 815 needed to support non-Latin-1 (including Asian) |
816 languages.]), | 816 languages.]), |
817 [], []) | 817 [], []) |
818 XE_KEYWORD_ARG([xim], | 818 XE_KEYWORD_ARG([xim], |
819 AC_HELP_STRING([--with-xim==TYPE],[Enable XIM support. TYPE is `yes', `no', `xlib', or `motif']), | 819 AS_HELP_STRING([--with-xim==TYPE],[Enable XIM support. TYPE is `yes', `no', `xlib', or `motif']), |
820 [],[],[yes,no,xlib,motif])dnl | 820 [],[],[yes,no,xlib,motif])dnl |
821 XE_MERGED_ARG([canna], | 821 XE_MERGED_ARG([canna], |
822 AC_HELP_STRING([--with-canna],[Support the Canna Japanese input method. Requires Mule.]), | 822 AS_HELP_STRING([--with-canna],[Support the Canna Japanese input method. Requires Mule.]), |
823 [], []) | 823 [], []) |
824 XE_MERGED_ARG([wnn], | 824 XE_MERGED_ARG([wnn], |
825 AC_HELP_STRING([--with-wnn],[Support the Wnn Asian language input | 825 AS_HELP_STRING([--with-wnn],[Support the Wnn Asian language input |
826 method. Requires Mule.]), | 826 method. Requires Mule.]), |
827 [], []) | 827 [], []) |
828 XE_MERGED_ARG([wnn6], | 828 XE_MERGED_ARG([wnn6], |
829 AC_HELP_STRING([--with-wnn6],[Support the Wnn6 Asian language input | 829 AS_HELP_STRING([--with-wnn6],[Support the Wnn6 Asian language input |
830 method (proprietary). Requires Mule.]), | 830 method (proprietary). Requires Mule.]), |
831 [], []) | 831 [], []) |
832 XE_MERGED_ARG([xfs], | 832 XE_MERGED_ARG([xfs], |
833 AC_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized | 833 AS_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized |
834 menubar. Incompatible with `--with-xim=motif' and `--with-xft'. | 834 menubar. Incompatible with `--with-xim=motif' and `--with-xft'. |
835 `--enable-menubars=lucid' (the default) is desirable.]), | 835 `--enable-menubars=lucid' (the default) is desirable.]), |
836 [], []) | 836 [], []) |
837 dnl | 837 dnl |
838 XE_HELP_SUBSECTION([File-related options]) | 838 XE_HELP_SUBSECTION([File-related options]) |
839 XE_MERGED_ARG([default-eol-detection], | 839 XE_MERGED_ARG([default-eol-detection], |
840 AC_HELP_STRING([--enable-default-eol-detection],[Turns on by default auto-detection of end-of-line type | 840 AS_HELP_STRING([--enable-default-eol-detection],[Turns on by default auto-detection of end-of-line type |
841 when reading a file. Applies to those platforms where | 841 when reading a file. Applies to those platforms where |
842 auto-detection is off by default (non-Mule Unix). Has | 842 auto-detection is off by default (non-Mule Unix). Has |
843 no effect otherwise.]), | 843 no effect otherwise.]), |
844 [], []) | 844 [], []) |
845 XE_MERGED_ARG([clash-detection], | 845 XE_MERGED_ARG([clash-detection], |
846 AC_HELP_STRING([--enable-clash-detection],[Disable use of lock files to detect multiple edits | 846 AS_HELP_STRING([--enable-clash-detection],[Disable use of lock files to detect multiple edits |
847 of the same file.]), | 847 of the same file.]), |
848 [], []) | 848 [], []) |
849 XE_MERGED_ARG([zlib], | 849 XE_MERGED_ARG([zlib], |
850 AC_HELP_STRING([--with-zlib],[Support inflate (de)compression internally.]), | 850 AS_HELP_STRING([--with-zlib],[Support inflate (de)compression internally.]), |
851 [], []) | 851 [], []) |
852 dnl | 852 dnl |
853 XE_HELP_SUBSECTION([Database options]) | 853 XE_HELP_SUBSECTION([Database options]) |
854 XE_COMPLEX_ARG([database], | 854 XE_COMPLEX_ARG([database], |
855 AC_HELP_STRING([--enable-database=TYPE],[Compile with database support. Valid types are | 855 AS_HELP_STRING([--enable-database=TYPE],[Compile with database support. Valid types are |
856 `no' or a comma-separated list of one or more | 856 `no' or a comma-separated list of one or more |
857 of `berkdb' and either `dbm' or `gnudbm'.]), | 857 of `berkdb' and either `dbm' or `gnudbm'.]), |
858 [ | 858 [ |
859 if test "$enable_database_dbm" = "yes" -a "$enable_database_gdbm" = "yes"; then | 859 if test "$enable_database_dbm" = "yes" -a "$enable_database_gdbm" = "yes"; then |
860 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified | 860 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified |
864 [], | 864 [], |
865 [XE_COMPLEX_OPTION([berkdb],[""]), | 865 [XE_COMPLEX_OPTION([berkdb],[""]), |
866 XE_COMPLEX_OPTION([dbm],[""]), | 866 XE_COMPLEX_OPTION([dbm],[""]), |
867 XE_COMPLEX_OPTION([gdbm],[""])]) | 867 XE_COMPLEX_OPTION([gdbm],[""])]) |
868 XE_MERGED_ARG([ldap], | 868 XE_MERGED_ARG([ldap], |
869 AC_HELP_STRING([--with-ldap],[Support the LDAP protocol.]), | 869 AS_HELP_STRING([--with-ldap],[Support the LDAP protocol.]), |
870 [], []) | 870 [], []) |
871 XE_MERGED_ARG([postgresql], | 871 XE_MERGED_ARG([postgresql], |
872 AC_HELP_STRING([--with-postgresql],[Support the PostgreSQL RDBMS.]), | 872 AS_HELP_STRING([--with-postgresql],[Support the PostgreSQL RDBMS.]), |
873 [], []) | 873 [], []) |
874 dnl | 874 dnl |
875 XE_HELP_SUBSECTION([Mail options]) | 875 XE_HELP_SUBSECTION([Mail options]) |
876 XE_KEYWORD_ARG([mail-locking], | 876 XE_KEYWORD_ARG([mail-locking], |
877 AC_HELP_STRING([--with-mail-locking=TYPE],[Specify the locking to be used by movemail to prevent | 877 AS_HELP_STRING([--with-mail-locking=TYPE],[Specify the locking to be used by movemail to prevent |
878 concurrent updates of mail spool files. Valid types | 878 concurrent updates of mail spool files. Valid types |
879 are `lockf', `flock', `file', `locking', `mmdf' or `pop'.]), | 879 are `lockf', `flock', `file', `locking', `mmdf' or `pop'.]), |
880 [],[],[lockf,flock,file,locking,mmdf,pop])dnl | 880 [],[],[lockf,flock,file,locking,mmdf,pop])dnl |
881 XE_MERGED_ARG([pop], | 881 XE_MERGED_ARG([pop], |
882 AC_HELP_STRING([--with-pop],[Support POP for mail retrieval.]), | 882 AS_HELP_STRING([--with-pop],[Support POP for mail retrieval.]), |
883 [], []) | 883 [], []) |
884 XE_MERGED_ARG([kerberos], | 884 XE_MERGED_ARG([kerberos], |
885 AC_HELP_STRING([--with-kerberos],[Support Kerberos-authenticated POP.]), | 885 AS_HELP_STRING([--with-kerberos],[Support Kerberos-authenticated POP.]), |
886 [], []) | 886 [], []) |
887 XE_MERGED_ARG([hesiod], | 887 XE_MERGED_ARG([hesiod], |
888 AC_HELP_STRING([--with-hesiod],[Support Hesiod to get the POP server host.]), | 888 AS_HELP_STRING([--with-hesiod],[Support Hesiod to get the POP server host.]), |
889 [], []) | 889 [], []) |
890 dnl | 890 dnl |
891 XE_HELP_SUBSECTION([Networking options]) | 891 XE_HELP_SUBSECTION([Networking options]) |
892 XE_MERGED_ARG([tooltalk], | 892 XE_MERGED_ARG([tooltalk], |
893 AC_HELP_STRING([--with-tooltalk],[Support the ToolTalk IPC protocol.]), | 893 AS_HELP_STRING([--with-tooltalk],[Support the ToolTalk IPC protocol.]), |
894 [], []) | 894 [], []) |
895 XE_MERGED_ARG([socks], | 895 XE_MERGED_ARG([socks], |
896 AC_HELP_STRING([--with-socks],[Compile with support for SOCKS (an Internet proxy).]), | 896 AS_HELP_STRING([--with-socks],[Compile with support for SOCKS (an Internet proxy).]), |
897 [], []) | 897 [], []) |
898 XE_MERGED_ARG([dnet], | 898 XE_MERGED_ARG([dnet], |
899 AC_HELP_STRING([--with-dnet],[Compile with support for DECnet.]), | 899 AS_HELP_STRING([--with-dnet],[Compile with support for DECnet.]), |
900 [], []) | 900 [], []) |
901 XE_MERGED_ARG([ipv6-cname], | 901 XE_MERGED_ARG([ipv6-cname], |
902 AC_HELP_STRING([--with-ipv6-cname],[Try IPv6 information first when canonicalizing host names. This option has no effect unless system supports getaddrinfo(3) and getnameinfo(3).]), | 902 AS_HELP_STRING([--with-ipv6-cname],[Try IPv6 information first when canonicalizing host names. This option has no effect unless system supports getaddrinfo(3) and getnameinfo(3).]), |
903 [], [with_ipv6_cname="no"]) | 903 [], [with_ipv6_cname="no"]) |
904 dnl | 904 dnl |
905 XE_HELP_SUBSECTION([Memory allocation options]) | 905 XE_HELP_SUBSECTION([Memory allocation options]) |
906 XE_MERGED_ARG([rel-alloc], | 906 XE_MERGED_ARG([rel-alloc], |
907 AC_HELP_STRING([--with-rel-alloc],[Enable the relocating allocator.]), | 907 AS_HELP_STRING([--with-rel-alloc],[Enable the relocating allocator.]), |
908 [], [with_rel_alloc='default']) | 908 [], [with_rel_alloc='default']) |
909 XE_MERGED_ARG([dlmalloc], | 909 XE_MERGED_ARG([dlmalloc], |
910 AC_HELP_STRING([--with-dlmalloc],[Use Doug Lea's malloc implementation.]), | 910 AS_HELP_STRING([--with-dlmalloc],[Use Doug Lea's malloc implementation.]), |
911 [], [with_dlmalloc='default']) | 911 [], [with_dlmalloc='default']) |
912 XE_MERGED_ARG([system-malloc], | 912 XE_MERGED_ARG([system-malloc], |
913 AC_HELP_STRING([--with-system-malloc],[Use the system malloc, not the one distributed with XEmacs.]), | 913 AS_HELP_STRING([--with-system-malloc],[Use the system malloc, not the one distributed with XEmacs.]), |
914 [], [with_system_malloc='default']) | 914 [], [with_system_malloc='default']) |
915 XE_MERGED_ARG([debug-malloc], | 915 XE_MERGED_ARG([debug-malloc], |
916 AC_HELP_STRING([--with-debug-malloc],[Use a debugging malloc.]), | 916 AS_HELP_STRING([--with-debug-malloc],[Use a debugging malloc.]), |
917 [], []) | 917 [], []) |
918 XE_MERGED_ARG([pdump], | 918 XE_MERGED_ARG([pdump], |
919 AC_HELP_STRING([--enable-pdump],[Enable portable LISP preloader.]), | 919 AS_HELP_STRING([--enable-pdump],[Enable portable LISP preloader.]), |
920 [], []) | 920 [], []) |
921 XE_MERGED_ARG([dump-in-exec], | 921 XE_MERGED_ARG([dump-in-exec], |
922 AC_HELP_STRING([--enable-dump-in-exec],[Enable dumping into executable (enabled by default | 922 AS_HELP_STRING([--enable-dump-in-exec],[Enable dumping into executable (enabled by default |
923 for `pdump', not enabled by default in combination | 923 for `pdump', not enabled by default in combination |
924 with `newgc').]), | 924 with `newgc').]), |
925 [], []) | 925 [], []) |
926 XE_MERGED_ARG([kkcc], | 926 XE_MERGED_ARG([kkcc], |
927 AC_HELP_STRING([--enable-kkcc],[Enable experimental new GC mark algorithms.]), | 927 AS_HELP_STRING([--enable-kkcc],[Enable experimental new GC mark algorithms.]), |
928 [], [enable_kkcc=yes]) | 928 [], [enable_kkcc=yes]) |
929 | 929 |
930 XE_MERGED_ARG([newgc], | 930 XE_MERGED_ARG([newgc], |
931 AC_HELP_STRING([--enable-newgc],[Enable new incremental garbage collector and new allocator.]), | 931 AS_HELP_STRING([--enable-newgc],[Enable new incremental garbage collector and new allocator.]), |
932 [], []) | 932 [], []) |
933 XE_COMPLEX_ARG([vdb], | 933 XE_COMPLEX_ARG([vdb], |
934 AC_HELP_STRING([--enable-vdb=TYPE],[Override auto-detection of | 934 AS_HELP_STRING([--enable-vdb=TYPE],[Override auto-detection of |
935 virtual-dirty-bit write-barrier implementation for the | 935 virtual-dirty-bit write-barrier implementation for the |
936 new garbage collector. TYPE must be one of "auto" (for | 936 new garbage collector. TYPE must be one of "auto" (for |
937 auto-detection), "posix", "win32", "mach", or "fake" | 937 auto-detection), "posix", "win32", "mach", or "fake" |
938 (uses the new garbage collector but disables | 938 (uses the new garbage collector but disables |
939 incremental collections). The default is to | 939 incremental collections). The default is to |
940 use auto-detection.]), | 940 use auto-detection.]), |
941 [], [enable_vdb="auto"],[auto,posix,win32,mach,fake,no]) | 941 [], [enable_vdb="auto"],[auto,posix,win32,mach,fake,no]) |
942 dnl | 942 dnl |
943 XE_HELP_SUBSECTION([Emacs Lisp options]) | 943 XE_HELP_SUBSECTION([Emacs Lisp options]) |
944 XE_MERGED_ARG([modules], | 944 XE_MERGED_ARG([modules], |
945 AC_HELP_STRING([--enable-modules],[Compile in experimental support for dynamically | 945 AS_HELP_STRING([--enable-modules],[Compile in experimental support for dynamically |
946 loaded libraries (Dynamic Shared Objects).]), | 946 loaded libraries (Dynamic Shared Objects).]), |
947 [], []) | 947 [], []) |
948 XE_KEYWORD_ARG([bignum], | 948 XE_KEYWORD_ARG([bignum], |
949 AC_HELP_STRING([--enable-bignum=TYPE],[Compile in support for bignums, ratios, or bigfloats | 949 AS_HELP_STRING([--enable-bignum=TYPE],[Compile in support for bignums, ratios, or bigfloats |
950 using library support. TYPE must be one of "gmp" | 950 using library support. TYPE must be one of "gmp" |
951 (for GNU MP), "mp" (for BSD MP), or "no" (disabled).]), | 951 (for GNU MP), "mp" (for BSD MP), or "no" (disabled).]), |
952 [], [enable_bignum="no"],[no,gmp,mp]) | 952 [], [enable_bignum="no"],[no,gmp,mp]) |
953 dnl | 953 dnl |
954 XE_HELP_SUBSECTION([Platform Specific options]) | 954 XE_HELP_SUBSECTION([Platform Specific options]) |
955 XE_MERGED_ARG([workshop], | 955 XE_MERGED_ARG([workshop], |
956 AC_HELP_STRING([--with-workshop],[Support the Sun WorkShop (formerly Sparcworks) | 956 AS_HELP_STRING([--with-workshop],[Support the Sun WorkShop (formerly Sparcworks) |
957 development environment.]), | 957 development environment.]), |
958 [], []) | 958 [], []) |
959 XE_MERGED_ARG([sparcworks], | 959 XE_MERGED_ARG([sparcworks], |
960 AC_HELP_STRING([--with-sparcworks],[Alias for --with-workshop]), | 960 AS_HELP_STRING([--with-sparcworks],[Alias for --with-workshop]), |
961 [], []) | 961 [], []) |
962 XE_MERGED_ARG([infodock], | 962 XE_MERGED_ARG([infodock], |
963 AC_HELP_STRING([--with-infodock],[Support the Infodock version of XEmacs. Infodock is a SourceForge project).]), | 963 AS_HELP_STRING([--with-infodock],[Support the Infodock version of XEmacs. Infodock is a SourceForge project).]), |
964 [], []) | 964 [], []) |
965 dnl | 965 dnl |
966 XE_HELP_SUBSECTION([Debugging options]) | 966 XE_HELP_SUBSECTION([Debugging options]) |
967 XE_MERGED_ARG([debug], | 967 XE_MERGED_ARG([debug], |
968 AC_HELP_STRING([--enable-debug],[Enable additional debugging information. No time cost.]), | 968 AS_HELP_STRING([--enable-debug],[Enable additional debugging information. No time cost.]), |
969 [], []) | 969 [], []) |
970 XE_COMPLEX_ARG([error-checking], | 970 XE_COMPLEX_ARG([error-checking], |
971 AC_HELP_STRING([--enable-error-checking=TESTS],[Compile with internal error-checking added. | 971 AS_HELP_STRING([--enable-error-checking=TESTS],[Compile with internal error-checking added. |
972 Causes noticeable loss of speed. Valid TESTS | 972 Causes noticeable loss of speed. Valid TESTS |
973 are `extents', `bufpos', `malloc', `gc', `types', `text', `byte_code', `glyphs', `display', `structures'.]), | 973 are `extents', `bufpos', `malloc', `gc', `types', `text', `byte_code', `glyphs', `display', `structures'.]), |
974 [], [], | 974 [], [], |
975 [XE_COMPLEX_OPTION([extents],[""]), | 975 [XE_COMPLEX_OPTION([extents],[""]), |
976 XE_COMPLEX_OPTION([types],[""]), | 976 XE_COMPLEX_OPTION([types],[""]), |
980 XE_COMPLEX_OPTION([byte_code],[""]), | 980 XE_COMPLEX_OPTION([byte_code],[""]), |
981 XE_COMPLEX_OPTION([glyphs],[""]), | 981 XE_COMPLEX_OPTION([glyphs],[""]), |
982 XE_COMPLEX_OPTION([display],[""]), | 982 XE_COMPLEX_OPTION([display],[""]), |
983 XE_COMPLEX_OPTION([structures],[""])]) | 983 XE_COMPLEX_OPTION([structures],[""])]) |
984 XE_MERGED_ARG([assertions], | 984 XE_MERGED_ARG([assertions], |
985 AC_HELP_STRING([--enable-assertions],[Compile in runtime assertions.]), | 985 AS_HELP_STRING([--enable-assertions],[Compile in runtime assertions.]), |
986 [], []) | 986 [], []) |
987 XE_MERGED_ARG([memory-usage-stats], | 987 XE_MERGED_ARG([memory-usage-stats], |
988 AC_HELP_STRING([--enable-memory-usage-stats],[Enable LISP memory usage API.]), | 988 AS_HELP_STRING([--enable-memory-usage-stats],[Enable LISP memory usage API.]), |
989 [], []) | 989 [], []) |
990 XE_MERGED_ARG([quick-build], | 990 XE_MERGED_ARG([quick-build], |
991 AC_HELP_STRING([--enable-quick-build],[Speed up the build cycle by leaving out steps where | 991 AS_HELP_STRING([--enable-quick-build],[Speed up the build cycle by leaving out steps where |
992 XEmacs will still work (more or less) without them. | 992 XEmacs will still work (more or less) without them. |
993 Potentially dangerous if you don't know what you're | 993 Potentially dangerous if you don't know what you're |
994 doing. This (1) doesn't garbage-collect after loading | 994 doing. This (1) doesn't garbage-collect after loading |
995 each file during dumping, (2) doesn't | 995 each file during dumping, (2) doesn't |
996 automatically rebuild the DOC file (remove it by hand | 996 automatically rebuild the DOC file (remove it by hand |
998 associated files from the dependency lists, so changes | 998 associated files from the dependency lists, so changes |
999 to these files don't automatically cause all .c files | 999 to these files don't automatically cause all .c files |
1000 to be rebuilt.]), | 1000 to be rebuilt.]), |
1001 [], []) | 1001 [], []) |
1002 XE_MERGED_ARG([union-type], | 1002 XE_MERGED_ARG([union-type], |
1003 AC_HELP_STRING([--enable-union-type],[Use union definition of Lisp_Object type. Known to trigger bugs in some compilers.]), | 1003 AS_HELP_STRING([--enable-union-type],[Use union definition of Lisp_Object type. Known to trigger bugs in some compilers.]), |
1004 [], []) | 1004 [], []) |
1005 XE_MERGED_ARG([quantify], | 1005 XE_MERGED_ARG([quantify], |
1006 AC_HELP_STRING([--with-quantify],[Support performance debugging using Quantify.]), | 1006 AS_HELP_STRING([--with-quantify],[Support performance debugging using Quantify.]), |
1007 [], []) | 1007 [], []) |
1008 XE_MERGED_ARG([purify], | 1008 XE_MERGED_ARG([purify], |
1009 AC_HELP_STRING([--with-purify],[Support memory debugging using Purify.]), | 1009 AS_HELP_STRING([--with-purify],[Support memory debugging using Purify.]), |
1010 [], []) | 1010 [], []) |
1011 dnl ------------------------------------------------------------------------- | 1011 dnl ------------------------------------------------------------------------- |
1012 dnl Final command line argument checks. | 1012 dnl Final command line argument checks. |
1013 | 1013 |
1014 dnl --with-quantify or --with-purify imply --with-system-malloc | 1014 dnl --with-quantify or --with-purify imply --with-system-malloc |
1923 | 1923 |
1924 dnl We want feature macros defined here *and* in config.h.in, so that | 1924 dnl We want feature macros defined here *and* in config.h.in, so that |
1925 dnl the compilation environment at configure time and compile time agree. | 1925 dnl the compilation environment at configure time and compile time agree. |
1926 | 1926 |
1927 AC_MSG_CHECKING(for GNU libc) | 1927 AC_MSG_CHECKING(for GNU libc) |
1928 AC_TRY_COMPILE([#include <features.h>],[ | 1928 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <features.h>],[ |
1929 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) | 1929 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) |
1930 #error Not a GNU libc system :-( | 1930 #error Not a GNU libc system :-( |
1931 ******* ======= ******** &&&&&&&& | 1931 ******* ======= ******** &&&&&&&& |
1932 #endif | 1932 #endif |
1933 ], have_glibc=yes, have_glibc=no) | 1933 ])], have_glibc=yes, have_glibc=no) |
1934 AC_MSG_RESULT($have_glibc) | 1934 AC_MSG_RESULT($have_glibc) |
1935 dnl I'm tired of pop being broken with GLIBC -slb | 1935 dnl I'm tired of pop being broken with GLIBC -slb |
1936 dnl Well. then why not fix fucking pop? | 1936 dnl Well. then why not fix fucking pop? |
1937 test "$have_glibc" = "yes" && AC_DEFINE(_GNU_SOURCE) | 1937 test "$have_glibc" = "yes" && AC_DEFINE(_GNU_SOURCE) |
1938 | 1938 |
2182 | 2182 |
2183 dnl Some versions of SCO native compiler need -Kalloca | 2183 dnl Some versions of SCO native compiler need -Kalloca |
2184 if test "$__USLC__" = yes; then | 2184 if test "$__USLC__" = yes; then |
2185 AC_MSG_CHECKING(for whether the -Kalloca compiler flag is needed) | 2185 AC_MSG_CHECKING(for whether the -Kalloca compiler flag is needed) |
2186 need_kalloca=no | 2186 need_kalloca=no |
2187 AC_TRY_LINK([], [void *x = alloca(4);], [:], [ | 2187 AC_LINK_IFELSE([AC_LANG_SOURCE([void *x = alloca(4);])], [:], [ |
2188 xe_save_c_switch_system="$c_switch_system" | 2188 xe_save_c_switch_system="$c_switch_system" |
2189 c_switch_system="$c_switch_system -Kalloca" | 2189 c_switch_system="$c_switch_system -Kalloca" |
2190 AC_TRY_LINK([], [void *x = alloca(4);], [ need_kalloca=yes ]) | 2190 AC_LINK_IFELSE([AC_LANG_SOURCE([void *x = alloca(4);])], |
2191 [ need_kalloca=yes ]) | |
2191 c_switch_system="$xe_save_c_switch_system"]) | 2192 c_switch_system="$xe_save_c_switch_system"]) |
2192 AC_MSG_RESULT($need_kalloca) | 2193 AC_MSG_RESULT($need_kalloca) |
2193 test "$need_kalloca" = "yes" && XE_APPEND(-Kalloca,c_switch_system) | 2194 test "$need_kalloca" = "yes" && XE_APPEND(-Kalloca,c_switch_system) |
2194 fi | 2195 fi |
2195 | 2196 |
2437 dnl Note that it's OK if the GNU style long option causes non-GNU ld to barf | 2438 dnl Note that it's OK if the GNU style long option causes non-GNU ld to barf |
2438 dnl a usage message, that's often good enough. Please report it, though. | 2439 dnl a usage message, that's often good enough. Please report it, though. |
2439 dnl #### Should make this Solaris-friendly. | 2440 dnl #### Should make this Solaris-friendly. |
2440 dnl Link with -z nocombreloc for now. | 2441 dnl Link with -z nocombreloc for now. |
2441 if test "$enable_pdump" != "yes"; then | 2442 if test "$enable_pdump" != "yes"; then |
2442 AC_MSG_CHECKING(for \"-z nocombreloc\" linker flag) | 2443 AC_MSG_CHECKING([for "-z nocombreloc" linker flag]) |
2443 case "`ld --help 2>&1`" in | 2444 case "`ld --help 2>&1`" in |
2444 *-z\ nocombreloc* ) AC_MSG_RESULT(yes) | 2445 *-z\ nocombreloc* ) AC_MSG_RESULT(yes) |
2445 XE_PREPEND(-z nocombreloc, ld_switch_site) ;; | 2446 XE_PREPEND(-z nocombreloc, ld_switch_site) ;; |
2446 *) AC_MSG_RESULT(no) ;; | 2447 *) AC_MSG_RESULT(no) ;; |
2447 esac | 2448 esac |
2736 fi | 2737 fi |
2737 | 2738 |
2738 if test "$add_runtime_path" = "yes"; then | 2739 if test "$add_runtime_path" = "yes"; then |
2739 dnl Try to autodetect runtime library flag (usually -R), | 2740 dnl Try to autodetect runtime library flag (usually -R), |
2740 dnl and whether it works (or at least does no harm) | 2741 dnl and whether it works (or at least does no harm) |
2741 AC_MSG_CHECKING("for runtime libraries flag") | 2742 AC_MSG_CHECKING([for runtime libraries flag]) |
2742 case "$opsys" in | 2743 case "$opsys" in |
2743 sol2 ) dash_r="-R" ;; | 2744 sol2 ) dash_r="-R" ;; |
2744 decosf* | linux* | irix*) dash_r="-rpath " ;; | 2745 decosf* | linux* | irix*) dash_r="-rpath " ;; |
2745 *) | 2746 *) |
2746 dash_r="" | 2747 dash_r="" |
2747 for try_dash_r in "-R" "-R " "-rpath "; do | 2748 for try_dash_r in "-R" "-R " "-rpath "; do |
2748 xe_check_libs="${try_dash_r}/no/such/file-or-directory" | 2749 xe_check_libs="${try_dash_r}/no/such/file-or-directory" |
2749 XE_PROTECT_LINKER_FLAGS(xe_check_libs) | 2750 XE_PROTECT_LINKER_FLAGS(xe_check_libs) |
2750 AC_TRY_LINK(, , dash_r="$try_dash_r") | 2751 AC_LINK_IFELSE([], dash_r="$try_dash_r") |
2751 xe_check_libs="" | 2752 xe_check_libs="" |
2752 test -n "$dash_r" && break | 2753 test -n "$dash_r" && break |
2753 done ;; | 2754 done ;; |
2754 esac | 2755 esac |
2755 if test -n "$dash_r"; | 2756 if test -n "$dash_r"; |
2756 then AC_MSG_RESULT("\"${dash_r}\"") | 2757 then AC_MSG_RESULT(["${dash_r}"]) |
2757 else AC_MSG_RESULT(NONE) | 2758 else AC_MSG_RESULT(NONE) |
2758 fi | 2759 fi |
2759 fi | 2760 fi |
2760 | 2761 |
2761 xe_add_unique_runpath_dir=' | 2762 xe_add_unique_runpath_dir=' |
2784 doug_lea_malloc=no | 2785 doug_lea_malloc=no |
2785 fi | 2786 fi |
2786 after_morecore_hook_exists=yes | 2787 after_morecore_hook_exists=yes |
2787 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) | 2788 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) |
2788 AC_MSG_CHECKING(whether __after_morecore_hook exists) | 2789 AC_MSG_CHECKING(whether __after_morecore_hook exists) |
2789 AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0], | 2790 AC_LINK_IFELSE([AC_LANG_PROGRAM([extern void (* __after_morecore_hook)();], |
2791 [__after_morecore_hook = 0])], | |
2790 [AC_MSG_RESULT(yes)], | 2792 [AC_MSG_RESULT(yes)], |
2791 [AC_MSG_RESULT(no) | 2793 [AC_MSG_RESULT(no) |
2792 after_morecore_hook_exists=no]) | 2794 after_morecore_hook_exists=no]) |
2793 if test "$system_malloc" = "yes" ; then | 2795 if test "$system_malloc" = "yes" ; then |
2794 GNU_MALLOC=no | 2796 GNU_MALLOC=no |
2844 AC_CHECK_HEADERS(dnl | 2846 AC_CHECK_HEADERS(dnl |
2845 a.out.h dnl | 2847 a.out.h dnl |
2846 elf.h dnl | 2848 elf.h dnl |
2847 cygwin/version.h dnl | 2849 cygwin/version.h dnl |
2848 fcntl.h dnl | 2850 fcntl.h dnl |
2849 inttypes.h dnl | |
2850 libgen.h dnl | 2851 libgen.h dnl |
2851 locale.h dnl | 2852 locale.h dnl |
2852 wchar.h dnl | 2853 wchar.h dnl |
2853 mach/mach.h dnl | 2854 mach/mach.h dnl |
2854 sys/param.h dnl | 2855 sys/param.h dnl |
2858 sys/timeb.h dnl | 2859 sys/timeb.h dnl |
2859 sys/times.h dnl | 2860 sys/times.h dnl |
2860 sys/un.h dnl | 2861 sys/un.h dnl |
2861 sys/vlimit.h dnl | 2862 sys/vlimit.h dnl |
2862 ulimit.h dnl | 2863 ulimit.h dnl |
2863 unistd.h dnl | |
2864 ) | 2864 ) |
2865 AC_HEADER_SYS_WAIT | 2865 AC_HEADER_SYS_WAIT |
2866 AC_HEADER_STDC | 2866 AC_HEADER_STDC |
2867 AC_HEADER_TIME | 2867 AC_HEADER_TIME |
2868 AC_CHECK_DECLS([sys_siglist],,, | 2868 AC_CHECK_DECLS([sys_siglist],,, |
2879 dnl We prefer utime, since it is more standard. | 2879 dnl We prefer utime, since it is more standard. |
2880 dnl Some systems have utime.h but do not declare the struct anyplace, | 2880 dnl Some systems have utime.h but do not declare the struct anyplace, |
2881 dnl so we use a more sophisticated test for utime than AC_CHECK_FUNCS. | 2881 dnl so we use a more sophisticated test for utime than AC_CHECK_FUNCS. |
2882 dnl ---------------------------------------------------------------- | 2882 dnl ---------------------------------------------------------------- |
2883 AC_MSG_CHECKING(for utime) | 2883 AC_MSG_CHECKING(for utime) |
2884 AC_TRY_COMPILE([#include <sys/types.h> | 2884 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h> |
2885 #include <utime.h>], | 2885 #include <utime.h>], |
2886 [struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);], | 2886 [struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);])], |
2887 [AC_MSG_RESULT(yes) | 2887 [AC_MSG_RESULT(yes) |
2888 AC_DEFINE(HAVE_UTIME)], | 2888 AC_DEFINE(HAVE_UTIME)], |
2889 [AC_MSG_RESULT(no) | 2889 [AC_MSG_RESULT(no) |
2890 dnl We don't have utime(); how about utimes()? | 2890 dnl We don't have utime(); how about utimes()? |
2891 AC_CHECK_FUNCS(utimes)]) | 2891 AC_CHECK_FUNCS(utimes)]) |
2902 AC_CHECK_TYPE(ssize_t, int) | 2902 AC_CHECK_TYPE(ssize_t, int) |
2903 | 2903 |
2904 dnl not AC_CHECK_TYPE; lisp.h does hairy conditional typedef | 2904 dnl not AC_CHECK_TYPE; lisp.h does hairy conditional typedef |
2905 if test "$ac_cv_header_inttypes_h" != "yes"; then | 2905 if test "$ac_cv_header_inttypes_h" != "yes"; then |
2906 AC_MSG_CHECKING(for intptr_t in sys/types.h) | 2906 AC_MSG_CHECKING(for intptr_t in sys/types.h) |
2907 AC_TRY_COMPILE([#include <sys/types.h> | 2907 AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <sys/types.h> |
2908 intptr_t x; | 2908 intptr_t x; |
2909 ],[],[AC_MSG_RESULT(yes) | 2909 ])],[AC_MSG_RESULT(yes) |
2910 AC_DEFINE(HAVE_INTPTR_T_IN_SYS_TYPES_H,1)], | 2910 AC_DEFINE(HAVE_INTPTR_T_IN_SYS_TYPES_H,1)], |
2911 [AC_MSG_RESULT(no)]) | 2911 [AC_MSG_RESULT(no)]) |
2912 fi | 2912 fi |
2913 | 2913 |
2914 dnl check for Unix98 socklen_t | 2914 dnl check for Unix98 socklen_t |
2915 AC_MSG_CHECKING(for socklen_t) | 2915 AC_MSG_CHECKING(for socklen_t) |
2916 AC_TRY_COMPILE([#include <sys/types.h> | 2916 AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <sys/types.h> |
2917 #include <sys/socket.h> | 2917 #include <sys/socket.h> |
2918 socklen_t x; | 2918 socklen_t x; |
2919 ],[],[AC_MSG_RESULT(yes)],[ | 2919 ])],[AC_MSG_RESULT(yes)],[ |
2920 AC_TRY_COMPILE([#include <sys/types.h> | 2920 AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <sys/types.h> |
2921 #include <sys/socket.h> | 2921 #include <sys/socket.h> |
2922 int accept (int, struct sockaddr *, size_t *); | 2922 int accept (int, struct sockaddr *, size_t *); |
2923 ],[],[ | 2923 ])],[ |
2924 AC_MSG_RESULT(size_t) | 2924 AC_MSG_RESULT(size_t) |
2925 AC_DEFINE(socklen_t,size_t)], [ | 2925 AC_DEFINE(socklen_t,size_t)], [ |
2926 AC_MSG_RESULT(int) | 2926 AC_MSG_RESULT(int) |
2927 AC_DEFINE(socklen_t,int)])]) | 2927 AC_DEFINE(socklen_t,int)])]) |
2928 | 2928 |
2929 AC_MSG_CHECKING(for struct timeval) | 2929 AC_MSG_CHECKING(for struct timeval) |
2930 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME | 2930 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#ifdef TIME_WITH_SYS_TIME |
2931 #include <sys/time.h> | 2931 #include <sys/time.h> |
2932 #include <time.h> | 2932 #include <time.h> |
2933 #else | 2933 #else |
2934 #ifdef HAVE_SYS_TIME_H | 2934 #ifdef HAVE_SYS_TIME_H |
2935 #include <sys/time.h> | 2935 #include <sys/time.h> |
2936 #else | 2936 #else |
2937 #include <time.h> | 2937 #include <time.h> |
2938 #endif | 2938 #endif |
2939 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], | 2939 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;])], |
2940 [AC_MSG_RESULT(yes) | 2940 [AC_MSG_RESULT(yes) |
2941 HAVE_TIMEVAL=yes | 2941 HAVE_TIMEVAL=yes |
2942 AC_DEFINE(HAVE_TIMEVAL)], | 2942 AC_DEFINE(HAVE_TIMEVAL)], |
2943 [AC_MSG_RESULT(no) | 2943 [AC_MSG_RESULT(no) |
2944 HAVE_TIMEVAL=no]) | 2944 HAVE_TIMEVAL=no]) |
2974 AC_SYS_LONG_FILE_NAMES | 2974 AC_SYS_LONG_FILE_NAMES |
2975 | 2975 |
2976 dnl -lm is required for floating point support, among other things | 2976 dnl -lm is required for floating point support, among other things |
2977 AC_CHECK_FUNC(sin, ,AC_CHECK_LIB(m, sin)) | 2977 AC_CHECK_FUNC(sin, ,AC_CHECK_LIB(m, sin)) |
2978 | 2978 |
2979 AC_TRY_LINK([#include <math.h>], | 2979 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <math.h>], |
2980 [return atanh(1.0) + asinh(1.0) + acosh(1.0); ], | 2980 [return atanh(1.0) + asinh(1.0) + acosh(1.0); ])], |
2981 AC_DEFINE(HAVE_INVERSE_HYPERBOLIC)) | 2981 AC_DEFINE(HAVE_INVERSE_HYPERBOLIC)) |
2982 | 2982 |
2983 dnl See if mkstemp is available | 2983 dnl See if mkstemp is available |
2984 AC_CHECK_FUNCS(mkstemp) | 2984 AC_CHECK_FUNCS(mkstemp) |
2985 | 2985 |
2986 dnl Determine type of mail locking from configure args and s&m headers | 2986 dnl Determine type of mail locking from configure args and s&m headers |
2987 AC_CHECKING([type of mail spool file locking]) | 2987 AC_MSG_CHECKING([type of mail spool file locking]) |
2988 AC_MSG_RESULT() | |
2988 AC_CHECK_FUNCS(lockf flock) | 2989 AC_CHECK_FUNCS(lockf flock) |
2989 dnl The mail_use_xxx variables are set according to the s&m headers. | 2990 dnl The mail_use_xxx variables are set according to the s&m headers. |
2990 test -z "$with_mail_locking" -a "$mail_use_flock" = "yes" && with_mail_locking=flock | 2991 test -z "$with_mail_locking" -a "$mail_use_flock" = "yes" && with_mail_locking=flock |
2991 test -z "$with_mail_locking" -a "$mail_use_lockf" = "yes" && with_mail_locking=lockf | 2992 test -z "$with_mail_locking" -a "$mail_use_lockf" = "yes" && with_mail_locking=lockf |
2992 test -z "$with_mail_locking" -a "$mail_use_locking" = "yes" && with_mail_locking=locking | 2993 test -z "$with_mail_locking" -a "$mail_use_locking" = "yes" && with_mail_locking=locking |
3032 fi | 3033 fi |
3033 | 3034 |
3034 dnl Link with "-z ignore" on Solaris if supported | 3035 dnl Link with "-z ignore" on Solaris if supported |
3035 if test "$opsys" = "sol2"; then | 3036 if test "$opsys" = "sol2"; then |
3036 if test "$os_release" -ge 506; then | 3037 if test "$os_release" -ge 506; then |
3037 AC_MSG_CHECKING(for \"-z ignore\" linker flag) | 3038 AC_MSG_CHECKING([for "-z ignore" linker flag]) |
3038 case "`ld -h 2>&1`" in | 3039 case "`ld -h 2>&1`" in |
3039 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) | 3040 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) |
3040 XE_PREPEND(-z ignore, ld_switch_site) ;; | 3041 XE_PREPEND(-z ignore, ld_switch_site) ;; |
3041 *) AC_MSG_RESULT(no) ;; | 3042 *) AC_MSG_RESULT(no) ;; |
3042 esac | 3043 esac |
3045 | 3046 |
3046 dnl ---------------------- | 3047 dnl ---------------------- |
3047 dnl Choose a window system | 3048 dnl Choose a window system |
3048 dnl ---------------------- | 3049 dnl ---------------------- |
3049 | 3050 |
3050 AC_CHECKING([for specified window system]) | 3051 AC_MSG_CHECKING([for specified window system]) |
3052 AC_MSG_RESULT() | |
3051 | 3053 |
3052 dnl Autodetection of Gdk libraries and includes | 3054 dnl Autodetection of Gdk libraries and includes |
3053 dnl ------------------------------------------- | 3055 dnl ------------------------------------------- |
3054 dnl On some systems (FreeBSD springs to mind), they use | 3056 dnl On some systems (FreeBSD springs to mind), they use |
3055 dnl versions on the utility routines, so instead of gtk-config | 3057 dnl versions on the utility routines, so instead of gtk-config |
3305 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//` | 3307 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//` |
3306 fi | 3308 fi |
3307 test ! -z "$bitmapdirs" && AC_DEFINE_UNQUOTED(BITMAPDIR, "$bitmapdirs") | 3309 test ! -z "$bitmapdirs" && AC_DEFINE_UNQUOTED(BITMAPDIR, "$bitmapdirs") |
3308 | 3310 |
3309 dnl Autodetect defines extracted from X config by xmkmf, e.g. NARROWPROTO | 3311 dnl Autodetect defines extracted from X config by xmkmf, e.g. NARROWPROTO |
3310 AC_CHECKING([for X defines extracted by xmkmf]) | 3312 AC_MSG_CHECKING([for X defines extracted by xmkmf]) |
3313 AC_MSG_RESULT() | |
3311 rm -fr conftestdir | 3314 rm -fr conftestdir |
3312 if mkdir conftestdir; then | 3315 if mkdir conftestdir; then |
3313 cd conftestdir | 3316 cd conftestdir |
3314 cat > Imakefile <<'EOF' | 3317 cat > Imakefile <<'EOF' |
3315 xetest: | 3318 xetest: |
3383 AC_CHECK_HEADERS(X11/Xlocale.h X11/Xfuncproto.h) | 3386 AC_CHECK_HEADERS(X11/Xlocale.h X11/Xfuncproto.h) |
3384 | 3387 |
3385 dnl XFree86 has a non-standard prototype for this X11R6 function | 3388 dnl XFree86 has a non-standard prototype for this X11R6 function |
3386 AC_CHECK_FUNCS(XRegisterIMInstantiateCallback) | 3389 AC_CHECK_FUNCS(XRegisterIMInstantiateCallback) |
3387 AC_MSG_CHECKING(for standard XRegisterIMInstantiateCallback prototype) | 3390 AC_MSG_CHECKING(for standard XRegisterIMInstantiateCallback prototype) |
3388 AC_TRY_COMPILE([ | 3391 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ |
3389 #define NeedFunctionPrototypes 1 | 3392 #define NeedFunctionPrototypes 1 |
3390 #include <X11/Xlib.h> | 3393 #include <X11/Xlib.h> |
3391 extern Bool XRegisterIMInstantiateCallback( | 3394 extern Bool XRegisterIMInstantiateCallback( |
3392 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*); | 3395 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*); |
3393 ], [], | 3396 ])], |
3394 [AC_MSG_RESULT(yes)], | 3397 [AC_MSG_RESULT(yes)], |
3395 [AC_MSG_RESULT(no) | 3398 [AC_MSG_RESULT(no) |
3396 AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)]) | 3399 AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)]) |
3397 | 3400 |
3398 dnl autodetect -lXmu | 3401 dnl autodetect -lXmu |
3426 | 3429 |
3427 dnl include xft/AA support? | 3430 dnl include xft/AA support? |
3428 dnl #### need to check for includes here (especially, freetype.h for v.2) | 3431 dnl #### need to check for includes here (especially, freetype.h for v.2) |
3429 | 3432 |
3430 if test "$with_xft_emacs" = "yes"; then | 3433 if test "$with_xft_emacs" = "yes"; then |
3431 AC_CHECKING([for Xrender, fontconfig, and Xft]) | 3434 AC_MSG_CHECKING([for Xrender, fontconfig, and Xft]) |
3432 xft_includes_found=no | 3435 xft_includes_found=no |
3433 AC_CHECK_HEADERS([freetype/config/ftheader.h], | 3436 AC_CHECK_HEADERS([freetype/config/ftheader.h], |
3434 [xft_includes_found=yes], | 3437 [xft_includes_found=yes], |
3435 [ | 3438 [ |
3436 dnl #### How about /sw/include, and /opt/local/include? | 3439 dnl #### How about /sw/include, and /opt/local/include? |
3437 dnl these directories need to be the parent of the freetype directory | 3440 dnl these directories need to be the parent of the freetype directory |
3438 for freetype_include_top in "/usr/X11R6/include/freetype2" \ | 3441 for freetype_include_top in "/usr/X11R6/include/freetype2" \ |
3439 "/usr/include/freetype2" | 3442 "/usr/include/freetype2" |
3440 do | 3443 do |
3441 if test -d $freetype_include_top; then | 3444 if test -d $freetype_include_top; then |
3442 AC_CHECKING([in ${freetype_include_top}/freetype2]) | 3445 AC_MSG_CHECKING([in ${freetype_include_top}/freetype2]) |
3443 dnl disable autoconf's fucking cache; why these fuckheads think it | 3446 dnl disable autoconf's fucking cache; why these fuckheads think it |
3444 dnl is better to be broken than to be slow, I don't know! | 3447 dnl is better to be broken than to be slow, I don't know! |
3445 dnl #### there's gotta be a better-looking way to do this!! | 3448 dnl #### there's gotta be a better-looking way to do this!! |
3446 unset "$as_ac_Header" | 3449 unset "$as_ac_Header" |
3447 save_c_switch_site="$c_switch_site" | 3450 save_c_switch_site="$c_switch_site" |
3468 fi | 3471 fi |
3469 | 3472 |
3470 fi dnl $with_x11 = yes | 3473 fi dnl $with_x11 = yes |
3471 | 3474 |
3472 if test "$with_msw" != "no"; then | 3475 if test "$with_msw" != "no"; then |
3473 AC_CHECKING([for MS-Windows]) | 3476 AC_MSG_CHECKING([for MS-Windows]) |
3477 AC_MSG_RESULT() | |
3474 AC_CHECK_LIB(gdi32,main,with_msw=yes) | 3478 AC_CHECK_LIB(gdi32,main,with_msw=yes) |
3475 if test "$with_msw" = "yes"; then | 3479 if test "$with_msw" = "yes"; then |
3476 AC_DEFINE(HAVE_MS_WINDOWS) | 3480 AC_DEFINE(HAVE_MS_WINDOWS) |
3477 | 3481 |
3478 dnl The net installer only works with MS-Windows currently | 3482 dnl The net installer only works with MS-Windows currently |
3581 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" | 3585 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" |
3582 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" | 3586 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" |
3583 esac | 3587 esac |
3584 | 3588 |
3585 dnl Enable or disable proper handling of WM_COMMAND | 3589 dnl Enable or disable proper handling of WM_COMMAND |
3586 AC_CHECKING([for WM_COMMAND option]) | 3590 AC_MSG_CHECKING([for WM_COMMAND option]) |
3587 dnl if test "$with_wmcommand" = "yes"; then | 3591 dnl if test "$with_wmcommand" = "yes"; then |
3588 if test "$with_wmcommand" != "no"; then | 3592 if test "$with_wmcommand" != "no"; then |
3589 AC_DEFINE(HAVE_WMCOMMAND) | 3593 AC_DEFINE(HAVE_WMCOMMAND) |
3594 AC_MSG_RESULT(yes) | |
3595 else | |
3596 AC_MSG_RESULT(no) | |
3590 fi | 3597 fi |
3591 | 3598 |
3592 dnl Autodetect Xauth | 3599 dnl Autodetect Xauth |
3593 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs | 3600 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs |
3594 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no | 3601 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no |
3617 fi | 3624 fi |
3618 AC_SUBST(LIBSTDCPP) | 3625 AC_SUBST(LIBSTDCPP) |
3619 | 3626 |
3620 dnl This must come before the detection code for anything that is in a module | 3627 dnl This must come before the detection code for anything that is in a module |
3621 if test "$enable_modules" != "no"; then | 3628 if test "$enable_modules" != "no"; then |
3622 AC_CHECKING([for module support]) | 3629 AC_MSG_CHECKING([for module support]) |
3630 AC_MSG_RESULT() | |
3623 | 3631 |
3624 case "$opsys" in | 3632 case "$opsys" in |
3625 mingw* | cygwin* ) have_dl=yes ;; | 3633 mingw* | cygwin* ) have_dl=yes ;; |
3626 darwin ) have_dl=yes | 3634 darwin ) have_dl=yes |
3627 AC_DEFINE(HAVE_DYLD) | 3635 AC_DEFINE(HAVE_DYLD) |
3628 ;; | 3636 ;; |
3629 * ) | 3637 * ) |
3630 dnl Check for the ELFish dlopen() | 3638 dnl Check for the ELFish dlopen() |
3631 AC_CHECK_HEADER(dlfcn.h, [ | 3639 AC_CHECK_HEADER(dlfcn.h, [ |
3632 AC_MSG_CHECKING([for dlopen in -lc]) | 3640 AC_MSG_CHECKING([for dlopen in -lc]) |
3633 AC_TRY_LINK([#include <dlfcn.h>],dnl | 3641 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <dlfcn.h>], |
3634 [dlopen ("", 0);], [ have_dl=yes ; AC_MSG_RESULT($have_dl)], [ | 3642 [dlopen ("", 0);])], [ have_dl=yes ; AC_MSG_RESULT($have_dl)], [ |
3635 AC_MSG_RESULT([no]) | 3643 AC_MSG_RESULT([no]) |
3636 AC_MSG_CHECKING([for dlopen in -ldl]) | 3644 AC_MSG_CHECKING([for dlopen in -ldl]) |
3637 ac_save_LIBS="$LIBS" | 3645 ac_save_LIBS="$LIBS" |
3638 LIBS="$LIBS -ldl" | 3646 LIBS="$LIBS -ldl" |
3639 AC_TRY_LINK([#include <dlfcn.h>],dnl | 3647 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <dlfcn.h>], |
3640 [dlopen ("", 0);], [ have_dl=yes; AC_MSG_RESULT($have_dl)], [ | 3648 [dlopen ("", 0);])], [ have_dl=yes; AC_MSG_RESULT($have_dl)], [ |
3641 AC_MSG_RESULT([no]) | 3649 AC_MSG_RESULT([no]) |
3642 AC_MSG_CHECKING([for dlopen in -lsvld]) | 3650 AC_MSG_CHECKING([for dlopen in -lsvld]) |
3643 LIBS="$ac_save_LIBS -lsvld" | 3651 LIBS="$ac_save_LIBS -lsvld" |
3644 AC_TRY_LINK([#include <dlfcn.h>],dnl | 3652 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <dlfcn.h>], |
3645 [dlopen ("", 0);], [ have_dl=yes; AC_MSG_RESULT($have_dl) ], | 3653 [dlopen ("", 0);])], [ have_dl=yes; AC_MSG_RESULT($have_dl) ], |
3646 [LIBS="$ac_save_LIBS" ; AC_MSG_RESULT([no])])])])]) | 3654 [LIBS="$ac_save_LIBS" ; AC_MSG_RESULT([no])])])])]) |
3647 if test "$have_dl" = "yes"; then | 3655 if test "$have_dl" = "yes"; then |
3648 AC_DEFINE(HAVE_DLOPEN) | 3656 AC_DEFINE(HAVE_DLOPEN) |
3649 else | 3657 else |
3650 dnl Check for HP/UX shl_load | 3658 dnl Check for HP/UX shl_load |
3651 AC_CHECK_HEADER(dl.h, [ | 3659 AC_CHECK_HEADER(dl.h, [ |
3652 AC_MSG_CHECKING([for shl_load in -lc]) | 3660 AC_MSG_CHECKING([for shl_load in -lc]) |
3653 AC_TRY_LINK([#include <dl.h>],dnl | 3661 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <dl.h>], |
3654 [shl_load ("", 0, 0);], [have_dl=yes; AC_MSG_RESULT($have_dl)], [ | 3662 [shl_load ("", 0, 0);])], [have_dl=yes; AC_MSG_RESULT($have_dl)], [ |
3655 AC_MSG_RESULT([no]) | 3663 AC_MSG_RESULT([no]) |
3656 AC_MSG_CHECKING([for shl_load in -ldl]) | 3664 AC_MSG_CHECKING([for shl_load in -ldl]) |
3657 ac_save_LIBS="$LIBS" | 3665 ac_save_LIBS="$LIBS" |
3658 LIBS="$LIBS -ldld" | 3666 LIBS="$LIBS -ldld" |
3659 AC_TRY_LINK([#include <dl.h>],dnl | 3667 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <dl.h>], |
3660 [shl_load ("", 0, 0);], [have_dl=yes], | 3668 [shl_load ("", 0, 0);])], [have_dl=yes], |
3661 [LIBS="$ac_save_LIBS"; AC_MSG_RESULT([no])])])]) | 3669 [LIBS="$ac_save_LIBS"; AC_MSG_RESULT([no])])])]) |
3662 if test "$have_dl" = "yes"; then | 3670 if test "$have_dl" = "yes"; then |
3663 AC_DEFINE(HAVE_SHL_LOAD) | 3671 AC_DEFINE(HAVE_SHL_LOAD) |
3664 else | 3672 else |
3665 dnl Check for libtool's libltdl | 3673 dnl Check for libtool's libltdl |
3666 AC_CHECK_HEADER(ltdl.h, [ | 3674 AC_CHECK_HEADER(ltdl.h, [ |
3667 AC_MSG_CHECKING([for lt_dlinit in -lltdl]) | 3675 AC_MSG_CHECKING([for lt_dlinit in -lltdl]) |
3668 ac_save_LIBS="$LIBS" | 3676 ac_save_LIBS="$LIBS" |
3669 LIBS="$LIBS -lltdl" | 3677 LIBS="$LIBS -lltdl" |
3670 AC_TRY_LINK([#include <ltdl.h>],dnl | 3678 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <ltdl.h>], |
3671 [lt_dlinit ();], [have_dl=yes], [LIBS="$ac_save_LIBS"])]) | 3679 [lt_dlinit ();])], [have_dl=yes], [LIBS="$ac_save_LIBS"])]) |
3672 AC_MSG_RESULT($have_dl) | 3680 AC_MSG_RESULT($have_dl) |
3673 if test "$have_dl" = "yes"; then | 3681 if test "$have_dl" = "yes"; then |
3674 AC_DEFINE(HAVE_LTDL) | 3682 AC_DEFINE(HAVE_LTDL) |
3675 fi | 3683 fi |
3676 dnl end !HP/UX | 3684 dnl end !HP/UX |
3764 dnl Autodetect CDE | 3772 dnl Autodetect CDE |
3765 test -z "$with_cde" && { AC_CHECK_HEADER(Dt/Dt.h, , with_cde=no) } | 3773 test -z "$with_cde" && { AC_CHECK_HEADER(Dt/Dt.h, , with_cde=no) } |
3766 test -z "$with_cde" && { AC_CHECK_LIB(DtSvc, DtDndDragStart, [:], with_cde=no) } | 3774 test -z "$with_cde" && { AC_CHECK_LIB(DtSvc, DtDndDragStart, [:], with_cde=no) } |
3767 if test "$with_dragndrop" = "no" ; then | 3775 if test "$with_dragndrop" = "no" ; then |
3768 if test "$with_cde" = "yes" ; then | 3776 if test "$with_cde" = "yes" ; then |
3769 AC_MSG_WARN([--with-cde forced to \`no'; no generic Drag'n'Drop support]) | 3777 AC_MSG_WARN([--with-cde forced to `no'; no generic Drag'n'Drop support]) |
3770 fi | 3778 fi |
3771 with_cde=no | 3779 with_cde=no |
3772 fi | 3780 fi |
3773 test -z "$with_cde" && with_cde=yes | 3781 test -z "$with_cde" && with_cde=yes |
3774 if test "$with_cde" = "yes" ; then | 3782 if test "$with_cde" = "yes" ; then |
3785 dnl Because OffiX support currently loses when more than one display | 3793 dnl Because OffiX support currently loses when more than one display |
3786 dnl is in use, we now disable it by default -slb 07/10/1998. | 3794 dnl is in use, we now disable it by default -slb 07/10/1998. |
3787 test "$window_system" != "x11" && with_offix=no | 3795 test "$window_system" != "x11" && with_offix=no |
3788 if test "$with_xmu" != yes -a "$with_x11" = yes; then | 3796 if test "$with_xmu" != yes -a "$with_x11" = yes; then |
3789 if test "$with_offix" = "yes" ; then | 3797 if test "$with_offix" = "yes" ; then |
3790 AC_MSG_WARN([--with-offix forced to \`no'; no real Xmu support]) | 3798 AC_MSG_WARN([--with-offix forced to `no'; no real Xmu support]) |
3791 fi | 3799 fi |
3792 with_offix=no | 3800 with_offix=no |
3793 fi | 3801 fi |
3794 if test "$with_dragndrop" = no; then | 3802 if test "$with_dragndrop" = no; then |
3795 if test "$with_offix" = "yes" ; then | 3803 if test "$with_offix" = "yes" ; then |
3796 AC_MSG_WARN([--with-offix forced to \`no'; no generic Drag'n'Drop support]) | 3804 AC_MSG_WARN([--with-offix forced to `no'; no generic Drag'n'Drop support]) |
3797 fi | 3805 fi |
3798 with_offix=no | 3806 with_offix=no |
3799 fi | 3807 fi |
3800 if test "$with_cde" = yes; then | 3808 if test "$with_cde" = yes; then |
3801 if test "$with_offix" = "yes" ; then | 3809 if test "$with_offix" = "yes" ; then |
3802 AC_MSG_WARN([--with-offix forced to \`no'; CDE already found]) | 3810 AC_MSG_WARN([--with-offix forced to `no'; CDE already found]) |
3803 fi | 3811 fi |
3804 with_offix=no | 3812 with_offix=no |
3805 fi | 3813 fi |
3806 test -z "$with_offix" && with_offix=no | 3814 test -z "$with_offix" && with_offix=no |
3807 if test "$with_offix" = "yes"; then | 3815 if test "$with_offix" = "yes"; then |
3827 AC_MSG_RESULT(no) | 3835 AC_MSG_RESULT(no) |
3828 fi | 3836 fi |
3829 fi | 3837 fi |
3830 | 3838 |
3831 dnl Autodetect LDAP | 3839 dnl Autodetect LDAP |
3832 AC_CHECKING([for LDAP]) | 3840 AC_MSG_CHECKING([for LDAP]) |
3841 AC_MSG_RESULT() | |
3833 ldap_libs= | 3842 ldap_libs= |
3834 test -z "$with_ldap" && { AC_CHECK_HEADER(ldap.h, ,with_ldap=no) } | 3843 test -z "$with_ldap" && { AC_CHECK_HEADER(ldap.h, ,with_ldap=no) } |
3835 test -z "$with_ldap" && { AC_CHECK_HEADER(lber.h, ,with_ldap=no) } | 3844 test -z "$with_ldap" && { AC_CHECK_HEADER(lber.h, ,with_ldap=no) } |
3836 if test "$with_ldap" != "no"; then | 3845 if test "$with_ldap" != "no"; then |
3837 AC_CHECK_LIB(ldap, ldap_search, with_ldap=yes) | 3846 AC_CHECK_LIB(ldap, ldap_search, with_ldap=yes) |
3877 dnl If PostgreSQL is installed into a different prefix, | 3886 dnl If PostgreSQL is installed into a different prefix, |
3878 dnl (such as the default /usr/local/pgsql when building from source), | 3887 dnl (such as the default /usr/local/pgsql when building from source), |
3879 dnl that prefix must be specified using the --with-site-prefixes flag. | 3888 dnl that prefix must be specified using the --with-site-prefixes flag. |
3880 postgresql_libs= | 3889 postgresql_libs= |
3881 if test "$with_postgresql" != "no"; then | 3890 if test "$with_postgresql" != "no"; then |
3882 AC_CHECKING([for PostgreSQL]) | 3891 AC_MSG_CHECKING([for PostgreSQL]) |
3892 AC_MSG_RESULT() | |
3883 | 3893 |
3884 dnl Look for these standard header file locations, known to be used on Linux | 3894 dnl Look for these standard header file locations, known to be used on Linux |
3885 for header_dir in "" "pgsql/" "postgresql/"; do | 3895 for header_dir in "" "pgsql/" "postgresql/"; do |
3886 AC_CHECK_HEADER(${header_dir}libpq-fe.h, | 3896 AC_CHECK_HEADER(${header_dir}libpq-fe.h, |
3887 libpq_fe_h_file=${header_dir}libpq-fe.h; break) | 3897 libpq_fe_h_file=${header_dir}libpq-fe.h; break) |
3926 dnl ---------------------- | 3936 dnl ---------------------- |
3927 dnl Graphics libraries | 3937 dnl Graphics libraries |
3928 dnl ---------------------- | 3938 dnl ---------------------- |
3929 | 3939 |
3930 if test "$window_system" != "none"; then | 3940 if test "$window_system" != "none"; then |
3931 AC_CHECKING([for graphics libraries]) | 3941 AC_MSG_CHECKING([for graphics libraries]) |
3942 AC_MSG_RESULT() | |
3932 | 3943 |
3933 dnl add special code to handle xpm-nox on Cygwin (csw) | 3944 dnl add special code to handle xpm-nox on Cygwin (csw) |
3934 dnl -- should only happen if CYGWIN && WITH_XPM && WITH_MSW && !WITH_X | 3945 dnl -- should only happen if CYGWIN && WITH_XPM && WITH_MSW && !WITH_X |
3935 libpath_xpm= | 3946 libpath_xpm= |
3936 incpath_xpm= | 3947 incpath_xpm= |
3999 AC_DEFINE(HAVE_XPM) | 4010 AC_DEFINE(HAVE_XPM) |
4000 XE_PREPEND("$libpath_xpm", LDFLAGS) | 4011 XE_PREPEND("$libpath_xpm", LDFLAGS) |
4001 XE_PREPEND(-lXpm, libs_x) | 4012 XE_PREPEND(-lXpm, libs_x) |
4002 XE_PREPEND("$incpath_xpm", CFLAGS) | 4013 XE_PREPEND("$incpath_xpm", CFLAGS) |
4003 XE_PREPEND("$incpath_xpm", XE_CFLAGS) | 4014 XE_PREPEND("$incpath_xpm", XE_CFLAGS) |
4004 AC_MSG_CHECKING(for \"FOR_MSW\" xpm) | 4015 AC_MSG_CHECKING([for "FOR_MSW" xpm]) |
4005 xe_check_libs=-lXpm | 4016 xe_check_libs=-lXpm |
4006 AC_TRY_LINK(, [XpmCreatePixmapFromData()], | 4017 AC_LINK_IFELSE([AC_LANG_SOURCE([XpmCreatePixmapFromData()])], |
4007 [xpm_for_msw=no], | 4018 [xpm_for_msw=no], |
4008 [xpm_for_msw=yes]) | 4019 [xpm_for_msw=yes]) |
4009 xe_check_libs= | 4020 xe_check_libs= |
4010 AC_MSG_RESULT($xpm_for_msw) | 4021 AC_MSG_RESULT($xpm_for_msw) |
4011 if test "$xpm_for_msw" = "yes"; then | 4022 if test "$xpm_for_msw" = "yes"; then |
4108 AC_DEFINE(HAVE_XFACE) | 4119 AC_DEFINE(HAVE_XFACE) |
4109 XE_PREPEND(-lcompface, libs_gtk) | 4120 XE_PREPEND(-lcompface, libs_gtk) |
4110 fi | 4121 fi |
4111 fi | 4122 fi |
4112 | 4123 |
4113 | |
4114 dnl ---------------------- | 4124 dnl ---------------------- |
4115 dnl X-Specific Graphics libraries | 4125 dnl X-Specific Graphics libraries |
4116 dnl ---------------------- | 4126 dnl ---------------------- |
4117 | 4127 |
4118 if test "$with_x11" = "yes"; then | 4128 if test "$with_x11" = "yes"; then |
4119 AC_CHECKING([for X11 graphics libraries]) | 4129 AC_MSG_CHECKING([for X11 graphics libraries]) |
4130 AC_MSG_RESULT() | |
4120 fi | 4131 fi |
4121 | 4132 |
4122 case "$enable_widgets" in | 4133 case "$enable_widgets" in |
4123 "" | "yes" | "athena") detect_athena=yes ;; | 4134 "" | "yes" | "athena") detect_athena=yes ;; |
4124 *) detect_athena=no ;; | 4135 *) detect_athena=no ;; |
4127 case "$enable_dialogs" in | 4138 case "$enable_dialogs" in |
4128 "" | "yes" | "athena") detect_athena=yes ;; | 4139 "" | "yes" | "athena") detect_athena=yes ;; |
4129 esac | 4140 esac |
4130 | 4141 |
4131 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then | 4142 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then |
4132 AC_CHECKING([for the Athena widgets]) | 4143 AC_MSG_CHECKING([for the Athena widgets]) |
4144 AC_MSG_RESULT() | |
4133 | 4145 |
4134 dnl What in heck did the user actually want? | 4146 dnl What in heck did the user actually want? |
4135 case "$with_athena" in | 4147 case "$with_athena" in |
4136 dnl This is the default, old fashioned flat Athena. | 4148 dnl This is the default, old fashioned flat Athena. |
4137 "xaw" | "") athena_variant=Xaw athena_3d=no ;; | 4149 "xaw" | "") athena_variant=Xaw athena_3d=no ;; |
4459 dnl initialize _libs variables for possible modules at top level | 4471 dnl initialize _libs variables for possible modules at top level |
4460 canna_libs= | 4472 canna_libs= |
4461 wnn_libs= | 4473 wnn_libs= |
4462 | 4474 |
4463 if test "$enable_mule" = "yes" ; then | 4475 if test "$enable_mule" = "yes" ; then |
4464 AC_CHECKING([for Mule-related features]) | 4476 AC_MSG_CHECKING([for Mule-related features]) |
4465 AC_DEFINE(MULE) | 4477 AC_DEFINE(MULE) |
4466 | 4478 |
4467 dnl Use -lintl to get internationalized strerror for Mule | 4479 dnl Use -lintl to get internationalized strerror for Mule |
4468 AC_CHECK_HEADERS(libintl.h) | 4480 AC_CHECK_HEADERS(libintl.h) |
4469 AC_CHECK_LIB(intl, strerror) | 4481 AC_CHECK_LIB(intl, strerror) |
4470 | 4482 |
4471 AC_CHECKING([for Mule input methods]) | 4483 AC_MSG_CHECKING([for Mule input methods]) |
4472 dnl Do we have the XmIm* routines? And if so, do we want to use them? | 4484 dnl Do we have the XmIm* routines? And if so, do we want to use them? |
4473 case "$with_xim" in "" | "yes" ) | 4485 case "$with_xim" in "" | "yes" ) |
4474 AC_CHECKING([for XIM]) | 4486 AC_MSG_CHECKING([for XIM]) |
4475 AC_CHECK_LIB(X11, XOpenIM, with_xim=xlib, with_xim=no) | 4487 AC_CHECK_LIB(X11, XOpenIM, with_xim=xlib, with_xim=no) |
4476 dnl XIM + Lesstif is not (yet?) usable | 4488 dnl XIM + Lesstif is not (yet?) usable |
4477 dnl Only use Motif if linking Motif anyway, or don't have xlib XIM | 4489 dnl Only use Motif if linking Motif anyway, or don't have xlib XIM |
4478 if test "$need_motif $have_lesstif" = "yes no"; then | 4490 if test "$need_motif $have_lesstif" = "yes no"; then |
4479 AC_CHECK_LIB(Xm, XmImMbLookupString, with_xim=motif) | 4491 AC_CHECK_LIB(Xm, XmImMbLookupString, with_xim=motif) |
4499 fi | 4511 fi |
4500 fi | 4512 fi |
4501 | 4513 |
4502 dnl "with_xfs" = "yes" | 4514 dnl "with_xfs" = "yes" |
4503 if test "$with_xfs" = "yes" ; then | 4515 if test "$with_xfs" = "yes" ; then |
4504 AC_CHECKING([for XFontSet]) | 4516 AC_MSG_CHECKING([for XFontSet]) |
4505 AC_CHECK_LIB(X11, XmbDrawString, [:], with_xfs=no) | 4517 AC_CHECK_LIB(X11, XmbDrawString, [:], with_xfs=no) |
4506 if test "$with_xfs" = "yes" && test "$enable_menubars" = "lucid"; then | 4518 if test "$with_xfs" = "yes" && test "$enable_menubars" = "lucid"; then |
4507 AC_DEFINE(USE_XFONTSET) | 4519 AC_DEFINE(USE_XFONTSET) |
4508 if test "$with_xim" = "no" ; then | 4520 if test "$with_xim" = "no" ; then |
4509 XE_ADD_OBJS(input-method-xlib.o) | 4521 XE_ADD_OBJS(input-method-xlib.o) |
4709 AC_CHECK_LIB(kvm, kvm_read) | 4721 AC_CHECK_LIB(kvm, kvm_read) |
4710 fi | 4722 fi |
4711 | 4723 |
4712 dnl If netdb.h does not declare h_errno, we must declare it by hand. | 4724 dnl If netdb.h does not declare h_errno, we must declare it by hand. |
4713 AC_MSG_CHECKING(whether netdb declares h_errno) | 4725 AC_MSG_CHECKING(whether netdb declares h_errno) |
4714 AC_TRY_LINK([#include <netdb.h>], | 4726 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>], |
4715 [return h_errno;], | 4727 [return h_errno;])], |
4716 [AC_MSG_RESULT(yes) | 4728 [AC_MSG_RESULT(yes) |
4717 AC_DEFINE(HAVE_H_ERRNO)], | 4729 AC_DEFINE(HAVE_H_ERRNO)], |
4718 [AC_MSG_RESULT(no)]) | 4730 [AC_MSG_RESULT(no)]) |
4719 | 4731 |
4720 AC_MSG_CHECKING(for sigsetjmp) | 4732 AC_MSG_CHECKING(for sigsetjmp) |
4721 AC_TRY_COMPILE([#include <setjmp.h>], | 4733 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <setjmp.h>], |
4722 [sigjmp_buf bar; sigsetjmp (bar, 0);], | 4734 [sigjmp_buf bar; sigsetjmp (bar, 0);])], |
4723 [AC_MSG_RESULT(yes) | 4735 [AC_MSG_RESULT(yes) |
4724 AC_DEFINE(HAVE_SIGSETJMP)], | 4736 AC_DEFINE(HAVE_SIGSETJMP)], |
4725 [AC_MSG_RESULT(no)]) | 4737 [AC_MSG_RESULT(no)]) |
4726 | 4738 |
4727 AC_MSG_CHECKING(whether localtime caches TZ) | 4739 AC_MSG_CHECKING(whether localtime caches TZ) |
4771 AC_DEFINE(LOCALTIME_CACHE) | 4783 AC_DEFINE(LOCALTIME_CACHE) |
4772 fi | 4784 fi |
4773 | 4785 |
4774 if test "$HAVE_TIMEVAL" = "yes"; then | 4786 if test "$HAVE_TIMEVAL" = "yes"; then |
4775 AC_MSG_CHECKING(whether gettimeofday accepts one or two arguments) | 4787 AC_MSG_CHECKING(whether gettimeofday accepts one or two arguments) |
4776 AC_TRY_LINK([ | 4788 AC_LINK_IFELSE([AC_LANG_PROGRAM([ |
4777 #ifdef TIME_WITH_SYS_TIME | 4789 #ifdef TIME_WITH_SYS_TIME |
4778 #include <sys/time.h> | 4790 #include <sys/time.h> |
4779 #include <time.h> | 4791 #include <time.h> |
4780 #else | 4792 #else |
4781 #ifdef HAVE_SYS_TIME_H | 4793 #ifdef HAVE_SYS_TIME_H |
4786 #endif | 4798 #endif |
4787 ], | 4799 ], |
4788 [ | 4800 [ |
4789 struct timeval time; | 4801 struct timeval time; |
4790 gettimeofday (&time, 0); | 4802 gettimeofday (&time, 0); |
4791 ], | 4803 ])], |
4792 [AC_MSG_RESULT(two)], | 4804 [AC_MSG_RESULT(two)], |
4793 [AC_MSG_RESULT(one) | 4805 [AC_MSG_RESULT(one) |
4794 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) | 4806 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) |
4795 fi | 4807 fi |
4796 | 4808 |
4798 AC_C_INLINE | 4810 AC_C_INLINE |
4799 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && XE_ADD_OBJS(inline.o) | 4811 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && XE_ADD_OBJS(inline.o) |
4800 | 4812 |
4801 dnl check for the typeof extension | 4813 dnl check for the typeof extension |
4802 AC_MSG_CHECKING(for typeof) | 4814 AC_MSG_CHECKING(for typeof) |
4803 AC_TRY_COMPILE(, [int i; __typeof__(i) j;], typeofname="__typeof__", | 4815 AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i; __typeof__(i) j;])], |
4804 [AC_TRY_COMPILE(, [int i; typeof(i) j;], typeofname="typeof", | 4816 typeofname="__typeof__", |
4817 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i; typeof(i) j;])], | |
4818 typeofname="typeof", | |
4805 typeofname=no)]) | 4819 typeofname=no)]) |
4806 AC_MSG_RESULT($typeofname) | 4820 AC_MSG_RESULT($typeofname) |
4807 if test "$typeofname" != "no"; then | 4821 if test "$typeofname" != "no"; then |
4808 AC_DEFINE_UNQUOTED(TYPEOF, $typeofname) | 4822 AC_DEFINE_UNQUOTED(TYPEOF, $typeofname) |
4809 fi | 4823 fi |
4948 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && with_rel_alloc=no | 4962 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && with_rel_alloc=no |
4949 if test "$with_rel_alloc $have_mmap" = "default yes"; then | 4963 if test "$with_rel_alloc $have_mmap" = "default yes"; then |
4950 if test "$doug_lea_malloc" = "yes"; then | 4964 if test "$doug_lea_malloc" = "yes"; then |
4951 dnl Check if malloc() calls mmap(), making rel_alloc pointless. | 4965 dnl Check if malloc() calls mmap(), making rel_alloc pointless. |
4952 AC_MSG_CHECKING(for M_MMAP_THRESHOLD) | 4966 AC_MSG_CHECKING(for M_MMAP_THRESHOLD) |
4953 AC_TRY_COMPILE([#include <malloc.h>],[ | 4967 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <malloc.h>],[ |
4954 #ifndef M_MMAP_THRESHOLD | 4968 #ifndef M_MMAP_THRESHOLD |
4955 #error No M_MMAP_THRESHOLD :-( | 4969 #error No M_MMAP_THRESHOLD :-( |
4956 !@+$%^&*_)(_ - unlikely to compile... | 4970 !@+$%^&*_)(_ - unlikely to compile... |
4957 #endif | 4971 #endif |
4958 ], [with_rel_alloc=no; AC_MSG_RESULT(yes);], [with_rel_alloc=yes; AC_MSG_RESULT(no);]) | 4972 ])], [with_rel_alloc=no; AC_MSG_RESULT(yes);], |
4973 [with_rel_alloc=yes; AC_MSG_RESULT(no);]) | |
4959 else | 4974 else |
4960 with_rel_alloc=yes | 4975 with_rel_alloc=yes |
4961 fi | 4976 fi |
4962 fi | 4977 fi |
4963 test "$with_rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) | 4978 test "$with_rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) |
4974 dnl Check for Internet sockets. | 4989 dnl Check for Internet sockets. |
4975 AC_CHECK_FUNC(socket, | 4990 AC_CHECK_FUNC(socket, |
4976 [AC_CHECK_HEADER(netinet/in.h, | 4991 [AC_CHECK_HEADER(netinet/in.h, |
4977 [AC_CHECK_HEADER(arpa/inet.h, [ | 4992 [AC_CHECK_HEADER(arpa/inet.h, [ |
4978 AC_DEFINE(HAVE_SOCKETS) | 4993 AC_DEFINE(HAVE_SOCKETS) |
4979 AC_MSG_CHECKING("for sun_len member in struct sockaddr_un") | 4994 AC_MSG_CHECKING([for sun_len member in struct sockaddr_un]) |
4980 AC_TRY_LINK([ | 4995 AC_LINK_IFELSE([AC_LANG_PROGRAM([ |
4981 #include <sys/types.h> | 4996 #include <sys/types.h> |
4982 #include <sys/socket.h> | 4997 #include <sys/socket.h> |
4983 #include <sys/un.h> | 4998 #include <sys/un.h> |
4984 ], | 4999 ], |
4985 [static struct sockaddr_un x; x.sun_len = 1;], | 5000 [static struct sockaddr_un x; x.sun_len = 1;])], |
4986 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)], | 5001 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)], |
4987 [AC_MSG_RESULT(no)]) | 5002 [AC_MSG_RESULT(no)]) |
4988 AC_MSG_CHECKING("for ip_mreq struct in netinet/in.h") | 5003 AC_MSG_CHECKING([for ip_mreq struct in netinet/in.h]) |
4989 AC_TRY_LINK([ | 5004 AC_LINK_IFELSE([AC_LANG_PROGRAM([ |
4990 #include <sys/types.h> | 5005 #include <sys/types.h> |
4991 #include <netinet/in.h> | 5006 #include <netinet/in.h> |
4992 ], | 5007 ], |
4993 [static struct ip_mreq x;], | 5008 [static struct ip_mreq x;])], |
4994 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MULTICAST)], | 5009 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MULTICAST)], |
4995 [AC_MSG_RESULT(no)])])])]) | 5010 [AC_MSG_RESULT(no)])])])]) |
4996 | 5011 |
4997 dnl Check for SYS V IPC. (Inferior to sockets.) | 5012 dnl Check for SYS V IPC. (Inferior to sockets.) |
4998 AC_CHECK_FUNC(msgget, | 5013 AC_CHECK_FUNC(msgget, |
5006 | 5021 |
5007 dnl Check for nlist.h | 5022 dnl Check for nlist.h |
5008 AC_CHECK_HEADER(nlist.h, AC_DEFINE(NLIST_STRUCT), ) | 5023 AC_CHECK_HEADER(nlist.h, AC_DEFINE(NLIST_STRUCT), ) |
5009 | 5024 |
5010 dnl Check for sound of various sorts. | 5025 dnl Check for sound of various sorts. |
5011 AC_CHECKING([for sound support]) | 5026 AC_MSG_CHECKING([for sound support]) |
5027 AC_MSG_RESULT() | |
5012 | 5028 |
5013 dnl Autodetect native sound | 5029 dnl Autodetect native sound |
5014 test -n "$with_native_sound_lib" && enable_sound_native=yes | 5030 test -n "$with_native_sound_lib" && enable_sound_native=yes |
5015 | 5031 |
5016 if test "$enable_sound_native" != "no"; then | 5032 if test "$enable_sound_native" != "no"; then |
5195 dnl --------------------- | 5211 dnl --------------------- |
5196 | 5212 |
5197 test -z "$with_tty" && with_tty=yes | 5213 test -z "$with_tty" && with_tty=yes |
5198 | 5214 |
5199 if test "$with_tty" = "yes" ; then | 5215 if test "$with_tty" = "yes" ; then |
5200 AC_CHECKING([for TTY-related features]) | 5216 AC_MSG_CHECKING([for TTY-related features]) |
5217 AC_MSG_RESULT() | |
5201 AC_DEFINE(HAVE_TTY) | 5218 AC_DEFINE(HAVE_TTY) |
5202 | 5219 |
5203 dnl Autodetect ncurses. | 5220 dnl Autodetect ncurses. |
5204 if test -z "$with_ncurses"; then | 5221 if test -z "$with_ncurses"; then |
5205 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no) | 5222 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no) |
5280 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. | 5297 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. |
5281 dnl On FreeBSD, both DB and DBM are part of libc. | 5298 dnl On FreeBSD, both DB and DBM are part of libc. |
5282 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. | 5299 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. |
5283 | 5300 |
5284 test "$enable_database_gdbm $enable_database_dbm $enable_database_berkdb" \ | 5301 test "$enable_database_gdbm $enable_database_dbm $enable_database_berkdb" \ |
5285 != "no no no" && AC_CHECKING([for database support]) | 5302 != "no no no" && AC_MSG_CHECKING([for database support]) && \ |
5303 AC_MSG_RESULT() | |
5286 | 5304 |
5287 dnl Check for ndbm.h, required for either kind of DBM support. | 5305 dnl Check for ndbm.h, required for either kind of DBM support. |
5288 if test "$enable_database_gdbm $enable_database_dbm" != "no no"; then | 5306 if test "$enable_database_gdbm $enable_database_dbm" != "no no"; then |
5289 AC_CHECK_HEADER(ndbm.h, [:], [ | 5307 AC_CHECK_HEADER(ndbm.h, [:], [ |
5290 test "$enable_database_gdbm" = "yes" -o \ | 5308 test "$enable_database_gdbm" = "yes" -o \ |
5320 | 5338 |
5321 dnl Check for Berkeley DB. | 5339 dnl Check for Berkeley DB. |
5322 if test "$enable_database_berkdb" != "no"; then | 5340 if test "$enable_database_berkdb" != "no"; then |
5323 AC_MSG_CHECKING(for Berkeley db.h) | 5341 AC_MSG_CHECKING(for Berkeley db.h) |
5324 for header in "db/db.h" "db.h"; do | 5342 for header in "db/db.h" "db.h"; do |
5325 AC_TRY_COMPILE([ | 5343 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ |
5326 #include <stdlib.h> | 5344 #include <stdlib.h> |
5327 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) | 5345 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) |
5328 #ifdef HAVE_INTTYPES_H | 5346 #ifdef HAVE_INTTYPES_H |
5329 #define __BIT_TYPES_DEFINED__ | 5347 #define __BIT_TYPES_DEFINED__ |
5330 #include <inttypes.h> | 5348 #include <inttypes.h> |
5335 typedef uint64_t u_int64_t; | 5353 typedef uint64_t u_int64_t; |
5336 #endif | 5354 #endif |
5337 #endif | 5355 #endif |
5338 #endif | 5356 #endif |
5339 #include <$header> | 5357 #include <$header> |
5340 ],[], db_h_file="$header"; break) | 5358 ])], db_h_file="$header"; break) |
5341 done | 5359 done |
5342 if test -z "$db_h_file" | 5360 if test -z "$db_h_file" |
5343 then AC_MSG_RESULT(no); enable_database_berkdb=no | 5361 then AC_MSG_RESULT(no); enable_database_berkdb=no |
5344 else AC_MSG_RESULT($db_h_file) | 5362 else AC_MSG_RESULT($db_h_file) |
5345 fi | 5363 fi |