3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.12
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
11 ### Don't edit this script!
12 ### This script was automatically generated by the `autoconf' program
13 ### from the file `./configure.in'.
14 ### To rebuild it, execute the command
16 ### in the this directory. You must have autoconf version 2.12 or later.
18 ### This file is part of XEmacs.
20 ### XEmacs is free software; you can redistribute it and/or modify it
21 ### under the terms of the GNU General Public License as published by
22 ### the Free Software Foundation; either version 2, or (at your
23 ### option) any later version.
25 ### XEmacs is distributed in the hope that it will be useful, but
26 ### WITHOUT ANY WARRANTY; without even the implied warranty of
27 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 ### General Public License for more details.
30 ### You should have received a copy of the GNU General Public License
31 ### along with XEmacs; see the file COPYING. If not, write to the Free
32 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
35 ### For usage, run `./configure --help'
36 ### For more detailed information on building and installing XEmacs,
37 ### read the file `INSTALL'.
39 ### If configure succeeds, it leaves its status in config.status.
40 ### A log of configuration tests can be found in config.log.
41 ### If configure fails after disturbing the status quo,
42 ### config.status is removed.
45 --with-x use the X Window System"
49 if test -n "$ZSH_VERSION"; then
50 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
51 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
52 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
53 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
54 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
55 elif test -n "$BASH_VERSION"; then
59 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
70 program_transform_name=s,x,x,
79 bindir='${exec_prefix}/bin'
80 sbindir='${exec_prefix}/sbin'
81 libexecdir='${exec_prefix}/libexec'
82 datadir='${prefix}/share'
83 sysconfdir='${prefix}/etc'
84 sharedstatedir='${prefix}/com'
85 localstatedir='${prefix}/var'
86 libdir='${{exec_prefix}}/lib'
87 includedir='${prefix}/include'
88 oldincludedir='/usr/include'
89 infodir='${prefix}/info'
90 mandir='${prefix}/man'
96 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
98 # File descriptor usage:
101 # 2 errors and warnings
102 # 3 some systems may open it to /dev/tty
103 # 4 used on the Kubota Titan
104 # 6 checking for... messages and results
105 # 5 compiler messages saved in config.log
106 if test "$silent" = yes; then
114 This file contains any messages produced by compilers while
115 running configure, to aid debugging if configure makes a mistake.
118 # Strip out --no-create and --no-recursion so they do not pile up.
119 # Also quote any args containing shell metacharacters.
124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
125 | --no-cr | --no-c) ;;
126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
129 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
130 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
135 # Only set these to C if already set. These must not be set unconditionally
136 # because not all systems understand e.g. LANG=C (notably SCO).
137 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
138 # Non-C LC_CTYPE values break the ctype check.
139 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
140 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
141 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
142 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
145 rm -rf conftest* confdefs.h
146 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
149 # A filename unique to this package, relative to the directory that
150 # configure is in, which we can look for to find out if srcdir is correct.
151 ac_unique_file=src/lisp.h
153 # Find the source files, if location was not specified.
154 if test -z "$srcdir"; then
155 ac_srcdir_defaulted=yes
156 # Try the directory containing this script, then its parent.
158 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
159 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
161 if test ! -r $srcdir/$ac_unique_file; then
165 ac_srcdir_defaulted=no
167 if test ! -r $srcdir/$ac_unique_file; then
168 if test "$ac_srcdir_defaulted" = yes; then
169 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
171 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
174 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
176 # Prefer explicitly selected file to automatically selected ones.
177 if test -z "$CONFIG_SITE"; then
178 if test "x$prefix" != xNONE; then
179 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
181 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
184 for ac_site_file in $CONFIG_SITE; do
185 if test -r "$ac_site_file"; then
186 echo "loading site script $ac_site_file"
193 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
194 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
195 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
196 ac_cpp='$CPP '"$xe_cppflags"
197 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
198 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
201 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
202 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
203 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
210 ac_n= ac_c='\c' ac_t=
214 progname="`echo $0 | sed 's:^\./\./:\./:'`"
217 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
218 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
221 exec_prefix='${prefix}'
222 bindir='${exec_prefix}/bin'
223 datadir='${prefix}/lib'
224 statedir='${prefix}/lib'
225 libdir='${exec_prefix}/lib'
226 mandir='${prefix}/man/man1'
227 infodir='${datadir}/${PROGNAME}-${version}/info'
230 lispdir='${datadir}/${PROGNAME}-${version}/lisp'
231 pkgdir='${datadir}/${PROGNAME}-${version}/lisp'
233 etcdir='${datadir}/${PROGNAME}-${version}/etc'
234 lockdir='${statedir}/${PROGNAME}/lock'
235 archlibdir='${libdir}/${PROGNAME}-${version}/${configuration}'
242 cpp='' cppflags='' libs='' ldflags=''
247 with_system_malloc='default'
248 with_dlmalloc='default'
261 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 | --no-cr | --no-c) ;;
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
270 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
271 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
275 while test $# != 0; do
278 --no-create|--no-recursion) ;;
282 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
283 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
287 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
288 val="yes" valomitted=yes
293 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
295 case "${valomitted}-${opt}" in yes-without_* )
296 opt=`echo $opt | sed 's/without/with/'`
297 valomitted="no" val="no" ;;
352 use_minimal_tagbits | \
353 use_indexed_lrecord_implementation | \
354 memory_usage_stats | \
355 with_clash_detection | \
359 y | ye | yes ) val=yes ;;
361 * ) (echo "$progname: Usage error:"
362 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
363 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
365 eval "$opt=\"$val\"" ;;
384 site_runtime_libraries )
385 if test "$valomitted" = "yes" ; then
386 if test "$#" = 0 ; then
387 (echo "$progname: Usage error:"
388 echo " " "The \`--$optname' option requires a value."
389 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
398 with_debug_malloc | use_debug_malloc | \
399 with_system_malloc | use_system_malloc )
401 y | ye | yes ) val=yes ;;
403 d | de | def | defa | defau | defaul | default ) val=default ;;
404 * ) (echo "$progname: Usage error:"
405 echo " " "The \`--$optname' option requires one of these values:
406 \`yes', \`no', or \`default'."
407 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
409 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
414 with_database_berkdb=no
416 with_database_gnudbm=no
417 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
420 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
421 d | db | dbm ) with_database_dbm=yes ;;
422 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
423 * ) (echo "$progname: Usage error:"
424 echo " " "The \`--$optname' option value
425 must be either \`no' or a comma-separated list
426 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
427 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
430 if test "$with_database_dbm" = "yes" -a \
431 "$with_database_gnudbm" = "yes"; then
432 (echo "$progname: Usage error:"
433 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
434 with the \`--$optname' option."
435 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
441 y | ye | yes ) val=native ;;
442 n | no | non | none ) val=no;;
443 na | nat | nati | nativ | native ) val=native ;;
444 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
445 b | bo | bot | both ) val=both;;
446 * ) (echo "$progname: Usage error:"
447 echo " " "The \`--$optname' option must have one of these values:
448 \`native', \`nas', \`both', or \`none'."
449 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
456 y | ye | yes ) val=yes ;;
457 n | no | non | none ) val=no ;;
458 x | xl | xli | xlib ) val=xlib ;;
459 m | mo | mot | moti | motif ) val=motif ;;
460 * ) (echo "$progname: Usage error:"
461 echo " " "The \`--$optname' option must have one of these values:
462 \`motif', \`xlib', \`yes', or \`no'."
463 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
473 * ) (echo "$progname: Usage error:"
474 echo " " "The \`--$optname' option must have one of these values:
475 \`lockf', \`flock', or \`file'."
476 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
483 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
485 n | no | non | none ) new_default=no ;;
486 a | al | all ) new_default=yes ;;
488 extents ) error_check_extents=yes ;;
489 noextents ) error_check_extents=no ;;
491 typecheck ) error_check_typecheck=yes ;;
492 notypecheck ) error_check_typecheck=no ;;
494 bufpos ) error_check_bufpos=yes ;;
495 nobufpos ) error_check_bufpos=no ;;
497 gc ) error_check_gc=yes ;;
498 nogc ) error_check_gc=no ;;
500 malloc ) error_check_malloc=yes ;;
501 nomalloc ) error_check_malloc=no ;;
503 * ) bogus_error_check=yes ;;
505 if test "$bogus_error_check" -o \
506 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
507 if test "$error_check_default" = yes ; then
508 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
510 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
512 (echo "$progname: Usage error:"
513 echo " " "Valid types for the \`--$optname' option are:
515 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
516 elif test -n "$new_default" ; then
517 error_check_extents=$new_default
518 error_check_typecheck=$new_default
519 error_check_bufpos=$new_default
520 error_check_gc=$new_default
521 error_check_malloc=$new_default
522 new_default= # reset this
529 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
530 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
531 archlibdir | docdir | package_path )
532 if test "$valomitted" = "yes"; then
533 if test "$#" = 0; then
534 (echo "$progname: Usage error:"
535 echo " " "The \`--$optname' option requires a value."
536 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
543 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
544 Defining LISPDIR_USER_DEFINED
546 cat >> confdefs.h <<\EOF
547 #define LISPDIR_USER_DEFINED 1
551 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
552 Defining ETCDIR_USER_DEFINED
554 cat >> confdefs.h <<\EOF
555 #define ETCDIR_USER_DEFINED 1
559 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
560 Defining INFODIR_USER_DEFINED
562 cat >> confdefs.h <<\EOF
563 #define INFODIR_USER_DEFINED 1
567 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
568 Defining INFOPATH_USER_DEFINED
570 cat >> confdefs.h <<\EOF
571 #define INFOPATH_USER_DEFINED 1
575 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
576 Defining PACKAGE_PATH_USER_DEFINED
578 cat >> confdefs.h <<\EOF
579 #define PACKAGE_PATH_USER_DEFINED 1
584 { test "$extra_verbose" = "yes" && cat << \EOF
585 Defining INFODIR_USER_DEFINED
587 cat >> confdefs.h <<\EOF
588 #define INFODIR_USER_DEFINED 1
592 { test "$extra_verbose" = "yes" && cat << \EOF
593 Defining LISPDIR_USER_DEFINED
595 cat >> confdefs.h <<\EOF
596 #define LISPDIR_USER_DEFINED 1
600 { test "$extra_verbose" = "yes" && cat << \EOF
601 Defining ETCDIR_USER_DEFINED
603 cat >> confdefs.h <<\EOF
604 #define ETCDIR_USER_DEFINED 1
608 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
609 Defining LOCKDIR_USER_DEFINED
611 cat >> confdefs.h <<\EOF
612 #define LOCKDIR_USER_DEFINED 1
616 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
617 Defining ARCHLIBDIR_USER_DEFINED
619 cat >> confdefs.h <<\EOF
620 #define ARCHLIBDIR_USER_DEFINED 1
629 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
632 "with_scrollbars" | \
635 l | lu | luc | luci | lucid ) val=lucid ;;
636 m | mo | mot | moti | motif ) val=motif ;;
637 athena3d | athena-3d ) val=athena3d ;;
638 a | at | ath | athe | athen | athena ) val=athena ;;
639 n | no | non | none ) val=no ;;
640 * ) (echo "$progname: Usage error:"
641 echo " " "The \`--$optname' option must have one of these values:
642 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
643 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
650 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
653 * ) (echo "$progname: Usage error:"
654 echo " " "Unrecognized option: $arg"
655 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
660 *-*-*) configuration="$arg" ;;
662 *) (echo "$progname: Usage error:"
663 echo " " "Unrecognized argument: $arg"
664 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
670 test -n "$cpp" && CPP="$cpp"
671 test -n "$cppflags" && CPPFLAGS="$cppflags"
672 test -n "$libs" && LIBS="$libs"
673 test -n "$ldflags" && LDFLAGS="$ldflags"
675 eval set x "$quoted_arguments"; shift
677 test "$extra_verbose" = "yes" && verbose=yes
679 test -n "$with_x" && with_x11="$with_x"
681 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
682 test "$with_system_malloc" = "default" && with_system_malloc=yes
685 if test -n "$gung_ho"; then
686 test -z "$use_minimal_tagbits" && use_minimal_tagbits="$gung_ho"
687 test -z "$use_indexed_lrecord_implementation" && \
688 use_indexed_lrecord_implementation="$gung_ho"
690 if test "$use_minimal_tagbits" = "no"; then
691 test "$with_dlmalloc" = "yes" && \
692 (echo "$progname: Usage error:"
693 echo " " "--with-dlmalloc requires --use-minimal-tagbits"
694 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
700 if test "$with_cde $with_tooltalk" = "yes no"; then
701 (echo "$progname: Usage error:"
702 echo " " "--with-cde requires --with-tooltalk"
703 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
704 elif test "$with_tooltalk" = "no" ; then with_cde=no
705 elif test "$with_cde" = "yes"; then with_tooltalk=yes
712 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
713 if test -f "$dir/src/lisp.h" -a \
714 -f "$dir/lisp/version.el" ; then
719 if test -z "$srcdir" ; then
720 (echo "$progname: Usage error:"
721 echo " " "Neither the current directory nor its parent seem to
722 contain the XEmacs sources. If you do not want to build XEmacs in its
723 source tree, you should run \`$progname' in the directory in which
724 you wish to build XEmacs, using the \`--srcdir' option to say where the
725 sources may be found."
726 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
731 if test ! -f "$srcdir/src/lisp.h" -o \
732 ! -f "$srcdir/lisp/version.el" ; then
733 (echo "$progname: Usage error:"
734 echo " " "The directory specified with the \`--srcdir' option,
735 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
736 either run the \`$progname' script at the top of the XEmacs source
737 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
738 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
743 if test -z "$configuration"; then
744 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
745 if test -z "$configuration"; then
746 (echo "$progname: Usage error:"
747 echo " " "XEmacs has not been ported to this host type.
748 Try explicitly specifying the CONFIGURATION when rerunning configure."
749 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
753 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
754 echo "configure:755: checking whether ln -s works" >&5
757 if ln -s X conftestdata 2>/dev/null
760 ac_cv_prog_LN_S="ln -s"
764 LN_S="$ac_cv_prog_LN_S"
765 if test "$ac_cv_prog_LN_S" = "ln -s"; then
766 echo "$ac_t""yes" 1>&6
768 echo "$ac_t""no" 1>&6
772 for dir in lisp etc man info; do
773 if test ! -d "$dir" ; then
774 echo Making symbolic link to "$srcdir/$dir"
775 ${LN_S} "$srcdir/$dir" "$dir"
779 absolute_pwd="`pwd`";
780 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
782 else blddir="$absolute_pwd"
788 . ) srcdir="$blddir" ;;
789 * ) srcdir="`cd $srcdir && pwd`" ;;
792 if test `pwd` != `sh -c cd $srcdir && pwd` \
793 && test -f "$srcdir/src/config.h"; then
794 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
795 echo " as a build directory right now; it has been configured in its own"
796 echo " right. To configure in another directory as well, you MUST"
797 echo " use GNU make. If you do not have GNU make, then you must"
798 echo " now do \`make distclean' in $srcdir,"
799 echo " and then run $progname again.") >&2
800 extrasub='/^VPATH[ ]*=/c\
806 vpath %.in $(srcdir)'
809 . "$srcdir/version.sh" || exit 1;
810 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
811 : "${extra_verbose=$beta}"
812 version="${emacs_major_version}.${emacs_minor_version}"
813 { test "$extra_verbose" = "yes" && cat << EOF
814 Defining EMACS_MAJOR_VERSION = $emacs_major_version
816 cat >> confdefs.h <<EOF
817 #define EMACS_MAJOR_VERSION $emacs_major_version
821 { test "$extra_verbose" = "yes" && cat << EOF
822 Defining EMACS_MINOR_VERSION = $emacs_minor_version
824 cat >> confdefs.h <<EOF
825 #define EMACS_MINOR_VERSION $emacs_minor_version
829 if test -n "$emacs_beta_version"; then
830 version="${version}-b${emacs_beta_version}"
831 { test "$extra_verbose" = "yes" && cat << EOF
832 Defining EMACS_BETA_VERSION = $emacs_beta_version
834 cat >> confdefs.h <<EOF
835 #define EMACS_BETA_VERSION $emacs_beta_version
840 { test "$extra_verbose" = "yes" && cat << EOF
841 Defining XEMACS_CODENAME = "$xemacs_codename"
843 cat >> confdefs.h <<EOF
844 #define XEMACS_CODENAME "$xemacs_codename"
848 { test "$extra_verbose" = "yes" && cat << EOF
849 Defining EMACS_VERSION = "$version"
851 cat >> confdefs.h <<EOF
852 #define EMACS_VERSION "$version"
857 if test "$with_infodock" = "yes"; then
858 if test ! -f ../ID-INSTALL; then
859 echo "Cannot build InfoDock without InfoDock sources"
864 if test "$with_infodock" = "yes"; then
865 { test "$extra_verbose" = "yes" && cat << EOF
866 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
868 cat >> confdefs.h <<EOF
869 #define INFODOCK_MAJOR_VERSION $infodock_major_version
873 { test "$extra_verbose" = "yes" && cat << EOF
874 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
876 cat >> confdefs.h <<EOF
877 #define INFODOCK_MINOR_VERSION $infodock_minor_version
881 { test "$extra_verbose" = "yes" && cat << EOF
882 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
884 cat >> confdefs.h <<EOF
885 #define INFODOCK_BUILD_VERSION $infodock_build_version
889 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
891 CPPFLAGS="$CPPFLAGS -DINFODOCK"
896 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
897 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
898 Defining ERROR_CHECK_EXTENTS
900 cat >> confdefs.h <<\EOF
901 #define ERROR_CHECK_EXTENTS 1
905 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
906 Defining ERROR_CHECK_TYPECHECK
908 cat >> confdefs.h <<\EOF
909 #define ERROR_CHECK_TYPECHECK 1
913 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
914 Defining ERROR_CHECK_BUFPOS
916 cat >> confdefs.h <<\EOF
917 #define ERROR_CHECK_BUFPOS 1
921 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
922 Defining ERROR_CHECK_GC
924 cat >> confdefs.h <<\EOF
925 #define ERROR_CHECK_GC 1
929 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
930 Defining ERROR_CHECK_MALLOC
932 cat >> confdefs.h <<\EOF
933 #define ERROR_CHECK_MALLOC 1
937 if test "${debug:=$beta}" = "yes"; then
938 use_assertions=yes memory_usage_stats=yes
939 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
940 echo " xemacs will be linked with \"debug.o\""
942 { test "$extra_verbose" = "yes" && cat << \EOF
943 Defining DEBUG_XEMACS
945 cat >> confdefs.h <<\EOF
946 #define DEBUG_XEMACS 1
951 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
952 Defining USE_ASSERTIONS
954 cat >> confdefs.h <<\EOF
955 #define USE_ASSERTIONS 1
959 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
960 Defining MEMORY_USAGE_STATS
962 cat >> confdefs.h <<\EOF
963 #define MEMORY_USAGE_STATS 1
969 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
970 echo "configure:971: checking "host system type"" >&5
971 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
972 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
973 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
974 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
975 echo "$ac_t""$configuration" 1>&6
984 sparc-*-* ) machine=sparc ;;
985 alpha*-*-* ) machine=alpha ;;
986 vax-*-* ) machine=vax ;;
987 mips-dec-* ) machine=pmax ;;
988 mips-sgi-* ) machine=iris4d ;;
989 romp-ibm-* ) machine=ibmrt ;;
990 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
991 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
992 powerpc*-* ) machine=powerpc ;;
993 hppa-*-* ) machine=hp800 ;;
994 m88k-dg-* ) machine=aviion ;;
995 m68*-sony-* ) machine=news ;;
996 mips-sony-* ) machine=news-risc ;;
997 clipper-* ) machine=clipper ;;
998 arm-* ) machine=arm ;;
999 ns32k-* ) machine=ns32000 ;;
1002 case "$canonical" in
1003 *-*-linux* ) opsys=linux ;;
1004 *-*-netbsd* ) opsys=netbsd ;;
1005 *-*-openbsd* ) opsys=openbsd ;;
1006 *-*-nextstep* ) opsys=nextstep ;;
1007 *-*-vms ) opsys=vms ;;
1009 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1010 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1011 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1012 *-dec-osf3* ) opsys=decosf3-1 ;;
1013 *-dec-osf4* ) opsys=decosf4-0 ;;
1015 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1016 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1017 *-*-ultrix* ) opsys=ultrix4-3 ;;
1019 *-*-aix3.1* ) opsys=aix3-1 ;;
1020 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1021 *-*-aix3* ) opsys=aix3-2 ;;
1022 *-*-aix4.0* ) opsys=aix4 ;;
1023 *-*-aix4.1* ) opsys=aix4-1 ;;
1024 *-*-aix4* ) opsys=aix4-2 ;;
1026 *-gnu* ) opsys=gnu ;;
1027 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1028 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1029 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1030 *-*-aos4.2 ) opsys=bsd4-2 ;;
1031 *-*-aos* ) opsys=bsd4-3 ;;
1032 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1033 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1034 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1035 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1036 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1037 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1038 if test -z "$NON_GNU_CPP" ; then
1039 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1040 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1044 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1045 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1048 case "$canonical" in
1051 case "$canonical" in
1052 i[3-9]86-*-netbsd*) machine=intel386 ;;
1053 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1054 machine=hp9000s300 ;;
1055 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1056 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1061 case "${canonical}" in
1062 i386-*-openbsd*) machine=intel386 ;;
1063 m68k-*-openbsd*) machine=hp9000s300 ;;
1064 mipsel-*-openbsd*) machine=pmax ;;
1068 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1069 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1071 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1072 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1074 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1076 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1078 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1080 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1082 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1084 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1085 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1086 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1089 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1091 *-convex-bsd* | *-convex-convexos* )
1092 machine=convex opsys=bsd4-3
1093 NON_GNU_CPP="cc -E -P"
1096 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1098 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1099 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1100 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1101 m88k-dg-dgux* ) opsys=dgux ;;
1103 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1104 m88k-motorola-sysv4* )
1105 machine=delta88k opsys=usg5-4-2
1107 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1109 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1110 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1112 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1114 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1115 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1116 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1119 case "`uname -r`" in
1120 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1121 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1123 NON_GNU_CPP="/lib/cpp"
1125 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1126 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1128 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1130 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1133 case "$canonical" in
1134 m68* ) machine=hp9000s300 ;;
1135 hppa* ) machine=hp800 ;;
1138 case "$canonical" in
1139 *-hp-hpux7* ) opsys=hpux ;;
1140 *-hp-hpux8* ) opsys=hpux8 ;;
1141 *-hp-hpux9* ) opsys=hpux9 ;;
1142 *-hp-hpux10* ) opsys=hpux10 ;;
1143 *-hp-hpux11* ) opsys=hpux11 ;;
1147 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1148 echo " xemacs will be linked with \"strcat.o\""
1151 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1152 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1153 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1155 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1158 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1159 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1161 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1162 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1163 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1164 romp-ibm-aos* ) opsys=bsd4-3 ;;
1165 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1166 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1168 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1169 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1171 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1173 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1175 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1177 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1179 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1181 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1183 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1185 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1187 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1189 mips-mips-usg* ) machine=mips4 ;;
1192 NON_GNU_CC="cc -systype bsd43"
1193 NON_GNU_CPP="cc -systype bsd43 -E"
1194 case "$canonical" in
1195 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1196 mips-mips-riscos5* ) opsys=riscos5 ;;
1199 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1200 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1202 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1204 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1206 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1207 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1209 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1211 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1213 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1215 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1217 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1218 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1220 mips-siemens-sysv* | mips-sni-sysv*)
1221 machine=mips-siemens opsys=usg5-4
1222 NON_GNU_CC=/usr/ccs/bin/cc
1223 NON_GNU_CPP=/usr/ccs/lib/cpp
1228 NON_GNU_CC=/usr/ccs/bin/cc
1229 NON_GNU_CPP=/usr/ccs/lib/cpp
1232 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1233 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1234 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1235 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1236 mips-sgi-irix6* ) opsys=irix6-0 ;;
1237 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1238 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1239 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1240 mips-sgi-irix* ) opsys=irix5-0 ;;
1242 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1243 *-sony-news* ) opsys=newsos5 ;;
1245 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1247 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1248 case "$canonical" in
1249 m68*-sunos1* ) machine=sun1 ;;
1250 m68*-sunos2* ) machine=sun2 ;;
1251 m68* ) machine=sun3 ;;
1252 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1253 i*86-*-* ) machine=intel386 ;;
1254 rs6000* ) machine=rs6000 ;;
1257 case "$canonical" in *-sunos5*)
1258 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1261 case "$canonical" in
1263 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1266 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1270 case "$canonical" in
1273 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1274 { test "$extra_verbose" = "yes" && cat << EOF
1275 Defining OS_RELEASE = $os_release
1277 cat >> confdefs.h <<EOF
1278 #define OS_RELEASE $os_release
1283 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1284 *-sunos4.0* ) opsys=sunos4-0 ;;
1285 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1286 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1287 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1288 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1289 *-mach* ) opsys=mach-bsd4-3 ;;
1293 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1295 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1298 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1300 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1301 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1303 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1305 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1307 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1308 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1310 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1312 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1315 case "$canonical" in
1316 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1317 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1318 *-mach* ) opsys=mach-bsd4-3 ;;
1322 ns16k-whitechapel-* ) machine=mg1 ;;
1324 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1328 case "$canonical" in
1329 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1330 *-isc2.2* ) opsys=isc2-2 ;;
1331 *-isc4.0* ) opsys=isc4-0 ;;
1332 *-isc4.* ) opsys=isc4-1
1333 GCC_TEST_OPTIONS=-posix
1334 NON_GCC_TEST_OPTIONS=-Xp
1336 *-isc* ) opsys=isc3-0 ;;
1337 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1338 *-esix* ) opsys=esix ;;
1339 *-mach* ) opsys=mach-bsd4-3 ;;
1340 *-xenix* ) opsys=xenix ;;
1341 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1342 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1343 *-bsdi3* ) opsys=bsdos3 ;;
1344 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1345 *-bsdi2* ) opsys=bsdos2 ;;
1346 *-sco3.2v5* ) opsys=sco5 ;
1347 if test "$dynamic" = "yes" ; then
1348 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1350 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1352 *-386bsd* ) opsys=386bsd ;;
1353 *-freebsd* ) opsys=freebsd ;;
1354 *-nextstep* ) opsys=nextstep ;;
1355 *-pc-cygwin32 ) opsys=cygwin32 ;;
1359 m68k-*-linux* ) machine=m68k opsys=linux ;;
1363 if test -z "$machine" -o -z "$opsys"; then
1364 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1365 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1370 if test -z "$dynamic"; then
1372 hpux* | sunos4* | sco5 ) dynamic=no ;;
1376 if test "$dynamic" = "yes"; then
1378 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1379 decosf* ) ld_call_shared="-call_shared" ;;
1381 else case "$opsys" in
1383 echo "Static linking is not supported on Solaris 2."
1384 echo "Rerun configure without specifying --dynamic=no."
1386 linux ) ld_call_shared="-Bstatic" ;;
1387 decosf* ) ld_call_shared="-non_shared" ;;
1391 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1393 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1394 { test "$extra_verbose" = "yes" && cat << EOF
1395 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1397 cat >> confdefs.h <<EOF
1398 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1403 machfile="m/${machine}.h"
1404 opsysfile="s/${opsys}.h"
1407 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1408 if test "$with_workshop $with_tooltalk" = "yes no"; then
1409 (echo "$progname: Usage error:"
1410 echo " " "--with-workshop requires --with-tooltalk"
1411 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1412 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1413 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1416 if test "$with_workshop" = "yes"; then
1417 { test "$extra_verbose" = "yes" && cat << \EOF
1420 cat >> confdefs.h <<\EOF
1425 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1426 echo " xemacs will be linked with \"sunpro.o\""
1430 if test "$with_clash_detection" = "yes"; then
1431 { test "$extra_verbose" = "yes" && cat << \EOF
1432 Defining CLASH_DETECTION
1434 cat >> confdefs.h <<\EOF
1435 #define CLASH_DETECTION 1
1439 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1440 echo " xemacs will be linked with \"filelock.o\""
1444 test -n "$compiler" && CC="$compiler"
1445 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1448 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1449 if test "${CFLAGS-unset}" != unset
1450 then cflags_specified=yes;
1451 else cflags_specified=no;
1454 xe_save_CFLAGS="$CFLAGS"
1456 # Extract the first word of "gcc", so it can be a program name with args.
1457 set dummy gcc; ac_word=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_word" >&5
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1465 for ac_dir in $PATH; do
1466 test -z "$ac_dir" && ac_dir=.
1467 if test -f $ac_dir/$ac_word; then
1475 if test -n "$CC"; then
1476 echo "$ac_t""$CC" 1>&6
1478 echo "$ac_t""no" 1>&6
1481 if test -z "$CC"; then
1482 # Extract the first word of "cc", so it can be a program name with args.
1483 set dummy cc; ac_word=$2
1484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $ac_word" >&5
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1492 for ac_dir in $PATH; do
1493 test -z "$ac_dir" && ac_dir=.
1494 if test -f $ac_dir/$ac_word; then
1495 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1496 ac_prog_rejected=yes
1504 if test $ac_prog_rejected = yes; then
1505 # We found a bogon in the path, so make sure we never use it.
1506 set dummy $ac_cv_prog_CC
1508 if test $# -gt 0; then
1509 # We chose a different compiler from the bogus one.
1510 # However, it has the same basename, so the bogon will be chosen
1511 # first if we set CC to just the basename; use the full file name.
1513 set dummy "$ac_dir/$ac_word" "$@"
1520 if test -n "$CC"; then
1521 echo "$ac_t""$CC" 1>&6
1523 echo "$ac_t""no" 1>&6
1526 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1529 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1533 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1534 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1535 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1536 ac_cpp='$CPP '"$xe_cppflags"
1537 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1538 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1546 if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1547 ac_cv_prog_cc_works=yes
1548 # If we can't run a trivial program, we are probably using a cross compiler.
1549 if (./conftest; exit) 2>/dev/null; then
1550 ac_cv_prog_cc_cross=no
1552 ac_cv_prog_cc_cross=yes
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1557 ac_cv_prog_cc_works=no
1561 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1562 if test $ac_cv_prog_cc_works = no; then
1563 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1565 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1566 echo "configure:1567: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1567 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1568 cross_compiling=$ac_cv_prog_cc_cross
1570 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1571 echo "configure:1572: checking whether we are using GNU C" >&5
1573 cat > conftest.c <<EOF
1578 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1584 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1586 if test $ac_cv_prog_gcc = yes; then
1588 ac_test_CFLAGS="${CFLAGS+set}"
1589 ac_save_CFLAGS="$CFLAGS"
1591 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1592 echo "configure:1593: checking whether ${CC-cc} accepts -g" >&5
1594 echo 'void f(){}' > conftest.c
1595 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1603 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1604 if test "$ac_test_CFLAGS" = set; then
1605 CFLAGS="$ac_save_CFLAGS"
1606 elif test $ac_cv_prog_cc_g = yes; then
1613 test "${CFLAGS+set}" = set || CFLAGS="-g"
1616 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1618 # Extract the first word of "gcc", so it can be a program name with args.
1619 set dummy gcc; ac_word=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1627 for ac_dir in $PATH; do
1628 test -z "$ac_dir" && ac_dir=.
1629 if test -f $ac_dir/$ac_word; then
1637 if test -n "$CC"; then
1638 echo "$ac_t""$CC" 1>&6
1640 echo "$ac_t""no" 1>&6
1643 if test -z "$CC"; then
1644 # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1647 echo "configure:1648: checking for $ac_word" >&5
1649 if test -n "$CC"; then
1650 ac_cv_prog_CC="$CC" # Let the user override the test.
1652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1654 for ac_dir in $PATH; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1658 ac_prog_rejected=yes
1666 if test $ac_prog_rejected = yes; then
1667 # We found a bogon in the path, so make sure we never use it.
1668 set dummy $ac_cv_prog_CC
1670 if test $# -gt 0; then
1671 # We chose a different compiler from the bogus one.
1672 # However, it has the same basename, so the bogon will be chosen
1673 # first if we set CC to just the basename; use the full file name.
1675 set dummy "$ac_dir/$ac_word" "$@"
1682 if test -n "$CC"; then
1683 echo "$ac_t""$CC" 1>&6
1685 echo "$ac_t""no" 1>&6
1688 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1691 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1692 echo "configure:1693: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1695 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1696 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1697 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1698 ac_cpp='$CPP '"$xe_cppflags"
1699 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1700 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1709 ac_cv_prog_cc_works=yes
1710 # If we can't run a trivial program, we are probably using a cross compiler.
1711 if (./conftest; exit) 2>/dev/null; then
1712 ac_cv_prog_cc_cross=no
1714 ac_cv_prog_cc_cross=yes
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 ac_cv_prog_cc_works=no
1723 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1724 if test $ac_cv_prog_cc_works = no; then
1725 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1727 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1728 echo "configure:1729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1729 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1730 cross_compiling=$ac_cv_prog_cc_cross
1732 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1733 echo "configure:1734: checking whether we are using GNU C" >&5
1735 cat > conftest.c <<EOF
1740 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1746 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1748 if test $ac_cv_prog_gcc = yes; then
1750 ac_test_CFLAGS="${CFLAGS+set}"
1751 ac_save_CFLAGS="$CFLAGS"
1753 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1754 echo "configure:1755: checking whether ${CC-cc} accepts -g" >&5
1756 echo 'void f(){}' > conftest.c
1757 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1765 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1766 if test "$ac_test_CFLAGS" = set; then
1767 CFLAGS="$ac_save_CFLAGS"
1768 elif test $ac_cv_prog_cc_g = yes; then
1775 test "${CFLAGS+set}" = set || CFLAGS="-g"
1778 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1780 # Extract the first word of "gcc", so it can be a program name with args.
1781 set dummy gcc; ac_word=$2
1782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_word" >&5
1785 if test -n "$CC"; then
1786 ac_cv_prog_CC="$CC" # Let the user override the test.
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1789 for ac_dir in $PATH; do
1790 test -z "$ac_dir" && ac_dir=.
1791 if test -f $ac_dir/$ac_word; then
1799 if test -n "$CC"; then
1800 echo "$ac_t""$CC" 1>&6
1802 echo "$ac_t""no" 1>&6
1805 if test -z "$CC"; then
1806 # Extract the first word of "cc", so it can be a program name with args.
1807 set dummy cc; ac_word=$2
1808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1809 echo "configure:1810: checking for $ac_word" >&5
1811 if test -n "$CC"; then
1812 ac_cv_prog_CC="$CC" # Let the user override the test.
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1816 for ac_dir in $PATH; do
1817 test -z "$ac_dir" && ac_dir=.
1818 if test -f $ac_dir/$ac_word; then
1819 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1820 ac_prog_rejected=yes
1828 if test $ac_prog_rejected = yes; then
1829 # We found a bogon in the path, so make sure we never use it.
1830 set dummy $ac_cv_prog_CC
1832 if test $# -gt 0; then
1833 # We chose a different compiler from the bogus one.
1834 # However, it has the same basename, so the bogon will be chosen
1835 # first if we set CC to just the basename; use the full file name.
1837 set dummy "$ac_dir/$ac_word" "$@"
1844 if test -n "$CC"; then
1845 echo "$ac_t""$CC" 1>&6
1847 echo "$ac_t""no" 1>&6
1850 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1853 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1854 echo "configure:1855: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1857 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1858 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1859 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1860 ac_cpp='$CPP '"$xe_cppflags"
1861 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1862 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1870 if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1871 ac_cv_prog_cc_works=yes
1872 # If we can't run a trivial program, we are probably using a cross compiler.
1873 if (./conftest; exit) 2>/dev/null; then
1874 ac_cv_prog_cc_cross=no
1876 ac_cv_prog_cc_cross=yes
1879 echo "configure: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1881 ac_cv_prog_cc_works=no
1885 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1886 if test $ac_cv_prog_cc_works = no; then
1887 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1889 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1891 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1892 cross_compiling=$ac_cv_prog_cc_cross
1894 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1895 echo "configure:1896: checking whether we are using GNU C" >&5
1897 cat > conftest.c <<EOF
1902 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1908 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1910 if test $ac_cv_prog_gcc = yes; then
1912 ac_test_CFLAGS="${CFLAGS+set}"
1913 ac_save_CFLAGS="$CFLAGS"
1915 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1916 echo "configure:1917: checking whether ${CC-cc} accepts -g" >&5
1918 echo 'void f(){}' > conftest.c
1919 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1927 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1928 if test "$ac_test_CFLAGS" = set; then
1929 CFLAGS="$ac_save_CFLAGS"
1930 elif test $ac_cv_prog_cc_g = yes; then
1937 test "${CFLAGS+set}" = set || CFLAGS="-g"
1941 CFLAGS="$xe_save_CFLAGS"
1944 test -n "$CPP" -a -d "$CPP" && CPP=
1946 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1948 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1949 echo "configure:1950: checking how to run the C preprocessor" >&5
1950 # On Suns, sometimes $CPP names a directory.
1951 if test -n "$CPP" && test -d "$CPP"; then
1954 if test -z "$CPP"; then
1956 # This must be in double quotes, not single quotes, because CPP may get
1957 # substituted into the Makefile and "${CC-cc}" will confuse make.
1959 # On the NeXT, cc -E runs the code through the compiler's parser,
1960 # not just through cpp.
1961 cat > conftest.$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1968 { (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1969 ac_err=`grep -v '^ *+' conftest.out`
1970 if test -z "$ac_err"; then
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1977 CPP="${CC-cc} -E -traditional-cpp"
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1985 { (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1986 ac_err=`grep -v '^ *+' conftest.out`
1987 if test -z "$ac_err"; then
1991 echo "configure: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1999 ac_cv_prog_CPP="$CPP"
2000 CPP="$ac_cv_prog_CPP"
2002 ac_cv_prog_CPP="$CPP"
2004 echo "$ac_t""$CPP" 1>&6
2007 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2008 echo "configure:2009: checking for AIX" >&5
2009 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2018 egrep "yes" >/dev/null 2>&1; then
2020 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2021 Defining _ALL_SOURCE
2023 cat >> confdefs.h <<\EOF
2024 #define _ALL_SOURCE 1
2030 echo "$ac_t""no" 1>&6
2036 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2037 echo "configure:2038: checking for GNU libc" >&5
2038 cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2041 #include <features.h>
2044 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2045 #error Not a GNU libc system :-(
2046 ******* ======= ******** &&&&&&&&
2051 if { (eval echo configure:2052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2061 echo "$ac_t""$have_glibc" 1>&6
2062 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2063 Defining _GNU_SOURCE
2065 cat >> confdefs.h <<\EOF
2066 #define _GNU_SOURCE 1
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2076 #if defined __SUNPRO_C
2078 #elif defined __DECC
2085 if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2090 echo "configure: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2093 case "$conftest_rc" in
2094 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2095 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2103 echo "Extracting information from the machine- and system-dependent headers..."
2105 tempcname="conftest.c"
2109 cat > $tempcname <<EOF
2111 #define C_SWITCH_SITE
2112 #define C_SWITCH_X_SITE
2113 #define LD_SWITCH_SITE
2114 #define LD_SWITCH_X_SITE
2115 #define LD_SWITCH_X_SITE_AUX
2116 #define OS_RELEASE $os_release
2117 #include "$srcdir/src/$opsysfile"
2118 #include "$srcdir/src/$machfile"
2120 #ifndef LIBS_MACHINE
2121 #define LIBS_MACHINE
2123 configure___ libs_machine=LIBS_MACHINE
2128 configure___ libs_system=LIBS_SYSTEM
2130 #ifndef LIBS_TERMCAP
2131 #define LIBS_TERMCAP
2133 configure___ libs_termcap=LIBS_TERMCAP
2135 #ifndef LIB_STANDARD
2136 #define LIB_STANDARD
2138 configure___ libs_standard=LIB_STANDARD
2141 #ifndef OBJECTS_MACHINE
2142 #define OBJECTS_MACHINE
2144 configure___ objects_machine=OBJECTS_MACHINE
2146 #ifndef OBJECTS_SYSTEM
2147 #define OBJECTS_SYSTEM
2149 configure___ objects_system=OBJECTS_SYSTEM
2152 #ifndef C_SWITCH_MACHINE
2153 #define C_SWITCH_MACHINE
2155 configure___ c_switch_machine=C_SWITCH_MACHINE
2157 #ifndef C_SWITCH_SYSTEM
2158 #define C_SWITCH_SYSTEM
2160 configure___ c_switch_system=C_SWITCH_SYSTEM
2163 #ifndef LD_SWITCH_MACHINE
2164 #define LD_SWITCH_MACHINE
2166 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2168 #ifndef LD_SWITCH_SYSTEM
2169 #define LD_SWITCH_SYSTEM
2171 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2175 #define UNEXEC "unexec.o"
2177 configure___ unexec=UNEXEC
2180 #ifndef LD_SWITCH_SHARED
2181 #define LD_SWITCH_SHARED "-c"
2183 configure___ ld_switch_shared=LD_SWITCH_SHARED
2186 #ifdef ORDINARY_LINK
2187 #define LD "\$(CC) \$(CFLAGS)"
2188 #else /* no ORDINARY LINK */
2189 #ifdef COFF_ENCAPSULATE
2190 #define LD "\$(CC) -nostdlib"
2191 #else /* not COFF_ENCAPSULATE */
2194 #else /* ! defined (LINKER) */
2196 #endif /* ! defined (LINKER) */
2197 #endif /* ! defined (COFF_ENCAPSULATE) */
2198 #endif /* not ORDINARY_LINK */
2204 configure___ lib_gcc=LIB_GCC
2206 #ifndef LD_TEXT_START_ADDR
2207 #define LD_TEXT_START_ADDR
2209 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2212 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2214 #ifdef COFF_ENCAPSULATE
2215 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2216 #else /* ! defined (COFF_ENCAPSULATE) */
2217 #define START_FILES "pre-crt0.o /lib/crt0.o"
2218 #endif /* ! defined (COFF_ENCAPSULATE) */
2219 #else /* ! defined (NO_REMAP) */
2220 #define START_FILES "ecrt0.o"
2221 #endif /* ! defined (NO_REMAP) */
2222 #endif /* no ORDINARY_LINK */
2226 configure___ start_files=START_FILES
2228 #ifdef ORDINARY_LINK
2229 configure___ ordinary_link=yes
2231 configure___ ordinary_link=no
2234 #ifdef SYSTEM_MALLOC
2235 configure___ system_malloc=yes
2237 configure___ system_malloc=no
2241 configure___ have_terminfo=yes
2243 configure___ have_terminfo=no
2246 #ifdef MAIL_USE_FLOCK
2247 configure___ mail_use_flock=yes
2249 configure___ mail_use_flock=no
2252 #ifdef MAIL_USE_LOCKF
2253 configure___ mail_use_lockf=yes
2255 configure___ mail_use_lockf=no
2260 CPP=`eval "echo $CPP $CPPFLAGS"`
2261 eval `$CPP -Isrc $tempcname \
2262 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2266 test "$extra_verbose" = "yes" && \
2267 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2269 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2271 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2273 if test "$cflags_specified" = "no"; then
2274 if test "$GCC" = "yes"; then
2275 CFLAGS="-g -O3 -Wall -Wno-switch"
2276 test "$opsys $machine" = "cygwin32 intel386" && \
2277 CFLAGS="-g -O2 -Wall -Wno-switch"
2278 elif test "$__SUNPRO_C" = "yes"; then
2280 sol2 ) CFLAGS="-v -xO4" ;;
2281 sunos4* ) CFLAGS="-xO2";;
2283 elif test "$__DECC" = "yes"; then
2285 elif test "$CC" = "xlc"; then
2286 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2292 if test "$GCC" = "yes"; then
2293 set x $ld_switch_system; shift; ld_switch_system=""
2294 while test -n "$1"; do
2296 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2297 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2299 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2305 if test "$GCC" = "yes"; then
2306 set x $ld_switch_machine; shift; ld_switch_machine=""
2307 while test -n "$1"; do
2309 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2310 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2312 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2318 if test "$GCC" = "yes"; then
2319 set x $LDFLAGS; shift; LDFLAGS=""
2320 while test -n "$1"; do
2322 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2323 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2325 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2331 if test "$GCC" = "yes"; then
2332 set x $ld_call_shared; shift; ld_call_shared=""
2333 while test -n "$1"; do
2335 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2336 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2338 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2344 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2345 echo " xemacs will be linked with \"$objects_machine\""
2347 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2348 echo " xemacs will be linked with \"$objects_system\""
2350 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2351 echo " xemacs will be linked with \"$unexec\""
2354 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2355 echo "configure:2356: checking for dynodump" >&5
2356 if test "$unexec" != "unexsol2.o"; then
2357 echo "$ac_t""no" 1>&6
2359 echo "$ac_t""yes" 1>&6
2360 { test "$extra_verbose" = "yes" && cat << \EOF
2363 cat >> confdefs.h <<\EOF
2368 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2369 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2371 sparc ) dynodump_arch=sparc ;;
2372 *86* ) dynodump_arch=i386 ;;
2373 powerpc ) dynodump_arch=ppc ;;
2375 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
2379 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2381 if test "$unexec" = "unexaix.o"; then
2382 if test "$dynamic" = "no"; then
2383 start_flags="-Wl,-bnso,-bnodelcsect"
2384 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2385 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2386 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2388 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2389 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2392 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2393 echo "configure:2394: checking for terminateAndUnload in -lC" >&5
2394 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2396 xe_check_libs=" -lC "
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 /* Override any gcc2 internal prototype to avoid an error. */
2401 /* We use char because int might match the return type of a gcc2
2402 builtin and then its argument prototype would still apply. */
2403 char terminateAndUnload();
2406 terminateAndUnload()
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2411 eval "ac_cv_lib_$ac_lib_var=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 eval "ac_cv_lib_$ac_lib_var=no"
2421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2422 echo "$ac_t""yes" 1>&6
2423 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2425 echo "$ac_t""no" 1>&6
2430 elif test -n "$ld_text_start_addr"; then
2431 start_flags="-T $ld_text_start_addr -e __start"
2437 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2438 test -z "$linker" && linker='$(CC) -nostdlib'
2439 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2441 test "$GCC" != "yes" && lib_gcc=
2447 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2448 if test -n "$site_libraries"; then
2449 for arg in $site_libraries; do
2452 * ) test -d "$arg" || \
2453 { echo "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2456 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2460 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2461 if test -n "$site_includes"; then
2462 for arg in $site_includes; do
2465 * ) test -d "$arg" || \
2466 { echo "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2469 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2473 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2474 if test -n "$site_prefixes"; then
2475 for dir in $site_prefixes; do
2476 inc_dir="${dir}/include"
2477 lib_dir="${dir}/lib"
2478 if test ! -d "$dir"; then
2479 { echo "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2480 elif test ! -d "$inc_dir"; then
2481 { echo "Invalid site prefix \`$dir': no such directory \`$inc_dir'" >&2; exit 1; }
2482 elif test ! -d "$lib_dir"; then
2483 { echo "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2485 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
2486 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi
2492 for dir in "/usr/ccs/lib"; do
2493 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
2496 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2497 if test -n "$site_runtime_libraries"; then
2498 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2503 if test "$dynamic" = "no"; then add_runtime_path=no
2504 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2505 else case "$opsys" in
2506 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2507 * ) add_runtime_path=no ;;
2511 if test "$add_runtime_path" = "yes"; then
2512 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2513 echo "configure:2514: checking "for runtime libraries flag"" >&5
2515 sol2 ) dash_r="-R" ;;
2516 decosf* | linux* ) dash_r="-rpath " ;;
2519 for try_dash_r in "-R" "-R " "-rpath "; do
2520 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2522 if test "$GCC" = "yes"; then
2523 set x $xe_check_libs; shift; xe_check_libs=""
2524 while test -n "$1"; do
2526 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2527 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2529 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2544 dash_r="$try_dash_r"
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2551 test -n "$dash_r" && break
2554 if test -n "$dash_r";
2555 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2556 else echo "$ac_t""NONE" 1>&6
2560 xe_add_unique_runpath_dir='
2562 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2564 if test "$xe_add_p" = "yes"; then
2565 test -n "$runpath" && runpath="${runpath}:"
2566 runpath="${runpath}${xe_runpath_dir}"
2567 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2573 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2574 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2575 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2577 runpath="" runpath_dirs=""
2578 if test -n "$LD_RUN_PATH"; then
2579 runpath="$LD_RUN_PATH"
2580 elif test "$GCC" = "yes"; then
2581 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2582 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2583 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2584 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2585 case "$arg" in P,* | -L* | -R* )
2586 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2588 xe_runpath_dir="$dir"
2589 test "$xe_runpath_dir" != "/lib" -a \
2590 "$xe_runpath_dir" != "/usr/lib" -a \
2591 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2592 eval "$xe_add_unique_runpath_dir"
2597 ld_switch_run="$ld_switch_run_save"
2600 for arg in $ld_switch_site $ld_switch_x_site; do
2601 case "$arg" in -L*) {
2602 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2603 test "$xe_runpath_dir" != "/lib" -a \
2604 "$xe_runpath_dir" != "/usr/lib" -a \
2605 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2606 eval "$xe_add_unique_runpath_dir"
2609 if test "$opsys $need_motif" = "sol2 yes"; then
2610 xe_runpath_dir="/opt/SUNWdt/lib";
2611 eval "$xe_add_unique_runpath_dir";
2614 if test -n "$runpath"; then
2615 ld_switch_run="${dash_r}${runpath}"
2617 if test "$GCC" = "yes"; then
2618 set x $ld_switch_run; shift; ld_switch_run=""
2619 while test -n "$1"; do
2621 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2622 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2624 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2629 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2636 if test "$with_dlmalloc" != "no"; then
2641 after_morecore_hook_exists=yes
2642 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2643 echo "configure:2644: checking for malloc_get_state" >&5
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 /* System header to define __stub macros and hopefully few prototypes,
2649 which can conflict with char malloc_get_state(); below. */
2651 /* Override any gcc2 internal prototype to avoid an error. */
2652 /* We use char because int might match the return type of a gcc2
2653 builtin and then its argument prototype would still apply. */
2654 char malloc_get_state();
2658 /* The GNU C library defines this for functions which it implements
2659 to always fail with ENOSYS. Some functions are actually named
2660 something starting with __ and the normal name is an alias. */
2661 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2669 if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2671 eval "ac_cv_func_malloc_get_state=yes"
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2676 eval "ac_cv_func_malloc_get_state=no"
2680 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2681 echo "$ac_t""yes" 1>&6
2684 echo "$ac_t""no" 1>&6
2688 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2689 echo "configure:2690: checking for malloc_set_state" >&5
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 /* System header to define __stub macros and hopefully few prototypes,
2695 which can conflict with char malloc_set_state(); below. */
2697 /* Override any gcc2 internal prototype to avoid an error. */
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2700 char malloc_set_state();
2704 /* The GNU C library defines this for functions which it implements
2705 to always fail with ENOSYS. Some functions are actually named
2706 something starting with __ and the normal name is an alias. */
2707 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2717 eval "ac_cv_func_malloc_set_state=yes"
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2722 eval "ac_cv_func_malloc_set_state=no"
2726 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2727 echo "$ac_t""yes" 1>&6
2730 echo "$ac_t""no" 1>&6
2734 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2735 echo "configure:2736: checking whether __after_morecore_hook exists" >&5
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 extern void (* __after_morecore_hook)();
2741 __after_morecore_hook = 0
2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2746 echo "$ac_t""yes" 1>&6
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2751 echo "$ac_t""no" 1>&6
2752 after_morecore_hook_exists=no
2755 if test "$system_malloc" = "yes" ; then
2758 (The GNU allocators don't work with this system configuration)."
2759 elif test "$with_system_malloc" = "yes" ; then
2762 (User chose not to use GNU allocators)."
2763 elif test "$with_debug_malloc" = "yes" ; then
2766 (User chose to use Debugging Malloc)."
2769 if test "$doug_lea_malloc" = "yes" ; then
2770 if test "$GNU_MALLOC" = yes ; then
2772 (Using Doug Lea's new malloc from the GNU C Library.)"
2774 { test "$extra_verbose" = "yes" && cat << \EOF
2775 Defining DOUG_LEA_MALLOC
2777 cat >> confdefs.h <<\EOF
2778 #define DOUG_LEA_MALLOC 1
2782 if test "$after_morecore_hook_exists" = "no" ; then
2784 (Using Doug Lea's new malloc from the Linux C Library.)"
2785 { test "$extra_verbose" = "yes" && cat << \EOF
2786 Defining _NO_MALLOC_WARNING_
2788 cat >> confdefs.h <<\EOF
2789 #define _NO_MALLOC_WARNING_ 1
2794 use_minimal_tagbits=yes
2800 # Extract the first word of "ranlib", so it can be a program name with args.
2801 set dummy ranlib; ac_word=$2
2802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2803 echo "configure:2804: checking for $ac_word" >&5
2805 if test -n "$RANLIB"; then
2806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2809 for ac_dir in $PATH; do
2810 test -z "$ac_dir" && ac_dir=.
2811 if test -f $ac_dir/$ac_word; then
2812 ac_cv_prog_RANLIB="ranlib"
2817 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2819 RANLIB="$ac_cv_prog_RANLIB"
2820 if test -n "$RANLIB"; then
2821 echo "$ac_t""$RANLIB" 1>&6
2823 echo "$ac_t""no" 1>&6
2827 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2828 if test -f $ac_dir/install-sh; then
2830 ac_install_sh="$ac_aux_dir/install-sh -c"
2832 elif test -f $ac_dir/install.sh; then
2834 ac_install_sh="$ac_aux_dir/install.sh -c"
2838 if test -z "$ac_aux_dir"; then
2839 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
2841 ac_config_guess=$ac_aux_dir/config.guess
2842 ac_config_sub=$ac_aux_dir/config.sub
2843 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
2845 # Find a good install program. We prefer a C program (faster),
2846 # so one script is as good as another. But avoid the broken or
2847 # incompatible versions:
2848 # SysV /etc/install, /usr/sbin/install
2849 # SunOS /usr/etc/install
2850 # IRIX /sbin/install
2852 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2853 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2854 # ./install, which can be erroneously created by make from ./install.sh.
2855 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2856 echo "configure:2857: checking for a BSD compatible install" >&5
2857 if test -z "$INSTALL"; then
2859 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2860 for ac_dir in $PATH; do
2861 # Account for people who put trailing slashes in PATH elements.
2863 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2865 # OSF1 and SCO ODT 3.0 have their own names for install.
2866 for ac_prog in ginstall installbsd scoinst install; do
2867 if test -f $ac_dir/$ac_prog; then
2868 if test $ac_prog = install &&
2869 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2870 # AIX install. It has an incompatible calling convention.
2871 # OSF/1 installbsd also uses dspmsg, but is usable.
2874 ac_cv_path_install="$ac_dir/$ac_prog -c"
2884 if test "${ac_cv_path_install+set}" = set; then
2885 INSTALL="$ac_cv_path_install"
2887 # As a last resort, use the slow shell script. We don't cache a
2888 # path for INSTALL within a source directory, because that will
2889 # break other packages using the cache if that directory is
2890 # removed, or if the path is relative.
2891 INSTALL="$ac_install_sh"
2894 echo "$ac_t""$INSTALL" 1>&6
2896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2897 # It thinks the first close brace ends the variable substitution.
2898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2902 for ac_prog in 'bison -y' byacc
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy $ac_prog; ac_word=$2
2906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2907 echo "configure:2908: checking for $ac_word" >&5
2909 if test -n "$YACC"; then
2910 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2913 for ac_dir in $PATH; do
2914 test -z "$ac_dir" && ac_dir=.
2915 if test -f $ac_dir/$ac_word; then
2916 ac_cv_prog_YACC="$ac_prog"
2922 YACC="$ac_cv_prog_YACC"
2923 if test -n "$YACC"; then
2924 echo "$ac_t""$YACC" 1>&6
2926 echo "$ac_t""no" 1>&6
2929 test -n "$YACC" && break
2931 test -n "$YACC" || YACC="yacc"
2934 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2938 echo "configure:2939: checking for $ac_hdr" >&5
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2946 { (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2947 ac_err=`grep -v '^ *+' conftest.out`
2948 if test -z "$ac_err"; then
2950 eval "ac_cv_header_$ac_safe=yes"
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 eval "ac_cv_header_$ac_safe=no"
2959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2960 echo "$ac_t""yes" 1>&6
2961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2962 { test "$extra_verbose" = "yes" && cat << EOF
2965 cat >> confdefs.h <<EOF
2966 #define $ac_tr_hdr 1
2971 echo "$ac_t""no" 1>&6
2975 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
2977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_hdr" >&5
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2987 { (eval echo configure:2988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2988 ac_err=`grep -v '^ *+' conftest.out`
2989 if test -z "$ac_err"; then
2991 eval "ac_cv_header_$ac_safe=yes"
2994 echo "configure: failed program was:" >&5
2995 cat conftest.$ac_ext >&5
2997 eval "ac_cv_header_$ac_safe=no"
3000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3003 { test "$extra_verbose" = "yes" && cat << EOF
3006 cat >> confdefs.h <<EOF
3007 #define $ac_tr_hdr 1
3012 echo "$ac_t""no" 1>&6
3016 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3020 echo "configure:3021: checking for $ac_hdr" >&5
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3028 { (eval echo configure:3029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3029 ac_err=`grep -v '^ *+' conftest.out`
3030 if test -z "$ac_err"; then
3032 eval "ac_cv_header_$ac_safe=yes"
3035 echo "configure: failed program was:" >&5
3036 cat conftest.$ac_ext >&5
3038 eval "ac_cv_header_$ac_safe=no"
3041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3042 echo "$ac_t""yes" 1>&6
3043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3044 { test "$extra_verbose" = "yes" && cat << EOF
3047 cat >> confdefs.h <<EOF
3048 #define $ac_tr_hdr 1
3053 echo "$ac_t""no" 1>&6
3057 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3058 echo "configure:3059: checking for sys/wait.h that is POSIX.1 compatible" >&5
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <sys/types.h>
3064 #include <sys/wait.h>
3066 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3069 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3074 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3077 if { (eval echo configure:3078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3079 ac_cv_header_sys_wait_h=yes
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3084 ac_cv_header_sys_wait_h=no
3088 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3089 if test $ac_cv_header_sys_wait_h = yes; then
3090 { test "$extra_verbose" = "yes" && cat << \EOF
3091 Defining HAVE_SYS_WAIT_H
3093 cat >> confdefs.h <<\EOF
3094 #define HAVE_SYS_WAIT_H 1
3100 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3101 echo "configure:3102: checking for ANSI C header files" >&5
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3112 { (eval echo configure:3113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3113 ac_err=`grep -v '^ *+' conftest.out`
3114 if test -z "$ac_err"; then
3116 ac_cv_header_stdc=yes
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3122 ac_cv_header_stdc=no
3126 if test $ac_cv_header_stdc = yes; then
3127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3134 egrep "memchr" >/dev/null 2>&1; then
3138 ac_cv_header_stdc=no
3144 if test $ac_cv_header_stdc = yes; then
3145 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3152 egrep "free" >/dev/null 2>&1; then
3156 ac_cv_header_stdc=no
3162 if test $ac_cv_header_stdc = yes; then
3163 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3168 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3169 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3171 int main () { int i; for (i = 0; i < 256; i++)
3172 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3176 if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3181 echo "configure: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3184 ac_cv_header_stdc=no
3189 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3190 if test $ac_cv_header_stdc = yes; then
3191 { test "$extra_verbose" = "yes" && cat << \EOF
3192 Defining STDC_HEADERS
3194 cat >> confdefs.h <<\EOF
3195 #define STDC_HEADERS 1
3201 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3202 echo "configure:3203: checking whether time.h and sys/time.h may both be included" >&5
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 #include <sys/types.h>
3208 #include <sys/time.h>
3214 if { (eval echo configure:3215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3216 ac_cv_header_time=yes
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3221 ac_cv_header_time=no
3225 echo "$ac_t""$ac_cv_header_time" 1>&6
3226 if test $ac_cv_header_time = yes; then
3227 { test "$extra_verbose" = "yes" && cat << \EOF
3228 Defining TIME_WITH_SYS_TIME
3230 cat >> confdefs.h <<\EOF
3231 #define TIME_WITH_SYS_TIME 1
3237 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3238 echo "configure:3239: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 #include <sys/types.h>
3245 /* NetBSD declares sys_siglist in unistd.h. */
3246 #ifdef HAVE_UNISTD_H
3250 char *msg = *(sys_siglist + 1);
3253 if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255 ac_cv_decl_sys_siglist=yes
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3260 ac_cv_decl_sys_siglist=no
3264 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3265 if test $ac_cv_decl_sys_siglist = yes; then
3266 { test "$extra_verbose" = "yes" && cat << \EOF
3267 Defining SYS_SIGLIST_DECLARED
3269 cat >> confdefs.h <<\EOF
3270 #define SYS_SIGLIST_DECLARED 1
3277 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3278 echo "configure:3279: checking for struct utimbuf" >&5
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 #ifdef TIME_WITH_SYS_TIME
3283 #include <sys/time.h>
3286 #ifdef HAVE_SYS_TIME_H
3287 #include <sys/time.h>
3296 static struct utimbuf x; x.actime = x.modtime;
3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3301 echo "$ac_t""yes" 1>&6
3302 { test "$extra_verbose" = "yes" && cat << \EOF
3303 Defining HAVE_STRUCT_UTIMBUF
3305 cat >> confdefs.h <<\EOF
3306 #define HAVE_STRUCT_UTIMBUF 1
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 echo "$ac_t""no" 1>&6
3318 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3319 echo "configure:3320: checking return type of signal handlers" >&5
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <sys/types.h>
3330 extern "C" void (*signal (int, void (*)(int)))(int);
3332 void (*signal ()) ();
3339 if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3341 ac_cv_type_signal=void
3343 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3346 ac_cv_type_signal=int
3350 echo "$ac_t""$ac_cv_type_signal" 1>&6
3351 { test "$extra_verbose" = "yes" && cat << EOF
3352 Defining RETSIGTYPE = $ac_cv_type_signal
3354 cat >> confdefs.h <<EOF
3355 #define RETSIGTYPE $ac_cv_type_signal
3360 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3361 echo "configure:3362: checking for size_t" >&5
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <sys/types.h>
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3375 ac_cv_type_size_t=yes
3378 ac_cv_type_size_t=no
3382 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3383 if test $ac_cv_type_size_t = no; then
3384 { test "$extra_verbose" = "yes" && cat << \EOF
3385 Defining size_t = unsigned
3387 cat >> confdefs.h <<\EOF
3388 #define size_t unsigned
3394 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3395 echo "configure:3396: checking for pid_t" >&5
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3409 ac_cv_type_pid_t=yes
3416 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3417 if test $ac_cv_type_pid_t = no; then
3418 { test "$extra_verbose" = "yes" && cat << \EOF
3419 Defining pid_t = int
3421 cat >> confdefs.h <<\EOF
3428 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3429 echo "configure:3430: checking for uid_t in sys/types.h" >&5
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include <sys/types.h>
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 egrep "uid_t" >/dev/null 2>&1; then
3439 ac_cv_type_uid_t=yes
3447 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3448 if test $ac_cv_type_uid_t = no; then
3449 { test "$extra_verbose" = "yes" && cat << \EOF
3450 Defining uid_t = int
3452 cat >> confdefs.h <<\EOF
3457 { test "$extra_verbose" = "yes" && cat << \EOF
3458 Defining gid_t = int
3460 cat >> confdefs.h <<\EOF
3467 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3468 echo "configure:3469: checking for mode_t" >&5
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 #include <sys/types.h>
3479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3482 ac_cv_type_mode_t=yes
3485 ac_cv_type_mode_t=no
3489 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3490 if test $ac_cv_type_mode_t = no; then
3491 { test "$extra_verbose" = "yes" && cat << \EOF
3492 Defining mode_t = int
3494 cat >> confdefs.h <<\EOF
3501 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3502 echo "configure:3503: checking for off_t" >&5
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3507 #include <sys/types.h>
3513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3514 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3516 ac_cv_type_off_t=yes
3523 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3524 if test $ac_cv_type_off_t = no; then
3525 { test "$extra_verbose" = "yes" && cat << \EOF
3526 Defining off_t = long
3528 cat >> confdefs.h <<\EOF
3536 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3537 echo "configure:3538: checking for struct timeval" >&5
3538 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3541 #ifdef TIME_WITH_SYS_TIME
3542 #include <sys/time.h>
3545 #ifdef HAVE_SYS_TIME_H
3546 #include <sys/time.h>
3552 static struct timeval x; x.tv_sec = x.tv_usec;
3555 if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557 echo "$ac_t""yes" 1>&6
3559 { test "$extra_verbose" = "yes" && cat << \EOF
3560 Defining HAVE_TIMEVAL
3562 cat >> confdefs.h <<\EOF
3563 #define HAVE_TIMEVAL 1
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 echo "$ac_t""no" 1>&6
3576 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3577 echo "configure:3578: checking whether struct tm is in sys/time.h or time.h" >&5
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <sys/types.h>
3585 struct tm *tp; tp->tm_sec;
3588 if { (eval echo configure:3589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3590 ac_cv_struct_tm=time.h
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3595 ac_cv_struct_tm=sys/time.h
3599 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3600 if test $ac_cv_struct_tm = sys/time.h; then
3601 { test "$extra_verbose" = "yes" && cat << \EOF
3602 Defining TM_IN_SYS_TIME
3604 cat >> confdefs.h <<\EOF
3605 #define TM_IN_SYS_TIME 1
3611 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3612 echo "configure:3613: checking for tm_zone in struct tm" >&5
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 #include <sys/types.h>
3618 #include <$ac_cv_struct_tm>
3620 struct tm tm; tm.tm_zone;
3623 if { (eval echo configure:3624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3625 ac_cv_struct_tm_zone=yes
3627 echo "configure: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3630 ac_cv_struct_tm_zone=no
3634 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3635 if test "$ac_cv_struct_tm_zone" = yes; then
3636 { test "$extra_verbose" = "yes" && cat << \EOF
3637 Defining HAVE_TM_ZONE
3639 cat >> confdefs.h <<\EOF
3640 #define HAVE_TM_ZONE 1
3645 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3646 echo "configure:3647: checking for tzname" >&5
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3652 #ifndef tzname /* For SGI. */
3653 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3661 ac_cv_var_tzname=yes
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3670 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3671 if test $ac_cv_var_tzname = yes; then
3672 { test "$extra_verbose" = "yes" && cat << \EOF
3673 Defining HAVE_TZNAME
3675 cat >> confdefs.h <<\EOF
3676 #define HAVE_TZNAME 1
3684 echo $ac_n "checking for working const""... $ac_c" 1>&6
3685 echo "configure:3686: checking for working const" >&5
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3693 /* Ultrix mips cc rejects this. */
3694 typedef int charset[2]; const charset x;
3695 /* SunOS 4.1.1 cc rejects this. */
3696 char const *const *ccp;
3698 /* NEC SVR4.0.2 mips cc rejects this. */
3699 struct point {int x, y;};
3700 static struct point const zero = {0,0};
3701 /* AIX XL C 1.02.0.0 rejects this.
3702 It does not let you subtract one const X* pointer from another in an arm
3703 of an if-expression whose if-part is not a constant expression */
3704 const char *g = "string";
3705 ccp = &g + (g ? g-g : 0);
3706 /* HPUX 7.0 cc rejects these. */
3709 ccp = (char const *const *) p;
3710 { /* SCO 3.2v4 cc rejects this. */
3712 char const *s = 0 ? (char *) 0 : (char const *) 0;
3716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3718 const int *foo = &x[0];
3721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3722 typedef const int *iptr;
3726 { /* AIX XL C 1.02.0.0 rejects this saying
3727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3728 struct s { int j; const int *ap[3]; };
3729 struct s *b; b->j = 5;
3731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3737 if { (eval echo configure:3738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3748 echo "$ac_t""$ac_cv_c_const" 1>&6
3749 if test $ac_cv_c_const = no; then
3750 { test "$extra_verbose" = "yes" && cat << \EOF
3753 cat >> confdefs.h <<\EOF
3761 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3762 echo "configure:3763: checking whether ${MAKE-make} sets \${MAKE}" >&5
3763 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3765 cat > conftestmake <<\EOF
3767 @echo 'ac_maketemp="${MAKE}"'
3769 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3770 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3771 if test -n "$ac_maketemp"; then
3772 eval ac_cv_prog_make_${ac_make}_set=yes
3774 eval ac_cv_prog_make_${ac_make}_set=no
3777 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3781 echo "$ac_t""no" 1>&6
3782 SET_MAKE="MAKE=${MAKE-make}"
3786 echo $ac_n "checking wheth