Mercurial > hg > xemacs-beta
comparison configure.in @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 8de8e3f6228a |
children | 576fb035e263 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
12 ### Don't edit this script! | 12 ### Don't edit this script! |
13 ### This script was automatically generated by the `autoconf' program | 13 ### This script was automatically generated by the `autoconf' program |
14 ### from the file `./configure.in'. | 14 ### from the file `./configure.in'. |
15 ### To rebuild it, execute the command | 15 ### To rebuild it, execute the command |
16 ### autoconf | 16 ### autoconf |
17 ### in the this directory. You must have autoconf version 2.12 or later. | 17 ### in the this directory. You must have autoconf version 2.13 or later. |
18 | 18 |
19 ### This file is part of XEmacs. | 19 ### This file is part of XEmacs. |
20 | 20 |
21 ### XEmacs is free software; you can redistribute it and/or modify it | 21 ### XEmacs is free software; you can redistribute it and/or modify it |
22 ### under the terms of the GNU General Public License as published by | 22 ### under the terms of the GNU General Public License as published by |
48 dnl configuration code and autoconf macros. | 48 dnl configuration code and autoconf macros. |
49 | 49 |
50 dnl We use the m4 quoting characters [ ] (as established by the | 50 dnl We use the m4 quoting characters [ ] (as established by the |
51 dnl autoconf system), so quote them like this: [[foo]] | 51 dnl autoconf system), so quote them like this: [[foo]] |
52 | 52 |
53 AC_PREREQ(2.12)dnl | 53 AC_PREREQ(2.13)dnl |
54 dnl Redefine some standard autoconf macros | 54 dnl Redefine some standard autoconf macros |
55 dnl here is how XEmacs is different: | 55 dnl here is how XEmacs is different: |
56 dnl - no cache file | 56 dnl - no cache file |
57 dnl - non-standard options | 57 dnl - non-standard options |
58 dnl - suport for extra-verbosity | 58 dnl - suport for extra-verbosity |
305 mandir='${prefix}/man' | 305 mandir='${prefix}/man' |
306 | 306 |
307 dnl Initialize some other variables. | 307 dnl Initialize some other variables. |
308 subdirs= | 308 subdirs= |
309 MFLAGS= MAKEFLAGS= | 309 MFLAGS= MAKEFLAGS= |
310 SHELL=${CONFIG_SHELL-/bin/sh} | |
310 dnl Maximum number of lines to put in a shell here document. | 311 dnl Maximum number of lines to put in a shell here document. |
311 ac_max_here_lines=12 | 312 ac_max_here_lines=12 |
312 ])dnl AC_INIT_PARSE_ARGS | 313 ])dnl AC_INIT_PARSE_ARGS |
313 | 314 |
314 AC_INIT(src/lisp.h)dnl | 315 AC_INIT(src/lisp.h)dnl |
355 sitelispdir='${datadir}/${inststaticdir}/site-lisp' | 356 sitelispdir='${datadir}/${inststaticdir}/site-lisp' |
356 sitemoduledir='${datadir}/${inststaticdir}/site-modules' | 357 sitemoduledir='${datadir}/${inststaticdir}/site-modules' |
357 pkgdir='${datadir}/${instvardir}/lisp' | 358 pkgdir='${datadir}/${instvardir}/lisp' |
358 package_path='' | 359 package_path='' |
359 etcdir='${datadir}/${instvardir}/etc' | 360 etcdir='${datadir}/${instvardir}/etc' |
360 lockdir='${statedir}/${inststaticdir}/lock' | |
361 archlibdir='${datadir}/${instvardir}/${configuration}' | 361 archlibdir='${datadir}/${instvardir}/${configuration}' |
362 docdir='${archlibdir}' | 362 docdir='${archlibdir}' |
363 with_prefix='yes' | 363 with_prefix='yes' |
364 with_site_lisp='no' | 364 with_site_lisp='no' |
365 with_site_modules='yes' | 365 with_site_modules='yes' |
366 with_menubars='' | 366 with_menubars='' |
367 with_scrollbars='' | 367 with_scrollbars='' |
368 with_widgets='' | 368 with_widgets='' |
369 with_dialogs='' | 369 with_dialogs='' |
370 with_file_coding='' | 370 with_file_coding='' |
371 dnl const_is_losing is removed - we rely on AC_C_CONST instead. | |
372 dnl We accept (and ignore) the --const-is-losing option for compatibility. | |
373 dnl const_is_losing='yes' | |
374 cpp='' cppflags='' libs='' ldflags='' | 371 cpp='' cppflags='' libs='' ldflags='' |
375 dynamic='' | 372 dynamic='' |
376 with_x11='' | 373 with_x11='' |
377 with_msw='' | 374 with_msw='' |
378 rel_alloc='default' | 375 rel_alloc='default' |
506 with_wnn6 | \ | 503 with_wnn6 | \ |
507 with_workshop | \ | 504 with_workshop | \ |
508 with_sparcworks | \ | 505 with_sparcworks | \ |
509 with_tooltalk | \ | 506 with_tooltalk | \ |
510 with_ldap | \ | 507 with_ldap | \ |
508 with_postgresql | \ | |
511 with_pop | \ | 509 with_pop | \ |
512 with_kerberos | \ | 510 with_kerberos | \ |
513 with_hesiod | \ | 511 with_hesiod | \ |
514 with_dnet | \ | 512 with_dnet | \ |
515 with_infodock | \ | 513 with_infodock | \ |
516 external_widget | \ | 514 external_widget | \ |
517 verbose | \ | 515 verbose | \ |
518 extra_verbose | \ | 516 extra_verbose | \ |
519 const_is_losing | \ | |
520 usage_tracking | \ | 517 usage_tracking | \ |
521 use_union_type | \ | 518 use_union_type | \ |
522 pdump | \ | 519 pdump | \ |
523 debug | \ | 520 debug | \ |
524 use_assertions | \ | 521 use_assertions | \ |
525 memory_usage_stats | \ | 522 memory_usage_stats | \ |
526 with_clash_detection | \ | 523 with_clash_detection | \ |
527 with_modules | \ | 524 with_modules | \ |
528 no_doc_file ) | 525 quick_build ) |
529 dnl Make sure the value given was either "yes" or "no". | 526 dnl Make sure the value given was either "yes" or "no". |
530 case "$val" in | 527 case "$val" in |
531 y | ye | yes ) val=yes ;; | 528 y | ye | yes ) val=yes ;; |
532 n | no ) val=no ;; | 529 n | no ) val=no ;; |
533 * ) USAGE_ERROR("The \`--$optname' option requires a boolean value: \`yes' or \`no'.") ;; | 530 * ) USAGE_ERROR("The \`--$optname' option requires a boolean value: \`yes' or \`no'.") ;; |
638 fi | 635 fi |
639 sound_notfirst=true | 636 sound_notfirst=true |
640 done | 637 done |
641 ;; | 638 ;; |
642 | 639 |
643 dnl Has the user specified a prefered Athena widget set? | 640 dnl Has the user specified a preferred Athena widget set? |
644 dnl This bit expands any alias names out for us... | 641 dnl This bit expands any alias names out for us... |
645 "with_athena" ) | 642 "with_athena" ) |
646 case "$val" in | 643 case "$val" in |
647 xa | xaw ) val=xaw ;; | 644 xa | xaw ) val=xaw ;; |
648 3 | 3d | xaw3d ) val=3d ;; | 645 3 | 3d | xaw3d ) val=3d ;; |
711 nomalloc ) error_check_malloc=no ;; | 708 nomalloc ) error_check_malloc=no ;; |
712 | 709 |
713 byte_code ) error_check_byte_code=yes ;; | 710 byte_code ) error_check_byte_code=yes ;; |
714 nobyte_code ) error_check_byte_code=no ;; | 711 nobyte_code ) error_check_byte_code=no ;; |
715 | 712 |
713 glyphs ) error_check_glyphs=yes ;; | |
714 noglyphs ) error_check_glyphs=no ;; | |
715 | |
716 * ) bogus_error_check=yes ;; | 716 * ) bogus_error_check=yes ;; |
717 esac | 717 esac |
718 if test "$bogus_error_check" -o \ | 718 if test "$bogus_error_check" -o \ |
719 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then | 719 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then |
720 if test "$error_check_default" = yes ; then | 720 if test "$error_check_default" = yes ; then |
721 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'." | 721 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'." |
722 else | 722 else |
723 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'." | 723 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'." |
724 fi | 724 fi |
725 USAGE_ERROR(["Valid types for the \`--$optname' option are: | 725 USAGE_ERROR(["Valid types for the \`--$optname' option are: |
726 $types."]) | 726 $types."]) |
727 elif test -n "$new_default" ; then | 727 elif test -n "$new_default" ; then |
728 error_check_extents=$new_default | 728 error_check_extents=$new_default |
729 error_check_typecheck=$new_default | 729 error_check_typecheck=$new_default |
730 error_check_bufpos=$new_default | 730 error_check_bufpos=$new_default |
731 error_check_gc=$new_default | 731 error_check_gc=$new_default |
732 error_check_malloc=$new_default | 732 error_check_malloc=$new_default |
733 error_check_byte_code=$new_default | 733 error_check_byte_code=$new_default |
734 error_check_glyphs=$new_default | |
734 new_default= # reset this | 735 new_default= # reset this |
735 fi | 736 fi |
736 echeck_notfirst=true | 737 echeck_notfirst=true |
737 done | 738 done |
738 ;; | 739 ;; |
742 dnl testers, at large sites, have said they have their X files | 743 dnl testers, at large sites, have said they have their X files |
743 dnl installed in odd places. | 744 dnl installed in odd places. |
744 | 745 |
745 dnl Has the user specified one of the path options? | 746 dnl Has the user specified one of the path options? |
746 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ | 747 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ |
747 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \ | 748 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \ |
748 archlibdir | docdir | package_path ) | 749 archlibdir | docdir | package_path ) |
749 dnl If the value was omitted, get it from the next argument. | 750 dnl If the value was omitted, get it from the next argument. |
750 if test "$valomitted" = "yes"; then | 751 if test "$valomitted" = "yes"; then |
751 if test "$#" = 0; then | 752 if test "$#" = 0; then |
752 USAGE_ERROR("The \`--$optname' option requires a value."); | 753 USAGE_ERROR("The \`--$optname' option requires a value."); |
770 datadir ) | 771 datadir ) |
771 AC_DEFINE(INFODIR_USER_DEFINED) | 772 AC_DEFINE(INFODIR_USER_DEFINED) |
772 AC_DEFINE(LISPDIR_USER_DEFINED) | 773 AC_DEFINE(LISPDIR_USER_DEFINED) |
773 AC_DEFINE(MODULEDIR_USER_DEFINED) | 774 AC_DEFINE(MODULEDIR_USER_DEFINED) |
774 AC_DEFINE(ETCDIR_USER_DEFINED) ;; | 775 AC_DEFINE(ETCDIR_USER_DEFINED) ;; |
775 statedir | lockdir ) AC_DEFINE(LOCKDIR_USER_DEFINED) ;; | |
776 docdir ) AC_DEFINE(DOCDIR_USER_DEFINED) ;; | 776 docdir ) AC_DEFINE(DOCDIR_USER_DEFINED) ;; |
777 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; | 777 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; |
778 esac | 778 esac |
779 ;; | 779 ;; |
780 | 780 |
785 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; | 785 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; |
786 | 786 |
787 dnl Has the user specified the toolkit(s) to use for GUI elements? | 787 dnl Has the user specified the toolkit(s) to use for GUI elements? |
788 "with_menubars" | \ | 788 "with_menubars" | \ |
789 "with_scrollbars" | \ | 789 "with_scrollbars" | \ |
790 "with_dialogs" | \ | 790 "with_dialogs" | \ |
791 "with_widgets" ) | 791 "with_widgets" ) |
792 case "$val" in | 792 case "$val" in |
793 l | lu | luc | luci | lucid ) val=lucid ;; | 793 l | lu | luc | luci | lucid ) val=lucid ;; |
794 m | mo | mot | moti | motif ) val=motif ;; | 794 m | mo | mot | moti | motif ) val=motif ;; |
795 a | at | ath | athe | athen | athena ) val=athena ;; | 795 a | at | ath | athe | athen | athena ) val=athena ;; |
796 n | no | non | none ) val=no ;; | 796 n | no | non | none ) val=no ;; |
797 y | ye | yes ) val=yes ;; | |
797 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: | 798 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: |
798 \`lucid', \`motif', \`athena', or \`no'."]) ;; | 799 \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;; |
799 esac | 800 esac |
800 eval "$opt=\"$val\"" | 801 eval "$opt=\"$val\"" |
801 ;; | 802 ;; |
802 | 803 |
803 dnl Obsolete legacy argument? Warn, but otherwise ignore. | 804 dnl Obsolete legacy argument? Warn, but otherwise ignore. |
804 "use_minimal_tagbits" | \ | 805 "use_minimal_tagbits" | \ |
805 "use_indexed_lrecord_implementation" | \ | 806 "use_indexed_lrecord_implementation" | \ |
806 "run_in_place" | \ | 807 "run_in_place" | \ |
808 "const_is_losing" | \ | |
807 "with_gnu_make" ) | 809 "with_gnu_make" ) |
808 AC_MSG_WARN([Obsolete option \`--$optname' ignored.]) | 810 AC_MSG_WARN([Obsolete option \`--$optname' ignored.]) |
809 ;; | 811 ;; |
810 | 812 |
811 dnl Unrecognized option? No mercy for user errors. | 813 dnl Unrecognized option? No mercy for user errors. |
1002 CPPFLAGS="$CPPFLAGS -DINFODOCK" | 1004 CPPFLAGS="$CPPFLAGS -DINFODOCK" |
1003 else | 1005 else |
1004 PROGNAME=xemacs | 1006 PROGNAME=xemacs |
1005 fi | 1007 fi |
1006 | 1008 |
1009 AC_DEFINE_UNQUOTED(EMACS_PROGNAME, "$PROGNAME") | |
1010 | |
1007 dnl ---------------------------------- | 1011 dnl ---------------------------------- |
1008 dnl Error checking and debugging flags | 1012 dnl Error checking and debugging flags |
1009 dnl ---------------------------------- | 1013 dnl ---------------------------------- |
1010 dnl Error checking default to "yes" in beta versions, to "no" in releases. | 1014 dnl Error checking default to "yes" in beta versions, to "no" in releases. |
1011 dnl Same goes for --debug and --extra-verbosity. | 1015 dnl Same goes for --debug and --extra-verbosity. |
1014 test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK) | 1018 test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK) |
1015 test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS) | 1019 test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS) |
1016 test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) | 1020 test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) |
1017 test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) | 1021 test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) |
1018 test "${error_check_byte_code=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE) | 1022 test "${error_check_byte_code=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE) |
1023 test "${error_check_glyphs=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GLYPHS) | |
1019 dnl debug=yes must be set when error checking is present. This should be | 1024 dnl debug=yes must be set when error checking is present. This should be |
1020 dnl fixed up. | 1025 dnl fixed up. |
1021 dnl debug implies other options | 1026 dnl debug implies other options |
1022 if test "${debug:=$beta}" = "yes"; then | 1027 if test "${debug:=$beta}" = "yes"; then |
1023 use_assertions=yes memory_usage_stats=yes | 1028 use_assertions=yes memory_usage_stats=yes |
1084 hppa-*-* ) machine=hp800 ;; | 1089 hppa-*-* ) machine=hp800 ;; |
1085 m88k-dg-* ) machine=aviion ;; | 1090 m88k-dg-* ) machine=aviion ;; |
1086 m68*-sony-* ) machine=news ;; | 1091 m68*-sony-* ) machine=news ;; |
1087 mips-sony-* ) machine=news-risc ;; | 1092 mips-sony-* ) machine=news-risc ;; |
1088 clipper-* ) machine=clipper ;; | 1093 clipper-* ) machine=clipper ;; |
1089 arm-* ) machine=arm ;; | 1094 arm* ) machine=arm ;; |
1090 armv[34][lb]-* ) machine=arm ;; | |
1091 ns32k-* ) machine=ns32000 ;; | 1095 ns32k-* ) machine=ns32000 ;; |
1092 esac | 1096 esac |
1093 | 1097 |
1094 dnl Straightforward OS determination | 1098 dnl Straightforward OS determination |
1095 case "$canonical" in | 1099 case "$canonical" in |
1545 dnl Linux/68k | 1549 dnl Linux/68k |
1546 m68k-*-linux* ) machine=m68k opsys=linux ;; | 1550 m68k-*-linux* ) machine=m68k opsys=linux ;; |
1547 | 1551 |
1548 esac | 1552 esac |
1549 | 1553 |
1550 if test -z "$machine" -o -z "$opsys"; then | 1554 dnl Initialize machine and opsys from $canonical if not in our database above. |
1551 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems." | 1555 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'` |
1552 echo "$progname: Check \`etc/MACHINES' for recognized configuration names." | 1556 test -z "$opsys" && opsys=`echo $canonical | sed 's/^[^-]*-[^-]*-//'` |
1553 ) >&2 | 1557 |
1554 exit 1 | 1558 dnl Use configure-time autodetection if s&m not available |
1555 fi | 1559 if test -r "${srcdir}/src/m/${machine}.h"; then |
1560 machfile="m/${machine}.h" | |
1561 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") | |
1562 else | |
1563 echo "XEmacs has no builtin knowledge of \`$machine' machines." | |
1564 echo "Using configure-time autodetection only." | |
1565 fi | |
1566 | |
1567 if test -r "${srcdir}/src/s/${opsys}.h"; then | |
1568 opsysfile="s/${opsys}.h" | |
1569 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile") | |
1570 else | |
1571 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems." | |
1572 echo "Using configure-time autodetection only." | |
1573 fi | |
1574 | |
1556 | 1575 |
1557 if test -z "$dynamic"; then | 1576 if test -z "$dynamic"; then |
1558 case "$opsys" in | 1577 case "$opsys" in |
1559 hpux* | sunos4* ) dynamic=no ;; | 1578 hpux* | sunos4* ) dynamic=no ;; |
1560 *) dynamic=yes ;; | 1579 *) dynamic=yes ;; |
1580 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac | 1599 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac |
1581 | 1600 |
1582 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'` | 1601 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'` |
1583 AC_DEFINE_UNQUOTED(STACK_TRACE_EYE_CATCHER, $stack_trace_eye_catcher) | 1602 AC_DEFINE_UNQUOTED(STACK_TRACE_EYE_CATCHER, $stack_trace_eye_catcher) |
1584 | 1603 |
1585 machfile="m/${machine}.h" | |
1586 opsysfile="s/${opsys}.h" | |
1587 | |
1588 dnl -------------------------------------------------- | 1604 dnl -------------------------------------------------- |
1589 dnl Determine the compiler, set up for feature testing | 1605 dnl Determine the compiler, set up for feature testing |
1590 dnl -------------------------------------------------- | 1606 dnl -------------------------------------------------- |
1591 | 1607 |
1592 dnl Sun Development environment support | 1608 dnl Sun Development environment support |
1595 if test "$with_workshop" = "yes"; then | 1611 if test "$with_workshop" = "yes"; then |
1596 AC_DEFINE(SUNPRO) | 1612 AC_DEFINE(SUNPRO) |
1597 XE_ADD_OBJS(sunpro.o) | 1613 XE_ADD_OBJS(sunpro.o) |
1598 fi | 1614 fi |
1599 | 1615 |
1600 if test "$with_clash_detection" = "yes"; then | 1616 if test "$with_clash_detection" != "no"; then |
1601 AC_DEFINE(CLASH_DETECTION) | 1617 AC_DEFINE(CLASH_DETECTION) |
1602 XE_ADD_OBJS(filelock.o) | 1618 XE_ADD_OBJS(filelock.o) |
1603 fi | 1619 fi |
1604 | 1620 |
1605 dnl Choose a compiler from (in order) | 1621 dnl Choose a compiler from (in order) |
1642 | 1658 |
1643 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" | 1659 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" |
1644 | 1660 |
1645 AC_PROG_CPP | 1661 AC_PROG_CPP |
1646 | 1662 |
1647 AC_AIX | 1663 dnl -------------------------------------------------------------------- |
1664 dnl Compiler feature macros | |
1665 dnl -------------------------------------------------------------------- | |
1666 | |
1667 AC_AIX dnl Defines _ALL_SOURCE on AIX. | |
1668 | |
1669 dnl We want feature macros defined here *and* in config.h.in, so that | |
1670 dnl the compilation environment at configure time and compile time agree. | |
1648 | 1671 |
1649 AC_MSG_CHECKING(for GNU libc) | 1672 AC_MSG_CHECKING(for GNU libc) |
1650 AC_TRY_COMPILE([#include <features.h>],[ | 1673 AC_TRY_COMPILE([#include <features.h>],[ |
1651 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) | 1674 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) |
1652 #error Not a GNU libc system :-( | 1675 #error Not a GNU libc system :-( |
1656 AC_MSG_RESULT($have_glibc) | 1679 AC_MSG_RESULT($have_glibc) |
1657 dnl I'm tired of pop being broken with GLIBC -slb | 1680 dnl I'm tired of pop being broken with GLIBC -slb |
1658 dnl Well. then why not fix fucking pop? | 1681 dnl Well. then why not fix fucking pop? |
1659 test "$have_glibc" = "yes" && AC_DEFINE(_GNU_SOURCE) | 1682 test "$have_glibc" = "yes" && AC_DEFINE(_GNU_SOURCE) |
1660 | 1683 |
1684 dnl We'd like to use vendor extensions, where available. | |
1685 dnl We'd like to use functions from the latest Unix98 standards. | |
1686 dnl See http://www.opengroup.org/onlinepubs/007908799/xsh/compilation.html | |
1687 case "$opsys" in | |
1688 sol2) | |
1689 AC_DEFINE(__EXTENSIONS__) | |
1690 dnl Solaris 2 before 2.5 had some bugs with feature test macro interaction. | |
1691 if test "$os_release" -ge 55; then | |
1692 AC_DEFINE(_XOPEN_SOURCE,500) | |
1693 AC_DEFINE(_XOPEN_SOURCE_EXTENDED) | |
1694 fi ;; | |
1695 linux) | |
1696 AC_DEFINE(_POSIX_C_SOURCE,199506L) | |
1697 AC_DEFINE(_XOPEN_SOURCE,500) | |
1698 AC_DEFINE(_XOPEN_SOURCE_EXTENDED) | |
1699 ;; | |
1700 esac | |
1661 | 1701 |
1662 dnl Identify compilers to enable compiler-specific hacks. | 1702 dnl Identify compilers to enable compiler-specific hacks. |
1663 dnl Add support for other compilers HERE! | 1703 dnl Add support for other compilers HERE! |
1664 dnl GCC is already identified elsewhere. | 1704 dnl GCC is already identified elsewhere. |
1665 AC_TRY_RUN([int main () { | 1705 AC_TRY_RUN([int main () { |
1666 #if defined __SUNPRO_C | 1706 #if defined __SUNPRO_C |
1667 return 11; | 1707 return 11; |
1668 #elif defined __DECC | 1708 #elif defined __DECC |
1669 return 12; | 1709 return 12; |
1710 #elif defined __USLC__ && defined __SCO_VERSION__ | |
1711 return 13; | |
1670 #else | 1712 #else |
1671 return 0; | 1713 return 0; |
1672 #endif | 1714 #endif |
1673 }], [], | 1715 }], [], |
1674 [case "$conftest_rc" in | 1716 [case "$conftest_rc" in |
1675 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;; | 1717 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;; |
1676 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;; | 1718 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;; |
1719 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;; | |
1677 esac]) | 1720 esac]) |
1678 | 1721 |
1679 | 1722 |
1680 dnl case "$canonical" in | 1723 dnl case "$canonical" in |
1681 dnl *-sun-sunos* ) test "$CPP" = "acc -E" && CPP="acc -E -Xs" ;; | 1724 dnl *-sun-sunos* ) test "$CPP" = "acc -E" && CPP="acc -E -Xs" ;; |
1707 [#]else | 1750 [#]else |
1708 configure___ [$2]=no | 1751 configure___ [$2]=no |
1709 [#]endif | 1752 [#]endif |
1710 ])dnl CPP_boolean_to_sh | 1753 ])dnl CPP_boolean_to_sh |
1711 | 1754 |
1712 cat > $tempcname <<EOF | 1755 cat > $tempcname < confdefs.h |
1756 cat >> $tempcname <<EOF | |
1713 #define NOT_C_CODE | 1757 #define NOT_C_CODE |
1714 #define C_SWITCH_SITE | 1758 #define C_SWITCH_SITE |
1715 #define C_SWITCH_X_SITE | 1759 #define C_SWITCH_X_SITE |
1716 #define LD_SWITCH_SITE | 1760 #define LD_SWITCH_SITE |
1717 #define LD_SWITCH_X_SITE | 1761 #define LD_SWITCH_X_SITE |
1718 #define LD_SWITCH_X_SITE_AUX | 1762 #define LD_SWITCH_X_SITE_AUX |
1719 #define OS_RELEASE $os_release | 1763 #define OS_RELEASE $os_release |
1764 | |
1765 #ifdef config_opsysfile | |
1720 #include "$srcdir/src/$opsysfile" | 1766 #include "$srcdir/src/$opsysfile" |
1767 #endif | |
1768 | |
1769 #ifdef config_machfile | |
1721 #include "$srcdir/src/$machfile" | 1770 #include "$srcdir/src/$machfile" |
1771 #endif | |
1722 | 1772 |
1723 CPP_to_sh(LIBS_MACHINE, libs_machine) | 1773 CPP_to_sh(LIBS_MACHINE, libs_machine) |
1724 CPP_to_sh(LIBS_SYSTEM, libs_system) | 1774 CPP_to_sh(LIBS_SYSTEM, libs_system) |
1725 CPP_to_sh(LIBS_TERMCAP, libs_termcap) | 1775 CPP_to_sh(LIBS_TERMCAP, libs_termcap) |
1726 CPP_to_sh(LIB_STANDARD, libs_standard) | 1776 CPP_to_sh(LIB_STANDARD, libs_standard) |
1736 | 1786 |
1737 CPP_to_sh(UNEXEC, unexec, unexec.o) | 1787 CPP_to_sh(UNEXEC, unexec, unexec.o) |
1738 | 1788 |
1739 CPP_to_sh(LD_SWITCH_SHARED, ld_switch_shared, -c) | 1789 CPP_to_sh(LD_SWITCH_SHARED, ld_switch_shared, -c) |
1740 | 1790 |
1791 #define ORDINARY_LD "\$(CC) \$(CFLAGS)" | |
1792 configure___ ordinary_ld=ORDINARY_LD | |
1793 | |
1741 #ifdef ORDINARY_LINK | 1794 #ifdef ORDINARY_LINK |
1742 #define LD "\$(CC) \$(CFLAGS)" | 1795 #define LD ORDINARY_LD |
1743 #else /* no ORDINARY LINK */ | 1796 #else /* no ORDINARY LINK */ |
1744 #ifdef COFF_ENCAPSULATE | 1797 #ifdef COFF_ENCAPSULATE |
1745 #define LD "\$(CC) -nostdlib" | 1798 #define LD "\$(CC) -nostdlib" |
1746 #else /* not COFF_ENCAPSULATE */ | 1799 #else /* not COFF_ENCAPSULATE */ |
1747 #ifdef LINKER | 1800 #ifdef LINKER |
1791 | sed -n -e "s/[ TAB]*=[ TAB\"]*/='/" -e "s/[ TAB\"]*\$/'/" -e "s/^configure___//p"` | 1844 | sed -n -e "s/[ TAB]*=[ TAB\"]*/='/" -e "s/[ TAB\"]*\$/'/" -e "s/^configure___//p"` |
1792 changequote([, ])dnl | 1845 changequote([, ])dnl |
1793 | 1846 |
1794 rm $tempcname | 1847 rm $tempcname |
1795 | 1848 |
1849 if test "$pdump" = "yes"; then | |
1850 ordinary_link="yes" | |
1851 ld="${ordinary_ld}" | |
1852 start_files= | |
1853 libs_standard= | |
1854 unexec= | |
1855 lib_gcc= | |
1856 fi | |
1857 | |
1796 dnl For debugging... | 1858 dnl For debugging... |
1797 test "$extra_verbose" = "yes" && \ | 1859 test "$extra_verbose" = "yes" && \ |
1798 PRINT_VAR(libs_machine libs_system libs_termcap libs_standard | 1860 PRINT_VAR(libs_machine libs_system libs_termcap libs_standard |
1799 objects_machine objects_system c_switch_machine c_switch_system | 1861 objects_machine objects_system c_switch_machine c_switch_system |
1800 ld_switch_machine ld_switch_system unexec ld_switch_shared | 1862 ld_switch_machine ld_switch_system unexec ld_switch_shared |
1809 esac | 1871 esac |
1810 | 1872 |
1811 dnl Non-ordinary link usually requires -lc | 1873 dnl Non-ordinary link usually requires -lc |
1812 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" | 1874 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" |
1813 | 1875 |
1876 dnl ----------------------- | |
1814 dnl Compiler-specific hacks | 1877 dnl Compiler-specific hacks |
1815 dnl DEC C requires -std | 1878 dnl ----------------------- |
1816 test "$__DECC" = "yes" && XE_APPEND(-std, c_switch_site) | 1879 |
1880 dnl DEC C `-std1' means ANSI C mode | |
1881 test "$__DECC" = "yes" && XE_APPEND(-std1, c_switch_site) | |
1882 | |
1883 dnl Some versions of SCO native compiler need -Kalloca | |
1884 if test "$__USLC__" = yes; then | |
1885 AC_MSG_CHECKING(for whether the -Kalloca compiler flag is needed) | |
1886 need_kalloca=no | |
1887 AC_TRY_LINK([], [void *x = alloca(4);], [:], [ | |
1888 xe_save_c_switch_system="$c_switch_system" | |
1889 c_switch_system="$c_switch_system -Kalloca" | |
1890 AC_TRY_LINK([], [void *x = alloca(4);], [ need_kalloca=yes ]) | |
1891 c_switch_system="$xe_save_c_switch_system"]) | |
1892 AC_MSG_RESULT($need_kalloca) | |
1893 test "$need_kalloca" = "yes" && XE_APPEND(-Kalloca,c_switch_system) | |
1894 fi | |
1817 | 1895 |
1818 dnl Calculalate value of CFLAGS: | 1896 dnl Calculalate value of CFLAGS: |
1819 dnl Use either command line flag, environment var, or autodetection | 1897 dnl Use either command line flag, environment var, or autodetection |
1820 if test "$cflags_specified" = "no"; then | 1898 if test "$cflags_specified" = "no"; then |
1821 dnl Following values of CFLAGS are known to work well. | 1899 dnl Following values of CFLAGS are known to work well. |
1838 else | 1916 else |
1839 CFLAGS="-O" ;dnl The only POSIX-approved flag | 1917 CFLAGS="-O" ;dnl The only POSIX-approved flag |
1840 fi | 1918 fi |
1841 fi | 1919 fi |
1842 | 1920 |
1921 dnl Search for GCC specific build problems we know about | |
1922 if test "$GCC" = "yes"; then | |
1923 AC_MSG_CHECKING(for buggy gcc versions) | |
1924 GCC_VERSION=`$CC --version` | |
1925 case `uname -s`:`uname -m`:$GCC_VERSION in | |
1926 dnl egcs 2.90.21 (egcs-1.00 release) | |
1927 dnl egcs 2.90.29 (egcs-1.0.3 release) | |
1928 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) | |
1929 dnl Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures | |
1930 dnl without also using `-fno-schedule-insns'. | |
1931 case "$CFLAGS" in | |
1932 *-O2*|*-O3*) | |
1933 case "$CFLAGS" in | |
1934 *-fno-schedule-insns*) ;; | |
1935 *) | |
1936 AC_MSG_RESULT(yes) | |
1937 AC_MSG_WARN(Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures) | |
1938 AC_MSG_WARN(without also using -fno-schedule-insns.) | |
1939 AC_MSG_ERROR(Aborting due to known problem) | |
1940 ;; | |
1941 esac | |
1942 ;; | |
1943 esac | |
1944 ;; | |
1945 dnl egcs-2.91.57 (egcs-1.1 release) | |
1946 dnl egcs-2.91.66 (egcs-1.1.2 release) | |
1947 Linux:alpha:egcs-2.91.*) | |
1948 AC_MSG_RESULT(yes) | |
1949 AC_MSG_WARN(There have been reports of egcs-1.1 not compiling XEmacs correctly on) | |
1950 AC_MSG_WARN(Alpha Linux. There have also been reports that egcs-1.0.3a is O.K.) | |
1951 AC_MSG_ERROR(Aborting due to known problem) | |
1952 ;; | |
1953 *:i*86*:2.7.2*) | |
1954 case "$GCC_VERSION" in | |
1955 2.7.2) | |
1956 case "$CFLAGS" in | |
1957 *-O2*|*-O3*) | |
1958 case "$CFLAGS" in | |
1959 *-fno-strength-reduce*) ;; | |
1960 *) | |
1961 AC_MSG_RESULT(yes) | |
1962 AC_MSG_WARN(Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using) | |
1963 AC_MSG_WARN(-fno-strength-reduce.) | |
1964 AC_MSG_ERROR(Aborting due to known problem) | |
1965 ;; | |
1966 esac | |
1967 ;; | |
1968 esac | |
1969 ;; | |
1970 esac | |
1971 case "$CFLAGS" in | |
1972 *-fno-caller-saves*) ;; | |
1973 *) | |
1974 AC_MSG_RESULT(yes) | |
1975 AC_MSG_WARN(Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using) | |
1976 AC_MSG_WARN(-fno-caller-saves.) | |
1977 AC_MSG_ERROR(Aborting due to known problem) | |
1978 ;; | |
1979 esac | |
1980 ;; | |
1981 esac | |
1982 AC_MSG_RESULT(no) | |
1983 fi | |
1984 | |
1843 dnl Inform compiler that certain flags are meant for the linker | 1985 dnl Inform compiler that certain flags are meant for the linker |
1844 dnl XE_PROTECT_LINKER_FLAGS(shell_var) | 1986 dnl XE_PROTECT_LINKER_FLAGS(shell_var) |
1845 define([XE_PROTECT_LINKER_FLAGS], [ | 1987 define([XE_PROTECT_LINKER_FLAGS], [ |
1846 if test "$GCC" = "yes"; then | 1988 if test "$GCC" = "yes"; then |
1847 set x $[$1]; shift; [$1]="" | 1989 set x $[$1]; shift; [$1]="" |
1861 XE_PROTECT_LINKER_FLAGS(ld_call_shared) | 2003 XE_PROTECT_LINKER_FLAGS(ld_call_shared) |
1862 | 2004 |
1863 dnl Add s&m-determined objects (including unexec) to link line | 2005 dnl Add s&m-determined objects (including unexec) to link line |
1864 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine) | 2006 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine) |
1865 test -n "$objects_system" && XE_ADD_OBJS($objects_system) | 2007 test -n "$objects_system" && XE_ADD_OBJS($objects_system) |
1866 test -n "$unexec" && XE_ADD_OBJS($unexec) | 2008 test -n "$unexec" && test ! "$pdump" = "yes" && XE_ADD_OBJS($unexec) |
2009 test "$pdump" = "yes" && XE_ADD_OBJS(dumper.o) | |
1867 | 2010 |
1868 dnl Dynodump (Solaris 2.x, x<6) | 2011 dnl Dynodump (Solaris 2.x, x<6) |
1869 AC_MSG_CHECKING(for dynodump) | 2012 AC_MSG_CHECKING(for dynodump) |
1870 if test "$unexec" != "unexsol2.o"; then | 2013 if test "$unexec" != "unexsol2.o"; then |
1871 AC_MSG_RESULT(no) | 2014 AC_MSG_RESULT(no) |
1997 dnl /etc/ld.so.conf. Since those are used at run time, it seems pretty | 2140 dnl /etc/ld.so.conf. Since those are used at run time, it seems pretty |
1998 dnl safe to use them at link time, and less controversial than forcing | 2141 dnl safe to use them at link time, and less controversial than forcing |
1999 dnl the run-time to use the link-time libraries. This also helps avoid | 2142 dnl the run-time to use the link-time libraries. This also helps avoid |
2000 dnl mismatches between the link-time and run-time libraries. | 2143 dnl mismatches between the link-time and run-time libraries. |
2001 | 2144 |
2002 dnl #### Unfortunately, there are horrible libc4 and libc5 libraries | 2145 dnl #### Unfortunately, there are horrible libc4 and libc5 libraries |
2003 dnl listed in /etc/ld.so.conf on some systems, and including them on | 2146 dnl listed in /etc/ld.so.conf on some systems, and including them on |
2004 dnl the link path leads to linking in utterly broken libc's. | 2147 dnl the link path leads to linking in utterly broken libc's. |
2005 dnl There are many clever ways of approaching this problem, | 2148 dnl There are many clever ways of approaching this problem, |
2006 dnl but finding out that actually works... | 2149 dnl but finding out that actually works... |
2007 | 2150 |
2008 dnl if test -z "$LD_RUN_PATH" -a -r "/etc/ld.so.conf"; then | 2151 dnl if test -z "$LD_RUN_PATH" -a -r "/etc/ld.so.conf"; then |
2009 dnl for dir in `cat /etc/ld.so.conf`; do | 2152 dnl for dir in `cat /etc/ld.so.conf`; do |
2010 dnl test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system) | 2153 dnl test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system) |
2133 doug_lea_malloc=yes | 2276 doug_lea_malloc=yes |
2134 else | 2277 else |
2135 doug_lea_malloc=no | 2278 doug_lea_malloc=no |
2136 fi | 2279 fi |
2137 after_morecore_hook_exists=yes | 2280 after_morecore_hook_exists=yes |
2138 AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) | |
2139 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) | 2281 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) |
2140 AC_MSG_CHECKING(whether __after_morecore_hook exists) | 2282 AC_MSG_CHECKING(whether __after_morecore_hook exists) |
2141 AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0], | 2283 AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0], |
2142 [AC_MSG_RESULT(yes)], | 2284 [AC_MSG_RESULT(yes)], |
2143 [AC_MSG_RESULT(no) | 2285 [AC_MSG_RESULT(no) |
2144 after_morecore_hook_exists=no]) | 2286 after_morecore_hook_exists=no]) |
2145 if test "$system_malloc" = "yes" ; then | 2287 if test "$system_malloc" = "yes" ; then |
2146 GNU_MALLOC=no | 2288 GNU_MALLOC=no |
2147 GNU_MALLOC_reason=" | 2289 GNU_MALLOC_reason=" |
2148 (The GNU allocators don't work with this system configuration)." | 2290 - The GNU allocators don't work with this system configuration." |
2149 elif test "$with_system_malloc" = "yes" ; then | 2291 elif test "$with_system_malloc" = "yes" ; then |
2150 GNU_MALLOC=no | 2292 GNU_MALLOC=no |
2151 GNU_MALLOC_reason=" | 2293 GNU_MALLOC_reason=" |
2152 (User chose not to use GNU allocators)." | 2294 - User chose not to use GNU allocators." |
2153 elif test "$with_debug_malloc" = "yes" ; then | 2295 elif test "$with_debug_malloc" = "yes" ; then |
2154 GNU_MALLOC=no | 2296 GNU_MALLOC=no |
2155 GNU_MALLOC_reason=" | 2297 GNU_MALLOC_reason=" |
2156 (User chose to use Debugging Malloc)." | 2298 - User chose to use Debugging Malloc." |
2157 fi | 2299 fi |
2158 | 2300 |
2159 if test "$doug_lea_malloc" = "yes" ; then | 2301 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then |
2160 if test "$GNU_MALLOC" = yes ; then | 2302 GNU_MALLOC_reason=" |
2161 GNU_MALLOC_reason=" | 2303 - Using Doug Lea's new malloc from the GNU C Library." |
2162 (Using Doug Lea's new malloc from the GNU C Library.)" | |
2163 fi | |
2164 AC_DEFINE(DOUG_LEA_MALLOC) | 2304 AC_DEFINE(DOUG_LEA_MALLOC) |
2165 if test "$after_morecore_hook_exists" = "no" ; then | 2305 if test "$after_morecore_hook_exists" = "no" ; then |
2166 GNU_MALLOC_reason=" | 2306 GNU_MALLOC_reason=" |
2167 (Using Doug Lea's new malloc from the Linux C Library.)" | 2307 - Using Doug Lea's new malloc from the Linux C Library." |
2168 AC_DEFINE(_NO_MALLOC_WARNING_) | 2308 AC_DEFINE(_NO_MALLOC_WARNING_) |
2169 fi | 2309 fi |
2170 use_minimal_tagbits=yes | |
2171 fi | 2310 fi |
2172 | 2311 |
2173 dnl #### mcheck is broken in all versions of Linux libc and glibc. | 2312 dnl #### mcheck is broken in all versions of Linux libc and glibc. |
2174 dnl Try this again when 2.1 hits the streets. | 2313 dnl Try this again when 2.1 hits the streets. |
2175 dnl Avoid using free-hook.c if support exists for malloc debugging in libc | 2314 dnl Avoid using free-hook.c if support exists for malloc debugging in libc |
2194 AC_PROG_RANLIB | 2333 AC_PROG_RANLIB |
2195 AC_PROG_INSTALL | 2334 AC_PROG_INSTALL |
2196 AC_PROG_YACC | 2335 AC_PROG_YACC |
2197 | 2336 |
2198 dnl checks for header files | 2337 dnl checks for header files |
2199 AC_CHECK_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h) | 2338 AC_CHECK_HEADERS(dnl |
2200 AC_CHECK_HEADERS(utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h) | 2339 a.out.h dnl |
2201 AC_CHECK_HEADERS(kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h) | 2340 cygwin/version.h dnl |
2341 fcntl.h dnl | |
2342 inttypes.h dnl | |
2343 libgen.h dnl | |
2344 locale.h dnl | |
2345 mach/mach.h dnl | |
2346 sys/param.h dnl | |
2347 sys/pstat.h dnl | |
2348 sys/time.h dnl | |
2349 sys/timeb.h dnl | |
2350 sys/un.h dnl | |
2351 ulimit.h dnl | |
2352 unistd.h dnl | |
2353 utime.h dnl | |
2354 ) | |
2202 AC_HEADER_SYS_WAIT | 2355 AC_HEADER_SYS_WAIT |
2203 AC_HEADER_STDC | 2356 AC_HEADER_STDC |
2204 AC_HEADER_TIME | 2357 AC_HEADER_TIME |
2205 AC_DECL_SYS_SIGLIST | 2358 AC_DECL_SYS_SIGLIST |
2206 | 2359 |
2230 AC_TYPE_UID_T | 2383 AC_TYPE_UID_T |
2231 AC_TYPE_MODE_T | 2384 AC_TYPE_MODE_T |
2232 AC_TYPE_OFF_T | 2385 AC_TYPE_OFF_T |
2233 AC_CHECK_TYPE(ssize_t, int) | 2386 AC_CHECK_TYPE(ssize_t, int) |
2234 | 2387 |
2388 dnl check for Unix98 socklen_t | |
2389 AC_MSG_CHECKING(for socklen_t) | |
2390 AC_TRY_COMPILE([#include <sys/socket.h> | |
2391 socklen_t x; | |
2392 ],[],[AC_MSG_RESULT(yes)],[ | |
2393 AC_TRY_COMPILE([#include <sys/socket.h> | |
2394 int accept (int, struct sockaddr *, size_t *); | |
2395 ],[],[ | |
2396 AC_MSG_RESULT(size_t) | |
2397 AC_DEFINE(socklen_t,size_t)], [ | |
2398 AC_MSG_RESULT(int) | |
2399 AC_DEFINE(socklen_t,int)])]) | |
2400 | |
2235 AC_MSG_CHECKING(for struct timeval) | 2401 AC_MSG_CHECKING(for struct timeval) |
2236 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME | 2402 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
2237 #include <sys/time.h> | 2403 #include <sys/time.h> |
2238 #include <time.h> | 2404 #include <time.h> |
2239 #else | 2405 #else |
2293 AC_CHECK_FUNCS(lockf flock) | 2459 AC_CHECK_FUNCS(lockf flock) |
2294 dnl The mail_use_xxx variables are set according to the s&m headers. | 2460 dnl The mail_use_xxx variables are set according to the s&m headers. |
2295 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock | 2461 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock |
2296 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf | 2462 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf |
2297 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking | 2463 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking |
2464 if test -z "$mail_locking"; then | |
2465 case "$opsys" in cygwin* | mingw*) | |
2466 mail_locking=pop ;; | |
2467 esac | |
2468 fi | |
2469 | |
2298 if test "$mail_locking" = "lockf"; then AC_DEFINE(MAIL_LOCK_LOCKF) | 2470 if test "$mail_locking" = "lockf"; then AC_DEFINE(MAIL_LOCK_LOCKF) |
2299 elif test "$mail_locking" = "flock"; then AC_DEFINE(MAIL_LOCK_FLOCK) | 2471 elif test "$mail_locking" = "flock"; then AC_DEFINE(MAIL_LOCK_FLOCK) |
2300 elif test "$mail_locking" = "locking"; then AC_DEFINE(MAIL_LOCK_LOCKING) | 2472 elif test "$mail_locking" = "locking"; then AC_DEFINE(MAIL_LOCK_LOCKING) |
2473 elif test "$mail_locking" = "pop"; then | |
2474 with_pop=yes | |
2475 mail_locking= | |
2301 else mail_locking="dot-locking"; AC_DEFINE(MAIL_LOCK_DOT) | 2476 else mail_locking="dot-locking"; AC_DEFINE(MAIL_LOCK_DOT) |
2302 fi | 2477 fi |
2303 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \ | 2478 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \ |
2304 XE_DIE("lockf mail locking requested but not available.") | 2479 XE_DIE("lockf mail locking requested but not available.") |
2305 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \ | 2480 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \ |
2321 fi | 2496 fi |
2322 else AC_MSG_RESULT(no) | 2497 else AC_MSG_RESULT(no) |
2323 fi | 2498 fi |
2324 | 2499 |
2325 dnl Link with "-z ignore" on Solaris if supported | 2500 dnl Link with "-z ignore" on Solaris if supported |
2326 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then | 2501 if test "$opsys" = "sol2"; then |
2327 AC_MSG_CHECKING(for \"-z ignore\" linker flag) | 2502 if test "$os_release" -ge 56; then |
2328 case "`ld -h 2>&1`" in | 2503 AC_MSG_CHECKING(for \"-z ignore\" linker flag) |
2329 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) | 2504 case "`ld -h 2>&1`" in |
2330 XE_PREPEND(-z ignore, ld_switch_site) ;; | 2505 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) |
2331 *) AC_MSG_RESULT(no) ;; | 2506 XE_PREPEND(-z ignore, ld_switch_site) ;; |
2332 esac | 2507 *) AC_MSG_RESULT(no) ;; |
2508 esac | |
2509 fi | |
2333 fi | 2510 fi |
2334 | 2511 |
2335 dnl ---------------------- | 2512 dnl ---------------------- |
2336 dnl Choose a window system | 2513 dnl Choose a window system |
2337 dnl ---------------------- | 2514 dnl ---------------------- |
2424 break; dnl Only need ONE X11 implementation ! | 2601 break; dnl Only need ONE X11 implementation ! |
2425 fi | 2602 fi |
2426 done | 2603 done |
2427 | 2604 |
2428 dnl Avoid version mismatch for shared library libXm.so on osf4 | 2605 dnl Avoid version mismatch for shared library libXm.so on osf4 |
2429 if test "$GCC" = yes -a -d /usr/shlib; then XE_APPEND(-L/usr/shlib, X_LIBS); fi | 2606 case "$opsys" in |
2607 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then XE_APPEND(-L/usr/shlib, X_LIBS); fi ;; | |
2608 esac | |
2430 | 2609 |
2431 ld_switch_x_site="$X_LIBS" | 2610 ld_switch_x_site="$X_LIBS" |
2432 | 2611 |
2433 XE_COMPUTE_RUNPATH() | 2612 XE_COMPUTE_RUNPATH() |
2434 | 2613 |
2471 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` | 2650 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` |
2472 fi | 2651 fi |
2473 cd .. | 2652 cd .. |
2474 rm -fr conftestdir | 2653 rm -fr conftestdir |
2475 for word in $xmkmf_defines; do | 2654 for word in $xmkmf_defines; do |
2476 case "$word" in | 2655 case "$word" in -D* ) |
2477 -D*=* ) ;; | 2656 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` |
2478 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'` | 2657 case "$word" in |
2479 AC_DEFINE_UNQUOTED($word) ;; | 2658 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; |
2659 * ) val=1 ;; | |
2660 esac | |
2661 dnl Avoid re-AC_DEFINE-ing xmkmf symbols we've already defined above. | |
2662 if grep "^#define $sym " confdefs.h >/dev/null; then :; else | |
2663 if test "$val" = "1" | |
2664 then AC_DEFINE_UNQUOTED($sym) | |
2665 else AC_DEFINE_UNQUOTED($sym,$val) | |
2666 fi | |
2667 fi ;; | |
2480 esac | 2668 esac |
2481 done | 2669 done |
2482 fi | 2670 fi |
2483 | 2671 |
2484 dnl make sure we can find Intrinsic.h | 2672 dnl make sure we can find Intrinsic.h |
2508 AC_TRY_RUN([#include <X11/Intrinsic.h> | 2696 AC_TRY_RUN([#include <X11/Intrinsic.h> |
2509 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }], | 2697 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }], |
2510 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4]) | 2698 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4]) |
2511 AC_MSG_RESULT(R${x11_release}) | 2699 AC_MSG_RESULT(R${x11_release}) |
2512 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release}) | 2700 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release}) |
2701 | |
2702 if test "${x11_release}" = "4"; then | |
2703 case "$with_widgets" in | |
2704 "" | "no") with_widgets=no ;; | |
2705 *) XE_DIE("Widget support requires X11R5 or greater") ;; | |
2706 esac | |
2707 fi | |
2708 | |
2709 AC_CHECK_FUNCS(XConvertCase) | |
2513 | 2710 |
2514 AC_CHECK_HEADERS(X11/Xlocale.h) | 2711 AC_CHECK_HEADERS(X11/Xlocale.h) |
2515 | 2712 |
2516 dnl remove this - we should avoid checking for specific OS | 2713 dnl remove this - we should avoid checking for specific OS |
2517 AC_MSG_CHECKING(for XFree86) | 2714 AC_MSG_CHECKING(for XFree86) |
2560 AC_CHECKING(for MS-Windows) | 2757 AC_CHECKING(for MS-Windows) |
2561 AC_CHECK_LIB(gdi32,main,with_msw=yes) | 2758 AC_CHECK_LIB(gdi32,main,with_msw=yes) |
2562 if test "$with_msw" = "yes"; then | 2759 if test "$with_msw" = "yes"; then |
2563 AC_DEFINE(HAVE_MS_WINDOWS) | 2760 AC_DEFINE(HAVE_MS_WINDOWS) |
2564 install_pp="$blddir/lib-src/installexe.sh" | 2761 install_pp="$blddir/lib-src/installexe.sh" |
2565 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool, libs_system) | 2762 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool, libs_system) |
2566 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) | 2763 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) |
2567 if test "$window_system" != x11; then | 2764 if test "$window_system" != x11; then |
2568 window_system=msw | 2765 window_system=msw |
2569 test "$with_scrollbars" != "no" && with_scrollbars=msw \ | 2766 test "$with_scrollbars" != "no" && with_scrollbars=msw \ |
2570 && XE_ADD_OBJS(scrollbar-msw.o) | 2767 && XE_ADD_OBJS(scrollbar-msw.o) |
2583 fi | 2780 fi |
2584 dnl check for our special version of select | 2781 dnl check for our special version of select |
2585 AC_TRY_RUN([#include <fcntl.h> | 2782 AC_TRY_RUN([#include <fcntl.h> |
2586 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], | 2783 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], |
2587 [AC_DEFINE(HAVE_MSG_SELECT)]) | 2784 [AC_DEFINE(HAVE_MSG_SELECT)]) |
2588 const_is_losing=no | |
2589 with_file_coding=yes | 2785 with_file_coding=yes |
2590 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o) | 2786 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o) |
2591 fi | 2787 fi |
2592 fi | 2788 fi |
2593 | 2789 |
2636 fi | 2832 fi |
2637 eval "with_${feature}=no" | 2833 eval "with_${feature}=no" |
2638 done | 2834 done |
2639 fi | 2835 fi |
2640 | 2836 |
2837 dnl Balloon Help requires the Shape extension, not available everywhere, | |
2838 dnl for example not on AIX 4.3. | |
2839 if test "$with_x11" = "yes"; then | |
2840 AC_CHECK_HEADER(X11/extensions/shape.h, [ | |
2841 AC_DEFINE(HAVE_BALLOON_HELP) | |
2842 XE_ADD_OBJS(balloon_help.o balloon-x.o)]) | |
2843 fi | |
2844 | |
2641 dnl FSF 19.29 has some bitmapdir stuff here. | 2845 dnl FSF 19.29 has some bitmapdir stuff here. |
2642 bitmapdir= | 2846 bitmapdir= |
2643 | 2847 |
2644 case "$window_system" in | 2848 case "$window_system" in |
2645 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; | 2849 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; |
2678 dnl Autodetect tooltalk | 2882 dnl Autodetect tooltalk |
2679 if test "$with_tooltalk" != "no" ; then | 2883 if test "$with_tooltalk" != "no" ; then |
2680 dnl autodetect the location of tt_c.h | 2884 dnl autodetect the location of tt_c.h |
2681 dnl tt_c.h might be in Tt or desktop include directories | 2885 dnl tt_c.h might be in Tt or desktop include directories |
2682 for dir in "" "Tt/" "desktop/" ; do | 2886 for dir in "" "Tt/" "desktop/" ; do |
2683 AC_CHECK_HEADER(${dir}tt_c.h, tt_c_h_path="${dir}tt_c.h"; break) | 2887 AC_CHECK_HEADER(${dir}tt_c.h, tt_c_h_file="${dir}tt_c.h"; break) |
2684 done | 2888 done |
2685 if test -z "$tt_c_h_path"; then | 2889 if test -z "$tt_c_h_file"; then |
2686 if test "$with_tooltalk" = "yes"; then | 2890 if test "$with_tooltalk" = "yes"; then |
2687 USAGE_ERROR("Unable to find required tooltalk header files.") | 2891 USAGE_ERROR("Unable to find required tooltalk header files.") |
2688 fi | 2892 fi |
2689 with_tooltalk=no | 2893 with_tooltalk=no |
2690 fi | 2894 fi |
2702 fi | 2906 fi |
2703 fi | 2907 fi |
2704 test -z "$with_tooltalk" && with_tooltalk=yes | 2908 test -z "$with_tooltalk" && with_tooltalk=yes |
2705 if test "$with_tooltalk" = "yes"; then | 2909 if test "$with_tooltalk" = "yes"; then |
2706 AC_DEFINE(TOOLTALK) | 2910 AC_DEFINE(TOOLTALK) |
2707 AC_DEFINE_UNQUOTED(TT_C_H_PATH, "$tt_c_h_path") | 2911 AC_DEFINE_UNQUOTED(TT_C_H_FILE, "$tt_c_h_file") |
2708 XE_PREPEND($tt_libs, libs_x) | 2912 XE_PREPEND($tt_libs, libs_x) |
2709 XE_ADD_OBJS(tooltalk.o) | 2913 XE_ADD_OBJS(tooltalk.o) |
2710 fi | 2914 fi |
2711 | 2915 |
2712 dnl Autodetect CDE | 2916 dnl Autodetect CDE |
2793 XE_PREPEND(-lldap, LIBS) | 2997 XE_PREPEND(-lldap, LIBS) |
2794 fi | 2998 fi |
2795 AC_CHECK_FUNCS(ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result) | 2999 AC_CHECK_FUNCS(ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result) |
2796 fi | 3000 fi |
2797 | 3001 |
3002 dnl Autodetect PostgreSQL | |
3003 dnl On many Linux systems, PostgreSQL is packaged to be installed in /usr; | |
3004 dnl in this case, configure will easily detect it there. | |
3005 dnl | |
3006 dnl If PostgreSQL is installed into a different prefix, | |
3007 dnl (such as the default /usr/local/pgsql when building from source), | |
3008 dnl that prefix must be specified using the --site-prefixes flag. | |
3009 if test "$with_postgresql" != "no"; then | |
3010 AC_CHECKING(for PostgreSQL) | |
3011 | |
3012 dnl Look for these standard header file locations, known to be used on Linux | |
3013 for header_dir in "" "pgsql/" "postgresql/"; do | |
3014 AC_CHECK_HEADER(${header_dir}libpq-fe.h, | |
3015 libpq_fe_h_file=${header_dir}libpq-fe.h; break) | |
3016 done | |
3017 | |
3018 test -n "$libpq_fe_h_file" && { AC_CHECK_LIB(pq,PQconnectdb,have_libpq=yes) } | |
3019 | |
3020 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then | |
3021 with_postgresql=yes | |
3022 AC_DEFINE(HAVE_POSTGRESQL) | |
3023 AC_CHECK_LIB(pq,PQconnectStart, [ | |
3024 with_postgresqlv7=yes; | |
3025 AC_DEFINE(HAVE_POSTGRESQLV7)]) | |
3026 AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file") | |
3027 XE_PREPEND(-lpq, LIBS) | |
3028 XE_ADD_OBJS(postgresql.o) | |
3029 elif test "$with_postgresql" = "yes"; then | |
3030 XE_DIE("Required PostgreSQL support cannot be provided. Check --site-prefixes.") | |
3031 fi | |
3032 fi | |
3033 | |
2798 dnl ---------------------- | 3034 dnl ---------------------- |
2799 dnl Graphics libraries | 3035 dnl Graphics libraries |
2800 dnl ---------------------- | 3036 dnl ---------------------- |
2801 | 3037 |
2802 if test "$window_system" != "none"; then | 3038 if test "$window_system" != "none"; then |
2805 dnl Autodetect Xpm | 3041 dnl Autodetect Xpm |
2806 xpm_problem="" | 3042 xpm_problem="" |
2807 if test -z "$with_xpm"; then | 3043 if test -z "$with_xpm"; then |
2808 AC_MSG_CHECKING(for Xpm - no older than 3.4f) | 3044 AC_MSG_CHECKING(for Xpm - no older than 3.4f) |
2809 xe_check_libs=-lXpm | 3045 xe_check_libs=-lXpm |
2810 AC_TRY_RUN([#include <X11/xpm.h> | 3046 AC_TRY_RUN([#define XPM_NUMBERS |
3047 #include <X11/xpm.h> | |
2811 int main(int c, char **v) { | 3048 int main(int c, char **v) { |
2812 return c == 1 ? 0 : | 3049 return c == 1 ? 0 : |
2813 XpmIncludeVersion != XpmLibraryVersion() ? 1 : | 3050 XpmIncludeVersion != XpmLibraryVersion() ? 1 : |
2814 XpmIncludeVersion < 30406 ? 2 : 0 ;}], | 3051 XpmIncludeVersion < 30406 ? 2 : 0 ;}], |
2815 [./conftest dummy_arg; xpm_status=$?; | 3052 [./conftest dummy_arg; xpm_status=$?; |
3090 XE_APPEND(lwlib-Xaw.o, lwlib_objs) | 3327 XE_APPEND(lwlib-Xaw.o, lwlib_objs) |
3091 | 3328 |
3092 dnl Add the Athena widget library we located earlier | 3329 dnl Add the Athena widget library we located earlier |
3093 XE_PREPEND(-l$athena_lib, libs_x) | 3330 XE_PREPEND(-l$athena_lib, libs_x) |
3094 | 3331 |
3095 dnl Export the path for lwlib, used to build and include the headers | 3332 dnl Tell lwlib where to find the Athena header files. |
3096 dnl from the right place later on. | 3333 dnl Many people have tried to create a `smart' way of doing this, |
3097 AC_DEFINE_UNQUOTED(ATHENA_H_PATH, $athena_h_path) | 3334 dnl but all have failed. Before changing the following ugly definitions, |
3335 dnl consult the veterans of many a battle. | |
3336 AC_DEFINE_UNQUOTED(ATHENA_Scrollbar_h_,"$athena_h_path/Scrollbar.h") | |
3337 AC_DEFINE_UNQUOTED(ATHENA_Dialog_h_,"$athena_h_path/Dialog.h") | |
3338 AC_DEFINE_UNQUOTED(ATHENA_Form_h_,"$athena_h_path/Form.h") | |
3339 AC_DEFINE_UNQUOTED(ATHENA_Command_h_,"$athena_h_path/Command.h") | |
3340 AC_DEFINE_UNQUOTED(ATHENA_Label_h_,"$athena_h_path/Label.h") | |
3341 AC_DEFINE_UNQUOTED(ATHENA_LabelP_h_,"$athena_h_path/LabelP.h") | |
3342 AC_DEFINE_UNQUOTED(ATHENA_Toggle_h_,"$athena_h_path/Toggle.h") | |
3343 AC_DEFINE_UNQUOTED(ATHENA_ToggleP_h_,"$athena_h_path/ToggleP.h") | |
3344 AC_DEFINE_UNQUOTED(ATHENA_AsciiText_h_,"$athena_h_path/AsciiText.h") | |
3345 AC_DEFINE_UNQUOTED(ATHENA_XawInit_h_,"$athena_h_path/XawInit.h") | |
3098 | 3346 |
3099 AC_DEFINE(LWLIB_USES_ATHENA) | 3347 AC_DEFINE(LWLIB_USES_ATHENA) |
3100 AC_DEFINE(NEED_ATHENA) | 3348 AC_DEFINE(NEED_ATHENA) |
3349 need_athena="yes" | |
3101 | 3350 |
3102 if test "$athena_3d" = "yes"; then | 3351 if test "$athena_3d" = "yes"; then |
3103 AC_DEFINE(HAVE_ATHENA_3D) | 3352 AC_DEFINE(HAVE_ATHENA_3D) |
3104 fi | 3353 fi |
3105 ;; | 3354 ;; |
3303 dnl AIX needs the following library for use with Motif | 3552 dnl AIX needs the following library for use with Motif |
3304 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) | 3553 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) |
3305 XE_COMPUTE_RUNPATH() | 3554 XE_COMPUTE_RUNPATH() |
3306 fi | 3555 fi |
3307 | 3556 |
3308 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask) | 3557 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask) |
3558 | |
3559 dnl Check for PTY support functions. | |
3560 dnl getpt is the preferred pty allocation method on glibc systems. | |
3561 dnl _getpt is the preferred pty allocation method on SGI systems. | |
3562 dnl grantpt, unlockpt, ptsname are defined by Unix98. | |
3563 AC_CHECK_FUNCS(getpt _getpt grantpt unlockpt ptsname killpg tcgetpgrp) | |
3564 | |
3565 dnl openpty is the preferred pty allocation method on BSD and Tru64 systems. | |
3566 dnl openpty might be declared in pty.h or in libutil.h. | |
3567 AC_CHECK_FUNC(openpty, have_openpty=yes, [ | |
3568 AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)]) | |
3569 if test "$have_openpty" = "yes"; then | |
3570 AC_DEFINE(HAVE_OPENPTY) | |
3571 AC_CHECK_HEADERS(pty.h libutil.h) | |
3572 test "$need_libutil" = "yes" && XE_APPEND(-lutil, libs_system) | |
3573 fi | |
3574 | |
3575 dnl Check for STREAM support functions. | |
3576 dnl Confusingly, "str" means both "string" and "SysV Streams". | |
3577 AC_CHECK_HEADERS(sys/stropts.h) | |
3578 if test "$ac_cv_header_sys_stropts_h" = "yes"; then | |
3579 AC_CHECK_FUNCS(isastream) | |
3580 AC_CHECK_HEADERS(sys/strtio.h) dnl TIOCSIGNAL | |
3581 fi | |
3309 | 3582 |
3310 dnl Use our own realpath always. | 3583 dnl Use our own realpath always. |
3311 XE_ADD_OBJS(realpath.o) | 3584 XE_ADD_OBJS(realpath.o) |
3312 | 3585 |
3313 dnl Check whether the system provides getloadavg (Solaris 7 has it) | 3586 dnl Check whether the system provides getloadavg(). |
3314 AC_CHECK_FUNCS(getloadavg) | 3587 AC_CHECK_FUNCS(getloadavg) |
3315 | 3588 |
3316 if test "$ac_cv_func_getloadavg" != "yes" | 3589 if test "$ac_cv_func_getloadavg" = "yes"; then |
3317 then | 3590 dnl Solaris 8 declares getloadavg() in <sys/loadavg.h>. |
3591 dnl glibc 2.2 declares getloadavg() in <stdlib.h>... | |
3592 dnl ...if we #define _GNU_SOURCE, which we do. | |
3593 AC_CHECK_HEADERS(sys/loadavg.h) | |
3594 else | |
3595 dnl We define our own getloadavg() using lower level functions. | |
3318 XE_ADD_OBJS(getloadavg.o) | 3596 XE_ADD_OBJS(getloadavg.o) |
3319 | 3597 |
3320 dnl Used by getloadavg() - does not require root priveleges | 3598 dnl Used by getloadavg() - does not require root priveleges |
3321 AC_CHECK_LIB(kstat, kstat_open) | 3599 AC_CHECK_LIB(kstat, kstat_open) |
3600 AC_CHECK_HEADERS(kstat.h) | |
3322 | 3601 |
3323 dnl Another way to get the load average | 3602 dnl Another way to get the load average |
3324 AC_CHECK_LIB(kvm, kvm_read) | 3603 AC_CHECK_LIB(kvm, kvm_read) |
3325 fi | 3604 fi |
3326 | 3605 |
3400 #endif | 3679 #endif |
3401 #endif | 3680 #endif |
3402 ], | 3681 ], |
3403 [ | 3682 [ |
3404 struct timeval time; | 3683 struct timeval time; |
3405 struct timezone dummy; | 3684 gettimeofday (&time, 0); |
3406 gettimeofday (&time, &dummy); | |
3407 ], | 3685 ], |
3408 [AC_MSG_RESULT(two)], | 3686 [AC_MSG_RESULT(two)], |
3409 [AC_MSG_RESULT(one) | 3687 [AC_MSG_RESULT(one) |
3410 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) | 3688 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) |
3411 fi | 3689 fi |
3412 | 3690 |
3413 | 3691 |
3414 AC_C_INLINE | 3692 AC_C_INLINE |
3415 if test "$ac_cv_c_inline" != "no"; then | 3693 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && XE_ADD_OBJS(inline.o) |
3416 AC_DEFINE(HAVE_INLINE) | |
3417 test "$GCC" = "yes" && XE_ADD_OBJS(inline.o) | |
3418 fi | |
3419 | 3694 |
3420 dnl HP-UX has a working alloca in libPW. | 3695 dnl HP-UX has a working alloca in libPW. |
3421 dnl case "${GCC}${opsys}" in hpux* ) | 3696 dnl case "${GCC}${opsys}" in hpux* ) |
3422 dnl AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)]) | 3697 dnl AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)]) |
3423 dnl esac | 3698 dnl esac |
3478 AC_MSG_RESULT($have_mmap) | 3753 AC_MSG_RESULT($have_mmap) |
3479 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) | 3754 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) |
3480 | 3755 |
3481 dnl rel_alloc requires either GNU malloc or system malloc with mmap | 3756 dnl rel_alloc requires either GNU malloc or system malloc with mmap |
3482 dnl We only turn rel_alloc on by default if mmap is available. | 3757 dnl We only turn rel_alloc on by default if mmap is available. |
3483 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no | 3758 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no |
3484 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes | 3759 if test "$rel_alloc $have_mmap" = "default yes"; then |
3760 if test "$doug_lea_malloc" = "yes"; then | |
3761 dnl Check if malloc() calls mmap(), making rel_alloc pointless. | |
3762 AC_MSG_CHECKING(for M_MMAP_THRESHOLD) | |
3763 AC_TRY_COMPILE([#include <malloc.h>],[ | |
3764 #ifndef M_MMAP_THRESHOLD | |
3765 #error No M_MMAP_THRESHOLD :-( | |
3766 !@+$%^&*_)(_ - unlikely to compile... | |
3767 #endif | |
3768 ], [rel_alloc=no; AC_MSG_RESULT(yes);], [rel_alloc=yes; AC_MSG_RESULT(no);]) | |
3769 else | |
3770 rel_alloc=yes | |
3771 fi | |
3772 fi | |
3485 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) | 3773 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) |
3486 | 3774 |
3487 dnl Check for terminal I/O variants | 3775 dnl Check for terminal I/O variants |
3488 dnl TERMIOS systems may have termio.h, but not vice-versa, I think. | 3776 dnl TERMIOS systems may have termio.h, but not vice-versa, I think. |
3489 AC_CHECK_HEADER(termios.h, | 3777 AC_CHECK_HEADER(termios.h, |
3590 for dir in "machine" "sys" "linux"; do | 3878 for dir in "machine" "sys" "linux"; do |
3591 AC_CHECK_HEADER(${dir}/soundcard.h, | 3879 AC_CHECK_HEADER(${dir}/soundcard.h, |
3592 sound_found=yes | 3880 sound_found=yes |
3593 need_miscplay=yes | 3881 need_miscplay=yes |
3594 XE_ADD_OBJS(linuxplay.o) | 3882 XE_ADD_OBJS(linuxplay.o) |
3595 [AC_DEFINE_UNQUOTED(SOUNDCARD_H_PATH, "${dir}/soundcard.h")] | 3883 [AC_DEFINE_UNQUOTED(SOUNDCARD_H_FILE, "${dir}/soundcard.h")] |
3596 break) | 3884 break) |
3597 done | 3885 done |
3886 fi | |
3887 | |
3888 dnl Win32 Native uses native sound | |
3889 if test -z "$sound_found"; then | |
3890 if test "$with_msw" = "yes"; then | |
3891 sound_found=yes | |
3892 native_sound_lib= | |
3893 fi | |
3598 fi | 3894 fi |
3599 | 3895 |
3600 test "$sound_found" = "yes" && with_native_sound=yes | 3896 test "$sound_found" = "yes" && with_native_sound=yes |
3601 fi | 3897 fi |
3602 | 3898 |
3665 if test -z "$with_ncurses"; then | 3961 if test -z "$with_ncurses"; then |
3666 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no) | 3962 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no) |
3667 fi | 3963 fi |
3668 if test "$with_ncurses" = "yes"; then | 3964 if test "$with_ncurses" = "yes"; then |
3669 AC_DEFINE(HAVE_NCURSES) | 3965 AC_DEFINE(HAVE_NCURSES) |
3670 AC_CHECK_HEADER(ncurses/curses.h, curses_h_path=ncurses/curses.h) | 3966 AC_CHECK_HEADER(ncurses/curses.h, curses_h_file=ncurses/curses.h) |
3671 AC_CHECK_HEADER(ncurses/term.h, term_h_path=ncurses/term.h) | 3967 AC_CHECK_HEADER(ncurses/term.h, term_h_file=ncurses/term.h) |
3672 XE_ADD_OBJS(terminfo.o) | 3968 XE_ADD_OBJS(terminfo.o) |
3673 XE_PREPEND(-lncurses, LIBS) | 3969 XE_PREPEND(-lncurses, LIBS) |
3674 | 3970 |
3675 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then | 3971 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then |
3676 dnl Try again, and check for the bogus ncurses/ include bug. | 3972 dnl Try again, and check for the bogus ncurses/ include bug. |
3677 dnl (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of | 3973 dnl (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of |
3678 dnl <ncurses/unctrl.h>) | 3974 dnl <ncurses/unctrl.h>) |
3679 save_c_switch_site="$c_switch_site" | 3975 save_c_switch_site="$c_switch_site" |
3680 c_switch_site="$c_switch_site -I/usr/include/ncurses" | 3976 c_switch_site="$c_switch_site -I/usr/include/ncurses" |
3681 AC_CHECK_HEADER(ncurses/curses.h, curses_h_path=ncurses/curses.h) | 3977 AC_CHECK_HEADER(ncurses/curses.h, curses_h_file=ncurses/curses.h) |
3682 if test "$ac_cv_header_ncurses_curses_h" = "yes" | 3978 if test "$ac_cv_header_ncurses_curses_h" = "yes" |
3683 then AC_MSG_WARN("Your system has the bogus ncurses include bug.") | 3979 then AC_MSG_WARN("Your system has the bogus ncurses include bug.") |
3684 else c_switch_site="$save_c_switch_site" | 3980 else c_switch_site="$save_c_switch_site" |
3685 fi | 3981 fi |
3686 fi | 3982 fi |
3708 AC_CHECK_LIB(termcap, tgetent, XE_PREPEND(-ltermcap, LIBS), | 4004 AC_CHECK_LIB(termcap, tgetent, XE_PREPEND(-ltermcap, LIBS), |
3709 XE_ADD_OBJS(termcap.o))) | 4005 XE_ADD_OBJS(termcap.o))) |
3710 fi | 4006 fi |
3711 fi | 4007 fi |
3712 fi | 4008 fi |
3713 AC_DEFINE_UNQUOTED(CURSES_H_PATH, "${curses_h_path-curses.h}") | 4009 AC_DEFINE_UNQUOTED(CURSES_H_FILE, "${curses_h_file-curses.h}") |
3714 AC_DEFINE_UNQUOTED(TERM_H_PATH, "${term_h_path-term.h}") | 4010 AC_DEFINE_UNQUOTED(TERM_H_FILE, "${term_h_file-term.h}") |
3715 | 4011 |
3716 dnl Autodetect gpm | 4012 dnl Autodetect gpm |
3717 test -z "$with_gpm" && { AC_CHECK_HEADER(gpm.h, , with_gpm=no) } | 4013 test -z "$with_gpm" && { AC_CHECK_HEADER(gpm.h, , with_gpm=no) } |
3718 test -z "$with_gpm" && { AC_CHECK_LIB(gpm, Gpm_Open, with_gpm=yes, with_gpm=no) } | 4014 test -z "$with_gpm" && { AC_CHECK_LIB(gpm, Gpm_Open, with_gpm=yes, with_gpm=no) } |
3719 if test "$with_gpm" = "yes"; then | 4015 if test "$with_gpm" = "yes"; then |
3777 AC_DEFINE(HAVE_DBM) | 4073 AC_DEFINE(HAVE_DBM) |
3778 | 4074 |
3779 dnl Check for Berkeley DB. | 4075 dnl Check for Berkeley DB. |
3780 if test "$with_database_berkdb" != "no"; then | 4076 if test "$with_database_berkdb" != "no"; then |
3781 AC_MSG_CHECKING(for Berkeley db.h) | 4077 AC_MSG_CHECKING(for Berkeley db.h) |
3782 for path in "db/db.h" "db.h"; do | 4078 for header in "db/db.h" "db.h"; do |
3783 AC_TRY_COMPILE([#ifdef HAVE_INTTYPES_H | 4079 AC_TRY_COMPILE([ |
4080 #include <stdlib.h> | |
4081 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) | |
4082 #ifdef HAVE_INTTYPES_H | |
3784 #define __BIT_TYPES_DEFINED__ | 4083 #define __BIT_TYPES_DEFINED__ |
3785 #include <inttypes.h> | 4084 #include <inttypes.h> |
3786 typedef uint8_t u_int8_t; | 4085 typedef uint8_t u_int8_t; |
3787 typedef uint16_t u_int16_t; | 4086 typedef uint16_t u_int16_t; |
3788 typedef uint32_t u_int32_t; | 4087 typedef uint32_t u_int32_t; |
3789 #ifdef WE_DONT_NEED_QUADS | 4088 #ifdef WE_DONT_NEED_QUADS |
3790 typedef uint64_t u_int64_t; | 4089 typedef uint64_t u_int64_t; |
3791 #endif | 4090 #endif |
3792 #endif | 4091 #endif |
3793 #include <$path> | 4092 #endif |
3794 ],[], db_h_path="$path"; break) | 4093 #include <$header> |
4094 ],[], db_h_file="$header"; break) | |
3795 done | 4095 done |
3796 if test -z "$db_h_path" | 4096 if test -z "$db_h_file" |
3797 then AC_MSG_RESULT(no); with_database_berkdb=no | 4097 then AC_MSG_RESULT(no); with_database_berkdb=no |
3798 else AC_MSG_RESULT($db_h_path) | 4098 else AC_MSG_RESULT($db_h_file) |
3799 fi | 4099 fi |
3800 | 4100 |
3801 if test "$with_database_berkdb" != "no"; then | 4101 if test "$with_database_berkdb" != "no"; then |
3802 AC_MSG_CHECKING(for Berkeley DB version) | 4102 AC_MSG_CHECKING(for Berkeley DB version) |
3803 AC_EGREP_CPP(yes, | 4103 AC_EGREP_CPP(yes, |
3804 [#include <$db_h_path> | 4104 [#include <$db_h_file> |
3805 #if DB_VERSION_MAJOR > 1 | 4105 #if DB_VERSION_MAJOR > 1 |
3806 yes | 4106 yes |
3807 #endif | 4107 #endif |
3808 ], [AC_MSG_RESULT(2); dbfunc=db_open], [AC_MSG_RESULT(1); dbfunc=dbopen]) | 4108 ], [AC_MSG_RESULT(2); dbfunc=db_open], [AC_MSG_RESULT(1); dbfunc=dbopen]) |
3809 AC_CHECK_FUNC($dbfunc, with_database_berkdb=yes need_libdb=no, [ | 4109 AC_CHECK_FUNC($dbfunc, with_database_berkdb=yes need_libdb=no, [ |
3810 AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)]) | 4110 AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)]) |
3811 fi | 4111 fi |
3812 | 4112 |
3813 if test "$with_database_berkdb" = "yes"; then | 4113 if test "$with_database_berkdb" = "yes"; then |
3814 AC_DEFINE_UNQUOTED(DB_H_PATH, "$db_h_path") | 4114 AC_DEFINE_UNQUOTED(DB_H_FILE, "$db_h_file") |
3815 AC_DEFINE(HAVE_BERKELEY_DB) | 4115 AC_DEFINE(HAVE_BERKELEY_DB) |
3816 test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS) | 4116 test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS) |
3817 else with_database_berkdb=no | 4117 else with_database_berkdb=no |
3818 fi | 4118 fi |
3819 fi | 4119 fi |
3838 | 4138 |
3839 dnl autodetect dll support | 4139 dnl autodetect dll support |
3840 if test "$with_modules" != "no"; then | 4140 if test "$with_modules" != "no"; then |
3841 AC_CHECKING(for module support) | 4141 AC_CHECKING(for module support) |
3842 | 4142 |
3843 dnl Find headers and libraries | 4143 dnl Check for MS-Windows |
3844 AC_CHECK_HEADER(dlfcn.h, [ | 4144 if test "$with_msw" = "yes"; then |
3845 AC_CHECK_LIB(dl, dlopen, [ have_dl=yes libdl=dl], [ | 4145 have_dl=yes; |
3846 AC_CHECK_LIB(c, dlopen, [ have_dl=yes ])])]) | |
3847 if test -n "$have_dl"; then | |
3848 AC_DEFINE(HAVE_DLOPEN) | |
3849 else | 4146 else |
3850 AC_CHECK_LIB(dld, shl_load, [ | 4147 dnl Find headers and libraries |
3851 libdl=dld have_dl=yes; | 4148 AC_CHECK_HEADER(dlfcn.h, [ |
3852 AC_DEFINE(HAVE_SHL_LOAD)], [ | 4149 AC_CHECK_LIB(dl, dlopen, [ have_dl=yes libdl=dl], [ |
3853 AC_CHECK_LIB(dld, dld_init, [ | 4150 AC_CHECK_LIB(c, dlopen, [ have_dl=yes ])])]) |
3854 libdl=dld have_dl=yes; | 4151 if test -n "$have_dl"; then |
3855 AC_DEFINE(HAVE_DLD_INIT)])]) | 4152 AC_DEFINE(HAVE_DLOPEN) |
3856 fi | 4153 else |
4154 AC_CHECK_LIB(dld, shl_load, [ | |
4155 libdl=dld have_dl=yes; | |
4156 AC_DEFINE(HAVE_SHL_LOAD)], [ | |
4157 AC_CHECK_LIB(dld, dld_init, [ | |
4158 libdl=dld have_dl=yes; | |
4159 AC_DEFINE(HAVE_DLD_INIT)])]) | |
4160 fi | |
4161 fi dnl end !MS-Windows | |
3857 | 4162 |
3858 if test -n "$have_dl"; then | 4163 if test -n "$have_dl"; then |
3859 dnl XE_SHLIB_STUFF (in aclocal.m4) defines $can_build_shared | 4164 dnl XE_SHLIB_STUFF (in aclocal.m4) defines $can_build_shared |
3860 XE_SHLIB_STUFF | 4165 XE_SHLIB_STUFF |
3861 fi | 4166 fi |
4125 *\$* ) eval "ETCDIR=$ETCDIR" ;; | 4430 *\$* ) eval "ETCDIR=$ETCDIR" ;; |
4126 *) break ;; | 4431 *) break ;; |
4127 esac | 4432 esac |
4128 done | 4433 done |
4129 AC_SUBST(ETCDIR) | 4434 AC_SUBST(ETCDIR) |
4130 | |
4131 AC_SUBST(lockdir) | |
4132 AC_SUBST(LOCKDIR_USER_DEFINED) | |
4133 LOCKDIR=$lockdir | |
4134 while true; do | |
4135 case "$LOCKDIR" in | |
4136 *\$* ) eval "LOCKDIR=$LOCKDIR" ;; | |
4137 *) break ;; | |
4138 esac | |
4139 done | |
4140 AC_SUBST(LOCKDIR) | |
4141 | 4435 |
4142 AC_SUBST(docdir) | 4436 AC_SUBST(docdir) |
4143 AC_SUBST(DOCDIR_USER_DEFINED) | 4437 AC_SUBST(DOCDIR_USER_DEFINED) |
4144 DOCDIR=$docdir | 4438 DOCDIR=$docdir |
4145 while true; do | 4439 while true; do |
4212 fi | 4506 fi |
4213 | 4507 |
4214 XE_SPACE(ac_configure_args, $ac_configure_args) | 4508 XE_SPACE(ac_configure_args, $ac_configure_args) |
4215 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$configuration") | 4509 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$configuration") |
4216 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") | 4510 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") |
4217 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") | |
4218 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile") | |
4219 | 4511 |
4220 dnl Following are deprecated | 4512 dnl Following are deprecated |
4221 | 4513 |
4222 null_string="" | 4514 null_string="" |
4223 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, $null_string) | 4515 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, $null_string) |
4238 AC_DEFINE(USE_SYSTEM_MALLOC) | 4530 AC_DEFINE(USE_SYSTEM_MALLOC) |
4239 fi | 4531 fi |
4240 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3) | 4532 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3) |
4241 test "$GCC" = "yes" && AC_DEFINE(USE_GCC) | 4533 test "$GCC" = "yes" && AC_DEFINE(USE_GCC) |
4242 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) | 4534 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) |
4243 test "$no_doc_file" = "yes" && AC_DEFINE(NO_DOC_FILE) | 4535 test "$quick_build" = "yes" && AC_DEFINE(QUICK_BUILD) |
4244 dnl test "$const_is_losing" = "yes" && AC_DEFINE(CONST_IS_LOSING) | |
4245 test "$with_purify" = "yes" && AC_DEFINE(PURIFY) | 4536 test "$with_purify" = "yes" && AC_DEFINE(PURIFY) |
4246 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) | 4537 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) |
4247 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) | 4538 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) |
4248 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) | 4539 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) |
4249 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) | 4540 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) |
4278 dnl Start stdout redirection to '| tee -a Installation' | 4569 dnl Start stdout redirection to '| tee -a Installation' |
4279 ( | 4570 ( |
4280 echo " | 4571 echo " |
4281 | 4572 |
4282 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'. | 4573 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'. |
4283 | 4574 " |
4284 Where should the build process find the source code? $srcdir | 4575 echo " |
4285 What installation prefix should install use? $prefix | 4576 Compilation / Installation:" |
4286 What operating system and machine description files should XEmacs use? | 4577 echo " Source code location: $srcdir" |
4287 \`$opsysfile' and \`$machfile' | 4578 echo " Installation prefix: $prefix" |
4288 What compiler should XEmacs be built with? $CC $CFLAGS | 4579 if test -n "$site_includes"; then |
4289 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | 4580 echo " Additional header files: $site_includes" |
4290 Should XEmacs use the relocating allocator for buffers? $rel_alloc | 4581 fi |
4291 What window system should XEmacs use? ${window_system}" | 4582 if test -n "$site_libraries"; then |
4583 echo " Additional libraries: $site_libraries" | |
4584 fi | |
4585 if test -n "$site_prefixes"; then | |
4586 echo " Additional prefixes: $site_prefixes" | |
4587 fi | |
4588 if test -n "$runpath"; then | |
4589 echo " Runtime library search path: $runpath" | |
4590 fi | |
4591 | |
4592 if test -n "$opsysfile" | |
4593 then echo " Operating system description file: \`$opsysfile'" | |
4594 else echo " Not using any operating system description file" | |
4595 fi | |
4596 if test -n "$machfile" | |
4597 then echo " Machine description file: \`$machfile'" | |
4598 else echo " Not using any machine description file" | |
4599 fi | |
4600 | |
4601 echo " Compiler: $CC $CFLAGS" | |
4602 echo " Relocating allocator for buffers: $rel_alloc" | |
4603 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}" | |
4604 | |
4605 echo " | |
4606 Window System:" | |
4607 if test "$with_msw" = "yes"; then | |
4608 echo " Compiling in support for the Microsoft window system." | |
4609 fi | |
4292 if test "$with_x11" = "yes"; then | 4610 if test "$with_x11" = "yes"; then |
4293 echo " Where do we find X Windows header files? $x_includes" | 4611 echo " Compiling in support for the X window system:" |
4294 echo " Where do we find X Windows libraries? $x_libraries" | 4612 echo " - X Windows headers location: $x_includes" |
4295 fi | 4613 echo " - X Windows libraries location: $x_libraries" |
4296 if test -n "$site_includes"; then | 4614 if test "$with_xauth" != yes; then |
4297 echo " Additional header files: $site_includes" | 4615 echo " - Xau (X authority) not available." |
4298 fi | 4616 fi |
4299 if test -n "$site_libraries"; then | 4617 if test "$with_xmu" != yes; then |
4300 echo " Additional libraries: $site_libraries" | 4618 echo " - Xmu library not available; substituting equivalent routines." |
4301 fi | 4619 fi |
4302 if test -n "$site_prefixes"; then | 4620 if test "$with_wmcommand" != no; then |
4303 echo " Additional prefixes: $site_prefixes" | 4621 echo " - Handling WM_COMMAND properly." |
4304 fi | 4622 fi |
4305 if test -n "$runpath"; then | 4623 fi |
4306 echo " Runtime library search path: $runpath" | 4624 if test "$need_athena" = "yes"; then |
4307 fi | 4625 echo " Compiling in support for the Athena widget set:" |
4308 if test "$have_xaw" = "yes"; then | 4626 echo " - Athena headers location: $athena_h_path" |
4309 echo " Athena library to link: $athena_lib" | 4627 echo " - Athena library to link: $athena_lib" |
4310 echo " Athena header include path: $athena_h_path" | 4628 fi |
4311 fi | |
4312 test "$with_dnet" = yes && echo " Compiling in support for DNET." | |
4313 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | |
4314 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." | |
4315 if test "$with_xmu" != yes -a "$with_x11" = yes; then | |
4316 echo " No Xmu; substituting equivalent routines." | |
4317 fi | |
4318 | |
4319 if test "$with_xpm" = yes; then | |
4320 echo " Compiling in support for XPM images." | |
4321 elif test "$with_x11" = yes; then | |
4322 echo " --------------------------------------------------------------------" | |
4323 echo " WARNING: Compiling without XPM support." | |
4324 if test "$xpm_problem" != ""; then | |
4325 echo " Reason: $xpm_problem" | |
4326 fi | |
4327 echo " WARNING: You should strongly consider installing XPM." | |
4328 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." | |
4329 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
4330 echo " --------------------------------------------------------------------" | |
4331 fi | |
4332 if test "$with_png" = yes; then | |
4333 echo " Compiling in support for PNG image handling." | |
4334 elif test "$window_system" != "none"; then | |
4335 echo " --------------------------------------------------------------------" | |
4336 echo " WARNING: Compiling without PNG image support." | |
4337 if test "$png_problem" != ""; then | |
4338 echo " Reason: $png_problem" | |
4339 fi | |
4340 echo " WARNING: You should strongly consider installing the PNG libraries." | |
4341 echo " WARNING: Otherwise certain images and glyphs may not display." | |
4342 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
4343 echo " --------------------------------------------------------------------" | |
4344 fi | |
4345 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling." | |
4346 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling." | |
4347 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling." | |
4348 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | |
4349 | |
4350 test "$with_native_sound" = yes && echo " Compiling in native sound support." | |
4351 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support." | |
4352 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously." | |
4353 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)." | |
4354 | |
4355 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." | |
4356 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." | |
4357 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." | |
4358 | |
4359 test "$with_ldap" = yes && echo " Compiling in support for LDAP." | |
4360 | |
4361 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." | |
4362 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." | |
4363 | |
4364 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." | |
4365 test "$with_file_coding" = yes && echo " Compiling in File coding support." | |
4366 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." | |
4367 test "$with_xim" = motif && echo " Using Motif to provide XIM support." | |
4368 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." | |
4369 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar." | |
4370 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | |
4371 if test "$with_wnn" = yes; then | |
4372 echo " Compiling in support for the WNN input method on Mule." | |
4373 test "$with_wnn6" = yes && echo " Using WNN version 6." | |
4374 fi | |
4375 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." | |
4376 | |
4377 test "$with_cde" = yes && echo " Compiling in support for CDE." | |
4378 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | |
4379 test "$with_offix" = yes && echo " Compiling in support for OffiX." | |
4380 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )." | |
4381 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." | |
4382 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling." | |
4383 case "$with_menubars" in | 4629 case "$with_menubars" in |
4384 lucid ) echo " Using Lucid menubars." ;; | 4630 lucid ) echo " Using Lucid menubars." ;; |
4385 motif ) echo " Using Motif menubars." | 4631 motif ) echo " Using Motif menubars." |
4386 echo " *WARNING* The Motif menubar implementation is currently buggy." | 4632 echo " *WARNING* The Motif menubar implementation is currently buggy." |
4387 echo " We recommend using the Lucid menubar instead." | 4633 echo " We recommend using the Lucid menubar instead." |
4388 echo " Re-run configure with --with-menubars='lucid'." ;; | 4634 echo " Re-run configure with --with-menubars='lucid'." ;; |
4389 msw ) echo " Using MS-Windows menubars." ;; | 4635 msw ) echo " Using MS-Windows menubars." ;; |
4390 esac | 4636 esac |
4391 case "$with_scrollbars" in | 4637 case "$with_scrollbars" in |
4392 lucid ) echo " Using Lucid scrollbars." ;; | 4638 lucid ) echo " Using Lucid scrollbars." ;; |
4393 motif ) echo " Using Motif scrollbars." ;; | 4639 motif ) echo " Using Motif scrollbars." ;; |
4394 athena ) echo " Using Athena scrollbars." ;; | 4640 athena ) echo " Using Athena scrollbars." ;; |
4395 msw ) echo " Using MS-Windows scrollbars." ;; | 4641 msw ) echo " Using MS-Windows scrollbars." ;; |
4642 esac | |
4643 case "$with_dialogs" in | |
4644 motif ) echo " Using Motif dialog boxes." | |
4645 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then | |
4646 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." | |
4647 echo " We recommend using the Athena dialog boxes instead." | |
4648 echo " Install libXaw and re-run configure with --with-dialogs='athena'." | |
4649 echo " Read the PROBLEMS file for more information." | |
4650 fi; fi ;; | |
4651 athena ) echo " Using Athena dialog boxes." ;; | |
4652 msw ) echo " Using MS-Windows dialog boxes." ;; | |
4396 esac | 4653 esac |
4397 case "$with_widgets" in | 4654 case "$with_widgets" in |
4398 motif ) echo " Using Motif native widgets." ;; | 4655 motif ) echo " Using Motif native widgets." ;; |
4399 athena ) echo " Using Athena native widgets." ;; | 4656 athena ) echo " Using Athena native widgets." ;; |
4400 msw ) echo " Using MS-Windows native widgets." ;; | 4657 msw ) echo " Using MS-Windows native widgets." ;; |
4401 esac | 4658 esac |
4402 case "$with_dialogs" in | 4659 if test "$with_dragndrop" = yes; then |
4403 motif ) | 4660 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)." |
4404 echo " Using Motif dialog boxes." | 4661 echo " - Drag'n'Drop prototype: $dragndrop_proto." |
4405 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then | 4662 fi |
4406 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." | 4663 |
4407 echo " We recommend using the Athena dialog boxes instead." | 4664 echo " |
4408 echo " Install libXaw and re-run configure with --with-dialogs='athena'." | 4665 TTY:" |
4409 echo " Read the PROBLEMS file for more information." | 4666 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." |
4410 fi; fi | 4667 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." |
4411 ;; | 4668 |
4412 athena ) echo " Using Athena dialog boxes." ;; | 4669 echo " |
4413 msw ) echo " Using MS-Windows dialog boxes." ;; | 4670 Images:" |
4414 esac | 4671 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)." |
4415 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support." | 4672 if test "$with_xpm" = yes; then |
4416 test "$with_clash_detection" = yes && \ | 4673 echo " Compiling in support for XPM images." |
4417 echo " Clash detection will use \"$lockdir\" for locking files." | 4674 elif test "$with_x11" = yes; then |
4418 echo " movemail will use \"$mail_locking\" for locking mail spool files." | 4675 echo " WARNING: -----------------------------------------------------------" |
4419 test "$with_pop" = yes && echo " Using POP for mail access." | 4676 echo " WARNING: Compiling without XPM image support." |
4420 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication." | 4677 if test "$xpm_problem" != ""; then |
4421 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host." | 4678 echo " Reason: $xpm_problem" |
4422 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." | 4679 fi |
4423 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)." | 4680 echo " WARNING: You should strongly consider installing XPM." |
4424 test "$debug" = yes && echo " Compiling in extra code for debugging." | 4681 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." |
4425 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." | 4682 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" |
4426 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ | 4683 echo " WARNING: -----------------------------------------------------------" |
4427 != "no no no no no"; then | 4684 fi |
4685 if test "$with_png" = yes; then | |
4686 echo " Compiling in support for PNG images." | |
4687 elif test "$window_system" != "none"; then | |
4688 echo " WARNING: -----------------------------------------------------------" | |
4689 echo " WARNING: Compiling without PNG image support." | |
4690 if test "$png_problem" != ""; then | |
4691 echo " Reason: $png_problem" | |
4692 fi | |
4693 echo " WARNING: You should strongly consider installing the PNG libraries." | |
4694 echo " WARNING: Otherwise certain images and glyphs may not display." | |
4695 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
4696 echo " WARNING: -----------------------------------------------------------" | |
4697 fi | |
4698 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images." | |
4699 test "$with_tiff" = yes && echo " Compiling in support for TIFF images." | |
4700 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | |
4701 | |
4702 echo " | |
4703 Sound:" | |
4704 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)." | |
4705 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)." | |
4706 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously." | |
4707 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)." | |
4708 | |
4709 echo " | |
4710 Databases:" | |
4711 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database." | |
4712 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." | |
4713 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." | |
4714 test "$with_ldap" = yes && echo " Compiling in support for LDAP." | |
4715 if test "$with_postgresql" = yes; then | |
4716 echo " Compiling in support for PostgreSQL." | |
4717 echo " - Using PostgreSQL header file: $libpq_fe_h_file" | |
4718 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings." | |
4719 fi | |
4720 | |
4721 echo " | |
4722 Internationalization:" | |
4723 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." | |
4724 test "$with_file_coding" = yes && echo " Compiling in support for file coding." | |
4725 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)." | |
4726 test "$with_xim" = motif && echo " - Using Motif to provide XIM support." | |
4727 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support." | |
4728 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar." | |
4729 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | |
4730 if test "$with_wnn" = yes; then | |
4731 echo " Compiling in support for the WNN input method on Mule." | |
4732 test "$with_wnn6" = yes && echo " - Using WNN version 6." | |
4733 fi | |
4734 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)." | |
4735 | |
4736 echo " | |
4737 Mail:" | |
4738 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval." | |
4739 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication." | |
4740 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access." | |
4741 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method." | |
4742 | |
4743 echo " | |
4744 Other Features:" | |
4745 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | |
4746 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." | |
4747 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | |
4748 test "$with_dnet" = yes && echo " Compiling in support for DNET." | |
4749 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." | |
4750 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." | |
4751 test "$pdump" = yes && echo " Using the new portable dumper." | |
4752 test "$debug" = yes && echo " Compiling in support for extra debugging code." | |
4753 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)." | |
4754 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \ | |
4755 != "no no no no no no"; then | |
4428 echo " WARNING: ---------------------------------------------------------" | 4756 echo " WARNING: ---------------------------------------------------------" |
4429 echo " WARNING: Compiling in support for runtime error checking." | 4757 echo " WARNING: Compiling in support for runtime error checking." |
4430 echo " WARNING: XEmacs will run noticeably more slowly as a result." | 4758 echo " WARNING: XEmacs will run noticeably more slowly as a result." |
4431 echo " WARNING: Error checking is on by default for XEmacs beta releases." | 4759 echo " WARNING: Error checking is on by default for XEmacs beta releases." |
4432 echo " WARNING: ---------------------------------------------------------" | 4760 echo " WARNING: ---------------------------------------------------------" |
4492 | sed -e 's/^\#.*//' \ | 4820 | sed -e 's/^\#.*//' \ |
4493 dnl Delete spurious blanks inserted by $CPP | 4821 dnl Delete spurious blanks inserted by $CPP |
4494 -e 's/^[ TAB][ TAB]*$//'\ | 4822 -e 's/^[ TAB][ TAB]*$//'\ |
4495 -e 's/^ /TAB/' \ | 4823 -e 's/^ /TAB/' \ |
4496 dnl Delete blank lines | 4824 dnl Delete blank lines |
4497 | sed -n -e '/^..*$/p' \ | 4825 -e '/^[ ]*$/d' \ |
4498 dnl Restore lines quoted above to original contents. | 4826 dnl Restore lines quoted above to original contents. |
4499 | sed '/^\"/ { | 4827 -e '/^\"/ { |
4500 s/\\\([\"]\)/\1/g | 4828 s/\\\([\"]\)/\1/g |
4501 s/^[ TAB]*\"// | 4829 s/^[ TAB]*\"// |
4502 s/\"[ TAB]*$// | 4830 s/\"[ TAB]*$// |
4503 }' > Makefile.new | 4831 }' > Makefile.new |
4504 chmod 444 Makefile.new | 4832 chmod 444 Makefile.new |