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.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.12 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
97 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
99 # File descriptor usage:
102 # 2 errors and warnings
103 # 3 some systems may open it to /dev/tty
104 # 4 used on the Kubota Titan
105 # 6 checking for... messages and results
106 # 5 compiler messages saved in config.log
107 if test "$silent" = yes; then
115 This file contains any messages produced by compilers while
116 running configure, to aid debugging if configure makes a mistake.
119 # Strip out --no-create and --no-recursion so they do not pile up.
120 # Also quote any args containing shell metacharacters.
125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
126 | --no-cr | --no-c) ;;
127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
130 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
131 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
136 # Only set these to C if already set. These must not be set unconditionally
137 # because not all systems understand e.g. LANG=C (notably SCO).
138 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
139 # Non-C LC_CTYPE values break the ctype check.
140 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
141 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
142 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
143 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
146 rm -rf conftest* confdefs.h
147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
150 # A filename unique to this package, relative to the directory that
151 # configure is in, which we can look for to find out if srcdir is correct.
152 ac_unique_file=src/lisp.h
154 # Find the source files, if location was not specified.
155 if test -z "$srcdir"; then
156 ac_srcdir_defaulted=yes
157 # Try the directory containing this script, then its parent.
159 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
160 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
162 if test ! -r $srcdir/$ac_unique_file; then
166 ac_srcdir_defaulted=no
168 if test ! -r $srcdir/$ac_unique_file; then
169 if test "$ac_srcdir_defaulted" = yes; then
170 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
172 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
175 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
177 # Prefer explicitly selected file to automatically selected ones.
178 if test -z "$CONFIG_SITE"; then
179 if test "x$prefix" != xNONE; then
180 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
182 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
185 for ac_site_file in $CONFIG_SITE; do
186 if test -r "$ac_site_file"; then
187 echo "loading site script $ac_site_file"
194 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
197 ac_cpp='$CPP '"$xe_cppflags"
198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
202 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
203 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
204 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
211 ac_n= ac_c='\c' ac_t=
215 progname="`echo $0 | sed 's:^\./\./:\./:'`"
218 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
219 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
222 exec_prefix='${prefix}'
223 bindir='${exec_prefix}/bin'
224 datadir='${prefix}/lib'
225 statedir='${prefix}/lib'
226 libdir='${exec_prefix}/lib'
227 mandir='${prefix}/man/man1'
228 infodir='${datadir}/${PROGNAME}-${version}/info'
231 lispdir='${datadir}/${PROGNAME}-${version}/lisp'
232 moduledir='${datadir}/${PROGNAME}-${version}/${configuration}/modules'
233 sitelispdir='${datadir}/xemacs/site-lisp'
234 sitemoduledir='${datadir}/xemacs/site-modules'
235 pkgdir='${datadir}/${PROGNAME}-${version}/lisp'
237 etcdir='${datadir}/${PROGNAME}-${version}/etc'
238 lockdir='${statedir}/${PROGNAME}/lock'
239 archlibdir='${datadir}/${PROGNAME}-${version}/${configuration}'
241 with_site_modules='yes'
247 cpp='' cppflags='' libs='' ldflags=''
252 with_system_malloc='default'
253 with_dlmalloc='default'
266 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 | --no-cr | --no-c) ;;
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
275 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
276 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
280 while test $# != 0; do
283 --no-create|--no-recursion) ;;
287 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
288 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
292 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
293 val="yes" valomitted=yes
298 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
300 case "${valomitted}-${opt}" in yes-without_* )
301 opt=`echo $opt | sed 's/without/with/'`
302 valomitted="no" val="no" ;;
308 with_site_modules | \
358 use_minimal_tagbits | \
359 use_indexed_lrecord_implementation | \
360 memory_usage_stats | \
361 with_clash_detection | \
365 y | ye | yes ) val=yes ;;
367 * ) (echo "$progname: Usage error:"
368 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
369 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
371 eval "$opt=\"$val\"" ;;
390 site_runtime_libraries )
391 if test "$valomitted" = "yes" ; then
392 if test "$#" = 0 ; then
393 (echo "$progname: Usage error:"
394 echo " " "The \`--$optname' option requires a value."
395 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
404 with_debug_malloc | use_debug_malloc | \
405 with_system_malloc | use_system_malloc )
407 y | ye | yes ) val=yes ;;
409 d | de | def | defa | defau | defaul | default ) val=default ;;
410 * ) (echo "$progname: Usage error:"
411 echo " " "The \`--$optname' option requires one of these values:
412 \`yes', \`no', or \`default'."
413 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
415 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
420 with_database_berkdb=no
422 with_database_gnudbm=no
423 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
426 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
427 d | db | dbm ) with_database_dbm=yes ;;
428 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
429 * ) (echo "$progname: Usage error:"
430 echo " " "The \`--$optname' option value
431 must be either \`no' or a comma-separated list
432 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
433 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
436 if test "$with_database_dbm" = "yes" -a \
437 "$with_database_gnudbm" = "yes"; then
438 (echo "$progname: Usage error:"
439 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
440 with the \`--$optname' option."
441 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
447 y | ye | yes ) val=native ;;
448 n | no | non | none ) val=no;;
449 na | nat | nati | nativ | native ) val=native ;;
450 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
451 b | bo | bot | both ) val=both;;
452 * ) (echo "$progname: Usage error:"
453 echo " " "The \`--$optname' option must have one of these values:
454 \`native', \`nas', \`both', or \`none'."
455 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
462 y | ye | yes ) val=yes ;;
463 n | no | non | none ) val=no ;;
464 x | xl | xli | xlib ) val=xlib ;;
465 m | mo | mot | moti | motif ) val=motif ;;
466 * ) (echo "$progname: Usage error:"
467 echo " " "The \`--$optname' option must have one of these values:
468 \`motif', \`xlib', \`yes', or \`no'."
469 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
479 * ) (echo "$progname: Usage error:"
480 echo " " "The \`--$optname' option must have one of these values:
481 \`lockf', \`flock', or \`file'."
482 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
489 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
491 n | no | non | none ) new_default=no ;;
492 a | al | all ) new_default=yes ;;
494 extents ) error_check_extents=yes ;;
495 noextents ) error_check_extents=no ;;
497 typecheck ) error_check_typecheck=yes ;;
498 notypecheck ) error_check_typecheck=no ;;
500 bufpos ) error_check_bufpos=yes ;;
501 nobufpos ) error_check_bufpos=no ;;
503 gc ) error_check_gc=yes ;;
504 nogc ) error_check_gc=no ;;
506 malloc ) error_check_malloc=yes ;;
507 nomalloc ) error_check_malloc=no ;;
509 * ) bogus_error_check=yes ;;
511 if test "$bogus_error_check" -o \
512 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
513 if test "$error_check_default" = yes ; then
514 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
516 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
518 (echo "$progname: Usage error:"
519 echo " " "Valid types for the \`--$optname' option are:
521 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
522 elif test -n "$new_default" ; then
523 error_check_extents=$new_default
524 error_check_typecheck=$new_default
525 error_check_bufpos=$new_default
526 error_check_gc=$new_default
527 error_check_malloc=$new_default
528 new_default= # reset this
535 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
536 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
537 archlibdir | docdir | package_path )
538 if test "$valomitted" = "yes"; then
539 if test "$#" = 0; then
540 (echo "$progname: Usage error:"
541 echo " " "The \`--$optname' option requires a value."
542 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
549 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
550 Defining LISPDIR_USER_DEFINED
552 cat >> confdefs.h <<\EOF
553 #define LISPDIR_USER_DEFINED 1
557 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
558 Defining SITELISPDIR_USER_DEFINED
560 cat >> confdefs.h <<\EOF
561 #define SITELISPDIR_USER_DEFINED 1
565 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
566 Defining MODULEDIR_USER_DEFINED
568 cat >> confdefs.h <<\EOF
569 #define MODULEDIR_USER_DEFINED 1
573 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
574 Defining ETCDIR_USER_DEFINED
576 cat >> confdefs.h <<\EOF
577 #define ETCDIR_USER_DEFINED 1
581 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
582 Defining INFODIR_USER_DEFINED
584 cat >> confdefs.h <<\EOF
585 #define INFODIR_USER_DEFINED 1
589 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
590 Defining INFOPATH_USER_DEFINED
592 cat >> confdefs.h <<\EOF
593 #define INFOPATH_USER_DEFINED 1
597 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
598 Defining PACKAGE_PATH_USER_DEFINED
600 cat >> confdefs.h <<\EOF
601 #define PACKAGE_PATH_USER_DEFINED 1
606 { test "$extra_verbose" = "yes" && cat << \EOF
607 Defining INFODIR_USER_DEFINED
609 cat >> confdefs.h <<\EOF
610 #define INFODIR_USER_DEFINED 1
614 { test "$extra_verbose" = "yes" && cat << \EOF
615 Defining LISPDIR_USER_DEFINED
617 cat >> confdefs.h <<\EOF
618 #define LISPDIR_USER_DEFINED 1
622 { test "$extra_verbose" = "yes" && cat << \EOF
623 Defining MODULEDIR_USER_DEFINED
625 cat >> confdefs.h <<\EOF
626 #define MODULEDIR_USER_DEFINED 1
630 { test "$extra_verbose" = "yes" && cat << \EOF
631 Defining ETCDIR_USER_DEFINED
633 cat >> confdefs.h <<\EOF
634 #define ETCDIR_USER_DEFINED 1
638 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
639 Defining LOCKDIR_USER_DEFINED
641 cat >> confdefs.h <<\EOF
642 #define LOCKDIR_USER_DEFINED 1
646 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
647 Defining ARCHLIBDIR_USER_DEFINED
649 cat >> confdefs.h <<\EOF
650 #define ARCHLIBDIR_USER_DEFINED 1
659 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
662 "with_scrollbars" | \
665 l | lu | luc | luci | lucid ) val=lucid ;;
666 m | mo | mot | moti | motif ) val=motif ;;
667 athena3d | athena-3d ) val=athena3d ;;
668 a | at | ath | athe | athen | athena ) val=athena ;;
669 n | no | non | none ) val=no ;;
670 * ) (echo "$progname: Usage error:"
671 echo " " "The \`--$optname' option must have one of these values:
672 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
673 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
680 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
683 * ) (echo "$progname: Usage error:"
684 echo " " "Unrecognized option: $arg"
685 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
690 *-*-*) configuration="$arg" ;;
692 *) (echo "$progname: Usage error:"
693 echo " " "Unrecognized argument: $arg"
694 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
700 test -n "$cpp" && CPP="$cpp"
701 test -n "$cppflags" && CPPFLAGS="$cppflags"
702 test -n "$libs" && LIBS="$libs"
703 test -n "$ldflags" && LDFLAGS="$ldflags"
705 eval set x "$quoted_arguments"; shift
707 test "$extra_verbose" = "yes" && verbose=yes
709 test -n "$with_x" && with_x11="$with_x"
711 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
712 test "$with_system_malloc" = "default" && with_system_malloc=yes
715 if test -n "$gung_ho"; then
716 test -z "$use_minimal_tagbits" && use_minimal_tagbits="$gung_ho"
717 test -z "$use_indexed_lrecord_implementation" && \
718 use_indexed_lrecord_implementation="$gung_ho"
720 if test "$use_minimal_tagbits" = "no"; then
721 test "$with_dlmalloc" = "yes" && \
722 (echo "$progname: Usage error:"
723 echo " " "--with-dlmalloc requires --use-minimal-tagbits"
724 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
730 if test "$with_cde $with_tooltalk" = "yes no"; then
731 (echo "$progname: Usage error:"
732 echo " " "--with-cde requires --with-tooltalk"
733 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
734 elif test "$with_tooltalk" = "no" ; then with_cde=no
735 elif test "$with_cde" = "yes"; then with_tooltalk=yes
742 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
743 if test -f "$dir/src/lisp.h" -a \
744 -f "$dir/lisp/version.el" ; then
749 if test -z "$srcdir" ; then
750 (echo "$progname: Usage error:"
751 echo " " "Neither the current directory nor its parent seem to
752 contain the XEmacs sources. If you do not want to build XEmacs in its
753 source tree, you should run \`$progname' in the directory in which
754 you wish to build XEmacs, using the \`--srcdir' option to say where the
755 sources may be found."
756 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
761 if test ! -f "$srcdir/src/lisp.h" -o \
762 ! -f "$srcdir/lisp/version.el" ; then
763 (echo "$progname: Usage error:"
764 echo " " "The directory specified with the \`--srcdir' option,
765 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
766 either run the \`$progname' script at the top of the XEmacs source
767 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
768 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
773 if test -z "$configuration"; then
774 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
775 if test -z "$configuration"; then
776 (echo "$progname: Usage error:"
777 echo " " "XEmacs has not been ported to this host type.
778 Try explicitly specifying the CONFIGURATION when rerunning configure."
779 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
783 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
784 echo "configure:785: checking whether ln -s works" >&5
787 if ln -s X conftestdata 2>/dev/null
790 ac_cv_prog_LN_S="ln -s"
794 LN_S="$ac_cv_prog_LN_S"
795 if test "$ac_cv_prog_LN_S" = "ln -s"; then
796 echo "$ac_t""yes" 1>&6
798 echo "$ac_t""no" 1>&6
802 for dir in lisp etc man info; do
803 if test ! -d "$dir" ; then
804 echo Making symbolic link to "$srcdir/$dir"
805 ${LN_S} "$srcdir/$dir" "$dir"
809 absolute_pwd="`pwd`";
810 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
812 else blddir="$absolute_pwd"
818 . ) srcdir="$blddir" ;;
819 * ) srcdir="`cd $srcdir && pwd`" ;;
822 if test `pwd` != `sh -c cd $srcdir && pwd` \
823 && test -f "$srcdir/src/config.h"; then
824 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
825 echo " as a build directory right now; it has been configured in its own"
826 echo " right. To configure in another directory as well, you MUST"
827 echo " use GNU make. If you do not have GNU make, then you must"
828 echo " now do \`make distclean' in $srcdir,"
829 echo " and then run $progname again.") >&2
830 extrasub='/^VPATH[ ]*=/c\
836 vpath %.in $(srcdir)'
839 . "$srcdir/version.sh" || exit 1;
840 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
841 : "${extra_verbose=$beta}"
842 version="${emacs_major_version}.${emacs_minor_version}"
843 { test "$extra_verbose" = "yes" && cat << EOF
844 Defining EMACS_MAJOR_VERSION = $emacs_major_version
846 cat >> confdefs.h <<EOF
847 #define EMACS_MAJOR_VERSION $emacs_major_version
851 { test "$extra_verbose" = "yes" && cat << EOF
852 Defining EMACS_MINOR_VERSION = $emacs_minor_version
854 cat >> confdefs.h <<EOF
855 #define EMACS_MINOR_VERSION $emacs_minor_version
859 if test -n "$emacs_beta_version"; then
860 version="${version}-b${emacs_beta_version}"
861 { test "$extra_verbose" = "yes" && cat << EOF
862 Defining EMACS_BETA_VERSION = $emacs_beta_version
864 cat >> confdefs.h <<EOF
865 #define EMACS_BETA_VERSION $emacs_beta_version
870 { test "$extra_verbose" = "yes" && cat << EOF
871 Defining XEMACS_CODENAME = "$xemacs_codename"
873 cat >> confdefs.h <<EOF
874 #define XEMACS_CODENAME "$xemacs_codename"
878 { test "$extra_verbose" = "yes" && cat << EOF
879 Defining EMACS_VERSION = "$version"
881 cat >> confdefs.h <<EOF
882 #define EMACS_VERSION "$version"
887 if test "$with_infodock" = "yes"; then
888 if test ! -f ../ID-INSTALL; then
889 echo "Cannot build InfoDock without InfoDock sources"
894 if test "$with_infodock" = "yes"; then
895 { test "$extra_verbose" = "yes" && cat << EOF
896 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
898 cat >> confdefs.h <<EOF
899 #define INFODOCK_MAJOR_VERSION $infodock_major_version
903 { test "$extra_verbose" = "yes" && cat << EOF
904 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
906 cat >> confdefs.h <<EOF
907 #define INFODOCK_MINOR_VERSION $infodock_minor_version
911 { test "$extra_verbose" = "yes" && cat << EOF
912 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
914 cat >> confdefs.h <<EOF
915 #define INFODOCK_BUILD_VERSION $infodock_build_version
919 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
921 CPPFLAGS="$CPPFLAGS -DINFODOCK"
926 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
927 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
928 Defining ERROR_CHECK_EXTENTS
930 cat >> confdefs.h <<\EOF
931 #define ERROR_CHECK_EXTENTS 1
935 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
936 Defining ERROR_CHECK_TYPECHECK
938 cat >> confdefs.h <<\EOF
939 #define ERROR_CHECK_TYPECHECK 1
943 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
944 Defining ERROR_CHECK_BUFPOS
946 cat >> confdefs.h <<\EOF
947 #define ERROR_CHECK_BUFPOS 1
951 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
952 Defining ERROR_CHECK_GC
954 cat >> confdefs.h <<\EOF
955 #define ERROR_CHECK_GC 1
959 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
960 Defining ERROR_CHECK_MALLOC
962 cat >> confdefs.h <<\EOF
963 #define ERROR_CHECK_MALLOC 1
967 if test "${debug:=$beta}" = "yes"; then
968 use_assertions=yes memory_usage_stats=yes
969 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
970 echo " xemacs will be linked with \"debug.o\""
972 { test "$extra_verbose" = "yes" && cat << \EOF
973 Defining DEBUG_XEMACS
975 cat >> confdefs.h <<\EOF
976 #define DEBUG_XEMACS 1
981 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
982 Defining USE_ASSERTIONS
984 cat >> confdefs.h <<\EOF
985 #define USE_ASSERTIONS 1
989 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
990 Defining MEMORY_USAGE_STATS
992 cat >> confdefs.h <<\EOF
993 #define MEMORY_USAGE_STATS 1
999 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1000 echo "configure:1001: checking "host system type"" >&5
1001 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1002 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1003 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1004 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1005 echo "$ac_t""$configuration" 1>&6
1013 case "$canonical" in
1014 sparc-*-* ) machine=sparc ;;
1015 alpha*-*-* ) machine=alpha ;;
1016 vax-*-* ) machine=vax ;;
1017 mips-dec-* ) machine=pmax ;;
1018 mips-sgi-* ) machine=iris4d ;;
1019 romp-ibm-* ) machine=ibmrt ;;
1020 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1021 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1022 powerpc*-* ) machine=powerpc ;;
1023 hppa-*-* ) machine=hp800 ;;
1024 m88k-dg-* ) machine=aviion ;;
1025 m68*-sony-* ) machine=news ;;
1026 mips-sony-* ) machine=news-risc ;;
1027 clipper-* ) machine=clipper ;;
1028 arm-* ) machine=arm ;;
1029 ns32k-* ) machine=ns32000 ;;
1032 case "$canonical" in
1033 *-*-linux* ) opsys=linux ;;
1034 *-*-netbsd* ) opsys=netbsd ;;
1035 *-*-openbsd* ) opsys=openbsd ;;
1036 *-*-nextstep* ) opsys=nextstep ;;
1037 *-*-vms ) opsys=vms ;;
1039 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1040 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1041 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1042 *-dec-osf3* ) opsys=decosf3-1 ;;
1043 *-dec-osf4* ) opsys=decosf4-0 ;;
1045 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1046 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1047 *-*-ultrix* ) opsys=ultrix4-3 ;;
1049 *-*-aix3.1* ) opsys=aix3-1 ;;
1050 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1051 *-*-aix3* ) opsys=aix3-2 ;;
1052 *-*-aix4.0* ) opsys=aix4 ;;
1053 *-*-aix4.1* ) opsys=aix4-1 ;;
1054 *-*-aix4* ) opsys=aix4-2 ;;
1056 *-gnu* ) opsys=gnu ;;
1057 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1058 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1059 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1060 *-*-aos4.2 ) opsys=bsd4-2 ;;
1061 *-*-aos* ) opsys=bsd4-3 ;;
1062 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1063 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1064 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1065 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1066 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1067 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1068 if test -z "$NON_GNU_CPP" ; then
1069 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1070 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1074 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1075 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1078 case "$canonical" in
1081 case "$canonical" in
1082 i[3-9]86-*-netbsd*) machine=intel386 ;;
1083 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1084 machine=hp9000s300 ;;
1085 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1086 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1091 case "${canonical}" in
1092 i386-*-openbsd*) machine=intel386 ;;
1093 m68k-*-openbsd*) machine=hp9000s300 ;;
1094 mipsel-*-openbsd*) machine=pmax ;;
1098 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1099 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1101 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1102 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1104 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1106 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1108 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1110 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1112 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1114 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1115 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1116 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1119 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1121 *-convex-bsd* | *-convex-convexos* )
1122 machine=convex opsys=bsd4-3
1123 NON_GNU_CPP="cc -E -P"
1126 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1128 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1129 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1130 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1131 m88k-dg-dgux* ) opsys=dgux ;;
1133 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1134 m88k-motorola-sysv4* )
1135 machine=delta88k opsys=usg5-4-2
1137 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1139 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1140 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1142 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1144 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1145 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1146 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1149 case "`uname -r`" in
1150 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1151 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1153 NON_GNU_CPP="/lib/cpp"
1155 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1156 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1158 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1160 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1163 case "$canonical" in
1164 m68* ) machine=hp9000s300 ;;
1165 hppa* ) machine=hp800 ;;
1168 case "$canonical" in
1169 *-hp-hpux7* ) opsys=hpux ;;
1170 *-hp-hpux8* ) opsys=hpux8 ;;
1171 *-hp-hpux9* ) opsys=hpux9 ;;
1172 *-hp-hpux10* ) opsys=hpux10 ;;
1173 *-hp-hpux11* ) opsys=hpux11 ;;
1177 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1178 echo " xemacs will be linked with \"strcat.o\""
1181 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1182 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1183 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1185 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1188 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1189 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1191 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1192 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1193 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1194 romp-ibm-aos* ) opsys=bsd4-3 ;;
1195 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1196 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1198 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1199 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1201 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1203 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1205 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1207 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1209 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1211 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1213 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1215 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1217 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1219 mips-mips-usg* ) machine=mips4 ;;
1222 NON_GNU_CC="cc -systype bsd43"
1223 NON_GNU_CPP="cc -systype bsd43 -E"
1224 case "$canonical" in
1225 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1226 mips-mips-riscos5* ) opsys=riscos5 ;;
1229 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1230 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1232 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1234 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1236 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1237 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1239 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1241 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1243 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1245 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1247 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1248 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1250 mips-siemens-sysv* | mips-sni-sysv*)
1251 machine=mips-siemens opsys=usg5-4
1252 NON_GNU_CC=/usr/ccs/bin/cc
1253 NON_GNU_CPP=/usr/ccs/lib/cpp
1258 NON_GNU_CC=/usr/ccs/bin/cc
1259 NON_GNU_CPP=/usr/ccs/lib/cpp
1262 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1263 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1264 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1265 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1266 mips-sgi-irix6* ) opsys=irix6-0 ;;
1267 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1268 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1269 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1270 mips-sgi-irix* ) opsys=irix5-0 ;;
1272 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1273 *-sony-news* ) opsys=newsos5 ;;
1275 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1277 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1278 case "$canonical" in
1279 m68*-sunos1* ) machine=sun1 ;;
1280 m68*-sunos2* ) machine=sun2 ;;
1281 m68* ) machine=sun3 ;;
1282 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1283 i*86-*-* ) machine=intel386 ;;
1284 rs6000* ) machine=rs6000 ;;
1287 case "$canonical" in *-sunos5*)
1288 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1291 case "$canonical" in
1293 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1296 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1300 case "$canonical" in
1303 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1304 { test "$extra_verbose" = "yes" && cat << EOF
1305 Defining OS_RELEASE = $os_release
1307 cat >> confdefs.h <<EOF
1308 #define OS_RELEASE $os_release
1313 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1314 *-sunos4.0* ) opsys=sunos4-0 ;;
1315 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1316 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1317 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1318 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1319 *-mach* ) opsys=mach-bsd4-3 ;;
1323 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1325 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1328 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1330 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1331 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1333 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1335 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1337 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1338 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1340 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1342 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1345 case "$canonical" in
1346 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1347 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1348 *-mach* ) opsys=mach-bsd4-3 ;;
1352 ns16k-whitechapel-* ) machine=mg1 ;;
1354 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1358 case "$canonical" in
1359 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1360 *-isc2.2* ) opsys=isc2-2 ;;
1361 *-isc4.0* ) opsys=isc4-0 ;;
1362 *-isc4.* ) opsys=isc4-1
1363 GCC_TEST_OPTIONS=-posix
1364 NON_GCC_TEST_OPTIONS=-Xp
1366 *-isc* ) opsys=isc3-0 ;;
1367 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1368 *-esix* ) opsys=esix ;;
1369 *-mach* ) opsys=mach-bsd4-3 ;;
1370 *-xenix* ) opsys=xenix ;;
1371 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1372 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1373 *-bsdi3* ) opsys=bsdos3 ;;
1374 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1375 *-bsdi2* ) opsys=bsdos2 ;;
1376 *-sco3.2v5* ) opsys=sco5 ;
1377 if test "$dynamic" = "yes" ; then
1378 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1380 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1382 *-386bsd* ) opsys=386bsd ;;
1383 *-freebsd* ) opsys=freebsd ;;
1384 *-nextstep* ) opsys=nextstep ;;
1385 *-pc-cygwin32 ) opsys=cygwin32 ;;
1389 m68k-*-linux* ) machine=m68k opsys=linux ;;
1393 if test -z "$machine" -o -z "$opsys"; then
1394 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1395 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1400 if test -z "$dynamic"; then
1402 hpux* | sunos4* ) dynamic=no ;;
1406 if test "$dynamic" = "yes"; then
1408 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1409 decosf* ) ld_call_shared="-call_shared" ;;
1411 else case "$opsys" in
1413 echo "Static linking is not supported on Solaris 2."
1414 echo "Rerun configure without specifying --dynamic=no."
1416 linux ) ld_call_shared="-Bstatic" ;;
1417 decosf* ) ld_call_shared="-non_shared" ;;
1421 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1423 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1424 { test "$extra_verbose" = "yes" && cat << EOF
1425 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1427 cat >> confdefs.h <<EOF
1428 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1433 machfile="m/${machine}.h"
1434 opsysfile="s/${opsys}.h"
1437 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1438 if test "$with_workshop $with_tooltalk" = "yes no"; then
1439 (echo "$progname: Usage error:"
1440 echo " " "--with-workshop requires --with-tooltalk"
1441 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1442 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1443 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1446 if test "$with_workshop" = "yes"; then
1447 { test "$extra_verbose" = "yes" && cat << \EOF
1450 cat >> confdefs.h <<\EOF
1455 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1456 echo " xemacs will be linked with \"sunpro.o\""
1460 if test "$with_clash_detection" = "yes"; then
1461 { test "$extra_verbose" = "yes" && cat << \EOF
1462 Defining CLASH_DETECTION
1464 cat >> confdefs.h <<\EOF
1465 #define CLASH_DETECTION 1
1469 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1470 echo " xemacs will be linked with \"filelock.o\""
1474 test -n "$compiler" && CC="$compiler"
1475 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1478 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1479 if test "${CFLAGS-unset}" != unset
1480 then cflags_specified=yes;
1481 else cflags_specified=no;
1484 xe_save_CFLAGS="$CFLAGS"
1486 # Extract the first word of "gcc", so it can be a program name with args.
1487 set dummy gcc; ac_word=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5
1491 if test -n "$CC"; then
1492 ac_cv_prog_CC="$CC" # Let the user override the test.
1494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1495 for ac_dir in $PATH; do
1496 test -z "$ac_dir" && ac_dir=.
1497 if test -f $ac_dir/$ac_word; then
1505 if test -n "$CC"; then
1506 echo "$ac_t""$CC" 1>&6
1508 echo "$ac_t""no" 1>&6
1511 if test -z "$CC"; then
1512 # Extract the first word of "cc", so it can be a program name with args.
1513 set dummy cc; ac_word=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1517 if test -n "$CC"; then
1518 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1522 for ac_dir in $PATH; do
1523 test -z "$ac_dir" && ac_dir=.
1524 if test -f $ac_dir/$ac_word; then
1525 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1526 ac_prog_rejected=yes
1534 if test $ac_prog_rejected = yes; then
1535 # We found a bogon in the path, so make sure we never use it.
1536 set dummy $ac_cv_prog_CC
1538 if test $# -gt 0; then
1539 # We chose a different compiler from the bogus one.
1540 # However, it has the same basename, so the bogon will be chosen
1541 # first if we set CC to just the basename; use the full file name.
1543 set dummy "$ac_dir/$ac_word" "$@"
1550 if test -n "$CC"; then
1551 echo "$ac_t""$CC" 1>&6
1553 echo "$ac_t""no" 1>&6
1556 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1559 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1563 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1564 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1565 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1566 ac_cpp='$CPP '"$xe_cppflags"
1567 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1568 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1576 if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1577 ac_cv_prog_cc_works=yes
1578 # If we can't run a trivial program, we are probably using a cross compiler.
1579 if (./conftest; exit) 2>/dev/null; then
1580 ac_cv_prog_cc_cross=no
1582 ac_cv_prog_cc_cross=yes
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1587 ac_cv_prog_cc_works=no
1591 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1592 if test $ac_cv_prog_cc_works = no; then
1593 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1595 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1596 echo "configure:1597: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1597 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1598 cross_compiling=$ac_cv_prog_cc_cross
1600 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1601 echo "configure:1602: checking whether we are using GNU C" >&5
1603 cat > conftest.c <<EOF
1608 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1614 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1616 if test $ac_cv_prog_gcc = yes; then
1618 ac_test_CFLAGS="${CFLAGS+set}"
1619 ac_save_CFLAGS="$CFLAGS"
1621 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1622 echo "configure:1623: checking whether ${CC-cc} accepts -g" >&5
1624 echo 'void f(){}' > conftest.c
1625 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1633 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1634 if test "$ac_test_CFLAGS" = set; then
1635 CFLAGS="$ac_save_CFLAGS"
1636 elif test $ac_cv_prog_cc_g = yes; then
1643 test "${CFLAGS+set}" = set || CFLAGS="-g"
1646 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1648 # Extract the first word of "gcc", so it can be a program name with args.
1649 set dummy gcc; ac_word=$2
1650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_word" >&5
1653 if test -n "$CC"; then
1654 ac_cv_prog_CC="$CC" # Let the user override the test.
1656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1657 for ac_dir in $PATH; do
1658 test -z "$ac_dir" && ac_dir=.
1659 if test -f $ac_dir/$ac_word; then
1667 if test -n "$CC"; then
1668 echo "$ac_t""$CC" 1>&6
1670 echo "$ac_t""no" 1>&6
1673 if test -z "$CC"; then
1674 # Extract the first word of "cc", so it can be a program name with args.
1675 set dummy cc; ac_word=$2
1676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_word" >&5
1679 if test -n "$CC"; then
1680 ac_cv_prog_CC="$CC" # Let the user override the test.
1682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1684 for ac_dir in $PATH; do
1685 test -z "$ac_dir" && ac_dir=.
1686 if test -f $ac_dir/$ac_word; then
1687 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1688 ac_prog_rejected=yes
1696 if test $ac_prog_rejected = yes; then
1697 # We found a bogon in the path, so make sure we never use it.
1698 set dummy $ac_cv_prog_CC
1700 if test $# -gt 0; then
1701 # We chose a different compiler from the bogus one.
1702 # However, it has the same basename, so the bogon will be chosen
1703 # first if we set CC to just the basename; use the full file name.
1705 set dummy "$ac_dir/$ac_word" "$@"
1712 if test -n "$CC"; then
1713 echo "$ac_t""$CC" 1>&6
1715 echo "$ac_t""no" 1>&6
1718 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1721 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1722 echo "configure:1723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1725 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1726 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1727 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1728 ac_cpp='$CPP '"$xe_cppflags"
1729 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1730 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1739 ac_cv_prog_cc_works=yes
1740 # If we can't run a trivial program, we are probably using a cross compiler.
1741 if (./conftest; exit) 2>/dev/null; then
1742 ac_cv_prog_cc_cross=no
1744 ac_cv_prog_cc_cross=yes
1747 echo "configure: failed program was:" >&5
1748 cat conftest.$ac_ext >&5
1749 ac_cv_prog_cc_works=no
1753 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1754 if test $ac_cv_prog_cc_works = no; then
1755 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1758 echo "configure:1759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1759 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1760 cross_compiling=$ac_cv_prog_cc_cross
1762 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1763 echo "configure:1764: checking whether we are using GNU C" >&5
1765 cat > conftest.c <<EOF
1770 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1776 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1778 if test $ac_cv_prog_gcc = yes; then
1780 ac_test_CFLAGS="${CFLAGS+set}"
1781 ac_save_CFLAGS="$CFLAGS"
1783 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether ${CC-cc} accepts -g" >&5
1786 echo 'void f(){}' > conftest.c
1787 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1795 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1796 if test "$ac_test_CFLAGS" = set; then
1797 CFLAGS="$ac_save_CFLAGS"
1798 elif test $ac_cv_prog_cc_g = yes; then
1805 test "${CFLAGS+set}" = set || CFLAGS="-g"
1808 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1810 # Extract the first word of "gcc", so it can be a program name with args.
1811 set dummy gcc; ac_word=$2
1812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1813 echo "configure:1814: checking for $ac_word" >&5
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1819 for ac_dir in $PATH; do
1820 test -z "$ac_dir" && ac_dir=.
1821 if test -f $ac_dir/$ac_word; then
1829 if test -n "$CC"; then
1830 echo "$ac_t""$CC" 1>&6
1832 echo "$ac_t""no" 1>&6
1835 if test -z "$CC"; then
1836 # Extract the first word of "cc", so it can be a program name with args.
1837 set dummy cc; ac_word=$2
1838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1839 echo "configure:1840: checking for $ac_word" >&5
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1846 for ac_dir in $PATH; do
1847 test -z "$ac_dir" && ac_dir=.
1848 if test -f $ac_dir/$ac_word; then
1849 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1850 ac_prog_rejected=yes
1858 if test $ac_prog_rejected = yes; then
1859 # We found a bogon in the path, so make sure we never use it.
1860 set dummy $ac_cv_prog_CC
1862 if test $# -gt 0; then
1863 # We chose a different compiler from the bogus one.
1864 # However, it has the same basename, so the bogon will be chosen
1865 # first if we set CC to just the basename; use the full file name.
1867 set dummy "$ac_dir/$ac_word" "$@"
1874 if test -n "$CC"; then
1875 echo "$ac_t""$CC" 1>&6
1877 echo "$ac_t""no" 1>&6
1880 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1883 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1884 echo "configure:1885: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1887 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1888 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1889 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1890 ac_cpp='$CPP '"$xe_cppflags"
1891 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1892 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1895 cat > conftest.$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1901 ac_cv_prog_cc_works=yes
1902 # If we can't run a trivial program, we are probably using a cross compiler.
1903 if (./conftest; exit) 2>/dev/null; then
1904 ac_cv_prog_cc_cross=no
1906 ac_cv_prog_cc_cross=yes
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1911 ac_cv_prog_cc_works=no
1915 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1916 if test $ac_cv_prog_cc_works = no; then
1917 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1920 echo "configure:1921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1921 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1922 cross_compiling=$ac_cv_prog_cc_cross
1924 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1925 echo "configure:1926: checking whether we are using GNU C" >&5
1927 cat > conftest.c <<EOF
1932 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1938 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1940 if test $ac_cv_prog_gcc = yes; then
1942 ac_test_CFLAGS="${CFLAGS+set}"
1943 ac_save_CFLAGS="$CFLAGS"
1945 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1946 echo "configure:1947: checking whether ${CC-cc} accepts -g" >&5
1948 echo 'void f(){}' > conftest.c
1949 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1957 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1958 if test "$ac_test_CFLAGS" = set; then
1959 CFLAGS="$ac_save_CFLAGS"
1960 elif test $ac_cv_prog_cc_g = yes; then
1967 test "${CFLAGS+set}" = set || CFLAGS="-g"
1971 CFLAGS="$xe_save_CFLAGS"
1974 test -n "$CPP" -a -d "$CPP" && CPP=
1976 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1978 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1979 echo "configure:1980: checking how to run the C preprocessor" >&5
1980 # On Suns, sometimes $CPP names a directory.
1981 if test -n "$CPP" && test -d "$CPP"; then
1984 if test -z "$CPP"; then
1986 # This must be in double quotes, not single quotes, because CPP may get
1987 # substituted into the Makefile and "${CC-cc}" will confuse make.
1989 # On the NeXT, cc -E runs the code through the compiler's parser,
1990 # not just through cpp.
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1998 { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999 ac_err=`grep -v '^ *+' conftest.out`
2000 if test -z "$ac_err"; then
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2007 CPP="${CC-cc} -E -traditional-cpp"
2008 cat > conftest.$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2015 { (eval echo configure:2016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2016 ac_err=`grep -v '^ *+' conftest.out`
2017 if test -z "$ac_err"; then
2021 echo "configure: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2029 ac_cv_prog_CPP="$CPP"
2030 CPP="$ac_cv_prog_CPP"
2032 ac_cv_prog_CPP="$CPP"
2034 echo "$ac_t""$CPP" 1>&6
2037 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2038 echo "configure:2039: checking for AIX" >&5
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2048 egrep "yes" >/dev/null 2>&1; then
2050 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2051 Defining _ALL_SOURCE
2053 cat >> confdefs.h <<\EOF
2054 #define _ALL_SOURCE 1
2060 echo "$ac_t""no" 1>&6
2066 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2067 echo "configure:2068: checking for GNU libc" >&5
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 #include <features.h>
2074 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2075 #error Not a GNU libc system :-(
2076 ******* ======= ******** &&&&&&&&
2081 if { (eval echo configure:2082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2085 echo "configure: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2091 echo "$ac_t""$have_glibc" 1>&6
2092 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2093 Defining _GNU_SOURCE
2095 cat >> confdefs.h <<\EOF
2096 #define _GNU_SOURCE 1
2102 cat > conftest.$ac_ext <<EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2106 #if defined __SUNPRO_C
2108 #elif defined __DECC
2115 if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2123 case "$conftest_rc" in
2124 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2125 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2133 echo "Extracting information from the machine- and system-dependent headers..."
2135 tempcname="conftest.c"
2139 cat > $tempcname <<EOF
2141 #define C_SWITCH_SITE
2142 #define C_SWITCH_X_SITE
2143 #define LD_SWITCH_SITE
2144 #define LD_SWITCH_X_SITE
2145 #define LD_SWITCH_X_SITE_AUX
2146 #define OS_RELEASE $os_release
2147 #include "$srcdir/src/$opsysfile"
2148 #include "$srcdir/src/$machfile"
2150 #ifndef LIBS_MACHINE
2151 #define LIBS_MACHINE
2153 configure___ libs_machine=LIBS_MACHINE
2158 configure___ libs_system=LIBS_SYSTEM
2160 #ifndef LIBS_TERMCAP
2161 #define LIBS_TERMCAP
2163 configure___ libs_termcap=LIBS_TERMCAP
2165 #ifndef LIB_STANDARD
2166 #define LIB_STANDARD
2168 configure___ libs_standard=LIB_STANDARD
2171 #ifndef OBJECTS_MACHINE
2172 #define OBJECTS_MACHINE
2174 configure___ objects_machine=OBJECTS_MACHINE
2176 #ifndef OBJECTS_SYSTEM
2177 #define OBJECTS_SYSTEM
2179 configure___ objects_system=OBJECTS_SYSTEM
2182 #ifndef C_SWITCH_MACHINE
2183 #define C_SWITCH_MACHINE
2185 configure___ c_switch_machine=C_SWITCH_MACHINE
2187 #ifndef C_SWITCH_SYSTEM
2188 #define C_SWITCH_SYSTEM
2190 configure___ c_switch_system=C_SWITCH_SYSTEM
2193 #ifndef LD_SWITCH_MACHINE
2194 #define LD_SWITCH_MACHINE
2196 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2198 #ifndef LD_SWITCH_SYSTEM
2199 #define LD_SWITCH_SYSTEM
2201 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2205 #define UNEXEC "unexec.o"
2207 configure___ unexec=UNEXEC
2210 #ifndef LD_SWITCH_SHARED
2211 #define LD_SWITCH_SHARED "-c"
2213 configure___ ld_switch_shared=LD_SWITCH_SHARED
2216 #ifdef ORDINARY_LINK
2217 #define LD "\$(CC) \$(CFLAGS)"
2218 #else /* no ORDINARY LINK */
2219 #ifdef COFF_ENCAPSULATE
2220 #define LD "\$(CC) -nostdlib"
2221 #else /* not COFF_ENCAPSULATE */
2224 #else /* ! defined (LINKER) */
2226 #endif /* ! defined (LINKER) */
2227 #endif /* ! defined (COFF_ENCAPSULATE) */
2228 #endif /* not ORDINARY_LINK */
2234 configure___ lib_gcc=LIB_GCC
2236 #ifndef LD_TEXT_START_ADDR
2237 #define LD_TEXT_START_ADDR
2239 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2242 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2244 #ifdef COFF_ENCAPSULATE
2245 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2246 #else /* ! defined (COFF_ENCAPSULATE) */
2247 #define START_FILES "pre-crt0.o /lib/crt0.o"
2248 #endif /* ! defined (COFF_ENCAPSULATE) */
2249 #else /* ! defined (NO_REMAP) */
2250 #define START_FILES "ecrt0.o"
2251 #endif /* ! defined (NO_REMAP) */
2252 #endif /* no ORDINARY_LINK */
2256 configure___ start_files=START_FILES
2258 #ifdef ORDINARY_LINK
2259 configure___ ordinary_link=yes
2261 configure___ ordinary_link=no
2264 #ifdef SYSTEM_MALLOC
2265 configure___ system_malloc=yes
2267 configure___ system_malloc=no
2271 configure___ have_terminfo=yes
2273 configure___ have_terminfo=no
2276 #ifdef MAIL_USE_FLOCK
2277 configure___ mail_use_flock=yes
2279 configure___ mail_use_flock=no
2282 #ifdef MAIL_USE_LOCKF
2283 configure___ mail_use_lockf=yes
2285 configure___ mail_use_lockf=no
2290 CPP=`eval "echo $CPP $CPPFLAGS"`
2291 eval `$CPP -Isrc $tempcname \
2292 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2296 test "$extra_verbose" = "yes" && \
2297 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 ""
2299 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2301 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2303 if test "$cflags_specified" = "no"; then
2304 if test "$GCC" = "yes"; then
2305 CFLAGS="-g -O3 -Wall -Wno-switch"
2306 elif test "$__SUNPRO_C" = "yes"; then
2308 sol2 ) CFLAGS="-v -xO4" ;;
2309 sunos4* ) CFLAGS="-xO2";;
2311 elif test "$__DECC" = "yes"; then
2313 elif test "$CC" = "xlc"; then
2314 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2320 if test "$GCC" = "yes"; then
2321 set x $ld_switch_system; shift; ld_switch_system=""
2322 while test -n "$1"; do
2324 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2325 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2327 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2333 if test "$GCC" = "yes"; then
2334 set x $ld_switch_machine; shift; ld_switch_machine=""
2335 while test -n "$1"; do
2337 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2338 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2340 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2346 if test "$GCC" = "yes"; then
2347 set x $LDFLAGS; shift; LDFLAGS=""
2348 while test -n "$1"; do
2350 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2351 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2353 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2359 if test "$GCC" = "yes"; then
2360 set x $ld_call_shared; shift; ld_call_shared=""
2361 while test -n "$1"; do
2363 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2364 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2366 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2372 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2373 echo " xemacs will be linked with \"$objects_machine\""
2375 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2376 echo " xemacs will be linked with \"$objects_system\""
2378 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2379 echo " xemacs will be linked with \"$unexec\""
2382 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2383 echo "configure:2384: checking for dynodump" >&5
2384 if test "$unexec" != "unexsol2.o"; then
2385 echo "$ac_t""no" 1>&6
2387 echo "$ac_t""yes" 1>&6
2388 { test "$extra_verbose" = "yes" && cat << \EOF
2391 cat >> confdefs.h <<\EOF
2396 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2397 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2399 sparc ) dynodump_arch=sparc ;;
2400 *86* ) dynodump_arch=i386 ;;
2401 powerpc ) dynodump_arch=ppc ;;
2403 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
2407 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2409 if test "$unexec" = "unexaix.o"; then
2410 if test "$dynamic" = "no"; then
2411 start_flags="-Wl,-bnso,-bnodelcsect"
2412 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2413 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2414 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2416 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2417 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2420 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2421 echo "configure:2422: checking for terminateAndUnload in -lC" >&5
2422 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2424 xe_check_libs=" -lC "
2425 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 /* Override any gcc2 internal prototype to avoid an error. */
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2431 char terminateAndUnload();
2434 terminateAndUnload()
2437 if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2439 eval "ac_cv_lib_$ac_lib_var=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 eval "ac_cv_lib_$ac_lib_var=no"
2449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2450 echo "$ac_t""yes" 1>&6
2451 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2453 echo "$ac_t""no" 1>&6
2458 elif test -n "$ld_text_start_addr"; then
2459 start_flags="-T $ld_text_start_addr -e __start"
2465 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2466 test -z "$linker" && linker='$(CC) -nostdlib'
2467 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2469 test "$GCC" != "yes" && lib_gcc=
2475 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2476 if test -n "$site_libraries"; then
2477 for arg in $site_libraries; do
2480 * ) test -d "$arg" || \
2481 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2484 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2488 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2489 if test -n "$site_includes"; then
2490 for arg in $site_includes; do
2493 * ) test -d "$arg" || \
2494 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2497 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2501 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2502 if test -n "$site_prefixes"; then
2503 for dir in $site_prefixes; do
2504 inc_dir="${dir}/include"
2505 lib_dir="${dir}/lib"
2506 if test ! -d "$dir"; then
2507 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2508 elif test ! -d "$inc_dir"; then
2509 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$inc_dir'" >&2; exit 1; }
2510 elif test ! -d "$lib_dir"; then
2511 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2513 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
2514 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
2520 for dir in "/usr/ccs/lib"; do
2521 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
2524 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2525 if test -n "$site_runtime_libraries"; then
2526 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2531 if test "$dynamic" = "no"; then add_runtime_path=no
2532 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2533 else case "$opsys" in
2534 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2535 * ) add_runtime_path=no ;;
2539 if test "$add_runtime_path" = "yes"; then
2540 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2541 echo "configure:2542: checking "for runtime libraries flag"" >&5
2543 sol2 ) dash_r="-R" ;;
2544 decosf* | linux* ) dash_r="-rpath " ;;
2547 for try_dash_r in "-R" "-R " "-rpath "; do
2548 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2550 if test "$GCC" = "yes"; then
2551 set x $xe_check_libs; shift; xe_check_libs=""
2552 while test -n "$1"; do
2554 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2555 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2557 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2562 cat > conftest.$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2570 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2572 dash_r="$try_dash_r"
2574 echo "configure: failed program was:" >&5
2575 cat conftest.$ac_ext >&5
2579 test -n "$dash_r" && break
2582 if test -n "$dash_r";
2583 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2584 else echo "$ac_t""NONE" 1>&6
2588 xe_add_unique_runpath_dir='
2590 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2592 if test "$xe_add_p" = "yes"; then
2593 test -n "$runpath" && runpath="${runpath}:"
2594 runpath="${runpath}${xe_runpath_dir}"
2595 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2601 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2602 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2603 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2605 runpath="" runpath_dirs=""
2606 if test -n "$LD_RUN_PATH"; then
2607 runpath="$LD_RUN_PATH"
2608 elif test "$GCC" = "yes"; then
2609 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2610 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2611 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2612 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2613 case "$arg" in P,* | -L* | -R* )
2614 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2616 xe_runpath_dir="$dir"
2617 test "$xe_runpath_dir" != "/lib" -a \
2618 "$xe_runpath_dir" != "/usr/lib" -a \
2619 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2620 eval "$xe_add_unique_runpath_dir"
2625 ld_switch_run="$ld_switch_run_save"
2628 for arg in $ld_switch_site $ld_switch_x_site; do
2629 case "$arg" in -L*) {
2630 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2631 test "$xe_runpath_dir" != "/lib" -a \
2632 "$xe_runpath_dir" != "/usr/lib" -a \
2633 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2634 eval "$xe_add_unique_runpath_dir"
2637 if test "$opsys $need_motif" = "sol2 yes"; then
2638 xe_runpath_dir="/opt/SUNWdt/lib";
2639 eval "$xe_add_unique_runpath_dir";
2642 if test -n "$runpath"; then
2643 ld_switch_run="${dash_r}${runpath}"
2645 if test "$GCC" = "yes"; then
2646 set x $ld_switch_run; shift; ld_switch_run=""
2647 while test -n "$1"; do
2649 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2650 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2652 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2657 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2665 if test "$with_dlmalloc" != "no"; then
2670 after_morecore_hook_exists=yes
2671 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2672 echo "configure:2673: checking for malloc_get_state" >&5
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 /* System header to define __stub macros and hopefully few prototypes,
2678 which can conflict with char malloc_get_state(); below. */
2680 /* Override any gcc2 internal prototype to avoid an error. */
2681 /* We use char because int might match the return type of a gcc2
2682 builtin and then its argument prototype would still apply. */
2683 char malloc_get_state();
2687 /* The GNU C library defines this for functions which it implements
2688 to always fail with ENOSYS. Some functions are actually named
2689 something starting with __ and the normal name is an alias. */
2690 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2700 eval "ac_cv_func_malloc_get_state=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 eval "ac_cv_func_malloc_get_state=no"
2709 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2713 echo "$ac_t""no" 1>&6
2717 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2718 echo "configure:2719: checking for malloc_set_state" >&5
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 /* System header to define __stub macros and hopefully few prototypes,
2724 which can conflict with char malloc_set_state(); below. */
2726 /* Override any gcc2 internal prototype to avoid an error. */
2727 /* We use char because int might match the return type of a gcc2
2728 builtin and then its argument prototype would still apply. */
2729 char malloc_set_state();
2733 /* The GNU C library defines this for functions which it implements
2734 to always fail with ENOSYS. Some functions are actually named
2735 something starting with __ and the normal name is an alias. */
2736 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2746 eval "ac_cv_func_malloc_set_state=yes"
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2751 eval "ac_cv_func_malloc_set_state=no"
2755 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2759 echo "$ac_t""no" 1>&6
2763 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2764 echo "configure:2765: checking whether __after_morecore_hook exists" >&5
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 extern void (* __after_morecore_hook)();
2770 __after_morecore_hook = 0
2773 if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2775 echo "$ac_t""yes" 1>&6
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2780 echo "$ac_t""no" 1>&6
2781 after_morecore_hook_exists=no
2784 if test "$system_malloc" = "yes" ; then
2787 (The GNU allocators don't work with this system configuration)."
2788 elif test "$with_system_malloc" = "yes" ; then
2791 (User chose not to use GNU allocators)."
2792 elif test "$with_debug_malloc" = "yes" ; then
2795 (User chose to use Debugging Malloc)."
2798 if test "$doug_lea_malloc" = "yes" ; then
2799 if test "$GNU_MALLOC" = yes ; then
2801 (Using Doug Lea's new malloc from the GNU C Library.)"
2803 { test "$extra_verbose" = "yes" && cat << \EOF
2804 Defining DOUG_LEA_MALLOC
2806 cat >> confdefs.h <<\EOF
2807 #define DOUG_LEA_MALLOC 1
2811 if test "$after_morecore_hook_exists" = "no" ; then
2813 (Using Doug Lea's new malloc from the Linux C Library.)"
2814 { test "$extra_verbose" = "yes" && cat << \EOF
2815 Defining _NO_MALLOC_WARNING_
2817 cat >> confdefs.h <<\EOF
2818 #define _NO_MALLOC_WARNING_ 1
2823 use_minimal_tagbits=yes
2829 # Extract the first word of "ranlib", so it can be a program name with args.
2830 set dummy ranlib; ac_word=$2
2831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2832 echo "configure:2833: checking for $ac_word" >&5
2834 if test -n "$RANLIB"; then
2835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2838 for ac_dir in $PATH; do
2839 test -z "$ac_dir" && ac_dir=.
2840 if test -f $ac_dir/$ac_word; then
2841 ac_cv_prog_RANLIB="ranlib"
2846 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2848 RANLIB="$ac_cv_prog_RANLIB"
2849 if test -n "$RANLIB"; then
2850 echo "$ac_t""$RANLIB" 1>&6
2852 echo "$ac_t""no" 1>&6
2856 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2857 if test -f $ac_dir/install-sh; then
2859 ac_install_sh="$ac_aux_dir/install-sh -c"
2861 elif test -f $ac_dir/install.sh; then
2863 ac_install_sh="$ac_aux_dir/install.sh -c"
2867 if test -z "$ac_aux_dir"; then
2868 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
2870 ac_config_guess=$ac_aux_dir/config.guess
2871 ac_config_sub=$ac_aux_dir/config.sub
2872 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
2874 # Find a good install program. We prefer a C program (faster),
2875 # so one script is as good as another. But avoid the broken or
2876 # incompatible versions:
2877 # SysV /etc/install, /usr/sbin/install
2878 # SunOS /usr/etc/install
2879 # IRIX /sbin/install
2881 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2882 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2883 # ./install, which can be erroneously created by make from ./install.sh.
2884 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2885 echo "configure:2886: checking for a BSD compatible install" >&5
2886 if test -z "$INSTALL"; then
2888 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2889 for ac_dir in $PATH; do
2890 # Account for people who put trailing slashes in PATH elements.
2892 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2894 # OSF1 and SCO ODT 3.0 have their own names for install.
2895 for ac_prog in ginstall installbsd scoinst install; do
2896 if test -f $ac_dir/$ac_prog; then
2897 if test $ac_prog = install &&
2898 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2899 # AIX install. It has an incompatible calling convention.
2900 # OSF/1 installbsd also uses dspmsg, but is usable.
2903 ac_cv_path_install="$ac_dir/$ac_prog -c"
2913 if test "${ac_cv_path_install+set}" = set; then
2914 INSTALL="$ac_cv_path_install"
2916 # As a last resort, use the slow shell script. We don't cache a
2917 # path for INSTALL within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the path is relative.
2920 INSTALL="$ac_install_sh"
2923 echo "$ac_t""$INSTALL" 1>&6
2925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2926 # It thinks the first close brace ends the variable substitution.
2927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2931 for ac_prog in 'bison -y' byacc
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_word" >&5
2938 if test -n "$YACC"; then
2939 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2942 for ac_dir in $PATH; do
2943 test -z "$ac_dir" && ac_dir=.
2944 if test -f $ac_dir/$ac_word; then
2945 ac_cv_prog_YACC="$ac_prog"
2951 YACC="$ac_cv_prog_YACC"
2952 if test -n "$YACC"; then
2953 echo "$ac_t""$YACC" 1>&6
2955 echo "$ac_t""no" 1>&6
2958 test -n "$YACC" && break
2960 test -n "$YACC" || YACC="yacc"
2963 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2967 echo "configure:2968: checking for $ac_hdr" >&5
2969 cat > conftest.$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2975 { (eval echo configure:2976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2976 ac_err=`grep -v '^ *+' conftest.out`
2977 if test -z "$ac_err"; then
2979 eval "ac_cv_header_$ac_safe=yes"
2982 echo "configure: failed program was:" >&5
2983 cat conftest.$ac_ext >&5
2985 eval "ac_cv_header_$ac_safe=no"
2988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2989 echo "$ac_t""yes" 1>&6
2990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2991 { test "$extra_verbose" = "yes" && cat << EOF
2994 cat >> confdefs.h <<EOF
2995 #define $ac_tr_hdr 1
3000 echo "$ac_t""no" 1>&6
3004 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3008 echo "configure:3009: checking for $ac_hdr" >&5
3010 cat > conftest.$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3016 { (eval echo configure:3017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3017 ac_err=`grep -v '^ *+' conftest.out`
3018 if test -z "$ac_err"; then
3020 eval "ac_cv_header_$ac_safe=yes"
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3026 eval "ac_cv_header_$ac_safe=no"
3029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3030 echo "$ac_t""yes" 1>&6
3031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3032 { test "$extra_verbose" = "yes" && cat << EOF
3035 cat >> confdefs.h <<EOF
3036 #define $ac_tr_hdr 1
3041 echo "$ac_t""no" 1>&6
3045 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_hdr" >&5
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3057 { (eval echo configure:3058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3058 ac_err=`grep -v '^ *+' conftest.out`
3059 if test -z "$ac_err"; then
3061 eval "ac_cv_header_$ac_safe=yes"
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3067 eval "ac_cv_header_$ac_safe=no"
3070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3073 { test "$extra_verbose" = "yes" && cat << EOF
3076 cat >> confdefs.h <<EOF
3077 #define $ac_tr_hdr 1
3082 echo "$ac_t""no" 1>&6
3086 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3087 echo "configure:3088: checking for sys/wait.h that is POSIX.1 compatible" >&5
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 #include <sys/types.h>
3093 #include <sys/wait.h>
3095 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3098 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3103 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3106 if { (eval echo configure:3107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3108 ac_cv_header_sys_wait_h=yes
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3113 ac_cv_header_sys_wait_h=no
3117 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3118 if test $ac_cv_header_sys_wait_h = yes; then
3119 { test "$extra_verbose" = "yes" && cat << \EOF
3120 Defining HAVE_SYS_WAIT_H
3122 cat >> confdefs.h <<\EOF
3123 #define HAVE_SYS_WAIT_H 1
3129 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3130 echo "configure:3131: checking for ANSI C header files" >&5
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3141 { (eval echo configure:3142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3142 ac_err=`grep -v '^ *+' conftest.out`
3143 if test -z "$ac_err"; then
3145 ac_cv_header_stdc=yes
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 ac_cv_header_stdc=no
3155 if test $ac_cv_header_stdc = yes; then
3156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 egrep "memchr" >/dev/null 2>&1; then
3167 ac_cv_header_stdc=no
3173 if test $ac_cv_header_stdc = yes; then
3174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3181 egrep "free" >/dev/null 2>&1; then
3185 ac_cv_header_stdc=no
3191 if test $ac_cv_header_stdc = yes; then
3192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3197 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3198 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3200 int main () { int i; for (i = 0; i < 256; i++)
3201 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 ac_cv_header_stdc=no
3218 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3219 if test $ac_cv_header_stdc = yes; then
3220 { test "$extra_verbose" = "yes" && cat << \EOF
3221 Defining STDC_HEADERS
3223 cat >> confdefs.h <<\EOF
3224 #define STDC_HEADERS 1
3230 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3231 echo "configure:3232: checking whether time.h and sys/time.h may both be included" >&5
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 #include <sys/types.h>
3237 #include <sys/time.h>
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3245 ac_cv_header_time=yes
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 ac_cv_header_time=no
3254 echo "$ac_t""$ac_cv_header_time" 1>&6
3255 if test $ac_cv_header_time = yes; then
3256 { test "$extra_verbose" = "yes" && cat << \EOF
3257 Defining TIME_WITH_SYS_TIME
3259 cat >> confdefs.h <<\EOF
3260 #define TIME_WITH_SYS_TIME 1
3266 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3267 echo "configure:3268: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 #include <sys/types.h>
3274 /* NetBSD declares sys_siglist in unistd.h. */
3275 #ifdef HAVE_UNISTD_H
3279 char *msg = *(sys_siglist + 1);
3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3284 ac_cv_decl_sys_siglist=yes
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3289 ac_cv_decl_sys_siglist=no
3293 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3294 if test $ac_cv_decl_sys_siglist = yes; then
3295 { test "$extra_verbose" = "yes" && cat << \EOF
3296 Defining SYS_SIGLIST_DECLARED
3298 cat >> confdefs.h <<\EOF
3299 #define SYS_SIGLIST_DECLARED 1
3306 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3307 echo "configure:3308: checking for struct utimbuf" >&5
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 #ifdef TIME_WITH_SYS_TIME
3312 #include <sys/time.h>
3315 #ifdef HAVE_SYS_TIME_H
3316 #include <sys/time.h>
3325 static struct utimbuf x; x.actime = x.modtime;
3328 if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3330 echo "$ac_t""yes" 1>&6
3331 { test "$extra_verbose" = "yes" && cat << \EOF
3332 Defining HAVE_STRUCT_UTIMBUF
3334 cat >> confdefs.h <<\EOF
3335 #define HAVE_STRUCT_UTIMBUF 1
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 echo "$ac_t""no" 1>&6
3347 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3348 echo "configure:3349: checking return type of signal handlers" >&5
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 #include <sys/types.h>
3359 extern "C" void (*signal (int, void (*)(int)))(int);
3361 void (*signal ()) ();
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370 ac_cv_type_signal=void
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3375 ac_cv_type_signal=int
3379 echo "$ac_t""$ac_cv_type_signal" 1>&6
3380 { test "$extra_verbose" = "yes" && cat << EOF
3381 Defining RETSIGTYPE = $ac_cv_type_signal
3383 cat >> confdefs.h <<EOF
3384 #define RETSIGTYPE $ac_cv_type_signal
3389 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3390 echo "configure:3391: checking for size_t" >&5
3392 cat > conftest.$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3395 #include <sys/types.h>
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3404 ac_cv_type_size_t=yes
3407 ac_cv_type_size_t=no
3411 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3412 if test $ac_cv_type_size_t = no; then
3413 { test "$extra_verbose" = "yes" && cat << \EOF
3414 Defining size_t = unsigned
3416 cat >> confdefs.h <<\EOF
3417 #define size_t unsigned
3423 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3424 echo "configure:3425: checking for pid_t" >&5
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 #include <sys/types.h>
3435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3436 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3438 ac_cv_type_pid_t=yes
3445 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3446 if test $ac_cv_type_pid_t = no; then
3447 { test "$extra_verbose" = "yes" && cat << \EOF
3448 Defining pid_t = int
3450 cat >> confdefs.h <<\EOF
3457 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3458 echo "configure:3459: checking for uid_t in sys/types.h" >&5
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 #include <sys/types.h>
3465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3466 egrep "uid_t" >/dev/null 2>&1; then
3468 ac_cv_type_uid_t=yes
3476 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3477 if test $ac_cv_type_uid_t = no; then
3478 { test "$extra_verbose" = "yes" && cat << \EOF
3479 Defining uid_t = int
3481 cat >> confdefs.h <<\EOF
3486 { test "$extra_verbose" = "yes" && cat << \EOF
3487 Defining gid_t = int
3489 cat >> confdefs.h <<\EOF
3496 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3497 echo "configure:3498: checking for mode_t" >&5
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 #include <sys/types.h>
3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3509 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3511 ac_cv_type_mode_t=yes
3514 ac_cv_type_mode_t=no
3518 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3519 if test $ac_cv_type_mode_t = no; then
3520 { test "$extra_verbose" = "yes" && cat << \EOF
3521 Defining mode_t = int
3523 cat >> confdefs.h <<\EOF
3530 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3531 echo "configure:3532: checking for off_t" >&5
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <sys/types.h>
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3545 ac_cv_type_off_t=yes
3552 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3553 if test $ac_cv_type_off_t = no; then
3554 { test "$extra_verbose" = "yes" && cat << \EOF
3555 Defining off_t = long
3557 cat >> confdefs.h <<\EOF
3565 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3566 echo "configure:3567: checking for struct timeval" >&5
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 #ifdef TIME_WITH_SYS_TIME
3571 #include <sys/time.h>
3574 #ifdef HAVE_SYS_TIME_H
3575 #include <sys/time.h>
3581 static struct timeval x; x.tv_sec = x.tv_usec;
3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 echo "$ac_t""yes" 1>&6
3588 { test "$extra_verbose" = "yes" && cat << \EOF
3589 Defining HAVE_TIMEVAL
3591 cat >> confdefs.h <<\EOF
3592 #define HAVE_TIMEVAL 1
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 echo "$ac_t""no" 1>&6
3605 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3606 echo "configure:3607: checking whether struct tm is in sys/time.h or time.h" >&5
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3611 #include <sys/types.h>
3614 struct tm *tp; tp->tm_sec;
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3619 ac_cv_struct_tm=time.h
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3624 ac_cv_struct_tm=sys/time.h
3628 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3629 if test $ac_cv_struct_tm = sys/time.h; then
3630 { test "$extra_verbose" = "yes" && cat << \EOF
3631 Defining TM_IN_SYS_TIME
3633 cat >> confdefs.h <<\EOF
3634 #define TM_IN_SYS_TIME 1
3640 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3641 echo "configure:3642: checking for tm_zone in struct tm" >&5
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3647 #include <$ac_cv_struct_tm>
3649 struct tm tm; tm.tm_zone;
3652 if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3654 ac_cv_struct_tm_zone=yes
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3659 ac_cv_struct_tm_zone=no
3663 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3664 if test "$ac_cv_struct_tm_zone" = yes; then
3665 { test "$extra_verbose" = "yes" && cat << \EOF
3666 Defining HAVE_TM_ZONE
3668 cat >> confdefs.h <<\EOF
3669 #define HAVE_TM_ZONE 1
3674 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3675 echo "configure:3676: checking for tzname" >&5
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3681 #ifndef tzname /* For SGI. */
3682 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3690 ac_cv_var_tzname=yes
3692 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3699 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3700 if test $ac_cv_var_tzname = yes; then
3701 { test "$extra_verbose" = "yes" && cat << \EOF
3702 Defining HAVE_TZNAME
3704 cat >> confdefs.h <<\EOF
3705 #define HAVE_TZNAME 1
3713 echo $ac_n "checking for working const""... $ac_c" 1>&6
3714 echo "configure:3715: checking for working const" >&5
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3722 /* Ultrix mips cc rejects this. */
3723 typedef int charset[2]; const charset x;
3724 /* SunOS 4.1.1 cc rejects this. */
3725 char const *const *ccp;
3727 /* NEC SVR4.0.2 mips cc rejects this. */
3728 struct point {int x, y;};
3729 static struct point const zero = {0,0};
3730 /* AIX XL C 1.02.0.0 rejects this.
3731 It does not let you subtract one const X* pointer from another in an arm
3732 of an if-expression whose if-part is not a constant expression */
3733 const char *g = "string";
3734 ccp = &g + (g ? g-g : 0);
3735 /* HPUX 7.0 cc rejects these. */
3738 ccp = (char const *const *) p;
3739 { /* SCO 3.2v4 cc rejects this. */
3741 char const *s = 0 ? (char *) 0 : (char const *) 0;
3745 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3747 const int *foo = &x[0];
3750 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3751 typedef const int *iptr;
3755 { /* AIX XL C 1.02.0.0 rejects this saying
3756 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3757 struct s { int j; const int *ap[3]; };
3758 struct s *b; b->j = 5;
3760 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3766 if { (eval echo configure:3767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3777 echo "$ac_t""$ac_cv_c_const" 1>&6
3778 if test $ac_cv_c_const = no; then
3779 { test "$extra_verbose" = "yes" && cat << \EOF
3782 cat >> confdefs.h <<\EOF
3790 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3791 echo "configure:3792: checking whether ${MAKE-make} sets \${MAKE}" >&5
3792 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3794 cat > conftestmake <<\EOF
3796 @echo 'ac_maketemp="${MAKE}"'
3798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3799 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3800 if test -n "$ac_maketemp"; then
3801 eval ac_cv_prog_make_${ac_make}_set=yes
3803 eval ac_cv_prog_make_${ac_make}_set=no
3806 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3807 echo "$ac_t""yes" 1>&6
3810 echo "$ac_t""no" 1>&6
3811 SET_MAKE="MAKE=${MAKE-make}"
3815 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3816 echo "configure:3817: checking whether byte ordering is bigendian" >&5
3818 ac_cv_c_bigendian=unknown
3819 # See if sys/param.h defines the BYTE_ORDER macro.
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 #include <sys/types.h>
3824 #include <sys/param.h>
3827 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3832 if { (eval echo configure:3833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3834 # It does; now see whether it defined to BIG_ENDIAN or not.
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 #include <sys/types.h>
3839 #include <sys/param.h>
3842 #if BYTE_ORDER != BIG_ENDIAN
3847 if { (eval echo configure:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3849 ac_cv_c_bigendian=yes
3851 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5
3854 ac_cv_c_bigendian=no
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3862 if test $ac_cv_c_bigendian = unknown; then
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3867 /* Are we little or big endian? From Harbison&Steele. */
3871 char c[sizeof (long)];
3874 exit (u.c[sizeof (long) - 1] == 1);
3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3879 ac_cv_c_bigendian=no
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 ac_cv_c_bigendian=yes
3890 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3891 if test $ac_cv_c_bigendian = yes; then
3892 { test "$extra_verbose" = "yes" && cat << \EOF
3893 Defining WORDS_BIGENDIAN
3895 cat >> confdefs.h <<\EOF
3896 #define WORDS_BIGENDIAN 1
3903 echo $ac_n "checking size of short""... $ac_c" 1>&6
3904 echo "configure:3905: checking size of short" >&5
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3912 FILE *f=fopen("conftestval", "w");
3914 fprintf(f, "%d\n", sizeof(short));
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3920 ac_cv_sizeof_short=`cat conftestval`
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3926 ac_cv_sizeof_short=0
3929 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3930 { test "$extra_verbose" = "yes" && cat << EOF
3931 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
3933 cat >> confdefs.h <<EOF
3934 #define SIZEOF_SHORT $ac_cv_sizeof_short
3939 if test "$ac_cv_sizeof_short" = 0; then
3941 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3942 echo "*** PANIC *** Please examine config.log for compilation errors."
3945 echo $ac_n "checking size of int""... $ac_c" 1>&6
3946 echo "configure:3947: checking size of int" >&5
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3954 FILE *f=fopen("conftestval", "w");
3956 fprintf(f, "%d\n", sizeof(int));
3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3962 ac_cv_sizeof_int=`cat conftestval`
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3971 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3972 { test "$extra_verbose" = "yes" && cat << EOF
3973 Defining SIZEOF_INT = $ac_cv_sizeof_int
3975 cat >> confdefs.h <<EOF
3976 #define SIZEOF_INT $ac_cv_sizeof_int
3981 echo $ac_n "checking size of long""... $ac_c" 1>&6
3982 echo "configure:3983: checking size of long" >&5
3984 cat > conftest.$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3990 FILE *f=fopen("conftestval", "w");
3992 fprintf(f, "%d\n", sizeof(long));
3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3998 ac_cv_sizeof_long=`cat conftestval`
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4007 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4008 { test "$extra_verbose" = "yes" && cat << EOF
4009 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4011 cat >> confdefs.h <<EOF
4012 #define SIZEOF_LONG $ac_cv_sizeof_long
4017 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4018 echo "configure:4019: checking size of long long" >&5
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4026 FILE *f=fopen("conftestval", "w");
4028 fprintf(f, "%d\n", sizeof(long long));
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4034 ac_cv_sizeof_long_long=`cat conftestval`
4037 echo "configure: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4040 ac_cv_sizeof_long_long=0
4043 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4044 { test "$extra_verbose" = "yes" && cat << EOF
4045 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4047 cat >> confdefs.h <<EOF
4048 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4053 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4054 echo "configure:4055: checking size of void *" >&5
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4062 FILE *f=fopen("conftestval", "w");
4064 fprintf(f, "%d\n", sizeof(void *));
4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4070 ac_cv_sizeof_void_p=`cat conftestval`
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 ac_cv_sizeof_void_p=0
4079 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4080 { test "$extra_verbose" = "yes" && cat << EOF
4081 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4083 cat >> confdefs.h <<EOF
4084 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4090 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4091 echo "configure:4092: checking for long file names" >&5
4093 ac_cv_sys_long_file_names=yes
4094 # Test for long file names in all the places we know might matter:
4095 # . the current directory, where building will happen
4096 # $prefix/lib where we will be installing things
4097 # $exec_prefix/lib likewise
4098 # eval it to expand exec_prefix.
4099 # $TMPDIR if set, where it might want to write temporary files
4100 # if $TMPDIR is not set:
4101 # /tmp where it might want to write temporary files
4104 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4105 ac_tmpdirs="$TMPDIR"
4107 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4109 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4110 test -d $ac_dir || continue
4111 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4112 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4113 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4114 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4115 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4116 ac_cv_sys_long_file_names=no
4117 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4120 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4123 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4124 if test $ac_cv_sys_long_file_names = yes; then
4125 { test "$extra_verbose" = "yes" && cat << \EOF
4126 Defining HAVE_LONG_FILE_NAMES
4128 cat >> confdefs.h <<\EOF
4129 #define HAVE_LONG_FILE_NAMES 1
4137 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4138 echo "configure:4139: checking for sin in -lm" >&5
4139 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4141 xe_check_libs=" -lm "
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 eval "ac_cv_lib_$ac_lib_var=no"
4166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4167 echo "$ac_t""yes" 1>&6
4168 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4169 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4170 { test "$extra_verbose" = "yes" && cat << EOF
4173 cat >> confdefs.h <<EOF
4174 #define $ac_tr_lib 1
4178 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4181 echo "$ac_t""no" 1>&6
4186 { test "$extra_verbose" = "yes" && cat << \EOF
4187 Defining LISP_FLOAT_TYPE
4189 cat >> confdefs.h <<\EOF
4190 #define LISP_FLOAT_TYPE 1
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4200 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4203 if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4205 { test "$extra_verbose" = "yes" && cat << \EOF
4206 Defining HAVE_INVERSE_HYPERBOLIC
4208 cat >> confdefs.h <<\EOF
4209 #define HAVE_INVERSE_HYPERBOLIC 1
4214 echo "configure: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4219 echo "checking type of mail spool file locking" 1>&6
4220 echo "configure:4221: checking type of mail spool file locking" >&5
4221 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4222 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4223 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4224 Defining REAL_MAIL_USE_LOCKF
4226 cat >> confdefs.h <<\EOF
4227 #define REAL_MAIL_USE_LOCKF 1
4231 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4232 Defining REAL_MAIL_USE_FLOCK
4234 cat >> confdefs.h <<\EOF
4235 #define REAL_MAIL_USE_FLOCK 1
4239 else mail_locking="dot-locking"
4243 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4244 echo "configure:4245: checking for kstat_open in -lkstat" >&5
4245 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4247 xe_check_libs=" -lkstat "
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 /* Override any gcc2 internal prototype to avoid an error. */
4252 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */
4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4262 eval "ac_cv_lib_$ac_lib_var=yes"
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4267 eval "ac_cv_lib_$ac_lib_var=no"
4272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4273 echo "$ac_t""yes" 1>&6
4274 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4276 { test "$extra_verbose" = "yes" && cat << EOF
4279 cat >> confdefs.h <<EOF
4280 #define $ac_tr_lib 1
4284 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
4287 echo "$ac_t""no" 1>&6
4293 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4294 echo "configure:4295: checking for kvm_read in -lkvm" >&5
4295 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4297 xe_check_libs=" -lkvm "
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4312 eval "ac_cv_lib_$ac_lib_var=yes"
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4317 eval "ac_cv_lib_$ac_lib_var=no"
4322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4323 echo "$ac_t""yes" 1>&6
4324 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4326 { test "$extra_verbose" = "yes" && cat << EOF
4329 cat >> confdefs.h <<EOF
4330 #define $ac_tr_lib 1
4334 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
4337 echo "$ac_t""no" 1>&6
4342 case "$opsys" in decosf*)
4344 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4345 echo "configure:4346: checking for cma_open in -lpthreads" >&5
4346 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4348 xe_check_libs=" -lpthreads "
4349 cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4352 /* Override any gcc2 internal prototype to avoid an error. */
4353 /* We use char because int might match the return type of a gcc2
4354 builtin and then its argument prototype would still apply. */
4361 if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4363 eval "ac_cv_lib_$ac_lib_var=yes"
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4368 eval "ac_cv_lib_$ac_lib_var=no"
4373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4374 echo "$ac_t""yes" 1>&6
4375 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4377 { test "$extra_verbose" = "yes" && cat << EOF
4380 cat >> confdefs.h <<EOF
4381 #define $ac_tr_lib 1
4385 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4388 echo "$ac_t""no" 1>&6
4392 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4393 c_switch_site="$c_switch_site -threads" ;;
4396 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4397 echo "configure:4398: checking whether the -xildoff compiler flag is required" >&5
4398 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4399 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4400 then echo "$ac_t""no" 1>&6;
4401 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
4403 else echo "$ac_t""no" 1>&6
4406 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4407 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4408 echo "configure:4409: checking for \"-z ignore\" linker flag" >&5
4409 case "`ld -h 2>&1`" in
4410 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4411 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4412 *) echo "$ac_t""no" 1>&6 ;;
4417 echo "checking "for specified window system"" 1>&6
4418 echo "configure:4419: checking "for specified window system"" >&5
4420 if test "$with_x11" != "no"; then
4421 test "$x_includes $x_libraries" != "NONE NONE" && \
4422 window_system=x11 with_x11=yes
4425 if test "$x_includes $x_libraries" = "NONE NONE" \
4426 -a -n "$OPENWINHOME" \
4427 -a "$OPENWINHOME" != "/usr/openwin" \
4428 -a -d "$OPENWINHOME"; then
4429 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4430 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4431 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4434 if test "$x_includes" = "NONE"; then
4435 for dir in "/usr/X11" "/usr/X11R6"; do
4436 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4440 if test "$x_libraries" = "NONE"; then
4441 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4442 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4446 # If we find X, set shell vars x_includes and x_libraries to the
4447 # paths, otherwise set no_x=yes.
4448 # Uses ac_ vars as temps to allow command line to override cache and checks.
4449 # --without-x overrides everything else, but does not touch the cache.
4450 echo $ac_n "checking for X""... $ac_c" 1>&6
4451 echo "configure:4452: checking for X" >&5
4453 # Check whether --with-x or --without-x was given.
4454 if test "${with_x+set}" = set; then
4459 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4460 if test "x$with_x" = xno; then
4461 # The user explicitly disabled X.
4464 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4465 # Both variables are already set.
4469 # One or both of the vars are not set, and there is no cached value.
4470 ac_x_includes=NO ac_x_libraries=NO
4472 if mkdir conftestdir; then
4474 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4475 cat > Imakefile <<'EOF'
4477 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4479 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4481 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4482 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4483 for ac_extension in a so sl; do
4484 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4485 test -f $ac_im_libdir/libX11.$ac_extension; then
4486 ac_im_usrlibdir=$ac_im_libdir; break
4489 # Screen out bogus values from the imake configuration. They are
4490 # bogus both because they are the default anyway, and because
4491 # using them would break gcc on systems where it needs fixed includes.
4492 case "$ac_im_incroot" in
4494 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4496 case "$ac_im_usrlibdir" in
4498 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4505 if test "$ac_x_includes" = NO; then
4506 # Guess where to find include files, by looking for this one X11 .h file.
4507 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4509 # First, try using that file with no special directory specified.
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 #include <$x_direct_test_include>
4515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4516 { (eval echo configure:4517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4517 ac_err=`grep -v '^ *+' conftest.out`
4518 if test -z "$ac_err"; then
4520 # We can compile using X headers with no special include directory.
4524 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4527 # Look for the header file in a standard set of common directories.
4528 # Check X11 before X11Rn because it is often a symlink to the current release.
4531 /usr/X11R6/include \
4532 /usr/X11R5/include \
4533 /usr/X11R4/include \
4536 /usr/include/X11R6 \
4537 /usr/include/X11R5 \
4538 /usr/include/X11R4 \
4540 /usr/local/X11/include \
4541 /usr/local/X11R6/include \
4542 /usr/local/X11R5/include \
4543 /usr/local/X11R4/include \
4545 /usr/local/include/X11 \
4546 /usr/local/include/X11R6 \
4547 /usr/local/include/X11R5 \
4548 /usr/local/include/X11R4 \
4552 /usr/XFree86/include/X11 \
4555 /usr/local/include \
4556 /usr/unsupported/include \
4557 /usr/athena/include \
4558 /usr/local/x11r5/include \
4559 /usr/lpp/Xamples/include \
4561 /usr/openwin/include \
4562 /usr/openwin/share/include \
4565 if test -r "$ac_dir/$x_direct_test_include"; then
4566 ac_x_includes=$ac_dir
4572 fi # $ac_x_includes = NO
4574 if test "$ac_x_libraries" = NO; then
4575 # Check for the libraries.
4577 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4578 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4580 # See if we find them without any special options.
4581 # Don't add to $LIBS permanently.
4582 ac_save_LIBS="$LIBS"
4583 LIBS="-l$x_direct_test_library $LIBS"
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4589 ${x_direct_test_function}()
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4594 LIBS="$ac_save_LIBS"
4595 # We can link X programs with no special library path.
4598 echo "configure: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4601 LIBS="$ac_save_LIBS"
4602 # First see if replacing the include by lib works.
4603 # Check X11 before X11Rn because it is often a symlink to the current release.
4604 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4615 /usr/local/X11/lib \
4616 /usr/local/X11R6/lib \
4617 /usr/local/X11R5/lib \
4618 /usr/local/X11R4/lib \
4620 /usr/local/lib/X11 \
4621 /usr/local/lib/X11R6 \
4622 /usr/local/lib/X11R5 \
4623 /usr/local/lib/X11R4 \
4627 /usr/XFree86/lib/X11 \
4631 /usr/unsupported/lib \
4633 /usr/local/x11r5/lib \
4634 /usr/lpp/Xamples/lib \
4638 /usr/openwin/share/lib \
4641 for ac_extension in a so sl; do
4642 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4643 ac_x_libraries=$ac_dir
4650 fi # $ac_x_libraries = NO
4652 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4653 # Didn't find X anywhere. Cache the known absence of X.
4654 ac_cv_have_x="have_x=no"
4656 # Record where we found X for the cache.
4657 ac_cv_have_x="have_x=yes \
4658 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4661 eval "$ac_cv_have_x"
4664 if test "$have_x" != yes; then
4665 echo "$ac_t""$have_x" 1>&6
4668 # If each of the values was on the command line, it overrides each guess.
4669 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4670 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4671 # Update the cache value to reflect the command line values.
4672 ac_cv_have_x="have_x=yes \
4673 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4674 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4677 if test "$no_x" = yes; then
4678 # Not all programs may use this symbol, but it does not hurt to define it.
4679 { test "$extra_verbose" = "yes" && cat << \EOF
4680 Defining X_DISPLAY_MISSING
4682 cat >> confdefs.h <<\EOF
4683 #define X_DISPLAY_MISSING 1
4687 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4689 if test -n "$x_includes"; then
4690 X_CFLAGS="$X_CFLAGS -I$x_includes"
4693 # It would also be nice to do this for all -L options, not just this one.
4694 if test -n "$x_libraries"; then
4695 X_LIBS="$X_LIBS -L$x_libraries"
4696 # For Solaris; some versions of Sun CC require a space after -R and
4697 # others require no space. Words are not sufficient . . . .
4698 case "`(uname -sr) 2>/dev/null`" in
4700 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4701 echo "configure:4702: checking whether -R must be followed by a space" >&5
4702 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4715 echo "configure: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4721 if test $ac_R_nospace = yes; then
4722 echo "$ac_t""no" 1>&6
4723 X_LIBS="$X_LIBS -R$x_libraries"
4725 LIBS="$ac_xsave_LIBS -R $x_libraries"
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4738 echo "configure: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4744 if test $ac_R_space = yes; then
4745 echo "$ac_t""yes" 1>&6
4746 X_LIBS="$X_LIBS -R $x_libraries"
4748 echo "$ac_t""neither works" 1>&6
4751 LIBS="$ac_xsave_LIBS"
4755 # Check for system-dependent libraries X programs must link with.
4756 # Do this before checking for the system-independent R6 libraries
4757 # (-lICE), since we may need -lsocket or whatever for X linking.
4759 if test "$ISC" = yes; then
4760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4762 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4763 # libraries were built with DECnet support. And karl@cs.umb.edu says
4764 # the Alpha needs dnet_stub (dnet does not exist).
4765 if test "$with_dnet" = "no" ; then
4766 ac_cv_lib_dnet_dnet_ntoa=no
4769 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4770 echo "configure:4771: checking for dnet_ntoa in -ldnet" >&5
4771 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4773 xe_check_libs=" -ldnet "
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4777 /* Override any gcc2 internal prototype to avoid an error. */
4778 /* We use char because int might match the return type of a gcc2
4779 builtin and then its argument prototype would still apply. */
4786 if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4788 eval "ac_cv_lib_$ac_lib_var=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_lib_$ac_lib_var=no"
4798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4799 echo "$ac_t""yes" 1>&6
4800 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4802 echo "$ac_t""no" 1>&6
4807 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4809 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4810 echo "configure:4811: checking for dnet_ntoa in -ldnet_stub" >&5
4811 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4813 xe_check_libs=" -ldnet_stub "
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* Override any gcc2 internal prototype to avoid an error. */
4818 /* We use char because int might match the return type of a gcc2
4819 builtin and then its argument prototype would still apply. */
4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4828 eval "ac_cv_lib_$ac_lib_var=yes"
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 eval "ac_cv_lib_$ac_lib_var=no"
4838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4839 echo "$ac_t""yes" 1>&6
4840 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4842 echo "$ac_t""no" 1>&6
4848 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4849 # to get the SysV transport functions.
4850 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4852 # The nsl library prevents programs from opening the X display
4853 # on Irix 5.2, according to dickey@clark.net.
4854 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4855 echo "configure:4856: checking for gethostbyname" >&5
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 /* System header to define __stub macros and hopefully few prototypes,
4861 which can conflict with char gethostbyname(); below. */
4863 /* Override any gcc2 internal prototype to avoid an error. */
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4866 char gethostbyname();
4870 /* The GNU C library defines this for functions which it implements
4871 to always fail with ENOSYS. Some functions are actually named
4872 something starting with __ and the normal name is an alias. */
4873 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4883 eval "ac_cv_func_gethostbyname=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "ac_cv_func_gethostbyname=no"
4892 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4896 echo "$ac_t""no" 1>&6
4899 if test $ac_cv_func_gethostbyname = no; then
4901 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4902 echo "configure:4903: checking for gethostbyname in -lnsl" >&5
4903 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4905 xe_check_libs=" -lnsl "
4906 cat > conftest.$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4912 char gethostbyname();
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4920 eval "ac_cv_lib_$ac_lib_var=yes"
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4925 eval "ac_cv_lib_$ac_lib_var=no"
4930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4931 echo "$ac_t""yes" 1>&6
4932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4934 echo "$ac_t""no" 1>&6
4940 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4941 # socket/setsockopt and other routines are undefined under SCO ODT
4942 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4943 # on later versions), says simon@lia.di.epfl.ch: it contains
4944 # gethostby* variants that don't use the nameserver (or something).
4945 # -lsocket must be given before -lnsl if both are needed.
4946 # We assume that if connect needs -lnsl, so does gethostbyname.
4947 echo $ac_n "checking for connect""... $ac_c" 1>&6
4948 echo "configure:4949: checking for connect" >&5
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 /* System header to define __stub macros and hopefully few prototypes,
4954 which can conflict with char connect(); below. */
4956 /* Override any gcc2 internal prototype to avoid an error. */
4957 /* We use char because int might match the return type of a gcc2
4958 builtin and then its argument prototype would still apply. */
4963 /* The GNU C library defines this for functions which it implements
4964 to always fail with ENOSYS. Some functions are actually named
4965 something starting with __ and the normal name is an alias. */
4966 #if defined (__stub_connect) || defined (__stub___connect)
4974 if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4976 eval "ac_cv_func_connect=yes"
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4981 eval "ac_cv_func_connect=no"
4985 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4986 echo "$ac_t""yes" 1>&6
4989 echo "$ac_t""no" 1>&6
4992 if test $ac_cv_func_connect = no; then
4994 xe_msg_checking="for connect in -lsocket"
4995 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4996 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4997 echo "configure:4998: checking "$xe_msg_checking"" >&5
4998 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5000 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5001 cat > conftest.$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5015 eval "ac_cv_lib_$ac_lib_var=yes"
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5020 eval "ac_cv_lib_$ac_lib_var=no"
5025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5026 echo "$ac_t""yes" 1>&6
5027 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5029 echo "$ac_t""no" 1>&6
5035 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5036 echo $ac_n "checking for remove""... $ac_c" 1>&6
5037 echo "configure:5038: checking for remove" >&5
5039 cat > conftest.$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5042 /* System header to define __stub macros and hopefully few prototypes,
5043 which can conflict with char remove(); below. */
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5052 /* The GNU C library defines this for functions which it implements
5053 to always fail with ENOSYS. Some functions are actually named
5054 something starting with __ and the normal name is an alias. */
5055 #if defined (__stub_remove) || defined (__stub___remove)
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5065 eval "ac_cv_func_remove=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_func_remove=no"
5074 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5078 echo "$ac_t""no" 1>&6
5081 if test $ac_cv_func_remove = no; then
5083 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5084 echo "configure:5085: checking for remove in -lposix" >&5
5085 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5087 xe_check_libs=" -lposix "
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5091 /* Override any gcc2 internal prototype to avoid an error. */
5092 /* We use char because int might match the return type of a gcc2
5093 builtin and then its argument prototype would still apply. */
5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5102 eval "ac_cv_lib_$ac_lib_var=yes"
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5107 eval "ac_cv_lib_$ac_lib_var=no"
5112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5113 echo "$ac_t""yes" 1>&6
5114 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5116 echo "$ac_t""no" 1>&6
5122 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5123 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5124 echo "configure:5125: checking for shmat" >&5
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5129 /* System header to define __stub macros and hopefully few prototypes,
5130 which can conflict with char shmat(); below. */
5132 /* Override any gcc2 internal prototype to avoid an error. */
5133 /* We use char because int might match the return type of a gcc2
5134 builtin and then its argument prototype would still apply. */
5139 /* The GNU C library defines this for functions which it implements
5140 to always fail with ENOSYS. Some functions are actually named
5141 something starting with __ and the normal name is an alias. */
5142 #if defined (__stub_shmat) || defined (__stub___shmat)
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5152 eval "ac_cv_func_shmat=yes"
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 eval "ac_cv_func_shmat=no"
5161 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5162 echo "$ac_t""yes" 1>&6
5165 echo "$ac_t""no" 1>&6
5168 if test $ac_cv_func_shmat = no; then
5170 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5171 echo "configure:5172: checking for shmat in -lipc" >&5
5172 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5174 xe_check_libs=" -lipc "
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5189 eval "ac_cv_lib_$ac_lib_var=yes"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5194 eval "ac_cv_lib_$ac_lib_var=no"
5199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5200 echo "$ac_t""yes" 1>&6
5201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5203 echo "$ac_t""no" 1>&6
5210 # Check for libraries that X11R6 Xt/Xaw programs need.
5211 ac_save_LDFLAGS="$LDFLAGS"
5212 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5213 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5214 # check for ICE first), but we must link in the order -lSM -lICE or
5215 # we get undefined symbols. So assume we have SM if we have ICE.
5216 # These have to be linked with before -lX11, unlike the other
5217 # libraries we check for below, so use a different variable.
5218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5220 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5221 echo "configure:5222: checking for IceConnectionNumber in -lICE" >&5
5222 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5224 xe_check_libs=" -lICE "
5225 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure"
5227 #include "confdefs.h"
5228 /* Override any gcc2 internal prototype to avoid an error. */
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5231 char IceConnectionNumber();
5234 IceConnectionNumber()
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5239 eval "ac_cv_lib_$ac_lib_var=yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5244 eval "ac_cv_lib_$ac_lib_var=no"
5249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5250 echo "$ac_t""yes" 1>&6
5251 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5253 echo "$ac_t""no" 1>&6
5257 LDFLAGS="$ac_save_LDFLAGS"
5260 # Autoconf claims to find X library and include dirs for us.
5261 if test "$no_x" = "yes"
5262 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5263 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5268 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5269 no ) window_system=none HAVE_X_WINDOWS=no ;;
5272 if test "$with_x11" = "yes"; then
5273 { test "$extra_verbose" = "yes" && cat << \EOF
5274 Defining HAVE_X_WINDOWS
5276 cat >> confdefs.h <<\EOF
5277 #define HAVE_X_WINDOWS 1
5281 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5282 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5284 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5285 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5286 if test -d "$lib_dir" -a -d "$inc_dir"; then
5287 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5288 x_libraries="$lib_dir $x_libraries"
5289 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5291 case "$x_includes" in "$inc_dir"* ) ;; *)
5292 x_includes="$inc_dir $x_includes"
5293 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5298 for rel in "X11R6" "X11R5" "X11R4"; do
5299 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5300 if test -d "$lib_dir" -a -d "$inc_dir"; then
5301 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5302 x_libraries="$x_libraries $lib_dir"
5303 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5305 case "$x_includes" in "$inc_dir"* ) ;; *)
5306 x_includes="$x_includes $inc_dir"
5307 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5312 if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi
5314 ld_switch_x_site="$X_LIBS"
5317 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5318 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5319 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5321 runpath="" runpath_dirs=""
5322 if test -n "$LD_RUN_PATH"; then
5323 runpath="$LD_RUN_PATH"
5324 elif test "$GCC" = "yes"; then
5325 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5326 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5327 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5328 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5329 case "$arg" in P,* | -L* | -R* )
5330 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5332 xe_runpath_dir="$dir"
5333 test "$xe_runpath_dir" != "/lib" -a \
5334 "$xe_runpath_dir" != "/usr/lib" -a \
5335 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5336 eval "$xe_add_unique_runpath_dir"
5341 ld_switch_run="$ld_switch_run_save"
5344 for arg in $ld_switch_site $ld_switch_x_site; do
5345 case "$arg" in -L*) {
5346 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5347 test "$xe_runpath_dir" != "/lib" -a \
5348 "$xe_runpath_dir" != "/usr/lib" -a \
5349 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5350 eval "$xe_add_unique_runpath_dir"
5353 if test "$opsys $need_motif" = "sol2 yes"; then
5354 xe_runpath_dir="/opt/SUNWdt/lib";
5355 eval "$xe_add_unique_runpath_dir";
5358 if test -n "$runpath"; then
5359 ld_switch_run="${dash_r}${runpath}"
5361 if test "$GCC" = "yes"; then
5362 set x $ld_switch_run; shift; ld_switch_run=""
5363 while test -n "$1"; do
5365 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5366 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5368 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5373 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5378 if test "$extra_verbose" = "yes"; then
5379 echo; echo "X11 compilation variables:"
5380 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5385 if test "$x_includes" != NONE; then
5386 for i in $x_includes; do
5387 if test -d "$i/bitmaps"; then
5388 bitmapdirs="$i/bitmaps:$bitmapdirs"
5390 if test -d "$i/X11/bitmaps"; then
5391 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5394 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5396 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5397 Defining BITMAPDIR = "$bitmapdirs"
5399 cat >> confdefs.h <<EOF
5400 #define BITMAPDIR "$bitmapdirs"
5405 echo "checking for X defines extracted by xmkmf" 1>&6
5406 echo "configure:5407: checking for X defines extracted by xmkmf" >&5
5408 if mkdir conftestdir; then
5410 cat > Imakefile <<'EOF'
5412 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5414 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5416 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5420 for word in $xmkmf_defines; do
5423 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5424 { test "$extra_verbose" = "yes" && cat << EOF
5427 cat >> confdefs.h <<EOF
5436 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5437 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5438 echo "configure:5439: checking for X11/Intrinsic.h" >&5
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 #include <X11/Intrinsic.h>
5445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5446 { (eval echo configure:5447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5447 ac_err=`grep -v '^ *+' conftest.out`
5448 if test -z "$ac_err"; then
5450 eval "ac_cv_header_$ac_safe=yes"
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5456 eval "ac_cv_header_$ac_safe=no"
5459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5460 echo "$ac_t""yes" 1>&6
5463 echo "$ac_t""no" 1>&6
5464 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5469 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5470 echo "configure:5471: checking for XOpenDisplay in -lX11" >&5
5471 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5473 xe_check_libs=" -lX11 "
5474 cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5477 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5480 char XOpenDisplay();
5486 if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5488 eval "ac_cv_lib_$ac_lib_var=yes"
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 eval "ac_cv_lib_$ac_lib_var=no"
5498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5499 echo "$ac_t""yes" 1>&6
5502 echo "$ac_t""no" 1>&6
5506 if test "$have_lib_x11" != "yes"; then
5508 xe_msg_checking="for XGetFontProperty in -lX11"
5509 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5510 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5511 echo "configure:5512: checking "$xe_msg_checking"" >&5
5512 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5514 xe_check_libs=" -lX11 -b i486-linuxaout"
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 /* Override any gcc2 internal prototype to avoid an error. */
5519 /* We use char because int might match the return type of a gcc2
5520 builtin and then its argument prototype would still apply. */
5521 char XGetFontProperty();
5527 if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5529 eval "ac_cv_lib_$ac_lib_var=yes"
5531 echo "configure: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5534 eval "ac_cv_lib_$ac_lib_var=no"
5539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5540 echo "$ac_t""yes" 1>&6
5541 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5543 echo "$ac_t""no" 1>&6
5544 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5550 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5553 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5554 echo "configure:5555: checking for XShapeSelectInput in -lXext" >&5
5555 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5557 xe_check_libs=" -lXext "
5558 cat > conftest.$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 /* Override any gcc2 internal prototype to avoid an error. */
5562 /* We use char because int might match the return type of a gcc2
5563 builtin and then its argument prototype would still apply. */
5564 char XShapeSelectInput();
5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5572 eval "ac_cv_lib_$ac_lib_var=yes"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 eval "ac_cv_lib_$ac_lib_var=no"
5582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5583 echo "$ac_t""yes" 1>&6
5584 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5586 echo "$ac_t""no" 1>&6
5592 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5593 echo "configure:5594: checking for XtOpenDisplay in -lXt" >&5
5594 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5596 xe_check_libs=" -lXt "
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5603 char XtOpenDisplay();
5609 if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5611 eval "ac_cv_lib_$ac_lib_var=yes"
5613 echo "configure: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5616 eval "ac_cv_lib_$ac_lib_var=no"
5621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5622 echo "$ac_t""yes" 1>&6
5623 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5625 echo "$ac_t""no" 1>&6
5626 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5631 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5632 echo "configure:5633: checking the version of X11 being used" >&5
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5636 #include <X11/Intrinsic.h>
5637 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5641 ./conftest foobar; x11_release=$?
5644 echo "configure: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5650 echo "$ac_t""R${x11_release}" 1>&6
5651 { test "$extra_verbose" = "yes" && cat << EOF
5652 Defining THIS_IS_X11R${x11_release}
5654 cat >> confdefs.h <<EOF
5655 #define THIS_IS_X11R${x11_release} 1
5660 for ac_hdr in X11/Xlocale.h
5662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5664 echo "configure:5665: checking for $ac_hdr" >&5
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5672 { (eval echo configure:5673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5673 ac_err=`grep -v '^ *+' conftest.out`
5674 if test -z "$ac_err"; then
5676 eval "ac_cv_header_$ac_safe=yes"
5679 echo "configure: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5682 eval "ac_cv_header_$ac_safe=no"
5685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5686 echo "$ac_t""yes" 1>&6
5687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5688 { test "$extra_verbose" = "yes" && cat << EOF
5691 cat >> confdefs.h <<EOF
5692 #define $ac_tr_hdr 1
5697 echo "$ac_t""no" 1>&6
5702 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5703 echo "configure:5704: checking for XFree86" >&5
5704 if test -d "/usr/X386/include" -o \
5705 -f "/etc/XF86Config" -o \
5706 -f "/etc/X11/XF86Config" -o \
5707 -f "/usr/X11R6/lib/X11/XF86Config"; then
5708 echo "$ac_t""yes" 1>&6
5709 { test "$extra_verbose" = "yes" && cat << \EOF
5710 Defining HAVE_XFREE386
5712 cat >> confdefs.h <<\EOF
5713 #define HAVE_XFREE386 1
5718 echo "$ac_t""no" 1>&6
5721 test -z "$with_xmu" && {
5722 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5723 echo "configure:5724: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5724 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5726 xe_check_libs=" -lXmu "
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5730 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5733 char XmuReadBitmapDataFromFile();
5736 XmuReadBitmapDataFromFile()
5739 if { (eval echo configure:5740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5741 eval "ac_cv_lib_$ac_lib_var=yes"
5743 echo "configure: failed program was:" >&5
5744 cat conftest.$ac_ext >&5
5746 eval "ac_cv_lib_$ac_lib_var=no"
5751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5752 echo "$ac_t""yes" 1>&6
5755 echo "$ac_t""no" 1>&6
5760 if test "$with_xmu" = "no"; then
5761 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5762 echo " xemacs will be linked with \"xmu.o\""
5765 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5766 { test "$extra_verbose" = "yes" && cat << \EOF
5769 cat >> confdefs.h <<\EOF
5777 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5778 echo "configure:5779: checking for main in -lXbsd" >&5
5779 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5781 xe_check_libs=" -lXbsd "
5782 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5792 eval "ac_cv_lib_$ac_lib_var=yes"
5794 echo "configure: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5797 eval "ac_cv_lib_$ac_lib_var=no"
5802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5803 echo "$ac_t""yes" 1>&6
5804 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5806 echo "$ac_t""no" 1>&6
5811 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5812 if test "$GCC" = "yes"; then
5813 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5814 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5817 "xlc" ) CC="xlc_r" ;;
5818 "xlC" ) CC="xlC_r" ;;
5825 if test "$with_msw" != "no"; then
5826 echo "checking for MS-Windows" 1>&6
5827 echo "configure:5828: checking for MS-Windows" >&5
5829 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5830 echo "configure:5831: checking for main in -lgdi32" >&5
5831 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5833 xe_check_libs=" -lgdi32 "
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5842 if { (eval echo configure:5843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5844 eval "ac_cv_lib_$ac_lib_var=yes"
5846 echo "configure: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5849 eval "ac_cv_lib_$ac_lib_var=no"
5854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5855 echo "$ac_t""yes" 1>&6
5858 echo "$ac_t""no" 1>&6
5862 if test "$with_msw" = "yes"; then
5863 { test "$extra_verbose" = "yes" && cat << \EOF
5864 Defining HAVE_MS_WINDOWS
5866 cat >> confdefs.h <<\EOF
5867 #define HAVE_MS_WINDOWS 1
5871 install_pp="$blddir/lib-src/installexe.sh"
5872 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
5873 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
5874 if test "$window_system" != x11; then
5876 test "$with_scrollbars" != "no" && with_scrollbars=msw \
5877 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
5878 echo " xemacs will be linked with \"scrollbar-msw.o\""
5880 test "$with_menubars" != "no" && with_menubars=msw \
5881 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
5882 echo " xemacs will be linked with \"menubar-msw.o\""
5884 test "$with_toolbars" != "no" && with_toolbars=msw \
5885 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
5886 echo " xemacs will be linked with \"toolbar-msw.o\""
5888 test "$with_dialogs" != "no" && with_dialogs=msw \
5889 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5890 echo " xemacs will be linked with \"dialog-msw.o\""
5893 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
5894 echo " xemacs will be linked with \"scrollbar-msw.o\""
5896 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
5897 echo " xemacs will be linked with \"menubar-msw.o\""
5899 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
5900 echo " xemacs will be linked with \"toolbar-msw.o\""
5902 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5903 echo " xemacs will be linked with \"dialog-msw.o\""
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5910 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
5912 if { (eval echo configure:5913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5914 { test "$extra_verbose" = "yes" && cat << \EOF
5915 Defining HAVE_MSG_SELECT
5917 cat >> confdefs.h <<\EOF
5918 #define HAVE_MSG_SELECT 1
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5929 with_file_coding=yes
5930 use_minimal_tagbits=yes
5931 use_indexed_lrecord_implementation=yes
5932 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then
5933 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\""
5940 test -z "$window_system" && window_system="none"
5942 if test "$window_system" = "none"; then
5943 for feature in menubars scrollbars toolbars dialogs dragndrop xface
5945 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5946 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
5948 eval "with_${feature}=no"
5951 test -z "$with_toolbars" && with_toolbars=yes
5954 if test "$with_msw" != "yes"; then
5955 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
5957 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5958 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
5960 eval "with_${feature}=no"
5966 if test "$with_x11" != "yes"; then
5967 for feature in tooltalk cde offix session xim xmu
5969 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5970 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
5972 eval "with_${feature}=no"
5978 case "$window_system" in
5979 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
5980 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
5981 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
5984 case "$x_libraries" in *X11R4* )
5985 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5986 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5989 echo "checking for session-management option" 1>&6
5990 echo "configure:5991: checking for session-management option" >&5;
5991 if test "$with_session" != "no"; then
5992 { test "$extra_verbose" = "yes" && cat << \EOF
5993 Defining HAVE_SESSION
5995 cat >> confdefs.h <<\EOF
5996 #define HAVE_SESSION 1
6002 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6003 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6004 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6005 echo "configure:6006: checking for X11/Xauth.h" >&5
6007 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6010 #include <X11/Xauth.h>
6012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6013 { (eval echo configure:6014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6014 ac_err=`grep -v '^ *+' conftest.out`
6015 if test -z "$ac_err"; then
6017 eval "ac_cv_header_$ac_safe=yes"
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6023 eval "ac_cv_header_$ac_safe=no"
6026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6027 echo "$ac_t""yes" 1>&6
6030 echo "$ac_t""no" 1>&6
6034 test -z "$with_xauth" && {
6035 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6036 echo "configure:6037: checking for XauGetAuthByAddr in -lXau" >&5
6037 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6039 xe_check_libs=" -lXau "
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 /* Override any gcc2 internal prototype to avoid an error. */
6044 /* We use char because int might match the return type of a gcc2
6045 builtin and then its argument prototype would still apply. */
6046 char XauGetAuthByAddr();
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6054 eval "ac_cv_lib_$ac_lib_var=yes"
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6059 eval "ac_cv_lib_$ac_lib_var=no"
6064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6065 echo "$ac_t""yes" 1>&6
6068 echo "$ac_t""no" 1>&6
6073 test -z "$with_xauth" && with_xauth=yes
6074 if test "$with_xauth" = "yes"; then
6075 { test "$extra_verbose" = "yes" && cat << \EOF
6078 cat >> confdefs.h <<\EOF
6079 #define HAVE_XAUTH 1
6085 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6093 if test "$with_tooltalk" != "no" ; then
6094 for dir in "" "Tt/" "desktop/" ; do
6095 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6096 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6097 echo "configure:6098: checking for ${dir}tt_c.h" >&5
6099 cat > conftest.$ac_ext <<EOF
6100 #line 6101 "configure"
6101 #include "confdefs.h"
6102 #include <${dir}tt_c.h>
6104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6105 { (eval echo configure:6106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6106 ac_err=`grep -v '^ *+' conftest.out`
6107 if test -z "$ac_err"; then
6109 eval "ac_cv_header_$ac_safe=yes"
6112 echo "configure: failed program was:" >&5
6113 cat conftest.$ac_ext >&5
6115 eval "ac_cv_header_$ac_safe=no"
6118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6119 echo "$ac_t""yes" 1>&6
6120 tt_c_h_path="${dir}tt_c.h"; break
6122 echo "$ac_t""no" 1>&6
6126 if test -z "$tt_c_h_path"; then
6127 if test "$with_tooltalk" = "yes"; then
6128 (echo "$progname: Usage error:"
6129 echo " " "Unable to find required tooltalk header files."
6130 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6135 if test "$with_tooltalk" != "no" ; then
6136 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6138 xe_msg_checking="for tt_message_create in -ltt"
6139 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6140 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6141 echo "configure:6142: checking "$xe_msg_checking"" >&5
6142 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6144 xe_check_libs=" -ltt $extra_libs"
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* Override any gcc2 internal prototype to avoid an error. */
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6151 char tt_message_create();
6157 if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6159 eval "ac_cv_lib_$ac_lib_var=yes"
6161 echo "configure: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6164 eval "ac_cv_lib_$ac_lib_var=no"
6169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6170 echo "$ac_t""yes" 1>&6
6171 tt_libs="-ltt $extra_libs"; break
6173 echo "$ac_t""no" 1>&6
6179 if test -z "$tt_libs"; then
6180 if test "$with_tooltalk" = "yes"; then
6181 (echo "$progname: Usage error:"
6182 echo " " "Unable to find required tooltalk libraries."
6183 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6188 test -z "$with_tooltalk" && with_tooltalk=yes
6189 if test "$with_tooltalk" = "yes"; then
6190 { test "$extra_verbose" = "yes" && cat << \EOF
6193 cat >> confdefs.h <<\EOF
6198 { test "$extra_verbose" = "yes" && cat << EOF
6199 Defining TT_C_H_PATH = "$tt_c_h_path"
6201 cat >> confdefs.h <<EOF
6202 #define TT_C_H_PATH "$tt_c_h_path"
6206 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6207 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6208 echo " xemacs will be linked with \"tooltalk.o\""
6212 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6213 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6214 echo "configure:6215: checking for Dt/Dt.h" >&5
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6222 { (eval echo configure:6223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6223 ac_err=`grep -v '^ *+' conftest.out`
6224 if test -z "$ac_err"; then
6226 eval "ac_cv_header_$ac_safe=yes"
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6232 eval "ac_cv_header_$ac_safe=no"
6235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6236 echo "$ac_t""yes" 1>&6
6239 echo "$ac_t""no" 1>&6
6243 test -z "$with_cde" && {
6244 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6245 echo "configure:6246: checking for DtDndDragStart in -lDtSvc" >&5
6246 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6248 xe_check_libs=" -lDtSvc "
6249 cat > conftest.$ac_ext <<EOF
6250 #line 6251 "configure"
6251 #include "confdefs.h"
6252 /* Override any gcc2 internal prototype to avoid an error. */
6253 /* We use char because int might match the return type of a gcc2
6254 builtin and then its argument prototype would still apply. */
6255 char DtDndDragStart();
6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6263 eval "ac_cv_lib_$ac_lib_var=yes"
6265 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6268 eval "ac_cv_lib_$ac_lib_var=no"
6273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6274 echo "$ac_t""yes" 1>&6
6277 echo "$ac_t""no" 1>&6
6282 test -z "$with_cde" && with_cde=yes
6283 if test "$with_dragndrop" = no; then
6284 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6287 if test "$with_cde" = "yes" ; then
6288 { test "$extra_verbose" = "yes" && cat << \EOF
6291 cat >> confdefs.h <<\EOF
6296 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6297 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6298 with_tooltalk=yes # CDE requires Tooltalk
6299 need_motif=yes # CDE requires Motif
6302 test "$window_system" != "x11" && with_offix=no
6303 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6304 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6307 if test "$with_dragndrop" = no; then
6308 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6311 if test "$with_cde" = yes; then
6312 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6315 test -z "$with_offix" && with_offix=no
6316 if test "$with_offix" = "yes"; then
6317 { test "$extra_verbose" = "yes" && cat << \EOF
6318 Defining HAVE_OFFIX_DND
6320 cat >> confdefs.h <<\EOF
6321 #define HAVE_OFFIX_DND 1
6325 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6326 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6329 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6330 echo "configure:6331: checking if drag and drop API is needed" >&5
6331 if test "$with_dragndrop" != "no" ; then
6332 if test -n "$dragndrop_proto" ; then
6334 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6335 { test "$extra_verbose" = "yes" && cat << \EOF
6336 Defining HAVE_DRAGNDROP
6338 cat >> confdefs.h <<\EOF
6339 #define HAVE_DRAGNDROP 1
6343 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6346 echo "$ac_t""no" 1>&6
6350 echo "checking for LDAP" 1>&6
6351 echo "configure:6352: checking for LDAP" >&5
6352 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6353 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6354 echo "configure:6355: checking for ldap.h" >&5
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6362 { (eval echo configure:6363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6363 ac_err=`grep -v '^ *+' conftest.out`
6364 if test -z "$ac_err"; then
6366 eval "ac_cv_header_$ac_safe=yes"
6369 echo "configure: failed program was:" >&5
6370 cat conftest.$ac_ext >&5
6372 eval "ac_cv_header_$ac_safe=no"
6375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6376 echo "$ac_t""yes" 1>&6
6379 echo "$ac_t""no" 1>&6
6383 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6384 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6385 echo "configure:6386: checking for lber.h" >&5
6387 cat > conftest.$ac_ext <<EOF
6388 #line 6389 "configure"
6389 #include "confdefs.h"
6392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6393 { (eval echo configure:6394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6394 ac_err=`grep -v '^ *+' conftest.out`
6395 if test -z "$ac_err"; then
6397 eval "ac_cv_header_$ac_safe=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6403 eval "ac_cv_header_$ac_safe=no"
6406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6407 echo "$ac_t""yes" 1>&6
6410 echo "$ac_t""no" 1>&6
6414 if test "$with_ldap" != "no"; then
6415 test -z "$with_umich_ldap" && {
6416 xe_msg_checking="for ldap_open in -lldap"
6417 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6418 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6419 echo "configure:6420: checking "$xe_msg_checking"" >&5
6420 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6422 xe_check_libs=" -lldap -llber"
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6437 eval "ac_cv_lib_$ac_lib_var=yes"
6439 echo "configure: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6442 eval "ac_cv_lib_$ac_lib_var=no"
6447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6448 echo "$ac_t""yes" 1>&6
6451 echo "$ac_t""no" 1>&6
6456 test "$with_umich_ldap" = "no" && {
6457 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6458 echo "configure:6459: checking for ldap_set_option in -lldap10" >&5
6459 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6461 xe_check_libs=" -lldap10 "
6462 cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6465 /* Override any gcc2 internal prototype to avoid an error. */
6466 /* We use char because int might match the return type of a gcc2
6467 builtin and then its argument prototype would still apply. */
6468 char ldap_set_option();
6474 if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6476 eval "ac_cv_lib_$ac_lib_var=yes"
6478 echo "configure: failed program was:" >&5
6479 cat conftest.$ac_ext >&5
6481 eval "ac_cv_lib_$ac_lib_var=no"
6486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6487 echo "$ac_t""yes" 1>&6
6490 echo "$ac_t""no" 1>&6
6495 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
6497 if test "$with_ldap" = "yes"; then
6498 { test "$extra_verbose" = "yes" && cat << \EOF
6501 cat >> confdefs.h <<\EOF
6506 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6507 echo " xemacs will be linked with \"eldap.o\""
6509 if test "$with_umich_ldap" = "yes" ; then
6510 { test "$extra_verbose" = "yes" && cat << \EOF
6511 Defining HAVE_UMICH_LDAP
6513 cat >> confdefs.h <<\EOF
6514 #define HAVE_UMICH_LDAP 1
6518 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6519 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6520 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6521 { test "$extra_verbose" = "yes" && cat << \EOF
6522 Defining HAVE_NS_LDAP
6524 cat >> confdefs.h <<\EOF
6525 #define HAVE_NS_LDAP 1
6529 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6530 elif test "$with_ldap" = "yes" ; then
6531 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6536 if test "$window_system" != "none"; then
6537 echo "checking for graphics libraries" 1>&6
6538 echo "configure:6539: checking for graphics libraries" >&5
6541 if test -z "$with_xpm"; then
6542 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6543 echo "configure:6544: checking for Xpm - no older than 3.4f" >&5
6545 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6548 #include <X11/xpm.h>
6549 int main(int c, char **v) {
6551 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6552 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6556 ./conftest dummy_arg; xpm_status=$?;
6557 if test "$xpm_status" = "0"; then
6561 if test "$xpm_status" = "1"; then
6562 xpm_problem="Xpm library version and header file version don't match!"
6563 elif test "$xpm_status" = "2"; then
6564 xpm_problem="Xpm library version is too old!"
6566 xpm_problem="Internal xpm detection logic error!"
6569 *** WARNING *** $xpm_problem
6570 I'm not touching that with a 10-foot pole!
6571 If you really want to use the installed version of Xpm, rerun
6572 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6576 echo "configure: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6583 echo "$ac_t""$with_xpm" 1>&6
6585 if test "$with_xpm" = "yes"; then
6586 { test "$extra_verbose" = "yes" && cat << \EOF
6589 cat >> confdefs.h <<\EOF
6594 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6595 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6596 echo "configure:6597: checking for \"FOR_MSW\" xpm" >&5
6598 cat > conftest.$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6603 XpmCreatePixmapFromData()
6606 if { (eval echo configure:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6610 echo "configure: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6617 echo "$ac_t""$xpm_for_msw" 1>&6
6618 if test "$xpm_for_msw" = "yes"; then
6619 { test "$extra_verbose" = "yes" && cat << \EOF
6622 cat >> confdefs.h <<\EOF
6630 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6631 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6632 echo "configure:6633: checking for compface.h" >&5
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 #include <compface.h>
6639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6640 { (eval echo configure:6641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6641 ac_err=`grep -v '^ *+' conftest.out`
6642 if test -z "$ac_err"; then
6644 eval "ac_cv_header_$ac_safe=yes"
6647 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6650 eval "ac_cv_header_$ac_safe=no"
6653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6654 echo "$ac_t""yes" 1>&6
6657 echo "$ac_t""no" 1>&6
6661 test -z "$with_xface" && {
6662 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6663 echo "configure:6664: checking for UnGenFace in -lcompface" >&5
6664 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6666 xe_check_libs=" -lcompface "
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6681 eval "ac_cv_lib_$ac_lib_var=yes"
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 eval "ac_cv_lib_$ac_lib_var=no"
6691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6692 echo "$ac_t""yes" 1>&6
6695 echo "$ac_t""no" 1>&6
6700 test -z "$with_xface" && with_xface=yes
6701 if test "$with_xface" = "yes"; then
6702 { test "$extra_verbose" = "yes" && cat << \EOF
6705 cat >> confdefs.h <<\EOF
6706 #define HAVE_XFACE 1
6710 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6713 if test "$with_gif" != "no"; then
6715 { test "$extra_verbose" = "yes" && cat << \EOF
6718 cat >> confdefs.h <<\EOF
6723 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6724 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6728 if test "$with_png $with_tiff" != "no no"; then
6730 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6731 echo "configure:6732: checking for inflate in -lc" >&5
6732 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6734 xe_check_libs=" -lc "
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6738 /* Override any gcc2 internal prototype to avoid an error. */
6739 /* We use char because int might match the return type of a gcc2
6740 builtin and then its argument prototype would still apply. */
6747 if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6749 eval "ac_cv_lib_$ac_lib_var=yes"
6751 echo "configure: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6754 eval "ac_cv_lib_$ac_lib_var=no"
6759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6760 echo "$ac_t""yes" 1>&6
6763 echo "$ac_t""no" 1>&6
6765 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6766 echo "configure:6767: checking for inflate in -lz" >&5
6767 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6769 xe_check_libs=" -lz "
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 /* Override any gcc2 internal prototype to avoid an error. */
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6784 eval "ac_cv_lib_$ac_lib_var=yes"
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6789 eval "ac_cv_lib_$ac_lib_var=no"
6794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6795 echo "$ac_t""yes" 1>&6
6796 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6798 echo "$ac_t""no" 1>&6
6800 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6801 echo "configure:6802: checking for inflate in -lgz" >&5
6802 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6804 xe_check_libs=" -lgz "
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6808 /* Override any gcc2 internal prototype to avoid an error. */
6809 /* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */
6817 if { (eval echo configure:6818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6819 eval "ac_cv_lib_$ac_lib_var=yes"
6821 echo "configure: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6824 eval "ac_cv_lib_$ac_lib_var=no"
6829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6830 echo "$ac_t""yes" 1>&6
6831 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
6833 echo "$ac_t""no" 1>&6
6845 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6846 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6847 echo "configure:6848: checking for jpeglib.h" >&5
6849 cat > conftest.$ac_ext <<EOF
6850 #line 6851 "configure"
6851 #include "confdefs.h"
6852 #include <jpeglib.h>
6854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6855 { (eval echo configure:6856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6856 ac_err=`grep -v '^ *+' conftest.out`
6857 if test -z "$ac_err"; then
6859 eval "ac_cv_header_$ac_safe=yes"
6862 echo "configure: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6865 eval "ac_cv_header_$ac_safe=no"
6868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6869 echo "$ac_t""yes" 1>&6
6872 echo "$ac_t""no" 1>&6
6876 test -z "$with_jpeg" && {
6877 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6878 echo "configure:6879: checking for jpeg_destroy_decompress in -ljpeg" >&5
6879 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6881 xe_check_libs=" -ljpeg "
6882 cat > conftest.$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6885 /* Override any gcc2 internal prototype to avoid an error. */
6886 /* We use char because int might match the return type of a gcc2
6887 builtin and then its argument prototype would still apply. */
6888 char jpeg_destroy_decompress();
6891 jpeg_destroy_decompress()
6894 if { (eval echo configure:6895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6896 eval "ac_cv_lib_$ac_lib_var=yes"
6898 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6901 eval "ac_cv_lib_$ac_lib_var=no"
6906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6907 echo "$ac_t""yes" 1>&6
6910 echo "$ac_t""no" 1>&6
6915 test -z "$with_jpeg" && with_jpeg=yes
6916 if test "$with_jpeg" = "yes"; then
6917 { test "$extra_verbose" = "yes" && cat << \EOF
6920 cat >> confdefs.h <<\EOF
6925 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6929 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6930 echo "configure:6931: checking for pow" >&5
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6935 /* System header to define __stub macros and hopefully few prototypes,
6936 which can conflict with char pow(); below. */
6938 /* Override any gcc2 internal prototype to avoid an error. */
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6945 /* The GNU C library defines this for functions which it implements
6946 to always fail with ENOSYS. Some functions are actually named
6947 something starting with __ and the normal name is an alias. */
6948 #if defined (__stub_pow) || defined (__stub___pow)
6956 if { (eval echo configure:6957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6958 eval "ac_cv_func_pow=yes"
6960 echo "configure: failed program was:" >&5
6961 cat conftest.$ac_ext >&5
6963 eval "ac_cv_func_pow=no"
6967 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6971 echo "$ac_t""no" 1>&6
6975 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6976 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6977 echo "configure:6978: checking for png.h" >&5
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6985 { (eval echo configure:6986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6986 ac_err=`grep -v '^ *+' conftest.out`
6987 if test -z "$ac_err"; then
6989 eval "ac_cv_header_$ac_safe=yes"
6992 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6995 eval "ac_cv_header_$ac_safe=no"
6998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6999 echo "$ac_t""yes" 1>&6
7002 echo "$ac_t""no" 1>&6
7006 test -z "$with_png" && {
7007 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7008 echo "configure:7009: checking for png_read_image in -lpng" >&5
7009 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7011 xe_check_libs=" -lpng "
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7015 /* Override any gcc2 internal prototype to avoid an error. */
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7018 char png_read_image();
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7026 eval "ac_cv_lib_$ac_lib_var=yes"
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 eval "ac_cv_lib_$ac_lib_var=no"
7036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7037 echo "$ac_t""yes" 1>&6
7040 echo "$ac_t""no" 1>&6
7045 if test -z "$with_png"; then
7046 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7047 echo "configure:7048: checking for workable png version information" >&5
7048 xe_check_libs="-lpng -lz"
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7053 int main(int c, char **v) {
7054 if (c == 1) return 0;
7055 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7056 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7060 ./conftest dummy_arg; png_status=$?;
7061 if test "$png_status" = "0"; then
7065 if test "$png_status" = "1"; then
7066 png_problem="PNG library version and header file don't match!"
7067 elif test "$png_status" = "2"; then
7068 png_problem="PNG library version too old (pre 1.0.2)!"
7071 *** WARNING *** $png_problem
7072 I'm not touching that with a 10-foot pole!
7073 If you really want to use the installed version of libPNG, rerun
7074 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7078 echo "configure: failed program was:" >&5
7079 cat conftest.$ac_ext >&5
7085 echo "$ac_t""$with_png" 1>&6
7087 if test "$with_png" = "yes"; then
7088 { test "$extra_verbose" = "yes" && cat << \EOF
7091 cat >> confdefs.h <<\EOF
7096 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7099 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7100 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7101 echo "configure:7102: checking for tiffio.h" >&5
7103 cat > conftest.$ac_ext <<EOF
7104 #line 7105 "configure"
7105 #include "confdefs.h"
7108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7109 { (eval echo configure:7110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7110 ac_err=`grep -v '^ *+' conftest.out`
7111 if test -z "$ac_err"; then
7113 eval "ac_cv_header_$ac_safe=yes"
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7119 eval "ac_cv_header_$ac_safe=no"
7122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7123 echo "$ac_t""yes" 1>&6
7126 echo "$ac_t""no" 1>&6
7130 test -z "$with_tiff" && {
7131 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7132 echo "configure:7133: checking for TIFFClientOpen in -ltiff" >&5
7133 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7135 xe_check_libs=" -ltiff "
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 /* Override any gcc2 internal prototype to avoid an error. */
7140 /* We use char because int might match the return type of a gcc2
7141 builtin and then its argument prototype would still apply. */
7142 char TIFFClientOpen();
7148 if { (eval echo configure:7149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7150 eval "ac_cv_lib_$ac_lib_var=yes"
7152 echo "configure: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 eval "ac_cv_lib_$ac_lib_var=no"
7160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7161 echo "$ac_t""yes" 1>&6
7164 echo "$ac_t""no" 1>&6
7169 test -z "$with_tiff" && with_tiff=yes
7170 if test "$with_tiff" = "yes"; then
7171 { test "$extra_verbose" = "yes" && cat << \EOF
7174 cat >> confdefs.h <<\EOF
7179 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7184 if test "$with_x11" = "yes"; then
7186 echo "checking for X11 graphics libraries" 1>&6
7187 echo "configure:7188: checking for X11 graphics libraries" >&5
7190 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7191 echo "configure:7192: checking for XawScrollbarSetThumb in -lXaw" >&5
7192 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7194 xe_check_libs=" -lXaw "
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7198 /* Override any gcc2 internal prototype to avoid an error. */
7199 /* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201 char XawScrollbarSetThumb();
7204 XawScrollbarSetThumb()
7207 if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7209 eval "ac_cv_lib_$ac_lib_var=yes"
7211 echo "configure: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7214 eval "ac_cv_lib_$ac_lib_var=no"
7219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7220 echo "$ac_t""yes" 1>&6
7223 echo "$ac_t""no" 1>&6
7229 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7230 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7231 echo "configure:7232: checking for Xm/Xm.h" >&5
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7239 { (eval echo configure:7240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7240 ac_err=`grep -v '^ *+' conftest.out`
7241 if test -z "$ac_err"; then
7243 eval "ac_cv_header_$ac_safe=yes"
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 eval "ac_cv_header_$ac_safe=no"
7252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7253 echo "$ac_t""yes" 1>&6
7255 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7256 echo "configure:7257: checking for XmStringFree in -lXm" >&5
7257 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7259 xe_check_libs=" -lXm "
7260 cat > conftest.$ac_ext <<EOF
7261 #line 7262 "configure"
7262 #include "confdefs.h"
7263 /* Override any gcc2 internal prototype to avoid an error. */
7264 /* We use char because int might match the return type of a gcc2
7265 builtin and then its argument prototype would still apply. */
7266 char XmStringFree();
7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7274 eval "ac_cv_lib_$ac_lib_var=yes"
7276 echo "configure: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7279 eval "ac_cv_lib_$ac_lib_var=no"
7284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7285 echo "$ac_t""yes" 1>&6
7288 echo "$ac_t""no" 1>&6
7294 echo "$ac_t""no" 1>&6
7299 if test "$have_motif" = "yes"; then
7300 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7301 echo "configure:7302: checking for Lesstif" >&5
7302 cat > conftest.$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7306 #ifdef LESSTIF_VERSION
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7312 egrep "yes" >/dev/null 2>&1; then
7321 echo "$ac_t""$have_lesstif" 1>&6
7326 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7327 with_menubars="lucid" ;;
7329 case "$with_dialogs" in "" | "yes" | "lucid" )
7330 if test "$have_motif" = "yes"; then with_dialogs="motif"
7331 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7332 else with_dialogs=no
7335 case "$with_scrollbars" in "" | "yes" )
7336 with_scrollbars="lucid" ;;
7339 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
7341 case "$all_widgets" in *athena* )
7342 { test "$extra_verbose" = "yes" && cat << \EOF
7343 Defining LWLIB_USES_ATHENA
7345 cat >> confdefs.h <<\EOF
7346 #define LWLIB_USES_ATHENA 1
7350 { test "$extra_verbose" = "yes" && cat << \EOF
7351 Defining NEED_ATHENA
7353 cat >> confdefs.h <<\EOF
7354 #define NEED_ATHENA 1
7358 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7359 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7362 case "$all_widgets" in *motif* )
7363 { test "$extra_verbose" = "yes" && cat << \EOF
7364 Defining LWLIB_USES_MOTIF
7366 cat >> confdefs.h <<\EOF
7367 #define LWLIB_USES_MOTIF 1
7371 { test "$extra_verbose" = "yes" && cat << \EOF
7374 cat >> confdefs.h <<\EOF
7375 #define NEED_MOTIF 1
7379 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7383 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7384 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7385 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7386 case "$all_widgets" in *lucid* )
7387 { test "$extra_verbose" = "yes" && cat << \EOF
7390 cat >> confdefs.h <<\EOF
7391 #define NEED_LUCID 1
7395 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7400 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7401 Defining LWLIB_SCROLLBARS_ATHENA
7403 cat >> confdefs.h <<\EOF
7404 #define LWLIB_SCROLLBARS_ATHENA 1
7408 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7409 Defining LWLIB_DIALOGS_ATHENA
7411 cat >> confdefs.h <<\EOF
7412 #define LWLIB_DIALOGS_ATHENA 1
7416 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7417 Defining LWLIB_SCROLLBARS_ATHENA3D
7419 cat >> confdefs.h <<\EOF
7420 #define LWLIB_SCROLLBARS_ATHENA3D 1
7424 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7425 Defining LWLIB_DIALOGS_ATHENA3D
7427 cat >> confdefs.h <<\EOF
7428 #define LWLIB_DIALOGS_ATHENA3D 1
7433 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7434 Defining HAVE_MENUBARS
7436 cat >> confdefs.h <<\EOF
7437 #define HAVE_MENUBARS 1
7441 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7442 Defining HAVE_SCROLLBARS
7444 cat >> confdefs.h <<\EOF
7445 #define HAVE_SCROLLBARS 1
7449 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7450 Defining HAVE_DIALOGS
7452 cat >> confdefs.h <<\EOF
7453 #define HAVE_DIALOGS 1
7457 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7458 Defining HAVE_TOOLBARS
7460 cat >> confdefs.h <<\EOF
7461 #define HAVE_TOOLBARS 1
7466 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7467 Defining LWLIB_MENUBARS_LUCID
7469 cat >> confdefs.h <<\EOF
7470 #define LWLIB_MENUBARS_LUCID 1
7474 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7475 Defining LWLIB_SCROLLBARS_LUCID
7477 cat >> confdefs.h <<\EOF
7478 #define LWLIB_SCROLLBARS_LUCID 1
7483 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7484 Defining LWLIB_MENUBARS_MOTIF
7486 cat >> confdefs.h <<\EOF
7487 #define LWLIB_MENUBARS_MOTIF 1
7491 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7492 Defining LWLIB_SCROLLBARS_MOTIF
7494 cat >> confdefs.h <<\EOF
7495 #define LWLIB_SCROLLBARS_MOTIF 1
7499 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7500 Defining LWLIB_DIALOGS_MOTIF
7502 cat >> confdefs.h <<\EOF
7503 #define LWLIB_DIALOGS_MOTIF 1
7508 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7509 echo " xemacs will be linked with \"menubar.o\""
7511 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7512 echo " xemacs will be linked with \"scrollbar.o\""
7514 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7515 echo " xemacs will be linked with \"dialog.o\""
7517 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7518 echo " xemacs will be linked with \"toolbar.o\""
7521 if test "$with_x11" = "yes"; then
7522 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7523 echo " xemacs will be linked with \"menubar-x.o\""
7525 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7526 echo " xemacs will be linked with \"scrollbar-x.o\""
7528 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7529 echo " xemacs will be linked with \"dialog-x.o\""
7531 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7532 echo " xemacs will be linked with \"toolbar-x.o\""
7534 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7535 echo " xemacs will be linked with \"gui-x.o\""
7538 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7539 echo "Attempt to Build NAS sound without X"
7540 echo "Please remove NAS configuration or build with X"
7545 test "$use_minimal_tagbits" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
7546 Defining USE_MINIMAL_TAGBITS
7548 cat >> confdefs.h <<\EOF
7549 #define USE_MINIMAL_TAGBITS 1
7553 test "$use_indexed_lrecord_implementation" = "yes" && \
7554 { test "$extra_verbose" = "yes" && cat << \EOF
7555 Defining USE_INDEXED_LRECORD_IMPLEMENTATION
7557 cat >> confdefs.h <<\EOF
7558 #define USE_INDEXED_LRECORD_IMPLEMENTATION 1
7564 test -z "$with_mule" && with_mule=no
7565 test -z "$with_file_coding" && with_file_coding=no
7568 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7569 { test "$extra_verbose" = "yes" && cat << \EOF
7570 Defining FILE_CODING
7572 cat >> confdefs.h <<\EOF
7573 #define FILE_CODING 1
7577 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7578 echo " xemacs will be linked with \"file-coding.o\""
7582 if test "$with_mule" = "yes" ; then
7583 echo "checking for Mule-related features" 1>&6
7584 echo "configure:7585: checking for Mule-related features" >&5
7585 { test "$extra_verbose" = "yes" && cat << \EOF
7588 cat >> confdefs.h <<\EOF
7593 { test "$extra_verbose" = "yes" && cat << \EOF
7594 Defining FILE_CODING
7596 cat >> confdefs.h <<\EOF
7597 #define FILE_CODING 1
7601 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7602 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o\""
7605 for ac_hdr in libintl.h
7607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_hdr" >&5
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7617 { (eval echo configure:7618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7618 ac_err=`grep -v '^ *+' conftest.out`
7619 if test -z "$ac_err"; then
7621 eval "ac_cv_header_$ac_safe=yes"
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7627 eval "ac_cv_header_$ac_safe=no"
7630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7631 echo "$ac_t""yes" 1>&6
7632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7633 { test "$extra_verbose" = "yes" && cat << EOF
7636 cat >> confdefs.h <<EOF
7637 #define $ac_tr_hdr 1
7642 echo "$ac_t""no" 1>&6
7647 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7648 echo "configure:7649: checking for strerror in -lintl" >&5
7649 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7651 xe_check_libs=" -lintl "
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 /* Override any gcc2 internal prototype to avoid an error. */
7656 /* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7664 if { (eval echo configure:7665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7666 eval "ac_cv_lib_$ac_lib_var=yes"
7668 echo "configure: failed program was:" >&5
7669 cat conftest.$ac_ext >&5
7671 eval "ac_cv_lib_$ac_lib_var=no"
7676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7677 echo "$ac_t""yes" 1>&6
7678 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7680 { test "$extra_verbose" = "yes" && cat << EOF
7683 cat >> confdefs.h <<EOF
7684 #define $ac_tr_lib 1
7688 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7691 echo "$ac_t""no" 1>&6
7696 echo "checking for Mule input methods" 1>&6
7697 echo "configure:7698: checking for Mule input methods" >&5
7698 case "$with_xim" in "" | "yes" )
7699 echo "checking for XIM" 1>&6
7700 echo "configure:7701: checking for XIM" >&5
7701 if test "$have_lesstif" = "yes"; then with_xim=xlib
7703 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7704 echo "configure:7705: checking for XmImMbLookupString in -lXm" >&5
7705 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7707 xe_check_libs=" -lXm "
7708 cat > conftest.$ac_ext <<EOF
7709 #line 7710 "configure"
7710 #include "confdefs.h"
7711 /* Override any gcc2 internal prototype to avoid an error. */
7712 /* We use char because int might match the return type of a gcc2
7713 builtin and then its argument prototype would still apply. */
7714 char XmImMbLookupString();
7717 XmImMbLookupString()
7720 if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7722 eval "ac_cv_lib_$ac_lib_var=yes"
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7727 eval "ac_cv_lib_$ac_lib_var=no"
7732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7733 echo "$ac_t""yes" 1>&6
7736 echo "$ac_t""no" 1>&6
7743 if test "$with_xim" != "no"; then
7744 { test "$extra_verbose" = "yes" && cat << \EOF
7747 cat >> confdefs.h <<\EOF
7752 if test "$with_xim" = "xlib"; then
7753 { test "$extra_verbose" = "yes" && cat << \EOF
7756 cat >> confdefs.h <<\EOF
7761 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7762 echo " xemacs will be linked with \"input-method-xlib.o\""
7765 if test "$with_xim" = "motif"; then
7766 { test "$extra_verbose" = "yes" && cat << \EOF
7769 cat >> confdefs.h <<\EOF
7775 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
7776 echo " xemacs will be linked with \"input-method-motif.o\""
7779 if test "$with_xim" = "motif"; then
7784 if test "$with_xfs" = "yes" ; then
7785 echo "checking for XFontSet" 1>&6
7786 echo "configure:7787: checking for XFontSet" >&5
7788 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7789 echo "configure:7790: checking for XmbDrawString in -lX11" >&5
7790 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7792 xe_check_libs=" -lX11 "
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799 char XmbDrawString();
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7807 eval "ac_cv_lib_$ac_lib_var=yes"
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7812 eval "ac_cv_lib_$ac_lib_var=no"
7817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7818 echo "$ac_t""yes" 1>&6
7821 echo "$ac_t""no" 1>&6
7826 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
7827 { test "$extra_verbose" = "yes" && cat << \EOF
7828 Defining USE_XFONTSET
7830 cat >> confdefs.h <<\EOF
7831 #define USE_XFONTSET 1
7835 if test "$with_xim" = "no" ; then
7836 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
7837 echo " xemacs will be linked with \"input-method-xfs.o\""
7842 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7843 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7844 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7845 echo "configure:7846: checking for wnn/jllib.h" >&5
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7850 #include <wnn/jllib.h>
7852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7853 { (eval echo configure:7854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7854 ac_err=`grep -v '^ *+' conftest.out`
7855 if test -z "$ac_err"; then
7857 eval "ac_cv_header_$ac_safe=yes"
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7863 eval "ac_cv_header_$ac_safe=no"
7866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7867 echo "$ac_t""yes" 1>&6
7870 echo "$ac_t""no" 1>&6
7874 if test "$with_wnn" != "no"; then
7875 for ac_func in crypt
7877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7878 echo "configure:7879: checking for $ac_func" >&5
7880 cat > conftest.$ac_ext <<EOF
7881 #line 7882 "configure"
7882 #include "confdefs.h"
7883 /* System header to define __stub macros and hopefully few prototypes,
7884 which can conflict with char $ac_func(); below. */
7886 /* Override any gcc2 internal prototype to avoid an error. */
7887 /* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7893 /* The GNU C library defines this for functions which it implements
7894 to always fail with ENOSYS. Some functions are actually named
7895 something starting with __ and the normal name is an alias. */
7896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7904 if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7906 eval "ac_cv_func_$ac_func=yes"
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7911 eval "ac_cv_func_$ac_func=no"
7915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7918 { test "$extra_verbose" = "yes" && cat << EOF
7919 Defining $ac_tr_func
7921 cat >> confdefs.h <<EOF
7922 #define $ac_tr_func 1
7927 echo "$ac_t""no" 1>&6
7931 test "$ac_cv_func_crypt" != "yes" && {
7932 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7933 echo "configure:7934: checking for crypt in -lcrypt" >&5
7934 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7936 xe_check_libs=" -lcrypt "
7937 cat > conftest.$ac_ext <<EOF
7938 #line 7939 "configure"
7939 #include "confdefs.h"
7940 /* Override any gcc2 internal prototype to avoid an error. */
7941 /* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7949 if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7951 eval "ac_cv_lib_$ac_lib_var=yes"
7953 echo "configure: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7956 eval "ac_cv_lib_$ac_lib_var=no"
7961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7962 echo "$ac_t""yes" 1>&6
7963 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7965 { test "$extra_verbose" = "yes" && cat << EOF
7968 cat >> confdefs.h <<EOF
7969 #define $ac_tr_lib 1
7973 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
7976 echo "$ac_t""no" 1>&6
7981 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
7983 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7984 echo "configure:7985: checking for jl_dic_list_e in -lwnn" >&5
7985 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7987 xe_check_libs=" -lwnn "
7988 cat > conftest.$ac_ext <<EOF
7989 #line 7990 "configure"
7990 #include "confdefs.h"
7991 /* Override any gcc2 internal prototype to avoid an error. */
7992 /* We use char because int might match the return type of a gcc2
7993 builtin and then its argument prototype would still apply. */
7994 char jl_dic_list_e();
8000 if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8002 eval "ac_cv_lib_$ac_lib_var=yes"
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8007 eval "ac_cv_lib_$ac_lib_var=no"
8012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8013 echo "$ac_t""yes" 1>&6
8016 echo "$ac_t""no" 1>&6
8017 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8018 echo "configure:8019: checking for jl_dic_list_e in -lwnn4" >&5
8019 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8021 xe_check_libs=" -lwnn4 "
8022 cat > conftest.$ac_ext <<EOF
8023 #line 8024 "configure"
8024 #include "confdefs.h"
8025 /* Override any gcc2 internal prototype to avoid an error. */
8026 /* We use char because int might match the return type of a gcc2
8027 builtin and then its argument prototype would still apply. */
8028 char jl_dic_list_e();
8034 if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8036 eval "ac_cv_lib_$ac_lib_var=yes"
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8041 eval "ac_cv_lib_$ac_lib_var=no"
8046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8047 echo "$ac_t""yes" 1>&6
8050 echo "$ac_t""no" 1>&6
8051 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8052 echo "configure:8053: checking for jl_dic_list_e in -lwnn6" >&5
8053 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8055 xe_check_libs=" -lwnn6 "
8056 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8059 /* Override any gcc2 internal prototype to avoid an error. */
8060 /* We use char because int might match the return type of a gcc2
8061 builtin and then its argument prototype would still apply. */
8062 char jl_dic_list_e();
8068 if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8070 eval "ac_cv_lib_$ac_lib_var=yes"
8072 echo "configure: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8075 eval "ac_cv_lib_$ac_lib_var=no"
8080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8081 echo "$ac_t""yes" 1>&6
8084 echo "$ac_t""no" 1>&6
8085 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8086 echo "configure:8087: checking for dic_list_e in -lwnn6_fromsrc" >&5
8087 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8089 xe_check_libs=" -lwnn6_fromsrc "
8090 cat > conftest.$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8093 /* Override any gcc2 internal prototype to avoid an error. */
8094 /* We use char because int might match the return type of a gcc2
8095 builtin and then its argument prototype would still apply. */
8102 if { (eval echo configure:8103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8104 eval "ac_cv_lib_$ac_lib_var=yes"
8106 echo "configure: failed program was:" >&5
8107 cat conftest.$ac_ext >&5
8109 eval "ac_cv_lib_$ac_lib_var=no"
8114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8115 echo "$ac_t""yes" 1>&6
8118 echo "$ac_t""no" 1>&6
8133 test -z "$with_wnn" && with_wnn=yes
8134 if test "$with_wnn" = "yes"; then
8135 { test "$extra_verbose" = "yes" && cat << \EOF
8138 cat >> confdefs.h <<\EOF
8143 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8144 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8145 echo " xemacs will be linked with \"mule-wnnfns.o\""
8147 if test "$with_wnn6" != "no"; then
8149 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8150 echo "configure:8151: checking for jl_fi_dic_list in -l$libwnn" >&5
8151 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8153 xe_check_libs=" -l$libwnn "
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 /* Override any gcc2 internal prototype to avoid an error. */
8158 /* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8160 char jl_fi_dic_list();
8166 if { (eval echo configure:8167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8168 eval "ac_cv_lib_$ac_lib_var=yes"
8170 echo "configure: failed program was:" >&5
8171 cat conftest.$ac_ext >&5
8173 eval "ac_cv_lib_$ac_lib_var=no"
8178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8179 echo "$ac_t""yes" 1>&6
8182 echo "$ac_t""no" 1>&6
8186 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8189 cat >> confdefs.h <<\EOF
8197 canna_includes_found=no
8198 if test "$with_canna" != "no"; then
8199 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8200 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8201 echo "configure:8202: checking for canna/jrkanji.h" >&5
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8206 #include <canna/jrkanji.h>
8208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8209 { (eval echo configure:8210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8210 ac_err=`grep -v '^ *+' conftest.out`
8211 if test -z "$ac_err"; then
8213 eval "ac_cv_header_$ac_safe=yes"
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8219 eval "ac_cv_header_$ac_safe=no"
8222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8223 echo "$ac_t""yes" 1>&6
8224 canna_includes_found=yes
8226 echo "$ac_t""no" 1>&6
8230 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8231 -d "/usr/local/canna/include"; then
8232 save_c_switch_site="$c_switch_site"
8233 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8234 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8235 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8236 echo "configure:8237: checking for canna/jrkanji.h" >&5
8238 cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 #include <canna/jrkanji.h>
8243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8244 { (eval echo configure:8245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8245 ac_err=`grep -v '^ *+' conftest.out`
8246 if test -z "$ac_err"; then
8248 eval "ac_cv_header_$ac_safe=yes"
8251 echo "configure: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8254 eval "ac_cv_header_$ac_safe=no"
8257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8258 echo "$ac_t""yes" 1>&6
8259 canna_includes_found=yes
8261 echo "$ac_t""no" 1>&6
8264 if test "$canna_includes_found" != "yes"; then
8265 c_switch_site="$save_c_switch_site"
8270 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8271 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8272 echo "configure:8273: checking for canna/RK.h" >&5
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8277 #include <canna/RK.h>
8279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8280 { (eval echo configure:8281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8281 ac_err=`grep -v '^ *+' conftest.out`
8282 if test -z "$ac_err"; then
8284 eval "ac_cv_header_$ac_safe=yes"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8290 eval "ac_cv_header_$ac_safe=no"
8293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8297 echo "$ac_t""no" 1>&6
8301 test -z "$with_canna" && {
8302 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8303 echo "configure:8304: checking for RkBgnBun in -lRKC" >&5
8304 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8306 xe_check_libs=" -lRKC "
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 /* Override any gcc2 internal prototype to avoid an error. */
8311 /* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8321 eval "ac_cv_lib_$ac_lib_var=yes"
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8326 eval "ac_cv_lib_$ac_lib_var=no"
8331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8332 echo "$ac_t""yes" 1>&6
8335 echo "$ac_t""no" 1>&6
8340 test -z "$with_canna" && {
8341 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8342 echo "configure:8343: checking for jrKanjiControl in -lcanna" >&5
8343 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8345 xe_check_libs=" -lcanna "
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 /* Override any gcc2 internal prototype to avoid an error. */
8350 /* We use char because int might match the return type of a gcc2
8351 builtin and then its argument prototype would still apply. */
8352 char jrKanjiControl();
8358 if { (eval echo configure:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8360 eval "ac_cv_lib_$ac_lib_var=yes"
8362 echo "configure: failed program was:" >&5
8363 cat conftest.$ac_ext >&5
8365 eval "ac_cv_lib_$ac_lib_var=no"
8370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8371 echo "$ac_t""yes" 1>&6
8374 echo "$ac_t""no" 1>&6
8379 test -z "$with_canna" && with_canna=yes
8380 if test "$with_canna" = "yes"; then
8381 { test "$extra_verbose" = "yes" && cat << \EOF
8384 cat >> confdefs.h <<\EOF
8385 #define HAVE_CANNA 1
8389 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8390 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8391 echo " xemacs will be linked with \"mule-canna.o\""
8395 else for feature in xim canna wnn; do
8396 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8397 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8399 eval "with_${feature}=no"
8403 if test "$need_motif" = "yes" ; then
8404 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8406 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8407 echo "configure:8408: checking for layout_object_getvalue in -li18n" >&5
8408 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8410 xe_check_libs=" -li18n "
8411 cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8414 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417 char layout_object_getvalue();
8420 layout_object_getvalue()
8423 if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8425 eval "ac_cv_lib_$ac_lib_var=yes"
8427 echo "configure: failed program was:" >&5
8428 cat conftest.$ac_ext >&5
8430 eval "ac_cv_lib_$ac_lib_var=no"
8435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8436 echo "$ac_t""yes" 1>&6
8437 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8439 echo "$ac_t""no" 1>&6
8444 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8445 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8446 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8448 runpath="" runpath_dirs=""
8449 if test -n "$LD_RUN_PATH"; then
8450 runpath="$LD_RUN_PATH"
8451 elif test "$GCC" = "yes"; then
8452 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8453 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8454 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8455 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8456 case "$arg" in P,* | -L* | -R* )
8457 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8459 xe_runpath_dir="$dir"
8460 test "$xe_runpath_dir" != "/lib" -a \
8461 "$xe_runpath_dir" != "/usr/lib" -a \
8462 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8463 eval "$xe_add_unique_runpath_dir"
8468 ld_switch_run="$ld_switch_run_save"
8471 for arg in $ld_switch_site $ld_switch_x_site; do
8472 case "$arg" in -L*) {
8473 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8474 test "$xe_runpath_dir" != "/lib" -a \
8475 "$xe_runpath_dir" != "/usr/lib" -a \
8476 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8477 eval "$xe_add_unique_runpath_dir"
8480 if test "$opsys $need_motif" = "sol2 yes"; then
8481 xe_runpath_dir="/opt/SUNWdt/lib";
8482 eval "$xe_add_unique_runpath_dir";
8485 if test -n "$runpath"; then
8486 ld_switch_run="${dash_r}${runpath}"
8488 if test "$GCC" = "yes"; then
8489 set x $ld_switch_run; shift; ld_switch_run=""
8490 while test -n "$1"; do
8492 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8493 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8495 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8500 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8506 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8509 echo "configure:8510: checking for $ac_func" >&5
8511 cat > conftest.$ac_ext <<EOF
8512 #line 8513 "configure"
8513 #include "confdefs.h"
8514 /* System header to define __stub macros and hopefully few prototypes,
8515 which can conflict with char $ac_func(); below. */
8517 /* Override any gcc2 internal prototype to avoid an error. */
8518 /* We use char because int might match the return type of a gcc2
8519 builtin and then its argument prototype would still apply. */
8524 /* The GNU C library defines this for functions which it implements
8525 to always fail with ENOSYS. Some functions are actually named
8526 something starting with __ and the normal name is an alias. */
8527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8537 eval "ac_cv_func_$ac_func=yes"
8539 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8542 eval "ac_cv_func_$ac_func=no"
8546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8547 echo "$ac_t""yes" 1>&6
8548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8549 { test "$extra_verbose" = "yes" && cat << EOF
8550 Defining $ac_tr_func
8552 cat >> confdefs.h <<EOF
8553 #define $ac_tr_func 1
8558 echo "$ac_t""no" 1>&6
8565 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8566 echo " xemacs will be linked with \"realpath.o\""
8569 case "$canonical" in
8570 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8571 echo " xemacs will be linked with \"realpath.o\""
8573 * ) for ac_func in realpath
8575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8576 echo "configure:8577: checking for $ac_func" >&5
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8581 /* System header to define __stub macros and hopefully few prototypes,
8582 which can conflict with char $ac_func(); below. */
8584 /* Override any gcc2 internal prototype to avoid an error. */
8585 /* We use char because int might match the return type of a gcc2
8586 builtin and then its argument prototype would still apply. */
8591 /* The GNU C library defines this for functions which it implements
8592 to always fail with ENOSYS. Some functions are actually named
8593 something starting with __ and the normal name is an alias. */
8594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8602 if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8604 eval "ac_cv_func_$ac_func=yes"
8606 echo "configure: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8609 eval "ac_cv_func_$ac_func=no"
8613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8614 echo "$ac_t""yes" 1>&6
8615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8616 { test "$extra_verbose" = "yes" && cat << EOF
8617 Defining $ac_tr_func
8619 cat >> confdefs.h <<EOF
8620 #define $ac_tr_func 1
8625 echo "$ac_t""no" 1>&6
8629 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8630 echo " xemacs will be linked with \"realpath.o\""
8635 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8636 echo "configure:8637: checking whether netdb declares h_errno" >&5
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8647 echo "$ac_t""yes" 1>&6
8648 { test "$extra_verbose" = "yes" && cat << \EOF
8649 Defining HAVE_H_ERRNO
8651 cat >> confdefs.h <<\EOF
8652 #define HAVE_H_ERRNO 1
8657 echo "configure: failed program was:" >&5
8658 cat conftest.$ac_ext >&5
8660 echo "$ac_t""no" 1>&6
8664 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8665 echo "configure:8666: checking for sigsetjmp" >&5
8666 cat > conftest.$ac_ext <<EOF
8667 #line 8668 "configure"
8668 #include "confdefs.h"
8671 sigjmp_buf bar; sigsetjmp (bar, 0);
8674 if { (eval echo configure:8675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8676 echo "$ac_t""yes" 1>&6
8677 { test "$extra_verbose" = "yes" && cat << \EOF
8678 Defining HAVE_SIGSETJMP
8680 cat >> confdefs.h <<\EOF
8681 #define HAVE_SIGSETJMP 1
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 echo "$ac_t""no" 1>&6
8693 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8694 echo "configure:8695: checking whether localtime caches TZ" >&5
8696 if test "$ac_cv_func_tzset" = "yes"; then
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8702 # include <stdlib.h>
8704 extern char **environ;
8708 for (to = from = environ; (*to = *from); from++)
8709 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
8712 char TZ_GMT0[] = "TZ=GMT0";
8713 char TZ_PST8[] = "TZ=PST8";
8716 time_t now = time ((time_t *) 0);
8717 int hour_GMT0, hour_unset;
8718 if (putenv (TZ_GMT0) != 0)
8720 hour_GMT0 = localtime (&now)->tm_hour;
8722 hour_unset = localtime (&now)->tm_hour;
8723 if (putenv (TZ_PST8) != 0)
8725 if (localtime (&now)->tm_hour == hour_GMT0)
8728 if (localtime (&now)->tm_hour != hour_unset)
8733 if { (eval echo configure:8734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8735 emacs_cv_localtime_cache=no
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8741 emacs_cv_localtime_cache=yes
8745 # If we lack tzset, report that localtime does not cache TZ,
8746 # since we can't invalidate the cache if we don't have tzset.
8747 emacs_cv_localtime_cache=no
8749 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
8750 if test $emacs_cv_localtime_cache = yes; then
8751 { test "$extra_verbose" = "yes" && cat << \EOF
8752 Defining LOCALTIME_CACHE
8754 cat >> confdefs.h <<\EOF
8755 #define LOCALTIME_CACHE 1
8761 if test "$HAVE_TIMEVAL" = "yes"; then
8762 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8763 echo "configure:8764: checking whether gettimeofday accepts one or two arguments" >&5
8764 cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8768 #ifdef TIME_WITH_SYS_TIME
8769 #include <sys/time.h>
8772 #ifdef HAVE_SYS_TIME_H
8773 #include <sys/time.h>
8781 struct timeval time;
8782 struct timezone dummy;
8783 gettimeofday (&time, &dummy);
8787 if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8789 echo "$ac_t""two" 1>&6
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8794 echo "$ac_t""one" 1>&6
8795 { test "$extra_verbose" = "yes" && cat << \EOF
8796 Defining GETTIMEOFDAY_ONE_ARGUMENT
8798 cat >> confdefs.h <<\EOF
8799 #define GETTIMEOFDAY_ONE_ARGUMENT 1
8808 echo $ac_n "checking for inline""... $ac_c" 1>&6
8809 echo "configure:8810: checking for inline" >&5
8812 for ac_kw in inline __inline__ __inline; do
8813 cat > conftest.$ac_ext <<EOF
8814 #line 8815 "configure"
8815 #include "confdefs.h"
8821 if { (eval echo configure:8822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8823 ac_cv_c_inline=$ac_kw; break
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8832 echo "$ac_t""$ac_cv_c_inline" 1>&6
8833 case "$ac_cv_c_inline" in
8835 no) { test "$extra_verbose" = "yes" && cat << \EOF
8838 cat >> confdefs.h <<\EOF
8843 *) { test "$extra_verbose" = "yes" && cat << EOF
8844 Defining inline = $ac_cv_c_inline
8846 cat >> confdefs.h <<EOF
8847 #define inline $ac_cv_c_inline
8853 if test "$ac_cv_c_inline" != "no"; then
8854 { test "$extra_verbose" = "yes" && cat << \EOF
8855 Defining HAVE_INLINE
8857 cat >> confdefs.h <<\EOF
8858 #define HAVE_INLINE 1
8862 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
8863 echo " xemacs will be linked with \"inline.o\""
8868 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8869 # for constant arguments. Useless!
8870 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8871 echo "configure:8872: checking for working alloca.h" >&5
8873 cat > conftest.$ac_ext <<EOF
8874 #line 8875 "configure"
8875 #include "confdefs.h"
8878 char *p = alloca(2 * sizeof(int));
8881 if { (eval echo configure:8882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8883 ac_cv_header_alloca_h=yes
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8888 ac_cv_header_alloca_h=no
8892 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8893 if test $ac_cv_header_alloca_h = yes; then
8894 { test "$extra_verbose" = "yes" && cat << \EOF
8895 Defining HAVE_ALLOCA_H
8897 cat >> confdefs.h <<\EOF
8898 #define HAVE_ALLOCA_H 1
8904 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8905 echo "configure:8906: checking for alloca" >&5
8907 cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure"
8909 #include "confdefs.h"
8912 # define alloca __builtin_alloca
8915 # include <alloca.h>
8920 # ifndef alloca /* predefined by HP cc +Olibcalls */
8928 char *p = (char *) alloca(1);
8931 if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8933 ac_cv_func_alloca_works=yes
8935 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8938 ac_cv_func_alloca_works=no
8942 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8943 if test $ac_cv_func_alloca_works = yes; then
8944 { test "$extra_verbose" = "yes" && cat << \EOF
8945 Defining HAVE_ALLOCA
8947 cat >> confdefs.h <<\EOF
8948 #define HAVE_ALLOCA 1
8954 if test $ac_cv_func_alloca_works = no; then
8955 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8956 # that cause trouble. Some versions do not even contain alloca or
8957 # contain a buggy version. If you still want to use their alloca,
8958 # use ar to extract alloca.o from them instead of compiling alloca.c.
8960 { test "$extra_verbose" = "yes" && cat << \EOF
8963 cat >> confdefs.h <<\EOF
8969 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8970 echo "configure:8971: checking whether alloca needs Cray hooks" >&5
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 #if defined(CRAY) && ! defined(CRAY2)
8982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8983 egrep "webecray" >/dev/null 2>&1; then
8993 echo "$ac_t""$ac_cv_os_cray" 1>&6
8994 if test $ac_cv_os_cray = yes; then
8995 for ac_func in _getb67 GETB67 getb67; do
8996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8997 echo "configure:8998: checking for $ac_func" >&5
8999 cat > conftest.$ac_ext <<EOF
9000 #line 9001 "configure"
9001 #include "confdefs.h"
9002 /* System header to define __stub macros and hopefully few prototypes,
9003 which can conflict with char $ac_func(); below. */
9005 /* Override any gcc2 internal prototype to avoid an error. */
9006 /* We use char because int might match the return type of a gcc2
9007 builtin and then its argument prototype would still apply. */
9012 /* The GNU C library defines this for functions which it implements
9013 to always fail with ENOSYS. Some functions are actually named
9014 something starting with __ and the normal name is an alias. */
9015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9023 if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9025 eval "ac_cv_func_$ac_func=yes"
9027 echo "configure: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9030 eval "ac_cv_func_$ac_func=no"
9034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9035 echo "$ac_t""yes" 1>&6
9036 { test "$extra_verbose" = "yes" && cat << EOF
9037 Defining CRAY_STACKSEG_END = $ac_func
9039 cat >> confdefs.h <<EOF
9040 #define CRAY_STACKSEG_END $ac_func
9046 echo "$ac_t""no" 1>&6
9052 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9053 echo "configure:9054: checking stack direction for C alloca" >&5
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9058 find_stack_direction ()
9060 static char *addr = 0;
9065 return find_stack_direction ();
9068 return (&dummy > addr) ? 1 : -1;
9072 exit (find_stack_direction() < 0);
9075 if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9077 ac_cv_c_stack_direction=1
9080 echo "configure: failed program was:" >&5
9081 cat conftest.$ac_ext >&5
9083 ac_cv_c_stack_direction=-1
9087 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9088 { test "$extra_verbose" = "yes" && cat << EOF
9089 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9091 cat >> confdefs.h <<EOF
9092 #define STACK_DIRECTION $ac_cv_c_stack_direction
9098 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9099 echo " xemacs will be linked with \"$ALLOCA\""
9102 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9103 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9104 echo "configure:9105: checking for vfork.h" >&5
9106 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9112 { (eval echo configure:9113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9113 ac_err=`grep -v '^ *+' conftest.out`
9114 if test -z "$ac_err"; then
9116 eval "ac_cv_header_$ac_safe=yes"
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 eval "ac_cv_header_$ac_safe=no"
9125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9126 echo "$ac_t""yes" 1>&6
9127 { test "$extra_verbose" = "yes" && cat << \EOF
9128 Defining HAVE_VFORK_H
9130 cat >> confdefs.h <<\EOF
9131 #define HAVE_VFORK_H 1
9136 echo "$ac_t""no" 1>&6
9139 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9140 echo "configure:9141: checking for working vfork" >&5
9142 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9145 /* Thanks to Paul Eggert for this test. */
9147 #include <sys/types.h>
9148 #include <sys/stat.h>
9149 #ifdef HAVE_UNISTD_H
9155 /* On some sparc systems, changes by the child to local and incoming
9156 argument registers are propagated back to the parent.
9157 The compiler is told about this with #include <vfork.h>,
9158 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9159 Test for this by using a static variable whose address
9160 is put into a register that is clobbered by the vfork. */
9163 sparc_address_test (int arg)
9165 sparc_address_test (arg) int arg;
9183 pid_t parent = getpid ();
9186 sparc_address_test ();
9191 /* Here is another test for sparc vfork register problems.
9192 This test uses lots of local variables, at least
9193 as many local variables as main has allocated so far
9194 including compiler temporaries. 4 locals are enough for
9195 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9196 A buggy compiler should reuse the register of parent
9197 for one of the local variables, since it will think that
9198 parent can't possibly be used any more in this routine.
9199 Assigning to the local variable will thus munge parent
9200 in the parent process. */
9202 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9203 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9204 /* Convince the compiler that p..p7 are live; otherwise, it might
9205 use the same hardware register for all 8 local variables. */
9206 if (p != p1 || p != p2 || p != p3 || p != p4
9207 || p != p5 || p != p6 || p != p7)
9210 /* On some systems (e.g. IRIX 3.3),
9211 vfork doesn't separate parent from child file descriptors.
9212 If the child closes a descriptor before it execs or exits,
9213 this munges the parent's descriptor as well.
9214 Test for this by closing stdout in the child. */
9215 _exit(close(fileno(stdout)) != 0);
9220 while (wait(&status) != child)
9223 /* Was there some problem with vforking? */
9226 /* Did the child fail? (This shouldn't happen.) */
9229 /* Did the vfork/compiler bug occur? */
9230 || parent != getpid()
9232 /* Did the file descriptor bug occur? */
9233 || fstat(fileno(stdout), &st) != 0
9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9240 ac_cv_func_vfork_works=yes
9243 echo "configure: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9246 ac_cv_func_vfork_works=no
9250 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9251 if test $ac_cv_func_vfork_works = no; then
9252 { test "$extra_verbose" = "yes" && cat << \EOF
9253 Defining vfork = fork
9255 cat >> confdefs.h <<\EOF
9263 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9264 echo "configure:9265: checking for working strcoll" >&5
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9272 exit (strcoll ("abc", "def") >= 0 ||
9273 strcoll ("ABC", "DEF") >= 0 ||
9274 strcoll ("123", "456") >= 0);
9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9279 ac_cv_func_strcoll_works=yes
9282 echo "configure: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9285 ac_cv_func_strcoll_works=no
9289 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9290 if test $ac_cv_func_strcoll_works = yes; then
9291 { test "$extra_verbose" = "yes" && cat << \EOF
9292 Defining HAVE_STRCOLL
9294 cat >> confdefs.h <<\EOF
9295 #define HAVE_STRCOLL 1
9302 for ac_func in getpgrp
9304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9305 echo "configure:9306: checking for $ac_func" >&5
9307 cat > conftest.$ac_ext <<EOF
9308 #line 9309 "configure"
9309 #include "confdefs.h"
9310 /* System header to define __stub macros and hopefully few prototypes,
9311 which can conflict with char $ac_func(); below. */
9313 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9320 /* The GNU C library defines this for functions which it implements
9321 to always fail with ENOSYS. Some functions are actually named
9322 something starting with __ and the normal name is an alias. */
9323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9333 eval "ac_cv_func_$ac_func=yes"
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9338 eval "ac_cv_func_$ac_func=no"
9342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9343 echo "$ac_t""yes" 1>&6
9344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9345 { test "$extra_verbose" = "yes" && cat << EOF
9346 Defining $ac_tr_func
9348 cat >> confdefs.h <<EOF
9349 #define $ac_tr_func 1
9354 echo "$ac_t""no" 1>&6
9358 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9359 echo "configure:9360: checking whether getpgrp takes no argument" >&5
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9366 * If this system has a BSD-style getpgrp(),
9367 * which takes a pid argument, exit unsuccessfully.
9369 * Snarfed from Chet Ramey's bash pgrp.c test program
9372 #include <sys/types.h>
9375 int pg1, pg2, pg3, pg4;
9376 int ng, np, s, child;
9387 * If all of these values are the same, it's pretty sure that
9388 * we're on a system that ignores getpgrp's first argument.
9390 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9396 else if (child == 0) {
9399 * If this is Sys V, this will not work; pgrp will be
9400 * set to np because setpgrp just changes a pgrp to be
9401 * the same as the pid.
9404 ng = getpgrp(0); /* Same result for Sys V and BSD */
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9419 ac_cv_func_getpgrp_void=yes
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9425 ac_cv_func_getpgrp_void=no
9430 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9431 if test $ac_cv_func_getpgrp_void = yes; then
9432 { test "$extra_verbose" = "yes" && cat << \EOF
9433 Defining GETPGRP_VOID
9435 cat >> confdefs.h <<\EOF
9436 #define GETPGRP_VOID 1
9443 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9444 echo "configure:9445: checking for working mmap" >&5
9445 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9446 cat > conftest.$ac_ext <<EOF
9447 #line 9448 "configure"
9448 #include "confdefs.h"
9452 #include <sys/mman.h>
9454 #ifndef MAP_VARIABLE
9455 #define MAP_VARIABLE 0
9459 #define MAP_FAILED -1
9462 int main (int argc, char *argv[])
9466 #ifndef MAP_ANONYMOUS
9467 fd = open ("/dev/zero", O_RDWR);
9470 #define MAP_ANONYMOUS 0
9472 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9473 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9474 fd, 0) != (void *) MAP_FAILED)
9476 perror ("conftest: mmap failed");
9480 if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9485 echo "configure: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9492 echo "$ac_t""$have_mmap" 1>&6
9493 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9496 cat >> confdefs.h <<\EOF
9501 for ac_hdr in unistd.h
9503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9505 echo "configure:9506: checking for $ac_hdr" >&5
9507 cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9513 { (eval echo configure:9514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9514 ac_err=`grep -v '^ *+' conftest.out`
9515 if test -z "$ac_err"; then
9517 eval "ac_cv_header_$ac_safe=yes"
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9523 eval "ac_cv_header_$ac_safe=no"
9526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9527 echo "$ac_t""yes" 1>&6
9528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9529 { test "$extra_verbose" = "yes" && cat << EOF
9532 cat >> confdefs.h <<EOF
9533 #define $ac_tr_hdr 1
9538 echo "$ac_t""no" 1>&6
9542 for ac_func in getpagesize
9544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9545 echo "configure:9546: checking for $ac_func" >&5
9547 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure"
9549 #include "confdefs.h"
9550 /* System header to define __stub macros and hopefully few prototypes,
9551 which can conflict with char $ac_func(); below. */
9553 /* Override any gcc2 internal prototype to avoid an error. */
9554 /* We use char because int might match the return type of a gcc2
9555 builtin and then its argument prototype would still apply. */
9560 /* The GNU C library defines this for functions which it implements
9561 to always fail with ENOSYS. Some functions are actually named
9562 something starting with __ and the normal name is an alias. */
9563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9571 if { (eval echo configure:9572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9573 eval "ac_cv_func_$ac_func=yes"
9575 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9578 eval "ac_cv_func_$ac_func=no"
9582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9583 echo "$ac_t""yes" 1>&6
9584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9585 { test "$extra_verbose" = "yes" && cat << EOF
9586 Defining $ac_tr_func
9588 cat >> confdefs.h <<EOF
9589 #define $ac_tr_func 1
9594 echo "$ac_t""no" 1>&6
9598 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9599 echo "configure:9600: checking for working mmap" >&5
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9605 /* Thanks to Mike Haertel and Jim Avera for this test.
9606 Here is a matrix of mmap possibilities:
9607 mmap private not fixed
9608 mmap private fixed at somewhere currently unmapped
9609 mmap private fixed at somewhere already mapped
9610 mmap shared not fixed
9611 mmap shared fixed at somewhere currently unmapped
9612 mmap shared fixed at somewhere already mapped
9613 For private mappings, we should verify that changes cannot be read()
9614 back from the file, nor mmap's back from the file at a different
9615 address. (There have been systems where private was not correctly
9616 implemented like the infamous i386 svr4.0, and systems where the
9617 VM page cache was not coherent with the filesystem buffer cache
9618 like early versions of FreeBSD and possibly contemporary NetBSD.)
9619 For shared mappings, we should conversely verify that changes get
9620 propogated back to all the places they're supposed to be.
9622 Grep wants private fixed already mapped.
9623 The main things grep needs to know about mmap are:
9624 * does it exist and is it safe to write into the mmap'd area
9625 * how to use it (BSD variants) */
9626 #include <sys/types.h>
9628 #include <sys/mman.h>
9630 /* This mess was copied from the GNU getpagesize.h. */
9631 #ifndef HAVE_GETPAGESIZE
9632 # ifdef HAVE_UNISTD_H
9633 # include <unistd.h>
9636 /* Assume that all systems that can run configure have sys/param.h. */
9637 # ifndef HAVE_SYS_PARAM_H
9638 # define HAVE_SYS_PARAM_H 1
9641 # ifdef _SC_PAGESIZE
9642 # define getpagesize() sysconf(_SC_PAGESIZE)
9643 # else /* no _SC_PAGESIZE */
9644 # ifdef HAVE_SYS_PARAM_H
9645 # include <sys/param.h>
9646 # ifdef EXEC_PAGESIZE
9647 # define getpagesize() EXEC_PAGESIZE
9648 # else /* no EXEC_PAGESIZE */
9650 # define getpagesize() NBPG * CLSIZE
9653 # endif /* no CLSIZE */
9654 # else /* no NBPG */
9656 # define getpagesize() NBPC
9657 # else /* no NBPC */
9659 # define getpagesize() PAGESIZE
9660 # endif /* PAGESIZE */
9661 # endif /* no NBPC */
9662 # endif /* no NBPG */
9663 # endif /* no EXEC_PAGESIZE */
9664 # else /* no HAVE_SYS_PARAM_H */
9665 # define getpagesize() 8192 /* punt totally */
9666 # endif /* no HAVE_SYS_PARAM_H */
9667 # endif /* no _SC_PAGESIZE */
9669 #endif /* no HAVE_GETPAGESIZE */
9672 extern "C" { void *malloc(unsigned); }
9680 char *data, *data2, *data3;
9684 pagesize = getpagesize();
9687 * First, make a file with some known garbage in it.
9689 data = malloc(pagesize);
9692 for (i = 0; i < pagesize; ++i)
9693 *(data + i) = rand();
9695 fd = creat("conftestmmap", 0600);
9698 if (write(fd, data, pagesize) != pagesize)
9703 * Next, try to mmap the file at a fixed address which
9704 * already has something else allocated at it. If we can,
9705 * also make sure that we see the same garbage.
9707 fd = open("conftestmmap", O_RDWR);
9710 data2 = malloc(2 * pagesize);
9713 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9714 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
9715 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9717 for (i = 0; i < pagesize; ++i)
9718 if (*(data + i) != *(data2 + i))
9722 * Finally, make sure that changes to the mapped area
9723 * do not percolate back to the file as seen by read().
9724 * (This is a bug on some variants of i386 svr4.0.)
9726 for (i = 0; i < pagesize; ++i)
9727 *(data2 + i) = *(data2 + i) + 1;
9728 data3 = malloc(pagesize);
9731 if (read(fd, data3, pagesize) != pagesize)
9733 for (i = 0; i < pagesize; ++i)
9734 if (*(data + i) != *(data3 + i))
9737 unlink("conftestmmap");
9742 if { (eval echo configure:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9744 ac_cv_func_mmap_fixed_mapped=yes
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9750 ac_cv_func_mmap_fixed_mapped=no
9754 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
9755 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9756 { test "$extra_verbose" = "yes" && cat << \EOF
9759 cat >> confdefs.h <<\EOF
9767 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
9768 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
9769 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9772 cat >> confdefs.h <<\EOF
9778 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9779 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9780 echo "configure:9781: checking for termios.h" >&5
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 #include <termios.h>
9787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9788 { (eval echo configure:9789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9789 ac_err=`grep -v '^ *+' conftest.out`
9790 if test -z "$ac_err"; then
9792 eval "ac_cv_header_$ac_safe=yes"
9795 echo "configure: failed program was:" >&5
9796 cat conftest.$ac_ext >&5
9798 eval "ac_cv_header_$ac_safe=no"
9801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9802 echo "$ac_t""yes" 1>&6
9803 { test "$extra_verbose" = "yes" && cat << \EOF
9804 Defining HAVE_TERMIOS
9806 cat >> confdefs.h <<\EOF
9807 #define HAVE_TERMIOS 1
9811 { test "$extra_verbose" = "yes" && cat << \EOF
9812 Defining SIGNALS_VIA_CHARACTERS
9814 cat >> confdefs.h <<\EOF
9815 #define SIGNALS_VIA_CHARACTERS 1
9819 { test "$extra_verbose" = "yes" && cat << \EOF
9822 cat >> confdefs.h <<\EOF
9828 echo "$ac_t""no" 1>&6
9829 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9830 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9831 echo "configure:9832: checking for termio.h" >&5
9833 cat > conftest.$ac_ext <<EOF
9834 #line 9835 "configure"
9835 #include "confdefs.h"
9838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9839 { (eval echo configure:9840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9840 ac_err=`grep -v '^ *+' conftest.out`
9841 if test -z "$ac_err"; then
9843 eval "ac_cv_header_$ac_safe=yes"
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9849 eval "ac_cv_header_$ac_safe=no"
9852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9853 echo "$ac_t""yes" 1>&6
9854 { test "$extra_verbose" = "yes" && cat << \EOF
9855 Defining HAVE_TERMIO
9857 cat >> confdefs.h <<\EOF
9858 #define HAVE_TERMIO 1
9863 echo "$ac_t""no" 1>&6
9870 echo $ac_n "checking for socket""... $ac_c" 1>&6
9871 echo "configure:9872: checking for socket" >&5
9873 cat > conftest.$ac_ext <<EOF
9874 #line 9875 "configure"
9875 #include "confdefs.h"
9876 /* System header to define __stub macros and hopefully few prototypes,
9877 which can conflict with char socket(); below. */
9879 /* Override any gcc2 internal prototype to avoid an error. */
9880 /* We use char because int might match the return type of a gcc2
9881 builtin and then its argument prototype would still apply. */
9886 /* The GNU C library defines this for functions which it implements
9887 to always fail with ENOSYS. Some functions are actually named
9888 something starting with __ and the normal name is an alias. */
9889 #if defined (__stub_socket) || defined (__stub___socket)
9897 if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9899 eval "ac_cv_func_socket=yes"
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9904 eval "ac_cv_func_socket=no"
9908 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9909 echo "$ac_t""yes" 1>&6
9910 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9911 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9912 echo "configure:9913: checking for netinet/in.h" >&5
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include <netinet/in.h>
9919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9920 { (eval echo configure:9921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9921 ac_err=`grep -v '^ *+' conftest.out`
9922 if test -z "$ac_err"; then
9924 eval "ac_cv_header_$ac_safe=yes"
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9930 eval "ac_cv_header_$ac_safe=no"
9933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9934 echo "$ac_t""yes" 1>&6
9935 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9936 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9937 echo "configure:9938: checking for arpa/inet.h" >&5
9939 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 #include <arpa/inet.h>
9944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9945 { (eval echo configure:9946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9946 ac_err=`grep -v '^ *+' conftest.out`
9947 if test -z "$ac_err"; then
9949 eval "ac_cv_header_$ac_safe=yes"
9952 echo "configure: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9955 eval "ac_cv_header_$ac_safe=no"
9958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9959 echo "$ac_t""yes" 1>&6
9961 { test "$extra_verbose" = "yes" && cat << \EOF
9962 Defining HAVE_SOCKETS
9964 cat >> confdefs.h <<\EOF
9965 #define HAVE_SOCKETS 1
9969 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
9970 echo "configure:9971: checking "for sun_len member in struct sockaddr_un"" >&5
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9975 #include <sys/types.h>
9976 #include <sys/socket.h>
9980 static struct sockaddr_un x; x.sun_len = 1;
9983 if { (eval echo configure:9984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9985 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9986 Defining HAVE_SOCKADDR_SUN_LEN
9988 cat >> confdefs.h <<\EOF
9989 #define HAVE_SOCKADDR_SUN_LEN 1
9994 echo "configure: failed program was:" >&5
9995 cat conftest.$ac_ext >&5
9997 echo "$ac_t""no" 1>&6
10000 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10001 echo "configure:10002: checking "for ip_mreq struct in netinet/in.h"" >&5
10002 cat > conftest.$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10006 #include <sys/types.h>
10007 #include <netinet/in.h>
10010 static struct ip_mreq x;
10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10015 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10016 Defining HAVE_MULTICAST
10018 cat >> confdefs.h <<\EOF
10019 #define HAVE_MULTICAST 1
10024 echo "configure: failed program was:" >&5
10025 cat conftest.$ac_ext >&5
10027 echo "$ac_t""no" 1>&6
10031 echo "$ac_t""no" 1>&6
10035 echo "$ac_t""no" 1>&6
10039 echo "$ac_t""no" 1>&6
10043 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10044 echo "configure:10045: checking for msgget" >&5
10046 cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char msgget(); below. */
10051 #include <assert.h>
10052 /* Override any gcc2 internal prototype to avoid an error. */
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10059 /* The GNU C library defines this for functions which it implements
10060 to always fail with ENOSYS. Some functions are actually named
10061 something starting with __ and the normal name is an alias. */
10062 #if defined (__stub_msgget) || defined (__stub___msgget)
10070 if { (eval echo configure:10071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10072 eval "ac_cv_func_msgget=yes"
10074 echo "configure: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10077 eval "ac_cv_func_msgget=no"
10081 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10082 echo "$ac_t""yes" 1>&6
10083 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10084 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10085 echo "configure:10086: checking for sys/ipc.h" >&5
10087 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 #include <sys/ipc.h>
10092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10093 { (eval echo configure:10094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10094 ac_err=`grep -v '^ *+' conftest.out`
10095 if test -z "$ac_err"; then
10097 eval "ac_cv_header_$ac_safe=yes"
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10103 eval "ac_cv_header_$ac_safe=no"
10106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10107 echo "$ac_t""yes" 1>&6
10108 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10109 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10110 echo "configure:10111: checking for sys/msg.h" >&5
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <sys/msg.h>
10117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10118 { (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10119 ac_err=`grep -v '^ *+' conftest.out`
10120 if test -z "$ac_err"; then
10122 eval "ac_cv_header_$ac_safe=yes"
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10128 eval "ac_cv_header_$ac_safe=no"
10131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10132 echo "$ac_t""yes" 1>&6
10133 { test "$extra_verbose" = "yes" && cat << \EOF
10134 Defining HAVE_SYSVIPC
10136 cat >> confdefs.h <<\EOF
10137 #define HAVE_SYSVIPC 1
10142 echo "$ac_t""no" 1>&6
10146 echo "$ac_t""no" 1>&6
10150 echo "$ac_t""no" 1>&6
10154 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10155 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10156 echo "configure:10157: checking for dirent.h" >&5
10158 cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 #include <dirent.h>
10163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10164 { (eval echo configure:10165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10165 ac_err=`grep -v '^ *+' conftest.out`
10166 if test -z "$ac_err"; then
10168 eval "ac_cv_header_$ac_safe=yes"
10171 echo "configure: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10174 eval "ac_cv_header_$ac_safe=no"
10177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10178 echo "$ac_t""yes" 1>&6
10179 { test "$extra_verbose" = "yes" && cat << \EOF
10180 Defining SYSV_SYSTEM_DIR
10182 cat >> confdefs.h <<\EOF
10183 #define SYSV_SYSTEM_DIR 1
10188 echo "$ac_t""no" 1>&6
10189 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10190 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10191 echo "configure:10192: checking for sys/dir.h" >&5
10193 cat > conftest.$ac_ext <<EOF
10194 #line 10195 "configure"
10195 #include "confdefs.h"
10196 #include <sys/dir.h>
10198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10199 { (eval echo configure:10200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10200 ac_err=`grep -v '^ *+' conftest.out`
10201 if test -z "$ac_err"; then
10203 eval "ac_cv_header_$ac_safe=yes"
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10209 eval "ac_cv_header_$ac_safe=no"
10212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10213 echo "$ac_t""yes" 1>&6
10216 echo "$ac_t""no" 1>&6
10217 { test "$extra_verbose" = "yes" && cat << \EOF
10218 Defining NONSYSTEM_DIR_LIBRARY
10220 cat >> confdefs.h <<\EOF
10221 #define NONSYSTEM_DIR_LIBRARY 1
10230 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10231 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10232 echo "configure:10233: checking for nlist.h" >&5
10234 cat > conftest.$ac_ext <<EOF
10235 #line 10236 "configure"
10236 #include "confdefs.h"
10239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10240 { (eval echo configure:10241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10241 ac_err=`grep -v '^ *+' conftest.out`
10242 if test -z "$ac_err"; then
10244 eval "ac_cv_header_$ac_safe=yes"
10247 echo "configure: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10250 eval "ac_cv_header_$ac_safe=no"
10253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10254 echo "$ac_t""yes" 1>&6
10255 { test "$extra_verbose" = "yes" && cat << \EOF
10256 Defining NLIST_STRUCT
10258 cat >> confdefs.h <<\EOF
10259 #define NLIST_STRUCT 1
10264 echo "$ac_t""no" 1>&6
10269 echo "checking "for sound support"" 1>&6
10270 echo "configure:10271: checking "for sound support"" >&5
10271 case "$with_sound" in
10272 native | both ) with_native_sound=yes;;
10273 nas | no ) with_native_sound=no;;
10275 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10277 if test "$with_native_sound" != "no"; then
10278 if test -n "$native_sound_lib"; then
10279 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10280 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10281 echo "configure:10282: checking for multimedia/audio_device.h" >&5
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10285 "configure"
10285 #include "confdefs.h"
10286 #include <multimedia/audio_device.h>
10288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10289 { (eval echo configure:10290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10290 ac_err=`grep -v '^ *+' conftest.out`
10291 if test -z "$ac_err"; then
10293 eval "ac_cv_header_$ac_safe=yes"
10296 echo "configure: failed program was:" >&5
10297 cat conftest.$ac_ext >&5
10299 eval "ac_cv_header_$ac_safe=no"
10302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10303 echo "$ac_t""yes" 1>&6
10304 sound_found=yes sound_cflags=""
10305 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10306 echo " xemacs will be linked with \"sunplay.o\""
10309 echo "$ac_t""no" 1>&6
10314 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10316 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10317 echo " xemacs will be linked with \"sunplay.o\""
10319 if test -d "/usr/demo/SOUND/include"
10320 then sound_cflags="-I/usr/demo/SOUND/include"
10321 else sound_cflags="-I/usr/demo/SOUND"
10323 if test -z "$native_sound_lib" ; then
10324 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10325 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10326 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10331 if test -z "$sound_found"; then
10332 case "$canonical" in
10334 if test -z "$native_sound_lib"; then
10336 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10337 echo "configure:10338: checking for ALopenport in -laudio" >&5
10338 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10340 xe_check_libs=" -laudio "
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10344 /* Override any gcc2 internal prototype to avoid an error. */
10345 /* We use char because int might match the return type of a gcc2
10346 builtin and then its argument prototype would still apply. */
10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10355 eval "ac_cv_lib_$ac_lib_var=yes"
10357 echo "configure: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10360 eval "ac_cv_lib_$ac_lib_var=no"
10365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10366 echo "$ac_t""yes" 1>&6
10367 native_sound_lib="-laudio"
10369 echo "$ac_t""no" 1>&6
10374 if test -n "$native_sound_lib"; then
10375 sound_found=yes sound_cflags=""
10376 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10377 echo " xemacs will be linked with \"sgiplay.o\""
10381 if test -z "$native_sound_lib"; then
10383 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10384 echo "configure:10385: checking for AOpenAudio in -lAlib" >&5
10385 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10387 xe_check_libs=" -lAlib "
10388 cat > conftest.$ac_ext <<EOF
10389 #line 10390 "configure"
10390 #include "confdefs.h"
10391 /* Override any gcc2 internal prototype to avoid an error. */
10392 /* We use char because int might match the return type of a gcc2
10393 builtin and then its argument prototype would still apply. */
10400 if { (eval echo configure:10401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10402 eval "ac_cv_lib_$ac_lib_var=yes"
10404 echo "configure: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10407 eval "ac_cv_lib_$ac_lib_var=no"
10412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10413 echo "$ac_t""yes" 1>&6
10414 native_sound_lib="-lAlib"
10416 echo "$ac_t""no" 1>&6
10421 if test -n "$native_sound_lib"; then
10423 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10424 echo " xemacs will be linked with \"hpplay.o\""
10426 if test "$GCC" = "yes" # Kludge city
10427 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10428 else sound_cflags="+e -I/usr/audio/examples"
10434 if test -z "$sound_found"; then
10435 for dir in "machine" "sys" "linux"; do
10436 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10437 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10438 echo "configure:10439: checking for ${dir}/soundcard.h" >&5
10440 cat > conftest.$ac_ext <<EOF
10441 #line 10442 "configure"
10442 #include "confdefs.h"
10443 #include <${dir}/soundcard.h>
10445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10446 { (eval echo configure:10447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10447 ac_err=`grep -v '^ *+' conftest.out`
10448 if test -z "$ac_err"; then
10450 eval "ac_cv_header_$ac_safe=yes"
10453 echo "configure: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10456 eval "ac_cv_header_$ac_safe=no"
10459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10460 echo "$ac_t""yes" 1>&6
10462 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10463 echo " xemacs will be linked with \"linuxplay.o\""
10465 { test "$extra_verbose" = "yes" && cat << EOF
10466 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10468 cat >> confdefs.h <<EOF
10469 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10475 echo "$ac_t""no" 1>&6
10481 test "$sound_found" = "yes" && with_native_sound=yes
10484 if test -z "$with_sound"; then
10485 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10490 if test "$with_native_sound" = "yes"; then
10491 { test "$extra_verbose" = "yes" && cat << \EOF
10492 Defining HAVE_NATIVE_SOUND
10494 cat >> confdefs.h <<\EOF
10495 #define HAVE_NATIVE_SOUND 1
10499 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10502 case "$with_sound" in both | nas )
10503 { test "$extra_verbose" = "yes" && cat << \EOF
10504 Defining HAVE_NAS_SOUND
10506 cat >> confdefs.h <<\EOF
10507 #define HAVE_NAS_SOUND 1
10511 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10512 echo " xemacs will be linked with \"nas.o\""
10514 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 #include <audio/Xtutil.h>
10520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10521 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10525 { test "$extra_verbose" = "yes" && cat << \EOF
10526 Defining NAS_NO_ERROR_JUMP
10528 cat >> confdefs.h <<\EOF
10529 #define NAS_NO_ERROR_JUMP 1
10539 test -z "$with_tty" && with_tty=yes
10541 if test "$with_tty" = "yes" ; then
10542 echo "checking for TTY-related features" 1>&6
10543 echo "configure:10544: checking for TTY-related features" >&5
10544 { test "$extra_verbose" = "yes" && cat << \EOF
10547 cat >> confdefs.h <<\EOF
10552 extra_objs="$extra_objs console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o" && if test "$extra_verbose" = "yes"; then
10553 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
10556 if test -z "$with_ncurses"; then
10558 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10559 echo "configure:10560: checking for tgetent in -lncurses" >&5
10560 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10562 xe_check_libs=" -lncurses "
10563 cat > conftest.$ac_ext <<EOF
10564 #line 10565 "configure"
10565 #include "confdefs.h"
10566 /* Override any gcc2 internal prototype to avoid an error. */
10567 /* We use char because int might match the return type of a gcc2
10568 builtin and then its argument prototype would still apply. */
10575 if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10577 eval "ac_cv_lib_$ac_lib_var=yes"
10579 echo "configure: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10582 eval "ac_cv_lib_$ac_lib_var=no"
10587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10588 echo "$ac_t""yes" 1>&6
10591 echo "$ac_t""no" 1>&6
10597 if test "$with_ncurses" = "yes"; then
10598 { test "$extra_verbose" = "yes" && cat << \EOF
10599 Defining HAVE_NCURSES
10601 cat >> confdefs.h <<\EOF
10602 #define HAVE_NCURSES 1
10606 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10607 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10608 echo "configure:10609: checking for ncurses/curses.h" >&5
10610 cat > conftest.$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10613 #include <ncurses/curses.h>
10615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10616 { (eval echo configure:10617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10617 ac_err=`grep -v '^ *+' conftest.out`
10618 if test -z "$ac_err"; then
10620 eval "ac_cv_header_$ac_safe=yes"
10623 echo "configure: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10626 eval "ac_cv_header_$ac_safe=no"
10629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10630 echo "$ac_t""yes" 1>&6
10631 curses_h_path=ncurses/curses.h
10633 echo "$ac_t""no" 1>&6
10636 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10637 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10638 echo "configure:10639: checking for ncurses/term.h" >&5
10640 cat > conftest.$ac_ext <<EOF
10641 #line 10642 "configure"
10642 #include "confdefs.h"
10643 #include <ncurses/term.h>
10645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10646 { (eval echo configure:10647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10647 ac_err=`grep -v '^ *+' conftest.out`
10648 if test -z "$ac_err"; then
10650 eval "ac_cv_header_$ac_safe=yes"
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10656 eval "ac_cv_header_$ac_safe=no"
10659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10660 echo "$ac_t""yes" 1>&6
10661 term_h_path=ncurses/term.h
10663 echo "$ac_t""no" 1>&6
10666 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10667 echo " xemacs will be linked with \"terminfo.o\""
10669 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
10671 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10672 save_c_switch_site="$c_switch_site"
10673 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10674 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10675 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10676 echo "configure:10677: checking for ncurses/curses.h" >&5
10678 cat > conftest.$ac_ext <<EOF
10679 #line 10680 "configure"
10680 #include "confdefs.h"
10681 #include <ncurses/curses.h>
10683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10684 { (eval echo configure:10685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10685 ac_err=`grep -v '^ *+' conftest.out`
10686 if test -z "$ac_err"; then
10688 eval "ac_cv_header_$ac_safe=yes"
10691 echo "configure: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10694 eval "ac_cv_header_$ac_safe=no"
10697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10698 echo "$ac_t""yes" 1>&6
10699 curses_h_path=ncurses/curses.h
10701 echo "$ac_t""no" 1>&6
10704 if test "$ac_cv_header_ncurses_curses_h" = "yes"
10705 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
10706 else c_switch_site="$save_c_switch_site"
10709 else if test "$have_terminfo" = "yes"; then
10710 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10711 echo " xemacs will be linked with \"terminfo.o\""
10713 if test -n "$libs_termcap"; then
10714 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10716 for lib in curses termlib termcap; do
10718 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10719 echo "configure:10720: checking for tgetent in -l$lib" >&5
10720 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10722 xe_check_libs=" -l$lib "
10723 cat > conftest.$ac_ext <<EOF
10724 #line 10725 "configure"
10725 #include "confdefs.h"
10726 /* Override any gcc2 internal prototype to avoid an error. */
10727 /* We use char because int might match the return type of a gcc2
10728 builtin and then its argument prototype would still apply. */
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10737 eval "ac_cv_lib_$ac_lib_var=yes"
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 eval "ac_cv_lib_$ac_lib_var=no"
10747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10748 echo "$ac_t""yes" 1>&6
10749 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
10751 echo "$ac_t""no" 1>&6
10757 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
10758 echo " xemacs will be linked with \"tparam.o\""
10760 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
10761 if test -n "$libs_termcap"; then
10762 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10765 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10766 echo "configure:10767: checking for tgetent in -lcurses" >&5
10767 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10769 xe_check_libs=" -lcurses "
10770 cat > conftest.$ac_ext <<EOF
10771 #line 10772 "configure"
10772 #include "confdefs.h"
10773 /* Override any gcc2 internal prototype to avoid an error. */
10774 /* We use char because int might match the return type of a gcc2
10775 builtin and then its argument prototype would still apply. */
10782 if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10784 eval "ac_cv_lib_$ac_lib_var=yes"
10786 echo "configure: failed program was:" >&5
10787 cat conftest.$ac_ext >&5
10789 eval "ac_cv_lib_$ac_lib_var=no"
10794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10795 echo "$ac_t""yes" 1>&6
10796 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10798 echo "$ac_t""no" 1>&6
10799 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10800 echo "configure:10801: checking for tgetent in -ltermcap" >&5
10801 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10803 xe_check_libs=" -ltermcap "
10804 cat > conftest.$ac_ext <<EOF
10805 #line 10806 "configure"
10806 #include "confdefs.h"
10807 /* Override any gcc2 internal prototype to avoid an error. */
10808 /* We use char because int might match the return type of a gcc2
10809 builtin and then its argument prototype would still apply. */
10816 if { (eval echo configure:10817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10818 eval "ac_cv_lib_$ac_lib_var=yes"
10820 echo "configure: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10823 eval "ac_cv_lib_$ac_lib_var=no"
10828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10829 echo "$ac_t""yes" 1>&6
10830 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
10832 echo "$ac_t""no" 1>&6
10833 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
10834 echo " xemacs will be linked with \"termcap.o\""
10845 { test "$extra_verbose" = "yes" && cat << EOF
10846 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
10848 cat >> confdefs.h <<EOF
10849 #define CURSES_H_PATH "${curses_h_path-curses.h}"
10853 { test "$extra_verbose" = "yes" && cat << EOF
10854 Defining TERM_H_PATH = "${term_h_path-term.h}"
10856 cat >> confdefs.h <<EOF
10857 #define TERM_H_PATH "${term_h_path-term.h}"
10862 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10863 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10864 echo "configure:10865: checking for gpm.h" >&5
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10872 { (eval echo configure:10873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10873 ac_err=`grep -v '^ *+' conftest.out`
10874 if test -z "$ac_err"; then
10876 eval "ac_cv_header_$ac_safe=yes"
10879 echo "configure: failed program was:" >&5
10880 cat conftest.$ac_ext >&5
10882 eval "ac_cv_header_$ac_safe=no"
10885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10886 echo "$ac_t""yes" 1>&6
10889 echo "$ac_t""no" 1>&6
10893 test -z "$with_gpm" && {
10894 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10895 echo "configure:10896: checking for Gpm_Open in -lgpm" >&5
10896 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10898 xe_check_libs=" -lgpm "
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10902 /* Override any gcc2 internal prototype to avoid an error. */
10903 /* We use char because int might match the return type of a gcc2
10904 builtin and then its argument prototype would still apply. */
10911 if { (eval echo configure:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10913 eval "ac_cv_lib_$ac_lib_var=yes"
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10918 eval "ac_cv_lib_$ac_lib_var=no"
10923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10924 echo "$ac_t""yes" 1>&6
10927 echo "$ac_t""no" 1>&6
10932 if test "$with_gpm" = "yes"; then
10933 { test "$extra_verbose" = "yes" && cat << \EOF
10936 cat >> confdefs.h <<\EOF
10941 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
10942 echo " xemacs will be linked with \"gpmevent.o\""
10944 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
10947 else for feature in ncurses gpm; do
10948 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10949 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
10951 eval "with_${feature}=no"
10954 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
10955 echo " xemacs will be linked with \"event-unixoid.o\""
10959 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
10960 != "no no no" && echo "checking for database support" 1>&6
10961 echo "configure:10962: checking for database support" >&5
10963 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
10964 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
10965 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
10966 echo "configure:10967: checking for ndbm.h" >&5
10968 cat > conftest.$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10974 { (eval echo configure:10975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10975 ac_err=`grep -v '^ *+' conftest.out`
10976 if test -z "$ac_err"; then
10978 eval "ac_cv_header_$ac_safe=yes"
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10984 eval "ac_cv_header_$ac_safe=no"
10987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10991 echo "$ac_t""no" 1>&6
10993 test "$with_database_gnudbm" = "yes" -o \
10994 "$with_database_dbm" = "yes" && \
10995 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
10996 with_database_gnudbm=no with_database_dbm=no
11001 if test "$with_database_gnudbm" != "no"; then
11003 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11004 echo "configure:11005: checking for dbm_open in -lgdbm" >&5
11005 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11007 xe_check_libs=" -lgdbm "
11008 cat > conftest.$ac_ext <<EOF
11009 #line 11010 "configure"
11010 #include "confdefs.h"
11011 /* Override any gcc2 internal prototype to avoid an error. */
11012 /* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11022 eval "ac_cv_lib_$ac_lib_var=yes"
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11027 eval "ac_cv_lib_$ac_lib_var=no"
11032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11033 echo "$ac_t""yes" 1>&6
11034 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11036 echo "$ac_t""no" 1>&6
11037 if test "$with_database_gnudbm" = "yes"; then
11038 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11040 with_database_gnudbm=no
11046 if test "$with_database_dbm" != "no"; then
11047 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11048 echo "configure:11049: checking for dbm_open" >&5
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11053 /* System header to define __stub macros and hopefully few prototypes,
11054 which can conflict with char dbm_open(); below. */
11055 #include <assert.h>
11056 /* Override any gcc2 internal prototype to avoid an error. */
11057 /* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11063 /* The GNU C library defines this for functions which it implements
11064 to always fail with ENOSYS. Some functions are actually named
11065 something starting with __ and the normal name is an alias. */
11066 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11074 if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11076 eval "ac_cv_func_dbm_open=yes"
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11081 eval "ac_cv_func_dbm_open=no"
11085 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11086 echo "$ac_t""yes" 1>&6
11087 with_database_dbm=yes libdbm=
11089 echo "$ac_t""no" 1>&6
11092 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11093 echo "configure:11094: checking for dbm_open in -ldbm" >&5
11094 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11096 xe_check_libs=" -ldbm "
11097 cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 /* Override any gcc2 internal prototype to avoid an error. */
11101 /* We use char because int might match the return type of a gcc2
11102 builtin and then its argument prototype would still apply. */
11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11111 eval "ac_cv_lib_$ac_lib_var=yes"
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11116 eval "ac_cv_lib_$ac_lib_var=no"
11121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11122 echo "$ac_t""yes" 1>&6
11123 with_database_dbm=yes libdbm=-ldbm
11125 echo "$ac_t""no" 1>&6
11126 test "$with_database_dbm" = "yes" && \
11127 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11128 with_database_dbm=no
11136 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11137 test "$with_database_gnudbm" = "yes" -o \
11138 "$with_database_dbm" = "yes" && \
11139 { test "$extra_verbose" = "yes" && cat << \EOF
11142 cat >> confdefs.h <<\EOF
11148 if test "$with_database_berkdb" != "no"; then
11149 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11150 echo "configure:11151: checking for Berkeley db.h" >&5
11151 for path in "db/db.h" "db.h"; do
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 #ifdef HAVE_INTTYPES_H
11156 #define __BIT_TYPES_DEFINED__
11157 #include <inttypes.h>
11158 typedef uint8_t u_int8_t;
11159 typedef uint16_t u_int16_t;
11160 typedef uint32_t u_int32_t;
11161 #ifdef WE_DONT_NEED_QUADS
11162 typedef uint64_t u_int64_t;
11171 if { (eval echo configure:11172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11173 db_h_path="$path"; break
11175 echo "configure: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11180 if test -z "$db_h_path"
11181 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11182 else echo "$ac_t""$db_h_path" 1>&6
11185 if test "$with_database_berkdb" != "no"; then
11186 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11187 echo "configure:11188: checking for Berkeley DB version" >&5
11188 cat > conftest.$ac_ext <<EOF
11189 #line 11190 "configure"
11190 #include "confdefs.h"
11191 #include <$db_h_path>
11192 #if DB_VERSION_MAJOR > 1
11197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11198 egrep "yes" >/dev/null 2>&1; then
11200 echo "$ac_t""2" 1>&6; dbfunc=db_open
11203 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11207 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11208 echo "configure:11209: checking for $dbfunc" >&5
11210 cat > conftest.$ac_ext <<EOF
11211 #line 11212 "configure"
11212 #include "confdefs.h"
11213 /* System header to define __stub macros and hopefully few prototypes,
11214 which can conflict with char $dbfunc(); below. */
11215 #include <assert.h>
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 /* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */
11223 /* The GNU C library defines this for functions which it implements
11224 to always fail with ENOSYS. Some functions are actually named
11225 something starting with __ and the normal name is an alias. */
11226 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11234 if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11236 eval "ac_cv_func_$dbfunc=yes"
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11241 eval "ac_cv_func_$dbfunc=no"
11245 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11246 echo "$ac_t""yes" 1>&6
11247 with_database_berkdb=yes need_libdb=no
11249 echo "$ac_t""no" 1>&6
11252 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11253 echo "configure:11254: checking for $dbfunc in -ldb" >&5
11254 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11256 xe_check_libs=" -ldb "
11257 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 /* Override any gcc2 internal prototype to avoid an error. */
11261 /* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11269 if { (eval echo configure:11270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11271 eval "ac_cv_lib_$ac_lib_var=yes"
11273 echo "configure: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11276 eval "ac_cv_lib_$ac_lib_var=no"
11281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11282 echo "$ac_t""yes" 1>&6
11283 with_database_berkdb=yes need_libdb=yes
11285 echo "$ac_t""no" 1>&6
11293 if test "$with_database_berkdb" = "yes"; then
11294 { test "$extra_verbose" = "yes" && cat << EOF
11295 Defining DB_H_PATH = "$db_h_path"
11297 cat >> confdefs.h <<EOF
11298 #define DB_H_PATH "$db_h_path"
11302 { test "$extra_verbose" = "yes" && cat << \EOF
11303 Defining HAVE_BERKELEY_DB
11305 cat >> confdefs.h <<\EOF
11306 #define HAVE_BERKELEY_DB 1
11310 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11311 else with_database_berkdb=no
11315 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11316 != "no no no"; then
11317 { test "$extra_verbose" = "yes" && cat << \EOF
11318 Defining HAVE_DATABASE
11320 cat >> confdefs.h <<\EOF
11321 #define HAVE_DATABASE 1
11325 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11326 echo " xemacs will be linked with \"database.o\""
11330 if test "$with_socks" = "yes"; then
11332 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11333 echo "configure:11334: checking for SOCKSinit in -lsocks" >&5
11334 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11336 xe_check_libs=" -lsocks "
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11340 /* Override any gcc2 internal prototype to avoid an error. */
11341 /* We use char because int might match the return type of a gcc2
11342 builtin and then its argument prototype would still apply. */
11349 if { (eval echo configure:11350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11351 eval "ac_cv_lib_$ac_lib_var=yes"
11353 echo "configure: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11356 eval "ac_cv_lib_$ac_lib_var=no"
11361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11362 echo "$ac_t""yes" 1>&6
11363 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11364 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11365 { test "$extra_verbose" = "yes" && cat << EOF
11366 Defining $ac_tr_lib
11368 cat >> confdefs.h <<EOF
11369 #define $ac_tr_lib 1
11373 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11376 echo "$ac_t""no" 1>&6
11380 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11381 Defining HAVE_SOCKS
11383 cat >> confdefs.h <<\EOF
11384 #define HAVE_SOCKS 1
11390 if test "$usage_tracking" = "yes"; then
11391 { test "$extra_verbose" = "yes" && cat << \EOF
11392 Defining USAGE_TRACKING
11394 cat >> confdefs.h <<\EOF
11395 #define USAGE_TRACKING 1
11399 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11402 for ac_hdr in dlfcn.h
11404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11406 echo "configure:11407: checking for $ac_hdr" >&5
11408 cat > conftest.$ac_ext <<EOF
11409 #line 11410 "configure"
11410 #include "confdefs.h"
11413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11414 { (eval echo configure:11415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11415 ac_err=`grep -v '^ *+' conftest.out`
11416 if test -z "$ac_err"; then
11418 eval "ac_cv_header_$ac_safe=yes"
11421 echo "configure: failed program was:" >&5
11422 cat conftest.$ac_ext >&5
11424 eval "ac_cv_header_$ac_safe=no"
11427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11428 echo "$ac_t""yes" 1>&6
11429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11430 { test "$extra_verbose" = "yes" && cat << EOF
11431 Defining $ac_tr_hdr
11433 cat >> confdefs.h <<EOF
11434 #define $ac_tr_hdr 1
11438 { test "$extra_verbose" = "yes" && cat << \EOF
11439 Defining HAVE_DLFCN_H
11441 cat >> confdefs.h <<\EOF
11442 #define HAVE_DLFCN_H 1
11447 echo "$ac_t""no" 1>&6
11451 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11452 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11453 echo "configure:11454: checking for dlopen in -ldl" >&5
11454 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11456 xe_check_libs=" -ldl "
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 /* Override any gcc2 internal prototype to avoid an error. */
11461 /* We use char because int might match the return type of a gcc2
11462 builtin and then its argument prototype would still apply. */
11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11471 eval "ac_cv_lib_$ac_lib_var=yes"
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11476 eval "ac_cv_lib_$ac_lib_var=no"
11481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11482 echo "$ac_t""yes" 1>&6
11483 { test "$extra_verbose" = "yes" && cat << \EOF
11484 Defining HAVE_DLOPEN
11486 cat >> confdefs.h <<\EOF
11487 #define HAVE_DLOPEN 1
11490 DLL_LIB=dl; with_shlib=yes
11492 echo "$ac_t""no" 1>&6
11496 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11497 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11498 echo "configure:11499: checking for _dlopen in -lc" >&5
11499 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11501 xe_check_libs=" -lc "
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 /* Override any gcc2 internal prototype to avoid an error. */
11506 /* We use char because int might match the return type of a gcc2
11507 builtin and then its argument prototype would still apply. */
11514 if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11516 eval "ac_cv_lib_$ac_lib_var=yes"
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11521 eval "ac_cv_lib_$ac_lib_var=no"
11526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11527 echo "$ac_t""yes" 1>&6
11528 { test "$extra_verbose" = "yes" && cat << \EOF
11529 Defining HAVE_DLOPEN
11531 cat >> confdefs.h <<\EOF
11532 #define HAVE_DLOPEN 1
11535 DLL_LIB=; with_shlib=yes
11537 echo "$ac_t""no" 1>&6
11541 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11542 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11543 echo "configure:11544: checking for dlopen in -lc" >&5
11544 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11546 xe_check_libs=" -lc "
11547 cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11550 /* Override any gcc2 internal prototype to avoid an error. */
11551 /* We use char because int might match the return type of a gcc2
11552 builtin and then its argument prototype would still apply. */
11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11561 eval "ac_cv_lib_$ac_lib_var=yes"
11563 echo "configure: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11566 eval "ac_cv_lib_$ac_lib_var=no"
11571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11572 echo "$ac_t""yes" 1>&6
11573 { test "$extra_verbose" = "yes" && cat << \EOF
11574 Defining HAVE_DLOPEN
11576 cat >> confdefs.h <<\EOF
11577 #define HAVE_DLOPEN 1
11580 DLL_LIB=; with_shlib=yes
11582 echo "$ac_t""no" 1>&6
11586 test -z "$with_shlib" && {
11587 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11588 echo "configure:11589: checking for shl_load in -ldld" >&5
11589 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11591 xe_check_libs=" -ldld "
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11594 "configure"
11594 #include "confdefs.h"
11595 /* Override any gcc2 internal prototype to avoid an error. */
11596 /* We use char because int might match the return type of a gcc2
11597 builtin and then its argument prototype would still apply. */
11604 if { (eval echo configure:11605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11606 eval "ac_cv_lib_$ac_lib_var=yes"
11608 echo "configure: failed program was:" >&5
11609 cat conftest.$ac_ext >&5
11611 eval "ac_cv_lib_$ac_lib_var=no"
11616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11617 echo "$ac_t""yes" 1>&6
11618 { test "$extra_verbose" = "yes" && cat << \EOF
11619 Defining HAVE_SHL_LOAD
11621 cat >> confdefs.h <<\EOF
11622 #define HAVE_SHL_LOAD 1
11625 DLL_LIB=dld; with_shlib=yes
11627 echo "$ac_t""no" 1>&6
11631 test -z "$with_shlib" && {
11632 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11633 echo "configure:11634: checking for dld_init in -ldld" >&5
11634 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11636 xe_check_libs=" -ldld "
11637 cat > conftest.$ac_ext <<EOF
11638 #line 11639 "configure"
11639 #include "confdefs.h"
11640 /* Override any gcc2 internal prototype to avoid an error. */
11641 /* We use char because int might match the return type of a gcc2
11642 builtin and then its argument prototype would still apply. */
11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11651 eval "ac_cv_lib_$ac_lib_var=yes"
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11656 eval "ac_cv_lib_$ac_lib_var=no"
11661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11662 echo "$ac_t""yes" 1>&6
11663 { test "$extra_verbose" = "yes" && cat << \EOF
11664 Defining HAVE_DLD_INIT
11666 cat >> confdefs.h <<\EOF
11667 #define HAVE_DLD_INIT 1
11670 DLL_LIB=dld; with_shlib=yes
11672 echo "$ac_t""no" 1>&6
11676 if test "$with_shlib" = "yes"; then
11683 ld_dynamic_link_flags=
11685 xealias=$internal_configuration
11687 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
11688 echo "configure:11689: checking how to build dynamic libraries for ${xehost}" >&5
11689 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
11692 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11695 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11696 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11697 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11699 case "$xehost_os" in
11701 # AIX sometimes has problems with the GCC collect2 program. For some
11702 # reason, if we set the COLLECT_NAMES environment variable, the problems
11703 # vanish in a puff of smoke.
11704 if test "${COLLECT_NAMES+set}" != set; then
11706 export COLLECT_NAMES
11711 # Now see if the compiler is really GCC.
11712 if test "$GCC" = "yes"; then
11715 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
11716 echo "configure:11717: checking checking whether we are using GNU C" >&5
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11727 egrep "yes" >/dev/null 2>&1; then
11736 echo "$ac_t""${XEGCC}" 1>&6
11739 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
11740 echo "configure:11741: checking how to produce PIC code" >&5
11743 can_build_shared=yes
11744 if test "$XEGCC" = yes; then
11747 case "$xehost_os" in
11748 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
11749 # PIC is the default for these OSes.
11753 # We can build DLLs from non-PIC.
11756 # FIXME: we need at least 68020 code to build shared libraries, but
11757 # adding the `-m68020' flag to GCC prevents building anything better,
11759 dll_cflags='-m68020 -resident32 -malways-restore-a4'
11766 # PORTME Check for PIC flags for the system compiler.
11767 case "$xehost_os" in
11769 # Is there a better link_static_flag that works with the bundled CC?
11776 # PIC (with -KPIC) is the default.
11780 # We can build DLLs from non-PIC.
11784 # All OSF/1 code is PIC.
11789 dll_cflags='-belf -Kpic'
11823 can_build_shared=no
11828 if test -n "$dll_cflags"; then
11829 echo "$ac_t""${dll_cflags}" 1>&6
11831 # Check to make sure the dll_cflags actually works.
11832 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
11833 echo "configure:11834: checking if PIC flag ${dll_cflags} really works" >&5
11834 save_CFLAGS="$CFLAGS"
11835 CFLAGS="$CFLAGS $dll_cflags -DPIC"
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11844 if { (eval echo configure:11845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11847 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
11848 # reports no error. So, we need to grep stderr for (Bundled).
11849 if grep '(Bundled)' config.log >/dev/null; then
11850 echo "$ac_t""no" 1>&6
11851 can_build_shared=no
11854 echo "$ac_t""yes" 1>&6
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11860 echo "$ac_t""no" 1>&6
11861 can_build_shared=no
11865 CFLAGS="$save_CFLAGS"
11867 echo "$ac_t""none" 1>&6
11870 if test "$can_build_shared" = "yes"; then
11874 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
11875 echo "configure:11876: checking if C compiler can produce shared libraries" >&5
11876 if test "$XEGCC" = yes; then
11879 else # Not using GCC
11880 case "$xehost_os" in
11882 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
11883 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
11886 freebsd2* | netbsd* | openbsd*)
11888 xcldf="${wl}-Bshareable"
11897 xcldf="${wl}-b ${wl}+s"
11900 irix5* | irix6* | osf3* | osf4*)
11901 xcldf="${wl}-shared"
11905 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
11911 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
11912 xldf="-assert pure-text -Bstatic"
11915 fi # End if if we are using gcc
11917 if test -n "$xcldf"; then
11918 save_LDFLAGS=$LDFLAGS
11920 save_xe_libs=$xe_libs
11921 LDFLAGS="$xcldf $LDFLAGS"
11924 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11933 if { (eval echo configure:11934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11937 echo "configure: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11943 LDFLAGS=$save_LDFLAGS
11945 xe_libs=$save_xe_libs
11946 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
11950 echo "$ac_t""${cc_produces_so}" 1>&6
11953 if test -z "$LTLD"; then
11955 if test "$XEGCC" = yes; then
11956 # Check if gcc -print-prog-name=ld gives a path.
11957 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
11958 echo "configure:11959: checking for ld used by GCC" >&5
11959 ac_prog=`($CC -print-prog-name=ld) 2>&5`
11961 # Accept absolute paths.
11963 if test -z "$LTLD"; then
11965 *gcc-lib*) LTLD="$CC"
11973 # If it fails, then pretend we aren't using GCC.
11977 # If it is relative, then search for the first ld in PATH.
11978 with_gnu_ld=unknown
11982 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
11983 echo "configure:11984: checking for GNU ld" >&5
11986 if test -z "$LTLD"; then
11987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11988 for ac_dir in $PATH; do
11989 test -z "$ac_dir" && ac_dir=.
11990 if test -f "$ac_dir/$ac_prog"; then
11991 LTLD="$ac_dir/$ac_prog"
11992 # Check to see if the program is GNU ld. I'd rather use --version,
11993 # but apparently some GNU ld's only accept -v.
11994 # Break only if it was the GNU/non-GNU ld that we prefer.
11995 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12005 if test -n "$LTLD"; then
12006 echo "$ac_t""${LTLD}" 1>&6
12008 echo "$ac_t""no" 1>&6
12011 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12012 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12017 ld_dynamic_link_flags=
12019 # Check to see if it really is or isn't GNU ld.
12020 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12021 echo "configure:12022: checking if the linker is GNU ld" >&5
12022 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12023 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12028 echo "$ac_t""${xe_gnu_ld}" 1>&6
12030 case "$xehost_os" in
12031 amigaos* | sunos4*)
12032 # On these operating systems, we should treat GNU ld like the system ld.
12033 gnu_ld_acts_native=yes
12036 gnu_ld_acts_native=no
12040 if test "$cc_produces_so" = "yes"; then
12043 can_build_shared=yes
12045 # OK - only NOW do we futz about with ld.
12046 # See if the linker supports building shared libraries.
12047 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12048 echo "configure:12049: checking whether the linker supports shared libraries" >&5
12050 dll_ldflags=$LDFLAGS
12052 can_build_shared=yes
12053 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12054 # See if GNU ld supports shared libraries.
12055 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12057 dll_ldflags="-shared"
12063 # PORTME fill in a description of your system's linker (not GNU ld)
12064 case "$xehost_os" in
12074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12075 # support. Future versions do this automatically, but an explicit c++rt0.o
12076 # doesn't break anything, and helps significantly (at the cost of a little
12081 dll_post="/usr/lib/c++rt0.o"
12084 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12087 dll_ldflags="-Bshareable"
12090 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12092 dll_ldflags="-shared"
12106 # Tested with NetBSD 1.2 ld
12121 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12122 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12125 *gcc*) dll_ldflags="-shared"
12128 *) dll_ldflags="-G"
12134 if test "$XEGCC" = yes; then
12154 can_build_shared=no
12158 echo "$ac_t""${ld_shlibs}" 1>&6
12159 if test "$ld_shlibs" = "no"; then
12160 can_build_shared=no
12162 fi # End of if cc_produces_so = no
12165 if test "$xe_gnu_ld" = yes; then
12166 if test "$ld_shlibs" = yes; then
12167 ld_dynamic_link_flags="${wl}-export-dynamic"
12171 if test -z "$ld_dynamic_link_flags"; then
12172 case "$xehost_os" in
12174 ld_dynamic_link_flags=
12178 ld_dynamic_link_flags=
12182 ld_dynamic_link_flags=
12186 ld_dynamic_link_flags=
12190 ld_dynamic_link_flags=
12194 ld_dynamic_link_flags="${wl}-E"
12198 ld_dynamic_link_flags=
12202 ld_dynamic_link_flags=
12206 ld_dynamic_link_flags=
12210 ld_dynamic_link_flags=
12213 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12214 ld_dynamic_link_flags="${wl}-Bexport"
12218 ld_dynamic_link_flags=
12222 ld_dynamic_link_flags=
12226 ld_dynamic_link_flags=
12230 fi # End of if -z ld_dynamic_link_flags
12231 fi # End of if test "$can_build_shared" = "yes"
12240 if test "$can_build_shared" = "yes"; then
12241 { test "$extra_verbose" = "yes" && cat << \EOF
12242 Defining HAVE_SHLIB
12244 cat >> confdefs.h <<\EOF
12245 #define HAVE_SHLIB 1
12249 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12250 echo " xemacs will be linked with \"sysdll.o\""
12252 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12253 echo " xemacs will be linked with \"emodules.o\""
12255 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12256 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12257 for ac_func in dlerror _dlerror
12259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12260 echo "configure:12261: checking for $ac_func" >&5
12262 cat > conftest.$ac_ext <<EOF
12263 #line 12264 "configure"
12264 #include "confdefs.h"
12265 /* System header to define __stub macros and hopefully few prototypes,
12266 which can conflict with char $ac_func(); below. */
12267 #include <assert.h>
12268 /* Override any gcc2 internal prototype to avoid an error. */
12269 /* We use char because int might match the return type of a gcc2
12270 builtin and then its argument prototype would still apply. */
12275 /* The GNU C library defines this for functions which it implements
12276 to always fail with ENOSYS. Some functions are actually named
12277 something starting with __ and the normal name is an alias. */
12278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12286 if { (eval echo configure:12287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12288 eval "ac_cv_func_$ac_func=yes"
12290 echo "configure: failed program was:" >&5
12291 cat conftest.$ac_ext >&5
12293 eval "ac_cv_func_$ac_func=no"
12297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12298 echo "$ac_t""yes" 1>&6
12299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12300 { test "$extra_verbose" = "yes" && cat << EOF
12301 Defining $ac_tr_func
12303 cat >> confdefs.h <<EOF
12304 #define $ac_tr_func 1
12309 echo "$ac_t""no" 1>&6
12314 echo "configure: warning: disabling shared library support" 1>&2
12319 cat > conftest.$ac_ext <<EOF
12320 #line 12321 "configure"
12321 #include "confdefs.h"
12322 int main(int c,char *v[]){return 0;}
12324 if { (eval echo configure:12325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12329 echo "configure: failed program was:" >&5
12330 cat conftest.$ac_ext >&5
12334 echo "*** PANIC *** The C compiler can no longer build working executables."
12335 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12336 echo "*** PANIC *** The most likely reason for this problem is that configure"
12337 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12338 echo "*** PANIC *** found at run time."
12339 echo "*** PANIC ***"
12340 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12341 echo "*** PANIC *** On other systems, try telling configure where to find the"
12342 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12343 echo "*** PANIC ***"
12344 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12345 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12346 echo "*** PANIC *** on your system. Don't do that."
12352 { test "$extra_verbose" = "yes" && cat << \EOF
12353 Defining HAVE_UNIX_PROCESSES
12355 cat >> confdefs.h <<\EOF
12356 #define HAVE_UNIX_PROCESSES 1
12360 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12361 echo " xemacs will be linked with \"process-unix.o\""
12367 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12372 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12377 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12378 c_switch_general="$T"
12382 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12383 c_switch_window_system="$T"
12387 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12392 for W in $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12393 ld_switch_general="$T"
12397 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12398 ld_switch_window_system="$T"
12402 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12407 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12408 ld_libs_general="$T"
12412 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12413 ld_libs_window_system="$T"
12417 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12422 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12423 internal_makefile_list="Makefile.in"
12424 SUBDIR_MAKEFILES=''
12425 test -d lock || mkdir lock
12426 for dir in $MAKE_SUBDIR; do
12427 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12428 test -d "$d" || mkdir "$d"; cd "$d"
12430 * ) test -d "$dir" || mkdir "$dir" ;;
12434 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12435 SUBDIR_MAKEFILES="$T"
12439 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12440 internal_makefile_list="$T"
12447 for dir in src/s src/m; do
12448 if test ! -d "$dir" ; then
12449 echo Making symbolic link to "$srcdir/$dir"
12450 ${LN_S} "$srcdir/$dir" "$dir"
12454 if test "$extra_verbose" = "yes"; then
12456 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
12460 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12461 echo "creating src/gdbinit"; echo ""
12462 echo "source $srcdir/src/gdbinit" > src/gdbinit
12465 if test "$__SUNPRO_C" = "yes"; then
12466 echo "creating .sbinit"; echo ""
12467 ( echo "# For use with Sun WorkShop's Source browser."
12468 echo "# See sbquery(1) and sbinit(4) for more information"
12469 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12493 *\$* ) eval "PREFIX=$PREFIX" ;;
12500 EXEC_PREFIX=$exec_prefix
12502 case "$EXEC_PREFIX" in
12503 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12514 *\$* ) eval "INFODIR=$INFODIR" ;;
12524 case "$INFOPATH" in
12525 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12533 PACKAGE_PATH=$package_path
12535 case "$PACKAGE_PATH" in
12536 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12547 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12555 MODULEDIR=$moduledir
12557 case "$MODULEDIR" in
12558 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12566 SITELISPDIR=$sitelispdir
12568 case "$SITELISPDIR" in
12569 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12577 SITEMODULEDIR=$sitemoduledir
12579 case "$SITEMODULEDIR" in
12580 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12591 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12602 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12610 ARCHLIBDIR=$archlibdir
12612 case "$ARCHLIBDIR" in
12613 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12637 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12645 : ${XEMACS_CC:=$CC}
12649 if test "$with_site_lisp" = "no"; then
12650 { test "$extra_verbose" = "yes" && cat << \EOF
12651 Defining INHIBIT_SITE_LISP
12653 cat >> confdefs.h <<\EOF
12654 #define INHIBIT_SITE_LISP 1
12659 if test "$with_site_modules" = "no"; then
12660 { test "$extra_verbose" = "yes" && cat << \EOF
12661 Defining INHIBIT_SITE_MODULES
12663 cat >> confdefs.h <<\EOF
12664 #define INHIBIT_SITE_MODULES 1
12672 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12673 ac_configure_args="$T"
12675 { test "$extra_verbose" = "yes" && cat << EOF
12676 Defining EMACS_CONFIGURATION = "$canonical"
12678 cat >> confdefs.h <<EOF
12679 #define EMACS_CONFIGURATION "$canonical"
12683 { test "$extra_verbose" = "yes" && cat << EOF
12684 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12686 cat >> confdefs.h <<EOF
12687 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
12691 { test "$extra_verbose" = "yes" && cat << EOF
12692 Defining config_machfile = "$machfile"
12694 cat >> confdefs.h <<EOF
12695 #define config_machfile "$machfile"
12699 { test "$extra_verbose" = "yes" && cat << EOF
12700 Defining config_opsysfile = "$opsysfile"
12702 cat >> confdefs.h <<EOF
12703 #define config_opsysfile "$opsysfile"
12710 { test "$extra_verbose" = "yes" && cat << EOF
12711 Defining LD_SWITCH_X_SITE = $null_string
12713 cat >> confdefs.h <<EOF
12714 #define LD_SWITCH_X_SITE $null_string
12718 { test "$extra_verbose" = "yes" && cat << EOF
12719 Defining LD_SWITCH_X_SITE_AUX = $null_string
12721 cat >> confdefs.h <<EOF
12722 #define LD_SWITCH_X_SITE_AUX $null_string
12726 { test "$extra_verbose" = "yes" && cat << EOF
12727 Defining C_SWITCH_X_SITE = $null_string
12729 cat >> confdefs.h <<EOF
12730 #define C_SWITCH_X_SITE $null_string
12734 { test "$extra_verbose" = "yes" && cat << EOF
12735 Defining LD_SWITCH_SITE = $null_string
12737 cat >> confdefs.h <<EOF
12738 #define LD_SWITCH_SITE $null_string
12742 { test "$extra_verbose" = "yes" && cat << EOF
12743 Defining C_SWITCH_SITE = $null_string
12745 cat >> confdefs.h <<EOF
12746 #define C_SWITCH_SITE $null_string
12752 test -n "$puresize" && { test "$extra_verbose" = "yes" && cat << EOF
12753 Defining RAW_PURESIZE = $puresize
12755 cat >> confdefs.h <<EOF
12756 #define RAW_PURESIZE $puresize
12761 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12762 Defining GNU_MALLOC
12764 cat >> confdefs.h <<\EOF
12765 #define GNU_MALLOC 1
12769 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12770 Defining USE_SYSTEM_MALLOC
12772 cat >> confdefs.h <<\EOF
12773 #define USE_SYSTEM_MALLOC 1
12777 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12778 Defining USE_DEBUG_MALLOC
12780 cat >> confdefs.h <<\EOF
12781 #define USE_DEBUG_MALLOC 1
12785 { test "$extra_verbose" = "yes" && cat << \EOF
12786 Defining USE_SYSTEM_MALLOC
12788 cat >> confdefs.h <<\EOF
12789 #define USE_SYSTEM_MALLOC 1
12794 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12797 cat >> confdefs.h <<\EOF
12802 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12805 cat >> confdefs.h <<\EOF
12810 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12811 Defining EXTERNAL_WIDGET
12813 cat >> confdefs.h <<\EOF
12814 #define EXTERNAL_WIDGET 1
12818 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12819 Defining NO_DOC_FILE
12821 cat >> confdefs.h <<\EOF
12822 #define NO_DOC_FILE 1
12826 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12829 cat >> confdefs.h <<\EOF
12834 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12837 cat >> confdefs.h <<\EOF
12842 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12843 Defining MAIL_USE_POP
12845 cat >> confdefs.h <<\EOF
12846 #define MAIL_USE_POP 1
12850 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12853 cat >> confdefs.h <<\EOF
12858 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12861 cat >> confdefs.h <<\EOF
12866 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12867 Defining USE_UNION_TYPE
12869 cat >> confdefs.h <<\EOF
12870 #define USE_UNION_TYPE 1
12877 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
12879 echo "uname -a: `uname -a`"
12882 echo "$0 $quoted_arguments"
12886 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}"
12891 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
12893 Where should the build process find the source code? $srcdir
12894 What installation prefix should install use? $prefix
12895 What operating system and machine description files should XEmacs use?
12896 \`$opsysfile' and \`$machfile'
12897 What compiler should XEmacs be built with? $CC $CFLAGS
12898 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12899 Should XEmacs use the relocating allocator for buffers? $rel_alloc
12900 What window system should XEmacs use? ${window_system}"
12901 if test "$with_x11" = "yes"; then
12902 echo " Where do we find X Windows header files? $x_includes"
12903 echo " Where do we find X Windows libraries? $x_libraries"
12905 if test -n "$site_includes"; then
12906 echo " Additional header files: $site_includes"
12908 if test -n "$site_libraries"; then
12909 echo " Additional libraries: $site_libraries"
12911 if test -n "$site_prefixes"; then
12912 echo " Additional prefixes: $site_prefixes"
12914 if test -n "$runpath"; then
12915 echo " Runtime library search path: $runpath"
12917 test "$with_dnet" = yes && echo " Compiling in support for DNET."
12918 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
12919 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
12920 if test "$with_xmu" != yes -a "$with_x11" = yes; then
12921 echo " No Xmu; substituting equivalent routines."
12924 if test "$with_xpm" = yes; then
12925 echo " Compiling in support for XPM images."
12926 elif test "$with_x11" = yes; then
12927 echo " --------------------------------------------------------------------"
12928 echo " WARNING: Compiling without XPM support."
12929 if test "$xpm_problem" != ""; then
12930 echo " Reason: $xpm_problem"
12932 echo " WARNING: You should strongly consider installing XPM."
12933 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
12934 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
12935 echo " --------------------------------------------------------------------"
12937 if test "$with_png" = yes; then
12938 echo " Compiling in support for PNG image handling."
12939 elif test "$window_system" != "none"; then
12940 echo " --------------------------------------------------------------------"
12941 echo " WARNING: Compiling without PNG image support."
12942 if test "$png_problem" != ""; then
12943 echo " Reason: $png_problem"
12945 echo " WARNING: You should strongly consider installing the PNG libraries."
12946 echo " WARNING: Otherwise certain images and glyphs may not display."
12947 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
12948 echo " --------------------------------------------------------------------"
12950 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
12951 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
12952 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
12953 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
12954 case "$with_sound" in
12955 nas ) echo " Compiling in network sound (NAS) support." ;;
12956 native ) echo " Compiling in native sound support." ;;
12957 both ) echo " Compiling in both network and native sound support." ;;
12959 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
12961 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
12962 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
12963 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
12965 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
12966 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
12967 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
12969 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
12970 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
12972 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
12973 test "$with_file_coding" = yes && echo " Compiling in File coding support."
12974 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
12975 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
12976 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
12977 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
12978 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
12979 if test "$with_wnn" = yes; then
12980 echo " Compiling in support for the WNN input method on Mule."
12981 test "$with_wnn6" = yes && echo " Using WNN version 6."
12983 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
12985 test "$with_cde" = yes && echo " Compiling in support for CDE."
12986 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
12987 test "$with_offix" = yes && echo " Compiling in support for OffiX."
12988 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
12989 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
12990 test "$with_session" != no && echo " Compiling in support for proper session-management."
12991 case "$with_menubars" in
12992 lucid ) echo " Using Lucid menubars." ;;
12993 motif ) echo " Using Motif menubars."
12994 echo " *WARNING* The Motif menubar implementation is currently buggy."
12995 echo " We recommend using the Lucid menubar instead."
12996 echo " Re-run configure with --with-menubars='lucid'." ;;
12998 case "$with_scrollbars" in
12999 lucid ) echo " Using Lucid scrollbars." ;;
13000 motif ) echo " Using Motif scrollbars." ;;
13001 athena ) echo " Using Athena scrollbars." ;;
13002 athena3d ) echo " Using Athena-3d scrollbars." ;;
13004 case "$with_dialogs" in
13005 motif ) echo " Using Motif dialog boxes." ;;
13006 athena ) echo " Using Athena dialog boxes." ;;
13007 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13009 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
13010 test "$with_clash_detection" = yes && \
13011 echo " Clash detection will use \"$lockdir\" for locking files."
13012 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13013 test "$with_pop" = yes && echo " Using POP for mail access."
13014 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13015 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13016 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13017 test "$use_minimal_tagbits" = yes && echo " Using Lisp_Objects with minimal tagbits."
13018 test "$use_indexed_lrecord_implementation" = yes && echo " Using indexed lrecord implementation."
13019 test "$debug" = yes && echo " Compiling in extra code for debugging."
13020 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
13021 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13022 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13023 != "no no no no no"; then
13024 echo " WARNING: ---------------------------------------------------------"
13025 echo " WARNING: Compiling in support for runtime error checking."
13026 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13027 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13028 echo " WARNING: ---------------------------------------------------------"
13031 ) | tee -a Installation
13034 echo '(setq Installation-string "' > Installation.el
13035 sed 's/"/\\"/g' Installation >> Installation.el
13036 echo '")' >> Installation.el
13039 # Remove any trailing slashes in these variables.
13040 test -n "$prefix" &&
13041 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13042 test -n "$exec_prefix" &&
13043 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13046 for file in $internal_makefile_list; do
13047 test "$file" = src/Makefile.in && \
13048 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13049 ac_output_files="${ac_output_files+$ac_output_files }$file"
13051 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13052 if test "$with_shlib" = "yes"; then
13053 ac_output_files="$ac_output_files lib-src/ellcc.h"
13058 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13061 # Let make expand exec_prefix.
13062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13064 # Any assignment to VPATH causes Sun make to only execute
13065 # the first set of double-colon rules, so remove it if not needed.
13066 # If there is a colon in the path, we need to keep it.
13067 if test "x$srcdir" = x.; then
13068 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13071 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13073 DEFS=-DHAVE_CONFIG_H
13075 # Without the "./", some shells look in PATH for config.status.
13076 : ${CONFIG_STATUS=./config.status}
13078 echo creating $CONFIG_STATUS
13079 rm -f $CONFIG_STATUS
13080 cat > $CONFIG_STATUS <<EOF
13082 # Generated automatically by configure.
13083 # Run this file to recreate the current configuration.
13084 # This directory was configured as follows,
13085 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13087 # $0 $ac_configure_args
13089 # Compiler output produced by configure, useful for debugging
13090 # configure, is in ./config.log if it exists.
13092 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13095 case "\$ac_option" in
13096 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13097 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13098 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13099 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13100 echo "$CONFIG_STATUS generated by autoconf version 2.12"
13102 -help | --help | --hel | --he | --h)
13103 echo "\$ac_cs_usage"; exit 0 ;;
13104 *) echo "\$ac_cs_usage"; exit 1 ;;
13108 ac_given_srcdir=$srcdir
13109 ac_given_INSTALL="$INSTALL"
13111 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13113 cat >> $CONFIG_STATUS <<EOF
13115 # Protect against being on the right side of a sed subst in config.status.
13116 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13117 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13120 s%@CFLAGS@%$CFLAGS%g
13121 s%@CPPFLAGS@%$CPPFLAGS%g
13122 s%@CXXFLAGS@%$CXXFLAGS%g
13124 s%@LDFLAGS@%$LDFLAGS%g
13126 s%@exec_prefix@%$exec_prefix%g
13127 s%@prefix@%$prefix%g
13128 s%@program_transform_name@%$program_transform_name%g
13129 s%@bindir@%$bindir%g
13130 s%@sbindir@%$sbindir%g
13131 s%@libexecdir@%$libexecdir%g
13132 s%@datadir@%$datadir%g
13133 s%@sysconfdir@%$sysconfdir%g
13134 s%@sharedstatedir@%$sharedstatedir%g
13135 s%@localstatedir@%$localstatedir%g
13136 s%@libdir@%$libdir%g
13137 s%@includedir@%$includedir%g
13138 s%@oldincludedir@%$oldincludedir%g
13139 s%@infodir@%$infodir%g
13140 s%@mandir@%$mandir%g
13142 s%@blddir@%$blddir%g
13145 s%@start_flags@%$start_flags%g
13146 s%@ld_switch_shared@%$ld_switch_shared%g
13147 s%@start_files@%$start_files%g
13149 s%@lib_gcc@%$lib_gcc%g
13150 s%@RANLIB@%$RANLIB%g
13151 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13152 s%@INSTALL_DATA@%$INSTALL_DATA%g
13154 s%@SET_MAKE@%$SET_MAKE%g
13155 s%@X_CFLAGS@%$X_CFLAGS%g
13156 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13157 s%@X_LIBS@%$X_LIBS%g
13158 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13159 s%@install_pp@%$install_pp%g
13160 s%@libs_xauth@%$libs_xauth%g
13161 s%@dnd_objs@%$dnd_objs%g
13162 s%@lwlib_objs@%$lwlib_objs%g
13163 s%@ALLOCA@%$ALLOCA%g
13164 s%@dll_ld@%$dll_ld%g
13165 s%@dll_cflags@%$dll_cflags%g
13166 s%@dll_ldflags@%$dll_ldflags%g
13167 s%@dll_post@%$dll_post%g
13168 s%@dll_ldo@%$dll_ldo%g
13169 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13170 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13171 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13172 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13173 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13174 s%@PROGNAME@%$PROGNAME%g
13175 s%@version@%$version%g
13176 s%@configuration@%$configuration%g
13177 s%@canonical@%$canonical%g
13178 s%@srcdir@%$srcdir%g
13179 s%@pkgdir@%$pkgdir%g
13180 s%@statedir@%$statedir%g
13181 s%@PREFIX@%$PREFIX%g
13182 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13183 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13184 s%@INFODIR@%$INFODIR%g
13185 s%@infopath@%$infopath%g
13186 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13187 s%@INFOPATH@%$INFOPATH%g
13188 s%@package_path@%$package_path%g
13189 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13190 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13191 s%@lispdir@%$lispdir%g
13192 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13193 s%@LISPDIR@%$LISPDIR%g
13194 s%@moduledir@%$moduledir%g
13195 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13196 s%@MODULEDIR@%$MODULEDIR%g
13197 s%@sitelispdir@%$sitelispdir%g
13198 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13199 s%@SITELISPDIR@%$SITELISPDIR%g
13200 s%@sitemoduledir@%$sitemoduledir%g
13201 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13202 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13203 s%@etcdir@%$etcdir%g
13204 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13205 s%@ETCDIR@%$ETCDIR%g
13206 s%@lockdir@%$lockdir%g
13207 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13208 s%@LOCKDIR@%$LOCKDIR%g
13209 s%@archlibdir@%$archlibdir%g
13210 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13211 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13212 s%@docdir@%$docdir%g
13213 s%@bitmapdir@%$bitmapdir%g
13214 s%@extra_objs@%$extra_objs%g
13215 s%@machfile@%$machfile%g
13216 s%@opsysfile@%$opsysfile%g
13217 s%@c_switch_general@%$c_switch_general%g
13218 s%@c_switch_window_system@%$c_switch_window_system%g
13219 s%@c_switch_all@%$c_switch_all%g
13220 s%@ld_switch_general@%$ld_switch_general%g
13221 s%@ld_switch_window_system@%$ld_switch_window_system%g
13222 s%@ld_switch_all@%$ld_switch_all%g
13223 s%@ld_libs_general@%$ld_libs_general%g
13224 s%@ld_libs_window_system@%$ld_libs_window_system%g
13225 s%@ld_libs_all@%$ld_libs_all%g
13226 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13227 s%@native_sound_lib@%$native_sound_lib%g
13228 s%@sound_cflags@%$sound_cflags%g
13229 s%@dynodump_arch@%$dynodump_arch%g
13230 s%@XEMACS_CC@%$XEMACS_CC%g
13231 s%@internal_makefile_list@%$internal_makefile_list%g
13236 cat >> $CONFIG_STATUS <<\EOF
13238 # Split the substitutions into bite-sized pieces for seds with
13239 # small command number limits, like on Digital OSF/1 and HP-UX.
13240 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13241 ac_file=1 # Number of current file.
13242 ac_beg=1 # First line for current file.
13243 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13246 while $ac_more_lines; do
13247 if test $ac_beg -gt 1; then
13248 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13250 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13252 if test ! -s conftest.s$ac_file; then
13253 ac_more_lines=false
13254 rm -f conftest.s$ac_file
13256 if test -z "$ac_sed_cmds"; then
13257 ac_sed_cmds="sed -f conftest.s$ac_file"
13259 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13261 ac_file=`expr $ac_file + 1`
13263 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13266 if test -z "$ac_sed_cmds"; then
13271 cat >> $CONFIG_STATUS <<EOF
13273 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13275 cat >> $CONFIG_STATUS <<\EOF
13276 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13279 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13280 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13281 *) ac_file_in="${ac_file}.in" ;;
13284 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13286 # Remove last slash and all that follows it. Not all systems have dirname.
13287 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13288 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13289 # The file is in a subdirectory.
13290 test ! -d "$ac_dir" && mkdir "$ac_dir"
13291 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13292 # A "../" for each directory in $ac_dir_suffix.
13293 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13295 ac_dir_suffix= ac_dots=
13298 case "$ac_given_srcdir" in
13300 if test -z "$ac_dots"; then top_srcdir=.
13301 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13302 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13303 *) # Relative path.
13304 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13305 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13308 case "$ac_given_INSTALL" in
13309 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13310 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13313 echo creating "$ac_file"
13315 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13317 *Makefile*) ac_comsub="1i\\
13318 # $configure_input" ;;
13322 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13324 s%@configure_input@%$configure_input%g
13325 s%@srcdir@%$srcdir%g
13326 s%@top_srcdir@%$top_srcdir%g
13327 s%@INSTALL@%$INSTALL%g
13328 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13332 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13333 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13335 # ac_d sets the value in "#define NAME VALUE" lines.
13336 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13337 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13340 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13341 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13342 ac_uB='\([ ]\)%\1#\2define\3'
13345 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13346 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13347 ac_eB='$%\1#\2define\3'
13351 if test "${CONFIG_HEADERS+set}" != set; then
13353 cat >> $CONFIG_STATUS <<EOF
13354 CONFIG_HEADERS="src/config.h lwlib/config.h"
13356 cat >> $CONFIG_STATUS <<\EOF
13358 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13359 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13361 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13362 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13363 *) ac_file_in="${ac_file}.in" ;;
13366 echo creating $ac_file
13368 rm -f conftest.frag conftest.in conftest.out
13369 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13370 cat $ac_file_inputs > conftest.in
13374 # Transform confdefs.h into a sed script conftest.vals that substitutes
13375 # the proper values into config.h.in to produce config.h. And first:
13376 # Protect against being on the right side of a sed subst in config.status.
13377 # Protect against being in an unquoted here document in config.status.
13378 rm -f conftest.vals
13379 cat > conftest.hdr <<\EOF
13382 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13386 sed -n -f conftest.hdr confdefs.h > conftest.vals
13389 # This sed command replaces #undef with comments. This is necessary, for
13390 # example, in the case of _POSIX_SOURCE, which is predefined and required
13391 # on some systems where configure will not decide to define it.
13392 cat >> conftest.vals <<\EOF
13393 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13396 # Break up conftest.vals because some shells have a limit on
13397 # the size of here documents, and old seds have small limits too.
13399 rm -f conftest.tail
13402 ac_lines=`grep -c . conftest.vals`
13403 # grep -c gives empty output for an empty file on some AIX systems.
13404 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13405 # Write a limited-size here document to conftest.frag.
13406 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13407 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13409 sed -f conftest.frag conftest.in > conftest.out
13411 mv conftest.out conftest.in
13412 ' >> $CONFIG_STATUS
13413 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13414 rm -f conftest.vals
13415 mv conftest.tail conftest.vals
13417 rm -f conftest.vals
13419 cat >> $CONFIG_STATUS <<\EOF
13420 rm -f conftest.frag conftest.h
13421 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13422 cat conftest.in >> conftest.h
13424 if cmp -s $ac_file conftest.h 2>/dev/null; then
13425 echo "$ac_file is unchanged"
13428 # Remove last slash and all that follows it. Not all systems have dirname.
13429 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13430 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13431 # The file is in a subdirectory.
13432 test ! -d "$ac_dir" && mkdir "$ac_dir"
13435 mv conftest.h $ac_file
13440 cat >> $CONFIG_STATUS <<EOF
13442 top_srcdir="$srcdir"
13443 MAKE_SUBDIR="$MAKE_SUBDIR"
13446 cat >> $CONFIG_STATUS <<\EOF
13447 for dir in . $MAKE_SUBDIR; do
13452 sed -e '/^# Generated/d' \
13453 -e 's%/\*\*/#.*%%' \
13468 echo creating $dir/Makefile
13469 $CPP -I. -I${top_srcdir}/src junk.c \
13470 | sed -e 's/^\#.*//' \
13471 -e 's/^[ ][ ]*$//'\
13473 | sed -n -e '/^..*$/p' \
13479 chmod 444 Makefile.new
13480 mv -f Makefile.new Makefile
13482 echo creating $dir/GNUmakefile
13483 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13484 | sed -e 's/^\#.*//' \
13485 -e 's/^[ ][ ]*$//'\
13487 | sed -n -e '/^..*$/p' \
13493 chmod 444 Makefile.new
13494 mv -f Makefile.new GNUmakefile
13500 sed < config.status >> lib-src/config.values \
13501 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13502 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13503 -e 's/^\([^ ]*\) $/\1 ""/' \
13509 chmod +x $CONFIG_STATUS
13510 rm -fr confdefs* $ac_clean_files
13511 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1