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'
246 cpp='' cppflags='' libs='' ldflags=''
251 with_system_malloc='default'
252 with_dlmalloc='default'
265 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
269 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
270 | --no-cr | --no-c) ;;
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
274 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
275 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
279 while test $# != 0; do
282 --no-create|--no-recursion) ;;
286 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
287 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
291 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
292 val="yes" valomitted=yes
297 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
299 case "${valomitted}-${opt}" in yes-without_* )
300 opt=`echo $opt | sed 's/without/with/'`
301 valomitted="no" val="no" ;;
307 with_site_modules | \
356 memory_usage_stats | \
357 with_clash_detection | \
361 y | ye | yes ) val=yes ;;
363 * ) (echo "$progname: Usage error:"
364 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
365 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
367 eval "$opt=\"$val\"" ;;
385 site_runtime_libraries )
386 if test "$valomitted" = "yes" ; then
387 if test "$#" = 0 ; then
388 (echo "$progname: Usage error:"
389 echo " " "The \`--$optname' option requires a value."
390 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
399 with_debug_malloc | use_debug_malloc | \
400 with_system_malloc | use_system_malloc )
402 y | ye | yes ) val=yes ;;
404 d | de | def | defa | defau | defaul | default ) val=default ;;
405 * ) (echo "$progname: Usage error:"
406 echo " " "The \`--$optname' option requires one of these values:
407 \`yes', \`no', or \`default'."
408 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
410 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
415 with_database_berkdb=no
417 with_database_gnudbm=no
418 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
421 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
422 d | db | dbm ) with_database_dbm=yes ;;
423 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
424 * ) (echo "$progname: Usage error:"
425 echo " " "The \`--$optname' option value
426 must be either \`no' or a comma-separated list
427 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
428 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
431 if test "$with_database_dbm" = "yes" -a \
432 "$with_database_gnudbm" = "yes"; then
433 (echo "$progname: Usage error:"
434 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
435 with the \`--$optname' option."
436 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
442 y | ye | yes ) val=native ;;
443 n | no | non | none ) val=no;;
444 na | nat | nati | nativ | native ) val=native ;;
445 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
446 b | bo | bot | both ) val=both;;
447 * ) (echo "$progname: Usage error:"
448 echo " " "The \`--$optname' option must have one of these values:
449 \`native', \`nas', \`both', or \`none'."
450 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
457 y | ye | yes ) val=yes ;;
458 n | no | non | none ) val=no ;;
459 x | xl | xli | xlib ) val=xlib ;;
460 m | mo | mot | moti | motif ) val=motif ;;
461 * ) (echo "$progname: Usage error:"
462 echo " " "The \`--$optname' option must have one of these values:
463 \`motif', \`xlib', \`yes', or \`no'."
464 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
474 * ) (echo "$progname: Usage error:"
475 echo " " "The \`--$optname' option must have one of these values:
476 \`lockf', \`flock', or \`file'."
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
484 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
486 n | no | non | none ) new_default=no ;;
487 a | al | all ) new_default=yes ;;
489 extents ) error_check_extents=yes ;;
490 noextents ) error_check_extents=no ;;
492 typecheck ) error_check_typecheck=yes ;;
493 notypecheck ) error_check_typecheck=no ;;
495 bufpos ) error_check_bufpos=yes ;;
496 nobufpos ) error_check_bufpos=no ;;
498 gc ) error_check_gc=yes ;;
499 nogc ) error_check_gc=no ;;
501 malloc ) error_check_malloc=yes ;;
502 nomalloc ) error_check_malloc=no ;;
504 * ) bogus_error_check=yes ;;
506 if test "$bogus_error_check" -o \
507 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
508 if test "$error_check_default" = yes ; then
509 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
511 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
513 (echo "$progname: Usage error:"
514 echo " " "Valid types for the \`--$optname' option are:
516 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
517 elif test -n "$new_default" ; then
518 error_check_extents=$new_default
519 error_check_typecheck=$new_default
520 error_check_bufpos=$new_default
521 error_check_gc=$new_default
522 error_check_malloc=$new_default
523 new_default= # reset this
530 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
531 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
532 archlibdir | docdir | package_path )
533 if test "$valomitted" = "yes"; then
534 if test "$#" = 0; then
535 (echo "$progname: Usage error:"
536 echo " " "The \`--$optname' option requires a value."
537 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
544 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
545 Defining LISPDIR_USER_DEFINED
547 cat >> confdefs.h <<\EOF
548 #define LISPDIR_USER_DEFINED 1
552 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
553 Defining SITELISPDIR_USER_DEFINED
555 cat >> confdefs.h <<\EOF
556 #define SITELISPDIR_USER_DEFINED 1
560 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
561 Defining MODULEDIR_USER_DEFINED
563 cat >> confdefs.h <<\EOF
564 #define MODULEDIR_USER_DEFINED 1
568 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
569 Defining ETCDIR_USER_DEFINED
571 cat >> confdefs.h <<\EOF
572 #define ETCDIR_USER_DEFINED 1
576 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
577 Defining INFODIR_USER_DEFINED
579 cat >> confdefs.h <<\EOF
580 #define INFODIR_USER_DEFINED 1
584 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
585 Defining INFOPATH_USER_DEFINED
587 cat >> confdefs.h <<\EOF
588 #define INFOPATH_USER_DEFINED 1
592 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
593 Defining PACKAGE_PATH_USER_DEFINED
595 cat >> confdefs.h <<\EOF
596 #define PACKAGE_PATH_USER_DEFINED 1
601 { test "$extra_verbose" = "yes" && cat << \EOF
602 Defining INFODIR_USER_DEFINED
604 cat >> confdefs.h <<\EOF
605 #define INFODIR_USER_DEFINED 1
609 { test "$extra_verbose" = "yes" && cat << \EOF
610 Defining LISPDIR_USER_DEFINED
612 cat >> confdefs.h <<\EOF
613 #define LISPDIR_USER_DEFINED 1
617 { test "$extra_verbose" = "yes" && cat << \EOF
618 Defining MODULEDIR_USER_DEFINED
620 cat >> confdefs.h <<\EOF
621 #define MODULEDIR_USER_DEFINED 1
625 { test "$extra_verbose" = "yes" && cat << \EOF
626 Defining ETCDIR_USER_DEFINED
628 cat >> confdefs.h <<\EOF
629 #define ETCDIR_USER_DEFINED 1
633 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
634 Defining LOCKDIR_USER_DEFINED
636 cat >> confdefs.h <<\EOF
637 #define LOCKDIR_USER_DEFINED 1
641 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
642 Defining ARCHLIBDIR_USER_DEFINED
644 cat >> confdefs.h <<\EOF
645 #define ARCHLIBDIR_USER_DEFINED 1
654 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
657 "with_scrollbars" | \
660 l | lu | luc | luci | lucid ) val=lucid ;;
661 m | mo | mot | moti | motif ) val=motif ;;
662 athena3d | athena-3d ) val=athena3d ;;
663 a | at | ath | athe | athen | athena ) val=athena ;;
664 n | no | non | none ) val=no ;;
665 * ) (echo "$progname: Usage error:"
666 echo " " "The \`--$optname' option must have one of these values:
667 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
668 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
675 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
678 * ) (echo "$progname: Usage error:"
679 echo " " "Unrecognized option: $arg"
680 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
685 *-*-*) configuration="$arg" ;;
687 *) (echo "$progname: Usage error:"
688 echo " " "Unrecognized argument: $arg"
689 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
695 test -n "$cpp" && CPP="$cpp"
696 test -n "$cppflags" && CPPFLAGS="$cppflags"
697 test -n "$libs" && LIBS="$libs"
698 test -n "$ldflags" && LDFLAGS="$ldflags"
700 eval set x "$quoted_arguments"; shift
702 test "$extra_verbose" = "yes" && verbose=yes
704 test -n "$with_x" && with_x11="$with_x"
706 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
707 test "$with_system_malloc" = "default" && with_system_malloc=yes
712 if test "$with_cde $with_tooltalk" = "yes no"; then
713 (echo "$progname: Usage error:"
714 echo " " "--with-cde requires --with-tooltalk"
715 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
716 elif test "$with_tooltalk" = "no" ; then with_cde=no
717 elif test "$with_cde" = "yes"; then with_tooltalk=yes
724 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
725 if test -f "$dir/src/lisp.h" -a \
726 -f "$dir/lisp/version.el" ; then
731 if test -z "$srcdir" ; then
732 (echo "$progname: Usage error:"
733 echo " " "Neither the current directory nor its parent seem to
734 contain the XEmacs sources. If you do not want to build XEmacs in its
735 source tree, you should run \`$progname' in the directory in which
736 you wish to build XEmacs, using the \`--srcdir' option to say where the
737 sources may be found."
738 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
743 if test ! -f "$srcdir/src/lisp.h" -o \
744 ! -f "$srcdir/lisp/version.el" ; then
745 (echo "$progname: Usage error:"
746 echo " " "The directory specified with the \`--srcdir' option,
747 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
748 either run the \`$progname' script at the top of the XEmacs source
749 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
750 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
755 if test -z "$configuration"; then
756 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
757 if test -z "$configuration"; then
758 (echo "$progname: Usage error:"
759 echo " " "XEmacs has not been ported to this host type.
760 Try explicitly specifying the CONFIGURATION when rerunning configure."
761 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
765 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
766 echo "configure:767: checking whether ln -s works" >&5
769 if ln -s X conftestdata 2>/dev/null
772 ac_cv_prog_LN_S="ln -s"
776 LN_S="$ac_cv_prog_LN_S"
777 if test "$ac_cv_prog_LN_S" = "ln -s"; then
778 echo "$ac_t""yes" 1>&6
780 echo "$ac_t""no" 1>&6
784 for dir in lisp etc man info; do
785 if test ! -d "$dir" ; then
786 echo Making symbolic link to "$srcdir/$dir"
787 ${LN_S} "$srcdir/$dir" "$dir"
792 absolute_pwd="`pwd`";
793 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
795 else blddir="$absolute_pwd"; if test -d "/net"; then
796 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
797 blddir=`echo "$blddir" | \
798 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
805 . ) srcdir="$blddir" ;;
806 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
807 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
808 srcdir=`echo "$srcdir" | \
809 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
813 if test `pwd` != `sh -c cd $srcdir && pwd` \
814 && test -f "$srcdir/src/config.h"; then
815 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
816 echo " as a build directory right now; it has been configured in its own"
817 echo " right. To configure in another directory as well, you MUST"
818 echo " use GNU make. If you do not have GNU make, then you must"
819 echo " now do \`make distclean' in $srcdir,"
820 echo " and then run $progname again.") >&2
821 extrasub='/^VPATH[ ]*=/c\
827 vpath %.in $(srcdir)'
830 . "$srcdir/version.sh" || exit 1;
831 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
832 : "${extra_verbose=$beta}"
833 version="${emacs_major_version}.${emacs_minor_version}"
834 { test "$extra_verbose" = "yes" && cat << EOF
835 Defining EMACS_MAJOR_VERSION = $emacs_major_version
837 cat >> confdefs.h <<EOF
838 #define EMACS_MAJOR_VERSION $emacs_major_version
842 { test "$extra_verbose" = "yes" && cat << EOF
843 Defining EMACS_MINOR_VERSION = $emacs_minor_version
845 cat >> confdefs.h <<EOF
846 #define EMACS_MINOR_VERSION $emacs_minor_version
850 if test -n "$emacs_beta_version"; then
851 version="${version}-b${emacs_beta_version}"
852 { test "$extra_verbose" = "yes" && cat << EOF
853 Defining EMACS_BETA_VERSION = $emacs_beta_version
855 cat >> confdefs.h <<EOF
856 #define EMACS_BETA_VERSION $emacs_beta_version
861 { test "$extra_verbose" = "yes" && cat << EOF
862 Defining XEMACS_CODENAME = "$xemacs_codename"
864 cat >> confdefs.h <<EOF
865 #define XEMACS_CODENAME "$xemacs_codename"
869 { test "$extra_verbose" = "yes" && cat << EOF
870 Defining EMACS_VERSION = "$version"
872 cat >> confdefs.h <<EOF
873 #define EMACS_VERSION "$version"
878 if test "$with_infodock" = "yes"; then
879 if test ! -f ../ID-INSTALL; then
880 echo "Cannot build InfoDock without InfoDock sources"
885 if test "$with_infodock" = "yes"; then
886 { test "$extra_verbose" = "yes" && cat << EOF
887 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
889 cat >> confdefs.h <<EOF
890 #define INFODOCK_MAJOR_VERSION $infodock_major_version
894 { test "$extra_verbose" = "yes" && cat << EOF
895 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
897 cat >> confdefs.h <<EOF
898 #define INFODOCK_MINOR_VERSION $infodock_minor_version
902 { test "$extra_verbose" = "yes" && cat << EOF
903 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
905 cat >> confdefs.h <<EOF
906 #define INFODOCK_BUILD_VERSION $infodock_build_version
910 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
912 CPPFLAGS="$CPPFLAGS -DINFODOCK"
917 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
918 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
919 Defining ERROR_CHECK_EXTENTS
921 cat >> confdefs.h <<\EOF
922 #define ERROR_CHECK_EXTENTS 1
926 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
927 Defining ERROR_CHECK_TYPECHECK
929 cat >> confdefs.h <<\EOF
930 #define ERROR_CHECK_TYPECHECK 1
934 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
935 Defining ERROR_CHECK_BUFPOS
937 cat >> confdefs.h <<\EOF
938 #define ERROR_CHECK_BUFPOS 1
942 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
943 Defining ERROR_CHECK_GC
945 cat >> confdefs.h <<\EOF
946 #define ERROR_CHECK_GC 1
950 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
951 Defining ERROR_CHECK_MALLOC
953 cat >> confdefs.h <<\EOF
954 #define ERROR_CHECK_MALLOC 1
958 if test "${debug:=$beta}" = "yes"; then
959 use_assertions=yes memory_usage_stats=yes
960 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
961 echo " xemacs will be linked with \"debug.o\""
963 { test "$extra_verbose" = "yes" && cat << \EOF
964 Defining DEBUG_XEMACS
966 cat >> confdefs.h <<\EOF
967 #define DEBUG_XEMACS 1
972 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
973 Defining USE_ASSERTIONS
975 cat >> confdefs.h <<\EOF
976 #define USE_ASSERTIONS 1
980 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
981 Defining MEMORY_USAGE_STATS
983 cat >> confdefs.h <<\EOF
984 #define MEMORY_USAGE_STATS 1
990 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
991 echo "configure:992: checking "host system type"" >&5
992 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
993 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
994 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
995 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
996 echo "$ac_t""$configuration" 1>&6
1004 case "$canonical" in
1005 sparc-*-* ) machine=sparc ;;
1006 alpha*-*-* ) machine=alpha ;;
1007 vax-*-* ) machine=vax ;;
1008 mips-dec-* ) machine=pmax ;;
1009 mips-sgi-* ) machine=iris4d ;;
1010 romp-ibm-* ) machine=ibmrt ;;
1011 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1012 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1013 powerpc*-* ) machine=powerpc ;;
1014 hppa-*-* ) machine=hp800 ;;
1015 m88k-dg-* ) machine=aviion ;;
1016 m68*-sony-* ) machine=news ;;
1017 mips-sony-* ) machine=news-risc ;;
1018 clipper-* ) machine=clipper ;;
1019 arm-* ) machine=arm ;;
1020 ns32k-* ) machine=ns32000 ;;
1023 case "$canonical" in
1024 *-*-linux* ) opsys=linux ;;
1025 *-*-netbsd* ) opsys=netbsd ;;
1026 *-*-openbsd* ) opsys=openbsd ;;
1027 *-*-nextstep* ) opsys=nextstep ;;
1028 *-*-vms ) opsys=vms ;;
1030 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1031 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1032 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1033 *-dec-osf3* ) opsys=decosf3-1 ;;
1034 *-dec-osf4* ) opsys=decosf4-0 ;;
1036 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1037 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1038 *-*-ultrix* ) opsys=ultrix4-3 ;;
1040 *-*-aix3.1* ) opsys=aix3-1 ;;
1041 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1042 *-*-aix3* ) opsys=aix3-2 ;;
1043 *-*-aix4.0* ) opsys=aix4 ;;
1044 *-*-aix4.1* ) opsys=aix4-1 ;;
1045 *-*-aix4* ) opsys=aix4-2 ;;
1047 *-gnu* ) opsys=gnu ;;
1048 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1049 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1050 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1051 *-*-aos4.2 ) opsys=bsd4-2 ;;
1052 *-*-aos* ) opsys=bsd4-3 ;;
1053 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1054 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1055 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1056 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1057 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1058 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1059 if test -z "$NON_GNU_CPP" ; then
1060 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1061 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1065 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1066 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1069 case "$canonical" in
1072 case "$canonical" in
1073 i[3-9]86-*-netbsd*) machine=intel386 ;;
1074 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1075 machine=hp9000s300 ;;
1076 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1077 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1082 case "${canonical}" in
1083 i386-*-openbsd*) machine=intel386 ;;
1084 m68k-*-openbsd*) machine=hp9000s300 ;;
1085 mipsel-*-openbsd*) machine=pmax ;;
1089 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1090 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1092 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1093 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1095 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1097 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1099 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1101 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1103 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1105 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1106 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1107 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1110 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1112 *-convex-bsd* | *-convex-convexos* )
1113 machine=convex opsys=bsd4-3
1114 NON_GNU_CPP="cc -E -P"
1117 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1119 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1120 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1121 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1122 m88k-dg-dgux* ) opsys=dgux ;;
1124 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1125 m88k-motorola-sysv4* )
1126 machine=delta88k opsys=usg5-4-2
1128 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1130 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1131 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1133 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1135 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1136 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1137 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1140 case "`uname -r`" in
1141 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1142 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1144 NON_GNU_CPP="/lib/cpp"
1146 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1147 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1149 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1151 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1154 case "$canonical" in
1155 m68* ) machine=hp9000s300 ;;
1156 hppa* ) machine=hp800 ;;
1159 case "$canonical" in
1160 *-hp-hpux7* ) opsys=hpux ;;
1161 *-hp-hpux8* ) opsys=hpux8 ;;
1162 *-hp-hpux9* ) opsys=hpux9 ;;
1163 *-hp-hpux10* ) opsys=hpux10 ;;
1164 *-hp-hpux11* ) opsys=hpux11 ;;
1168 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1169 echo " xemacs will be linked with \"strcat.o\""
1172 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1173 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1174 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1176 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1179 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1180 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1182 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1183 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1184 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1185 romp-ibm-aos* ) opsys=bsd4-3 ;;
1186 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1187 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1189 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1190 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1192 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1194 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1196 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1198 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1200 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1202 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1204 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1206 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1208 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1210 mips-mips-usg* ) machine=mips4 ;;
1213 NON_GNU_CC="cc -systype bsd43"
1214 NON_GNU_CPP="cc -systype bsd43 -E"
1215 case "$canonical" in
1216 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1217 mips-mips-riscos5* ) opsys=riscos5 ;;
1220 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1221 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1223 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1225 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1227 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1228 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1230 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1232 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1234 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1236 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1238 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1239 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1241 mips-siemens-sysv* | mips-sni-sysv*)
1242 machine=mips-siemens opsys=usg5-4
1243 NON_GNU_CC=/usr/ccs/bin/cc
1244 NON_GNU_CPP=/usr/ccs/lib/cpp
1249 NON_GNU_CC=/usr/ccs/bin/cc
1250 NON_GNU_CPP=/usr/ccs/lib/cpp
1253 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1254 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1255 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1256 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1257 mips-sgi-irix6* ) opsys=irix6-0 ;;
1258 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1259 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1260 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1261 mips-sgi-irix* ) opsys=irix5-0 ;;
1263 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1264 *-sony-news* ) opsys=newsos5 ;;
1266 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1268 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1269 case "$canonical" in
1270 m68*-sunos1* ) machine=sun1 ;;
1271 m68*-sunos2* ) machine=sun2 ;;
1272 m68* ) machine=sun3 ;;
1273 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1274 i*86-*-* ) machine=intel386 ;;
1275 rs6000* ) machine=rs6000 ;;
1278 case "$canonical" in *-sunos5*)
1279 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1282 case "$canonical" in
1284 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1287 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1291 case "$canonical" in
1294 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1295 { test "$extra_verbose" = "yes" && cat << EOF
1296 Defining OS_RELEASE = $os_release
1298 cat >> confdefs.h <<EOF
1299 #define OS_RELEASE $os_release
1304 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1305 *-sunos4.0* ) opsys=sunos4-0 ;;
1306 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1307 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1308 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1309 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1310 *-mach* ) opsys=mach-bsd4-3 ;;
1314 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1316 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1319 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1321 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1322 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1324 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1326 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1328 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1329 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1331 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1333 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1336 case "$canonical" in
1337 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1338 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1339 *-mach* ) opsys=mach-bsd4-3 ;;
1343 ns16k-whitechapel-* ) machine=mg1 ;;
1345 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1349 case "$canonical" in
1350 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1351 *-isc2.2* ) opsys=isc2-2 ;;
1352 *-isc4.0* ) opsys=isc4-0 ;;
1353 *-isc4.* ) opsys=isc4-1
1354 GCC_TEST_OPTIONS=-posix
1355 NON_GCC_TEST_OPTIONS=-Xp
1357 *-isc* ) opsys=isc3-0 ;;
1358 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1359 *-esix* ) opsys=esix ;;
1360 *-mach* ) opsys=mach-bsd4-3 ;;
1361 *-xenix* ) opsys=xenix ;;
1362 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1363 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1364 *-bsdi4* ) opsys=bsdos4 ;;
1365 *-bsdi3* ) opsys=bsdos3 ;;
1366 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1367 *-bsdi2* ) opsys=bsdos2 ;;
1368 *-sco3.2v5* ) opsys=sco5 ;
1369 if test "$dynamic" = "yes" ; then
1370 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1372 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1374 *-386bsd* ) opsys=386bsd ;;
1375 *-freebsd* ) opsys=freebsd ;;
1376 *-nextstep* ) opsys=nextstep ;;
1377 *-pc-cygwin* ) opsys=cygwin32 ;;
1378 *-pc-mingw* ) opsys=mingw32 ;
1379 test -z "$with_tty" && with_tty="no";;
1383 m68k-*-linux* ) machine=m68k opsys=linux ;;
1387 if test -z "$machine" -o -z "$opsys"; then
1388 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1389 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1394 if test -z "$dynamic"; then
1396 hpux* | sunos4* ) dynamic=no ;;
1400 if test "$dynamic" = "yes"; then
1402 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1403 decosf* ) ld_call_shared="-call_shared" ;;
1405 else case "$opsys" in
1407 echo "Static linking is not supported on Solaris 2."
1408 echo "Rerun configure without specifying --dynamic=no."
1410 linux ) ld_call_shared="-Bstatic" ;;
1411 decosf* ) ld_call_shared="-non_shared" ;;
1415 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1417 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1418 { test "$extra_verbose" = "yes" && cat << EOF
1419 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1421 cat >> confdefs.h <<EOF
1422 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1427 machfile="m/${machine}.h"
1428 opsysfile="s/${opsys}.h"
1431 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1432 if test "$with_workshop $with_tooltalk" = "yes no"; then
1433 (echo "$progname: Usage error:"
1434 echo " " "--with-workshop requires --with-tooltalk"
1435 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1436 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1437 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1440 if test "$with_workshop" = "yes"; then
1441 { test "$extra_verbose" = "yes" && cat << \EOF
1444 cat >> confdefs.h <<\EOF
1449 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1450 echo " xemacs will be linked with \"sunpro.o\""
1454 if test "$with_clash_detection" = "yes"; then
1455 { test "$extra_verbose" = "yes" && cat << \EOF
1456 Defining CLASH_DETECTION
1458 cat >> confdefs.h <<\EOF
1459 #define CLASH_DETECTION 1
1463 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1464 echo " xemacs will be linked with \"filelock.o\""
1468 test -n "$compiler" && CC="$compiler"
1469 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1472 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1473 if test "${CFLAGS-unset}" != unset
1474 then cflags_specified=yes;
1475 else cflags_specified=no;
1478 xe_save_CFLAGS="$CFLAGS"
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481 set dummy gcc; ac_word=$2
1482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1483 echo "configure:1484: checking for $ac_word" >&5
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1489 for ac_dir in $PATH; do
1490 test -z "$ac_dir" && ac_dir=.
1491 if test -f $ac_dir/$ac_word; then
1499 if test -n "$CC"; then
1500 echo "$ac_t""$CC" 1>&6
1502 echo "$ac_t""no" 1>&6
1505 if test -z "$CC"; then
1506 # Extract the first word of "cc", so it can be a program name with args.
1507 set dummy cc; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1511 if test -n "$CC"; then
1512 ac_cv_prog_CC="$CC" # Let the user override the test.
1514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1516 for ac_dir in $PATH; do
1517 test -z "$ac_dir" && ac_dir=.
1518 if test -f $ac_dir/$ac_word; then
1519 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1520 ac_prog_rejected=yes
1528 if test $ac_prog_rejected = yes; then
1529 # We found a bogon in the path, so make sure we never use it.
1530 set dummy $ac_cv_prog_CC
1532 if test $# -gt 0; then
1533 # We chose a different compiler from the bogus one.
1534 # However, it has the same basename, so the bogon will be chosen
1535 # first if we set CC to just the basename; use the full file name.
1537 set dummy "$ac_dir/$ac_word" "$@"
1544 if test -n "$CC"; then
1545 echo "$ac_t""$CC" 1>&6
1547 echo "$ac_t""no" 1>&6
1550 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1553 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1554 echo "configure:1555: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1557 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1558 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1559 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1560 ac_cpp='$CPP '"$xe_cppflags"
1561 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1562 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1570 if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1571 ac_cv_prog_cc_works=yes
1572 # If we can't run a trivial program, we are probably using a cross compiler.
1573 if (./conftest; exit) 2>/dev/null; then
1574 ac_cv_prog_cc_cross=no
1576 ac_cv_prog_cc_cross=yes
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1581 ac_cv_prog_cc_works=no
1585 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1586 if test $ac_cv_prog_cc_works = no; then
1587 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1589 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1590 echo "configure:1591: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1591 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1592 cross_compiling=$ac_cv_prog_cc_cross
1594 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1595 echo "configure:1596: checking whether we are using GNU C" >&5
1597 cat > conftest.c <<EOF
1602 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1608 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1610 if test $ac_cv_prog_gcc = yes; then
1612 ac_test_CFLAGS="${CFLAGS+set}"
1613 ac_save_CFLAGS="$CFLAGS"
1615 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1616 echo "configure:1617: checking whether ${CC-cc} accepts -g" >&5
1618 echo 'void f(){}' > conftest.c
1619 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1627 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1628 if test "$ac_test_CFLAGS" = set; then
1629 CFLAGS="$ac_save_CFLAGS"
1630 elif test $ac_cv_prog_cc_g = yes; then
1637 test "${CFLAGS+set}" = set || CFLAGS="-g"
1640 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1642 # Extract the first word of "gcc", so it can be a program name with args.
1643 set dummy gcc; ac_word=$2
1644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_word" >&5
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1651 for ac_dir in $PATH; do
1652 test -z "$ac_dir" && ac_dir=.
1653 if test -f $ac_dir/$ac_word; then
1661 if test -n "$CC"; then
1662 echo "$ac_t""$CC" 1>&6
1664 echo "$ac_t""no" 1>&6
1667 if test -z "$CC"; then
1668 # Extract the first word of "cc", so it can be a program name with args.
1669 set dummy cc; ac_word=$2
1670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1671 echo "configure:1672: checking for $ac_word" >&5
1673 if test -n "$CC"; then
1674 ac_cv_prog_CC="$CC" # Let the user override the test.
1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1678 for ac_dir in $PATH; do
1679 test -z "$ac_dir" && ac_dir=.
1680 if test -f $ac_dir/$ac_word; then
1681 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1682 ac_prog_rejected=yes
1690 if test $ac_prog_rejected = yes; then
1691 # We found a bogon in the path, so make sure we never use it.
1692 set dummy $ac_cv_prog_CC
1694 if test $# -gt 0; then
1695 # We chose a different compiler from the bogus one.
1696 # However, it has the same basename, so the bogon will be chosen
1697 # first if we set CC to just the basename; use the full file name.
1699 set dummy "$ac_dir/$ac_word" "$@"
1706 if test -n "$CC"; then
1707 echo "$ac_t""$CC" 1>&6
1709 echo "$ac_t""no" 1>&6
1712 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1715 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1716 echo "configure:1717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1719 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1720 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1721 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1722 ac_cpp='$CPP '"$xe_cppflags"
1723 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1724 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1733 ac_cv_prog_cc_works=yes
1734 # If we can't run a trivial program, we are probably using a cross compiler.
1735 if (./conftest; exit) 2>/dev/null; then
1736 ac_cv_prog_cc_cross=no
1738 ac_cv_prog_cc_cross=yes
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1743 ac_cv_prog_cc_works=no
1747 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1748 if test $ac_cv_prog_cc_works = no; then
1749 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1752 echo "configure:1753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1753 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1754 cross_compiling=$ac_cv_prog_cc_cross
1756 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1757 echo "configure:1758: checking whether we are using GNU C" >&5
1759 cat > conftest.c <<EOF
1764 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1770 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1772 if test $ac_cv_prog_gcc = yes; then
1774 ac_test_CFLAGS="${CFLAGS+set}"
1775 ac_save_CFLAGS="$CFLAGS"
1777 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1778 echo "configure:1779: checking whether ${CC-cc} accepts -g" >&5
1780 echo 'void f(){}' > conftest.c
1781 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1789 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1790 if test "$ac_test_CFLAGS" = set; then
1791 CFLAGS="$ac_save_CFLAGS"
1792 elif test $ac_cv_prog_cc_g = yes; then
1799 test "${CFLAGS+set}" = set || CFLAGS="-g"
1802 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1804 # Extract the first word of "gcc", so it can be a program name with args.
1805 set dummy gcc; ac_word=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1813 for ac_dir in $PATH; do
1814 test -z "$ac_dir" && ac_dir=.
1815 if test -f $ac_dir/$ac_word; then
1823 if test -n "$CC"; then
1824 echo "$ac_t""$CC" 1>&6
1826 echo "$ac_t""no" 1>&6
1829 if test -z "$CC"; then
1830 # Extract the first word of "cc", so it can be a program name with args.
1831 set dummy cc; ac_word=$2
1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_word" >&5
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1840 for ac_dir in $PATH; do
1841 test -z "$ac_dir" && ac_dir=.
1842 if test -f $ac_dir/$ac_word; then
1843 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1844 ac_prog_rejected=yes
1852 if test $ac_prog_rejected = yes; then
1853 # We found a bogon in the path, so make sure we never use it.
1854 set dummy $ac_cv_prog_CC
1856 if test $# -gt 0; then
1857 # We chose a different compiler from the bogus one.
1858 # However, it has the same basename, so the bogon will be chosen
1859 # first if we set CC to just the basename; use the full file name.
1861 set dummy "$ac_dir/$ac_word" "$@"
1868 if test -n "$CC"; then
1869 echo "$ac_t""$CC" 1>&6
1871 echo "$ac_t""no" 1>&6
1874 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1877 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1878 echo "configure:1879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1881 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1882 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1883 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1884 ac_cpp='$CPP '"$xe_cppflags"
1885 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1886 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1895 ac_cv_prog_cc_works=yes
1896 # If we can't run a trivial program, we are probably using a cross compiler.
1897 if (./conftest; exit) 2>/dev/null; then
1898 ac_cv_prog_cc_cross=no
1900 ac_cv_prog_cc_cross=yes
1903 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1905 ac_cv_prog_cc_works=no
1909 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1910 if test $ac_cv_prog_cc_works = no; then
1911 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1913 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1914 echo "configure:1915: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1915 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1916 cross_compiling=$ac_cv_prog_cc_cross
1918 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1919 echo "configure:1920: checking whether we are using GNU C" >&5
1921 cat > conftest.c <<EOF
1926 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1932 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1934 if test $ac_cv_prog_gcc = yes; then
1936 ac_test_CFLAGS="${CFLAGS+set}"
1937 ac_save_CFLAGS="$CFLAGS"
1939 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1940 echo "configure:1941: checking whether ${CC-cc} accepts -g" >&5
1942 echo 'void f(){}' > conftest.c
1943 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1951 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1952 if test "$ac_test_CFLAGS" = set; then
1953 CFLAGS="$ac_save_CFLAGS"
1954 elif test $ac_cv_prog_cc_g = yes; then
1961 test "${CFLAGS+set}" = set || CFLAGS="-g"
1965 CFLAGS="$xe_save_CFLAGS"
1968 test -n "$CPP" -a -d "$CPP" && CPP=
1970 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1972 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1973 echo "configure:1974: checking how to run the C preprocessor" >&5
1974 # On Suns, sometimes $CPP names a directory.
1975 if test -n "$CPP" && test -d "$CPP"; then
1978 if test -z "$CPP"; then
1980 # This must be in double quotes, not single quotes, because CPP may get
1981 # substituted into the Makefile and "${CC-cc}" will confuse make.
1983 # On the NeXT, cc -E runs the code through the compiler's parser,
1984 # not just through cpp.
1985 cat > conftest.$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1992 { (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1993 ac_err=`grep -v '^ *+' conftest.out`
1994 if test -z "$ac_err"; then
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 CPP="${CC-cc} -E -traditional-cpp"
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2009 { (eval echo configure:2010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2010 ac_err=`grep -v '^ *+' conftest.out`
2011 if test -z "$ac_err"; then
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2023 ac_cv_prog_CPP="$CPP"
2024 CPP="$ac_cv_prog_CPP"
2026 ac_cv_prog_CPP="$CPP"
2028 echo "$ac_t""$CPP" 1>&6
2031 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2032 echo "configure:2033: checking for AIX" >&5
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2042 egrep "yes" >/dev/null 2>&1; then
2044 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2045 Defining _ALL_SOURCE
2047 cat >> confdefs.h <<\EOF
2048 #define _ALL_SOURCE 1
2054 echo "$ac_t""no" 1>&6
2060 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2061 echo "configure:2062: checking for GNU libc" >&5
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 #include <features.h>
2068 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2069 #error Not a GNU libc system :-(
2070 ******* ======= ******** &&&&&&&&
2075 if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2085 echo "$ac_t""$have_glibc" 1>&6
2086 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2087 Defining _GNU_SOURCE
2089 cat >> confdefs.h <<\EOF
2090 #define _GNU_SOURCE 1
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2100 #if defined __SUNPRO_C
2102 #elif defined __DECC
2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2117 case "$conftest_rc" in
2118 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2119 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2127 echo "Extracting information from the machine- and system-dependent headers..."
2129 tempcname="conftest.c"
2133 cat > $tempcname <<EOF
2135 #define C_SWITCH_SITE
2136 #define C_SWITCH_X_SITE
2137 #define LD_SWITCH_SITE
2138 #define LD_SWITCH_X_SITE
2139 #define LD_SWITCH_X_SITE_AUX
2140 #define OS_RELEASE $os_release
2141 #include "$srcdir/src/$opsysfile"
2142 #include "$srcdir/src/$machfile"
2144 #ifndef LIBS_MACHINE
2145 #define LIBS_MACHINE
2147 configure___ libs_machine=LIBS_MACHINE
2152 configure___ libs_system=LIBS_SYSTEM
2154 #ifndef LIBS_TERMCAP
2155 #define LIBS_TERMCAP
2157 configure___ libs_termcap=LIBS_TERMCAP
2159 #ifndef LIB_STANDARD
2160 #define LIB_STANDARD
2162 configure___ libs_standard=LIB_STANDARD
2165 #ifndef OBJECTS_MACHINE
2166 #define OBJECTS_MACHINE
2168 configure___ objects_machine=OBJECTS_MACHINE
2170 #ifndef OBJECTS_SYSTEM
2171 #define OBJECTS_SYSTEM
2173 configure___ objects_system=OBJECTS_SYSTEM
2176 #ifndef C_SWITCH_MACHINE
2177 #define C_SWITCH_MACHINE
2179 configure___ c_switch_machine=C_SWITCH_MACHINE
2181 #ifndef C_SWITCH_SYSTEM
2182 #define C_SWITCH_SYSTEM
2184 configure___ c_switch_system=C_SWITCH_SYSTEM
2187 #ifndef LD_SWITCH_MACHINE
2188 #define LD_SWITCH_MACHINE
2190 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2192 #ifndef LD_SWITCH_SYSTEM
2193 #define LD_SWITCH_SYSTEM
2195 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2199 #define UNEXEC "unexec.o"
2201 configure___ unexec=UNEXEC
2204 #ifndef LD_SWITCH_SHARED
2205 #define LD_SWITCH_SHARED "-c"
2207 configure___ ld_switch_shared=LD_SWITCH_SHARED
2210 #ifdef ORDINARY_LINK
2211 #define LD "\$(CC) \$(CFLAGS)"
2212 #else /* no ORDINARY LINK */
2213 #ifdef COFF_ENCAPSULATE
2214 #define LD "\$(CC) -nostdlib"
2215 #else /* not COFF_ENCAPSULATE */
2218 #else /* ! defined (LINKER) */
2220 #endif /* ! defined (LINKER) */
2221 #endif /* ! defined (COFF_ENCAPSULATE) */
2222 #endif /* not ORDINARY_LINK */
2228 configure___ lib_gcc=LIB_GCC
2230 #ifndef LD_TEXT_START_ADDR
2231 #define LD_TEXT_START_ADDR
2233 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2236 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2238 #ifdef COFF_ENCAPSULATE
2239 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2240 #else /* ! defined (COFF_ENCAPSULATE) */
2241 #define START_FILES "pre-crt0.o /lib/crt0.o"
2242 #endif /* ! defined (COFF_ENCAPSULATE) */
2243 #else /* ! defined (NO_REMAP) */
2244 #define START_FILES "ecrt0.o"
2245 #endif /* ! defined (NO_REMAP) */
2246 #endif /* no ORDINARY_LINK */
2250 configure___ start_files=START_FILES
2252 #ifdef ORDINARY_LINK
2253 configure___ ordinary_link=yes
2255 configure___ ordinary_link=no
2258 #ifdef SYSTEM_MALLOC
2259 configure___ system_malloc=yes
2261 configure___ system_malloc=no
2265 configure___ have_terminfo=yes
2267 configure___ have_terminfo=no
2270 #ifdef MAIL_USE_FLOCK
2271 configure___ mail_use_flock=yes
2273 configure___ mail_use_flock=no
2276 #ifdef MAIL_USE_LOCKF
2277 configure___ mail_use_lockf=yes
2279 configure___ mail_use_lockf=no
2282 #ifdef HAVE_WIN32_PROCESSES
2283 configure___ win32_processes=yes
2285 configure___ win32_processes=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* | irix*) 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
4136 echo $ac_n "checking for sin""... $ac_c" 1>&6
4137 echo "configure:4138: checking for sin" >&5
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 /* System header to define __stub macros and hopefully few prototypes,
4143 which can conflict with char sin(); below. */
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. */
4152 /* The GNU C library defines this for functions which it implements
4153 to always fail with ENOSYS. Some functions are actually named
4154 something starting with __ and the normal name is an alias. */
4155 #if defined (__stub_sin) || defined (__stub___sin)
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4165 eval "ac_cv_func_sin=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 eval "ac_cv_func_sin=no"
4174 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4175 echo "$ac_t""yes" 1>&6
4178 echo "$ac_t""no" 1>&6
4180 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4181 echo "configure:4182: checking for sin in -lm" >&5
4182 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4184 xe_check_libs=" -lm "
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 /* Override any gcc2 internal prototype to avoid an error. */
4189 /* We use char because int might match the return type of a gcc2
4190 builtin and then its argument prototype would still apply. */
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4199 eval "ac_cv_lib_$ac_lib_var=yes"
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4204 eval "ac_cv_lib_$ac_lib_var=no"
4209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4210 echo "$ac_t""yes" 1>&6
4211 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4213 { test "$extra_verbose" = "yes" && cat << EOF
4216 cat >> confdefs.h <<EOF
4217 #define $ac_tr_lib 1
4221 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4224 echo "$ac_t""no" 1>&6
4231 { test "$extra_verbose" = "yes" && cat << \EOF
4232 Defining LISP_FLOAT_TYPE
4234 cat >> confdefs.h <<\EOF
4235 #define LISP_FLOAT_TYPE 1
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4245 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4250 { test "$extra_verbose" = "yes" && cat << \EOF
4251 Defining HAVE_INVERSE_HYPERBOLIC
4253 cat >> confdefs.h <<\EOF
4254 #define HAVE_INVERSE_HYPERBOLIC 1
4259 echo "configure: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4264 echo "checking type of mail spool file locking" 1>&6
4265 echo "configure:4266: checking type of mail spool file locking" >&5
4266 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4267 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4268 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4269 Defining REAL_MAIL_USE_LOCKF
4271 cat >> confdefs.h <<\EOF
4272 #define REAL_MAIL_USE_LOCKF 1
4276 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4277 Defining REAL_MAIL_USE_FLOCK
4279 cat >> confdefs.h <<\EOF
4280 #define REAL_MAIL_USE_FLOCK 1
4284 else mail_locking="dot-locking"
4287 case "$opsys" in decosf*)
4289 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4290 echo "configure:4291: checking for cma_open in -lpthreads" >&5
4291 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4293 xe_check_libs=" -lpthreads "
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297 /* Override any gcc2 internal prototype to avoid an error. */
4298 /* We use char because int might match the return type of a gcc2
4299 builtin and then its argument prototype would still apply. */
4306 if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4308 eval "ac_cv_lib_$ac_lib_var=yes"
4310 echo "configure: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4313 eval "ac_cv_lib_$ac_lib_var=no"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4322 { test "$extra_verbose" = "yes" && cat << EOF
4325 cat >> confdefs.h <<EOF
4326 #define $ac_tr_lib 1
4330 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4333 echo "$ac_t""no" 1>&6
4337 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4338 c_switch_site="$c_switch_site -threads" ;;
4341 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4342 echo "configure:4343: checking whether the -xildoff compiler flag is required" >&5
4343 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4344 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4345 then echo "$ac_t""no" 1>&6;
4346 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
4348 else echo "$ac_t""no" 1>&6
4351 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4352 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4353 echo "configure:4354: checking for \"-z ignore\" linker flag" >&5
4354 case "`ld -h 2>&1`" in
4355 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4356 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4357 *) echo "$ac_t""no" 1>&6 ;;
4362 echo "checking "for specified window system"" 1>&6
4363 echo "configure:4364: checking "for specified window system"" >&5
4365 if test "$with_x11" != "no"; then
4366 test "$x_includes $x_libraries" != "NONE NONE" && \
4367 window_system=x11 with_x11=yes
4370 if test "$x_includes $x_libraries" = "NONE NONE" \
4371 -a -n "$OPENWINHOME" \
4372 -a "$OPENWINHOME" != "/usr/openwin" \
4373 -a -d "$OPENWINHOME"; then
4374 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4375 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4376 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4379 if test "$x_includes" = "NONE"; then
4380 for dir in "/usr/X11" "/usr/X11R6"; do
4381 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4385 if test "$x_libraries" = "NONE"; then
4386 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4387 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4391 # If we find X, set shell vars x_includes and x_libraries to the
4392 # paths, otherwise set no_x=yes.
4393 # Uses ac_ vars as temps to allow command line to override cache and checks.
4394 # --without-x overrides everything else, but does not touch the cache.
4395 echo $ac_n "checking for X""... $ac_c" 1>&6
4396 echo "configure:4397: checking for X" >&5
4398 # Check whether --with-x or --without-x was given.
4399 if test "${with_x+set}" = set; then
4404 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4405 if test "x$with_x" = xno; then
4406 # The user explicitly disabled X.
4409 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4410 # Both variables are already set.
4414 # One or both of the vars are not set, and there is no cached value.
4415 ac_x_includes=NO ac_x_libraries=NO
4417 if mkdir conftestdir; then
4419 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4420 cat > Imakefile <<'EOF'
4422 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4424 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4426 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4427 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4428 for ac_extension in a so sl; do
4429 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4430 test -f $ac_im_libdir/libX11.$ac_extension; then
4431 ac_im_usrlibdir=$ac_im_libdir; break
4434 # Screen out bogus values from the imake configuration. They are
4435 # bogus both because they are the default anyway, and because
4436 # using them would break gcc on systems where it needs fixed includes.
4437 case "$ac_im_incroot" in
4439 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4441 case "$ac_im_usrlibdir" in
4443 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4450 if test "$ac_x_includes" = NO; then
4451 # Guess where to find include files, by looking for this one X11 .h file.
4452 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4454 # First, try using that file with no special directory specified.
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 #include <$x_direct_test_include>
4460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4461 { (eval echo configure:4462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4462 ac_err=`grep -v '^ *+' conftest.out`
4463 if test -z "$ac_err"; then
4465 # We can compile using X headers with no special include directory.
4469 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4472 # Look for the header file in a standard set of common directories.
4473 # Check X11 before X11Rn because it is often a symlink to the current release.
4476 /usr/X11R6/include \
4477 /usr/X11R5/include \
4478 /usr/X11R4/include \
4481 /usr/include/X11R6 \
4482 /usr/include/X11R5 \
4483 /usr/include/X11R4 \
4485 /usr/local/X11/include \
4486 /usr/local/X11R6/include \
4487 /usr/local/X11R5/include \
4488 /usr/local/X11R4/include \
4490 /usr/local/include/X11 \
4491 /usr/local/include/X11R6 \
4492 /usr/local/include/X11R5 \
4493 /usr/local/include/X11R4 \
4497 /usr/XFree86/include/X11 \
4500 /usr/local/include \
4501 /usr/unsupported/include \
4502 /usr/athena/include \
4503 /usr/local/x11r5/include \
4504 /usr/lpp/Xamples/include \
4506 /usr/openwin/include \
4507 /usr/openwin/share/include \
4510 if test -r "$ac_dir/$x_direct_test_include"; then
4511 ac_x_includes=$ac_dir
4517 fi # $ac_x_includes = NO
4519 if test "$ac_x_libraries" = NO; then
4520 # Check for the libraries.
4522 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4523 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4525 # See if we find them without any special options.
4526 # Don't add to $LIBS permanently.
4527 ac_save_LIBS="$LIBS"
4528 LIBS="-l$x_direct_test_library $LIBS"
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4534 ${x_direct_test_function}()
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4539 LIBS="$ac_save_LIBS"
4540 # We can link X programs with no special library path.
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4546 LIBS="$ac_save_LIBS"
4547 # First see if replacing the include by lib works.
4548 # Check X11 before X11Rn because it is often a symlink to the current release.
4549 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4560 /usr/local/X11/lib \
4561 /usr/local/X11R6/lib \
4562 /usr/local/X11R5/lib \
4563 /usr/local/X11R4/lib \
4565 /usr/local/lib/X11 \
4566 /usr/local/lib/X11R6 \
4567 /usr/local/lib/X11R5 \
4568 /usr/local/lib/X11R4 \
4572 /usr/XFree86/lib/X11 \
4576 /usr/unsupported/lib \
4578 /usr/local/x11r5/lib \
4579 /usr/lpp/Xamples/lib \
4583 /usr/openwin/share/lib \
4586 for ac_extension in a so sl; do
4587 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4588 ac_x_libraries=$ac_dir
4595 fi # $ac_x_libraries = NO
4597 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4598 # Didn't find X anywhere. Cache the known absence of X.
4599 ac_cv_have_x="have_x=no"
4601 # Record where we found X for the cache.
4602 ac_cv_have_x="have_x=yes \
4603 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4606 eval "$ac_cv_have_x"
4609 if test "$have_x" != yes; then
4610 echo "$ac_t""$have_x" 1>&6
4613 # If each of the values was on the command line, it overrides each guess.
4614 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4615 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4616 # Update the cache value to reflect the command line values.
4617 ac_cv_have_x="have_x=yes \
4618 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4619 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4622 if test "$no_x" = yes; then
4623 # Not all programs may use this symbol, but it does not hurt to define it.
4624 { test "$extra_verbose" = "yes" && cat << \EOF
4625 Defining X_DISPLAY_MISSING
4627 cat >> confdefs.h <<\EOF
4628 #define X_DISPLAY_MISSING 1
4632 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4634 if test -n "$x_includes"; then
4635 X_CFLAGS="$X_CFLAGS -I$x_includes"
4638 # It would also be nice to do this for all -L options, not just this one.
4639 if test -n "$x_libraries"; then
4640 X_LIBS="$X_LIBS -L$x_libraries"
4641 # For Solaris; some versions of Sun CC require a space after -R and
4642 # others require no space. Words are not sufficient . . . .
4643 case "`(uname -sr) 2>/dev/null`" in
4645 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4646 echo "configure:4647: checking whether -R must be followed by a space" >&5
4647 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4648 cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4656 if { (eval echo configure:4657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4660 echo "configure: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4666 if test $ac_R_nospace = yes; then
4667 echo "$ac_t""no" 1>&6
4668 X_LIBS="$X_LIBS -R$x_libraries"
4670 LIBS="$ac_xsave_LIBS -R $x_libraries"
4671 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4679 if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4683 echo "configure: failed program was:" >&5
4684 cat conftest.$ac_ext >&5
4689 if test $ac_R_space = yes; then
4690 echo "$ac_t""yes" 1>&6
4691 X_LIBS="$X_LIBS -R $x_libraries"
4693 echo "$ac_t""neither works" 1>&6
4696 LIBS="$ac_xsave_LIBS"
4700 # Check for system-dependent libraries X programs must link with.
4701 # Do this before checking for the system-independent R6 libraries
4702 # (-lICE), since we may need -lsocket or whatever for X linking.
4704 if test "$ISC" = yes; then
4705 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4707 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4708 # libraries were built with DECnet support. And karl@cs.umb.edu says
4709 # the Alpha needs dnet_stub (dnet does not exist).
4710 if test "$with_dnet" = "no" ; then
4711 ac_cv_lib_dnet_dnet_ntoa=no
4714 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4715 echo "configure:4716: checking for dnet_ntoa in -ldnet" >&5
4716 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4718 xe_check_libs=" -ldnet "
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 /* Override any gcc2 internal prototype to avoid an error. */
4723 /* We use char because int might match the return type of a gcc2
4724 builtin and then its argument prototype would still apply. */
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4733 eval "ac_cv_lib_$ac_lib_var=yes"
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4738 eval "ac_cv_lib_$ac_lib_var=no"
4743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4744 echo "$ac_t""yes" 1>&6
4745 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4747 echo "$ac_t""no" 1>&6
4752 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4754 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4755 echo "configure:4756: checking for dnet_ntoa in -ldnet_stub" >&5
4756 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4758 xe_check_libs=" -ldnet_stub "
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 /* Override any gcc2 internal prototype to avoid an error. */
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4773 eval "ac_cv_lib_$ac_lib_var=yes"
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4778 eval "ac_cv_lib_$ac_lib_var=no"
4783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4784 echo "$ac_t""yes" 1>&6
4785 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4787 echo "$ac_t""no" 1>&6
4793 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4794 # to get the SysV transport functions.
4795 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4797 # The nsl library prevents programs from opening the X display
4798 # on Irix 5.2, according to dickey@clark.net.
4799 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4800 echo "configure:4801: checking for gethostbyname" >&5
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* System header to define __stub macros and hopefully few prototypes,
4806 which can conflict with char gethostbyname(); below. */
4808 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */
4811 char gethostbyname();
4815 /* The GNU C library defines this for functions which it implements
4816 to always fail with ENOSYS. Some functions are actually named
4817 something starting with __ and the normal name is an alias. */
4818 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4828 eval "ac_cv_func_gethostbyname=yes"
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 eval "ac_cv_func_gethostbyname=no"
4837 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4838 echo "$ac_t""yes" 1>&6
4841 echo "$ac_t""no" 1>&6
4844 if test $ac_cv_func_gethostbyname = no; then
4846 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4847 echo "configure:4848: checking for gethostbyname in -lnsl" >&5
4848 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4850 xe_check_libs=" -lnsl "
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 /* We use char because int might match the return type of a gcc2
4856 builtin and then its argument prototype would still apply. */
4857 char gethostbyname();
4863 if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4865 eval "ac_cv_lib_$ac_lib_var=yes"
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4870 eval "ac_cv_lib_$ac_lib_var=no"
4875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4876 echo "$ac_t""yes" 1>&6
4877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4879 echo "$ac_t""no" 1>&6
4885 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4886 # socket/setsockopt and other routines are undefined under SCO ODT
4887 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4888 # on later versions), says simon@lia.di.epfl.ch: it contains
4889 # gethostby* variants that don't use the nameserver (or something).
4890 # -lsocket must be given before -lnsl if both are needed.
4891 # We assume that if connect needs -lnsl, so does gethostbyname.
4892 echo $ac_n "checking for connect""... $ac_c" 1>&6
4893 echo "configure:4894: checking for connect" >&5
4895 cat > conftest.$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4898 /* System header to define __stub macros and hopefully few prototypes,
4899 which can conflict with char connect(); below. */
4901 /* Override any gcc2 internal prototype to avoid an error. */
4902 /* We use char because int might match the return type of a gcc2
4903 builtin and then its argument prototype would still apply. */
4908 /* The GNU C library defines this for functions which it implements
4909 to always fail with ENOSYS. Some functions are actually named
4910 something starting with __ and the normal name is an alias. */
4911 #if defined (__stub_connect) || defined (__stub___connect)
4919 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4921 eval "ac_cv_func_connect=yes"
4923 echo "configure: failed program was:" >&5
4924 cat conftest.$ac_ext >&5
4926 eval "ac_cv_func_connect=no"
4930 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4931 echo "$ac_t""yes" 1>&6
4934 echo "$ac_t""no" 1>&6
4937 if test $ac_cv_func_connect = no; then
4939 xe_msg_checking="for connect in -lsocket"
4940 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4941 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4942 echo "configure:4943: checking "$xe_msg_checking"" >&5
4943 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4945 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4946 cat > conftest.$ac_ext <<EOF
4947 #line 4948 "configure"
4948 #include "confdefs.h"
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4958 if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4960 eval "ac_cv_lib_$ac_lib_var=yes"
4962 echo "configure: failed program was:" >&5
4963 cat conftest.$ac_ext >&5
4965 eval "ac_cv_lib_$ac_lib_var=no"
4970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4971 echo "$ac_t""yes" 1>&6
4972 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4974 echo "$ac_t""no" 1>&6
4980 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4981 echo $ac_n "checking for remove""... $ac_c" 1>&6
4982 echo "configure:4983: checking for remove" >&5
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* System header to define __stub macros and hopefully few prototypes,
4988 which can conflict with char remove(); below. */
4990 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4997 /* The GNU C library defines this for functions which it implements
4998 to always fail with ENOSYS. Some functions are actually named
4999 something starting with __ and the normal name is an alias. */
5000 #if defined (__stub_remove) || defined (__stub___remove)
5008 if { (eval echo configure:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5010 eval "ac_cv_func_remove=yes"
5012 echo "configure: failed program was:" >&5
5013 cat conftest.$ac_ext >&5
5015 eval "ac_cv_func_remove=no"
5019 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5020 echo "$ac_t""yes" 1>&6
5023 echo "$ac_t""no" 1>&6
5026 if test $ac_cv_func_remove = no; then
5028 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5029 echo "configure:5030: checking for remove in -lposix" >&5
5030 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5032 xe_check_libs=" -lposix "
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5036 /* Override any gcc2 internal prototype to avoid an error. */
5037 /* We use char because int might match the return type of a gcc2
5038 builtin and then its argument prototype would still apply. */
5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5047 eval "ac_cv_lib_$ac_lib_var=yes"
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5052 eval "ac_cv_lib_$ac_lib_var=no"
5057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5058 echo "$ac_t""yes" 1>&6
5059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5061 echo "$ac_t""no" 1>&6
5067 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5068 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5069 echo "configure:5070: checking for shmat" >&5
5071 cat > conftest.$ac_ext <<EOF
5072 #line 5073 "configure"
5073 #include "confdefs.h"
5074 /* System header to define __stub macros and hopefully few prototypes,
5075 which can conflict with char shmat(); below. */
5077 /* Override any gcc2 internal prototype to avoid an error. */
5078 /* We use char because int might match the return type of a gcc2
5079 builtin and then its argument prototype would still apply. */
5084 /* The GNU C library defines this for functions which it implements
5085 to always fail with ENOSYS. Some functions are actually named
5086 something starting with __ and the normal name is an alias. */
5087 #if defined (__stub_shmat) || defined (__stub___shmat)
5095 if { (eval echo configure:5096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5097 eval "ac_cv_func_shmat=yes"
5099 echo "configure: failed program was:" >&5
5100 cat conftest.$ac_ext >&5
5102 eval "ac_cv_func_shmat=no"
5106 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5107 echo "$ac_t""yes" 1>&6
5110 echo "$ac_t""no" 1>&6
5113 if test $ac_cv_func_shmat = no; then
5115 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5116 echo "configure:5117: checking for shmat in -lipc" >&5
5117 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5119 xe_check_libs=" -lipc "
5120 cat > conftest.$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5123 /* Override any gcc2 internal prototype to avoid an error. */
5124 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5134 eval "ac_cv_lib_$ac_lib_var=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5139 eval "ac_cv_lib_$ac_lib_var=no"
5144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5145 echo "$ac_t""yes" 1>&6
5146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5148 echo "$ac_t""no" 1>&6
5155 # Check for libraries that X11R6 Xt/Xaw programs need.
5156 ac_save_LDFLAGS="$LDFLAGS"
5157 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5158 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5159 # check for ICE first), but we must link in the order -lSM -lICE or
5160 # we get undefined symbols. So assume we have SM if we have ICE.
5161 # These have to be linked with before -lX11, unlike the other
5162 # libraries we check for below, so use a different variable.
5163 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5165 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5166 echo "configure:5167: checking for IceConnectionNumber in -lICE" >&5
5167 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5169 xe_check_libs=" -lICE "
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5176 char IceConnectionNumber();
5179 IceConnectionNumber()
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5184 eval "ac_cv_lib_$ac_lib_var=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 eval "ac_cv_lib_$ac_lib_var=no"
5194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5195 echo "$ac_t""yes" 1>&6
5196 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5198 echo "$ac_t""no" 1>&6
5202 LDFLAGS="$ac_save_LDFLAGS"
5205 # Autoconf claims to find X library and include dirs for us.
5206 if test "$no_x" = "yes"
5207 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5208 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5213 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5214 no ) window_system=none HAVE_X_WINDOWS=no ;;
5217 if test "$with_x11" = "yes"; then
5218 { test "$extra_verbose" = "yes" && cat << \EOF
5219 Defining HAVE_X_WINDOWS
5221 cat >> confdefs.h <<\EOF
5222 #define HAVE_X_WINDOWS 1
5226 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5227 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5229 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5230 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5231 if test -d "$lib_dir" -a -d "$inc_dir"; then
5232 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5233 x_libraries="$lib_dir $x_libraries"
5234 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5236 case "$x_includes" in "$inc_dir"* ) ;; *)
5237 x_includes="$inc_dir $x_includes"
5238 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5243 for rel in "X11R6" "X11R5" "X11R4"; do
5244 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5245 if test -d "$lib_dir" -a -d "$inc_dir"; then
5246 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5247 x_libraries="$x_libraries $lib_dir"
5248 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5250 case "$x_includes" in "$inc_dir"* ) ;; *)
5251 x_includes="$x_includes $inc_dir"
5252 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5257 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
5259 ld_switch_x_site="$X_LIBS"
5262 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5263 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5264 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5266 runpath="" runpath_dirs=""
5267 if test -n "$LD_RUN_PATH"; then
5268 runpath="$LD_RUN_PATH"
5269 elif test "$GCC" = "yes"; then
5270 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5271 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5272 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5273 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5274 case "$arg" in P,* | -L* | -R* )
5275 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5277 xe_runpath_dir="$dir"
5278 test "$xe_runpath_dir" != "/lib" -a \
5279 "$xe_runpath_dir" != "/usr/lib" -a \
5280 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5281 eval "$xe_add_unique_runpath_dir"
5286 ld_switch_run="$ld_switch_run_save"
5289 for arg in $ld_switch_site $ld_switch_x_site; do
5290 case "$arg" in -L*) {
5291 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5292 test "$xe_runpath_dir" != "/lib" -a \
5293 "$xe_runpath_dir" != "/usr/lib" -a \
5294 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5295 eval "$xe_add_unique_runpath_dir"
5298 if test "$opsys $need_motif" = "sol2 yes"; then
5299 xe_runpath_dir="/opt/SUNWdt/lib";
5300 eval "$xe_add_unique_runpath_dir";
5303 if test -n "$runpath"; then
5304 ld_switch_run="${dash_r}${runpath}"
5306 if test "$GCC" = "yes"; then
5307 set x $ld_switch_run; shift; ld_switch_run=""
5308 while test -n "$1"; do
5310 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5311 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5313 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5318 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5323 if test "$extra_verbose" = "yes"; then
5324 echo; echo "X11 compilation variables:"
5325 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5330 if test "$x_includes" != NONE; then
5331 for i in $x_includes; do
5332 if test -d "$i/bitmaps"; then
5333 bitmapdirs="$i/bitmaps:$bitmapdirs"
5335 if test -d "$i/X11/bitmaps"; then
5336 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5339 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5341 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5342 Defining BITMAPDIR = "$bitmapdirs"
5344 cat >> confdefs.h <<EOF
5345 #define BITMAPDIR "$bitmapdirs"
5350 echo "checking for X defines extracted by xmkmf" 1>&6
5351 echo "configure:5352: checking for X defines extracted by xmkmf" >&5
5353 if mkdir conftestdir; then
5355 cat > Imakefile <<'EOF'
5357 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5359 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5360 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5361 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5365 for word in $xmkmf_defines; do
5368 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5369 { test "$extra_verbose" = "yes" && cat << EOF
5372 cat >> confdefs.h <<EOF
5381 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5382 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5383 echo "configure:5384: checking for X11/Intrinsic.h" >&5
5385 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5388 #include <X11/Intrinsic.h>
5390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5391 { (eval echo configure:5392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5392 ac_err=`grep -v '^ *+' conftest.out`
5393 if test -z "$ac_err"; then
5395 eval "ac_cv_header_$ac_safe=yes"
5398 echo "configure: failed program was:" >&5
5399 cat conftest.$ac_ext >&5
5401 eval "ac_cv_header_$ac_safe=no"
5404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5405 echo "$ac_t""yes" 1>&6
5408 echo "$ac_t""no" 1>&6
5409 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5414 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5415 echo "configure:5416: checking for XOpenDisplay in -lX11" >&5
5416 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5418 xe_check_libs=" -lX11 "
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422 /* Override any gcc2 internal prototype to avoid an error. */
5423 /* We use char because int might match the return type of a gcc2
5424 builtin and then its argument prototype would still apply. */
5425 char XOpenDisplay();
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5433 eval "ac_cv_lib_$ac_lib_var=yes"
5435 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5438 eval "ac_cv_lib_$ac_lib_var=no"
5443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5444 echo "$ac_t""yes" 1>&6
5447 echo "$ac_t""no" 1>&6
5451 if test "$have_lib_x11" != "yes"; then
5453 xe_msg_checking="for XGetFontProperty in -lX11"
5454 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5455 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5456 echo "configure:5457: checking "$xe_msg_checking"" >&5
5457 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5459 xe_check_libs=" -lX11 -b i486-linuxaout"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5466 char XGetFontProperty();
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5474 eval "ac_cv_lib_$ac_lib_var=yes"
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 eval "ac_cv_lib_$ac_lib_var=no"
5484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5485 echo "$ac_t""yes" 1>&6
5486 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5488 echo "$ac_t""no" 1>&6
5489 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5495 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5498 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5499 echo "configure:5500: checking for XShapeSelectInput in -lXext" >&5
5500 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5502 xe_check_libs=" -lXext "
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506 /* Override any gcc2 internal prototype to avoid an error. */
5507 /* We use char because int might match the return type of a gcc2
5508 builtin and then its argument prototype would still apply. */
5509 char XShapeSelectInput();
5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5517 eval "ac_cv_lib_$ac_lib_var=yes"
5519 echo "configure: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5522 eval "ac_cv_lib_$ac_lib_var=no"
5527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5528 echo "$ac_t""yes" 1>&6
5529 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5531 echo "$ac_t""no" 1>&6
5537 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5538 echo "configure:5539: checking for XtOpenDisplay in -lXt" >&5
5539 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5541 xe_check_libs=" -lXt "
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5548 char XtOpenDisplay();
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5556 eval "ac_cv_lib_$ac_lib_var=yes"
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 eval "ac_cv_lib_$ac_lib_var=no"
5566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5567 echo "$ac_t""yes" 1>&6
5568 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5570 echo "$ac_t""no" 1>&6
5571 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5576 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5577 echo "configure:5578: checking the version of X11 being used" >&5
5578 cat > conftest.$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5581 #include <X11/Intrinsic.h>
5582 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5586 ./conftest foobar; x11_release=$?
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5595 echo "$ac_t""R${x11_release}" 1>&6
5596 { test "$extra_verbose" = "yes" && cat << EOF
5597 Defining THIS_IS_X11R${x11_release}
5599 cat >> confdefs.h <<EOF
5600 #define THIS_IS_X11R${x11_release} 1
5605 for ac_hdr in X11/Xlocale.h
5607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5609 echo "configure:5610: checking for $ac_hdr" >&5
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5617 { (eval echo configure:5618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5618 ac_err=`grep -v '^ *+' conftest.out`
5619 if test -z "$ac_err"; then
5621 eval "ac_cv_header_$ac_safe=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5627 eval "ac_cv_header_$ac_safe=no"
5630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5633 { test "$extra_verbose" = "yes" && cat << EOF
5636 cat >> confdefs.h <<EOF
5637 #define $ac_tr_hdr 1
5642 echo "$ac_t""no" 1>&6
5647 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5648 echo "configure:5649: checking for XFree86" >&5
5649 if test -d "/usr/X386/include" -o \
5650 -f "/etc/XF86Config" -o \
5651 -f "/etc/X11/XF86Config" -o \
5652 -f "/usr/X11R6/lib/X11/XF86Config"; then
5653 echo "$ac_t""yes" 1>&6
5654 { test "$extra_verbose" = "yes" && cat << \EOF
5655 Defining HAVE_XFREE386
5657 cat >> confdefs.h <<\EOF
5658 #define HAVE_XFREE386 1
5663 echo "$ac_t""no" 1>&6
5666 test -z "$with_xmu" && {
5667 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5668 echo "configure:5669: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5669 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5671 xe_check_libs=" -lXmu "
5672 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5678 char XmuReadBitmapDataFromFile();
5681 XmuReadBitmapDataFromFile()
5684 if { (eval echo configure:5685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5686 eval "ac_cv_lib_$ac_lib_var=yes"
5688 echo "configure: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5691 eval "ac_cv_lib_$ac_lib_var=no"
5696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5697 echo "$ac_t""yes" 1>&6
5700 echo "$ac_t""no" 1>&6
5705 if test "$with_xmu" = "no"; then
5706 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5707 echo " xemacs will be linked with \"xmu.o\""
5710 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5711 { test "$extra_verbose" = "yes" && cat << \EOF
5714 cat >> confdefs.h <<\EOF
5722 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5723 echo "configure:5724: checking for main in -lXbsd" >&5
5724 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5726 xe_check_libs=" -lXbsd "
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5737 eval "ac_cv_lib_$ac_lib_var=yes"
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5742 eval "ac_cv_lib_$ac_lib_var=no"
5747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5748 echo "$ac_t""yes" 1>&6
5749 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5751 echo "$ac_t""no" 1>&6
5756 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5757 if test "$GCC" = "yes"; then
5758 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5759 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5762 "xlc" ) CC="xlc_r" ;;
5763 "xlC" ) CC="xlC_r" ;;
5770 if test "$with_msw" != "no"; then
5771 echo "checking for MS-Windows" 1>&6
5772 echo "configure:5773: checking for MS-Windows" >&5
5774 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5775 echo "configure:5776: checking for main in -lgdi32" >&5
5776 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5778 xe_check_libs=" -lgdi32 "
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5789 eval "ac_cv_lib_$ac_lib_var=yes"
5791 echo "configure: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5794 eval "ac_cv_lib_$ac_lib_var=no"
5799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5800 echo "$ac_t""yes" 1>&6
5803 echo "$ac_t""no" 1>&6
5807 if test "$with_msw" = "yes"; then
5808 { test "$extra_verbose" = "yes" && cat << \EOF
5809 Defining HAVE_MS_WINDOWS
5811 cat >> confdefs.h <<\EOF
5812 #define HAVE_MS_WINDOWS 1
5816 install_pp="$blddir/lib-src/installexe.sh"
5817 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
5818 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
5819 if test "$window_system" != x11; then
5821 test "$with_scrollbars" != "no" && with_scrollbars=msw \
5822 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
5823 echo " xemacs will be linked with \"scrollbar-msw.o\""
5825 test "$with_menubars" != "no" && with_menubars=msw \
5826 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
5827 echo " xemacs will be linked with \"menubar-msw.o\""
5829 test "$with_toolbars" != "no" && with_toolbars=msw \
5830 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
5831 echo " xemacs will be linked with \"toolbar-msw.o\""
5833 test "$with_dialogs" != "no" && with_dialogs=msw \
5834 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5835 echo " xemacs will be linked with \"dialog-msw.o\""
5838 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
5839 echo " xemacs will be linked with \"scrollbar-msw.o\""
5841 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
5842 echo " xemacs will be linked with \"menubar-msw.o\""
5844 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
5845 echo " xemacs will be linked with \"toolbar-msw.o\""
5847 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5848 echo " xemacs will be linked with \"dialog-msw.o\""
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5855 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
5857 if { (eval echo configure:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5859 { test "$extra_verbose" = "yes" && cat << \EOF
5860 Defining HAVE_MSG_SELECT
5862 cat >> confdefs.h <<\EOF
5863 #define HAVE_MSG_SELECT 1
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5874 with_file_coding=yes
5875 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
5876 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\""
5883 test -z "$window_system" && window_system="none"
5885 if test "$window_system" = "none"; then
5886 for feature in menubars scrollbars toolbars dialogs dragndrop xface
5888 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5889 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
5891 eval "with_${feature}=no"
5894 test -z "$with_toolbars" && with_toolbars=yes
5897 if test "$with_msw" != "yes"; then
5898 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
5900 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5901 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
5903 eval "with_${feature}=no"
5909 if test "$with_x11" != "yes"; then
5910 for feature in tooltalk cde offix session xim xmu
5912 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5913 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
5915 eval "with_${feature}=no"
5921 case "$window_system" in
5922 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
5923 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
5924 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
5927 case "$x_libraries" in *X11R4* )
5928 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5929 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5932 echo "checking for session-management option" 1>&6
5933 echo "configure:5934: checking for session-management option" >&5;
5934 if test "$with_session" != "no"; then
5935 { test "$extra_verbose" = "yes" && cat << \EOF
5936 Defining HAVE_SESSION
5938 cat >> confdefs.h <<\EOF
5939 #define HAVE_SESSION 1
5945 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5946 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5947 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5948 echo "configure:5949: checking for X11/Xauth.h" >&5
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 #include <X11/Xauth.h>
5955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5956 { (eval echo configure:5957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5957 ac_err=`grep -v '^ *+' conftest.out`
5958 if test -z "$ac_err"; then
5960 eval "ac_cv_header_$ac_safe=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5966 eval "ac_cv_header_$ac_safe=no"
5969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5973 echo "$ac_t""no" 1>&6
5977 test -z "$with_xauth" && {
5978 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5979 echo "configure:5980: checking for XauGetAuthByAddr in -lXau" >&5
5980 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5982 xe_check_libs=" -lXau "
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5989 char XauGetAuthByAddr();
5995 if { (eval echo configure:5996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5997 eval "ac_cv_lib_$ac_lib_var=yes"
5999 echo "configure: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6002 eval "ac_cv_lib_$ac_lib_var=no"
6007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6008 echo "$ac_t""yes" 1>&6
6011 echo "$ac_t""no" 1>&6
6016 test -z "$with_xauth" && with_xauth=yes
6017 if test "$with_xauth" = "yes"; then
6018 { test "$extra_verbose" = "yes" && cat << \EOF
6021 cat >> confdefs.h <<\EOF
6022 #define HAVE_XAUTH 1
6028 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
6036 if test "$with_tooltalk" != "no" ; then
6037 for dir in "" "Tt/" "desktop/" ; do
6038 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6039 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6040 echo "configure:6041: checking for ${dir}tt_c.h" >&5
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 #include <${dir}tt_c.h>
6047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6048 { (eval echo configure:6049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6049 ac_err=`grep -v '^ *+' conftest.out`
6050 if test -z "$ac_err"; then
6052 eval "ac_cv_header_$ac_safe=yes"
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6058 eval "ac_cv_header_$ac_safe=no"
6061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 tt_c_h_path="${dir}tt_c.h"; break
6065 echo "$ac_t""no" 1>&6
6069 if test -z "$tt_c_h_path"; then
6070 if test "$with_tooltalk" = "yes"; then
6071 (echo "$progname: Usage error:"
6072 echo " " "Unable to find required tooltalk header files."
6073 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6078 if test "$with_tooltalk" != "no" ; then
6079 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6081 xe_msg_checking="for tt_message_create in -ltt"
6082 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6083 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6084 echo "configure:6085: checking "$xe_msg_checking"" >&5
6085 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6087 xe_check_libs=" -ltt $extra_libs"
6088 cat > conftest.$ac_ext <<EOF
6089 #line 6090 "configure"
6090 #include "confdefs.h"
6091 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6094 char tt_message_create();
6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6102 eval "ac_cv_lib_$ac_lib_var=yes"
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6107 eval "ac_cv_lib_$ac_lib_var=no"
6112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6113 echo "$ac_t""yes" 1>&6
6114 tt_libs="-ltt $extra_libs"; break
6116 echo "$ac_t""no" 1>&6
6122 if test -z "$tt_libs"; then
6123 if test "$with_tooltalk" = "yes"; then
6124 (echo "$progname: Usage error:"
6125 echo " " "Unable to find required tooltalk libraries."
6126 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6131 test -z "$with_tooltalk" && with_tooltalk=yes
6132 if test "$with_tooltalk" = "yes"; then
6133 { test "$extra_verbose" = "yes" && cat << \EOF
6136 cat >> confdefs.h <<\EOF
6141 { test "$extra_verbose" = "yes" && cat << EOF
6142 Defining TT_C_H_PATH = "$tt_c_h_path"
6144 cat >> confdefs.h <<EOF
6145 #define TT_C_H_PATH "$tt_c_h_path"
6149 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6150 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6151 echo " xemacs will be linked with \"tooltalk.o\""
6155 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6156 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6157 echo "configure:6158: checking for Dt/Dt.h" >&5
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6165 { (eval echo configure:6166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6166 ac_err=`grep -v '^ *+' conftest.out`
6167 if test -z "$ac_err"; then
6169 eval "ac_cv_header_$ac_safe=yes"
6172 echo "configure: failed program was:" >&5
6173 cat conftest.$ac_ext >&5
6175 eval "ac_cv_header_$ac_safe=no"
6178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6182 echo "$ac_t""no" 1>&6
6186 test -z "$with_cde" && {
6187 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6188 echo "configure:6189: checking for DtDndDragStart in -lDtSvc" >&5
6189 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6191 xe_check_libs=" -lDtSvc "
6192 cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6195 /* Override any gcc2 internal prototype to avoid an error. */
6196 /* We use char because int might match the return type of a gcc2
6197 builtin and then its argument prototype would still apply. */
6198 char DtDndDragStart();
6204 if { (eval echo configure:6205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6206 eval "ac_cv_lib_$ac_lib_var=yes"
6208 echo "configure: failed program was:" >&5
6209 cat conftest.$ac_ext >&5
6211 eval "ac_cv_lib_$ac_lib_var=no"
6216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6217 echo "$ac_t""yes" 1>&6
6220 echo "$ac_t""no" 1>&6
6225 test -z "$with_cde" && with_cde=yes
6226 if test "$with_dragndrop" = no; then
6227 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6230 if test "$with_cde" = "yes" ; then
6231 { test "$extra_verbose" = "yes" && cat << \EOF
6234 cat >> confdefs.h <<\EOF
6239 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6240 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6241 with_tooltalk=yes # CDE requires Tooltalk
6242 need_motif=yes # CDE requires Motif
6245 test "$window_system" != "x11" && with_offix=no
6246 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6247 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6250 if test "$with_dragndrop" = no; then
6251 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6254 if test "$with_cde" = yes; then
6255 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6258 test -z "$with_offix" && with_offix=no
6259 if test "$with_offix" = "yes"; then
6260 { test "$extra_verbose" = "yes" && cat << \EOF
6261 Defining HAVE_OFFIX_DND
6263 cat >> confdefs.h <<\EOF
6264 #define HAVE_OFFIX_DND 1
6268 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6269 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6272 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6273 echo "configure:6274: checking if drag and drop API is needed" >&5
6274 if test "$with_dragndrop" != "no" ; then
6275 if test -n "$dragndrop_proto" ; then
6277 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6278 { test "$extra_verbose" = "yes" && cat << \EOF
6279 Defining HAVE_DRAGNDROP
6281 cat >> confdefs.h <<\EOF
6282 #define HAVE_DRAGNDROP 1
6286 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6289 echo "$ac_t""no" 1>&6
6293 echo "checking for LDAP" 1>&6
6294 echo "configure:6295: checking for LDAP" >&5
6295 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6296 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6297 echo "configure:6298: checking for ldap.h" >&5
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6305 { (eval echo configure:6306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6306 ac_err=`grep -v '^ *+' conftest.out`
6307 if test -z "$ac_err"; then
6309 eval "ac_cv_header_$ac_safe=yes"
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6315 eval "ac_cv_header_$ac_safe=no"
6318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6319 echo "$ac_t""yes" 1>&6
6322 echo "$ac_t""no" 1>&6
6326 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6327 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6328 echo "configure:6329: checking for lber.h" >&5
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6336 { (eval echo configure:6337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6337 ac_err=`grep -v '^ *+' conftest.out`
6338 if test -z "$ac_err"; then
6340 eval "ac_cv_header_$ac_safe=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 eval "ac_cv_header_$ac_safe=no"
6349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6350 echo "$ac_t""yes" 1>&6
6353 echo "$ac_t""no" 1>&6
6357 if test "$with_ldap" != "no"; then
6358 test -z "$with_umich_ldap" && {
6359 xe_msg_checking="for ldap_open in -lldap"
6360 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6361 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6362 echo "configure:6363: checking "$xe_msg_checking"" >&5
6363 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6365 xe_check_libs=" -lldap -llber"
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6369 /* Override any gcc2 internal prototype to avoid an error. */
6370 /* We use char because int might match the return type of a gcc2
6371 builtin and then its argument prototype would still apply. */
6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6380 eval "ac_cv_lib_$ac_lib_var=yes"
6382 echo "configure: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6385 eval "ac_cv_lib_$ac_lib_var=no"
6390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6391 echo "$ac_t""yes" 1>&6
6394 echo "$ac_t""no" 1>&6
6399 test "$with_umich_ldap" = "no" && {
6400 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6401 echo "configure:6402: checking for ldap_set_option in -lldap10" >&5
6402 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6404 xe_check_libs=" -lldap10 "
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6411 char ldap_set_option();
6417 if { (eval echo configure:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6419 eval "ac_cv_lib_$ac_lib_var=yes"
6421 echo "configure: failed program was:" >&5
6422 cat conftest.$ac_ext >&5
6424 eval "ac_cv_lib_$ac_lib_var=no"
6429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6430 echo "$ac_t""yes" 1>&6
6433 echo "$ac_t""no" 1>&6
6438 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
6440 if test "$with_ldap" = "yes"; then
6441 { test "$extra_verbose" = "yes" && cat << \EOF
6444 cat >> confdefs.h <<\EOF
6449 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6450 echo " xemacs will be linked with \"eldap.o\""
6452 if test "$with_umich_ldap" = "yes" ; then
6453 { test "$extra_verbose" = "yes" && cat << \EOF
6454 Defining HAVE_UMICH_LDAP
6456 cat >> confdefs.h <<\EOF
6457 #define HAVE_UMICH_LDAP 1
6461 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6462 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6463 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6464 { test "$extra_verbose" = "yes" && cat << \EOF
6465 Defining HAVE_NS_LDAP
6467 cat >> confdefs.h <<\EOF
6468 #define HAVE_NS_LDAP 1
6472 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6473 elif test "$with_ldap" = "yes" ; then
6474 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6479 if test "$window_system" != "none"; then
6480 echo "checking for graphics libraries" 1>&6
6481 echo "configure:6482: checking for graphics libraries" >&5
6484 if test -z "$with_xpm"; then
6485 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6486 echo "configure:6487: checking for Xpm - no older than 3.4f" >&5
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6491 #include <X11/xpm.h>
6492 int main(int c, char **v) {
6494 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6495 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6497 if { (eval echo configure:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6499 ./conftest dummy_arg; xpm_status=$?;
6500 if test "$xpm_status" = "0"; then
6504 if test "$xpm_status" = "1"; then
6505 xpm_problem="Xpm library version and header file version don't match!"
6506 elif test "$xpm_status" = "2"; then
6507 xpm_problem="Xpm library version is too old!"
6509 xpm_problem="Internal xpm detection logic error!"
6512 *** WARNING *** $xpm_problem
6513 I'm not touching that with a 10-foot pole!
6514 If you really want to use the installed version of Xpm, rerun
6515 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6519 echo "configure: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6526 echo "$ac_t""$with_xpm" 1>&6
6528 if test "$with_xpm" = "yes"; then
6529 { test "$extra_verbose" = "yes" && cat << \EOF
6532 cat >> confdefs.h <<\EOF
6537 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6538 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6539 echo "configure:6540: checking for \"FOR_MSW\" xpm" >&5
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6546 XpmCreatePixmapFromData()
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6553 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6560 echo "$ac_t""$xpm_for_msw" 1>&6
6561 if test "$xpm_for_msw" = "yes"; then
6562 { test "$extra_verbose" = "yes" && cat << \EOF
6565 cat >> confdefs.h <<\EOF
6573 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6574 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6575 echo "configure:6576: checking for compface.h" >&5
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580 #include <compface.h>
6582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6583 { (eval echo configure:6584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6584 ac_err=`grep -v '^ *+' conftest.out`
6585 if test -z "$ac_err"; then
6587 eval "ac_cv_header_$ac_safe=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 eval "ac_cv_header_$ac_safe=no"
6596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6597 echo "$ac_t""yes" 1>&6
6600 echo "$ac_t""no" 1>&6
6604 test -z "$with_xface" && {
6605 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6606 echo "configure:6607: checking for UnGenFace in -lcompface" >&5
6607 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6609 xe_check_libs=" -lcompface "
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6613 /* Override any gcc2 internal prototype to avoid an error. */
6614 /* We use char because int might match the return type of a gcc2
6615 builtin and then its argument prototype would still apply. */
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6624 eval "ac_cv_lib_$ac_lib_var=yes"
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6629 eval "ac_cv_lib_$ac_lib_var=no"
6634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6635 echo "$ac_t""yes" 1>&6
6638 echo "$ac_t""no" 1>&6
6643 test -z "$with_xface" && with_xface=yes
6644 if test "$with_xface" = "yes"; then
6645 { test "$extra_verbose" = "yes" && cat << \EOF
6648 cat >> confdefs.h <<\EOF
6649 #define HAVE_XFACE 1
6653 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6656 if test "$with_gif" != "no"; then
6658 { test "$extra_verbose" = "yes" && cat << \EOF
6661 cat >> confdefs.h <<\EOF
6666 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6667 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6671 if test "$with_png $with_tiff" != "no no"; then
6673 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6674 echo "configure:6675: checking for inflate in -lc" >&5
6675 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6677 xe_check_libs=" -lc "
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6692 eval "ac_cv_lib_$ac_lib_var=yes"
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6697 eval "ac_cv_lib_$ac_lib_var=no"
6702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6703 echo "$ac_t""yes" 1>&6
6706 echo "$ac_t""no" 1>&6
6708 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6709 echo "configure:6710: checking for inflate in -lz" >&5
6710 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6712 xe_check_libs=" -lz "
6713 cat > conftest.$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6716 /* Override any gcc2 internal prototype to avoid an error. */
6717 /* We use char because int might match the return type of a gcc2
6718 builtin and then its argument prototype would still apply. */
6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6727 eval "ac_cv_lib_$ac_lib_var=yes"
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 eval "ac_cv_lib_$ac_lib_var=no"
6737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6738 echo "$ac_t""yes" 1>&6
6739 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6741 echo "$ac_t""no" 1>&6
6743 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6744 echo "configure:6745: checking for inflate in -lgz" >&5
6745 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6747 xe_check_libs=" -lgz "
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6751 /* Override any gcc2 internal prototype to avoid an error. */
6752 /* We use char because int might match the return type of a gcc2
6753 builtin and then its argument prototype would still apply. */
6760 if { (eval echo configure:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6762 eval "ac_cv_lib_$ac_lib_var=yes"
6764 echo "configure: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6767 eval "ac_cv_lib_$ac_lib_var=no"
6772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6773 echo "$ac_t""yes" 1>&6
6774 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
6776 echo "$ac_t""no" 1>&6
6788 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6789 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6790 echo "configure:6791: checking for jpeglib.h" >&5
6792 cat > conftest.$ac_ext <<EOF
6793 #line 6794 "configure"
6794 #include "confdefs.h"
6795 #include <jpeglib.h>
6797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6798 { (eval echo configure:6799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6799 ac_err=`grep -v '^ *+' conftest.out`
6800 if test -z "$ac_err"; then
6802 eval "ac_cv_header_$ac_safe=yes"
6805 echo "configure: failed program was:" >&5
6806 cat conftest.$ac_ext >&5
6808 eval "ac_cv_header_$ac_safe=no"
6811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6812 echo "$ac_t""yes" 1>&6
6815 echo "$ac_t""no" 1>&6
6819 test -z "$with_jpeg" && {
6820 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6821 echo "configure:6822: checking for jpeg_destroy_decompress in -ljpeg" >&5
6822 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6824 xe_check_libs=" -ljpeg "
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6828 /* Override any gcc2 internal prototype to avoid an error. */
6829 /* We use char because int might match the return type of a gcc2
6830 builtin and then its argument prototype would still apply. */
6831 char jpeg_destroy_decompress();
6834 jpeg_destroy_decompress()
6837 if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6839 eval "ac_cv_lib_$ac_lib_var=yes"
6841 echo "configure: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6844 eval "ac_cv_lib_$ac_lib_var=no"
6849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6850 echo "$ac_t""yes" 1>&6
6853 echo "$ac_t""no" 1>&6
6858 test -z "$with_jpeg" && with_jpeg=yes
6859 if test "$with_jpeg" = "yes"; then
6860 { test "$extra_verbose" = "yes" && cat << \EOF
6863 cat >> confdefs.h <<\EOF
6868 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6872 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6873 echo "configure:6874: checking for pow" >&5
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6878 /* System header to define __stub macros and hopefully few prototypes,
6879 which can conflict with char pow(); below. */
6881 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6888 /* The GNU C library defines this for functions which it implements
6889 to always fail with ENOSYS. Some functions are actually named
6890 something starting with __ and the normal name is an alias. */
6891 #if defined (__stub_pow) || defined (__stub___pow)
6899 if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6901 eval "ac_cv_func_pow=yes"
6903 echo "configure: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6906 eval "ac_cv_func_pow=no"
6910 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
6911 echo "$ac_t""yes" 1>&6
6914 echo "$ac_t""no" 1>&6
6918 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6919 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6920 echo "configure:6921: checking for png.h" >&5
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6928 { (eval echo configure:6929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6929 ac_err=`grep -v '^ *+' conftest.out`
6930 if test -z "$ac_err"; then
6932 eval "ac_cv_header_$ac_safe=yes"
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 eval "ac_cv_header_$ac_safe=no"
6941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6942 echo "$ac_t""yes" 1>&6
6945 echo "$ac_t""no" 1>&6
6949 test -z "$with_png" && {
6950 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
6951 echo "configure:6952: checking for png_read_image in -lpng" >&5
6952 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6954 xe_check_libs=" -lpng "
6955 cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure"
6957 #include "confdefs.h"
6958 /* Override any gcc2 internal prototype to avoid an error. */
6959 /* We use char because int might match the return type of a gcc2
6960 builtin and then its argument prototype would still apply. */
6961 char png_read_image();
6967 if { (eval echo configure:6968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6969 eval "ac_cv_lib_$ac_lib_var=yes"
6971 echo "configure: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6974 eval "ac_cv_lib_$ac_lib_var=no"
6979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6980 echo "$ac_t""yes" 1>&6
6983 echo "$ac_t""no" 1>&6
6988 if test -z "$with_png"; then
6989 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
6990 echo "configure:6991: checking for workable png version information" >&5
6991 xe_check_libs="-lpng -lz"
6992 cat > conftest.$ac_ext <<EOF
6993 #line 6994 "configure"
6994 #include "confdefs.h"
6996 int main(int c, char **v) {
6997 if (c == 1) return 0;
6998 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
6999 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7001 if { (eval echo configure:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7003 ./conftest dummy_arg; png_status=$?;
7004 if test "$png_status" = "0"; then
7008 if test "$png_status" = "1"; then
7009 png_problem="PNG library version and header file don't match!"
7010 elif test "$png_status" = "2"; then
7011 png_problem="PNG library version too old (pre 1.0.2)!"
7014 *** WARNING *** $png_problem
7015 I'm not touching that with a 10-foot pole!
7016 If you really want to use the installed version of libPNG, rerun
7017 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7021 echo "configure: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7028 echo "$ac_t""$with_png" 1>&6
7030 if test "$with_png" = "yes"; then
7031 { test "$extra_verbose" = "yes" && cat << \EOF
7034 cat >> confdefs.h <<\EOF
7039 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7042 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7043 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7044 echo "configure:7045: checking for tiffio.h" >&5
7046 cat > conftest.$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7052 { (eval echo configure:7053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7053 ac_err=`grep -v '^ *+' conftest.out`
7054 if test -z "$ac_err"; then
7056 eval "ac_cv_header_$ac_safe=yes"
7059 echo "configure: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7062 eval "ac_cv_header_$ac_safe=no"
7065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7066 echo "$ac_t""yes" 1>&6
7069 echo "$ac_t""no" 1>&6
7073 test -z "$with_tiff" && {
7074 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7075 echo "configure:7076: checking for TIFFClientOpen in -ltiff" >&5
7076 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7078 xe_check_libs=" -ltiff "
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7085 char TIFFClientOpen();
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7093 eval "ac_cv_lib_$ac_lib_var=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7098 eval "ac_cv_lib_$ac_lib_var=no"
7103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7104 echo "$ac_t""yes" 1>&6
7107 echo "$ac_t""no" 1>&6
7112 test -z "$with_tiff" && with_tiff=yes
7113 if test "$with_tiff" = "yes"; then
7114 { test "$extra_verbose" = "yes" && cat << \EOF
7117 cat >> confdefs.h <<\EOF
7122 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7127 if test "$with_x11" = "yes"; then
7129 echo "checking for X11 graphics libraries" 1>&6
7130 echo "configure:7131: checking for X11 graphics libraries" >&5
7133 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7134 echo "configure:7135: checking for XawScrollbarSetThumb in -lXaw" >&5
7135 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7137 xe_check_libs=" -lXaw "
7138 cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7141 /* Override any gcc2 internal prototype to avoid an error. */
7142 /* We use char because int might match the return type of a gcc2
7143 builtin and then its argument prototype would still apply. */
7144 char XawScrollbarSetThumb();
7147 XawScrollbarSetThumb()
7150 if { (eval echo configure:7151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7152 eval "ac_cv_lib_$ac_lib_var=yes"
7154 echo "configure: failed program was:" >&5
7155 cat conftest.$ac_ext >&5
7157 eval "ac_cv_lib_$ac_lib_var=no"
7162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7163 echo "$ac_t""yes" 1>&6
7166 echo "$ac_t""no" 1>&6
7172 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7173 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7174 echo "configure:7175: checking for Xm/Xm.h" >&5
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7182 { (eval echo configure:7183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7183 ac_err=`grep -v '^ *+' conftest.out`
7184 if test -z "$ac_err"; then
7186 eval "ac_cv_header_$ac_safe=yes"
7189 echo "configure: failed program was:" >&5
7190 cat conftest.$ac_ext >&5
7192 eval "ac_cv_header_$ac_safe=no"
7195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7196 echo "$ac_t""yes" 1>&6
7198 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7199 echo "configure:7200: checking for XmStringFree in -lXm" >&5
7200 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7202 xe_check_libs=" -lXm "
7203 cat > conftest.$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* Override any gcc2 internal prototype to avoid an error. */
7207 /* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7209 char XmStringFree();
7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7217 eval "ac_cv_lib_$ac_lib_var=yes"
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7222 eval "ac_cv_lib_$ac_lib_var=no"
7227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7228 echo "$ac_t""yes" 1>&6
7231 echo "$ac_t""no" 1>&6
7237 echo "$ac_t""no" 1>&6
7242 if test "$have_motif" = "yes"; then
7243 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7244 echo "configure:7245: checking for Lesstif" >&5
7245 cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7249 #ifdef LESSTIF_VERSION
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 egrep "yes" >/dev/null 2>&1; then
7264 echo "$ac_t""$have_lesstif" 1>&6
7269 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7270 with_menubars="lucid" ;;
7272 case "$with_dialogs" in "" | "yes" | "lucid" )
7273 if test "$have_motif" = "yes"; then with_dialogs="motif"
7274 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7275 else with_dialogs=no
7278 case "$with_scrollbars" in "" | "yes" )
7279 with_scrollbars="lucid" ;;
7282 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
7284 case "$all_widgets" in *athena* )
7285 { test "$extra_verbose" = "yes" && cat << \EOF
7286 Defining LWLIB_USES_ATHENA
7288 cat >> confdefs.h <<\EOF
7289 #define LWLIB_USES_ATHENA 1
7293 { test "$extra_verbose" = "yes" && cat << \EOF
7294 Defining NEED_ATHENA
7296 cat >> confdefs.h <<\EOF
7297 #define NEED_ATHENA 1
7301 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7302 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7305 case "$all_widgets" in *motif* )
7306 { test "$extra_verbose" = "yes" && cat << \EOF
7307 Defining LWLIB_USES_MOTIF
7309 cat >> confdefs.h <<\EOF
7310 #define LWLIB_USES_MOTIF 1
7314 { test "$extra_verbose" = "yes" && cat << \EOF
7317 cat >> confdefs.h <<\EOF
7318 #define NEED_MOTIF 1
7322 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7326 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7327 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7328 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7329 case "$all_widgets" in *lucid* )
7330 { test "$extra_verbose" = "yes" && cat << \EOF
7333 cat >> confdefs.h <<\EOF
7334 #define NEED_LUCID 1
7338 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7343 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7344 Defining LWLIB_SCROLLBARS_ATHENA
7346 cat >> confdefs.h <<\EOF
7347 #define LWLIB_SCROLLBARS_ATHENA 1
7351 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7352 Defining LWLIB_DIALOGS_ATHENA
7354 cat >> confdefs.h <<\EOF
7355 #define LWLIB_DIALOGS_ATHENA 1
7359 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7360 Defining LWLIB_SCROLLBARS_ATHENA3D
7362 cat >> confdefs.h <<\EOF
7363 #define LWLIB_SCROLLBARS_ATHENA3D 1
7367 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7368 Defining LWLIB_DIALOGS_ATHENA3D
7370 cat >> confdefs.h <<\EOF
7371 #define LWLIB_DIALOGS_ATHENA3D 1
7376 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7377 Defining HAVE_MENUBARS
7379 cat >> confdefs.h <<\EOF
7380 #define HAVE_MENUBARS 1
7384 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7385 Defining HAVE_SCROLLBARS
7387 cat >> confdefs.h <<\EOF
7388 #define HAVE_SCROLLBARS 1
7392 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7393 Defining HAVE_DIALOGS
7395 cat >> confdefs.h <<\EOF
7396 #define HAVE_DIALOGS 1
7400 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7401 Defining HAVE_TOOLBARS
7403 cat >> confdefs.h <<\EOF
7404 #define HAVE_TOOLBARS 1
7409 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7410 Defining LWLIB_MENUBARS_LUCID
7412 cat >> confdefs.h <<\EOF
7413 #define LWLIB_MENUBARS_LUCID 1
7417 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7418 Defining LWLIB_SCROLLBARS_LUCID
7420 cat >> confdefs.h <<\EOF
7421 #define LWLIB_SCROLLBARS_LUCID 1
7426 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7427 Defining LWLIB_MENUBARS_MOTIF
7429 cat >> confdefs.h <<\EOF
7430 #define LWLIB_MENUBARS_MOTIF 1
7434 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7435 Defining LWLIB_SCROLLBARS_MOTIF
7437 cat >> confdefs.h <<\EOF
7438 #define LWLIB_SCROLLBARS_MOTIF 1
7442 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7443 Defining LWLIB_DIALOGS_MOTIF
7445 cat >> confdefs.h <<\EOF
7446 #define LWLIB_DIALOGS_MOTIF 1
7451 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7452 echo " xemacs will be linked with \"menubar.o\""
7454 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7455 echo " xemacs will be linked with \"scrollbar.o\""
7457 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7458 echo " xemacs will be linked with \"dialog.o\""
7460 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7461 echo " xemacs will be linked with \"toolbar.o\""
7464 if test "$with_x11" = "yes"; then
7465 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7466 echo " xemacs will be linked with \"menubar-x.o\""
7468 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7469 echo " xemacs will be linked with \"scrollbar-x.o\""
7471 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7472 echo " xemacs will be linked with \"dialog-x.o\""
7474 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7475 echo " xemacs will be linked with \"toolbar-x.o\""
7477 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7478 echo " xemacs will be linked with \"gui-x.o\""
7481 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7482 echo "Attempt to Build NAS sound without X"
7483 echo "Please remove NAS configuration or build with X"
7489 test -z "$with_mule" && with_mule=no
7490 test -z "$with_file_coding" && with_file_coding=no
7493 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7494 { test "$extra_verbose" = "yes" && cat << \EOF
7495 Defining FILE_CODING
7497 cat >> confdefs.h <<\EOF
7498 #define FILE_CODING 1
7502 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7503 echo " xemacs will be linked with \"file-coding.o\""
7507 if test "$with_mule" = "yes" ; then
7508 echo "checking for Mule-related features" 1>&6
7509 echo "configure:7510: checking for Mule-related features" >&5
7510 { test "$extra_verbose" = "yes" && cat << \EOF
7513 cat >> confdefs.h <<\EOF
7518 { test "$extra_verbose" = "yes" && cat << \EOF
7519 Defining FILE_CODING
7521 cat >> confdefs.h <<\EOF
7522 #define FILE_CODING 1
7526 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7527 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7530 for ac_hdr in libintl.h
7532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7534 echo "configure:7535: checking for $ac_hdr" >&5
7536 cat > conftest.$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7542 { (eval echo configure:7543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7543 ac_err=`grep -v '^ *+' conftest.out`
7544 if test -z "$ac_err"; then
7546 eval "ac_cv_header_$ac_safe=yes"
7549 echo "configure: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7552 eval "ac_cv_header_$ac_safe=no"
7555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7556 echo "$ac_t""yes" 1>&6
7557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7558 { test "$extra_verbose" = "yes" && cat << EOF
7561 cat >> confdefs.h <<EOF
7562 #define $ac_tr_hdr 1
7567 echo "$ac_t""no" 1>&6
7572 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7573 echo "configure:7574: checking for strerror in -lintl" >&5
7574 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7576 xe_check_libs=" -lintl "
7577 cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7580 /* Override any gcc2 internal prototype to avoid an error. */
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7591 eval "ac_cv_lib_$ac_lib_var=yes"
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7596 eval "ac_cv_lib_$ac_lib_var=no"
7601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7602 echo "$ac_t""yes" 1>&6
7603 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7604 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7605 { test "$extra_verbose" = "yes" && cat << EOF
7608 cat >> confdefs.h <<EOF
7609 #define $ac_tr_lib 1
7613 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7616 echo "$ac_t""no" 1>&6
7621 echo "checking for Mule input methods" 1>&6
7622 echo "configure:7623: checking for Mule input methods" >&5
7623 case "$with_xim" in "" | "yes" )
7624 echo "checking for XIM" 1>&6
7625 echo "configure:7626: checking for XIM" >&5
7627 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7628 echo "configure:7629: checking for XOpenIM in -lX11" >&5
7629 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7631 xe_check_libs=" -lX11 "
7632 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7635 /* Override any gcc2 internal prototype to avoid an error. */
7636 /* We use char because int might match the return type of a gcc2
7637 builtin and then its argument prototype would still apply. */
7644 if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7646 eval "ac_cv_lib_$ac_lib_var=yes"
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7651 eval "ac_cv_lib_$ac_lib_var=no"
7656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7657 echo "$ac_t""yes" 1>&6
7660 echo "$ac_t""no" 1>&6
7665 if test "$have_motif $have_lesstif" = "yes no"; then
7667 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7668 echo "configure:7669: checking for XmImMbLookupString in -lXm" >&5
7669 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7671 xe_check_libs=" -lXm "
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 /* Override any gcc2 internal prototype to avoid an error. */
7676 /* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7678 char XmImMbLookupString();
7681 XmImMbLookupString()
7684 if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7686 eval "ac_cv_lib_$ac_lib_var=yes"
7688 echo "configure: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7691 eval "ac_cv_lib_$ac_lib_var=no"
7696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7697 echo "$ac_t""yes" 1>&6
7700 echo "$ac_t""no" 1>&6
7706 if test "$with_xim" != "no"; then
7707 { test "$extra_verbose" = "yes" && cat << \EOF
7710 cat >> confdefs.h <<\EOF
7715 if test "$with_xim" = "xlib"; then
7716 { test "$extra_verbose" = "yes" && cat << \EOF
7719 cat >> confdefs.h <<\EOF
7724 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7725 echo " xemacs will be linked with \"input-method-xlib.o\""
7728 if test "$with_xim" = "motif"; then
7729 { test "$extra_verbose" = "yes" && cat << \EOF
7732 cat >> confdefs.h <<\EOF
7738 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
7739 echo " xemacs will be linked with \"input-method-motif.o\""
7742 if test "$with_xim" = "motif"; then
7747 if test "$with_xfs" = "yes" ; then
7748 echo "checking for XFontSet" 1>&6
7749 echo "configure:7750: checking for XFontSet" >&5
7751 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7752 echo "configure:7753: checking for XmbDrawString in -lX11" >&5
7753 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7755 xe_check_libs=" -lX11 "
7756 cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure"
7758 #include "confdefs.h"
7759 /* Override any gcc2 internal prototype to avoid an error. */
7760 /* We use char because int might match the return type of a gcc2
7761 builtin and then its argument prototype would still apply. */
7762 char XmbDrawString();
7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7770 eval "ac_cv_lib_$ac_lib_var=yes"
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7775 eval "ac_cv_lib_$ac_lib_var=no"
7780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7781 echo "$ac_t""yes" 1>&6
7784 echo "$ac_t""no" 1>&6
7789 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
7790 { test "$extra_verbose" = "yes" && cat << \EOF
7791 Defining USE_XFONTSET
7793 cat >> confdefs.h <<\EOF
7794 #define USE_XFONTSET 1
7798 if test "$with_xim" = "no" ; then
7799 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
7800 echo " xemacs will be linked with \"input-method-xfs.o\""
7805 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7806 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7807 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7808 echo "configure:7809: checking for wnn/jllib.h" >&5
7810 cat > conftest.$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 #include <wnn/jllib.h>
7815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7816 { (eval echo configure:7817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7817 ac_err=`grep -v '^ *+' conftest.out`
7818 if test -z "$ac_err"; then
7820 eval "ac_cv_header_$ac_safe=yes"
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7826 eval "ac_cv_header_$ac_safe=no"
7829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7830 echo "$ac_t""yes" 1>&6
7833 echo "$ac_t""no" 1>&6
7837 if test "$with_wnn" != "no"; then
7838 for ac_func in crypt
7840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7841 echo "configure:7842: checking for $ac_func" >&5
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* System header to define __stub macros and hopefully few prototypes,
7847 which can conflict with char $ac_func(); below. */
7849 /* Override any gcc2 internal prototype to avoid an error. */
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7856 /* The GNU C library defines this for functions which it implements
7857 to always fail with ENOSYS. Some functions are actually named
7858 something starting with __ and the normal name is an alias. */
7859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7867 if { (eval echo configure:7868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7869 eval "ac_cv_func_$ac_func=yes"
7871 echo "configure: failed program was:" >&5
7872 cat conftest.$ac_ext >&5
7874 eval "ac_cv_func_$ac_func=no"
7878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7879 echo "$ac_t""yes" 1>&6
7880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7881 { test "$extra_verbose" = "yes" && cat << EOF
7882 Defining $ac_tr_func
7884 cat >> confdefs.h <<EOF
7885 #define $ac_tr_func 1
7890 echo "$ac_t""no" 1>&6
7894 test "$ac_cv_func_crypt" != "yes" && {
7895 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7896 echo "configure:7897: checking for crypt in -lcrypt" >&5
7897 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7899 xe_check_libs=" -lcrypt "
7900 cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure"
7902 #include "confdefs.h"
7903 /* Override any gcc2 internal prototype to avoid an error. */
7904 /* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7912 if { (eval echo configure:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7914 eval "ac_cv_lib_$ac_lib_var=yes"
7916 echo "configure: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7919 eval "ac_cv_lib_$ac_lib_var=no"
7924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7925 echo "$ac_t""yes" 1>&6
7926 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7927 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7928 { test "$extra_verbose" = "yes" && cat << EOF
7931 cat >> confdefs.h <<EOF
7932 #define $ac_tr_lib 1
7936 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
7939 echo "$ac_t""no" 1>&6
7944 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
7946 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7947 echo "configure:7948: checking for jl_dic_list_e in -lwnn" >&5
7948 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7950 xe_check_libs=" -lwnn "
7951 cat > conftest.$ac_ext <<EOF
7952 #line 7953 "configure"
7953 #include "confdefs.h"
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 /* We use char because int might match the return type of a gcc2
7956 builtin and then its argument prototype would still apply. */
7957 char jl_dic_list_e();
7963 if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7965 eval "ac_cv_lib_$ac_lib_var=yes"
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7970 eval "ac_cv_lib_$ac_lib_var=no"
7975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7976 echo "$ac_t""yes" 1>&6
7979 echo "$ac_t""no" 1>&6
7980 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
7981 echo "configure:7982: checking for jl_dic_list_e in -lwnn4" >&5
7982 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7984 xe_check_libs=" -lwnn4 "
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7988 /* Override any gcc2 internal prototype to avoid an error. */
7989 /* We use char because int might match the return type of a gcc2
7990 builtin and then its argument prototype would still apply. */
7991 char jl_dic_list_e();
7997 if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7999 eval "ac_cv_lib_$ac_lib_var=yes"
8001 echo "configure: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8004 eval "ac_cv_lib_$ac_lib_var=no"
8009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8010 echo "$ac_t""yes" 1>&6
8013 echo "$ac_t""no" 1>&6
8014 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8015 echo "configure:8016: checking for jl_dic_list_e in -lwnn6" >&5
8016 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8018 xe_check_libs=" -lwnn6 "
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8022 /* Override any gcc2 internal prototype to avoid an error. */
8023 /* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
8025 char jl_dic_list_e();
8031 if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8033 eval "ac_cv_lib_$ac_lib_var=yes"
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8038 eval "ac_cv_lib_$ac_lib_var=no"
8043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8044 echo "$ac_t""yes" 1>&6
8047 echo "$ac_t""no" 1>&6
8048 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8049 echo "configure:8050: checking for dic_list_e in -lwnn6_fromsrc" >&5
8050 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8052 xe_check_libs=" -lwnn6_fromsrc "
8053 cat > conftest.$ac_ext <<EOF
8054 #line 8055 "configure"
8055 #include "confdefs.h"
8056 /* Override any gcc2 internal prototype to avoid an error. */
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8065 if { (eval echo configure:8066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8067 eval "ac_cv_lib_$ac_lib_var=yes"
8069 echo "configure: failed program was:" >&5
8070 cat conftest.$ac_ext >&5
8072 eval "ac_cv_lib_$ac_lib_var=no"
8077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8078 echo "$ac_t""yes" 1>&6
8081 echo "$ac_t""no" 1>&6
8096 test -z "$with_wnn" && with_wnn=yes
8097 if test "$with_wnn" = "yes"; then
8098 { test "$extra_verbose" = "yes" && cat << \EOF
8101 cat >> confdefs.h <<\EOF
8106 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8107 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8108 echo " xemacs will be linked with \"mule-wnnfns.o\""
8110 if test "$with_wnn6" != "no"; then
8112 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8113 echo "configure:8114: checking for jl_fi_dic_list in -l$libwnn" >&5
8114 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8116 xe_check_libs=" -l$libwnn "
8117 cat > conftest.$ac_ext <<EOF
8118 #line 8119 "configure"
8119 #include "confdefs.h"
8120 /* Override any gcc2 internal prototype to avoid an error. */
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123 char jl_fi_dic_list();
8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8131 eval "ac_cv_lib_$ac_lib_var=yes"
8133 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8136 eval "ac_cv_lib_$ac_lib_var=no"
8141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8142 echo "$ac_t""yes" 1>&6
8145 echo "$ac_t""no" 1>&6
8149 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8152 cat >> confdefs.h <<\EOF
8160 canna_includes_found=no
8161 if test "$with_canna" != "no"; then
8162 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8163 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8164 echo "configure:8165: checking for canna/jrkanji.h" >&5
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8169 #include <canna/jrkanji.h>
8171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8172 { (eval echo configure:8173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8173 ac_err=`grep -v '^ *+' conftest.out`
8174 if test -z "$ac_err"; then
8176 eval "ac_cv_header_$ac_safe=yes"
8179 echo "configure: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8182 eval "ac_cv_header_$ac_safe=no"
8185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8186 echo "$ac_t""yes" 1>&6
8187 canna_includes_found=yes
8189 echo "$ac_t""no" 1>&6
8193 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8194 -d "/usr/local/canna/include"; then
8195 save_c_switch_site="$c_switch_site"
8196 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8197 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8198 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8199 echo "configure:8200: checking for canna/jrkanji.h" >&5
8201 cat > conftest.$ac_ext <<EOF
8202 #line 8203 "configure"
8203 #include "confdefs.h"
8204 #include <canna/jrkanji.h>
8206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8207 { (eval echo configure:8208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8208 ac_err=`grep -v '^ *+' conftest.out`
8209 if test -z "$ac_err"; then
8211 eval "ac_cv_header_$ac_safe=yes"
8214 echo "configure: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8217 eval "ac_cv_header_$ac_safe=no"
8220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8221 echo "$ac_t""yes" 1>&6
8222 canna_includes_found=yes
8224 echo "$ac_t""no" 1>&6
8227 if test "$canna_includes_found" != "yes"; then
8228 c_switch_site="$save_c_switch_site"
8233 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8234 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8235 echo "configure:8236: checking for canna/RK.h" >&5
8237 cat > conftest.$ac_ext <<EOF
8238 #line 8239 "configure"
8239 #include "confdefs.h"
8240 #include <canna/RK.h>
8242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8243 { (eval echo configure:8244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8244 ac_err=`grep -v '^ *+' conftest.out`
8245 if test -z "$ac_err"; then
8247 eval "ac_cv_header_$ac_safe=yes"
8250 echo "configure: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8253 eval "ac_cv_header_$ac_safe=no"
8256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8257 echo "$ac_t""yes" 1>&6
8260 echo "$ac_t""no" 1>&6
8264 test -z "$with_canna" && {
8265 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8266 echo "configure:8267: checking for RkBgnBun in -lRKC" >&5
8267 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8269 xe_check_libs=" -lRKC "
8270 cat > conftest.$ac_ext <<EOF
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8273 /* Override any gcc2 internal prototype to avoid an error. */
8274 /* We use char because int might match the return type of a gcc2
8275 builtin and then its argument prototype would still apply. */
8282 if { (eval echo configure:8283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8284 eval "ac_cv_lib_$ac_lib_var=yes"
8286 echo "configure: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8289 eval "ac_cv_lib_$ac_lib_var=no"
8294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8295 echo "$ac_t""yes" 1>&6
8298 echo "$ac_t""no" 1>&6
8303 test -z "$with_canna" && {
8304 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8305 echo "configure:8306: checking for jrKanjiControl in -lcanna" >&5
8306 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8308 xe_check_libs=" -lcanna "
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8312 /* Override any gcc2 internal prototype to avoid an error. */
8313 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */
8315 char jrKanjiControl();
8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8323 eval "ac_cv_lib_$ac_lib_var=yes"
8325 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5
8328 eval "ac_cv_lib_$ac_lib_var=no"
8333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8334 echo "$ac_t""yes" 1>&6
8337 echo "$ac_t""no" 1>&6
8342 test -z "$with_canna" && with_canna=yes
8343 if test "$with_canna" = "yes"; then
8344 { test "$extra_verbose" = "yes" && cat << \EOF
8347 cat >> confdefs.h <<\EOF
8348 #define HAVE_CANNA 1
8352 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8353 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8354 echo " xemacs will be linked with \"mule-canna.o\""
8358 else for feature in xim canna wnn; do
8359 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8360 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8362 eval "with_${feature}=no"
8366 if test "$need_motif" = "yes" ; then
8367 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8369 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8370 echo "configure:8371: checking for layout_object_getvalue in -li18n" >&5
8371 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8373 xe_check_libs=" -li18n "
8374 cat > conftest.$ac_ext <<EOF
8375 #line 8376 "configure"
8376 #include "confdefs.h"
8377 /* Override any gcc2 internal prototype to avoid an error. */
8378 /* We use char because int might match the return type of a gcc2
8379 builtin and then its argument prototype would still apply. */
8380 char layout_object_getvalue();
8383 layout_object_getvalue()
8386 if { (eval echo configure:8387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8388 eval "ac_cv_lib_$ac_lib_var=yes"
8390 echo "configure: failed program was:" >&5
8391 cat conftest.$ac_ext >&5
8393 eval "ac_cv_lib_$ac_lib_var=no"
8398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8399 echo "$ac_t""yes" 1>&6
8400 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8402 echo "$ac_t""no" 1>&6
8407 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8408 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8409 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8411 runpath="" runpath_dirs=""
8412 if test -n "$LD_RUN_PATH"; then
8413 runpath="$LD_RUN_PATH"
8414 elif test "$GCC" = "yes"; then
8415 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8416 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8417 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8418 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8419 case "$arg" in P,* | -L* | -R* )
8420 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8422 xe_runpath_dir="$dir"
8423 test "$xe_runpath_dir" != "/lib" -a \
8424 "$xe_runpath_dir" != "/usr/lib" -a \
8425 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8426 eval "$xe_add_unique_runpath_dir"
8431 ld_switch_run="$ld_switch_run_save"
8434 for arg in $ld_switch_site $ld_switch_x_site; do
8435 case "$arg" in -L*) {
8436 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8437 test "$xe_runpath_dir" != "/lib" -a \
8438 "$xe_runpath_dir" != "/usr/lib" -a \
8439 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8440 eval "$xe_add_unique_runpath_dir"
8443 if test "$opsys $need_motif" = "sol2 yes"; then
8444 xe_runpath_dir="/opt/SUNWdt/lib";
8445 eval "$xe_add_unique_runpath_dir";
8448 if test -n "$runpath"; then
8449 ld_switch_run="${dash_r}${runpath}"
8451 if test "$GCC" = "yes"; then
8452 set x $ld_switch_run; shift; ld_switch_run=""
8453 while test -n "$1"; do
8455 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8456 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8458 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8463 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8469 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
8471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8472 echo "configure:8473: checking for $ac_func" >&5
8474 cat > conftest.$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8477 /* System header to define __stub macros and hopefully few prototypes,
8478 which can conflict with char $ac_func(); below. */
8480 /* Override any gcc2 internal prototype to avoid an error. */
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8487 /* The GNU C library defines this for functions which it implements
8488 to always fail with ENOSYS. Some functions are actually named
8489 something starting with __ and the normal name is an alias. */
8490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8498 if { (eval echo configure:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8500 eval "ac_cv_func_$ac_func=yes"
8502 echo "configure: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8505 eval "ac_cv_func_$ac_func=no"
8509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8510 echo "$ac_t""yes" 1>&6
8511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8512 { test "$extra_verbose" = "yes" && cat << EOF
8513 Defining $ac_tr_func
8515 cat >> confdefs.h <<EOF
8516 #define $ac_tr_func 1
8521 echo "$ac_t""no" 1>&6
8528 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8529 echo " xemacs will be linked with \"realpath.o\""
8532 case "$canonical" in
8533 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8534 echo " xemacs will be linked with \"realpath.o\""
8536 * ) for ac_func in realpath
8538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8539 echo "configure:8540: checking for $ac_func" >&5
8541 cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 /* System header to define __stub macros and hopefully few prototypes,
8545 which can conflict with char $ac_func(); below. */
8547 /* Override any gcc2 internal prototype to avoid an error. */
8548 /* We use char because int might match the return type of a gcc2
8549 builtin and then its argument prototype would still apply. */
8554 /* The GNU C library defines this for functions which it implements
8555 to always fail with ENOSYS. Some functions are actually named
8556 something starting with __ and the normal name is an alias. */
8557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8565 if { (eval echo configure:8566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8567 eval "ac_cv_func_$ac_func=yes"
8569 echo "configure: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8572 eval "ac_cv_func_$ac_func=no"
8576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8577 echo "$ac_t""yes" 1>&6
8578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8579 { test "$extra_verbose" = "yes" && cat << EOF
8580 Defining $ac_tr_func
8582 cat >> confdefs.h <<EOF
8583 #define $ac_tr_func 1
8588 echo "$ac_t""no" 1>&6
8592 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8593 echo " xemacs will be linked with \"realpath.o\""
8598 for ac_func in getloadavg
8600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8601 echo "configure:8602: checking for $ac_func" >&5
8603 cat > conftest.$ac_ext <<EOF
8604 #line 8605 "configure"
8605 #include "confdefs.h"
8606 /* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char $ac_func(); below. */
8609 /* Override any gcc2 internal prototype to avoid an error. */
8610 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8616 /* The GNU C library defines this for functions which it implements
8617 to always fail with ENOSYS. Some functions are actually named
8618 something starting with __ and the normal name is an alias. */
8619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8627 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8629 eval "ac_cv_func_$ac_func=yes"
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 eval "ac_cv_func_$ac_func=no"
8638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8639 echo "$ac_t""yes" 1>&6
8640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8641 { test "$extra_verbose" = "yes" && cat << EOF
8642 Defining $ac_tr_func
8644 cat >> confdefs.h <<EOF
8645 #define $ac_tr_func 1
8650 echo "$ac_t""no" 1>&6
8655 if test "$ac_cv_func_getloadavg" != "yes"
8657 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
8658 echo " xemacs will be linked with \"getloadavg.o\""
8662 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
8663 echo "configure:8664: checking for kstat_open in -lkstat" >&5
8664 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
8666 xe_check_libs=" -lkstat "
8667 cat > conftest.$ac_ext <<EOF
8668 #line 8669 "configure"
8669 #include "confdefs.h"
8670 /* Override any gcc2 internal prototype to avoid an error. */
8671 /* We use char because int might match the return type of a gcc2
8672 builtin and then its argument prototype would still apply. */
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8681 eval "ac_cv_lib_$ac_lib_var=yes"
8683 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8686 eval "ac_cv_lib_$ac_lib_var=no"
8691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8692 echo "$ac_t""yes" 1>&6
8693 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8694 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8695 { test "$extra_verbose" = "yes" && cat << EOF
8698 cat >> confdefs.h <<EOF
8699 #define $ac_tr_lib 1
8703 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
8706 echo "$ac_t""no" 1>&6
8712 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
8713 echo "configure:8714: checking for kvm_read in -lkvm" >&5
8714 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
8716 xe_check_libs=" -lkvm "
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure"
8719 #include "confdefs.h"
8720 /* Override any gcc2 internal prototype to avoid an error. */
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8731 eval "ac_cv_lib_$ac_lib_var=yes"
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 eval "ac_cv_lib_$ac_lib_var=no"
8741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8742 echo "$ac_t""yes" 1>&6
8743 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8744 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8745 { test "$extra_verbose" = "yes" && cat << EOF
8748 cat >> confdefs.h <<EOF
8749 #define $ac_tr_lib 1
8753 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
8756 echo "$ac_t""no" 1>&6
8762 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8763 echo "configure:8764: checking whether netdb declares h_errno" >&5
8764 cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8772 if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8774 echo "$ac_t""yes" 1>&6
8775 { test "$extra_verbose" = "yes" && cat << \EOF
8776 Defining HAVE_H_ERRNO
8778 cat >> confdefs.h <<\EOF
8779 #define HAVE_H_ERRNO 1
8784 echo "configure: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8787 echo "$ac_t""no" 1>&6
8791 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8792 echo "configure:8793: checking for sigsetjmp" >&5
8793 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure"
8795 #include "confdefs.h"
8798 sigjmp_buf bar; sigsetjmp (bar, 0);
8801 if { (eval echo configure:8802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8803 echo "$ac_t""yes" 1>&6
8804 { test "$extra_verbose" = "yes" && cat << \EOF
8805 Defining HAVE_SIGSETJMP
8807 cat >> confdefs.h <<\EOF
8808 #define HAVE_SIGSETJMP 1
8813 echo "configure: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8816 echo "$ac_t""no" 1>&6
8820 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8821 echo "configure:8822: checking whether localtime caches TZ" >&5
8823 if test "$ac_cv_func_tzset" = "yes"; then
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8829 # include <stdlib.h>
8831 extern char **environ;
8835 for (to = from = environ; (*to = *from); from++)
8836 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
8839 char TZ_GMT0[] = "TZ=GMT0";
8840 char TZ_PST8[] = "TZ=PST8";
8843 time_t now = time ((time_t *) 0);
8844 int hour_GMT0, hour_unset;
8845 if (putenv (TZ_GMT0) != 0)
8847 hour_GMT0 = localtime (&now)->tm_hour;
8849 hour_unset = localtime (&now)->tm_hour;
8850 if (putenv (TZ_PST8) != 0)
8852 if (localtime (&now)->tm_hour == hour_GMT0)
8855 if (localtime (&now)->tm_hour != hour_unset)
8860 if { (eval echo configure:8861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8862 emacs_cv_localtime_cache=no
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8868 emacs_cv_localtime_cache=yes
8872 # If we lack tzset, report that localtime does not cache TZ,
8873 # since we can't invalidate the cache if we don't have tzset.
8874 emacs_cv_localtime_cache=no
8876 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
8877 if test $emacs_cv_localtime_cache = yes; then
8878 { test "$extra_verbose" = "yes" && cat << \EOF
8879 Defining LOCALTIME_CACHE
8881 cat >> confdefs.h <<\EOF
8882 #define LOCALTIME_CACHE 1
8888 if test "$HAVE_TIMEVAL" = "yes"; then
8889 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8890 echo "configure:8891: checking whether gettimeofday accepts one or two arguments" >&5
8891 cat > conftest.$ac_ext <<EOF
8892 #line 8893 "configure"
8893 #include "confdefs.h"
8895 #ifdef TIME_WITH_SYS_TIME
8896 #include <sys/time.h>
8899 #ifdef HAVE_SYS_TIME_H
8900 #include <sys/time.h>
8908 struct timeval time;
8909 struct timezone dummy;
8910 gettimeofday (&time, &dummy);
8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8916 echo "$ac_t""two" 1>&6
8918 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8921 echo "$ac_t""one" 1>&6
8922 { test "$extra_verbose" = "yes" && cat << \EOF
8923 Defining GETTIMEOFDAY_ONE_ARGUMENT
8925 cat >> confdefs.h <<\EOF
8926 #define GETTIMEOFDAY_ONE_ARGUMENT 1
8935 echo $ac_n "checking for inline""... $ac_c" 1>&6
8936 echo "configure:8937: checking for inline" >&5
8939 for ac_kw in inline __inline__ __inline; do
8940 cat > conftest.$ac_ext <<EOF
8941 #line 8942 "configure"
8942 #include "confdefs.h"
8948 if { (eval echo configure:8949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8950 ac_cv_c_inline=$ac_kw; break
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8959 echo "$ac_t""$ac_cv_c_inline" 1>&6
8960 case "$ac_cv_c_inline" in
8962 no) { test "$extra_verbose" = "yes" && cat << \EOF
8965 cat >> confdefs.h <<\EOF
8970 *) { test "$extra_verbose" = "yes" && cat << EOF
8971 Defining inline = $ac_cv_c_inline
8973 cat >> confdefs.h <<EOF
8974 #define inline $ac_cv_c_inline
8980 if test "$ac_cv_c_inline" != "no"; then
8981 { test "$extra_verbose" = "yes" && cat << \EOF
8982 Defining HAVE_INLINE
8984 cat >> confdefs.h <<\EOF
8985 #define HAVE_INLINE 1
8989 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
8990 echo " xemacs will be linked with \"inline.o\""
8995 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8996 # for constant arguments. Useless!
8997 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8998 echo "configure:8999: checking for working alloca.h" >&5
9000 cat > conftest.$ac_ext <<EOF
9001 #line 9002 "configure"
9002 #include "confdefs.h"
9005 char *p = alloca(2 * sizeof(int));
9008 if { (eval echo configure:9009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9010 ac_cv_header_alloca_h=yes
9012 echo "configure: failed program was:" >&5
9013 cat conftest.$ac_ext >&5
9015 ac_cv_header_alloca_h=no
9019 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9020 if test $ac_cv_header_alloca_h = yes; then
9021 { test "$extra_verbose" = "yes" && cat << \EOF
9022 Defining HAVE_ALLOCA_H
9024 cat >> confdefs.h <<\EOF
9025 #define HAVE_ALLOCA_H 1
9031 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9032 echo "configure:9033: checking for alloca" >&5
9034 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9039 # define alloca __builtin_alloca
9042 # include <alloca.h>
9047 # ifndef alloca /* predefined by HP cc +Olibcalls */
9055 char *p = (char *) alloca(1);
9058 if { (eval echo configure:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9060 ac_cv_func_alloca_works=yes
9062 echo "configure: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9065 ac_cv_func_alloca_works=no
9069 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9070 if test $ac_cv_func_alloca_works = yes; then
9071 { test "$extra_verbose" = "yes" && cat << \EOF
9072 Defining HAVE_ALLOCA
9074 cat >> confdefs.h <<\EOF
9075 #define HAVE_ALLOCA 1
9081 if test $ac_cv_func_alloca_works = no; then
9082 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9083 # that cause trouble. Some versions do not even contain alloca or
9084 # contain a buggy version. If you still want to use their alloca,
9085 # use ar to extract alloca.o from them instead of compiling alloca.c.
9087 { test "$extra_verbose" = "yes" && cat << \EOF
9090 cat >> confdefs.h <<\EOF
9096 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9097 echo "configure:9098: checking whether alloca needs Cray hooks" >&5
9099 cat > conftest.$ac_ext <<EOF
9100 #line 9101 "configure"
9101 #include "confdefs.h"
9102 #if defined(CRAY) && ! defined(CRAY2)
9109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9110 egrep "webecray" >/dev/null 2>&1; then
9120 echo "$ac_t""$ac_cv_os_cray" 1>&6
9121 if test $ac_cv_os_cray = yes; then
9122 for ac_func in _getb67 GETB67 getb67; do
9123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9124 echo "configure:9125: checking for $ac_func" >&5
9126 cat > conftest.$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9129 /* System header to define __stub macros and hopefully few prototypes,
9130 which can conflict with char $ac_func(); below. */
9132 /* Override any gcc2 internal prototype to avoid an error. */
9133 /* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9139 /* The GNU C library defines this for functions which it implements
9140 to always fail with ENOSYS. Some functions are actually named
9141 something starting with __ and the normal name is an alias. */
9142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9152 eval "ac_cv_func_$ac_func=yes"
9154 echo "configure: failed program was:" >&5
9155 cat conftest.$ac_ext >&5
9157 eval "ac_cv_func_$ac_func=no"
9161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9162 echo "$ac_t""yes" 1>&6
9163 { test "$extra_verbose" = "yes" && cat << EOF
9164 Defining CRAY_STACKSEG_END = $ac_func
9166 cat >> confdefs.h <<EOF
9167 #define CRAY_STACKSEG_END $ac_func
9173 echo "$ac_t""no" 1>&6
9179 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9180 echo "configure:9181: checking stack direction for C alloca" >&5
9182 cat > conftest.$ac_ext <<EOF
9183 #line 9184 "configure"
9184 #include "confdefs.h"
9185 find_stack_direction ()
9187 static char *addr = 0;
9192 return find_stack_direction ();
9195 return (&dummy > addr) ? 1 : -1;
9199 exit (find_stack_direction() < 0);
9202 if { (eval echo configure:9203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9204 ac_cv_c_stack_direction=1
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9210 ac_cv_c_stack_direction=-1
9214 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9215 { test "$extra_verbose" = "yes" && cat << EOF
9216 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9218 cat >> confdefs.h <<EOF
9219 #define STACK_DIRECTION $ac_cv_c_stack_direction
9225 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9226 echo " xemacs will be linked with \"$ALLOCA\""
9229 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9230 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9231 echo "configure:9232: checking for vfork.h" >&5
9233 cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9239 { (eval echo configure:9240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9240 ac_err=`grep -v '^ *+' conftest.out`
9241 if test -z "$ac_err"; then
9243 eval "ac_cv_header_$ac_safe=yes"
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 eval "ac_cv_header_$ac_safe=no"
9252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9253 echo "$ac_t""yes" 1>&6
9254 { test "$extra_verbose" = "yes" && cat << \EOF
9255 Defining HAVE_VFORK_H
9257 cat >> confdefs.h <<\EOF
9258 #define HAVE_VFORK_H 1
9263 echo "$ac_t""no" 1>&6
9266 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9267 echo "configure:9268: checking for working vfork" >&5
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9272 /* Thanks to Paul Eggert for this test. */
9274 #include <sys/types.h>
9275 #include <sys/stat.h>
9276 #ifdef HAVE_UNISTD_H
9282 /* On some sparc systems, changes by the child to local and incoming
9283 argument registers are propagated back to the parent.
9284 The compiler is told about this with #include <vfork.h>,
9285 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9286 Test for this by using a static variable whose address
9287 is put into a register that is clobbered by the vfork. */
9290 sparc_address_test (int arg)
9292 sparc_address_test (arg) int arg;
9310 pid_t parent = getpid ();
9313 sparc_address_test ();
9318 /* Here is another test for sparc vfork register problems.
9319 This test uses lots of local variables, at least
9320 as many local variables as main has allocated so far
9321 including compiler temporaries. 4 locals are enough for
9322 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9323 A buggy compiler should reuse the register of parent
9324 for one of the local variables, since it will think that
9325 parent can't possibly be used any more in this routine.
9326 Assigning to the local variable will thus munge parent
9327 in the parent process. */
9329 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9330 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9331 /* Convince the compiler that p..p7 are live; otherwise, it might
9332 use the same hardware register for all 8 local variables. */
9333 if (p != p1 || p != p2 || p != p3 || p != p4
9334 || p != p5 || p != p6 || p != p7)
9337 /* On some systems (e.g. IRIX 3.3),
9338 vfork doesn't separate parent from child file descriptors.
9339 If the child closes a descriptor before it execs or exits,
9340 this munges the parent's descriptor as well.
9341 Test for this by closing stdout in the child. */
9342 _exit(close(fileno(stdout)) != 0);
9347 while (wait(&status) != child)
9350 /* Was there some problem with vforking? */
9353 /* Did the child fail? (This shouldn't happen.) */
9356 /* Did the vfork/compiler bug occur? */
9357 || parent != getpid()
9359 /* Did the file descriptor bug occur? */
9360 || fstat(fileno(stdout), &st) != 0
9365 if { (eval echo configure:9366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9367 ac_cv_func_vfork_works=yes
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9373 ac_cv_func_vfork_works=no
9377 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9378 if test $ac_cv_func_vfork_works = no; then
9379 { test "$extra_verbose" = "yes" && cat << \EOF
9380 Defining vfork = fork
9382 cat >> confdefs.h <<\EOF
9390 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9391 echo "configure:9392: checking for working strcoll" >&5
9393 cat > conftest.$ac_ext <<EOF
9394 #line 9395 "configure"
9395 #include "confdefs.h"
9399 exit (strcoll ("abc", "def") >= 0 ||
9400 strcoll ("ABC", "DEF") >= 0 ||
9401 strcoll ("123", "456") >= 0);
9404 if { (eval echo configure:9405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9406 ac_cv_func_strcoll_works=yes
9409 echo "configure: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9412 ac_cv_func_strcoll_works=no
9416 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9417 if test $ac_cv_func_strcoll_works = yes; then
9418 { test "$extra_verbose" = "yes" && cat << \EOF
9419 Defining HAVE_STRCOLL
9421 cat >> confdefs.h <<\EOF
9422 #define HAVE_STRCOLL 1
9429 for ac_func in getpgrp
9431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9432 echo "configure:9433: checking for $ac_func" >&5
9434 cat > conftest.$ac_ext <<EOF
9435 #line 9436 "configure"
9436 #include "confdefs.h"
9437 /* System header to define __stub macros and hopefully few prototypes,
9438 which can conflict with char $ac_func(); below. */
9440 /* Override any gcc2 internal prototype to avoid an error. */
9441 /* We use char because int might match the return type of a gcc2
9442 builtin and then its argument prototype would still apply. */
9447 /* The GNU C library defines this for functions which it implements
9448 to always fail with ENOSYS. Some functions are actually named
9449 something starting with __ and the normal name is an alias. */
9450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9458 if { (eval echo configure:9459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9460 eval "ac_cv_func_$ac_func=yes"
9462 echo "configure: failed program was:" >&5
9463 cat conftest.$ac_ext >&5
9465 eval "ac_cv_func_$ac_func=no"
9469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9470 echo "$ac_t""yes" 1>&6
9471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9472 { test "$extra_verbose" = "yes" && cat << EOF
9473 Defining $ac_tr_func
9475 cat >> confdefs.h <<EOF
9476 #define $ac_tr_func 1
9481 echo "$ac_t""no" 1>&6
9485 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9486 echo "configure:9487: checking whether getpgrp takes no argument" >&5
9488 cat > conftest.$ac_ext <<EOF
9489 #line 9490 "configure"
9490 #include "confdefs.h"
9493 * If this system has a BSD-style getpgrp(),
9494 * which takes a pid argument, exit unsuccessfully.
9496 * Snarfed from Chet Ramey's bash pgrp.c test program
9499 #include <sys/types.h>
9502 int pg1, pg2, pg3, pg4;
9503 int ng, np, s, child;
9514 * If all of these values are the same, it's pretty sure that
9515 * we're on a system that ignores getpgrp's first argument.
9517 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9523 else if (child == 0) {
9526 * If this is Sys V, this will not work; pgrp will be
9527 * set to np because setpgrp just changes a pgrp to be
9528 * the same as the pid.
9531 ng = getpgrp(0); /* Same result for Sys V and BSD */
9544 if { (eval echo configure:9545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9546 ac_cv_func_getpgrp_void=yes
9549 echo "configure: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9552 ac_cv_func_getpgrp_void=no
9557 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9558 if test $ac_cv_func_getpgrp_void = yes; then
9559 { test "$extra_verbose" = "yes" && cat << \EOF
9560 Defining GETPGRP_VOID
9562 cat >> confdefs.h <<\EOF
9563 #define GETPGRP_VOID 1
9570 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9571 echo "configure:9572: checking for working mmap" >&5
9572 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9573 cat > conftest.$ac_ext <<EOF
9574 #line 9575 "configure"
9575 #include "confdefs.h"
9579 #include <sys/mman.h>
9581 #ifndef MAP_VARIABLE
9582 #define MAP_VARIABLE 0
9586 #define MAP_FAILED -1
9589 int main (int argc, char *argv[])
9593 #ifndef MAP_ANONYMOUS
9594 fd = open ("/dev/zero", O_RDWR);
9597 #define MAP_ANONYMOUS 0
9599 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9600 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9601 fd, 0) != (void *) MAP_FAILED)
9603 perror ("conftest: mmap failed");
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9619 echo "$ac_t""$have_mmap" 1>&6
9620 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9623 cat >> confdefs.h <<\EOF
9628 for ac_hdr in unistd.h
9630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9632 echo "configure:9633: checking for $ac_hdr" >&5
9634 cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9640 { (eval echo configure:9641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9641 ac_err=`grep -v '^ *+' conftest.out`
9642 if test -z "$ac_err"; then
9644 eval "ac_cv_header_$ac_safe=yes"
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9650 eval "ac_cv_header_$ac_safe=no"
9653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9654 echo "$ac_t""yes" 1>&6
9655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9656 { test "$extra_verbose" = "yes" && cat << EOF
9659 cat >> confdefs.h <<EOF
9660 #define $ac_tr_hdr 1
9665 echo "$ac_t""no" 1>&6
9669 for ac_func in getpagesize
9671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9672 echo "configure:9673: checking for $ac_func" >&5
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9677 /* System header to define __stub macros and hopefully few prototypes,
9678 which can conflict with char $ac_func(); below. */
9680 /* Override any gcc2 internal prototype to avoid an error. */
9681 /* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
9687 /* The GNU C library defines this for functions which it implements
9688 to always fail with ENOSYS. Some functions are actually named
9689 something starting with __ and the normal name is an alias. */
9690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9698 if { (eval echo configure:9699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9700 eval "ac_cv_func_$ac_func=yes"
9702 echo "configure: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9705 eval "ac_cv_func_$ac_func=no"
9709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9710 echo "$ac_t""yes" 1>&6
9711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9712 { test "$extra_verbose" = "yes" && cat << EOF
9713 Defining $ac_tr_func
9715 cat >> confdefs.h <<EOF
9716 #define $ac_tr_func 1
9721 echo "$ac_t""no" 1>&6
9725 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9726 echo "configure:9727: checking for working mmap" >&5
9728 cat > conftest.$ac_ext <<EOF
9729 #line 9730 "configure"
9730 #include "confdefs.h"
9732 /* Thanks to Mike Haertel and Jim Avera for this test.
9733 Here is a matrix of mmap possibilities:
9734 mmap private not fixed
9735 mmap private fixed at somewhere currently unmapped
9736 mmap private fixed at somewhere already mapped
9737 mmap shared not fixed
9738 mmap shared fixed at somewhere currently unmapped
9739 mmap shared fixed at somewhere already mapped
9740 For private mappings, we should verify that changes cannot be read()
9741 back from the file, nor mmap's back from the file at a different
9742 address. (There have been systems where private was not correctly
9743 implemented like the infamous i386 svr4.0, and systems where the
9744 VM page cache was not coherent with the filesystem buffer cache
9745 like early versions of FreeBSD and possibly contemporary NetBSD.)
9746 For shared mappings, we should conversely verify that changes get
9747 propogated back to all the places they're supposed to be.
9749 Grep wants private fixed already mapped.
9750 The main things grep needs to know about mmap are:
9751 * does it exist and is it safe to write into the mmap'd area
9752 * how to use it (BSD variants) */
9753 #include <sys/types.h>
9755 #include <sys/mman.h>
9757 /* This mess was copied from the GNU getpagesize.h. */
9758 #ifndef HAVE_GETPAGESIZE
9759 # ifdef HAVE_UNISTD_H
9760 # include <unistd.h>
9763 /* Assume that all systems that can run configure have sys/param.h. */
9764 # ifndef HAVE_SYS_PARAM_H
9765 # define HAVE_SYS_PARAM_H 1
9768 # ifdef _SC_PAGESIZE
9769 # define getpagesize() sysconf(_SC_PAGESIZE)
9770 # else /* no _SC_PAGESIZE */
9771 # ifdef HAVE_SYS_PARAM_H
9772 # include <sys/param.h>
9773 # ifdef EXEC_PAGESIZE
9774 # define getpagesize() EXEC_PAGESIZE
9775 # else /* no EXEC_PAGESIZE */
9777 # define getpagesize() NBPG * CLSIZE
9780 # endif /* no CLSIZE */
9781 # else /* no NBPG */
9783 # define getpagesize() NBPC
9784 # else /* no NBPC */
9786 # define getpagesize() PAGESIZE
9787 # endif /* PAGESIZE */
9788 # endif /* no NBPC */
9789 # endif /* no NBPG */
9790 # endif /* no EXEC_PAGESIZE */
9791 # else /* no HAVE_SYS_PARAM_H */
9792 # define getpagesize() 8192 /* punt totally */
9793 # endif /* no HAVE_SYS_PARAM_H */
9794 # endif /* no _SC_PAGESIZE */
9796 #endif /* no HAVE_GETPAGESIZE */
9799 extern "C" { void *malloc(unsigned); }
9807 char *data, *data2, *data3;
9811 pagesize = getpagesize();
9814 * First, make a file with some known garbage in it.
9816 data = malloc(pagesize);
9819 for (i = 0; i < pagesize; ++i)
9820 *(data + i) = rand();
9822 fd = creat("conftestmmap", 0600);
9825 if (write(fd, data, pagesize) != pagesize)
9830 * Next, try to mmap the file at a fixed address which
9831 * already has something else allocated at it. If we can,
9832 * also make sure that we see the same garbage.
9834 fd = open("conftestmmap", O_RDWR);
9837 data2 = malloc(2 * pagesize);
9840 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9841 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
9842 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9844 for (i = 0; i < pagesize; ++i)
9845 if (*(data + i) != *(data2 + i))
9849 * Finally, make sure that changes to the mapped area
9850 * do not percolate back to the file as seen by read().
9851 * (This is a bug on some variants of i386 svr4.0.)
9853 for (i = 0; i < pagesize; ++i)
9854 *(data2 + i) = *(data2 + i) + 1;
9855 data3 = malloc(pagesize);
9858 if (read(fd, data3, pagesize) != pagesize)
9860 for (i = 0; i < pagesize; ++i)
9861 if (*(data + i) != *(data3 + i))
9864 unlink("conftestmmap");
9869 if { (eval echo configure:9870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9871 ac_cv_func_mmap_fixed_mapped=yes
9874 echo "configure: failed program was:" >&5
9875 cat conftest.$ac_ext >&5
9877 ac_cv_func_mmap_fixed_mapped=no
9881 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
9882 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9883 { test "$extra_verbose" = "yes" && cat << \EOF
9886 cat >> confdefs.h <<\EOF
9894 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
9895 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
9896 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9899 cat >> confdefs.h <<\EOF
9905 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9906 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9907 echo "configure:9908: checking for termios.h" >&5
9909 cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9912 #include <termios.h>
9914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9915 { (eval echo configure:9916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9916 ac_err=`grep -v '^ *+' conftest.out`
9917 if test -z "$ac_err"; then
9919 eval "ac_cv_header_$ac_safe=yes"
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9925 eval "ac_cv_header_$ac_safe=no"
9928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
9930 { test "$extra_verbose" = "yes" && cat << \EOF
9931 Defining HAVE_TERMIOS
9933 cat >> confdefs.h <<\EOF
9934 #define HAVE_TERMIOS 1
9938 { test "$extra_verbose" = "yes" && cat << \EOF
9939 Defining SIGNALS_VIA_CHARACTERS
9941 cat >> confdefs.h <<\EOF
9942 #define SIGNALS_VIA_CHARACTERS 1
9946 { test "$extra_verbose" = "yes" && cat << \EOF
9949 cat >> confdefs.h <<\EOF
9955 echo "$ac_t""no" 1>&6
9956 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9957 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9958 echo "configure:9959: checking for termio.h" >&5
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9966 { (eval echo configure:9967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9967 ac_err=`grep -v '^ *+' conftest.out`
9968 if test -z "$ac_err"; then
9970 eval "ac_cv_header_$ac_safe=yes"
9973 echo "configure: failed program was:" >&5
9974 cat conftest.$ac_ext >&5
9976 eval "ac_cv_header_$ac_safe=no"
9979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9980 echo "$ac_t""yes" 1>&6
9981 { test "$extra_verbose" = "yes" && cat << \EOF
9982 Defining HAVE_TERMIO
9984 cat >> confdefs.h <<\EOF
9985 #define HAVE_TERMIO 1
9990 echo "$ac_t""no" 1>&6
9997 echo $ac_n "checking for socket""... $ac_c" 1>&6
9998 echo "configure:9999: checking for socket" >&5
10000 cat > conftest.$ac_ext <<EOF
10001 #line 10002 "configure"
10002 #include "confdefs.h"
10003 /* System header to define __stub macros and hopefully few prototypes,
10004 which can conflict with char socket(); below. */
10005 #include <assert.h>
10006 /* Override any gcc2 internal prototype to avoid an error. */
10007 /* We use char because int might match the return type of a gcc2
10008 builtin and then its argument prototype would still apply. */
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub_socket) || defined (__stub___socket)
10024 if { (eval echo configure:10025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10026 eval "ac_cv_func_socket=yes"
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10031 eval "ac_cv_func_socket=no"
10035 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10036 echo "$ac_t""yes" 1>&6
10037 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10038 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10039 echo "configure:10040: checking for netinet/in.h" >&5
10041 cat > conftest.$ac_ext <<EOF
10042 #line 10043 "configure"
10043 #include "confdefs.h"
10044 #include <netinet/in.h>
10046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10047 { (eval echo configure:10048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10048 ac_err=`grep -v '^ *+' conftest.out`
10049 if test -z "$ac_err"; then
10051 eval "ac_cv_header_$ac_safe=yes"
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10057 eval "ac_cv_header_$ac_safe=no"
10060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10061 echo "$ac_t""yes" 1>&6
10062 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10063 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10064 echo "configure:10065: checking for arpa/inet.h" >&5
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 #include <arpa/inet.h>
10071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10072 { (eval echo configure:10073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10073 ac_err=`grep -v '^ *+' conftest.out`
10074 if test -z "$ac_err"; then
10076 eval "ac_cv_header_$ac_safe=yes"
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10082 eval "ac_cv_header_$ac_safe=no"
10085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10086 echo "$ac_t""yes" 1>&6
10088 { test "$extra_verbose" = "yes" && cat << \EOF
10089 Defining HAVE_SOCKETS
10091 cat >> confdefs.h <<\EOF
10092 #define HAVE_SOCKETS 1
10096 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10097 echo "configure:10098: checking "for sun_len member in struct sockaddr_un"" >&5
10098 cat > conftest.$ac_ext <<EOF
10099 #line 10100 "configure"
10100 #include "confdefs.h"
10102 #include <sys/types.h>
10103 #include <sys/socket.h>
10104 #include <sys/un.h>
10107 static struct sockaddr_un x; x.sun_len = 1;
10110 if { (eval echo configure:10111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10112 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10113 Defining HAVE_SOCKADDR_SUN_LEN
10115 cat >> confdefs.h <<\EOF
10116 #define HAVE_SOCKADDR_SUN_LEN 1
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10124 echo "$ac_t""no" 1>&6
10127 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10128 echo "configure:10129: checking "for ip_mreq struct in netinet/in.h"" >&5
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10133 #include <sys/types.h>
10134 #include <netinet/in.h>
10137 static struct ip_mreq x;
10140 if { (eval echo configure:10141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10142 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10143 Defining HAVE_MULTICAST
10145 cat >> confdefs.h <<\EOF
10146 #define HAVE_MULTICAST 1
10151 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10154 echo "$ac_t""no" 1>&6
10158 echo "$ac_t""no" 1>&6
10162 echo "$ac_t""no" 1>&6
10166 echo "$ac_t""no" 1>&6
10170 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10171 echo "configure:10172: checking for msgget" >&5
10173 cat > conftest.$ac_ext <<EOF
10174 #line 10175 "configure"
10175 #include "confdefs.h"
10176 /* System header to define __stub macros and hopefully few prototypes,
10177 which can conflict with char msgget(); below. */
10178 #include <assert.h>
10179 /* Override any gcc2 internal prototype to avoid an error. */
10180 /* We use char because int might match the return type of a gcc2
10181 builtin and then its argument prototype would still apply. */
10186 /* The GNU C library defines this for functions which it implements
10187 to always fail with ENOSYS. Some functions are actually named
10188 something starting with __ and the normal name is an alias. */
10189 #if defined (__stub_msgget) || defined (__stub___msgget)
10197 if { (eval echo configure:10198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10199 eval "ac_cv_func_msgget=yes"
10201 echo "configure: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10204 eval "ac_cv_func_msgget=no"
10208 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10209 echo "$ac_t""yes" 1>&6
10210 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10211 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10212 echo "configure:10213: checking for sys/ipc.h" >&5
10214 cat > conftest.$ac_ext <<EOF
10215 #line 10216 "configure"
10216 #include "confdefs.h"
10217 #include <sys/ipc.h>
10219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10220 { (eval echo configure:10221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10221 ac_err=`grep -v '^ *+' conftest.out`
10222 if test -z "$ac_err"; then
10224 eval "ac_cv_header_$ac_safe=yes"
10227 echo "configure: failed program was:" >&5
10228 cat conftest.$ac_ext >&5
10230 eval "ac_cv_header_$ac_safe=no"
10233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10234 echo "$ac_t""yes" 1>&6
10235 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10236 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10237 echo "configure:10238: checking for sys/msg.h" >&5
10239 cat > conftest.$ac_ext <<EOF
10240 #line 10241 "configure"
10241 #include "confdefs.h"
10242 #include <sys/msg.h>
10244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10245 { (eval echo configure:10246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10246 ac_err=`grep -v '^ *+' conftest.out`
10247 if test -z "$ac_err"; then
10249 eval "ac_cv_header_$ac_safe=yes"
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10255 eval "ac_cv_header_$ac_safe=no"
10258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10259 echo "$ac_t""yes" 1>&6
10260 { test "$extra_verbose" = "yes" && cat << \EOF
10261 Defining HAVE_SYSVIPC
10263 cat >> confdefs.h <<\EOF
10264 #define HAVE_SYSVIPC 1
10269 echo "$ac_t""no" 1>&6
10273 echo "$ac_t""no" 1>&6
10277 echo "$ac_t""no" 1>&6
10281 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10282 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10283 echo "configure:10284: checking for dirent.h" >&5
10285 cat > conftest.$ac_ext <<EOF
10286 #line 10287 "configure"
10287 #include "confdefs.h"
10288 #include <dirent.h>
10290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10291 { (eval echo configure:10292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10292 ac_err=`grep -v '^ *+' conftest.out`
10293 if test -z "$ac_err"; then
10295 eval "ac_cv_header_$ac_safe=yes"
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10301 eval "ac_cv_header_$ac_safe=no"
10304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10305 echo "$ac_t""yes" 1>&6
10306 { test "$extra_verbose" = "yes" && cat << \EOF
10307 Defining SYSV_SYSTEM_DIR
10309 cat >> confdefs.h <<\EOF
10310 #define SYSV_SYSTEM_DIR 1
10315 echo "$ac_t""no" 1>&6
10316 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10317 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10318 echo "configure:10319: checking for sys/dir.h" >&5
10320 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10323 #include <sys/dir.h>
10325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10326 { (eval echo configure:10327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10327 ac_err=`grep -v '^ *+' conftest.out`
10328 if test -z "$ac_err"; then
10330 eval "ac_cv_header_$ac_safe=yes"
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10336 eval "ac_cv_header_$ac_safe=no"
10339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10340 echo "$ac_t""yes" 1>&6
10343 echo "$ac_t""no" 1>&6
10344 { test "$extra_verbose" = "yes" && cat << \EOF
10345 Defining NONSYSTEM_DIR_LIBRARY
10347 cat >> confdefs.h <<\EOF
10348 #define NONSYSTEM_DIR_LIBRARY 1
10357 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10358 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10359 echo "configure:10360: checking for nlist.h" >&5
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10367 { (eval echo configure:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10368 ac_err=`grep -v '^ *+' conftest.out`
10369 if test -z "$ac_err"; then
10371 eval "ac_cv_header_$ac_safe=yes"
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10377 eval "ac_cv_header_$ac_safe=no"
10380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10381 echo "$ac_t""yes" 1>&6
10382 { test "$extra_verbose" = "yes" && cat << \EOF
10383 Defining NLIST_STRUCT
10385 cat >> confdefs.h <<\EOF
10386 #define NLIST_STRUCT 1
10391 echo "$ac_t""no" 1>&6
10396 echo "checking "for sound support"" 1>&6
10397 echo "configure:10398: checking "for sound support"" >&5
10398 case "$with_sound" in
10399 native | both ) with_native_sound=yes;;
10400 nas | no ) with_native_sound=no;;
10402 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10404 if test "$with_native_sound" != "no"; then
10405 if test -n "$native_sound_lib"; then
10406 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10407 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10408 echo "configure:10409: checking for multimedia/audio_device.h" >&5
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10413 #include <multimedia/audio_device.h>
10415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10416 { (eval echo configure:10417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10417 ac_err=`grep -v '^ *+' conftest.out`
10418 if test -z "$ac_err"; then
10420 eval "ac_cv_header_$ac_safe=yes"
10423 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10426 eval "ac_cv_header_$ac_safe=no"
10429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10430 echo "$ac_t""yes" 1>&6
10431 sound_found=yes sound_cflags=""
10432 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10433 echo " xemacs will be linked with \"sunplay.o\""
10436 echo "$ac_t""no" 1>&6
10441 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10443 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10444 echo " xemacs will be linked with \"sunplay.o\""
10446 if test -d "/usr/demo/SOUND/include"
10447 then sound_cflags="-I/usr/demo/SOUND/include"
10448 else sound_cflags="-I/usr/demo/SOUND"
10450 if test -z "$native_sound_lib" ; then
10451 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10452 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10453 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10458 if test -z "$sound_found"; then
10459 case "$canonical" in
10461 if test -z "$native_sound_lib"; then
10463 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10464 echo "configure:10465: checking for ALopenport in -laudio" >&5
10465 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10467 xe_check_libs=" -laudio "
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10471 /* Override any gcc2 internal prototype to avoid an error. */
10472 /* We use char because int might match the return type of a gcc2
10473 builtin and then its argument prototype would still apply. */
10480 if { (eval echo configure:10481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10482 eval "ac_cv_lib_$ac_lib_var=yes"
10484 echo "configure: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10487 eval "ac_cv_lib_$ac_lib_var=no"
10492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10493 echo "$ac_t""yes" 1>&6
10494 native_sound_lib="-laudio"
10496 echo "$ac_t""no" 1>&6
10501 if test -n "$native_sound_lib"; then
10502 sound_found=yes sound_cflags=""
10503 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10504 echo " xemacs will be linked with \"sgiplay.o\""
10508 if test -z "$native_sound_lib"; then
10510 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10511 echo "configure:10512: checking for AOpenAudio in -lAlib" >&5
10512 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10514 xe_check_libs=" -lAlib "
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 /* Override any gcc2 internal prototype to avoid an error. */
10519 /* We use char because int might match the return type of a gcc2
10520 builtin and then its argument prototype would still apply. */
10527 if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10529 eval "ac_cv_lib_$ac_lib_var=yes"
10531 echo "configure: failed program was:" >&5
10532 cat conftest.$ac_ext >&5
10534 eval "ac_cv_lib_$ac_lib_var=no"
10539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10540 echo "$ac_t""yes" 1>&6
10541 native_sound_lib="-lAlib"
10543 echo "$ac_t""no" 1>&6
10548 if test -n "$native_sound_lib"; then
10550 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10551 echo " xemacs will be linked with \"hpplay.o\""
10553 if test "$GCC" = "yes" # Kludge city
10554 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10555 else sound_cflags="+e -I/usr/audio/examples"
10561 if test -z "$sound_found"; then
10562 for dir in "machine" "sys" "linux"; do
10563 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10564 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10565 echo "configure:10566: checking for ${dir}/soundcard.h" >&5
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 #include <${dir}/soundcard.h>
10572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10573 { (eval echo configure:10574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10574 ac_err=`grep -v '^ *+' conftest.out`
10575 if test -z "$ac_err"; then
10577 eval "ac_cv_header_$ac_safe=yes"
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10583 eval "ac_cv_header_$ac_safe=no"
10586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10587 echo "$ac_t""yes" 1>&6
10589 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10590 echo " xemacs will be linked with \"linuxplay.o\""
10592 { test "$extra_verbose" = "yes" && cat << EOF
10593 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10595 cat >> confdefs.h <<EOF
10596 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10602 echo "$ac_t""no" 1>&6
10608 test "$sound_found" = "yes" && with_native_sound=yes
10611 if test -z "$with_sound"; then
10612 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10617 if test "$with_native_sound" = "yes"; then
10618 { test "$extra_verbose" = "yes" && cat << \EOF
10619 Defining HAVE_NATIVE_SOUND
10621 cat >> confdefs.h <<\EOF
10622 #define HAVE_NATIVE_SOUND 1
10626 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10629 case "$with_sound" in both | nas )
10630 { test "$extra_verbose" = "yes" && cat << \EOF
10631 Defining HAVE_NAS_SOUND
10633 cat >> confdefs.h <<\EOF
10634 #define HAVE_NAS_SOUND 1
10638 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10639 echo " xemacs will be linked with \"nas.o\""
10641 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10642 cat > conftest.$ac_ext <<EOF
10643 #line 10644 "configure"
10644 #include "confdefs.h"
10645 #include <audio/Xtutil.h>
10647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10648 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10652 { test "$extra_verbose" = "yes" && cat << \EOF
10653 Defining NAS_NO_ERROR_JUMP
10655 cat >> confdefs.h <<\EOF
10656 #define NAS_NO_ERROR_JUMP 1
10666 test -z "$with_tty" && with_tty=yes
10668 if test "$with_tty" = "yes" ; then
10669 echo "checking for TTY-related features" 1>&6
10670 echo "configure:10671: checking for TTY-related features" >&5
10671 { test "$extra_verbose" = "yes" && cat << \EOF
10674 cat >> confdefs.h <<\EOF
10679 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
10680 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\""
10683 if test -z "$with_ncurses"; then
10685 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10686 echo "configure:10687: checking for tgetent in -lncurses" >&5
10687 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10689 xe_check_libs=" -lncurses "
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10693 /* Override any gcc2 internal prototype to avoid an error. */
10694 /* We use char because int might match the return type of a gcc2
10695 builtin and then its argument prototype would still apply. */
10702 if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10704 eval "ac_cv_lib_$ac_lib_var=yes"
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10709 eval "ac_cv_lib_$ac_lib_var=no"
10714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10715 echo "$ac_t""yes" 1>&6
10718 echo "$ac_t""no" 1>&6
10724 if test "$with_ncurses" = "yes"; then
10725 { test "$extra_verbose" = "yes" && cat << \EOF
10726 Defining HAVE_NCURSES
10728 cat >> confdefs.h <<\EOF
10729 #define HAVE_NCURSES 1
10733 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10734 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10735 echo "configure:10736: checking for ncurses/curses.h" >&5
10737 cat > conftest.$ac_ext <<EOF
10738 #line 10739 "configure"
10739 #include "confdefs.h"
10740 #include <ncurses/curses.h>
10742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10743 { (eval echo configure:10744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10744 ac_err=`grep -v '^ *+' conftest.out`
10745 if test -z "$ac_err"; then
10747 eval "ac_cv_header_$ac_safe=yes"
10750 echo "configure: failed program was:" >&5
10751 cat conftest.$ac_ext >&5
10753 eval "ac_cv_header_$ac_safe=no"
10756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10758 curses_h_path=ncurses/curses.h
10760 echo "$ac_t""no" 1>&6
10763 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10764 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10765 echo "configure:10766: checking for ncurses/term.h" >&5
10767 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure"
10769 #include "confdefs.h"
10770 #include <ncurses/term.h>
10772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10773 { (eval echo configure:10774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10774 ac_err=`grep -v '^ *+' conftest.out`
10775 if test -z "$ac_err"; then
10777 eval "ac_cv_header_$ac_safe=yes"
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10783 eval "ac_cv_header_$ac_safe=no"
10786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10787 echo "$ac_t""yes" 1>&6
10788 term_h_path=ncurses/term.h
10790 echo "$ac_t""no" 1>&6
10793 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10794 echo " xemacs will be linked with \"terminfo.o\""
10796 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
10798 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10799 save_c_switch_site="$c_switch_site"
10800 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10801 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10802 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10803 echo "configure:10804: checking for ncurses/curses.h" >&5
10805 cat > conftest.$ac_ext <<EOF
10806 #line 10807 "configure"
10807 #include "confdefs.h"
10808 #include <ncurses/curses.h>
10810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10811 { (eval echo configure:10812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10812 ac_err=`grep -v '^ *+' conftest.out`
10813 if test -z "$ac_err"; then
10815 eval "ac_cv_header_$ac_safe=yes"
10818 echo "configure: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10821 eval "ac_cv_header_$ac_safe=no"
10824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10825 echo "$ac_t""yes" 1>&6
10826 curses_h_path=ncurses/curses.h
10828 echo "$ac_t""no" 1>&6
10831 if test "$ac_cv_header_ncurses_curses_h" = "yes"
10832 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
10833 else c_switch_site="$save_c_switch_site"
10836 else if test "$have_terminfo" = "yes"; then
10837 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10838 echo " xemacs will be linked with \"terminfo.o\""
10840 if test -n "$libs_termcap"; then
10841 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10843 for lib in curses termlib termcap; do
10845 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10846 echo "configure:10847: checking for tgetent in -l$lib" >&5
10847 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10849 xe_check_libs=" -l$lib "
10850 cat > conftest.$ac_ext <<EOF
10851 #line 10852 "configure"
10852 #include "confdefs.h"
10853 /* Override any gcc2 internal prototype to avoid an error. */
10854 /* We use char because int might match the return type of a gcc2
10855 builtin and then its argument prototype would still apply. */
10862 if { (eval echo configure:10863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10864 eval "ac_cv_lib_$ac_lib_var=yes"
10866 echo "configure: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10869 eval "ac_cv_lib_$ac_lib_var=no"
10874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10875 echo "$ac_t""yes" 1>&6
10876 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
10878 echo "$ac_t""no" 1>&6
10884 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
10885 echo " xemacs will be linked with \"tparam.o\""
10887 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
10888 if test -n "$libs_termcap"; then
10889 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10892 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10893 echo "configure:10894: checking for tgetent in -lcurses" >&5
10894 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10896 xe_check_libs=" -lcurses "
10897 cat > conftest.$ac_ext <<EOF
10898 #line 10899 "configure"
10899 #include "confdefs.h"
10900 /* Override any gcc2 internal prototype to avoid an error. */
10901 /* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10909 if { (eval echo configure:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10911 eval "ac_cv_lib_$ac_lib_var=yes"
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10916 eval "ac_cv_lib_$ac_lib_var=no"
10921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10922 echo "$ac_t""yes" 1>&6
10923 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10925 echo "$ac_t""no" 1>&6
10926 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10927 echo "configure:10928: checking for tgetent in -ltermcap" >&5
10928 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10930 xe_check_libs=" -ltermcap "
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10934 /* Override any gcc2 internal prototype to avoid an error. */
10935 /* We use char because int might match the return type of a gcc2
10936 builtin and then its argument prototype would still apply. */
10943 if { (eval echo configure:10944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10945 eval "ac_cv_lib_$ac_lib_var=yes"
10947 echo "configure: failed program was:" >&5
10948 cat conftest.$ac_ext >&5
10950 eval "ac_cv_lib_$ac_lib_var=no"
10955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10956 echo "$ac_t""yes" 1>&6
10957 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
10959 echo "$ac_t""no" 1>&6
10960 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
10961 echo " xemacs will be linked with \"termcap.o\""
10972 { test "$extra_verbose" = "yes" && cat << EOF
10973 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
10975 cat >> confdefs.h <<EOF
10976 #define CURSES_H_PATH "${curses_h_path-curses.h}"
10980 { test "$extra_verbose" = "yes" && cat << EOF
10981 Defining TERM_H_PATH = "${term_h_path-term.h}"
10983 cat >> confdefs.h <<EOF
10984 #define TERM_H_PATH "${term_h_path-term.h}"
10989 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10990 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10991 echo "configure:10992: checking for gpm.h" >&5
10993 cat > conftest.$ac_ext <<EOF
10994 #line 10995 "configure"
10995 #include "confdefs.h"
10998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10999 { (eval echo configure:11000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11000 ac_err=`grep -v '^ *+' conftest.out`
11001 if test -z "$ac_err"; then
11003 eval "ac_cv_header_$ac_safe=yes"
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11009 eval "ac_cv_header_$ac_safe=no"
11012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11013 echo "$ac_t""yes" 1>&6
11016 echo "$ac_t""no" 1>&6
11020 test -z "$with_gpm" && {
11021 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11022 echo "configure:11023: checking for Gpm_Open in -lgpm" >&5
11023 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11025 xe_check_libs=" -lgpm "
11026 cat > conftest.$ac_ext <<EOF
11027 #line 11028 "configure"
11028 #include "confdefs.h"
11029 /* Override any gcc2 internal prototype to avoid an error. */
11030 /* We use char because int might match the return type of a gcc2
11031 builtin and then its argument prototype would still apply. */
11038 if { (eval echo configure:11039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11040 eval "ac_cv_lib_$ac_lib_var=yes"
11042 echo "configure: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11045 eval "ac_cv_lib_$ac_lib_var=no"
11050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11051 echo "$ac_t""yes" 1>&6
11054 echo "$ac_t""no" 1>&6
11059 if test "$with_gpm" = "yes"; then
11060 { test "$extra_verbose" = "yes" && cat << \EOF
11063 cat >> confdefs.h <<\EOF
11068 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11069 echo " xemacs will be linked with \"gpmevent.o\""
11071 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11074 else for feature in ncurses gpm; do
11075 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11076 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11078 eval "with_${feature}=no"
11081 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11082 echo " xemacs will be linked with \"event-unixoid.o\""
11086 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11087 != "no no no" && echo "checking for database support" 1>&6
11088 echo "configure:11089: checking for database support" >&5
11090 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11091 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11092 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11093 echo "configure:11094: checking for ndbm.h" >&5
11095 cat > conftest.$ac_ext <<EOF
11096 #line 11097 "configure"
11097 #include "confdefs.h"
11100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11101 { (eval echo configure:11102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11102 ac_err=`grep -v '^ *+' conftest.out`
11103 if test -z "$ac_err"; then
11105 eval "ac_cv_header_$ac_safe=yes"
11108 echo "configure: failed program was:" >&5
11109 cat conftest.$ac_ext >&5
11111 eval "ac_cv_header_$ac_safe=no"
11114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11115 echo "$ac_t""yes" 1>&6
11118 echo "$ac_t""no" 1>&6
11120 test "$with_database_gnudbm" = "yes" -o \
11121 "$with_database_dbm" = "yes" && \
11122 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11123 with_database_gnudbm=no with_database_dbm=no
11128 if test "$with_database_gnudbm" != "no"; then
11130 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11131 echo "configure:11132: checking for dbm_open in -lgdbm" >&5
11132 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11134 xe_check_libs=" -lgdbm "
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 /* Override any gcc2 internal prototype to avoid an error. */
11139 /* We use char because int might match the return type of a gcc2
11140 builtin and then its argument prototype would still apply. */
11147 if { (eval echo configure:11148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11149 eval "ac_cv_lib_$ac_lib_var=yes"
11151 echo "configure: failed program was:" >&5
11152 cat conftest.$ac_ext >&5
11154 eval "ac_cv_lib_$ac_lib_var=no"
11159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11160 echo "$ac_t""yes" 1>&6
11161 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11163 echo "$ac_t""no" 1>&6
11164 if test "$with_database_gnudbm" = "yes"; then
11165 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11167 with_database_gnudbm=no
11173 if test "$with_database_dbm" != "no"; then
11174 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11175 echo "configure:11176: checking for dbm_open" >&5
11177 cat > conftest.$ac_ext <<EOF
11178 #line 11179 "configure"
11179 #include "confdefs.h"
11180 /* System header to define __stub macros and hopefully few prototypes,
11181 which can conflict with char dbm_open(); below. */
11182 #include <assert.h>
11183 /* Override any gcc2 internal prototype to avoid an error. */
11184 /* We use char because int might match the return type of a gcc2
11185 builtin and then its argument prototype would still apply. */
11190 /* The GNU C library defines this for functions which it implements
11191 to always fail with ENOSYS. Some functions are actually named
11192 something starting with __ and the normal name is an alias. */
11193 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11201 if { (eval echo configure:11202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11203 eval "ac_cv_func_dbm_open=yes"
11205 echo "configure: failed program was:" >&5
11206 cat conftest.$ac_ext >&5
11208 eval "ac_cv_func_dbm_open=no"
11212 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11213 echo "$ac_t""yes" 1>&6
11214 with_database_dbm=yes libdbm=
11216 echo "$ac_t""no" 1>&6
11219 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11220 echo "configure:11221: checking for dbm_open in -ldbm" >&5
11221 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11223 xe_check_libs=" -ldbm "
11224 cat > conftest.$ac_ext <<EOF
11225 #line 11226 "configure"
11226 #include "confdefs.h"
11227 /* Override any gcc2 internal prototype to avoid an error. */
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11236 if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11238 eval "ac_cv_lib_$ac_lib_var=yes"
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11243 eval "ac_cv_lib_$ac_lib_var=no"
11248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11249 echo "$ac_t""yes" 1>&6
11250 with_database_dbm=yes libdbm=-ldbm
11252 echo "$ac_t""no" 1>&6
11253 test "$with_database_dbm" = "yes" && \
11254 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11255 with_database_dbm=no
11263 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11264 test "$with_database_gnudbm" = "yes" -o \
11265 "$with_database_dbm" = "yes" && \
11266 { test "$extra_verbose" = "yes" && cat << \EOF
11269 cat >> confdefs.h <<\EOF
11275 if test "$with_database_berkdb" != "no"; then
11276 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11277 echo "configure:11278: checking for Berkeley db.h" >&5
11278 for path in "db/db.h" "db.h"; do
11279 cat > conftest.$ac_ext <<EOF
11280 #line 11281 "configure"
11281 #include "confdefs.h"
11282 #ifdef HAVE_INTTYPES_H
11283 #define __BIT_TYPES_DEFINED__
11284 #include <inttypes.h>
11285 typedef uint8_t u_int8_t;
11286 typedef uint16_t u_int16_t;
11287 typedef uint32_t u_int32_t;
11288 #ifdef WE_DONT_NEED_QUADS
11289 typedef uint64_t u_int64_t;
11298 if { (eval echo configure:11299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11300 db_h_path="$path"; break
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11307 if test -z "$db_h_path"
11308 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11309 else echo "$ac_t""$db_h_path" 1>&6
11312 if test "$with_database_berkdb" != "no"; then
11313 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11314 echo "configure:11315: checking for Berkeley DB version" >&5
11315 cat > conftest.$ac_ext <<EOF
11316 #line 11317 "configure"
11317 #include "confdefs.h"
11318 #include <$db_h_path>
11319 #if DB_VERSION_MAJOR > 1
11324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11325 egrep "yes" >/dev/null 2>&1; then
11327 echo "$ac_t""2" 1>&6; dbfunc=db_open
11330 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11334 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11335 echo "configure:11336: checking for $dbfunc" >&5
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11340 /* System header to define __stub macros and hopefully few prototypes,
11341 which can conflict with char $dbfunc(); below. */
11342 #include <assert.h>
11343 /* Override any gcc2 internal prototype to avoid an error. */
11344 /* We use char because int might match the return type of a gcc2
11345 builtin and then its argument prototype would still apply. */
11350 /* The GNU C library defines this for functions which it implements
11351 to always fail with ENOSYS. Some functions are actually named
11352 something starting with __ and the normal name is an alias. */
11353 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11361 if { (eval echo configure:11362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11363 eval "ac_cv_func_$dbfunc=yes"
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11368 eval "ac_cv_func_$dbfunc=no"
11372 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11373 echo "$ac_t""yes" 1>&6
11374 with_database_berkdb=yes need_libdb=no
11376 echo "$ac_t""no" 1>&6
11379 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11380 echo "configure:11381: checking for $dbfunc in -ldb" >&5
11381 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11383 xe_check_libs=" -ldb "
11384 cat > conftest.$ac_ext <<EOF
11385 #line 11386 "configure"
11386 #include "confdefs.h"
11387 /* Override any gcc2 internal prototype to avoid an error. */
11388 /* We use char because int might match the return type of a gcc2
11389 builtin and then its argument prototype would still apply. */
11396 if { (eval echo configure:11397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11398 eval "ac_cv_lib_$ac_lib_var=yes"
11400 echo "configure: failed program was:" >&5
11401 cat conftest.$ac_ext >&5
11403 eval "ac_cv_lib_$ac_lib_var=no"
11408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11409 echo "$ac_t""yes" 1>&6
11410 with_database_berkdb=yes need_libdb=yes
11412 echo "$ac_t""no" 1>&6
11420 if test "$with_database_berkdb" = "yes"; then
11421 { test "$extra_verbose" = "yes" && cat << EOF
11422 Defining DB_H_PATH = "$db_h_path"
11424 cat >> confdefs.h <<EOF
11425 #define DB_H_PATH "$db_h_path"
11429 { test "$extra_verbose" = "yes" && cat << \EOF
11430 Defining HAVE_BERKELEY_DB
11432 cat >> confdefs.h <<\EOF
11433 #define HAVE_BERKELEY_DB 1
11437 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11438 else with_database_berkdb=no
11442 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11443 != "no no no"; then
11444 { test "$extra_verbose" = "yes" && cat << \EOF
11445 Defining HAVE_DATABASE
11447 cat >> confdefs.h <<\EOF
11448 #define HAVE_DATABASE 1
11452 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11453 echo " xemacs will be linked with \"database.o\""
11457 if test "$with_socks" = "yes"; then
11459 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11460 echo "configure:11461: checking for SOCKSinit in -lsocks" >&5
11461 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11463 xe_check_libs=" -lsocks "
11464 cat > conftest.$ac_ext <<EOF
11465 #line 11466 "configure"
11466 #include "confdefs.h"
11467 /* Override any gcc2 internal prototype to avoid an error. */
11468 /* We use char because int might match the return type of a gcc2
11469 builtin and then its argument prototype would still apply. */
11476 if { (eval echo configure:11477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11478 eval "ac_cv_lib_$ac_lib_var=yes"
11480 echo "configure: failed program was:" >&5
11481 cat conftest.$ac_ext >&5
11483 eval "ac_cv_lib_$ac_lib_var=no"
11488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11489 echo "$ac_t""yes" 1>&6
11490 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11491 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11492 { test "$extra_verbose" = "yes" && cat << EOF
11493 Defining $ac_tr_lib
11495 cat >> confdefs.h <<EOF
11496 #define $ac_tr_lib 1
11500 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11503 echo "$ac_t""no" 1>&6
11507 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11508 Defining HAVE_SOCKS
11510 cat >> confdefs.h <<\EOF
11511 #define HAVE_SOCKS 1
11517 if test "$usage_tracking" = "yes"; then
11518 { test "$extra_verbose" = "yes" && cat << \EOF
11519 Defining USAGE_TRACKING
11521 cat >> confdefs.h <<\EOF
11522 #define USAGE_TRACKING 1
11526 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11529 for ac_hdr in dlfcn.h
11531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11533 echo "configure:11534: checking for $ac_hdr" >&5
11535 cat > conftest.$ac_ext <<EOF
11536 #line 11537 "configure"
11537 #include "confdefs.h"
11540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11541 { (eval echo configure:11542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11542 ac_err=`grep -v '^ *+' conftest.out`
11543 if test -z "$ac_err"; then
11545 eval "ac_cv_header_$ac_safe=yes"
11548 echo "configure: failed program was:" >&5
11549 cat conftest.$ac_ext >&5
11551 eval "ac_cv_header_$ac_safe=no"
11554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11555 echo "$ac_t""yes" 1>&6
11556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11557 { test "$extra_verbose" = "yes" && cat << EOF
11558 Defining $ac_tr_hdr
11560 cat >> confdefs.h <<EOF
11561 #define $ac_tr_hdr 1
11565 { test "$extra_verbose" = "yes" && cat << \EOF
11566 Defining HAVE_DLFCN_H
11568 cat >> confdefs.h <<\EOF
11569 #define HAVE_DLFCN_H 1
11574 echo "$ac_t""no" 1>&6
11578 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11579 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11580 echo "configure:11581: checking for dlopen in -ldl" >&5
11581 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11583 xe_check_libs=" -ldl "
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11587 /* Override any gcc2 internal prototype to avoid an error. */
11588 /* We use char because int might match the return type of a gcc2
11589 builtin and then its argument prototype would still apply. */
11596 if { (eval echo configure:11597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11598 eval "ac_cv_lib_$ac_lib_var=yes"
11600 echo "configure: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11603 eval "ac_cv_lib_$ac_lib_var=no"
11608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11609 echo "$ac_t""yes" 1>&6
11610 { test "$extra_verbose" = "yes" && cat << \EOF
11611 Defining HAVE_DLOPEN
11613 cat >> confdefs.h <<\EOF
11614 #define HAVE_DLOPEN 1
11617 DLL_LIB=dl; with_shlib=yes
11619 echo "$ac_t""no" 1>&6
11623 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11624 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11625 echo "configure:11626: checking for _dlopen in -lc" >&5
11626 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11628 xe_check_libs=" -lc "
11629 cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 /* Override any gcc2 internal prototype to avoid an error. */
11633 /* We use char because int might match the return type of a gcc2
11634 builtin and then its argument prototype would still apply. */
11641 if { (eval echo configure:11642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11643 eval "ac_cv_lib_$ac_lib_var=yes"
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11648 eval "ac_cv_lib_$ac_lib_var=no"
11653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11654 echo "$ac_t""yes" 1>&6
11655 { test "$extra_verbose" = "yes" && cat << \EOF
11656 Defining HAVE_DLOPEN
11658 cat >> confdefs.h <<\EOF
11659 #define HAVE_DLOPEN 1
11662 DLL_LIB=; with_shlib=yes
11664 echo "$ac_t""no" 1>&6
11668 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11669 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11670 echo "configure:11671: checking for dlopen in -lc" >&5
11671 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11673 xe_check_libs=" -lc "
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 /* Override any gcc2 internal prototype to avoid an error. */
11678 /* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11688 eval "ac_cv_lib_$ac_lib_var=yes"
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11693 eval "ac_cv_lib_$ac_lib_var=no"
11698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11699 echo "$ac_t""yes" 1>&6
11700 { test "$extra_verbose" = "yes" && cat << \EOF
11701 Defining HAVE_DLOPEN
11703 cat >> confdefs.h <<\EOF
11704 #define HAVE_DLOPEN 1
11707 DLL_LIB=; with_shlib=yes
11709 echo "$ac_t""no" 1>&6
11713 test -z "$with_shlib" && {
11714 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11715 echo "configure:11716: checking for shl_load in -ldld" >&5
11716 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11718 xe_check_libs=" -ldld "
11719 cat > conftest.$ac_ext <<EOF
11720 #line 11721 "configure"
11721 #include "confdefs.h"
11722 /* Override any gcc2 internal prototype to avoid an error. */
11723 /* We use char because int might match the return type of a gcc2
11724 builtin and then its argument prototype would still apply. */
11731 if { (eval echo configure:11732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11733 eval "ac_cv_lib_$ac_lib_var=yes"
11735 echo "configure: failed program was:" >&5
11736 cat conftest.$ac_ext >&5
11738 eval "ac_cv_lib_$ac_lib_var=no"
11743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11744 echo "$ac_t""yes" 1>&6
11745 { test "$extra_verbose" = "yes" && cat << \EOF
11746 Defining HAVE_SHL_LOAD
11748 cat >> confdefs.h <<\EOF
11749 #define HAVE_SHL_LOAD 1
11752 DLL_LIB=dld; with_shlib=yes
11754 echo "$ac_t""no" 1>&6
11758 test -z "$with_shlib" && {
11759 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11760 echo "configure:11761: checking for dld_init in -ldld" >&5
11761 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11763 xe_check_libs=" -ldld "
11764 cat > conftest.$ac_ext <<EOF
11765 #line 11766 "configure"
11766 #include "confdefs.h"
11767 /* Override any gcc2 internal prototype to avoid an error. */
11768 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11778 eval "ac_cv_lib_$ac_lib_var=yes"
11780 echo "configure: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11783 eval "ac_cv_lib_$ac_lib_var=no"
11788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11789 echo "$ac_t""yes" 1>&6
11790 { test "$extra_verbose" = "yes" && cat << \EOF
11791 Defining HAVE_DLD_INIT
11793 cat >> confdefs.h <<\EOF
11794 #define HAVE_DLD_INIT 1
11797 DLL_LIB=dld; with_shlib=yes
11799 echo "$ac_t""no" 1>&6
11803 if test "$with_shlib" = "yes"; then
11810 ld_dynamic_link_flags=
11812 xealias=$internal_configuration
11814 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
11815 echo "configure:11816: checking how to build dynamic libraries for ${xehost}" >&5
11816 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
11819 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11822 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11823 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11824 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11826 case "$xehost_os" in
11828 # AIX sometimes has problems with the GCC collect2 program. For some
11829 # reason, if we set the COLLECT_NAMES environment variable, the problems
11830 # vanish in a puff of smoke.
11831 if test "${COLLECT_NAMES+set}" != set; then
11833 export COLLECT_NAMES
11838 # Now see if the compiler is really GCC.
11839 if test "$GCC" = "yes"; then
11842 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
11843 echo "configure:11844: checking checking whether we are using GNU C" >&5
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11854 egrep "yes" >/dev/null 2>&1; then
11863 echo "$ac_t""${XEGCC}" 1>&6
11866 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
11867 echo "configure:11868: checking how to produce PIC code" >&5
11870 can_build_shared=yes
11871 if test "$XEGCC" = yes; then
11874 case "$xehost_os" in
11875 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
11876 # PIC is the default for these OSes.
11880 # We can build DLLs from non-PIC.
11883 # FIXME: we need at least 68020 code to build shared libraries, but
11884 # adding the `-m68020' flag to GCC prevents building anything better,
11886 dll_cflags='-m68020 -resident32 -malways-restore-a4'
11893 # PORTME Check for PIC flags for the system compiler.
11894 case "$xehost_os" in
11896 # Is there a better link_static_flag that works with the bundled CC?
11903 # PIC (with -KPIC) is the default.
11907 # We can build DLLs from non-PIC.
11911 # All OSF/1 code is PIC.
11916 dll_cflags='-belf -Kpic'
11950 can_build_shared=no
11955 if test -n "$dll_cflags"; then
11956 echo "$ac_t""${dll_cflags}" 1>&6
11958 # Check to make sure the dll_cflags actually works.
11959 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
11960 echo "configure:11961: checking if PIC flag ${dll_cflags} really works" >&5
11961 save_CFLAGS="$CFLAGS"
11962 CFLAGS="$CFLAGS $dll_cflags -DPIC"
11963 cat > conftest.$ac_ext <<EOF
11964 #line 11965 "configure"
11965 #include "confdefs.h"
11971 if { (eval echo configure:11972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11974 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
11975 # reports no error. So, we need to grep stderr for (Bundled).
11976 if grep '(Bundled)' config.log >/dev/null; then
11977 echo "$ac_t""no" 1>&6
11978 can_build_shared=no
11981 echo "$ac_t""yes" 1>&6
11984 echo "configure: failed program was:" >&5
11985 cat conftest.$ac_ext >&5
11987 echo "$ac_t""no" 1>&6
11988 can_build_shared=no
11992 CFLAGS="$save_CFLAGS"
11994 echo "$ac_t""none" 1>&6
11997 if test "$can_build_shared" = "yes"; then
12001 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12002 echo "configure:12003: checking if C compiler can produce shared libraries" >&5
12003 if test "$XEGCC" = yes; then
12006 else # Not using GCC
12007 case "$xehost_os" in
12009 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12010 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12013 freebsd2* | netbsd* | openbsd*)
12015 xcldf="${wl}-Bshareable"
12024 xcldf="${wl}-b ${wl}+s"
12027 irix5* | irix6* | osf3* | osf4*)
12028 xcldf="${wl}-shared"
12032 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12038 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12039 xldf="-assert pure-text -Bstatic"
12042 fi # End if if we are using gcc
12044 if test -n "$xcldf"; then
12045 save_LDFLAGS=$LDFLAGS
12047 save_xe_libs=$xe_libs
12048 LDFLAGS="$xcldf $LDFLAGS"
12051 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12052 cat > conftest.$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12060 if { (eval echo configure:12061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12064 echo "configure: failed program was:" >&5
12065 cat conftest.$ac_ext >&5
12070 LDFLAGS=$save_LDFLAGS
12072 xe_libs=$save_xe_libs
12073 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12077 echo "$ac_t""${cc_produces_so}" 1>&6
12080 if test -z "$LTLD"; then
12082 if test "$XEGCC" = yes; then
12083 # Check if gcc -print-prog-name=ld gives a path.
12084 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12085 echo "configure:12086: checking for ld used by GCC" >&5
12086 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12088 # Accept absolute paths.
12090 if test -z "$LTLD"; then
12092 *gcc-lib*) LTLD="$CC"
12100 # If it fails, then pretend we aren't using GCC.
12104 # If it is relative, then search for the first ld in PATH.
12105 with_gnu_ld=unknown
12109 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12110 echo "configure:12111: checking for GNU ld" >&5
12113 if test -z "$LTLD"; then
12114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12115 for ac_dir in $PATH; do
12116 test -z "$ac_dir" && ac_dir=.
12117 if test -f "$ac_dir/$ac_prog"; then
12118 LTLD="$ac_dir/$ac_prog"
12119 # Check to see if the program is GNU ld. I'd rather use --version,
12120 # but apparently some GNU ld's only accept -v.
12121 # Break only if it was the GNU/non-GNU ld that we prefer.
12122 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12132 if test -n "$LTLD"; then
12133 echo "$ac_t""${LTLD}" 1>&6
12135 echo "$ac_t""no" 1>&6
12138 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12139 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12144 ld_dynamic_link_flags=
12146 # Check to see if it really is or isn't GNU ld.
12147 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12148 echo "configure:12149: checking if the linker is GNU ld" >&5
12149 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12150 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12155 echo "$ac_t""${xe_gnu_ld}" 1>&6
12157 case "$xehost_os" in
12158 amigaos* | sunos4*)
12159 # On these operating systems, we should treat GNU ld like the system ld.
12160 gnu_ld_acts_native=yes
12163 gnu_ld_acts_native=no
12167 if test "$cc_produces_so" = "yes"; then
12170 can_build_shared=yes
12172 # OK - only NOW do we futz about with ld.
12173 # See if the linker supports building shared libraries.
12174 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12175 echo "configure:12176: checking whether the linker supports shared libraries" >&5
12177 dll_ldflags=$LDFLAGS
12179 can_build_shared=yes
12180 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12181 # See if GNU ld supports shared libraries.
12182 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12184 dll_ldflags="-shared"
12190 # PORTME fill in a description of your system's linker (not GNU ld)
12191 case "$xehost_os" in
12201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12202 # support. Future versions do this automatically, but an explicit c++rt0.o
12203 # doesn't break anything, and helps significantly (at the cost of a little
12208 dll_post="/usr/lib/c++rt0.o"
12211 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12214 dll_ldflags="-Bshareable"
12217 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12219 dll_ldflags="-shared"
12233 # Tested with NetBSD 1.2 ld
12248 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12249 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12252 *gcc*) dll_ldflags="-shared"
12255 *) dll_ldflags="-G"
12261 if test "$XEGCC" = yes; then
12281 can_build_shared=no
12285 echo "$ac_t""${ld_shlibs}" 1>&6
12286 if test "$ld_shlibs" = "no"; then
12287 can_build_shared=no
12289 fi # End of if cc_produces_so = no
12292 if test "$xe_gnu_ld" = yes; then
12293 if test "$ld_shlibs" = yes; then
12294 ld_dynamic_link_flags="${wl}-export-dynamic"
12298 if test -z "$ld_dynamic_link_flags"; then
12299 case "$xehost_os" in
12301 ld_dynamic_link_flags=
12305 ld_dynamic_link_flags=
12309 ld_dynamic_link_flags=
12313 ld_dynamic_link_flags=
12317 ld_dynamic_link_flags=
12321 ld_dynamic_link_flags="${wl}-E"
12325 ld_dynamic_link_flags=
12329 ld_dynamic_link_flags=
12333 ld_dynamic_link_flags=
12337 ld_dynamic_link_flags=
12340 solaris2* | solaris7*)
12341 ld_dynamic_link_flags="${wl}-Bdynamic"
12344 sco3.2v5* | unixware* | sysv5* | sysv4*)
12345 ld_dynamic_link_flags="${wl}-Bexport"
12349 ld_dynamic_link_flags=
12353 ld_dynamic_link_flags=
12357 ld_dynamic_link_flags=
12361 fi # End of if -z ld_dynamic_link_flags
12362 fi # End of if test "$can_build_shared" = "yes"
12371 if test "$can_build_shared" = "yes"; then
12372 { test "$extra_verbose" = "yes" && cat << \EOF
12373 Defining HAVE_SHLIB
12375 cat >> confdefs.h <<\EOF
12376 #define HAVE_SHLIB 1
12380 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12381 echo " xemacs will be linked with \"sysdll.o\""
12383 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12384 echo " xemacs will be linked with \"emodules.o\""
12386 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12387 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12388 for ac_func in dlerror _dlerror
12390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12391 echo "configure:12392: checking for $ac_func" >&5
12393 cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12396 /* System header to define __stub macros and hopefully few prototypes,
12397 which can conflict with char $ac_func(); below. */
12398 #include <assert.h>
12399 /* Override any gcc2 internal prototype to avoid an error. */
12400 /* We use char because int might match the return type of a gcc2
12401 builtin and then its argument prototype would still apply. */
12406 /* The GNU C library defines this for functions which it implements
12407 to always fail with ENOSYS. Some functions are actually named
12408 something starting with __ and the normal name is an alias. */
12409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12417 if { (eval echo configure:12418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12419 eval "ac_cv_func_$ac_func=yes"
12421 echo "configure: failed program was:" >&5
12422 cat conftest.$ac_ext >&5
12424 eval "ac_cv_func_$ac_func=no"
12428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12429 echo "$ac_t""yes" 1>&6
12430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12431 { test "$extra_verbose" = "yes" && cat << EOF
12432 Defining $ac_tr_func
12434 cat >> confdefs.h <<EOF
12435 #define $ac_tr_func 1
12440 echo "$ac_t""no" 1>&6
12445 echo "configure: warning: disabling shared library support" 1>&2
12450 cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 int main(int c,char *v[]){return 0;}
12455 if { (eval echo configure:12456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12460 echo "configure: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12465 echo "*** PANIC *** The C compiler can no longer build working executables."
12466 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12467 echo "*** PANIC *** The most likely reason for this problem is that configure"
12468 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12469 echo "*** PANIC *** found at run time."
12470 echo "*** PANIC ***"
12471 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12472 echo "*** PANIC *** On other systems, try telling configure where to find the"
12473 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12474 echo "*** PANIC ***"
12475 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12476 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12477 echo "*** PANIC *** on your system. Don't do that."
12482 if test "$win32_processes" = "yes"; then
12483 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12484 echo " xemacs will be linked with \"process-nt.o\""
12487 { test "$extra_verbose" = "yes" && cat << \EOF
12488 Defining HAVE_UNIX_PROCESSES
12490 cat >> confdefs.h <<\EOF
12491 #define HAVE_UNIX_PROCESSES 1
12495 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12496 echo " xemacs will be linked with \"process-unix.o\""
12503 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12508 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12513 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
12514 c_switch_general="$T"
12518 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12519 c_switch_window_system="$T"
12523 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12528 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
12529 ld_switch_general="$T"
12533 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12534 ld_switch_window_system="$T"
12538 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12543 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12544 ld_libs_general="$T"
12548 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
12549 ld_libs_window_system="$T"
12553 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12558 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12559 internal_makefile_list="Makefile.in"
12560 SUBDIR_MAKEFILES=''
12561 test -d lock || mkdir lock
12562 for dir in $MAKE_SUBDIR; do
12563 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12564 test -d "$d" || mkdir "$d"; cd "$d"
12566 * ) test -d "$dir" || mkdir "$dir" ;;
12570 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12571 SUBDIR_MAKEFILES="$T"
12575 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12576 internal_makefile_list="$T"
12583 for dir in src/s src/m; do
12584 if test ! -d "$dir" ; then
12585 echo Making symbolic link to "$srcdir/$dir"
12586 ${LN_S} "$srcdir/$dir" "$dir"
12590 if test "$extra_verbose" = "yes"; then
12592 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
12596 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12597 echo "creating src/gdbinit"; echo ""
12598 echo "source $srcdir/src/gdbinit" > src/gdbinit
12601 if test "$__SUNPRO_C" = "yes"; then
12602 echo "creating .sbinit"; echo ""
12603 ( echo "# For use with Sun WorkShop's Source browser."
12604 echo "# See sbquery(1) and sbinit(4) for more information"
12605 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12629 *\$* ) eval "PREFIX=$PREFIX" ;;
12636 EXEC_PREFIX=$exec_prefix
12638 case "$EXEC_PREFIX" in
12639 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12650 *\$* ) eval "INFODIR=$INFODIR" ;;
12660 case "$INFOPATH" in
12661 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12669 PACKAGE_PATH=$package_path
12671 case "$PACKAGE_PATH" in
12672 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12683 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12691 MODULEDIR=$moduledir
12693 case "$MODULEDIR" in
12694 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12702 SITELISPDIR=$sitelispdir
12704 case "$SITELISPDIR" in
12705 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12713 SITEMODULEDIR=$sitemoduledir
12715 case "$SITEMODULEDIR" in
12716 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12727 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12738 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12746 ARCHLIBDIR=$archlibdir
12748 case "$ARCHLIBDIR" in
12749 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12773 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12781 : ${XEMACS_CC:=$CC}
12785 if test "$with_site_lisp" = "no"; then
12786 { test "$extra_verbose" = "yes" && cat << \EOF
12787 Defining INHIBIT_SITE_LISP
12789 cat >> confdefs.h <<\EOF
12790 #define INHIBIT_SITE_LISP 1
12795 if test "$with_site_modules" = "no"; then
12796 { test "$extra_verbose" = "yes" && cat << \EOF
12797 Defining INHIBIT_SITE_MODULES
12799 cat >> confdefs.h <<\EOF
12800 #define INHIBIT_SITE_MODULES 1
12808 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12809 ac_configure_args="$T"
12811 { test "$extra_verbose" = "yes" && cat << EOF
12812 Defining EMACS_CONFIGURATION = "$canonical"
12814 cat >> confdefs.h <<EOF
12815 #define EMACS_CONFIGURATION "$canonical"
12819 { test "$extra_verbose" = "yes" && cat << EOF
12820 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12822 cat >> confdefs.h <<EOF
12823 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
12827 { test "$extra_verbose" = "yes" && cat << EOF
12828 Defining config_machfile = "$machfile"
12830 cat >> confdefs.h <<EOF
12831 #define config_machfile "$machfile"
12835 { test "$extra_verbose" = "yes" && cat << EOF
12836 Defining config_opsysfile = "$opsysfile"
12838 cat >> confdefs.h <<EOF
12839 #define config_opsysfile "$opsysfile"
12846 { test "$extra_verbose" = "yes" && cat << EOF
12847 Defining LD_SWITCH_X_SITE = $null_string
12849 cat >> confdefs.h <<EOF
12850 #define LD_SWITCH_X_SITE $null_string
12854 { test "$extra_verbose" = "yes" && cat << EOF
12855 Defining LD_SWITCH_X_SITE_AUX = $null_string
12857 cat >> confdefs.h <<EOF
12858 #define LD_SWITCH_X_SITE_AUX $null_string
12862 { test "$extra_verbose" = "yes" && cat << EOF
12863 Defining C_SWITCH_X_SITE = $null_string
12865 cat >> confdefs.h <<EOF
12866 #define C_SWITCH_X_SITE $null_string
12870 { test "$extra_verbose" = "yes" && cat << EOF
12871 Defining LD_SWITCH_SITE = $null_string
12873 cat >> confdefs.h <<EOF
12874 #define LD_SWITCH_SITE $null_string
12878 { test "$extra_verbose" = "yes" && cat << EOF
12879 Defining C_SWITCH_SITE = $null_string
12881 cat >> confdefs.h <<EOF
12882 #define C_SWITCH_SITE $null_string
12888 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12889 Defining GNU_MALLOC
12891 cat >> confdefs.h <<\EOF
12892 #define GNU_MALLOC 1
12896 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12897 Defining USE_SYSTEM_MALLOC
12899 cat >> confdefs.h <<\EOF
12900 #define USE_SYSTEM_MALLOC 1
12904 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12905 Defining USE_DEBUG_MALLOC
12907 cat >> confdefs.h <<\EOF
12908 #define USE_DEBUG_MALLOC 1
12912 { test "$extra_verbose" = "yes" && cat << \EOF
12913 Defining USE_SYSTEM_MALLOC
12915 cat >> confdefs.h <<\EOF
12916 #define USE_SYSTEM_MALLOC 1
12921 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12924 cat >> confdefs.h <<\EOF
12929 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12932 cat >> confdefs.h <<\EOF
12937 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12938 Defining EXTERNAL_WIDGET
12940 cat >> confdefs.h <<\EOF
12941 #define EXTERNAL_WIDGET 1
12945 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12946 Defining NO_DOC_FILE
12948 cat >> confdefs.h <<\EOF
12949 #define NO_DOC_FILE 1
12953 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12956 cat >> confdefs.h <<\EOF
12961 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12964 cat >> confdefs.h <<\EOF
12969 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12970 Defining MAIL_USE_POP
12972 cat >> confdefs.h <<\EOF
12973 #define MAIL_USE_POP 1
12977 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12980 cat >> confdefs.h <<\EOF
12985 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12988 cat >> confdefs.h <<\EOF
12993 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12994 Defining USE_UNION_TYPE
12996 cat >> confdefs.h <<\EOF
12997 #define USE_UNION_TYPE 1
13004 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13006 echo "uname -a: `uname -a`"
13009 echo "$0 $quoted_arguments"
13013 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}"
13018 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13020 Where should the build process find the source code? $srcdir
13021 What installation prefix should install use? $prefix
13022 What operating system and machine description files should XEmacs use?
13023 \`$opsysfile' and \`$machfile'
13024 What compiler should XEmacs be built with? $CC $CFLAGS
13025 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13026 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13027 What window system should XEmacs use? ${window_system}"
13028 if test "$with_x11" = "yes"; then
13029 echo " Where do we find X Windows header files? $x_includes"
13030 echo " Where do we find X Windows libraries? $x_libraries"
13032 if test -n "$site_includes"; then
13033 echo " Additional header files: $site_includes"
13035 if test -n "$site_libraries"; then
13036 echo " Additional libraries: $site_libraries"
13038 if test -n "$site_prefixes"; then
13039 echo " Additional prefixes: $site_prefixes"
13041 if test -n "$runpath"; then
13042 echo " Runtime library search path: $runpath"
13044 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13045 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13046 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13047 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13048 echo " No Xmu; substituting equivalent routines."
13051 if test "$with_xpm" = yes; then
13052 echo " Compiling in support for XPM images."
13053 elif test "$with_x11" = yes; then
13054 echo " --------------------------------------------------------------------"
13055 echo " WARNING: Compiling without XPM support."
13056 if test "$xpm_problem" != ""; then
13057 echo " Reason: $xpm_problem"
13059 echo " WARNING: You should strongly consider installing XPM."
13060 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13061 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13062 echo " --------------------------------------------------------------------"
13064 if test "$with_png" = yes; then
13065 echo " Compiling in support for PNG image handling."
13066 elif test "$window_system" != "none"; then
13067 echo " --------------------------------------------------------------------"
13068 echo " WARNING: Compiling without PNG image support."
13069 if test "$png_problem" != ""; then
13070 echo " Reason: $png_problem"
13072 echo " WARNING: You should strongly consider installing the PNG libraries."
13073 echo " WARNING: Otherwise certain images and glyphs may not display."
13074 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13075 echo " --------------------------------------------------------------------"
13077 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13078 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13079 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13080 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13081 case "$with_sound" in
13082 nas ) echo " Compiling in network sound (NAS) support." ;;
13083 native ) echo " Compiling in native sound support." ;;
13084 both ) echo " Compiling in both network and native sound support." ;;
13086 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13088 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13089 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13090 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13092 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
13093 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
13094 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
13096 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13097 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13099 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13100 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13101 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13102 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13103 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13104 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13105 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13106 if test "$with_wnn" = yes; then
13107 echo " Compiling in support for the WNN input method on Mule."
13108 test "$with_wnn6" = yes && echo " Using WNN version 6."
13110 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13112 test "$with_cde" = yes && echo " Compiling in support for CDE."
13113 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13114 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13115 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13116 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13117 test "$with_session" != no && echo " Compiling in support for proper session-management."
13118 case "$with_menubars" in
13119 lucid ) echo " Using Lucid menubars." ;;
13120 motif ) echo " Using Motif menubars."
13121 echo " *WARNING* The Motif menubar implementation is currently buggy."
13122 echo " We recommend using the Lucid menubar instead."
13123 echo " Re-run configure with --with-menubars='lucid'." ;;
13125 case "$with_scrollbars" in
13126 lucid ) echo " Using Lucid scrollbars." ;;
13127 motif ) echo " Using Motif scrollbars." ;;
13128 athena ) echo " Using Athena scrollbars." ;;
13129 athena3d ) echo " Using Athena-3d scrollbars." ;;
13131 case "$with_dialogs" in
13133 echo " Using Motif dialog boxes."
13134 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13135 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13136 echo " We recommend using the Athena dialog boxes instead."
13137 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13138 echo " Read the PROBLEMS file for more information."
13141 athena ) echo " Using Athena dialog boxes." ;;
13142 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13144 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
13145 test "$with_clash_detection" = yes && \
13146 echo " Clash detection will use \"$lockdir\" for locking files."
13147 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13148 test "$with_pop" = yes && echo " Using POP for mail access."
13149 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13150 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13151 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13152 test "$debug" = yes && echo " Compiling in extra code for debugging."
13153 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13154 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13155 != "no no no no no"; then
13156 echo " WARNING: ---------------------------------------------------------"
13157 echo " WARNING: Compiling in support for runtime error checking."
13158 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13159 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13160 echo " WARNING: ---------------------------------------------------------"
13163 ) | tee -a Installation
13167 # Remove any trailing slashes in these variables.
13168 test -n "$prefix" &&
13169 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13170 test -n "$exec_prefix" &&
13171 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13174 for file in $internal_makefile_list; do
13175 test "$file" = src/Makefile.in && \
13176 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13177 ac_output_files="${ac_output_files+$ac_output_files }$file"
13179 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13180 if test "$with_shlib" = "yes"; then
13181 ac_output_files="$ac_output_files lib-src/ellcc.h"
13186 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13189 # Let make expand exec_prefix.
13190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13192 # Any assignment to VPATH causes Sun make to only execute
13193 # the first set of double-colon rules, so remove it if not needed.
13194 # If there is a colon in the path, we need to keep it.
13195 if test "x$srcdir" = x.; then
13196 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13199 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13201 DEFS=-DHAVE_CONFIG_H
13203 # Without the "./", some shells look in PATH for config.status.
13204 : ${CONFIG_STATUS=./config.status}
13206 echo creating $CONFIG_STATUS
13207 rm -f $CONFIG_STATUS
13208 cat > $CONFIG_STATUS <<EOF
13210 # Generated automatically by configure.
13211 # Run this file to recreate the current configuration.
13212 # This directory was configured as follows,
13213 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13215 # $0 $ac_configure_args
13217 # Compiler output produced by configure, useful for debugging
13218 # configure, is in ./config.log if it exists.
13220 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13223 case "\$ac_option" in
13224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13225 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13226 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13227 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13228 echo "$CONFIG_STATUS generated by autoconf version 2.12"
13230 -help | --help | --hel | --he | --h)
13231 echo "\$ac_cs_usage"; exit 0 ;;
13232 *) echo "\$ac_cs_usage"; exit 1 ;;
13236 ac_given_srcdir=$srcdir
13237 ac_given_INSTALL="$INSTALL"
13239 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13241 cat >> $CONFIG_STATUS <<EOF
13243 # Protect against being on the right side of a sed subst in config.status.
13244 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13245 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13248 s%@CFLAGS@%$CFLAGS%g
13249 s%@CPPFLAGS@%$CPPFLAGS%g
13250 s%@CXXFLAGS@%$CXXFLAGS%g
13252 s%@LDFLAGS@%$LDFLAGS%g
13254 s%@exec_prefix@%$exec_prefix%g
13255 s%@prefix@%$prefix%g
13256 s%@program_transform_name@%$program_transform_name%g
13257 s%@bindir@%$bindir%g
13258 s%@sbindir@%$sbindir%g
13259 s%@libexecdir@%$libexecdir%g
13260 s%@datadir@%$datadir%g
13261 s%@sysconfdir@%$sysconfdir%g
13262 s%@sharedstatedir@%$sharedstatedir%g
13263 s%@localstatedir@%$localstatedir%g
13264 s%@libdir@%$libdir%g
13265 s%@includedir@%$includedir%g
13266 s%@oldincludedir@%$oldincludedir%g
13267 s%@infodir@%$infodir%g
13268 s%@mandir@%$mandir%g
13270 s%@blddir@%$blddir%g
13273 s%@start_flags@%$start_flags%g
13274 s%@ld_switch_shared@%$ld_switch_shared%g
13275 s%@start_files@%$start_files%g
13277 s%@lib_gcc@%$lib_gcc%g
13278 s%@RANLIB@%$RANLIB%g
13279 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13280 s%@INSTALL_DATA@%$INSTALL_DATA%g
13282 s%@SET_MAKE@%$SET_MAKE%g
13283 s%@X_CFLAGS@%$X_CFLAGS%g
13284 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13285 s%@X_LIBS@%$X_LIBS%g
13286 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13287 s%@install_pp@%$install_pp%g
13288 s%@libs_xauth@%$libs_xauth%g
13289 s%@dnd_objs@%$dnd_objs%g
13290 s%@lwlib_objs@%$lwlib_objs%g
13291 s%@ALLOCA@%$ALLOCA%g
13292 s%@dll_ld@%$dll_ld%g
13293 s%@dll_cflags@%$dll_cflags%g
13294 s%@dll_ldflags@%$dll_ldflags%g
13295 s%@dll_post@%$dll_post%g
13296 s%@dll_ldo@%$dll_ldo%g
13297 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13298 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13299 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13300 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13301 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13302 s%@PROGNAME@%$PROGNAME%g
13303 s%@version@%$version%g
13304 s%@configuration@%$configuration%g
13305 s%@canonical@%$canonical%g
13306 s%@srcdir@%$srcdir%g
13307 s%@pkgdir@%$pkgdir%g
13308 s%@statedir@%$statedir%g
13309 s%@PREFIX@%$PREFIX%g
13310 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13311 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13312 s%@INFODIR@%$INFODIR%g
13313 s%@infopath@%$infopath%g
13314 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13315 s%@INFOPATH@%$INFOPATH%g
13316 s%@package_path@%$package_path%g
13317 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13318 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13319 s%@lispdir@%$lispdir%g
13320 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13321 s%@LISPDIR@%$LISPDIR%g
13322 s%@moduledir@%$moduledir%g
13323 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13324 s%@MODULEDIR@%$MODULEDIR%g
13325 s%@sitelispdir@%$sitelispdir%g
13326 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13327 s%@SITELISPDIR@%$SITELISPDIR%g
13328 s%@sitemoduledir@%$sitemoduledir%g
13329 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13330 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13331 s%@etcdir@%$etcdir%g
13332 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13333 s%@ETCDIR@%$ETCDIR%g
13334 s%@lockdir@%$lockdir%g
13335 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13336 s%@LOCKDIR@%$LOCKDIR%g
13337 s%@archlibdir@%$archlibdir%g
13338 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13339 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13340 s%@docdir@%$docdir%g
13341 s%@bitmapdir@%$bitmapdir%g
13342 s%@extra_objs@%$extra_objs%g
13343 s%@machfile@%$machfile%g
13344 s%@opsysfile@%$opsysfile%g
13345 s%@c_switch_general@%$c_switch_general%g
13346 s%@c_switch_window_system@%$c_switch_window_system%g
13347 s%@c_switch_all@%$c_switch_all%g
13348 s%@ld_switch_general@%$ld_switch_general%g
13349 s%@ld_switch_window_system@%$ld_switch_window_system%g
13350 s%@ld_switch_all@%$ld_switch_all%g
13351 s%@ld_libs_general@%$ld_libs_general%g
13352 s%@ld_libs_window_system@%$ld_libs_window_system%g
13353 s%@ld_libs_all@%$ld_libs_all%g
13354 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13355 s%@native_sound_lib@%$native_sound_lib%g
13356 s%@sound_cflags@%$sound_cflags%g
13357 s%@dynodump_arch@%$dynodump_arch%g
13358 s%@XEMACS_CC@%$XEMACS_CC%g
13359 s%@internal_makefile_list@%$internal_makefile_list%g
13364 cat >> $CONFIG_STATUS <<\EOF
13366 # Split the substitutions into bite-sized pieces for seds with
13367 # small command number limits, like on Digital OSF/1 and HP-UX.
13368 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13369 ac_file=1 # Number of current file.
13370 ac_beg=1 # First line for current file.
13371 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13374 while $ac_more_lines; do
13375 if test $ac_beg -gt 1; then
13376 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13378 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13380 if test ! -s conftest.s$ac_file; then
13381 ac_more_lines=false
13382 rm -f conftest.s$ac_file
13384 if test -z "$ac_sed_cmds"; then
13385 ac_sed_cmds="sed -f conftest.s$ac_file"
13387 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13389 ac_file=`expr $ac_file + 1`
13391 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13394 if test -z "$ac_sed_cmds"; then
13399 cat >> $CONFIG_STATUS <<EOF
13401 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13403 cat >> $CONFIG_STATUS <<\EOF
13404 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13405 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13407 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13408 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13409 *) ac_file_in="${ac_file}.in" ;;
13412 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13414 # Remove last slash and all that follows it. Not all systems have dirname.
13415 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13416 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13417 # The file is in a subdirectory.
13418 test ! -d "$ac_dir" && mkdir "$ac_dir"
13419 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13420 # A "../" for each directory in $ac_dir_suffix.
13421 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13423 ac_dir_suffix= ac_dots=
13426 case "$ac_given_srcdir" in
13428 if test -z "$ac_dots"; then top_srcdir=.
13429 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13430 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13431 *) # Relative path.
13432 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13433 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13436 case "$ac_given_INSTALL" in
13437 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13438 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13441 echo creating "$ac_file"
13443 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13445 *Makefile*) ac_comsub="1i\\
13446 # $configure_input" ;;
13450 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13452 s%@configure_input@%$configure_input%g
13453 s%@srcdir@%$srcdir%g
13454 s%@top_srcdir@%$top_srcdir%g
13455 s%@INSTALL@%$INSTALL%g
13456 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13460 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13461 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13463 # ac_d sets the value in "#define NAME VALUE" lines.
13464 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13465 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13468 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13469 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13470 ac_uB='\([ ]\)%\1#\2define\3'
13473 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13474 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13475 ac_eB='$%\1#\2define\3'
13479 if test "${CONFIG_HEADERS+set}" != set; then
13481 cat >> $CONFIG_STATUS <<EOF
13482 CONFIG_HEADERS="src/config.h lwlib/config.h"
13484 cat >> $CONFIG_STATUS <<\EOF
13486 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13489 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13490 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13491 *) ac_file_in="${ac_file}.in" ;;
13494 echo creating $ac_file
13496 rm -f conftest.frag conftest.in conftest.out
13497 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13498 cat $ac_file_inputs > conftest.in
13502 # Transform confdefs.h into a sed script conftest.vals that substitutes
13503 # the proper values into config.h.in to produce config.h. And first:
13504 # Protect against being on the right side of a sed subst in config.status.
13505 # Protect against being in an unquoted here document in config.status.
13506 rm -f conftest.vals
13507 cat > conftest.hdr <<\EOF
13510 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13514 sed -n -f conftest.hdr confdefs.h > conftest.vals
13517 # This sed command replaces #undef with comments. This is necessary, for
13518 # example, in the case of _POSIX_SOURCE, which is predefined and required
13519 # on some systems where configure will not decide to define it.
13520 cat >> conftest.vals <<\EOF
13521 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13524 # Break up conftest.vals because some shells have a limit on
13525 # the size of here documents, and old seds have small limits too.
13527 rm -f conftest.tail
13530 ac_lines=`grep -c . conftest.vals`
13531 # grep -c gives empty output for an empty file on some AIX systems.
13532 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13533 # Write a limited-size here document to conftest.frag.
13534 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13535 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13537 sed -f conftest.frag conftest.in > conftest.out
13539 mv conftest.out conftest.in
13540 ' >> $CONFIG_STATUS
13541 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13542 rm -f conftest.vals
13543 mv conftest.tail conftest.vals
13545 rm -f conftest.vals
13547 cat >> $CONFIG_STATUS <<\EOF
13548 rm -f conftest.frag conftest.h
13549 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13550 cat conftest.in >> conftest.h
13552 if cmp -s $ac_file conftest.h 2>/dev/null; then
13553 echo "$ac_file is unchanged"
13556 # Remove last slash and all that follows it. Not all systems have dirname.
13557 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13558 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13559 # The file is in a subdirectory.
13560 test ! -d "$ac_dir" && mkdir "$ac_dir"
13563 mv conftest.h $ac_file
13568 cat >> $CONFIG_STATUS <<EOF
13570 top_srcdir="$srcdir"
13571 MAKE_SUBDIR="$MAKE_SUBDIR"
13574 cat >> $CONFIG_STATUS <<\EOF
13575 for dir in . $MAKE_SUBDIR; do
13580 sed -e '/^# Generated/d' \
13581 -e 's%/\*\*/#.*%%' \
13596 echo creating $dir/Makefile
13597 $CPP -I. -I${top_srcdir}/src junk.c \
13598 | sed -e 's/^\#.*//' \
13599 -e 's/^[ ][ ]*$//'\
13601 | sed -n -e '/^..*$/p' \
13607 chmod 444 Makefile.new
13608 mv -f Makefile.new Makefile
13610 echo creating $dir/GNUmakefile
13611 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13612 | sed -e 's/^\#.*//' \
13613 -e 's/^[ ][ ]*$//'\
13615 | sed -n -e '/^..*$/p' \
13621 chmod 444 Makefile.new
13622 mv -f Makefile.new GNUmakefile
13628 sed < config.status >> lib-src/config.values \
13629 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13630 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13631 -e 's/^\([^ ]*\) $/\1 ""/' \
13637 chmod +x $CONFIG_STATUS
13638 rm -fr confdefs* $ac_clean_files
13639 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1