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 byte_code ) error_check_byte_code=yes ;;
505 nobyte_code ) error_check_byte_code=no ;;
507 * ) bogus_error_check=yes ;;
509 if test "$bogus_error_check" -o \
510 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
511 if test "$error_check_default" = yes ; then
512 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
514 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
516 (echo "$progname: Usage error:"
517 echo " " "Valid types for the \`--$optname' option are:
519 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
520 elif test -n "$new_default" ; then
521 error_check_extents=$new_default
522 error_check_typecheck=$new_default
523 error_check_bufpos=$new_default
524 error_check_gc=$new_default
525 error_check_malloc=$new_default
526 error_check_byte_code=$new_default
527 new_default= # reset this
534 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
535 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
536 archlibdir | docdir | package_path )
537 if test "$valomitted" = "yes"; then
538 if test "$#" = 0; then
539 (echo "$progname: Usage error:"
540 echo " " "The \`--$optname' option requires a value."
541 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
548 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
549 Defining LISPDIR_USER_DEFINED
551 cat >> confdefs.h <<\EOF
552 #define LISPDIR_USER_DEFINED 1
556 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
557 Defining SITELISPDIR_USER_DEFINED
559 cat >> confdefs.h <<\EOF
560 #define SITELISPDIR_USER_DEFINED 1
564 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
565 Defining MODULEDIR_USER_DEFINED
567 cat >> confdefs.h <<\EOF
568 #define MODULEDIR_USER_DEFINED 1
572 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
573 Defining ETCDIR_USER_DEFINED
575 cat >> confdefs.h <<\EOF
576 #define ETCDIR_USER_DEFINED 1
580 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
581 Defining INFODIR_USER_DEFINED
583 cat >> confdefs.h <<\EOF
584 #define INFODIR_USER_DEFINED 1
588 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
589 Defining INFOPATH_USER_DEFINED
591 cat >> confdefs.h <<\EOF
592 #define INFOPATH_USER_DEFINED 1
596 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
597 Defining PACKAGE_PATH_USER_DEFINED
599 cat >> confdefs.h <<\EOF
600 #define PACKAGE_PATH_USER_DEFINED 1
605 { test "$extra_verbose" = "yes" && cat << \EOF
606 Defining INFODIR_USER_DEFINED
608 cat >> confdefs.h <<\EOF
609 #define INFODIR_USER_DEFINED 1
613 { test "$extra_verbose" = "yes" && cat << \EOF
614 Defining LISPDIR_USER_DEFINED
616 cat >> confdefs.h <<\EOF
617 #define LISPDIR_USER_DEFINED 1
621 { test "$extra_verbose" = "yes" && cat << \EOF
622 Defining MODULEDIR_USER_DEFINED
624 cat >> confdefs.h <<\EOF
625 #define MODULEDIR_USER_DEFINED 1
629 { test "$extra_verbose" = "yes" && cat << \EOF
630 Defining ETCDIR_USER_DEFINED
632 cat >> confdefs.h <<\EOF
633 #define ETCDIR_USER_DEFINED 1
637 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
638 Defining LOCKDIR_USER_DEFINED
640 cat >> confdefs.h <<\EOF
641 #define LOCKDIR_USER_DEFINED 1
645 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
646 Defining ARCHLIBDIR_USER_DEFINED
648 cat >> confdefs.h <<\EOF
649 #define ARCHLIBDIR_USER_DEFINED 1
658 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
661 "with_scrollbars" | \
664 l | lu | luc | luci | lucid ) val=lucid ;;
665 m | mo | mot | moti | motif ) val=motif ;;
666 athena3d | athena-3d ) val=athena3d ;;
667 a | at | ath | athe | athen | athena ) val=athena ;;
668 n | no | non | none ) val=no ;;
669 * ) (echo "$progname: Usage error:"
670 echo " " "The \`--$optname' option must have one of these values:
671 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
672 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
679 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
682 * ) (echo "$progname: Usage error:"
683 echo " " "Unrecognized option: $arg"
684 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
689 *-*-*) configuration="$arg" ;;
691 *) (echo "$progname: Usage error:"
692 echo " " "Unrecognized argument: $arg"
693 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
699 test -n "$cpp" && CPP="$cpp"
700 test -n "$cppflags" && CPPFLAGS="$cppflags"
701 test -n "$libs" && LIBS="$libs"
702 test -n "$ldflags" && LDFLAGS="$ldflags"
704 eval set x "$quoted_arguments"; shift
706 test "$extra_verbose" = "yes" && verbose=yes
708 test -n "$with_x" && with_x11="$with_x"
710 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
711 test "$with_system_malloc" = "default" && with_system_malloc=yes
716 if test "$with_cde $with_tooltalk" = "yes no"; then
717 (echo "$progname: Usage error:"
718 echo " " "--with-cde requires --with-tooltalk"
719 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
720 elif test "$with_tooltalk" = "no" ; then with_cde=no
721 elif test "$with_cde" = "yes"; then with_tooltalk=yes
728 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
729 if test -f "$dir/src/lisp.h" -a \
730 -f "$dir/lisp/version.el" ; then
735 if test -z "$srcdir" ; then
736 (echo "$progname: Usage error:"
737 echo " " "Neither the current directory nor its parent seem to
738 contain the XEmacs sources. If you do not want to build XEmacs in its
739 source tree, you should run \`$progname' in the directory in which
740 you wish to build XEmacs, using the \`--srcdir' option to say where the
741 sources may be found."
742 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
747 if test ! -f "$srcdir/src/lisp.h" -o \
748 ! -f "$srcdir/lisp/version.el" ; then
749 (echo "$progname: Usage error:"
750 echo " " "The directory specified with the \`--srcdir' option,
751 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
752 either run the \`$progname' script at the top of the XEmacs source
753 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
754 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
759 if test -z "$configuration"; then
760 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
761 if test -z "$configuration"; then
762 (echo "$progname: Usage error:"
763 echo " " "XEmacs has not been ported to this host type.
764 Try explicitly specifying the CONFIGURATION when rerunning configure."
765 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
769 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
770 echo "configure:771: checking whether ln -s works" >&5
773 if ln -s X conftestdata 2>/dev/null
776 ac_cv_prog_LN_S="ln -s"
780 LN_S="$ac_cv_prog_LN_S"
781 if test "$ac_cv_prog_LN_S" = "ln -s"; then
782 echo "$ac_t""yes" 1>&6
784 echo "$ac_t""no" 1>&6
788 for dir in lisp etc man info; do
789 if test ! -d "$dir" ; then
790 echo Making symbolic link to "$srcdir/$dir"
791 ${LN_S} "$srcdir/$dir" "$dir"
796 absolute_pwd="`pwd`";
797 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
799 else blddir="$absolute_pwd"; if test -d "/net"; then
800 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
801 blddir=`echo "$blddir" | \
802 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
809 . ) srcdir="$blddir" ;;
810 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
811 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
812 srcdir=`echo "$srcdir" | \
813 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
817 if test `pwd` != `sh -c cd $srcdir && pwd` \
818 && test -f "$srcdir/src/config.h"; then
819 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
820 echo " as a build directory right now; it has been configured in its own"
821 echo " right. To configure in another directory as well, you MUST"
822 echo " use GNU make. If you do not have GNU make, then you must"
823 echo " now do \`make distclean' in $srcdir,"
824 echo " and then run $progname again.") >&2
825 extrasub='/^VPATH[ ]*=/c\
831 vpath %.in $(srcdir)'
834 . "$srcdir/version.sh" || exit 1;
835 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
836 : "${extra_verbose=$beta}"
837 version="${emacs_major_version}.${emacs_minor_version}"
838 { test "$extra_verbose" = "yes" && cat << EOF
839 Defining EMACS_MAJOR_VERSION = $emacs_major_version
841 cat >> confdefs.h <<EOF
842 #define EMACS_MAJOR_VERSION $emacs_major_version
846 { test "$extra_verbose" = "yes" && cat << EOF
847 Defining EMACS_MINOR_VERSION = $emacs_minor_version
849 cat >> confdefs.h <<EOF
850 #define EMACS_MINOR_VERSION $emacs_minor_version
854 if test -n "$emacs_beta_version" ; then
855 if test "$beta" = "yes"; then
856 version="${version}-b${emacs_beta_version}"
857 { test "$extra_verbose" = "yes" && cat << EOF
858 Defining EMACS_BETA_VERSION = $emacs_beta_version
860 cat >> confdefs.h <<EOF
861 #define EMACS_BETA_VERSION $emacs_beta_version
866 version="${version}.${emacs_beta_version}"
867 { test "$extra_verbose" = "yes" && cat << EOF
868 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
870 cat >> confdefs.h <<EOF
871 #define EMACS_PATCH_LEVEL $emacs_beta_version
877 { test "$extra_verbose" = "yes" && cat << EOF
878 Defining XEMACS_CODENAME = "$xemacs_codename"
880 cat >> confdefs.h <<EOF
881 #define XEMACS_CODENAME "$xemacs_codename"
885 { test "$extra_verbose" = "yes" && cat << EOF
886 Defining EMACS_VERSION = "$version"
888 cat >> confdefs.h <<EOF
889 #define EMACS_VERSION "$version"
894 if test "$with_infodock" = "yes"; then
895 if test ! -f ../ID-INSTALL; then
896 echo "Cannot build InfoDock without InfoDock sources"
901 if test "$with_infodock" = "yes"; then
902 { test "$extra_verbose" = "yes" && cat << EOF
903 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
905 cat >> confdefs.h <<EOF
906 #define INFODOCK_MAJOR_VERSION $infodock_major_version
910 { test "$extra_verbose" = "yes" && cat << EOF
911 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
913 cat >> confdefs.h <<EOF
914 #define INFODOCK_MINOR_VERSION $infodock_minor_version
918 { test "$extra_verbose" = "yes" && cat << EOF
919 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
921 cat >> confdefs.h <<EOF
922 #define INFODOCK_BUILD_VERSION $infodock_build_version
926 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
928 CPPFLAGS="$CPPFLAGS -DINFODOCK"
933 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
934 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
935 Defining ERROR_CHECK_EXTENTS
937 cat >> confdefs.h <<\EOF
938 #define ERROR_CHECK_EXTENTS 1
942 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
943 Defining ERROR_CHECK_TYPECHECK
945 cat >> confdefs.h <<\EOF
946 #define ERROR_CHECK_TYPECHECK 1
950 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
951 Defining ERROR_CHECK_BUFPOS
953 cat >> confdefs.h <<\EOF
954 #define ERROR_CHECK_BUFPOS 1
958 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
959 Defining ERROR_CHECK_GC
961 cat >> confdefs.h <<\EOF
962 #define ERROR_CHECK_GC 1
966 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
967 Defining ERROR_CHECK_MALLOC
969 cat >> confdefs.h <<\EOF
970 #define ERROR_CHECK_MALLOC 1
974 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
975 Defining ERROR_CHECK_BYTE_CODE
977 cat >> confdefs.h <<\EOF
978 #define ERROR_CHECK_BYTE_CODE 1
982 if test "${debug:=$beta}" = "yes"; then
983 use_assertions=yes memory_usage_stats=yes
984 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
985 echo " xemacs will be linked with \"debug.o\""
987 { test "$extra_verbose" = "yes" && cat << \EOF
988 Defining DEBUG_XEMACS
990 cat >> confdefs.h <<\EOF
991 #define DEBUG_XEMACS 1
996 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
997 Defining USE_ASSERTIONS
999 cat >> confdefs.h <<\EOF
1000 #define USE_ASSERTIONS 1
1004 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1005 Defining MEMORY_USAGE_STATS
1007 cat >> confdefs.h <<\EOF
1008 #define MEMORY_USAGE_STATS 1
1014 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1015 echo "configure:1016: checking "host system type"" >&5
1016 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1017 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1018 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1019 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1020 echo "$ac_t""$configuration" 1>&6
1028 case "$canonical" in
1029 sparc-*-* ) machine=sparc ;;
1030 alpha*-*-* ) machine=alpha ;;
1031 vax-*-* ) machine=vax ;;
1032 mips-dec-* ) machine=pmax ;;
1033 mips-sgi-* ) machine=iris4d ;;
1034 romp-ibm-* ) machine=ibmrt ;;
1035 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1036 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1037 powerpc*-* ) machine=powerpc ;;
1038 hppa-*-* ) machine=hp800 ;;
1039 m88k-dg-* ) machine=aviion ;;
1040 m68*-sony-* ) machine=news ;;
1041 mips-sony-* ) machine=news-risc ;;
1042 clipper-* ) machine=clipper ;;
1043 arm-* ) machine=arm ;;
1044 ns32k-* ) machine=ns32000 ;;
1047 case "$canonical" in
1048 *-*-linux* ) opsys=linux ;;
1049 *-*-netbsd* ) opsys=netbsd ;;
1050 *-*-openbsd* ) opsys=openbsd ;;
1051 *-*-nextstep* ) opsys=nextstep ;;
1052 *-*-vms ) opsys=vms ;;
1054 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1055 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1056 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1057 *-dec-osf3* ) opsys=decosf3-1 ;;
1058 *-dec-osf4* ) opsys=decosf4-0 ;;
1060 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1061 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1062 *-*-ultrix* ) opsys=ultrix4-3 ;;
1064 *-*-aix3.1* ) opsys=aix3-1 ;;
1065 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1066 *-*-aix3* ) opsys=aix3-2 ;;
1067 *-*-aix4.0* ) opsys=aix4 ;;
1068 *-*-aix4.1* ) opsys=aix4-1 ;;
1069 *-*-aix4* ) opsys=aix4-2 ;;
1071 *-gnu* ) opsys=gnu ;;
1072 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1073 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1074 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1075 *-*-aos4.2 ) opsys=bsd4-2 ;;
1076 *-*-aos* ) opsys=bsd4-3 ;;
1077 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1078 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1079 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1080 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1081 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1082 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1083 if test -z "$NON_GNU_CPP" ; then
1084 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1085 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1089 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1090 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1093 case "$canonical" in
1096 case "$canonical" in
1097 i[3-9]86-*-netbsd*) machine=intel386 ;;
1098 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1099 machine=hp9000s300 ;;
1100 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1101 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1106 case "${canonical}" in
1107 i386-*-openbsd*) machine=intel386 ;;
1108 m68k-*-openbsd*) machine=hp9000s300 ;;
1109 mipsel-*-openbsd*) machine=pmax ;;
1113 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1114 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1116 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1117 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1119 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1121 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1123 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1125 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1127 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1129 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1130 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1131 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1134 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1136 *-convex-bsd* | *-convex-convexos* )
1137 machine=convex opsys=bsd4-3
1138 NON_GNU_CPP="cc -E -P"
1141 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1143 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1144 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1145 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1146 m88k-dg-dgux* ) opsys=dgux ;;
1148 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1149 m88k-motorola-sysv4* )
1150 machine=delta88k opsys=usg5-4-2
1152 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1154 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1155 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1157 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1159 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1160 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1161 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1164 case "`uname -r`" in
1165 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1166 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1168 NON_GNU_CPP="/lib/cpp"
1170 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1171 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1173 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1175 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1178 case "$canonical" in
1179 m68* ) machine=hp9000s300 ;;
1180 hppa* ) machine=hp800 ;;
1183 case "$canonical" in
1184 *-hp-hpux7* ) opsys=hpux ;;
1185 *-hp-hpux8* ) opsys=hpux8 ;;
1186 *-hp-hpux9* ) opsys=hpux9 ;;
1187 *-hp-hpux10* ) opsys=hpux10 ;;
1188 *-hp-hpux11* ) opsys=hpux11 ;;
1192 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1193 echo " xemacs will be linked with \"strcat.o\""
1196 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1197 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1198 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1200 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1203 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1204 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1206 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1207 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1208 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1209 romp-ibm-aos* ) opsys=bsd4-3 ;;
1210 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1211 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1213 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1214 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1216 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1218 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1220 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1222 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1224 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1226 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1228 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1230 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1232 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1234 mips-mips-usg* ) machine=mips4 ;;
1237 NON_GNU_CC="cc -systype bsd43"
1238 NON_GNU_CPP="cc -systype bsd43 -E"
1239 case "$canonical" in
1240 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1241 mips-mips-riscos5* ) opsys=riscos5 ;;
1244 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1245 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1247 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1249 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1251 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1252 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1254 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1256 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1258 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1260 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1262 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1263 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1265 mips-siemens-sysv* | mips-sni-sysv*)
1266 machine=mips-siemens opsys=usg5-4
1267 NON_GNU_CC=/usr/ccs/bin/cc
1268 NON_GNU_CPP=/usr/ccs/lib/cpp
1273 NON_GNU_CC=/usr/ccs/bin/cc
1274 NON_GNU_CPP=/usr/ccs/lib/cpp
1277 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1278 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1279 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1280 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1281 mips-sgi-irix6* ) opsys=irix6-0 ;;
1282 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1283 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1284 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1285 mips-sgi-irix* ) opsys=irix5-0 ;;
1287 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1288 *-sony-news* ) opsys=newsos5 ;;
1290 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1292 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1293 case "$canonical" in
1294 m68*-sunos1* ) machine=sun1 ;;
1295 m68*-sunos2* ) machine=sun2 ;;
1296 m68* ) machine=sun3 ;;
1297 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1298 i*86-*-* ) machine=intel386 ;;
1299 rs6000* ) machine=rs6000 ;;
1302 case "$canonical" in *-sunos5*)
1303 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1306 case "$canonical" in
1308 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1311 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1315 case "$canonical" in
1318 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1319 { test "$extra_verbose" = "yes" && cat << EOF
1320 Defining OS_RELEASE = $os_release
1322 cat >> confdefs.h <<EOF
1323 #define OS_RELEASE $os_release
1328 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1329 *-sunos4.0* ) opsys=sunos4-0 ;;
1330 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1331 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1332 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1333 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1334 *-mach* ) opsys=mach-bsd4-3 ;;
1338 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1340 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1343 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1345 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1346 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1348 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1350 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1352 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1353 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1355 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1357 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1360 case "$canonical" in
1361 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1362 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1363 *-mach* ) opsys=mach-bsd4-3 ;;
1367 ns16k-whitechapel-* ) machine=mg1 ;;
1369 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1373 case "$canonical" in
1374 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1375 *-isc2.2* ) opsys=isc2-2 ;;
1376 *-isc4.0* ) opsys=isc4-0 ;;
1377 *-isc4.* ) opsys=isc4-1
1378 GCC_TEST_OPTIONS=-posix
1379 NON_GCC_TEST_OPTIONS=-Xp
1381 *-isc* ) opsys=isc3-0 ;;
1382 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1383 *-esix* ) opsys=esix ;;
1384 *-mach* ) opsys=mach-bsd4-3 ;;
1385 *-xenix* ) opsys=xenix ;;
1386 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1387 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1388 *-bsdi4* ) opsys=bsdos4 ;;
1389 *-bsdi3* ) opsys=bsdos3 ;;
1390 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1391 *-bsdi2* ) opsys=bsdos2 ;;
1392 *-sco3.2v5* ) opsys=sco5 ;
1393 if test "$dynamic" = "yes" ; then
1394 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1396 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1398 *-386bsd* ) opsys=386bsd ;;
1399 *-freebsd* ) opsys=freebsd ;;
1400 *-nextstep* ) opsys=nextstep ;;
1401 *-pc-cygwin* ) opsys=cygwin32 ;;
1402 *-pc-mingw* ) opsys=mingw32 ;
1403 test -z "$with_tty" && with_tty="no";;
1407 m68k-*-linux* ) machine=m68k opsys=linux ;;
1411 if test -z "$machine" -o -z "$opsys"; then
1412 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1413 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1418 if test -z "$dynamic"; then
1420 hpux* | sunos4* ) dynamic=no ;;
1424 if test "$dynamic" = "yes"; then
1426 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1427 decosf* ) ld_call_shared="-call_shared" ;;
1429 else case "$opsys" in
1431 echo "Static linking is not supported on Solaris 2."
1432 echo "Rerun configure without specifying --dynamic=no."
1434 linux ) ld_call_shared="-Bstatic" ;;
1435 decosf* ) ld_call_shared="-non_shared" ;;
1439 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1441 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1442 { test "$extra_verbose" = "yes" && cat << EOF
1443 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1445 cat >> confdefs.h <<EOF
1446 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1451 machfile="m/${machine}.h"
1452 opsysfile="s/${opsys}.h"
1455 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1456 if test "$with_workshop $with_tooltalk" = "yes no"; then
1457 (echo "$progname: Usage error:"
1458 echo " " "--with-workshop requires --with-tooltalk"
1459 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1460 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1461 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1464 if test "$with_workshop" = "yes"; then
1465 { test "$extra_verbose" = "yes" && cat << \EOF
1468 cat >> confdefs.h <<\EOF
1473 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1474 echo " xemacs will be linked with \"sunpro.o\""
1478 if test "$with_clash_detection" = "yes"; then
1479 { test "$extra_verbose" = "yes" && cat << \EOF
1480 Defining CLASH_DETECTION
1482 cat >> confdefs.h <<\EOF
1483 #define CLASH_DETECTION 1
1487 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1488 echo " xemacs will be linked with \"filelock.o\""
1492 test -n "$compiler" && CC="$compiler"
1493 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1496 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1497 if test "${CFLAGS-unset}" != unset
1498 then cflags_specified=yes;
1499 else cflags_specified=no;
1502 xe_save_CFLAGS="$CFLAGS"
1504 # Extract the first word of "gcc", so it can be a program name with args.
1505 set dummy gcc; ac_word=$2
1506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1507 echo "configure:1508: checking for $ac_word" >&5
1509 if test -n "$CC"; then
1510 ac_cv_prog_CC="$CC" # Let the user override the test.
1512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1513 for ac_dir in $PATH; do
1514 test -z "$ac_dir" && ac_dir=.
1515 if test -f $ac_dir/$ac_word; then
1523 if test -n "$CC"; then
1524 echo "$ac_t""$CC" 1>&6
1526 echo "$ac_t""no" 1>&6
1529 if test -z "$CC"; then
1530 # Extract the first word of "cc", so it can be a program name with args.
1531 set dummy cc; ac_word=$2
1532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1533 echo "configure:1534: checking for $ac_word" >&5
1535 if test -n "$CC"; then
1536 ac_cv_prog_CC="$CC" # Let the user override the test.
1538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1540 for ac_dir in $PATH; do
1541 test -z "$ac_dir" && ac_dir=.
1542 if test -f $ac_dir/$ac_word; then
1543 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1544 ac_prog_rejected=yes
1552 if test $ac_prog_rejected = yes; then
1553 # We found a bogon in the path, so make sure we never use it.
1554 set dummy $ac_cv_prog_CC
1556 if test $# -gt 0; then
1557 # We chose a different compiler from the bogus one.
1558 # However, it has the same basename, so the bogon will be chosen
1559 # first if we set CC to just the basename; use the full file name.
1561 set dummy "$ac_dir/$ac_word" "$@"
1568 if test -n "$CC"; then
1569 echo "$ac_t""$CC" 1>&6
1571 echo "$ac_t""no" 1>&6
1574 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1577 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1578 echo "configure:1579: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1581 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1582 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1583 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1584 ac_cpp='$CPP '"$xe_cppflags"
1585 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1586 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1594 if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1595 ac_cv_prog_cc_works=yes
1596 # If we can't run a trivial program, we are probably using a cross compiler.
1597 if (./conftest; exit) 2>/dev/null; then
1598 ac_cv_prog_cc_cross=no
1600 ac_cv_prog_cc_cross=yes
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1605 ac_cv_prog_cc_works=no
1609 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1610 if test $ac_cv_prog_cc_works = no; then
1611 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1613 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1615 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1616 cross_compiling=$ac_cv_prog_cc_cross
1618 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1619 echo "configure:1620: checking whether we are using GNU C" >&5
1621 cat > conftest.c <<EOF
1626 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1632 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1634 if test $ac_cv_prog_gcc = yes; then
1636 ac_test_CFLAGS="${CFLAGS+set}"
1637 ac_save_CFLAGS="$CFLAGS"
1639 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1640 echo "configure:1641: checking whether ${CC-cc} accepts -g" >&5
1642 echo 'void f(){}' > conftest.c
1643 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1651 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1652 if test "$ac_test_CFLAGS" = set; then
1653 CFLAGS="$ac_save_CFLAGS"
1654 elif test $ac_cv_prog_cc_g = yes; then
1661 test "${CFLAGS+set}" = set || CFLAGS="-g"
1664 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1666 # Extract the first word of "gcc", so it can be a program name with args.
1667 set dummy gcc; ac_word=$2
1668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_word" >&5
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1675 for ac_dir in $PATH; do
1676 test -z "$ac_dir" && ac_dir=.
1677 if test -f $ac_dir/$ac_word; then
1685 if test -n "$CC"; then
1686 echo "$ac_t""$CC" 1>&6
1688 echo "$ac_t""no" 1>&6
1691 if test -z "$CC"; then
1692 # Extract the first word of "cc", so it can be a program name with args.
1693 set dummy cc; ac_word=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1702 for ac_dir in $PATH; do
1703 test -z "$ac_dir" && ac_dir=.
1704 if test -f $ac_dir/$ac_word; then
1705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1706 ac_prog_rejected=yes
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy $ac_cv_prog_CC
1718 if test $# -gt 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 set dummy "$ac_dir/$ac_word" "$@"
1730 if test -n "$CC"; then
1731 echo "$ac_t""$CC" 1>&6
1733 echo "$ac_t""no" 1>&6
1736 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1739 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1740 echo "configure:1741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1743 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1744 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1745 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1746 ac_cpp='$CPP '"$xe_cppflags"
1747 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1748 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1757 ac_cv_prog_cc_works=yes
1758 # If we can't run a trivial program, we are probably using a cross compiler.
1759 if (./conftest; exit) 2>/dev/null; then
1760 ac_cv_prog_cc_cross=no
1762 ac_cv_prog_cc_cross=yes
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 ac_cv_prog_cc_works=no
1771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1772 if test $ac_cv_prog_cc_works = no; then
1773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1778 cross_compiling=$ac_cv_prog_cc_cross
1780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1781 echo "configure:1782: checking whether we are using GNU C" >&5
1783 cat > conftest.c <<EOF
1788 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1796 if test $ac_cv_prog_gcc = yes; then
1798 ac_test_CFLAGS="${CFLAGS+set}"
1799 ac_save_CFLAGS="$CFLAGS"
1801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether ${CC-cc} accepts -g" >&5
1804 echo 'void f(){}' > conftest.c
1805 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1813 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1814 if test "$ac_test_CFLAGS" = set; then
1815 CFLAGS="$ac_save_CFLAGS"
1816 elif test $ac_cv_prog_cc_g = yes; then
1823 test "${CFLAGS+set}" = set || CFLAGS="-g"
1826 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1828 # Extract the first word of "gcc", so it can be a program name with args.
1829 set dummy gcc; ac_word=$2
1830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1831 echo "configure:1832: checking for $ac_word" >&5
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1837 for ac_dir in $PATH; do
1838 test -z "$ac_dir" && ac_dir=.
1839 if test -f $ac_dir/$ac_word; then
1847 if test -n "$CC"; then
1848 echo "$ac_t""$CC" 1>&6
1850 echo "$ac_t""no" 1>&6
1853 if test -z "$CC"; then
1854 # Extract the first word of "cc", so it can be a program name with args.
1855 set dummy cc; ac_word=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1864 for ac_dir in $PATH; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1868 ac_prog_rejected=yes
1876 if test $ac_prog_rejected = yes; then
1877 # We found a bogon in the path, so make sure we never use it.
1878 set dummy $ac_cv_prog_CC
1880 if test $# -gt 0; then
1881 # We chose a different compiler from the bogus one.
1882 # However, it has the same basename, so the bogon will be chosen
1883 # first if we set CC to just the basename; use the full file name.
1885 set dummy "$ac_dir/$ac_word" "$@"
1892 if test -n "$CC"; then
1893 echo "$ac_t""$CC" 1>&6
1895 echo "$ac_t""no" 1>&6
1898 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1902 echo "configure:1903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1905 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1906 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1907 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1908 ac_cpp='$CPP '"$xe_cppflags"
1909 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1910 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1913 cat > conftest.$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1919 ac_cv_prog_cc_works=yes
1920 # If we can't run a trivial program, we are probably using a cross compiler.
1921 if (./conftest; exit) 2>/dev/null; then
1922 ac_cv_prog_cc_cross=no
1924 ac_cv_prog_cc_cross=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 ac_cv_prog_cc_works=no
1933 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1934 if test $ac_cv_prog_cc_works = no; then
1935 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1938 echo "configure:1939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1939 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1940 cross_compiling=$ac_cv_prog_cc_cross
1942 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1943 echo "configure:1944: checking whether we are using GNU C" >&5
1945 cat > conftest.c <<EOF
1950 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1956 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1958 if test $ac_cv_prog_gcc = yes; then
1960 ac_test_CFLAGS="${CFLAGS+set}"
1961 ac_save_CFLAGS="$CFLAGS"
1963 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1964 echo "configure:1965: checking whether ${CC-cc} accepts -g" >&5
1966 echo 'void f(){}' > conftest.c
1967 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1975 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1976 if test "$ac_test_CFLAGS" = set; then
1977 CFLAGS="$ac_save_CFLAGS"
1978 elif test $ac_cv_prog_cc_g = yes; then
1985 test "${CFLAGS+set}" = set || CFLAGS="-g"
1989 CFLAGS="$xe_save_CFLAGS"
1992 test -n "$CPP" -a -d "$CPP" && CPP=
1994 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1996 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1997 echo "configure:1998: checking how to run the C preprocessor" >&5
1998 # On Suns, sometimes $CPP names a directory.
1999 if test -n "$CPP" && test -d "$CPP"; then
2002 if test -z "$CPP"; then
2004 # This must be in double quotes, not single quotes, because CPP may get
2005 # substituted into the Makefile and "${CC-cc}" will confuse make.
2007 # On the NeXT, cc -E runs the code through the compiler's parser,
2008 # not just through cpp.
2009 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2016 { (eval echo configure:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2017 ac_err=`grep -v '^ *+' conftest.out`
2018 if test -z "$ac_err"; then
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2025 CPP="${CC-cc} -E -traditional-cpp"
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2033 { (eval echo configure:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2034 ac_err=`grep -v '^ *+' conftest.out`
2035 if test -z "$ac_err"; then
2039 echo "configure: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2047 ac_cv_prog_CPP="$CPP"
2048 CPP="$ac_cv_prog_CPP"
2050 ac_cv_prog_CPP="$CPP"
2052 echo "$ac_t""$CPP" 1>&6
2055 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2056 echo "configure:2057: checking for AIX" >&5
2057 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2066 egrep "yes" >/dev/null 2>&1; then
2068 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2069 Defining _ALL_SOURCE
2071 cat >> confdefs.h <<\EOF
2072 #define _ALL_SOURCE 1
2078 echo "$ac_t""no" 1>&6
2084 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2085 echo "configure:2086: checking for GNU libc" >&5
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2089 #include <features.h>
2092 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2093 #error Not a GNU libc system :-(
2094 ******* ======= ******** &&&&&&&&
2099 if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2109 echo "$ac_t""$have_glibc" 1>&6
2110 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2111 Defining _GNU_SOURCE
2113 cat >> confdefs.h <<\EOF
2114 #define _GNU_SOURCE 1
2120 cat > conftest.$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2124 #if defined __SUNPRO_C
2126 #elif defined __DECC
2133 if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2141 case "$conftest_rc" in
2142 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2143 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2151 echo "Extracting information from the machine- and system-dependent headers..."
2153 tempcname="conftest.c"
2157 cat > $tempcname <<EOF
2159 #define C_SWITCH_SITE
2160 #define C_SWITCH_X_SITE
2161 #define LD_SWITCH_SITE
2162 #define LD_SWITCH_X_SITE
2163 #define LD_SWITCH_X_SITE_AUX
2164 #define OS_RELEASE $os_release
2165 #include "$srcdir/src/$opsysfile"
2166 #include "$srcdir/src/$machfile"
2168 #ifndef LIBS_MACHINE
2169 #define LIBS_MACHINE
2171 configure___ libs_machine=LIBS_MACHINE
2176 configure___ libs_system=LIBS_SYSTEM
2178 #ifndef LIBS_TERMCAP
2179 #define LIBS_TERMCAP
2181 configure___ libs_termcap=LIBS_TERMCAP
2183 #ifndef LIB_STANDARD
2184 #define LIB_STANDARD
2186 configure___ libs_standard=LIB_STANDARD
2189 #ifndef OBJECTS_MACHINE
2190 #define OBJECTS_MACHINE
2192 configure___ objects_machine=OBJECTS_MACHINE
2194 #ifndef OBJECTS_SYSTEM
2195 #define OBJECTS_SYSTEM
2197 configure___ objects_system=OBJECTS_SYSTEM
2200 #ifndef C_SWITCH_MACHINE
2201 #define C_SWITCH_MACHINE
2203 configure___ c_switch_machine=C_SWITCH_MACHINE
2205 #ifndef C_SWITCH_SYSTEM
2206 #define C_SWITCH_SYSTEM
2208 configure___ c_switch_system=C_SWITCH_SYSTEM
2211 #ifndef LD_SWITCH_MACHINE
2212 #define LD_SWITCH_MACHINE
2214 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2216 #ifndef LD_SWITCH_SYSTEM
2217 #define LD_SWITCH_SYSTEM
2219 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2223 #define UNEXEC "unexec.o"
2225 configure___ unexec=UNEXEC
2228 #ifndef LD_SWITCH_SHARED
2229 #define LD_SWITCH_SHARED "-c"
2231 configure___ ld_switch_shared=LD_SWITCH_SHARED
2234 #ifdef ORDINARY_LINK
2235 #define LD "\$(CC) \$(CFLAGS)"
2236 #else /* no ORDINARY LINK */
2237 #ifdef COFF_ENCAPSULATE
2238 #define LD "\$(CC) -nostdlib"
2239 #else /* not COFF_ENCAPSULATE */
2242 #else /* ! defined (LINKER) */
2244 #endif /* ! defined (LINKER) */
2245 #endif /* ! defined (COFF_ENCAPSULATE) */
2246 #endif /* not ORDINARY_LINK */
2252 configure___ lib_gcc=LIB_GCC
2254 #ifndef LD_TEXT_START_ADDR
2255 #define LD_TEXT_START_ADDR
2257 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2260 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2262 #ifdef COFF_ENCAPSULATE
2263 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2264 #else /* ! defined (COFF_ENCAPSULATE) */
2265 #define START_FILES "pre-crt0.o /lib/crt0.o"
2266 #endif /* ! defined (COFF_ENCAPSULATE) */
2267 #else /* ! defined (NO_REMAP) */
2268 #define START_FILES "ecrt0.o"
2269 #endif /* ! defined (NO_REMAP) */
2270 #endif /* no ORDINARY_LINK */
2274 configure___ start_files=START_FILES
2276 #ifdef ORDINARY_LINK
2277 configure___ ordinary_link=yes
2279 configure___ ordinary_link=no
2282 #ifdef SYSTEM_MALLOC
2283 configure___ system_malloc=yes
2285 configure___ system_malloc=no
2289 configure___ have_terminfo=yes
2291 configure___ have_terminfo=no
2294 #ifdef MAIL_USE_FLOCK
2295 configure___ mail_use_flock=yes
2297 configure___ mail_use_flock=no
2300 #ifdef MAIL_USE_LOCKF
2301 configure___ mail_use_lockf=yes
2303 configure___ mail_use_lockf=no
2306 #ifdef HAVE_WIN32_PROCESSES
2307 configure___ win32_processes=yes
2309 configure___ win32_processes=no
2314 CPP=`eval "echo $CPP $CPPFLAGS"`
2315 eval `$CPP -Isrc $tempcname \
2316 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2320 test "$extra_verbose" = "yes" && \
2321 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 ""
2323 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2325 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2327 if test "$cflags_specified" = "no"; then
2328 if test "$GCC" = "yes"; then
2329 CFLAGS="-g -O3 -Wall -Wno-switch"
2330 elif test "$__SUNPRO_C" = "yes"; then
2332 sol2 ) CFLAGS="-v -xO4" ;;
2333 sunos4* ) CFLAGS="-xO2";;
2335 elif test "$__DECC" = "yes"; then
2337 elif test "$CC" = "xlc"; then
2338 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2344 if test "$GCC" = "yes"; then
2345 set x $ld_switch_system; shift; ld_switch_system=""
2346 while test -n "$1"; do
2348 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2349 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2351 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2357 if test "$GCC" = "yes"; then
2358 set x $ld_switch_machine; shift; ld_switch_machine=""
2359 while test -n "$1"; do
2361 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2362 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2364 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2370 if test "$GCC" = "yes"; then
2371 set x $LDFLAGS; shift; LDFLAGS=""
2372 while test -n "$1"; do
2374 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2375 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2377 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2383 if test "$GCC" = "yes"; then
2384 set x $ld_call_shared; shift; ld_call_shared=""
2385 while test -n "$1"; do
2387 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2388 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2390 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2396 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2397 echo " xemacs will be linked with \"$objects_machine\""
2399 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2400 echo " xemacs will be linked with \"$objects_system\""
2402 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2403 echo " xemacs will be linked with \"$unexec\""
2406 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2407 echo "configure:2408: checking for dynodump" >&5
2408 if test "$unexec" != "unexsol2.o"; then
2409 echo "$ac_t""no" 1>&6
2411 echo "$ac_t""yes" 1>&6
2412 { test "$extra_verbose" = "yes" && cat << \EOF
2415 cat >> confdefs.h <<\EOF
2420 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2421 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2423 sparc ) dynodump_arch=sparc ;;
2424 *86* ) dynodump_arch=i386 ;;
2425 powerpc ) dynodump_arch=ppc ;;
2427 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
2431 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2433 if test "$unexec" = "unexaix.o"; then
2434 if test "$dynamic" = "no"; then
2435 start_flags="-Wl,-bnso,-bnodelcsect"
2436 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2437 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2438 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2440 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2441 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2444 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2445 echo "configure:2446: checking for terminateAndUnload in -lC" >&5
2446 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2448 xe_check_libs=" -lC "
2449 cat > conftest.$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2452 /* Override any gcc2 internal prototype to avoid an error. */
2453 /* We use char because int might match the return type of a gcc2
2454 builtin and then its argument prototype would still apply. */
2455 char terminateAndUnload();
2458 terminateAndUnload()
2461 if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2463 eval "ac_cv_lib_$ac_lib_var=yes"
2465 echo "configure: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2468 eval "ac_cv_lib_$ac_lib_var=no"
2473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2474 echo "$ac_t""yes" 1>&6
2475 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2477 echo "$ac_t""no" 1>&6
2482 elif test -n "$ld_text_start_addr"; then
2483 start_flags="-T $ld_text_start_addr -e __start"
2489 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2490 test -z "$linker" && linker='$(CC) -nostdlib'
2491 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2493 test "$GCC" != "yes" && lib_gcc=
2499 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2500 if test -n "$site_libraries"; then
2501 for arg in $site_libraries; do
2504 * ) test -d "$arg" || \
2505 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2508 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2512 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2513 if test -n "$site_includes"; then
2514 for arg in $site_includes; do
2517 * ) test -d "$arg" || \
2518 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2521 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2525 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2526 if test -n "$site_prefixes"; then
2527 for dir in $site_prefixes; do
2528 lib_dir="${dir}/lib"
2529 inc_dir="${dir}/include"
2530 if test ! -d "$dir"; then
2531 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2532 elif test ! -d "$lib_dir"; then
2533 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2535 if test -d "$inc_dir"; then
2536 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
2538 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
2544 for dir in "/usr/ccs/lib"; do
2545 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
2548 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2549 if test -n "$site_runtime_libraries"; then
2550 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2555 if test "$dynamic" = "no"; then add_runtime_path=no
2556 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2557 else case "$opsys" in
2558 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2559 * ) add_runtime_path=no ;;
2563 if test "$add_runtime_path" = "yes"; then
2564 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2565 echo "configure:2566: checking "for runtime libraries flag"" >&5
2567 sol2 ) dash_r="-R" ;;
2568 decosf* | linux* | irix*) dash_r="-rpath " ;;
2571 for try_dash_r in "-R" "-R " "-rpath "; do
2572 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2574 if test "$GCC" = "yes"; then
2575 set x $xe_check_libs; shift; xe_check_libs=""
2576 while test -n "$1"; do
2578 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2579 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2581 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2594 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2596 dash_r="$try_dash_r"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2603 test -n "$dash_r" && break
2606 if test -n "$dash_r";
2607 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2608 else echo "$ac_t""NONE" 1>&6
2612 xe_add_unique_runpath_dir='
2614 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2616 if test "$xe_add_p" = "yes"; then
2617 test -n "$runpath" && runpath="${runpath}:"
2618 runpath="${runpath}${xe_runpath_dir}"
2619 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2625 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2626 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2627 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2629 runpath="" runpath_dirs=""
2630 if test -n "$LD_RUN_PATH"; then
2631 runpath="$LD_RUN_PATH"
2632 elif test "$GCC" = "yes"; then
2633 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2634 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2635 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2636 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2637 case "$arg" in P,* | -L* | -R* )
2638 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2640 xe_runpath_dir="$dir"
2641 test "$xe_runpath_dir" != "/lib" -a \
2642 "$xe_runpath_dir" != "/usr/lib" -a \
2643 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2644 eval "$xe_add_unique_runpath_dir"
2649 ld_switch_run="$ld_switch_run_save"
2652 for arg in $ld_switch_site $ld_switch_x_site; do
2653 case "$arg" in -L*) {
2654 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2655 test "$xe_runpath_dir" != "/lib" -a \
2656 "$xe_runpath_dir" != "/usr/lib" -a \
2657 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2658 eval "$xe_add_unique_runpath_dir"
2661 if test "$opsys $need_motif" = "sol2 yes"; then
2662 xe_runpath_dir="/opt/SUNWdt/lib";
2663 eval "$xe_add_unique_runpath_dir";
2666 if test -n "$runpath"; then
2667 ld_switch_run="${dash_r}${runpath}"
2669 if test "$GCC" = "yes"; then
2670 set x $ld_switch_run; shift; ld_switch_run=""
2671 while test -n "$1"; do
2673 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2674 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2676 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2681 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2689 if test "$with_dlmalloc" != "no"; then
2694 after_morecore_hook_exists=yes
2695 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2696 echo "configure:2697: checking for malloc_get_state" >&5
2698 cat > conftest.$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2701 /* System header to define __stub macros and hopefully few prototypes,
2702 which can conflict with char malloc_get_state(); below. */
2704 /* Override any gcc2 internal prototype to avoid an error. */
2705 /* We use char because int might match the return type of a gcc2
2706 builtin and then its argument prototype would still apply. */
2707 char malloc_get_state();
2711 /* The GNU C library defines this for functions which it implements
2712 to always fail with ENOSYS. Some functions are actually named
2713 something starting with __ and the normal name is an alias. */
2714 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2724 eval "ac_cv_func_malloc_get_state=yes"
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2729 eval "ac_cv_func_malloc_get_state=no"
2733 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2737 echo "$ac_t""no" 1>&6
2741 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2742 echo "configure:2743: checking for malloc_set_state" >&5
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747 /* System header to define __stub macros and hopefully few prototypes,
2748 which can conflict with char malloc_set_state(); below. */
2750 /* Override any gcc2 internal prototype to avoid an error. */
2751 /* We use char because int might match the return type of a gcc2
2752 builtin and then its argument prototype would still apply. */
2753 char malloc_set_state();
2757 /* The GNU C library defines this for functions which it implements
2758 to always fail with ENOSYS. Some functions are actually named
2759 something starting with __ and the normal name is an alias. */
2760 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2768 if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2770 eval "ac_cv_func_malloc_set_state=yes"
2772 echo "configure: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2775 eval "ac_cv_func_malloc_set_state=no"
2779 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2780 echo "$ac_t""yes" 1>&6
2783 echo "$ac_t""no" 1>&6
2787 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2788 echo "configure:2789: checking whether __after_morecore_hook exists" >&5
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 extern void (* __after_morecore_hook)();
2794 __after_morecore_hook = 0
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2799 echo "$ac_t""yes" 1>&6
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2804 echo "$ac_t""no" 1>&6
2805 after_morecore_hook_exists=no
2808 if test "$system_malloc" = "yes" ; then
2811 (The GNU allocators don't work with this system configuration)."
2812 elif test "$with_system_malloc" = "yes" ; then
2815 (User chose not to use GNU allocators)."
2816 elif test "$with_debug_malloc" = "yes" ; then
2819 (User chose to use Debugging Malloc)."
2822 if test "$doug_lea_malloc" = "yes" ; then
2823 if test "$GNU_MALLOC" = yes ; then
2825 (Using Doug Lea's new malloc from the GNU C Library.)"
2827 { test "$extra_verbose" = "yes" && cat << \EOF
2828 Defining DOUG_LEA_MALLOC
2830 cat >> confdefs.h <<\EOF
2831 #define DOUG_LEA_MALLOC 1
2835 if test "$after_morecore_hook_exists" = "no" ; then
2837 (Using Doug Lea's new malloc from the Linux C Library.)"
2838 { test "$extra_verbose" = "yes" && cat << \EOF
2839 Defining _NO_MALLOC_WARNING_
2841 cat >> confdefs.h <<\EOF
2842 #define _NO_MALLOC_WARNING_ 1
2847 use_minimal_tagbits=yes
2853 # Extract the first word of "ranlib", so it can be a program name with args.
2854 set dummy ranlib; ac_word=$2
2855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2856 echo "configure:2857: checking for $ac_word" >&5
2858 if test -n "$RANLIB"; then
2859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2862 for ac_dir in $PATH; do
2863 test -z "$ac_dir" && ac_dir=.
2864 if test -f $ac_dir/$ac_word; then
2865 ac_cv_prog_RANLIB="ranlib"
2870 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2872 RANLIB="$ac_cv_prog_RANLIB"
2873 if test -n "$RANLIB"; then
2874 echo "$ac_t""$RANLIB" 1>&6
2876 echo "$ac_t""no" 1>&6
2880 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2881 if test -f $ac_dir/install-sh; then
2883 ac_install_sh="$ac_aux_dir/install-sh -c"
2885 elif test -f $ac_dir/install.sh; then
2887 ac_install_sh="$ac_aux_dir/install.sh -c"
2891 if test -z "$ac_aux_dir"; then
2892 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
2894 ac_config_guess=$ac_aux_dir/config.guess
2895 ac_config_sub=$ac_aux_dir/config.sub
2896 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
2898 # Find a good install program. We prefer a C program (faster),
2899 # so one script is as good as another. But avoid the broken or
2900 # incompatible versions:
2901 # SysV /etc/install, /usr/sbin/install
2902 # SunOS /usr/etc/install
2903 # IRIX /sbin/install
2905 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2906 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2907 # ./install, which can be erroneously created by make from ./install.sh.
2908 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2909 echo "configure:2910: checking for a BSD compatible install" >&5
2910 if test -z "$INSTALL"; then
2912 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2913 for ac_dir in $PATH; do
2914 # Account for people who put trailing slashes in PATH elements.
2916 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2918 # OSF1 and SCO ODT 3.0 have their own names for install.
2919 for ac_prog in ginstall installbsd scoinst install; do
2920 if test -f $ac_dir/$ac_prog; then
2921 if test $ac_prog = install &&
2922 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2923 # AIX install. It has an incompatible calling convention.
2924 # OSF/1 installbsd also uses dspmsg, but is usable.
2927 ac_cv_path_install="$ac_dir/$ac_prog -c"
2937 if test "${ac_cv_path_install+set}" = set; then
2938 INSTALL="$ac_cv_path_install"
2940 # As a last resort, use the slow shell script. We don't cache a
2941 # path for INSTALL within a source directory, because that will
2942 # break other packages using the cache if that directory is
2943 # removed, or if the path is relative.
2944 INSTALL="$ac_install_sh"
2947 echo "$ac_t""$INSTALL" 1>&6
2949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2950 # It thinks the first close brace ends the variable substitution.
2951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2955 for ac_prog in 'bison -y' byacc
2957 # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2960 echo "configure:2961: checking for $ac_word" >&5
2962 if test -n "$YACC"; then
2963 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2966 for ac_dir in $PATH; do
2967 test -z "$ac_dir" && ac_dir=.
2968 if test -f $ac_dir/$ac_word; then
2969 ac_cv_prog_YACC="$ac_prog"
2975 YACC="$ac_cv_prog_YACC"
2976 if test -n "$YACC"; then
2977 echo "$ac_t""$YACC" 1>&6
2979 echo "$ac_t""no" 1>&6
2982 test -n "$YACC" && break
2984 test -n "$YACC" || YACC="yacc"
2987 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_hdr" >&5
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2999 { (eval echo configure:3000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3000 ac_err=`grep -v '^ *+' conftest.out`
3001 if test -z "$ac_err"; then
3003 eval "ac_cv_header_$ac_safe=yes"
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3009 eval "ac_cv_header_$ac_safe=no"
3012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3015 { test "$extra_verbose" = "yes" && cat << EOF
3018 cat >> confdefs.h <<EOF
3019 #define $ac_tr_hdr 1
3024 echo "$ac_t""no" 1>&6
3028 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_hdr" >&5
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3040 { (eval echo configure:3041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3041 ac_err=`grep -v '^ *+' conftest.out`
3042 if test -z "$ac_err"; then
3044 eval "ac_cv_header_$ac_safe=yes"
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3050 eval "ac_cv_header_$ac_safe=no"
3053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3056 { test "$extra_verbose" = "yes" && cat << EOF
3059 cat >> confdefs.h <<EOF
3060 #define $ac_tr_hdr 1
3065 echo "$ac_t""no" 1>&6
3069 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3073 echo "configure:3074: checking for $ac_hdr" >&5
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3081 { (eval echo configure:3082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3082 ac_err=`grep -v '^ *+' conftest.out`
3083 if test -z "$ac_err"; then
3085 eval "ac_cv_header_$ac_safe=yes"
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3091 eval "ac_cv_header_$ac_safe=no"
3094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3097 { test "$extra_verbose" = "yes" && cat << EOF
3100 cat >> confdefs.h <<EOF
3101 #define $ac_tr_hdr 1
3106 echo "$ac_t""no" 1>&6
3110 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3111 echo "configure:3112: checking for sys/wait.h that is POSIX.1 compatible" >&5
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 #include <sys/types.h>
3117 #include <sys/wait.h>
3119 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3122 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3127 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3130 if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3132 ac_cv_header_sys_wait_h=yes
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3137 ac_cv_header_sys_wait_h=no
3141 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3142 if test $ac_cv_header_sys_wait_h = yes; then
3143 { test "$extra_verbose" = "yes" && cat << \EOF
3144 Defining HAVE_SYS_WAIT_H
3146 cat >> confdefs.h <<\EOF
3147 #define HAVE_SYS_WAIT_H 1
3153 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3154 echo "configure:3155: checking for ANSI C header files" >&5
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3165 { (eval echo configure:3166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3166 ac_err=`grep -v '^ *+' conftest.out`
3167 if test -z "$ac_err"; then
3169 ac_cv_header_stdc=yes
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3175 ac_cv_header_stdc=no
3179 if test $ac_cv_header_stdc = yes; then
3180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 egrep "memchr" >/dev/null 2>&1; then
3191 ac_cv_header_stdc=no
3197 if test $ac_cv_header_stdc = yes; then
3198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3205 egrep "free" >/dev/null 2>&1; then
3209 ac_cv_header_stdc=no
3215 if test $ac_cv_header_stdc = yes; then
3216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3221 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3222 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3224 int main () { int i; for (i = 0; i < 256; i++)
3225 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3229 if { (eval echo configure:3230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3237 ac_cv_header_stdc=no
3242 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3243 if test $ac_cv_header_stdc = yes; then
3244 { test "$extra_verbose" = "yes" && cat << \EOF
3245 Defining STDC_HEADERS
3247 cat >> confdefs.h <<\EOF
3248 #define STDC_HEADERS 1
3254 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3255 echo "configure:3256: checking whether time.h and sys/time.h may both be included" >&5
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include <sys/types.h>
3261 #include <sys/time.h>
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3269 ac_cv_header_time=yes
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3274 ac_cv_header_time=no
3278 echo "$ac_t""$ac_cv_header_time" 1>&6
3279 if test $ac_cv_header_time = yes; then
3280 { test "$extra_verbose" = "yes" && cat << \EOF
3281 Defining TIME_WITH_SYS_TIME
3283 cat >> confdefs.h <<\EOF
3284 #define TIME_WITH_SYS_TIME 1
3290 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3291 echo "configure:3292: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <sys/types.h>
3298 /* NetBSD declares sys_siglist in unistd.h. */
3299 #ifdef HAVE_UNISTD_H
3303 char *msg = *(sys_siglist + 1);
3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3308 ac_cv_decl_sys_siglist=yes
3310 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3313 ac_cv_decl_sys_siglist=no
3317 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3318 if test $ac_cv_decl_sys_siglist = yes; then
3319 { test "$extra_verbose" = "yes" && cat << \EOF
3320 Defining SYS_SIGLIST_DECLARED
3322 cat >> confdefs.h <<\EOF
3323 #define SYS_SIGLIST_DECLARED 1
3330 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3331 echo "configure:3332: checking for struct utimbuf" >&5
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #ifdef TIME_WITH_SYS_TIME
3336 #include <sys/time.h>
3339 #ifdef HAVE_SYS_TIME_H
3340 #include <sys/time.h>
3349 static struct utimbuf x; x.actime = x.modtime;
3352 if { (eval echo configure:3353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3354 echo "$ac_t""yes" 1>&6
3355 { test "$extra_verbose" = "yes" && cat << \EOF
3356 Defining HAVE_STRUCT_UTIMBUF
3358 cat >> confdefs.h <<\EOF
3359 #define HAVE_STRUCT_UTIMBUF 1
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 echo "$ac_t""no" 1>&6
3371 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3372 echo "configure:3373: checking return type of signal handlers" >&5
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 #include <sys/types.h>
3383 extern "C" void (*signal (int, void (*)(int)))(int);
3385 void (*signal ()) ();
3392 if { (eval echo configure:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3394 ac_cv_type_signal=void
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3399 ac_cv_type_signal=int
3403 echo "$ac_t""$ac_cv_type_signal" 1>&6
3404 { test "$extra_verbose" = "yes" && cat << EOF
3405 Defining RETSIGTYPE = $ac_cv_type_signal
3407 cat >> confdefs.h <<EOF
3408 #define RETSIGTYPE $ac_cv_type_signal
3413 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3414 echo "configure:3415: checking for size_t" >&5
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 #include <sys/types.h>
3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3426 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3428 ac_cv_type_size_t=yes
3431 ac_cv_type_size_t=no
3435 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3436 if test $ac_cv_type_size_t = no; then
3437 { test "$extra_verbose" = "yes" && cat << \EOF
3438 Defining size_t = unsigned
3440 cat >> confdefs.h <<\EOF
3441 #define size_t unsigned
3447 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3448 echo "configure:3449: checking for pid_t" >&5
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 #include <sys/types.h>
3459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3460 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3462 ac_cv_type_pid_t=yes
3469 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3470 if test $ac_cv_type_pid_t = no; then
3471 { test "$extra_verbose" = "yes" && cat << \EOF
3472 Defining pid_t = int
3474 cat >> confdefs.h <<\EOF
3481 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3482 echo "configure:3483: checking for uid_t in sys/types.h" >&5
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <sys/types.h>
3489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 egrep "uid_t" >/dev/null 2>&1; then
3492 ac_cv_type_uid_t=yes
3500 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3501 if test $ac_cv_type_uid_t = no; then
3502 { test "$extra_verbose" = "yes" && cat << \EOF
3503 Defining uid_t = int
3505 cat >> confdefs.h <<\EOF
3510 { test "$extra_verbose" = "yes" && cat << \EOF
3511 Defining gid_t = int
3513 cat >> confdefs.h <<\EOF
3520 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3521 echo "configure:3522: checking for mode_t" >&5
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include <sys/types.h>
3532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3533 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3535 ac_cv_type_mode_t=yes
3538 ac_cv_type_mode_t=no
3542 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3543 if test $ac_cv_type_mode_t = no; then
3544 { test "$extra_verbose" = "yes" && cat << \EOF
3545 Defining mode_t = int
3547 cat >> confdefs.h <<\EOF
3554 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3555 echo "configure:3556: checking for off_t" >&5
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 #include <sys/types.h>
3566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3567 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3569 ac_cv_type_off_t=yes
3576 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3577 if test $ac_cv_type_off_t = no; then
3578 { test "$extra_verbose" = "yes" && cat << \EOF
3579 Defining off_t = long
3581 cat >> confdefs.h <<\EOF
3589 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3590 echo "configure:3591: checking for struct timeval" >&5
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 #ifdef TIME_WITH_SYS_TIME
3595 #include <sys/time.h>
3598 #ifdef HAVE_SYS_TIME_H
3599 #include <sys/time.h>
3605 static struct timeval x; x.tv_sec = x.tv_usec;
3608 if { (eval echo configure:3609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3610 echo "$ac_t""yes" 1>&6
3612 { test "$extra_verbose" = "yes" && cat << \EOF
3613 Defining HAVE_TIMEVAL
3615 cat >> confdefs.h <<\EOF
3616 #define HAVE_TIMEVAL 1
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3624 echo "$ac_t""no" 1>&6
3629 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3630 echo "configure:3631: checking whether struct tm is in sys/time.h or time.h" >&5
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3638 struct tm *tp; tp->tm_sec;
3641 if { (eval echo configure:3642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3643 ac_cv_struct_tm=time.h
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 ac_cv_struct_tm=sys/time.h
3652 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3653 if test $ac_cv_struct_tm = sys/time.h; then
3654 { test "$extra_verbose" = "yes" && cat << \EOF
3655 Defining TM_IN_SYS_TIME
3657 cat >> confdefs.h <<\EOF
3658 #define TM_IN_SYS_TIME 1
3664 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3665 echo "configure:3666: checking for tm_zone in struct tm" >&5
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 #include <sys/types.h>
3671 #include <$ac_cv_struct_tm>
3673 struct tm tm; tm.tm_zone;
3676 if { (eval echo configure:3677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3678 ac_cv_struct_tm_zone=yes
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 ac_cv_struct_tm_zone=no
3687 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3688 if test "$ac_cv_struct_tm_zone" = yes; then
3689 { test "$extra_verbose" = "yes" && cat << \EOF
3690 Defining HAVE_TM_ZONE
3692 cat >> confdefs.h <<\EOF
3693 #define HAVE_TM_ZONE 1
3698 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3699 echo "configure:3700: checking for tzname" >&5
3701 cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3705 #ifndef tzname /* For SGI. */
3706 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3714 ac_cv_var_tzname=yes
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3723 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3724 if test $ac_cv_var_tzname = yes; then
3725 { test "$extra_verbose" = "yes" && cat << \EOF
3726 Defining HAVE_TZNAME
3728 cat >> confdefs.h <<\EOF
3729 #define HAVE_TZNAME 1
3737 echo $ac_n "checking for working const""... $ac_c" 1>&6
3738 echo "configure:3739: checking for working const" >&5
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3746 /* Ultrix mips cc rejects this. */
3747 typedef int charset[2]; const charset x;
3748 /* SunOS 4.1.1 cc rejects this. */
3749 char const *const *ccp;
3751 /* NEC SVR4.0.2 mips cc rejects this. */
3752 struct point {int x, y;};
3753 static struct point const zero = {0,0};
3754 /* AIX XL C 1.02.0.0 rejects this.
3755 It does not let you subtract one const X* pointer from another in an arm
3756 of an if-expression whose if-part is not a constant expression */
3757 const char *g = "string";
3758 ccp = &g + (g ? g-g : 0);
3759 /* HPUX 7.0 cc rejects these. */
3762 ccp = (char const *const *) p;
3763 { /* SCO 3.2v4 cc rejects this. */
3765 char const *s = 0 ? (char *) 0 : (char const *) 0;
3769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3771 const int *foo = &x[0];
3774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3775 typedef const int *iptr;
3779 { /* AIX XL C 1.02.0.0 rejects this saying
3780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3781 struct s { int j; const int *ap[3]; };
3782 struct s *b; b->j = 5;
3784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3790 if { (eval echo configure:3791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3801 echo "$ac_t""$ac_cv_c_const" 1>&6
3802 if test $ac_cv_c_const = no; then
3803 { test "$extra_verbose" = "yes" && cat << \EOF
3806 cat >> confdefs.h <<\EOF
3814 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3815 echo "configure:3816: checking whether ${MAKE-make} sets \${MAKE}" >&5
3816 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3818 cat > conftestmake <<\EOF
3820 @echo 'ac_maketemp="${MAKE}"'
3822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3823 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3824 if test -n "$ac_maketemp"; then
3825 eval ac_cv_prog_make_${ac_make}_set=yes
3827 eval ac_cv_prog_make_${ac_make}_set=no
3830 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3831 echo "$ac_t""yes" 1>&6
3834 echo "$ac_t""no" 1>&6
3835 SET_MAKE="MAKE=${MAKE-make}"
3839 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3840 echo "configure:3841: checking whether byte ordering is bigendian" >&5
3842 ac_cv_c_bigendian=unknown
3843 # See if sys/param.h defines the BYTE_ORDER macro.
3844 cat > conftest.$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3847 #include <sys/types.h>
3848 #include <sys/param.h>
3851 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3856 if { (eval echo configure:3857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858 # It does; now see whether it defined to BIG_ENDIAN or not.
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 #include <sys/types.h>
3863 #include <sys/param.h>
3866 #if BYTE_ORDER != BIG_ENDIAN
3871 if { (eval echo configure:3872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3873 ac_cv_c_bigendian=yes
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3878 ac_cv_c_bigendian=no
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3886 if test $ac_cv_c_bigendian = unknown; then
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3891 /* Are we little or big endian? From Harbison&Steele. */
3895 char c[sizeof (long)];
3898 exit (u.c[sizeof (long) - 1] == 1);
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3903 ac_cv_c_bigendian=no
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3909 ac_cv_c_bigendian=yes
3914 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3915 if test $ac_cv_c_bigendian = yes; then
3916 { test "$extra_verbose" = "yes" && cat << \EOF
3917 Defining WORDS_BIGENDIAN
3919 cat >> confdefs.h <<\EOF
3920 #define WORDS_BIGENDIAN 1
3927 echo $ac_n "checking size of short""... $ac_c" 1>&6
3928 echo "configure:3929: checking size of short" >&5
3930 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3936 FILE *f=fopen("conftestval", "w");
3938 fprintf(f, "%d\n", sizeof(short));
3942 if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3944 ac_cv_sizeof_short=`cat conftestval`
3947 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5
3950 ac_cv_sizeof_short=0
3953 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3954 { test "$extra_verbose" = "yes" && cat << EOF
3955 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
3957 cat >> confdefs.h <<EOF
3958 #define SIZEOF_SHORT $ac_cv_sizeof_short
3963 if test "$ac_cv_sizeof_short" = 0; then
3965 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3966 echo "*** PANIC *** Please examine config.log for compilation errors."
3969 echo $ac_n "checking size of int""... $ac_c" 1>&6
3970 echo "configure:3971: checking size of int" >&5
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3978 FILE *f=fopen("conftestval", "w");
3980 fprintf(f, "%d\n", sizeof(int));
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3986 ac_cv_sizeof_int=`cat conftestval`
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3995 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3996 { test "$extra_verbose" = "yes" && cat << EOF
3997 Defining SIZEOF_INT = $ac_cv_sizeof_int
3999 cat >> confdefs.h <<EOF
4000 #define SIZEOF_INT $ac_cv_sizeof_int
4005 echo $ac_n "checking size of long""... $ac_c" 1>&6
4006 echo "configure:4007: checking size of long" >&5
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4014 FILE *f=fopen("conftestval", "w");
4016 fprintf(f, "%d\n", sizeof(long));
4020 if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4022 ac_cv_sizeof_long=`cat conftestval`
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4031 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4032 { test "$extra_verbose" = "yes" && cat << EOF
4033 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4035 cat >> confdefs.h <<EOF
4036 #define SIZEOF_LONG $ac_cv_sizeof_long
4041 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4042 echo "configure:4043: checking size of long long" >&5
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4050 FILE *f=fopen("conftestval", "w");
4052 fprintf(f, "%d\n", sizeof(long long));
4056 if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4058 ac_cv_sizeof_long_long=`cat conftestval`
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4064 ac_cv_sizeof_long_long=0
4067 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4068 { test "$extra_verbose" = "yes" && cat << EOF
4069 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4071 cat >> confdefs.h <<EOF
4072 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4077 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4078 echo "configure:4079: checking size of void *" >&5
4080 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4086 FILE *f=fopen("conftestval", "w");
4088 fprintf(f, "%d\n", sizeof(void *));
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4094 ac_cv_sizeof_void_p=`cat conftestval`
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4100 ac_cv_sizeof_void_p=0
4103 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4104 { test "$extra_verbose" = "yes" && cat << EOF
4105 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4107 cat >> confdefs.h <<EOF
4108 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4114 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4115 echo "configure:4116: checking for long file names" >&5
4117 ac_cv_sys_long_file_names=yes
4118 # Test for long file names in all the places we know might matter:
4119 # . the current directory, where building will happen
4120 # $prefix/lib where we will be installing things
4121 # $exec_prefix/lib likewise
4122 # eval it to expand exec_prefix.
4123 # $TMPDIR if set, where it might want to write temporary files
4124 # if $TMPDIR is not set:
4125 # /tmp where it might want to write temporary files
4128 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4129 ac_tmpdirs="$TMPDIR"
4131 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4133 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4134 test -d $ac_dir || continue
4135 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4136 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4137 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4138 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4139 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4140 ac_cv_sys_long_file_names=no
4141 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4144 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4147 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4148 if test $ac_cv_sys_long_file_names = yes; then
4149 { test "$extra_verbose" = "yes" && cat << \EOF
4150 Defining HAVE_LONG_FILE_NAMES
4152 cat >> confdefs.h <<\EOF
4153 #define HAVE_LONG_FILE_NAMES 1
4160 echo $ac_n "checking for sin""... $ac_c" 1>&6
4161 echo "configure:4162: checking for sin" >&5
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 /* System header to define __stub macros and hopefully few prototypes,
4167 which can conflict with char sin(); below. */
4169 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4176 /* The GNU C library defines this for functions which it implements
4177 to always fail with ENOSYS. Some functions are actually named
4178 something starting with __ and the normal name is an alias. */
4179 #if defined (__stub_sin) || defined (__stub___sin)
4187 if { (eval echo configure:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4189 eval "ac_cv_func_sin=yes"
4191 echo "configure: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4194 eval "ac_cv_func_sin=no"
4198 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4202 echo "$ac_t""no" 1>&6
4204 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4205 echo "configure:4206: checking for sin in -lm" >&5
4206 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4208 xe_check_libs=" -lm "
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4223 eval "ac_cv_lib_$ac_lib_var=yes"
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 eval "ac_cv_lib_$ac_lib_var=no"
4233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4234 echo "$ac_t""yes" 1>&6
4235 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4236 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4237 { test "$extra_verbose" = "yes" && cat << EOF
4240 cat >> confdefs.h <<EOF
4241 #define $ac_tr_lib 1
4245 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4248 echo "$ac_t""no" 1>&6
4255 { test "$extra_verbose" = "yes" && cat << \EOF
4256 Defining LISP_FLOAT_TYPE
4258 cat >> confdefs.h <<\EOF
4259 #define LISP_FLOAT_TYPE 1
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4269 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4272 if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4274 { test "$extra_verbose" = "yes" && cat << \EOF
4275 Defining HAVE_INVERSE_HYPERBOLIC
4277 cat >> confdefs.h <<\EOF
4278 #define HAVE_INVERSE_HYPERBOLIC 1
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4288 echo "checking type of mail spool file locking" 1>&6
4289 echo "configure:4290: checking type of mail spool file locking" >&5
4290 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4291 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4292 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4293 Defining REAL_MAIL_USE_LOCKF
4295 cat >> confdefs.h <<\EOF
4296 #define REAL_MAIL_USE_LOCKF 1
4300 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4301 Defining REAL_MAIL_USE_FLOCK
4303 cat >> confdefs.h <<\EOF
4304 #define REAL_MAIL_USE_FLOCK 1
4308 else mail_locking="dot-locking"
4311 case "$opsys" in decosf*)
4313 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4314 echo "configure:4315: checking for cma_open in -lpthreads" >&5
4315 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4317 xe_check_libs=" -lpthreads "
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* Override any gcc2 internal prototype to avoid an error. */
4322 /* We use char because int might match the return type of a gcc2
4323 builtin and then its argument prototype would still apply. */
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4332 eval "ac_cv_lib_$ac_lib_var=yes"
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 eval "ac_cv_lib_$ac_lib_var=no"
4342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4343 echo "$ac_t""yes" 1>&6
4344 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4346 { test "$extra_verbose" = "yes" && cat << EOF
4349 cat >> confdefs.h <<EOF
4350 #define $ac_tr_lib 1
4354 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4357 echo "$ac_t""no" 1>&6
4361 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4362 c_switch_site="$c_switch_site -threads" ;;
4365 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4366 echo "configure:4367: checking whether the -xildoff compiler flag is required" >&5
4367 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4368 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4369 then echo "$ac_t""no" 1>&6;
4370 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
4372 else echo "$ac_t""no" 1>&6
4375 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4376 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4377 echo "configure:4378: checking for \"-z ignore\" linker flag" >&5
4378 case "`ld -h 2>&1`" in
4379 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4380 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4381 *) echo "$ac_t""no" 1>&6 ;;
4386 echo "checking "for specified window system"" 1>&6
4387 echo "configure:4388: checking "for specified window system"" >&5
4389 if test "$with_x11" != "no"; then
4390 test "$x_includes $x_libraries" != "NONE NONE" && \
4391 window_system=x11 with_x11=yes
4394 if test "$x_includes $x_libraries" = "NONE NONE" \
4395 -a -n "$OPENWINHOME" \
4396 -a "$OPENWINHOME" != "/usr/openwin" \
4397 -a -d "$OPENWINHOME"; then
4398 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4399 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4400 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4403 if test "$x_includes" = "NONE"; then
4404 for dir in "/usr/X11" "/usr/X11R6"; do
4405 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4409 if test "$x_libraries" = "NONE"; then
4410 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4411 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4415 # If we find X, set shell vars x_includes and x_libraries to the
4416 # paths, otherwise set no_x=yes.
4417 # Uses ac_ vars as temps to allow command line to override cache and checks.
4418 # --without-x overrides everything else, but does not touch the cache.
4419 echo $ac_n "checking for X""... $ac_c" 1>&6
4420 echo "configure:4421: checking for X" >&5
4422 # Check whether --with-x or --without-x was given.
4423 if test "${with_x+set}" = set; then
4428 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4429 if test "x$with_x" = xno; then
4430 # The user explicitly disabled X.
4433 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4434 # Both variables are already set.
4438 # One or both of the vars are not set, and there is no cached value.
4439 ac_x_includes=NO ac_x_libraries=NO
4441 if mkdir conftestdir; then
4443 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4444 cat > Imakefile <<'EOF'
4446 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4448 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4449 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4450 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4451 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4452 for ac_extension in a so sl; do
4453 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4454 test -f $ac_im_libdir/libX11.$ac_extension; then
4455 ac_im_usrlibdir=$ac_im_libdir; break
4458 # Screen out bogus values from the imake configuration. They are
4459 # bogus both because they are the default anyway, and because
4460 # using them would break gcc on systems where it needs fixed includes.
4461 case "$ac_im_incroot" in
4463 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4465 case "$ac_im_usrlibdir" in
4467 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4474 if test "$ac_x_includes" = NO; then
4475 # Guess where to find include files, by looking for this one X11 .h file.
4476 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4478 # First, try using that file with no special directory specified.
4479 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4482 #include <$x_direct_test_include>
4484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4485 { (eval echo configure:4486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4486 ac_err=`grep -v '^ *+' conftest.out`
4487 if test -z "$ac_err"; then
4489 # We can compile using X headers with no special include directory.
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4496 # Look for the header file in a standard set of common directories.
4497 # Check X11 before X11Rn because it is often a symlink to the current release.
4500 /usr/X11R6/include \
4501 /usr/X11R5/include \
4502 /usr/X11R4/include \
4505 /usr/include/X11R6 \
4506 /usr/include/X11R5 \
4507 /usr/include/X11R4 \
4509 /usr/local/X11/include \
4510 /usr/local/X11R6/include \
4511 /usr/local/X11R5/include \
4512 /usr/local/X11R4/include \
4514 /usr/local/include/X11 \
4515 /usr/local/include/X11R6 \
4516 /usr/local/include/X11R5 \
4517 /usr/local/include/X11R4 \
4521 /usr/XFree86/include/X11 \
4524 /usr/local/include \
4525 /usr/unsupported/include \
4526 /usr/athena/include \
4527 /usr/local/x11r5/include \
4528 /usr/lpp/Xamples/include \
4530 /usr/openwin/include \
4531 /usr/openwin/share/include \
4534 if test -r "$ac_dir/$x_direct_test_include"; then
4535 ac_x_includes=$ac_dir
4541 fi # $ac_x_includes = NO
4543 if test "$ac_x_libraries" = NO; then
4544 # Check for the libraries.
4546 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4547 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4549 # See if we find them without any special options.
4550 # Don't add to $LIBS permanently.
4551 ac_save_LIBS="$LIBS"
4552 LIBS="-l$x_direct_test_library $LIBS"
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4558 ${x_direct_test_function}()
4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4563 LIBS="$ac_save_LIBS"
4564 # We can link X programs with no special library path.
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4570 LIBS="$ac_save_LIBS"
4571 # First see if replacing the include by lib works.
4572 # Check X11 before X11Rn because it is often a symlink to the current release.
4573 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4584 /usr/local/X11/lib \
4585 /usr/local/X11R6/lib \
4586 /usr/local/X11R5/lib \
4587 /usr/local/X11R4/lib \
4589 /usr/local/lib/X11 \
4590 /usr/local/lib/X11R6 \
4591 /usr/local/lib/X11R5 \
4592 /usr/local/lib/X11R4 \
4596 /usr/XFree86/lib/X11 \
4600 /usr/unsupported/lib \
4602 /usr/local/x11r5/lib \
4603 /usr/lpp/Xamples/lib \
4607 /usr/openwin/share/lib \
4610 for ac_extension in a so sl; do
4611 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4612 ac_x_libraries=$ac_dir
4619 fi # $ac_x_libraries = NO
4621 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4622 # Didn't find X anywhere. Cache the known absence of X.
4623 ac_cv_have_x="have_x=no"
4625 # Record where we found X for the cache.
4626 ac_cv_have_x="have_x=yes \
4627 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4630 eval "$ac_cv_have_x"
4633 if test "$have_x" != yes; then
4634 echo "$ac_t""$have_x" 1>&6
4637 # If each of the values was on the command line, it overrides each guess.
4638 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4639 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4640 # Update the cache value to reflect the command line values.
4641 ac_cv_have_x="have_x=yes \
4642 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4643 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4646 if test "$no_x" = yes; then
4647 # Not all programs may use this symbol, but it does not hurt to define it.
4648 { test "$extra_verbose" = "yes" && cat << \EOF
4649 Defining X_DISPLAY_MISSING
4651 cat >> confdefs.h <<\EOF
4652 #define X_DISPLAY_MISSING 1
4656 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4658 if test -n "$x_includes"; then
4659 X_CFLAGS="$X_CFLAGS -I$x_includes"
4662 # It would also be nice to do this for all -L options, not just this one.
4663 if test -n "$x_libraries"; then
4664 X_LIBS="$X_LIBS -L$x_libraries"
4665 # For Solaris; some versions of Sun CC require a space after -R and
4666 # others require no space. Words are not sufficient . . . .
4667 case "`(uname -sr) 2>/dev/null`" in
4669 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4670 echo "configure:4671: checking whether -R must be followed by a space" >&5
4671 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4680 if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4690 if test $ac_R_nospace = yes; then
4691 echo "$ac_t""no" 1>&6
4692 X_LIBS="$X_LIBS -R$x_libraries"
4694 LIBS="$ac_xsave_LIBS -R $x_libraries"
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4703 if { (eval echo configure:4704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4707 echo "configure: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4713 if test $ac_R_space = yes; then
4714 echo "$ac_t""yes" 1>&6
4715 X_LIBS="$X_LIBS -R $x_libraries"
4717 echo "$ac_t""neither works" 1>&6
4720 LIBS="$ac_xsave_LIBS"
4724 # Check for system-dependent libraries X programs must link with.
4725 # Do this before checking for the system-independent R6 libraries
4726 # (-lICE), since we may need -lsocket or whatever for X linking.
4728 if test "$ISC" = yes; then
4729 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4731 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4732 # libraries were built with DECnet support. And karl@cs.umb.edu says
4733 # the Alpha needs dnet_stub (dnet does not exist).
4734 if test "$with_dnet" = "no" ; then
4735 ac_cv_lib_dnet_dnet_ntoa=no
4738 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4739 echo "configure:4740: checking for dnet_ntoa in -ldnet" >&5
4740 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4742 xe_check_libs=" -ldnet "
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 /* Override any gcc2 internal prototype to avoid an error. */
4747 /* We use char because int might match the return type of a gcc2
4748 builtin and then its argument prototype would still apply. */
4755 if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4757 eval "ac_cv_lib_$ac_lib_var=yes"
4759 echo "configure: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4762 eval "ac_cv_lib_$ac_lib_var=no"
4767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4768 echo "$ac_t""yes" 1>&6
4769 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4771 echo "$ac_t""no" 1>&6
4776 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4778 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4779 echo "configure:4780: checking for dnet_ntoa in -ldnet_stub" >&5
4780 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4782 xe_check_libs=" -ldnet_stub "
4783 cat > conftest.$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4786 /* Override any gcc2 internal prototype to avoid an error. */
4787 /* We use char because int might match the return type of a gcc2
4788 builtin and then its argument prototype would still apply. */
4795 if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4797 eval "ac_cv_lib_$ac_lib_var=yes"
4799 echo "configure: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4802 eval "ac_cv_lib_$ac_lib_var=no"
4807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4808 echo "$ac_t""yes" 1>&6
4809 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4811 echo "$ac_t""no" 1>&6
4817 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4818 # to get the SysV transport functions.
4819 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4821 # The nsl library prevents programs from opening the X display
4822 # on Irix 5.2, according to dickey@clark.net.
4823 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4824 echo "configure:4825: checking for gethostbyname" >&5
4826 cat > conftest.$ac_ext <<EOF
4827 #line 4828 "configure"
4828 #include "confdefs.h"
4829 /* System header to define __stub macros and hopefully few prototypes,
4830 which can conflict with char gethostbyname(); below. */
4832 /* Override any gcc2 internal prototype to avoid an error. */
4833 /* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */
4835 char gethostbyname();
4839 /* The GNU C library defines this for functions which it implements
4840 to always fail with ENOSYS. Some functions are actually named
4841 something starting with __ and the normal name is an alias. */
4842 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4852 eval "ac_cv_func_gethostbyname=yes"
4854 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5
4857 eval "ac_cv_func_gethostbyname=no"
4861 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4862 echo "$ac_t""yes" 1>&6
4865 echo "$ac_t""no" 1>&6
4868 if test $ac_cv_func_gethostbyname = no; then
4870 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4871 echo "configure:4872: checking for gethostbyname in -lnsl" >&5
4872 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4874 xe_check_libs=" -lnsl "
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4878 /* Override any gcc2 internal prototype to avoid an error. */
4879 /* We use char because int might match the return type of a gcc2
4880 builtin and then its argument prototype would still apply. */
4881 char gethostbyname();
4887 if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4889 eval "ac_cv_lib_$ac_lib_var=yes"
4891 echo "configure: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4894 eval "ac_cv_lib_$ac_lib_var=no"
4899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4900 echo "$ac_t""yes" 1>&6
4901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4903 echo "$ac_t""no" 1>&6
4909 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4910 # socket/setsockopt and other routines are undefined under SCO ODT
4911 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4912 # on later versions), says simon@lia.di.epfl.ch: it contains
4913 # gethostby* variants that don't use the nameserver (or something).
4914 # -lsocket must be given before -lnsl if both are needed.
4915 # We assume that if connect needs -lnsl, so does gethostbyname.
4916 echo $ac_n "checking for connect""... $ac_c" 1>&6
4917 echo "configure:4918: checking for connect" >&5
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4922 /* System header to define __stub macros and hopefully few prototypes,
4923 which can conflict with char connect(); below. */
4925 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */
4932 /* The GNU C library defines this for functions which it implements
4933 to always fail with ENOSYS. Some functions are actually named
4934 something starting with __ and the normal name is an alias. */
4935 #if defined (__stub_connect) || defined (__stub___connect)
4943 if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4945 eval "ac_cv_func_connect=yes"
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4950 eval "ac_cv_func_connect=no"
4954 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4955 echo "$ac_t""yes" 1>&6
4958 echo "$ac_t""no" 1>&6
4961 if test $ac_cv_func_connect = no; then
4963 xe_msg_checking="for connect in -lsocket"
4964 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4965 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4966 echo "configure:4967: checking "$xe_msg_checking"" >&5
4967 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4969 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4970 cat > conftest.$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4982 if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4984 eval "ac_cv_lib_$ac_lib_var=yes"
4986 echo "configure: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4989 eval "ac_cv_lib_$ac_lib_var=no"
4994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4995 echo "$ac_t""yes" 1>&6
4996 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4998 echo "$ac_t""no" 1>&6
5004 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5005 echo $ac_n "checking for remove""... $ac_c" 1>&6
5006 echo "configure:5007: checking for remove" >&5
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 /* System header to define __stub macros and hopefully few prototypes,
5012 which can conflict with char remove(); below. */
5014 /* Override any gcc2 internal prototype to avoid an error. */
5015 /* We use char because int might match the return type of a gcc2
5016 builtin and then its argument prototype would still apply. */
5021 /* The GNU C library defines this for functions which it implements
5022 to always fail with ENOSYS. Some functions are actually named
5023 something starting with __ and the normal name is an alias. */
5024 #if defined (__stub_remove) || defined (__stub___remove)
5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5034 eval "ac_cv_func_remove=yes"
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5039 eval "ac_cv_func_remove=no"
5043 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5044 echo "$ac_t""yes" 1>&6
5047 echo "$ac_t""no" 1>&6
5050 if test $ac_cv_func_remove = no; then
5052 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5053 echo "configure:5054: checking for remove in -lposix" >&5
5054 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5056 xe_check_libs=" -lposix "
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 /* Override any gcc2 internal prototype to avoid an error. */
5061 /* We use char because int might match the return type of a gcc2
5062 builtin and then its argument prototype would still apply. */
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5071 eval "ac_cv_lib_$ac_lib_var=yes"
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 eval "ac_cv_lib_$ac_lib_var=no"
5081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5082 echo "$ac_t""yes" 1>&6
5083 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5085 echo "$ac_t""no" 1>&6
5091 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5092 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5093 echo "configure:5094: checking for shmat" >&5
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098 /* System header to define __stub macros and hopefully few prototypes,
5099 which can conflict with char shmat(); below. */
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5108 /* The GNU C library defines this for functions which it implements
5109 to always fail with ENOSYS. Some functions are actually named
5110 something starting with __ and the normal name is an alias. */
5111 #if defined (__stub_shmat) || defined (__stub___shmat)
5119 if { (eval echo configure:5120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5121 eval "ac_cv_func_shmat=yes"
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5126 eval "ac_cv_func_shmat=no"
5130 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5131 echo "$ac_t""yes" 1>&6
5134 echo "$ac_t""no" 1>&6
5137 if test $ac_cv_func_shmat = no; then
5139 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5140 echo "configure:5141: checking for shmat in -lipc" >&5
5141 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5143 xe_check_libs=" -lipc "
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5147 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5158 eval "ac_cv_lib_$ac_lib_var=yes"
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5163 eval "ac_cv_lib_$ac_lib_var=no"
5168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5169 echo "$ac_t""yes" 1>&6
5170 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5172 echo "$ac_t""no" 1>&6
5179 # Check for libraries that X11R6 Xt/Xaw programs need.
5180 ac_save_LDFLAGS="$LDFLAGS"
5181 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5182 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5183 # check for ICE first), but we must link in the order -lSM -lICE or
5184 # we get undefined symbols. So assume we have SM if we have ICE.
5185 # These have to be linked with before -lX11, unlike the other
5186 # libraries we check for below, so use a different variable.
5187 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5189 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5190 echo "configure:5191: checking for IceConnectionNumber in -lICE" >&5
5191 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5193 xe_check_libs=" -lICE "
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5197 /* Override any gcc2 internal prototype to avoid an error. */
5198 /* We use char because int might match the return type of a gcc2
5199 builtin and then its argument prototype would still apply. */
5200 char IceConnectionNumber();
5203 IceConnectionNumber()
5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5208 eval "ac_cv_lib_$ac_lib_var=yes"
5210 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5213 eval "ac_cv_lib_$ac_lib_var=no"
5218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5219 echo "$ac_t""yes" 1>&6
5220 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5222 echo "$ac_t""no" 1>&6
5226 LDFLAGS="$ac_save_LDFLAGS"
5229 # Autoconf claims to find X library and include dirs for us.
5230 if test "$no_x" = "yes"
5231 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5232 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5237 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5238 no ) window_system=none HAVE_X_WINDOWS=no ;;
5241 if test "$with_x11" = "yes"; then
5242 { test "$extra_verbose" = "yes" && cat << \EOF
5243 Defining HAVE_X_WINDOWS
5245 cat >> confdefs.h <<\EOF
5246 #define HAVE_X_WINDOWS 1
5250 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5251 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5253 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5254 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5255 if test -d "$lib_dir" -a -d "$inc_dir"; then
5256 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5257 x_libraries="$lib_dir $x_libraries"
5258 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5260 case "$x_includes" in "$inc_dir"* ) ;; *)
5261 x_includes="$inc_dir $x_includes"
5262 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5267 for rel in "X11R6" "X11R5" "X11R4"; do
5268 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5269 if test -d "$lib_dir" -a -d "$inc_dir"; then
5270 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5271 x_libraries="$x_libraries $lib_dir"
5272 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5274 case "$x_includes" in "$inc_dir"* ) ;; *)
5275 x_includes="$x_includes $inc_dir"
5276 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5281 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
5283 ld_switch_x_site="$X_LIBS"
5286 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5287 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5288 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5290 runpath="" runpath_dirs=""
5291 if test -n "$LD_RUN_PATH"; then
5292 runpath="$LD_RUN_PATH"
5293 elif test "$GCC" = "yes"; then
5294 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5295 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5296 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5297 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5298 case "$arg" in P,* | -L* | -R* )
5299 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5301 xe_runpath_dir="$dir"
5302 test "$xe_runpath_dir" != "/lib" -a \
5303 "$xe_runpath_dir" != "/usr/lib" -a \
5304 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5305 eval "$xe_add_unique_runpath_dir"
5310 ld_switch_run="$ld_switch_run_save"
5313 for arg in $ld_switch_site $ld_switch_x_site; do
5314 case "$arg" in -L*) {
5315 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5316 test "$xe_runpath_dir" != "/lib" -a \
5317 "$xe_runpath_dir" != "/usr/lib" -a \
5318 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5319 eval "$xe_add_unique_runpath_dir"
5322 if test "$opsys $need_motif" = "sol2 yes"; then
5323 xe_runpath_dir="/opt/SUNWdt/lib";
5324 eval "$xe_add_unique_runpath_dir";
5327 if test -n "$runpath"; then
5328 ld_switch_run="${dash_r}${runpath}"
5330 if test "$GCC" = "yes"; then
5331 set x $ld_switch_run; shift; ld_switch_run=""
5332 while test -n "$1"; do
5334 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5335 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5337 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5342 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5347 if test "$extra_verbose" = "yes"; then
5348 echo; echo "X11 compilation variables:"
5349 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5354 if test "$x_includes" != NONE; then
5355 for i in $x_includes; do
5356 if test -d "$i/bitmaps"; then
5357 bitmapdirs="$i/bitmaps:$bitmapdirs"
5359 if test -d "$i/X11/bitmaps"; then
5360 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5363 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5365 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5366 Defining BITMAPDIR = "$bitmapdirs"
5368 cat >> confdefs.h <<EOF
5369 #define BITMAPDIR "$bitmapdirs"
5374 echo "checking for X defines extracted by xmkmf" 1>&6
5375 echo "configure:5376: checking for X defines extracted by xmkmf" >&5
5377 if mkdir conftestdir; then
5379 cat > Imakefile <<'EOF'
5381 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5383 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5385 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5389 for word in $xmkmf_defines; do
5392 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5393 { test "$extra_verbose" = "yes" && cat << EOF
5396 cat >> confdefs.h <<EOF
5405 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5406 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5407 echo "configure:5408: checking for X11/Intrinsic.h" >&5
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5412 #include <X11/Intrinsic.h>
5414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5415 { (eval echo configure:5416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5416 ac_err=`grep -v '^ *+' conftest.out`
5417 if test -z "$ac_err"; then
5419 eval "ac_cv_header_$ac_safe=yes"
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5425 eval "ac_cv_header_$ac_safe=no"
5428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5429 echo "$ac_t""yes" 1>&6
5432 echo "$ac_t""no" 1>&6
5433 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5438 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5439 echo "configure:5440: checking for XOpenDisplay in -lX11" >&5
5440 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5442 xe_check_libs=" -lX11 "
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 /* Override any gcc2 internal prototype to avoid an error. */
5447 /* We use char because int might match the return type of a gcc2
5448 builtin and then its argument prototype would still apply. */
5449 char XOpenDisplay();
5455 if { (eval echo configure:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5457 eval "ac_cv_lib_$ac_lib_var=yes"
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 eval "ac_cv_lib_$ac_lib_var=no"
5467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5468 echo "$ac_t""yes" 1>&6
5471 echo "$ac_t""no" 1>&6
5475 if test "$have_lib_x11" != "yes"; then
5477 xe_msg_checking="for XGetFontProperty in -lX11"
5478 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5479 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5480 echo "configure:5481: checking "$xe_msg_checking"" >&5
5481 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5483 xe_check_libs=" -lX11 -b i486-linuxaout"
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5487 /* Override any gcc2 internal prototype to avoid an error. */
5488 /* We use char because int might match the return type of a gcc2
5489 builtin and then its argument prototype would still apply. */
5490 char XGetFontProperty();
5496 if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5498 eval "ac_cv_lib_$ac_lib_var=yes"
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5503 eval "ac_cv_lib_$ac_lib_var=no"
5508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5509 echo "$ac_t""yes" 1>&6
5510 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5512 echo "$ac_t""no" 1>&6
5513 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5519 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5522 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5523 echo "configure:5524: checking for XShapeSelectInput in -lXext" >&5
5524 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5526 xe_check_libs=" -lXext "
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5530 /* Override any gcc2 internal prototype to avoid an error. */
5531 /* We use char because int might match the return type of a gcc2
5532 builtin and then its argument prototype would still apply. */
5533 char XShapeSelectInput();
5539 if { (eval echo configure:5540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5541 eval "ac_cv_lib_$ac_lib_var=yes"
5543 echo "configure: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5546 eval "ac_cv_lib_$ac_lib_var=no"
5551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5552 echo "$ac_t""yes" 1>&6
5553 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5555 echo "$ac_t""no" 1>&6
5561 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5562 echo "configure:5563: checking for XtOpenDisplay in -lXt" >&5
5563 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5565 xe_check_libs=" -lXt "
5566 cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5569 /* Override any gcc2 internal prototype to avoid an error. */
5570 /* We use char because int might match the return type of a gcc2
5571 builtin and then its argument prototype would still apply. */
5572 char XtOpenDisplay();
5578 if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5580 eval "ac_cv_lib_$ac_lib_var=yes"
5582 echo "configure: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5585 eval "ac_cv_lib_$ac_lib_var=no"
5590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5591 echo "$ac_t""yes" 1>&6
5592 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5594 echo "$ac_t""no" 1>&6
5595 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5600 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5601 echo "configure:5602: checking the version of X11 being used" >&5
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 #include <X11/Intrinsic.h>
5606 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5608 if { (eval echo configure:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5610 ./conftest foobar; x11_release=$?
5613 echo "configure: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5619 echo "$ac_t""R${x11_release}" 1>&6
5620 { test "$extra_verbose" = "yes" && cat << EOF
5621 Defining THIS_IS_X11R${x11_release}
5623 cat >> confdefs.h <<EOF
5624 #define THIS_IS_X11R${x11_release} 1
5629 for ac_hdr in X11/Xlocale.h
5631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5633 echo "configure:5634: checking for $ac_hdr" >&5
5635 cat > conftest.$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5641 { (eval echo configure:5642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5642 ac_err=`grep -v '^ *+' conftest.out`
5643 if test -z "$ac_err"; then
5645 eval "ac_cv_header_$ac_safe=yes"
5648 echo "configure: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5651 eval "ac_cv_header_$ac_safe=no"
5654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5655 echo "$ac_t""yes" 1>&6
5656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5657 { test "$extra_verbose" = "yes" && cat << EOF
5660 cat >> confdefs.h <<EOF
5661 #define $ac_tr_hdr 1
5666 echo "$ac_t""no" 1>&6
5671 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5672 echo "configure:5673: checking for XFree86" >&5
5673 if test -d "/usr/X386/include" -o \
5674 -f "/etc/XF86Config" -o \
5675 -f "/etc/X11/XF86Config" -o \
5676 -f "/usr/X11R6/lib/X11/XF86Config"; then
5677 echo "$ac_t""yes" 1>&6
5678 { test "$extra_verbose" = "yes" && cat << \EOF
5679 Defining HAVE_XFREE386
5681 cat >> confdefs.h <<\EOF
5682 #define HAVE_XFREE386 1
5687 echo "$ac_t""no" 1>&6
5690 test -z "$with_xmu" && {
5691 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5692 echo "configure:5693: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5693 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5695 xe_check_libs=" -lXmu "
5696 cat > conftest.$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5699 /* Override any gcc2 internal prototype to avoid an error. */
5700 /* We use char because int might match the return type of a gcc2
5701 builtin and then its argument prototype would still apply. */
5702 char XmuReadBitmapDataFromFile();
5705 XmuReadBitmapDataFromFile()
5708 if { (eval echo configure:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5710 eval "ac_cv_lib_$ac_lib_var=yes"
5712 echo "configure: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5715 eval "ac_cv_lib_$ac_lib_var=no"
5720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5721 echo "$ac_t""yes" 1>&6
5724 echo "$ac_t""no" 1>&6
5729 if test "$with_xmu" = "no"; then
5730 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5731 echo " xemacs will be linked with \"xmu.o\""
5734 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5735 { test "$extra_verbose" = "yes" && cat << \EOF
5738 cat >> confdefs.h <<\EOF
5746 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5747 echo "configure:5748: checking for main in -lXbsd" >&5
5748 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5750 xe_check_libs=" -lXbsd "
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5759 if { (eval echo configure:5760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5761 eval "ac_cv_lib_$ac_lib_var=yes"
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5766 eval "ac_cv_lib_$ac_lib_var=no"
5771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5772 echo "$ac_t""yes" 1>&6
5773 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5775 echo "$ac_t""no" 1>&6
5780 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5781 if test "$GCC" = "yes"; then
5782 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5783 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5786 "xlc" ) CC="xlc_r" ;;
5787 "xlC" ) CC="xlC_r" ;;
5794 if test "$with_msw" != "no"; then
5795 echo "checking for MS-Windows" 1>&6
5796 echo "configure:5797: checking for MS-Windows" >&5
5798 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5799 echo "configure:5800: checking for main in -lgdi32" >&5
5800 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5802 xe_check_libs=" -lgdi32 "
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5811 if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5813 eval "ac_cv_lib_$ac_lib_var=yes"
5815 echo "configure: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5818 eval "ac_cv_lib_$ac_lib_var=no"
5823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5824 echo "$ac_t""yes" 1>&6
5827 echo "$ac_t""no" 1>&6
5831 if test "$with_msw" = "yes"; then
5832 { test "$extra_verbose" = "yes" && cat << \EOF
5833 Defining HAVE_MS_WINDOWS
5835 cat >> confdefs.h <<\EOF
5836 #define HAVE_MS_WINDOWS 1
5840 install_pp="$blddir/lib-src/installexe.sh"
5841 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
5842 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
5843 if test "$window_system" != x11; then
5845 test "$with_scrollbars" != "no" && with_scrollbars=msw \
5846 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
5847 echo " xemacs will be linked with \"scrollbar-msw.o\""
5849 test "$with_menubars" != "no" && with_menubars=msw \
5850 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
5851 echo " xemacs will be linked with \"menubar-msw.o\""
5853 test "$with_toolbars" != "no" && with_toolbars=msw \
5854 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
5855 echo " xemacs will be linked with \"toolbar-msw.o\""
5857 test "$with_dialogs" != "no" && with_dialogs=msw \
5858 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5859 echo " xemacs will be linked with \"dialog-msw.o\""
5862 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
5863 echo " xemacs will be linked with \"scrollbar-msw.o\""
5865 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
5866 echo " xemacs will be linked with \"menubar-msw.o\""
5868 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
5869 echo " xemacs will be linked with \"toolbar-msw.o\""
5871 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5872 echo " xemacs will be linked with \"dialog-msw.o\""
5875 cat > conftest.$ac_ext <<EOF
5876 #line 5877 "configure"
5877 #include "confdefs.h"
5879 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
5881 if { (eval echo configure:5882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5883 { test "$extra_verbose" = "yes" && cat << \EOF
5884 Defining HAVE_MSG_SELECT
5886 cat >> confdefs.h <<\EOF
5887 #define HAVE_MSG_SELECT 1
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5898 with_file_coding=yes
5899 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
5900 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\""
5907 test -z "$window_system" && window_system="none"
5909 if test "$window_system" = "none"; then
5910 for feature in menubars scrollbars toolbars dialogs dragndrop xface
5912 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5913 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
5915 eval "with_${feature}=no"
5918 test -z "$with_toolbars" && with_toolbars=yes
5921 if test "$with_msw" != "yes"; then
5922 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
5924 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5925 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
5927 eval "with_${feature}=no"
5933 if test "$with_x11" != "yes"; then
5934 for feature in tooltalk cde offix wmcommand xim xmu
5936 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5937 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
5939 eval "with_${feature}=no"
5945 case "$window_system" in
5946 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
5947 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
5948 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
5951 case "$x_libraries" in *X11R4* )
5952 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5953 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5956 echo "checking for WM_COMMAND option" 1>&6
5957 echo "configure:5958: checking for WM_COMMAND option" >&5;
5958 if test "$with_wmcommand" != "no"; then
5959 { test "$extra_verbose" = "yes" && cat << \EOF
5960 Defining HAVE_WMCOMMAND
5962 cat >> confdefs.h <<\EOF
5963 #define HAVE_WMCOMMAND 1
5969 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5970 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5971 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5972 echo "configure:5973: checking for X11/Xauth.h" >&5
5974 cat > conftest.$ac_ext <<EOF
5975 #line 5976 "configure"
5976 #include "confdefs.h"
5977 #include <X11/Xauth.h>
5979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5980 { (eval echo configure:5981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5981 ac_err=`grep -v '^ *+' conftest.out`
5982 if test -z "$ac_err"; then
5984 eval "ac_cv_header_$ac_safe=yes"
5987 echo "configure: failed program was:" >&5
5988 cat conftest.$ac_ext >&5
5990 eval "ac_cv_header_$ac_safe=no"
5993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5994 echo "$ac_t""yes" 1>&6
5997 echo "$ac_t""no" 1>&6
6001 test -z "$with_xauth" && {
6002 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6003 echo "configure:6004: checking for XauGetAuthByAddr in -lXau" >&5
6004 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6006 xe_check_libs=" -lXau "
6007 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6010 /* Override any gcc2 internal prototype to avoid an error. */
6011 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */
6013 char XauGetAuthByAddr();
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6021 eval "ac_cv_lib_$ac_lib_var=yes"
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6026 eval "ac_cv_lib_$ac_lib_var=no"
6031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6032 echo "$ac_t""yes" 1>&6
6035 echo "$ac_t""no" 1>&6
6040 test -z "$with_xauth" && with_xauth=yes
6041 if test "$with_xauth" = "yes"; then
6042 { test "$extra_verbose" = "yes" && cat << \EOF
6045 cat >> confdefs.h <<\EOF
6046 #define HAVE_XAUTH 1
6052 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
6060 if test "$with_tooltalk" != "no" ; then
6061 for dir in "" "Tt/" "desktop/" ; do
6062 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6063 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6064 echo "configure:6065: checking for ${dir}tt_c.h" >&5
6066 cat > conftest.$ac_ext <<EOF
6067 #line 6068 "configure"
6068 #include "confdefs.h"
6069 #include <${dir}tt_c.h>
6071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6072 { (eval echo configure:6073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6073 ac_err=`grep -v '^ *+' conftest.out`
6074 if test -z "$ac_err"; then
6076 eval "ac_cv_header_$ac_safe=yes"
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6082 eval "ac_cv_header_$ac_safe=no"
6085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6086 echo "$ac_t""yes" 1>&6
6087 tt_c_h_path="${dir}tt_c.h"; break
6089 echo "$ac_t""no" 1>&6
6093 if test -z "$tt_c_h_path"; then
6094 if test "$with_tooltalk" = "yes"; then
6095 (echo "$progname: Usage error:"
6096 echo " " "Unable to find required tooltalk header files."
6097 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6102 if test "$with_tooltalk" != "no" ; then
6103 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6105 xe_msg_checking="for tt_message_create in -ltt"
6106 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6107 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6108 echo "configure:6109: checking "$xe_msg_checking"" >&5
6109 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6111 xe_check_libs=" -ltt $extra_libs"
6112 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6115 /* Override any gcc2 internal prototype to avoid an error. */
6116 /* We use char because int might match the return type of a gcc2
6117 builtin and then its argument prototype would still apply. */
6118 char tt_message_create();
6124 if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6126 eval "ac_cv_lib_$ac_lib_var=yes"
6128 echo "configure: failed program was:" >&5
6129 cat conftest.$ac_ext >&5
6131 eval "ac_cv_lib_$ac_lib_var=no"
6136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6137 echo "$ac_t""yes" 1>&6
6138 tt_libs="-ltt $extra_libs"; break
6140 echo "$ac_t""no" 1>&6
6146 if test -z "$tt_libs"; then
6147 if test "$with_tooltalk" = "yes"; then
6148 (echo "$progname: Usage error:"
6149 echo " " "Unable to find required tooltalk libraries."
6150 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6155 test -z "$with_tooltalk" && with_tooltalk=yes
6156 if test "$with_tooltalk" = "yes"; then
6157 { test "$extra_verbose" = "yes" && cat << \EOF
6160 cat >> confdefs.h <<\EOF
6165 { test "$extra_verbose" = "yes" && cat << EOF
6166 Defining TT_C_H_PATH = "$tt_c_h_path"
6168 cat >> confdefs.h <<EOF
6169 #define TT_C_H_PATH "$tt_c_h_path"
6173 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6174 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6175 echo " xemacs will be linked with \"tooltalk.o\""
6179 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6180 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6181 echo "configure:6182: checking for Dt/Dt.h" >&5
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6189 { (eval echo configure:6190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6190 ac_err=`grep -v '^ *+' conftest.out`
6191 if test -z "$ac_err"; then
6193 eval "ac_cv_header_$ac_safe=yes"
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 eval "ac_cv_header_$ac_safe=no"
6202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6206 echo "$ac_t""no" 1>&6
6210 test -z "$with_cde" && {
6211 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6212 echo "configure:6213: checking for DtDndDragStart in -lDtSvc" >&5
6213 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6215 xe_check_libs=" -lDtSvc "
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6222 char DtDndDragStart();
6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6230 eval "ac_cv_lib_$ac_lib_var=yes"
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6235 eval "ac_cv_lib_$ac_lib_var=no"
6240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6241 echo "$ac_t""yes" 1>&6
6244 echo "$ac_t""no" 1>&6
6249 test -z "$with_cde" && with_cde=yes
6250 if test "$with_dragndrop" = no; then
6251 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6254 if test "$with_cde" = "yes" ; then
6255 { test "$extra_verbose" = "yes" && cat << \EOF
6258 cat >> confdefs.h <<\EOF
6263 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6264 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6265 with_tooltalk=yes # CDE requires Tooltalk
6266 need_motif=yes # CDE requires Motif
6269 test "$window_system" != "x11" && with_offix=no
6270 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6271 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6274 if test "$with_dragndrop" = no; then
6275 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6278 if test "$with_cde" = yes; then
6279 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6282 test -z "$with_offix" && with_offix=no
6283 if test "$with_offix" = "yes"; then
6284 { test "$extra_verbose" = "yes" && cat << \EOF
6285 Defining HAVE_OFFIX_DND
6287 cat >> confdefs.h <<\EOF
6288 #define HAVE_OFFIX_DND 1
6292 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6293 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6296 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6297 echo "configure:6298: checking if drag and drop API is needed" >&5
6298 if test "$with_dragndrop" != "no" ; then
6299 if test -n "$dragndrop_proto" ; then
6301 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6302 { test "$extra_verbose" = "yes" && cat << \EOF
6303 Defining HAVE_DRAGNDROP
6305 cat >> confdefs.h <<\EOF
6306 #define HAVE_DRAGNDROP 1
6310 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6313 echo "$ac_t""no" 1>&6
6317 echo "checking for LDAP" 1>&6
6318 echo "configure:6319: checking for LDAP" >&5
6319 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6320 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6321 echo "configure:6322: checking for ldap.h" >&5
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6329 { (eval echo configure:6330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6330 ac_err=`grep -v '^ *+' conftest.out`
6331 if test -z "$ac_err"; then
6333 eval "ac_cv_header_$ac_safe=yes"
6336 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6339 eval "ac_cv_header_$ac_safe=no"
6342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6343 echo "$ac_t""yes" 1>&6
6346 echo "$ac_t""no" 1>&6
6350 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6351 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6352 echo "configure:6353: checking for lber.h" >&5
6354 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6360 { (eval echo configure:6361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6361 ac_err=`grep -v '^ *+' conftest.out`
6362 if test -z "$ac_err"; then
6364 eval "ac_cv_header_$ac_safe=yes"
6367 echo "configure: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6370 eval "ac_cv_header_$ac_safe=no"
6373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6374 echo "$ac_t""yes" 1>&6
6377 echo "$ac_t""no" 1>&6
6381 if test "$with_ldap" != "no"; then
6383 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6384 echo "configure:6385: checking for ldap_search in -lldap" >&5
6385 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6387 xe_check_libs=" -lldap "
6388 cat > conftest.$ac_ext <<EOF
6389 #line 6390 "configure"
6390 #include "confdefs.h"
6391 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6400 if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6402 eval "ac_cv_lib_$ac_lib_var=yes"
6404 echo "configure: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6407 eval "ac_cv_lib_$ac_lib_var=no"
6412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6413 echo "$ac_t""yes" 1>&6
6414 with_ldap_nolber=yes
6416 echo "$ac_t""no" 1>&6
6421 test "$with_ldap_nolber" = "no" && {
6422 xe_msg_checking="for ldap_open in -lldap"
6423 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6424 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6425 echo "configure:6426: checking "$xe_msg_checking"" >&5
6426 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6428 xe_check_libs=" -lldap -llber"
6429 cat > conftest.$ac_ext <<EOF
6430 #line 6431 "configure"
6431 #include "confdefs.h"
6432 /* Override any gcc2 internal prototype to avoid an error. */
6433 /* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6441 if { (eval echo configure:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6443 eval "ac_cv_lib_$ac_lib_var=yes"
6445 echo "configure: failed program was:" >&5
6446 cat conftest.$ac_ext >&5
6448 eval "ac_cv_lib_$ac_lib_var=no"
6453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6454 echo "$ac_t""yes" 1>&6
6457 echo "$ac_t""no" 1>&6
6462 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" \) && with_ldap=yes
6464 if test "$with_ldap" = "yes"; then
6465 { test "$extra_verbose" = "yes" && cat << \EOF
6468 cat >> confdefs.h <<\EOF
6473 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6474 echo " xemacs will be linked with \"eldap.o\""
6476 if test "$with_ldap_nolber" = "yes" ; then
6477 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6479 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6480 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6482 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6485 echo "configure:6486: checking for $ac_func" >&5
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 /* System header to define __stub macros and hopefully few prototypes,
6491 which can conflict with char $ac_func(); below. */
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 /* We use char because int might match the return type of a gcc2
6495 builtin and then its argument prototype would still apply. */
6500 /* The GNU C library defines this for functions which it implements
6501 to always fail with ENOSYS. Some functions are actually named
6502 something starting with __ and the normal name is an alias. */
6503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6511 if { (eval echo configure:6512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6513 eval "ac_cv_func_$ac_func=yes"
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 eval "ac_cv_func_$ac_func=no"
6522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6523 echo "$ac_t""yes" 1>&6
6524 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6525 { test "$extra_verbose" = "yes" && cat << EOF
6526 Defining $ac_tr_func
6528 cat >> confdefs.h <<EOF
6529 #define $ac_tr_func 1
6534 echo "$ac_t""no" 1>&6
6541 if test "$window_system" != "none"; then
6542 echo "checking for graphics libraries" 1>&6
6543 echo "configure:6544: checking for graphics libraries" >&5
6546 if test -z "$with_xpm"; then
6547 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6548 echo "configure:6549: checking for Xpm - no older than 3.4f" >&5
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6553 #include <X11/xpm.h>
6554 int main(int c, char **v) {
6556 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6557 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6561 ./conftest dummy_arg; xpm_status=$?;
6562 if test "$xpm_status" = "0"; then
6566 if test "$xpm_status" = "1"; then
6567 xpm_problem="Xpm library version and header file version don't match!"
6568 elif test "$xpm_status" = "2"; then
6569 xpm_problem="Xpm library version is too old!"
6571 xpm_problem="Internal xpm detection logic error!"
6574 *** WARNING *** $xpm_problem
6575 I'm not touching that with a 10-foot pole!
6576 If you really want to use the installed version of Xpm, rerun
6577 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6581 echo "configure: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6588 echo "$ac_t""$with_xpm" 1>&6
6590 if test "$with_xpm" = "yes"; then
6591 { test "$extra_verbose" = "yes" && cat << \EOF
6594 cat >> confdefs.h <<\EOF
6599 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6600 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6601 echo "configure:6602: checking for \"FOR_MSW\" xpm" >&5
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6608 XpmCreatePixmapFromData()
6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6615 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6622 echo "$ac_t""$xpm_for_msw" 1>&6
6623 if test "$xpm_for_msw" = "yes"; then
6624 { test "$extra_verbose" = "yes" && cat << \EOF
6627 cat >> confdefs.h <<\EOF
6635 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6636 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6637 echo "configure:6638: checking for compface.h" >&5
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6642 #include <compface.h>
6644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6645 { (eval echo configure:6646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6646 ac_err=`grep -v '^ *+' conftest.out`
6647 if test -z "$ac_err"; then
6649 eval "ac_cv_header_$ac_safe=yes"
6652 echo "configure: failed program was:" >&5
6653 cat conftest.$ac_ext >&5
6655 eval "ac_cv_header_$ac_safe=no"
6658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6662 echo "$ac_t""no" 1>&6
6666 test -z "$with_xface" && {
6667 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6668 echo "configure:6669: checking for UnGenFace in -lcompface" >&5
6669 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6671 xe_check_libs=" -lcompface "
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6684 if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6686 eval "ac_cv_lib_$ac_lib_var=yes"
6688 echo "configure: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6691 eval "ac_cv_lib_$ac_lib_var=no"
6696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6697 echo "$ac_t""yes" 1>&6
6700 echo "$ac_t""no" 1>&6
6705 test -z "$with_xface" && with_xface=yes
6706 if test "$with_xface" = "yes"; then
6707 { test "$extra_verbose" = "yes" && cat << \EOF
6710 cat >> confdefs.h <<\EOF
6711 #define HAVE_XFACE 1
6715 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6718 if test "$with_gif" != "no"; then
6720 { test "$extra_verbose" = "yes" && cat << \EOF
6723 cat >> confdefs.h <<\EOF
6728 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6729 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6733 if test "$with_png $with_tiff" != "no no"; then
6735 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6736 echo "configure:6737: checking for inflate in -lc" >&5
6737 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6739 xe_check_libs=" -lc "
6740 cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 /* Override any gcc2 internal prototype to avoid an error. */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6752 if { (eval echo configure:6753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6754 eval "ac_cv_lib_$ac_lib_var=yes"
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 eval "ac_cv_lib_$ac_lib_var=no"
6764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6765 echo "$ac_t""yes" 1>&6
6768 echo "$ac_t""no" 1>&6
6770 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6771 echo "configure:6772: checking for inflate in -lz" >&5
6772 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6774 xe_check_libs=" -lz "
6775 cat > conftest.$ac_ext <<EOF
6776 #line 6777 "configure"
6777 #include "confdefs.h"
6778 /* Override any gcc2 internal prototype to avoid an error. */
6779 /* We use char because int might match the return type of a gcc2
6780 builtin and then its argument prototype would still apply. */
6787 if { (eval echo configure:6788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6789 eval "ac_cv_lib_$ac_lib_var=yes"
6791 echo "configure: failed program was:" >&5
6792 cat conftest.$ac_ext >&5
6794 eval "ac_cv_lib_$ac_lib_var=no"
6799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6800 echo "$ac_t""yes" 1>&6
6801 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6803 echo "$ac_t""no" 1>&6
6805 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6806 echo "configure:6807: checking for inflate in -lgz" >&5
6807 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6809 xe_check_libs=" -lgz "
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* Override any gcc2 internal prototype to avoid an error. */
6814 /* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6824 eval "ac_cv_lib_$ac_lib_var=yes"
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6829 eval "ac_cv_lib_$ac_lib_var=no"
6834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6835 echo "$ac_t""yes" 1>&6
6836 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
6838 echo "$ac_t""no" 1>&6
6850 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6851 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6852 echo "configure:6853: checking for jpeglib.h" >&5
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 #include <jpeglib.h>
6859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6860 { (eval echo configure:6861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6861 ac_err=`grep -v '^ *+' conftest.out`
6862 if test -z "$ac_err"; then
6864 eval "ac_cv_header_$ac_safe=yes"
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 eval "ac_cv_header_$ac_safe=no"
6873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6874 echo "$ac_t""yes" 1>&6
6877 echo "$ac_t""no" 1>&6
6881 test -z "$with_jpeg" && {
6882 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6883 echo "configure:6884: checking for jpeg_destroy_decompress in -ljpeg" >&5
6884 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6886 xe_check_libs=" -ljpeg "
6887 cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6890 /* Override any gcc2 internal prototype to avoid an error. */
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6893 char jpeg_destroy_decompress();
6896 jpeg_destroy_decompress()
6899 if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6901 eval "ac_cv_lib_$ac_lib_var=yes"
6903 echo "configure: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6906 eval "ac_cv_lib_$ac_lib_var=no"
6911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6912 echo "$ac_t""yes" 1>&6
6915 echo "$ac_t""no" 1>&6
6920 test -z "$with_jpeg" && with_jpeg=yes
6921 if test "$with_jpeg" = "yes"; then
6922 { test "$extra_verbose" = "yes" && cat << \EOF
6925 cat >> confdefs.h <<\EOF
6930 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6934 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6935 echo "configure:6936: checking for pow" >&5
6937 cat > conftest.$ac_ext <<EOF
6938 #line 6939 "configure"
6939 #include "confdefs.h"
6940 /* System header to define __stub macros and hopefully few prototypes,
6941 which can conflict with char pow(); below. */
6943 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6950 /* The GNU C library defines this for functions which it implements
6951 to always fail with ENOSYS. Some functions are actually named
6952 something starting with __ and the normal name is an alias. */
6953 #if defined (__stub_pow) || defined (__stub___pow)
6961 if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6963 eval "ac_cv_func_pow=yes"
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6968 eval "ac_cv_func_pow=no"
6972 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
6973 echo "$ac_t""yes" 1>&6
6976 echo "$ac_t""no" 1>&6
6980 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6981 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6982 echo "configure:6983: checking for png.h" >&5
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6990 { (eval echo configure:6991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6991 ac_err=`grep -v '^ *+' conftest.out`
6992 if test -z "$ac_err"; then
6994 eval "ac_cv_header_$ac_safe=yes"
6997 echo "configure: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
7000 eval "ac_cv_header_$ac_safe=no"
7003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7004 echo "$ac_t""yes" 1>&6
7007 echo "$ac_t""no" 1>&6
7011 test -z "$with_png" && {
7012 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7013 echo "configure:7014: checking for png_read_image in -lpng" >&5
7014 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7016 xe_check_libs=" -lpng "
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 /* Override any gcc2 internal prototype to avoid an error. */
7021 /* We use char because int might match the return type of a gcc2
7022 builtin and then its argument prototype would still apply. */
7023 char png_read_image();
7029 if { (eval echo configure:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7031 eval "ac_cv_lib_$ac_lib_var=yes"
7033 echo "configure: failed program was:" >&5
7034 cat conftest.$ac_ext >&5
7036 eval "ac_cv_lib_$ac_lib_var=no"
7041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7042 echo "$ac_t""yes" 1>&6
7045 echo "$ac_t""no" 1>&6
7050 if test -z "$with_png"; then
7051 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7052 echo "configure:7053: checking for workable png version information" >&5
7053 xe_check_libs="-lpng -lz"
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7058 int main(int c, char **v) {
7059 if (c == 1) return 0;
7060 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7061 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7065 ./conftest dummy_arg; png_status=$?;
7066 if test "$png_status" = "0"; then
7070 if test "$png_status" = "1"; then
7071 png_problem="PNG library version and header file don't match!"
7072 elif test "$png_status" = "2"; then
7073 png_problem="PNG library version too old (pre 1.0.2)!"
7076 *** WARNING *** $png_problem
7077 I'm not touching that with a 10-foot pole!
7078 If you really want to use the installed version of libPNG, rerun
7079 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7083 echo "configure: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7090 echo "$ac_t""$with_png" 1>&6
7092 if test "$with_png" = "yes"; then
7093 { test "$extra_verbose" = "yes" && cat << \EOF
7096 cat >> confdefs.h <<\EOF
7101 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7104 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7105 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7106 echo "configure:7107: checking for tiffio.h" >&5
7108 cat > conftest.$ac_ext <<EOF
7109 #line 7110 "configure"
7110 #include "confdefs.h"
7113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7114 { (eval echo configure:7115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7115 ac_err=`grep -v '^ *+' conftest.out`
7116 if test -z "$ac_err"; then
7118 eval "ac_cv_header_$ac_safe=yes"
7121 echo "configure: failed program was:" >&5
7122 cat conftest.$ac_ext >&5
7124 eval "ac_cv_header_$ac_safe=no"
7127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7128 echo "$ac_t""yes" 1>&6
7131 echo "$ac_t""no" 1>&6
7135 test -z "$with_tiff" && {
7136 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7137 echo "configure:7138: checking for TIFFClientOpen in -ltiff" >&5
7138 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7140 xe_check_libs=" -ltiff "
7141 cat > conftest.$ac_ext <<EOF
7142 #line 7143 "configure"
7143 #include "confdefs.h"
7144 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7147 char TIFFClientOpen();
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7155 eval "ac_cv_lib_$ac_lib_var=yes"
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 eval "ac_cv_lib_$ac_lib_var=no"
7165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7166 echo "$ac_t""yes" 1>&6
7169 echo "$ac_t""no" 1>&6
7174 test -z "$with_tiff" && with_tiff=yes
7175 if test "$with_tiff" = "yes"; then
7176 { test "$extra_verbose" = "yes" && cat << \EOF
7179 cat >> confdefs.h <<\EOF
7184 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7189 if test "$with_x11" = "yes"; then
7191 echo "checking for X11 graphics libraries" 1>&6
7192 echo "configure:7193: checking for X11 graphics libraries" >&5
7195 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7196 echo "configure:7197: checking for XawScrollbarSetThumb in -lXaw" >&5
7197 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7199 xe_check_libs=" -lXaw "
7200 cat > conftest.$ac_ext <<EOF
7201 #line 7202 "configure"
7202 #include "confdefs.h"
7203 /* Override any gcc2 internal prototype to avoid an error. */
7204 /* We use char because int might match the return type of a gcc2
7205 builtin and then its argument prototype would still apply. */
7206 char XawScrollbarSetThumb();
7209 XawScrollbarSetThumb()
7212 if { (eval echo configure:7213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7214 eval "ac_cv_lib_$ac_lib_var=yes"
7216 echo "configure: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7219 eval "ac_cv_lib_$ac_lib_var=no"
7224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7225 echo "$ac_t""yes" 1>&6
7228 echo "$ac_t""no" 1>&6
7234 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7235 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7236 echo "configure:7237: checking for Xm/Xm.h" >&5
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7244 { (eval echo configure:7245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7245 ac_err=`grep -v '^ *+' conftest.out`
7246 if test -z "$ac_err"; then
7248 eval "ac_cv_header_$ac_safe=yes"
7251 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7254 eval "ac_cv_header_$ac_safe=no"
7257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7258 echo "$ac_t""yes" 1>&6
7260 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7261 echo "configure:7262: checking for XmStringFree in -lXm" >&5
7262 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7264 xe_check_libs=" -lXm "
7265 cat > conftest.$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7268 /* Override any gcc2 internal prototype to avoid an error. */
7269 /* We use char because int might match the return type of a gcc2
7270 builtin and then its argument prototype would still apply. */
7271 char XmStringFree();
7277 if { (eval echo configure:7278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7279 eval "ac_cv_lib_$ac_lib_var=yes"
7281 echo "configure: failed program was:" >&5
7282 cat conftest.$ac_ext >&5
7284 eval "ac_cv_lib_$ac_lib_var=no"
7289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7290 echo "$ac_t""yes" 1>&6
7293 echo "$ac_t""no" 1>&6
7299 echo "$ac_t""no" 1>&6
7304 if test "$have_motif" = "yes"; then
7305 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7306 echo "configure:7307: checking for Lesstif" >&5
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7311 #ifdef LESSTIF_VERSION
7316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7317 egrep "yes" >/dev/null 2>&1; then
7326 echo "$ac_t""$have_lesstif" 1>&6
7331 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7332 with_menubars="lucid" ;;
7334 case "$with_dialogs" in "" | "yes" | "lucid" )
7335 if test "$have_motif" = "yes"; then with_dialogs="motif"
7336 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7337 else with_dialogs=no
7340 case "$with_scrollbars" in "" | "yes" )
7341 with_scrollbars="lucid" ;;
7344 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
7346 case "$all_widgets" in *athena* )
7347 { test "$extra_verbose" = "yes" && cat << \EOF
7348 Defining LWLIB_USES_ATHENA
7350 cat >> confdefs.h <<\EOF
7351 #define LWLIB_USES_ATHENA 1
7355 { test "$extra_verbose" = "yes" && cat << \EOF
7356 Defining NEED_ATHENA
7358 cat >> confdefs.h <<\EOF
7359 #define NEED_ATHENA 1
7363 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7364 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7367 case "$all_widgets" in *motif* )
7368 { test "$extra_verbose" = "yes" && cat << \EOF
7369 Defining LWLIB_USES_MOTIF
7371 cat >> confdefs.h <<\EOF
7372 #define LWLIB_USES_MOTIF 1
7376 { test "$extra_verbose" = "yes" && cat << \EOF
7379 cat >> confdefs.h <<\EOF
7380 #define NEED_MOTIF 1
7384 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7388 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7389 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7390 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7391 case "$all_widgets" in *lucid* )
7392 { test "$extra_verbose" = "yes" && cat << \EOF
7395 cat >> confdefs.h <<\EOF
7396 #define NEED_LUCID 1
7400 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7405 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7406 Defining LWLIB_SCROLLBARS_ATHENA
7408 cat >> confdefs.h <<\EOF
7409 #define LWLIB_SCROLLBARS_ATHENA 1
7413 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7414 Defining LWLIB_DIALOGS_ATHENA
7416 cat >> confdefs.h <<\EOF
7417 #define LWLIB_DIALOGS_ATHENA 1
7421 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7422 Defining LWLIB_SCROLLBARS_ATHENA3D
7424 cat >> confdefs.h <<\EOF
7425 #define LWLIB_SCROLLBARS_ATHENA3D 1
7429 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7430 Defining LWLIB_DIALOGS_ATHENA3D
7432 cat >> confdefs.h <<\EOF
7433 #define LWLIB_DIALOGS_ATHENA3D 1
7438 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7439 Defining HAVE_MENUBARS
7441 cat >> confdefs.h <<\EOF
7442 #define HAVE_MENUBARS 1
7446 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7447 Defining HAVE_SCROLLBARS
7449 cat >> confdefs.h <<\EOF
7450 #define HAVE_SCROLLBARS 1
7454 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7455 Defining HAVE_DIALOGS
7457 cat >> confdefs.h <<\EOF
7458 #define HAVE_DIALOGS 1
7462 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7463 Defining HAVE_TOOLBARS
7465 cat >> confdefs.h <<\EOF
7466 #define HAVE_TOOLBARS 1
7471 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7472 Defining LWLIB_MENUBARS_LUCID
7474 cat >> confdefs.h <<\EOF
7475 #define LWLIB_MENUBARS_LUCID 1
7479 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7480 Defining LWLIB_SCROLLBARS_LUCID
7482 cat >> confdefs.h <<\EOF
7483 #define LWLIB_SCROLLBARS_LUCID 1
7488 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7489 Defining LWLIB_MENUBARS_MOTIF
7491 cat >> confdefs.h <<\EOF
7492 #define LWLIB_MENUBARS_MOTIF 1
7496 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7497 Defining LWLIB_SCROLLBARS_MOTIF
7499 cat >> confdefs.h <<\EOF
7500 #define LWLIB_SCROLLBARS_MOTIF 1
7504 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7505 Defining LWLIB_DIALOGS_MOTIF
7507 cat >> confdefs.h <<\EOF
7508 #define LWLIB_DIALOGS_MOTIF 1
7513 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7514 echo " xemacs will be linked with \"menubar.o\""
7516 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7517 echo " xemacs will be linked with \"scrollbar.o\""
7519 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7520 echo " xemacs will be linked with \"dialog.o\""
7522 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7523 echo " xemacs will be linked with \"toolbar.o\""
7526 if test "$with_x11" = "yes"; then
7527 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7528 echo " xemacs will be linked with \"menubar-x.o\""
7530 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7531 echo " xemacs will be linked with \"scrollbar-x.o\""
7533 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7534 echo " xemacs will be linked with \"dialog-x.o\""
7536 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7537 echo " xemacs will be linked with \"toolbar-x.o\""
7539 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7540 echo " xemacs will be linked with \"gui-x.o\""
7543 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7544 echo "Attempt to Build NAS sound without X"
7545 echo "Please remove NAS configuration or build with X"
7551 test -z "$with_mule" && with_mule=no
7552 test -z "$with_file_coding" && with_file_coding=no
7555 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7556 { test "$extra_verbose" = "yes" && cat << \EOF
7557 Defining FILE_CODING
7559 cat >> confdefs.h <<\EOF
7560 #define FILE_CODING 1
7564 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7565 echo " xemacs will be linked with \"file-coding.o\""
7569 if test "$with_mule" = "yes" ; then
7570 echo "checking for Mule-related features" 1>&6
7571 echo "configure:7572: checking for Mule-related features" >&5
7572 { test "$extra_verbose" = "yes" && cat << \EOF
7575 cat >> confdefs.h <<\EOF
7580 { test "$extra_verbose" = "yes" && cat << \EOF
7581 Defining FILE_CODING
7583 cat >> confdefs.h <<\EOF
7584 #define FILE_CODING 1
7588 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7589 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7592 for ac_hdr in libintl.h
7594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7596 echo "configure:7597: checking for $ac_hdr" >&5
7598 cat > conftest.$ac_ext <<EOF
7599 #line 7600 "configure"
7600 #include "confdefs.h"
7603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7604 { (eval echo configure:7605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7605 ac_err=`grep -v '^ *+' conftest.out`
7606 if test -z "$ac_err"; then
7608 eval "ac_cv_header_$ac_safe=yes"
7611 echo "configure: failed program was:" >&5
7612 cat conftest.$ac_ext >&5
7614 eval "ac_cv_header_$ac_safe=no"
7617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7618 echo "$ac_t""yes" 1>&6
7619 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7620 { test "$extra_verbose" = "yes" && cat << EOF
7623 cat >> confdefs.h <<EOF
7624 #define $ac_tr_hdr 1
7629 echo "$ac_t""no" 1>&6
7634 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7635 echo "configure:7636: checking for strerror in -lintl" >&5
7636 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7638 xe_check_libs=" -lintl "
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7642 /* Override any gcc2 internal prototype to avoid an error. */
7643 /* We use char because int might match the return type of a gcc2
7644 builtin and then its argument prototype would still apply. */
7651 if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7653 eval "ac_cv_lib_$ac_lib_var=yes"
7655 echo "configure: failed program was:" >&5
7656 cat conftest.$ac_ext >&5
7658 eval "ac_cv_lib_$ac_lib_var=no"
7663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7664 echo "$ac_t""yes" 1>&6
7665 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7666 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7667 { test "$extra_verbose" = "yes" && cat << EOF
7670 cat >> confdefs.h <<EOF
7671 #define $ac_tr_lib 1
7675 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7678 echo "$ac_t""no" 1>&6
7683 echo "checking for Mule input methods" 1>&6
7684 echo "configure:7685: checking for Mule input methods" >&5
7685 case "$with_xim" in "" | "yes" )
7686 echo "checking for XIM" 1>&6
7687 echo "configure:7688: checking for XIM" >&5
7689 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7690 echo "configure:7691: checking for XOpenIM in -lX11" >&5
7691 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7693 xe_check_libs=" -lX11 "
7694 cat > conftest.$ac_ext <<EOF
7695 #line 7696 "configure"
7696 #include "confdefs.h"
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7706 if { (eval echo configure:7707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7708 eval "ac_cv_lib_$ac_lib_var=yes"
7710 echo "configure: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7713 eval "ac_cv_lib_$ac_lib_var=no"
7718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7719 echo "$ac_t""yes" 1>&6
7722 echo "$ac_t""no" 1>&6
7727 if test "$have_motif $have_lesstif" = "yes no"; then
7729 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7730 echo "configure:7731: checking for XmImMbLookupString in -lXm" >&5
7731 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7733 xe_check_libs=" -lXm "
7734 cat > conftest.$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7737 /* Override any gcc2 internal prototype to avoid an error. */
7738 /* We use char because int might match the return type of a gcc2
7739 builtin and then its argument prototype would still apply. */
7740 char XmImMbLookupString();
7743 XmImMbLookupString()
7746 if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7748 eval "ac_cv_lib_$ac_lib_var=yes"
7750 echo "configure: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7753 eval "ac_cv_lib_$ac_lib_var=no"
7758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7759 echo "$ac_t""yes" 1>&6
7762 echo "$ac_t""no" 1>&6
7768 if test "$with_xim" != "no"; then
7769 { test "$extra_verbose" = "yes" && cat << \EOF
7772 cat >> confdefs.h <<\EOF
7777 if test "$with_xim" = "xlib"; then
7778 { test "$extra_verbose" = "yes" && cat << \EOF
7781 cat >> confdefs.h <<\EOF
7786 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7787 echo " xemacs will be linked with \"input-method-xlib.o\""
7790 if test "$with_xim" = "motif"; then
7791 { test "$extra_verbose" = "yes" && cat << \EOF
7794 cat >> confdefs.h <<\EOF
7800 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
7801 echo " xemacs will be linked with \"input-method-motif.o\""
7804 if test "$with_xim" = "motif"; then
7809 if test "$with_xfs" = "yes" ; then
7810 echo "checking for XFontSet" 1>&6
7811 echo "configure:7812: checking for XFontSet" >&5
7813 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7814 echo "configure:7815: checking for XmbDrawString in -lX11" >&5
7815 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7817 xe_check_libs=" -lX11 "
7818 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure"
7820 #include "confdefs.h"
7821 /* Override any gcc2 internal prototype to avoid an error. */
7822 /* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824 char XmbDrawString();
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7832 eval "ac_cv_lib_$ac_lib_var=yes"
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7837 eval "ac_cv_lib_$ac_lib_var=no"
7842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7843 echo "$ac_t""yes" 1>&6
7846 echo "$ac_t""no" 1>&6
7851 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
7852 { test "$extra_verbose" = "yes" && cat << \EOF
7853 Defining USE_XFONTSET
7855 cat >> confdefs.h <<\EOF
7856 #define USE_XFONTSET 1
7860 if test "$with_xim" = "no" ; then
7861 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
7862 echo " xemacs will be linked with \"input-method-xfs.o\""
7867 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7868 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7869 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7870 echo "configure:7871: checking for wnn/jllib.h" >&5
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7875 #include <wnn/jllib.h>
7877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7878 { (eval echo configure:7879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7879 ac_err=`grep -v '^ *+' conftest.out`
7880 if test -z "$ac_err"; then
7882 eval "ac_cv_header_$ac_safe=yes"
7885 echo "configure: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7888 eval "ac_cv_header_$ac_safe=no"
7891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7892 echo "$ac_t""yes" 1>&6
7895 echo "$ac_t""no" 1>&6
7899 if test "$with_wnn" != "no"; then
7900 for ac_func in crypt
7902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7903 echo "configure:7904: checking for $ac_func" >&5
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure"
7907 #include "confdefs.h"
7908 /* System header to define __stub macros and hopefully few prototypes,
7909 which can conflict with char $ac_func(); below. */
7911 /* Override any gcc2 internal prototype to avoid an error. */
7912 /* We use char because int might match the return type of a gcc2
7913 builtin and then its argument prototype would still apply. */
7918 /* The GNU C library defines this for functions which it implements
7919 to always fail with ENOSYS. Some functions are actually named
7920 something starting with __ and the normal name is an alias. */
7921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7929 if { (eval echo configure:7930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7931 eval "ac_cv_func_$ac_func=yes"
7933 echo "configure: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7936 eval "ac_cv_func_$ac_func=no"
7940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7941 echo "$ac_t""yes" 1>&6
7942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7943 { test "$extra_verbose" = "yes" && cat << EOF
7944 Defining $ac_tr_func
7946 cat >> confdefs.h <<EOF
7947 #define $ac_tr_func 1
7952 echo "$ac_t""no" 1>&6
7956 test "$ac_cv_func_crypt" != "yes" && {
7957 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7958 echo "configure:7959: checking for crypt in -lcrypt" >&5
7959 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7961 xe_check_libs=" -lcrypt "
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7965 /* Override any gcc2 internal prototype to avoid an error. */
7966 /* We use char because int might match the return type of a gcc2
7967 builtin and then its argument prototype would still apply. */
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7976 eval "ac_cv_lib_$ac_lib_var=yes"
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7981 eval "ac_cv_lib_$ac_lib_var=no"
7986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7987 echo "$ac_t""yes" 1>&6
7988 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7990 { test "$extra_verbose" = "yes" && cat << EOF
7993 cat >> confdefs.h <<EOF
7994 #define $ac_tr_lib 1
7998 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8001 echo "$ac_t""no" 1>&6
8006 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8008 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8009 echo "configure:8010: checking for jl_dic_list_e in -lwnn" >&5
8010 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8012 xe_check_libs=" -lwnn "
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* Override any gcc2 internal prototype to avoid an error. */
8017 /* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8019 char jl_dic_list_e();
8025 if { (eval echo configure:8026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8027 eval "ac_cv_lib_$ac_lib_var=yes"
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8032 eval "ac_cv_lib_$ac_lib_var=no"
8037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8038 echo "$ac_t""yes" 1>&6
8041 echo "$ac_t""no" 1>&6
8042 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8043 echo "configure:8044: checking for jl_dic_list_e in -lwnn4" >&5
8044 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8046 xe_check_libs=" -lwnn4 "
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8050 /* Override any gcc2 internal prototype to avoid an error. */
8051 /* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8053 char jl_dic_list_e();
8059 if { (eval echo configure:8060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8061 eval "ac_cv_lib_$ac_lib_var=yes"
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8066 eval "ac_cv_lib_$ac_lib_var=no"
8071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8072 echo "$ac_t""yes" 1>&6
8075 echo "$ac_t""no" 1>&6
8076 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8077 echo "configure:8078: checking for jl_dic_list_e in -lwnn6" >&5
8078 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8080 xe_check_libs=" -lwnn6 "
8081 cat > conftest.$ac_ext <<EOF
8082 #line 8083 "configure"
8083 #include "confdefs.h"
8084 /* Override any gcc2 internal prototype to avoid an error. */
8085 /* We use char because int might match the return type of a gcc2
8086 builtin and then its argument prototype would still apply. */
8087 char jl_dic_list_e();
8093 if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8095 eval "ac_cv_lib_$ac_lib_var=yes"
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8100 eval "ac_cv_lib_$ac_lib_var=no"
8105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8106 echo "$ac_t""yes" 1>&6
8109 echo "$ac_t""no" 1>&6
8110 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8111 echo "configure:8112: checking for dic_list_e in -lwnn6_fromsrc" >&5
8112 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8114 xe_check_libs=" -lwnn6_fromsrc "
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8118 /* Override any gcc2 internal prototype to avoid an error. */
8119 /* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8127 if { (eval echo configure:8128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8129 eval "ac_cv_lib_$ac_lib_var=yes"
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8134 eval "ac_cv_lib_$ac_lib_var=no"
8139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8140 echo "$ac_t""yes" 1>&6
8143 echo "$ac_t""no" 1>&6
8158 test -z "$with_wnn" && with_wnn=yes
8159 if test "$with_wnn" = "yes"; then
8160 { test "$extra_verbose" = "yes" && cat << \EOF
8163 cat >> confdefs.h <<\EOF
8168 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8169 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8170 echo " xemacs will be linked with \"mule-wnnfns.o\""
8172 if test "$with_wnn6" != "no"; then
8174 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8175 echo "configure:8176: checking for jl_fi_dic_list in -l$libwnn" >&5
8176 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8178 xe_check_libs=" -l$libwnn "
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 /* Override any gcc2 internal prototype to avoid an error. */
8183 /* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8185 char jl_fi_dic_list();
8191 if { (eval echo configure:8192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8193 eval "ac_cv_lib_$ac_lib_var=yes"
8195 echo "configure: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8198 eval "ac_cv_lib_$ac_lib_var=no"
8203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8204 echo "$ac_t""yes" 1>&6
8207 echo "$ac_t""no" 1>&6
8211 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8214 cat >> confdefs.h <<\EOF
8222 canna_includes_found=no
8223 if test "$with_canna" != "no"; then
8224 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8225 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8226 echo "configure:8227: checking for canna/jrkanji.h" >&5
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 #include <canna/jrkanji.h>
8233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8234 { (eval echo configure:8235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8235 ac_err=`grep -v '^ *+' conftest.out`
8236 if test -z "$ac_err"; then
8238 eval "ac_cv_header_$ac_safe=yes"
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8244 eval "ac_cv_header_$ac_safe=no"
8247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8248 echo "$ac_t""yes" 1>&6
8249 canna_includes_found=yes
8251 echo "$ac_t""no" 1>&6
8255 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8256 -d "/usr/local/canna/include"; then
8257 save_c_switch_site="$c_switch_site"
8258 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8259 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8260 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8261 echo "configure:8262: checking for canna/jrkanji.h" >&5
8263 cat > conftest.$ac_ext <<EOF
8264 #line 8265 "configure"
8265 #include "confdefs.h"
8266 #include <canna/jrkanji.h>
8268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8269 { (eval echo configure:8270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8270 ac_err=`grep -v '^ *+' conftest.out`
8271 if test -z "$ac_err"; then
8273 eval "ac_cv_header_$ac_safe=yes"
8276 echo "configure: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8279 eval "ac_cv_header_$ac_safe=no"
8282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8283 echo "$ac_t""yes" 1>&6
8284 canna_includes_found=yes
8286 echo "$ac_t""no" 1>&6
8289 if test "$canna_includes_found" != "yes"; then
8290 c_switch_site="$save_c_switch_site"
8295 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8296 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8297 echo "configure:8298: checking for canna/RK.h" >&5
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8302 #include <canna/RK.h>
8304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8305 { (eval echo configure:8306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8306 ac_err=`grep -v '^ *+' conftest.out`
8307 if test -z "$ac_err"; then
8309 eval "ac_cv_header_$ac_safe=yes"
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8315 eval "ac_cv_header_$ac_safe=no"
8318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8319 echo "$ac_t""yes" 1>&6
8322 echo "$ac_t""no" 1>&6
8326 test -z "$with_canna" && {
8327 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8328 echo "configure:8329: checking for RkBgnBun in -lRKC" >&5
8329 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8331 xe_check_libs=" -lRKC "
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 /* Override any gcc2 internal prototype to avoid an error. */
8336 /* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
8344 if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8346 eval "ac_cv_lib_$ac_lib_var=yes"
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8351 eval "ac_cv_lib_$ac_lib_var=no"
8356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8357 echo "$ac_t""yes" 1>&6
8360 echo "$ac_t""no" 1>&6
8365 test -z "$with_canna" && {
8366 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8367 echo "configure:8368: checking for jrKanjiControl in -lcanna" >&5
8368 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8370 xe_check_libs=" -lcanna "
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8374 /* Override any gcc2 internal prototype to avoid an error. */
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8377 char jrKanjiControl();
8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8385 eval "ac_cv_lib_$ac_lib_var=yes"
8387 echo "configure: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8390 eval "ac_cv_lib_$ac_lib_var=no"
8395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8396 echo "$ac_t""yes" 1>&6
8399 echo "$ac_t""no" 1>&6
8404 test -z "$with_canna" && with_canna=yes
8405 if test "$with_canna" = "yes"; then
8406 { test "$extra_verbose" = "yes" && cat << \EOF
8409 cat >> confdefs.h <<\EOF
8410 #define HAVE_CANNA 1
8414 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8415 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8416 echo " xemacs will be linked with \"mule-canna.o\""
8420 else for feature in xim canna wnn; do
8421 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8422 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8424 eval "with_${feature}=no"
8428 if test "$need_motif" = "yes" ; then
8429 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8431 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8432 echo "configure:8433: checking for layout_object_getvalue in -li18n" >&5
8433 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8435 xe_check_libs=" -li18n "
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8442 char layout_object_getvalue();
8445 layout_object_getvalue()
8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8450 eval "ac_cv_lib_$ac_lib_var=yes"
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8455 eval "ac_cv_lib_$ac_lib_var=no"
8460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8461 echo "$ac_t""yes" 1>&6
8462 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8464 echo "$ac_t""no" 1>&6
8469 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8470 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8471 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8473 runpath="" runpath_dirs=""
8474 if test -n "$LD_RUN_PATH"; then
8475 runpath="$LD_RUN_PATH"
8476 elif test "$GCC" = "yes"; then
8477 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8478 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8479 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8480 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8481 case "$arg" in P,* | -L* | -R* )
8482 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8484 xe_runpath_dir="$dir"
8485 test "$xe_runpath_dir" != "/lib" -a \
8486 "$xe_runpath_dir" != "/usr/lib" -a \
8487 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8488 eval "$xe_add_unique_runpath_dir"
8493 ld_switch_run="$ld_switch_run_save"
8496 for arg in $ld_switch_site $ld_switch_x_site; do
8497 case "$arg" in -L*) {
8498 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8499 test "$xe_runpath_dir" != "/lib" -a \
8500 "$xe_runpath_dir" != "/usr/lib" -a \
8501 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8502 eval "$xe_add_unique_runpath_dir"
8505 if test "$opsys $need_motif" = "sol2 yes"; then
8506 xe_runpath_dir="/opt/SUNWdt/lib";
8507 eval "$xe_add_unique_runpath_dir";
8510 if test -n "$runpath"; then
8511 ld_switch_run="${dash_r}${runpath}"
8513 if test "$GCC" = "yes"; then
8514 set x $ld_switch_run; shift; ld_switch_run=""
8515 while test -n "$1"; do
8517 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8518 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8520 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8525 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8531 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
8533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8534 echo "configure:8535: checking for $ac_func" >&5
8536 cat > conftest.$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8539 /* System header to define __stub macros and hopefully few prototypes,
8540 which can conflict with char $ac_func(); below. */
8542 /* Override any gcc2 internal prototype to avoid an error. */
8543 /* We use char because int might match the return type of a gcc2
8544 builtin and then its argument prototype would still apply. */
8549 /* The GNU C library defines this for functions which it implements
8550 to always fail with ENOSYS. Some functions are actually named
8551 something starting with __ and the normal name is an alias. */
8552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8560 if { (eval echo configure:8561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8562 eval "ac_cv_func_$ac_func=yes"
8564 echo "configure: failed program was:" >&5
8565 cat conftest.$ac_ext >&5
8567 eval "ac_cv_func_$ac_func=no"
8571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8572 echo "$ac_t""yes" 1>&6
8573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8574 { test "$extra_verbose" = "yes" && cat << EOF
8575 Defining $ac_tr_func
8577 cat >> confdefs.h <<EOF
8578 #define $ac_tr_func 1
8583 echo "$ac_t""no" 1>&6
8590 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8591 echo " xemacs will be linked with \"realpath.o\""
8594 case "$canonical" in
8595 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8596 echo " xemacs will be linked with \"realpath.o\""
8598 * ) for ac_func in realpath
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
8654 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8655 echo " xemacs will be linked with \"realpath.o\""
8660 for ac_func in getloadavg
8662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8663 echo "configure:8664: checking for $ac_func" >&5
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 /* System header to define __stub macros and hopefully few prototypes,
8669 which can conflict with char $ac_func(); below. */
8671 /* Override any gcc2 internal prototype to avoid an error. */
8672 /* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8678 /* The GNU C library defines this for functions which it implements
8679 to always fail with ENOSYS. Some functions are actually named
8680 something starting with __ and the normal name is an alias. */
8681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8689 if { (eval echo configure:8690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8691 eval "ac_cv_func_$ac_func=yes"
8693 echo "configure: failed program was:" >&5
8694 cat conftest.$ac_ext >&5
8696 eval "ac_cv_func_$ac_func=no"
8700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8701 echo "$ac_t""yes" 1>&6
8702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8703 { test "$extra_verbose" = "yes" && cat << EOF
8704 Defining $ac_tr_func
8706 cat >> confdefs.h <<EOF
8707 #define $ac_tr_func 1
8712 echo "$ac_t""no" 1>&6
8717 if test "$ac_cv_func_getloadavg" != "yes"
8719 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
8720 echo " xemacs will be linked with \"getloadavg.o\""
8724 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
8725 echo "configure:8726: checking for kstat_open in -lkstat" >&5
8726 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
8728 xe_check_libs=" -lkstat "
8729 cat > conftest.$ac_ext <<EOF
8730 #line 8731 "configure"
8731 #include "confdefs.h"
8732 /* Override any gcc2 internal prototype to avoid an error. */
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8741 if { (eval echo configure:8742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8743 eval "ac_cv_lib_$ac_lib_var=yes"
8745 echo "configure: failed program was:" >&5
8746 cat conftest.$ac_ext >&5
8748 eval "ac_cv_lib_$ac_lib_var=no"
8753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8754 echo "$ac_t""yes" 1>&6
8755 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8756 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8757 { test "$extra_verbose" = "yes" && cat << EOF
8760 cat >> confdefs.h <<EOF
8761 #define $ac_tr_lib 1
8765 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
8768 echo "$ac_t""no" 1>&6
8774 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
8775 echo "configure:8776: checking for kvm_read in -lkvm" >&5
8776 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
8778 xe_check_libs=" -lkvm "
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 /* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8791 if { (eval echo configure:8792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8793 eval "ac_cv_lib_$ac_lib_var=yes"
8795 echo "configure: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8798 eval "ac_cv_lib_$ac_lib_var=no"
8803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8804 echo "$ac_t""yes" 1>&6
8805 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8807 { test "$extra_verbose" = "yes" && cat << EOF
8810 cat >> confdefs.h <<EOF
8811 #define $ac_tr_lib 1
8815 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
8818 echo "$ac_t""no" 1>&6
8824 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8825 echo "configure:8826: checking whether netdb declares h_errno" >&5
8826 cat > conftest.$ac_ext <<EOF
8827 #line 8828 "configure"
8828 #include "confdefs.h"
8834 if { (eval echo configure:8835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8836 echo "$ac_t""yes" 1>&6
8837 { test "$extra_verbose" = "yes" && cat << \EOF
8838 Defining HAVE_H_ERRNO
8840 cat >> confdefs.h <<\EOF
8841 #define HAVE_H_ERRNO 1
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8849 echo "$ac_t""no" 1>&6
8853 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8854 echo "configure:8855: checking for sigsetjmp" >&5
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8860 sigjmp_buf bar; sigsetjmp (bar, 0);
8863 if { (eval echo configure:8864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8865 echo "$ac_t""yes" 1>&6
8866 { test "$extra_verbose" = "yes" && cat << \EOF
8867 Defining HAVE_SIGSETJMP
8869 cat >> confdefs.h <<\EOF
8870 #define HAVE_SIGSETJMP 1
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8878 echo "$ac_t""no" 1>&6
8882 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8883 echo "configure:8884: checking whether localtime caches TZ" >&5
8885 if test "$ac_cv_func_tzset" = "yes"; then
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8891 # include <stdlib.h>
8893 extern char **environ;
8897 for (to = from = environ; (*to = *from); from++)
8898 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
8901 char TZ_GMT0[] = "TZ=GMT0";
8902 char TZ_PST8[] = "TZ=PST8";
8905 time_t now = time ((time_t *) 0);
8906 int hour_GMT0, hour_unset;
8907 if (putenv (TZ_GMT0) != 0)
8909 hour_GMT0 = localtime (&now)->tm_hour;
8911 hour_unset = localtime (&now)->tm_hour;
8912 if (putenv (TZ_PST8) != 0)
8914 if (localtime (&now)->tm_hour == hour_GMT0)
8917 if (localtime (&now)->tm_hour != hour_unset)
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8924 emacs_cv_localtime_cache=no
8927 echo "configure: failed program was:" >&5
8928 cat conftest.$ac_ext >&5
8930 emacs_cv_localtime_cache=yes
8934 # If we lack tzset, report that localtime does not cache TZ,
8935 # since we can't invalidate the cache if we don't have tzset.
8936 emacs_cv_localtime_cache=no
8938 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
8939 if test $emacs_cv_localtime_cache = yes; then
8940 { test "$extra_verbose" = "yes" && cat << \EOF
8941 Defining LOCALTIME_CACHE
8943 cat >> confdefs.h <<\EOF
8944 #define LOCALTIME_CACHE 1
8950 if test "$HAVE_TIMEVAL" = "yes"; then
8951 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8952 echo "configure:8953: checking whether gettimeofday accepts one or two arguments" >&5
8953 cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8957 #ifdef TIME_WITH_SYS_TIME
8958 #include <sys/time.h>
8961 #ifdef HAVE_SYS_TIME_H
8962 #include <sys/time.h>
8970 struct timeval time;
8971 struct timezone dummy;
8972 gettimeofday (&time, &dummy);
8976 if { (eval echo configure:8977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8978 echo "$ac_t""two" 1>&6
8980 echo "configure: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8983 echo "$ac_t""one" 1>&6
8984 { test "$extra_verbose" = "yes" && cat << \EOF
8985 Defining GETTIMEOFDAY_ONE_ARGUMENT
8987 cat >> confdefs.h <<\EOF
8988 #define GETTIMEOFDAY_ONE_ARGUMENT 1
8997 echo $ac_n "checking for inline""... $ac_c" 1>&6
8998 echo "configure:8999: checking for inline" >&5
9001 for ac_kw in inline __inline__ __inline; do
9002 cat > conftest.$ac_ext <<EOF
9003 #line 9004 "configure"
9004 #include "confdefs.h"
9010 if { (eval echo configure:9011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9012 ac_cv_c_inline=$ac_kw; break
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9021 echo "$ac_t""$ac_cv_c_inline" 1>&6
9022 case "$ac_cv_c_inline" in
9024 no) { test "$extra_verbose" = "yes" && cat << \EOF
9027 cat >> confdefs.h <<\EOF
9032 *) { test "$extra_verbose" = "yes" && cat << EOF
9033 Defining inline = $ac_cv_c_inline
9035 cat >> confdefs.h <<EOF
9036 #define inline $ac_cv_c_inline
9042 if test "$ac_cv_c_inline" != "no"; then
9043 { test "$extra_verbose" = "yes" && cat << \EOF
9044 Defining HAVE_INLINE
9046 cat >> confdefs.h <<\EOF
9047 #define HAVE_INLINE 1
9051 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9052 echo " xemacs will be linked with \"inline.o\""
9057 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9058 # for constant arguments. Useless!
9059 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9060 echo "configure:9061: checking for working alloca.h" >&5
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9067 char *p = alloca(2 * sizeof(int));
9070 if { (eval echo configure:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9072 ac_cv_header_alloca_h=yes
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9077 ac_cv_header_alloca_h=no
9081 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9082 if test $ac_cv_header_alloca_h = yes; then
9083 { test "$extra_verbose" = "yes" && cat << \EOF
9084 Defining HAVE_ALLOCA_H
9086 cat >> confdefs.h <<\EOF
9087 #define HAVE_ALLOCA_H 1
9093 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9094 echo "configure:9095: checking for alloca" >&5
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9101 # define alloca __builtin_alloca
9104 # include <alloca.h>
9109 # ifndef alloca /* predefined by HP cc +Olibcalls */
9117 char *p = (char *) alloca(1);
9120 if { (eval echo configure:9121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9122 ac_cv_func_alloca_works=yes
9124 echo "configure: failed program was:" >&5
9125 cat conftest.$ac_ext >&5
9127 ac_cv_func_alloca_works=no
9131 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9132 if test $ac_cv_func_alloca_works = yes; then
9133 { test "$extra_verbose" = "yes" && cat << \EOF
9134 Defining HAVE_ALLOCA
9136 cat >> confdefs.h <<\EOF
9137 #define HAVE_ALLOCA 1
9143 if test $ac_cv_func_alloca_works = no; then
9144 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9145 # that cause trouble. Some versions do not even contain alloca or
9146 # contain a buggy version. If you still want to use their alloca,
9147 # use ar to extract alloca.o from them instead of compiling alloca.c.
9149 { test "$extra_verbose" = "yes" && cat << \EOF
9152 cat >> confdefs.h <<\EOF
9158 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9159 echo "configure:9160: checking whether alloca needs Cray hooks" >&5
9161 cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure"
9163 #include "confdefs.h"
9164 #if defined(CRAY) && ! defined(CRAY2)
9171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9172 egrep "webecray" >/dev/null 2>&1; then
9182 echo "$ac_t""$ac_cv_os_cray" 1>&6
9183 if test $ac_cv_os_cray = yes; then
9184 for ac_func in _getb67 GETB67 getb67; do
9185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9186 echo "configure:9187: checking for $ac_func" >&5
9188 cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure"
9190 #include "confdefs.h"
9191 /* System header to define __stub macros and hopefully few prototypes,
9192 which can conflict with char $ac_func(); below. */
9194 /* Override any gcc2 internal prototype to avoid an error. */
9195 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */
9201 /* The GNU C library defines this for functions which it implements
9202 to always fail with ENOSYS. Some functions are actually named
9203 something starting with __ and the normal name is an alias. */
9204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9212 if { (eval echo configure:9213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9214 eval "ac_cv_func_$ac_func=yes"
9216 echo "configure: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9219 eval "ac_cv_func_$ac_func=no"
9223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9224 echo "$ac_t""yes" 1>&6
9225 { test "$extra_verbose" = "yes" && cat << EOF
9226 Defining CRAY_STACKSEG_END = $ac_func
9228 cat >> confdefs.h <<EOF
9229 #define CRAY_STACKSEG_END $ac_func
9235 echo "$ac_t""no" 1>&6
9241 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9242 echo "configure:9243: checking stack direction for C alloca" >&5
9244 cat > conftest.$ac_ext <<EOF
9245 #line 9246 "configure"
9246 #include "confdefs.h"
9247 find_stack_direction ()
9249 static char *addr = 0;
9254 return find_stack_direction ();
9257 return (&dummy > addr) ? 1 : -1;
9261 exit (find_stack_direction() < 0);
9264 if { (eval echo configure:9265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9266 ac_cv_c_stack_direction=1
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9272 ac_cv_c_stack_direction=-1
9276 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9277 { test "$extra_verbose" = "yes" && cat << EOF
9278 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9280 cat >> confdefs.h <<EOF
9281 #define STACK_DIRECTION $ac_cv_c_stack_direction
9287 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9288 echo " xemacs will be linked with \"$ALLOCA\""
9291 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9292 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9293 echo "configure:9294: checking for vfork.h" >&5
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9301 { (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9302 ac_err=`grep -v '^ *+' conftest.out`
9303 if test -z "$ac_err"; then
9305 eval "ac_cv_header_$ac_safe=yes"
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9311 eval "ac_cv_header_$ac_safe=no"
9314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9315 echo "$ac_t""yes" 1>&6
9316 { test "$extra_verbose" = "yes" && cat << \EOF
9317 Defining HAVE_VFORK_H
9319 cat >> confdefs.h <<\EOF
9320 #define HAVE_VFORK_H 1
9325 echo "$ac_t""no" 1>&6
9328 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9329 echo "configure:9330: checking for working vfork" >&5
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 /* Thanks to Paul Eggert for this test. */
9336 #include <sys/types.h>
9337 #include <sys/stat.h>
9338 #ifdef HAVE_UNISTD_H
9344 /* On some sparc systems, changes by the child to local and incoming
9345 argument registers are propagated back to the parent.
9346 The compiler is told about this with #include <vfork.h>,
9347 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9348 Test for this by using a static variable whose address
9349 is put into a register that is clobbered by the vfork. */
9352 sparc_address_test (int arg)
9354 sparc_address_test (arg) int arg;
9372 pid_t parent = getpid ();
9375 sparc_address_test ();
9380 /* Here is another test for sparc vfork register problems.
9381 This test uses lots of local variables, at least
9382 as many local variables as main has allocated so far
9383 including compiler temporaries. 4 locals are enough for
9384 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9385 A buggy compiler should reuse the register of parent
9386 for one of the local variables, since it will think that
9387 parent can't possibly be used any more in this routine.
9388 Assigning to the local variable will thus munge parent
9389 in the parent process. */
9391 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9392 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9393 /* Convince the compiler that p..p7 are live; otherwise, it might
9394 use the same hardware register for all 8 local variables. */
9395 if (p != p1 || p != p2 || p != p3 || p != p4
9396 || p != p5 || p != p6 || p != p7)
9399 /* On some systems (e.g. IRIX 3.3),
9400 vfork doesn't separate parent from child file descriptors.
9401 If the child closes a descriptor before it execs or exits,
9402 this munges the parent's descriptor as well.
9403 Test for this by closing stdout in the child. */
9404 _exit(close(fileno(stdout)) != 0);
9409 while (wait(&status) != child)
9412 /* Was there some problem with vforking? */
9415 /* Did the child fail? (This shouldn't happen.) */
9418 /* Did the vfork/compiler bug occur? */
9419 || parent != getpid()
9421 /* Did the file descriptor bug occur? */
9422 || fstat(fileno(stdout), &st) != 0
9427 if { (eval echo configure:9428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9429 ac_cv_func_vfork_works=yes
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9435 ac_cv_func_vfork_works=no
9439 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9440 if test $ac_cv_func_vfork_works = no; then
9441 { test "$extra_verbose" = "yes" && cat << \EOF
9442 Defining vfork = fork
9444 cat >> confdefs.h <<\EOF
9452 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9453 echo "configure:9454: checking for working strcoll" >&5
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9461 exit (strcoll ("abc", "def") >= 0 ||
9462 strcoll ("ABC", "DEF") >= 0 ||
9463 strcoll ("123", "456") >= 0);
9466 if { (eval echo configure:9467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9468 ac_cv_func_strcoll_works=yes
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9474 ac_cv_func_strcoll_works=no
9478 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9479 if test $ac_cv_func_strcoll_works = yes; then
9480 { test "$extra_verbose" = "yes" && cat << \EOF
9481 Defining HAVE_STRCOLL
9483 cat >> confdefs.h <<\EOF
9484 #define HAVE_STRCOLL 1
9491 for ac_func in getpgrp
9493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9494 echo "configure:9495: checking for $ac_func" >&5
9496 cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9499 /* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char $ac_func(); below. */
9502 /* Override any gcc2 internal prototype to avoid an error. */
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9509 /* The GNU C library defines this for functions which it implements
9510 to always fail with ENOSYS. Some functions are actually named
9511 something starting with __ and the normal name is an alias. */
9512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9520 if { (eval echo configure:9521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9522 eval "ac_cv_func_$ac_func=yes"
9524 echo "configure: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9527 eval "ac_cv_func_$ac_func=no"
9531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9532 echo "$ac_t""yes" 1>&6
9533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9534 { test "$extra_verbose" = "yes" && cat << EOF
9535 Defining $ac_tr_func
9537 cat >> confdefs.h <<EOF
9538 #define $ac_tr_func 1
9543 echo "$ac_t""no" 1>&6
9547 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9548 echo "configure:9549: checking whether getpgrp takes no argument" >&5
9550 cat > conftest.$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9555 * If this system has a BSD-style getpgrp(),
9556 * which takes a pid argument, exit unsuccessfully.
9558 * Snarfed from Chet Ramey's bash pgrp.c test program
9561 #include <sys/types.h>
9564 int pg1, pg2, pg3, pg4;
9565 int ng, np, s, child;
9576 * If all of these values are the same, it's pretty sure that
9577 * we're on a system that ignores getpgrp's first argument.
9579 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9585 else if (child == 0) {
9588 * If this is Sys V, this will not work; pgrp will be
9589 * set to np because setpgrp just changes a pgrp to be
9590 * the same as the pid.
9593 ng = getpgrp(0); /* Same result for Sys V and BSD */
9606 if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9608 ac_cv_func_getpgrp_void=yes
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9614 ac_cv_func_getpgrp_void=no
9619 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9620 if test $ac_cv_func_getpgrp_void = yes; then
9621 { test "$extra_verbose" = "yes" && cat << \EOF
9622 Defining GETPGRP_VOID
9624 cat >> confdefs.h <<\EOF
9625 #define GETPGRP_VOID 1
9632 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9633 echo "configure:9634: checking for working mmap" >&5
9634 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9641 #include <sys/mman.h>
9643 #ifndef MAP_VARIABLE
9644 #define MAP_VARIABLE 0
9648 #define MAP_FAILED -1
9651 int main (int argc, char *argv[])
9655 #ifndef MAP_ANONYMOUS
9656 fd = open ("/dev/zero", O_RDWR);
9659 #define MAP_ANONYMOUS 0
9661 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9662 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9663 fd, 0) != (void *) MAP_FAILED)
9665 perror ("conftest: mmap failed");
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9681 echo "$ac_t""$have_mmap" 1>&6
9682 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9685 cat >> confdefs.h <<\EOF
9690 for ac_hdr in unistd.h
9692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9694 echo "configure:9695: checking for $ac_hdr" >&5
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9702 { (eval echo configure:9703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9703 ac_err=`grep -v '^ *+' conftest.out`
9704 if test -z "$ac_err"; then
9706 eval "ac_cv_header_$ac_safe=yes"
9709 echo "configure: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9712 eval "ac_cv_header_$ac_safe=no"
9715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9716 echo "$ac_t""yes" 1>&6
9717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9718 { test "$extra_verbose" = "yes" && cat << EOF
9721 cat >> confdefs.h <<EOF
9722 #define $ac_tr_hdr 1
9727 echo "$ac_t""no" 1>&6
9731 for ac_func in getpagesize
9733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9734 echo "configure:9735: checking for $ac_func" >&5
9736 cat > conftest.$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9739 /* System header to define __stub macros and hopefully few prototypes,
9740 which can conflict with char $ac_func(); below. */
9742 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9749 /* The GNU C library defines this for functions which it implements
9750 to always fail with ENOSYS. Some functions are actually named
9751 something starting with __ and the normal name is an alias. */
9752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9760 if { (eval echo configure:9761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9762 eval "ac_cv_func_$ac_func=yes"
9764 echo "configure: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9767 eval "ac_cv_func_$ac_func=no"
9771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9772 echo "$ac_t""yes" 1>&6
9773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9774 { test "$extra_verbose" = "yes" && cat << EOF
9775 Defining $ac_tr_func
9777 cat >> confdefs.h <<EOF
9778 #define $ac_tr_func 1
9783 echo "$ac_t""no" 1>&6
9787 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9788 echo "configure:9789: checking for working mmap" >&5
9790 cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9794 /* Thanks to Mike Haertel and Jim Avera for this test.
9795 Here is a matrix of mmap possibilities:
9796 mmap private not fixed
9797 mmap private fixed at somewhere currently unmapped
9798 mmap private fixed at somewhere already mapped
9799 mmap shared not fixed
9800 mmap shared fixed at somewhere currently unmapped
9801 mmap shared fixed at somewhere already mapped
9802 For private mappings, we should verify that changes cannot be read()
9803 back from the file, nor mmap's back from the file at a different
9804 address. (There have been systems where private was not correctly
9805 implemented like the infamous i386 svr4.0, and systems where the
9806 VM page cache was not coherent with the filesystem buffer cache
9807 like early versions of FreeBSD and possibly contemporary NetBSD.)
9808 For shared mappings, we should conversely verify that changes get
9809 propogated back to all the places they're supposed to be.
9811 Grep wants private fixed already mapped.
9812 The main things grep needs to know about mmap are:
9813 * does it exist and is it safe to write into the mmap'd area
9814 * how to use it (BSD variants) */
9815 #include <sys/types.h>
9817 #include <sys/mman.h>
9819 /* This mess was copied from the GNU getpagesize.h. */
9820 #ifndef HAVE_GETPAGESIZE
9821 # ifdef HAVE_UNISTD_H
9822 # include <unistd.h>
9825 /* Assume that all systems that can run configure have sys/param.h. */
9826 # ifndef HAVE_SYS_PARAM_H
9827 # define HAVE_SYS_PARAM_H 1
9830 # ifdef _SC_PAGESIZE
9831 # define getpagesize() sysconf(_SC_PAGESIZE)
9832 # else /* no _SC_PAGESIZE */
9833 # ifdef HAVE_SYS_PARAM_H
9834 # include <sys/param.h>
9835 # ifdef EXEC_PAGESIZE
9836 # define getpagesize() EXEC_PAGESIZE
9837 # else /* no EXEC_PAGESIZE */
9839 # define getpagesize() NBPG * CLSIZE
9842 # endif /* no CLSIZE */
9843 # else /* no NBPG */
9845 # define getpagesize() NBPC
9846 # else /* no NBPC */
9848 # define getpagesize() PAGESIZE
9849 # endif /* PAGESIZE */
9850 # endif /* no NBPC */
9851 # endif /* no NBPG */
9852 # endif /* no EXEC_PAGESIZE */
9853 # else /* no HAVE_SYS_PARAM_H */
9854 # define getpagesize() 8192 /* punt totally */
9855 # endif /* no HAVE_SYS_PARAM_H */
9856 # endif /* no _SC_PAGESIZE */
9858 #endif /* no HAVE_GETPAGESIZE */
9861 extern "C" { void *malloc(unsigned); }
9869 char *data, *data2, *data3;
9873 pagesize = getpagesize();
9876 * First, make a file with some known garbage in it.
9878 data = malloc(pagesize);
9881 for (i = 0; i < pagesize; ++i)
9882 *(data + i) = rand();
9884 fd = creat("conftestmmap", 0600);
9887 if (write(fd, data, pagesize) != pagesize)
9892 * Next, try to mmap the file at a fixed address which
9893 * already has something else allocated at it. If we can,
9894 * also make sure that we see the same garbage.
9896 fd = open("conftestmmap", O_RDWR);
9899 data2 = malloc(2 * pagesize);
9902 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9903 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
9904 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9906 for (i = 0; i < pagesize; ++i)
9907 if (*(data + i) != *(data2 + i))
9911 * Finally, make sure that changes to the mapped area
9912 * do not percolate back to the file as seen by read().
9913 * (This is a bug on some variants of i386 svr4.0.)
9915 for (i = 0; i < pagesize; ++i)
9916 *(data2 + i) = *(data2 + i) + 1;
9917 data3 = malloc(pagesize);
9920 if (read(fd, data3, pagesize) != pagesize)
9922 for (i = 0; i < pagesize; ++i)
9923 if (*(data + i) != *(data3 + i))
9926 unlink("conftestmmap");
9931 if { (eval echo configure:9932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9933 ac_cv_func_mmap_fixed_mapped=yes
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9939 ac_cv_func_mmap_fixed_mapped=no
9943 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
9944 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9945 { test "$extra_verbose" = "yes" && cat << \EOF
9948 cat >> confdefs.h <<\EOF
9956 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
9957 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
9958 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9961 cat >> confdefs.h <<\EOF
9967 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9968 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9969 echo "configure:9970: checking for termios.h" >&5
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 #include <termios.h>
9976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9977 { (eval echo configure:9978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9978 ac_err=`grep -v '^ *+' conftest.out`
9979 if test -z "$ac_err"; then
9981 eval "ac_cv_header_$ac_safe=yes"
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9987 eval "ac_cv_header_$ac_safe=no"
9990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9991 echo "$ac_t""yes" 1>&6
9992 { test "$extra_verbose" = "yes" && cat << \EOF
9993 Defining HAVE_TERMIOS
9995 cat >> confdefs.h <<\EOF
9996 #define HAVE_TERMIOS 1
10000 { test "$extra_verbose" = "yes" && cat << \EOF
10001 Defining SIGNALS_VIA_CHARACTERS
10003 cat >> confdefs.h <<\EOF
10004 #define SIGNALS_VIA_CHARACTERS 1
10008 { test "$extra_verbose" = "yes" && cat << \EOF
10011 cat >> confdefs.h <<\EOF
10012 #define NO_TERMIO 1
10017 echo "$ac_t""no" 1>&6
10018 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10019 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10020 echo "configure:10021: checking for termio.h" >&5
10022 cat > conftest.$ac_ext <<EOF
10023 #line 10024 "configure"
10024 #include "confdefs.h"
10025 #include <termio.h>
10027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10028 { (eval echo configure:10029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10029 ac_err=`grep -v '^ *+' conftest.out`
10030 if test -z "$ac_err"; then
10032 eval "ac_cv_header_$ac_safe=yes"
10035 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10038 eval "ac_cv_header_$ac_safe=no"
10041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10042 echo "$ac_t""yes" 1>&6
10043 { test "$extra_verbose" = "yes" && cat << \EOF
10044 Defining HAVE_TERMIO
10046 cat >> confdefs.h <<\EOF
10047 #define HAVE_TERMIO 1
10052 echo "$ac_t""no" 1>&6
10059 echo $ac_n "checking for socket""... $ac_c" 1>&6
10060 echo "configure:10061: checking for socket" >&5
10062 cat > conftest.$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10065 /* System header to define __stub macros and hopefully few prototypes,
10066 which can conflict with char socket(); below. */
10067 #include <assert.h>
10068 /* Override any gcc2 internal prototype to avoid an error. */
10069 /* We use char because int might match the return type of a gcc2
10070 builtin and then its argument prototype would still apply. */
10075 /* The GNU C library defines this for functions which it implements
10076 to always fail with ENOSYS. Some functions are actually named
10077 something starting with __ and the normal name is an alias. */
10078 #if defined (__stub_socket) || defined (__stub___socket)
10086 if { (eval echo configure:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10088 eval "ac_cv_func_socket=yes"
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10093 eval "ac_cv_func_socket=no"
10097 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10098 echo "$ac_t""yes" 1>&6
10099 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10100 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10101 echo "configure:10102: checking for netinet/in.h" >&5
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10106 #include <netinet/in.h>
10108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10109 { (eval echo configure:10110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10110 ac_err=`grep -v '^ *+' conftest.out`
10111 if test -z "$ac_err"; then
10113 eval "ac_cv_header_$ac_safe=yes"
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10119 eval "ac_cv_header_$ac_safe=no"
10122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10123 echo "$ac_t""yes" 1>&6
10124 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10125 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10126 echo "configure:10127: checking for arpa/inet.h" >&5
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131 #include <arpa/inet.h>
10133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10134 { (eval echo configure:10135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10135 ac_err=`grep -v '^ *+' conftest.out`
10136 if test -z "$ac_err"; then
10138 eval "ac_cv_header_$ac_safe=yes"
10141 echo "configure: failed program was:" >&5
10142 cat conftest.$ac_ext >&5
10144 eval "ac_cv_header_$ac_safe=no"
10147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10148 echo "$ac_t""yes" 1>&6
10150 { test "$extra_verbose" = "yes" && cat << \EOF
10151 Defining HAVE_SOCKETS
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_SOCKETS 1
10158 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10159 echo "configure:10160: checking "for sun_len member in struct sockaddr_un"" >&5
10160 cat > conftest.$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10164 #include <sys/types.h>
10165 #include <sys/socket.h>
10166 #include <sys/un.h>
10169 static struct sockaddr_un x; x.sun_len = 1;
10172 if { (eval echo configure:10173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10174 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10175 Defining HAVE_SOCKADDR_SUN_LEN
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_SOCKADDR_SUN_LEN 1
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10186 echo "$ac_t""no" 1>&6
10189 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10190 echo "configure:10191: checking "for ip_mreq struct in netinet/in.h"" >&5
10191 cat > conftest.$ac_ext <<EOF
10192 #line 10193 "configure"
10193 #include "confdefs.h"
10195 #include <sys/types.h>
10196 #include <netinet/in.h>
10199 static struct ip_mreq x;
10202 if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10204 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10205 Defining HAVE_MULTICAST
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_MULTICAST 1
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10216 echo "$ac_t""no" 1>&6
10220 echo "$ac_t""no" 1>&6
10224 echo "$ac_t""no" 1>&6
10228 echo "$ac_t""no" 1>&6
10232 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10233 echo "configure:10234: checking for msgget" >&5
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 /* System header to define __stub macros and hopefully few prototypes,
10239 which can conflict with char msgget(); below. */
10240 #include <assert.h>
10241 /* Override any gcc2 internal prototype to avoid an error. */
10242 /* We use char because int might match the return type of a gcc2
10243 builtin and then its argument prototype would still apply. */
10248 /* The GNU C library defines this for functions which it implements
10249 to always fail with ENOSYS. Some functions are actually named
10250 something starting with __ and the normal name is an alias. */
10251 #if defined (__stub_msgget) || defined (__stub___msgget)
10259 if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10261 eval "ac_cv_func_msgget=yes"
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10266 eval "ac_cv_func_msgget=no"
10270 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10271 echo "$ac_t""yes" 1>&6
10272 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10273 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10274 echo "configure:10275: checking for sys/ipc.h" >&5
10276 cat > conftest.$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10279 #include <sys/ipc.h>
10281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10282 { (eval echo configure:10283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10283 ac_err=`grep -v '^ *+' conftest.out`
10284 if test -z "$ac_err"; then
10286 eval "ac_cv_header_$ac_safe=yes"
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10292 eval "ac_cv_header_$ac_safe=no"
10295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10296 echo "$ac_t""yes" 1>&6
10297 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10298 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10299 echo "configure:10300: checking for sys/msg.h" >&5
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10304 #include <sys/msg.h>
10306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10307 { (eval echo configure:10308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10308 ac_err=`grep -v '^ *+' conftest.out`
10309 if test -z "$ac_err"; then
10311 eval "ac_cv_header_$ac_safe=yes"
10314 echo "configure: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10317 eval "ac_cv_header_$ac_safe=no"
10320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10321 echo "$ac_t""yes" 1>&6
10322 { test "$extra_verbose" = "yes" && cat << \EOF
10323 Defining HAVE_SYSVIPC
10325 cat >> confdefs.h <<\EOF
10326 #define HAVE_SYSVIPC 1
10331 echo "$ac_t""no" 1>&6
10335 echo "$ac_t""no" 1>&6
10339 echo "$ac_t""no" 1>&6
10343 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10344 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10345 echo "configure:10346: checking for dirent.h" >&5
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include <dirent.h>
10352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10353 { (eval echo configure:10354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10354 ac_err=`grep -v '^ *+' conftest.out`
10355 if test -z "$ac_err"; then
10357 eval "ac_cv_header_$ac_safe=yes"
10360 echo "configure: failed program was:" >&5
10361 cat conftest.$ac_ext >&5
10363 eval "ac_cv_header_$ac_safe=no"
10366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10367 echo "$ac_t""yes" 1>&6
10368 { test "$extra_verbose" = "yes" && cat << \EOF
10369 Defining SYSV_SYSTEM_DIR
10371 cat >> confdefs.h <<\EOF
10372 #define SYSV_SYSTEM_DIR 1
10377 echo "$ac_t""no" 1>&6
10378 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10379 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10380 echo "configure:10381: checking for sys/dir.h" >&5
10382 cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10385 #include <sys/dir.h>
10387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10388 { (eval echo configure:10389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10389 ac_err=`grep -v '^ *+' conftest.out`
10390 if test -z "$ac_err"; then
10392 eval "ac_cv_header_$ac_safe=yes"
10395 echo "configure: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10398 eval "ac_cv_header_$ac_safe=no"
10401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10402 echo "$ac_t""yes" 1>&6
10405 echo "$ac_t""no" 1>&6
10406 { test "$extra_verbose" = "yes" && cat << \EOF
10407 Defining NONSYSTEM_DIR_LIBRARY
10409 cat >> confdefs.h <<\EOF
10410 #define NONSYSTEM_DIR_LIBRARY 1
10419 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10420 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10421 echo "configure:10422: checking for nlist.h" >&5
10423 cat > conftest.$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10429 { (eval echo configure:10430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10430 ac_err=`grep -v '^ *+' conftest.out`
10431 if test -z "$ac_err"; then
10433 eval "ac_cv_header_$ac_safe=yes"
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10439 eval "ac_cv_header_$ac_safe=no"
10442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10443 echo "$ac_t""yes" 1>&6
10444 { test "$extra_verbose" = "yes" && cat << \EOF
10445 Defining NLIST_STRUCT
10447 cat >> confdefs.h <<\EOF
10448 #define NLIST_STRUCT 1
10453 echo "$ac_t""no" 1>&6
10458 echo "checking "for sound support"" 1>&6
10459 echo "configure:10460: checking "for sound support"" >&5
10460 case "$with_sound" in
10461 native | both ) with_native_sound=yes;;
10462 nas | no ) with_native_sound=no;;
10464 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10466 if test "$with_native_sound" != "no"; then
10467 if test -n "$native_sound_lib"; then
10468 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10469 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10470 echo "configure:10471: checking for multimedia/audio_device.h" >&5
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10475 #include <multimedia/audio_device.h>
10477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10478 { (eval echo configure:10479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10479 ac_err=`grep -v '^ *+' conftest.out`
10480 if test -z "$ac_err"; then
10482 eval "ac_cv_header_$ac_safe=yes"
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10488 eval "ac_cv_header_$ac_safe=no"
10491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10492 echo "$ac_t""yes" 1>&6
10493 sound_found=yes sound_cflags=""
10494 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10495 echo " xemacs will be linked with \"sunplay.o\""
10498 echo "$ac_t""no" 1>&6
10503 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10505 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10506 echo " xemacs will be linked with \"sunplay.o\""
10508 if test -d "/usr/demo/SOUND/include"
10509 then sound_cflags="-I/usr/demo/SOUND/include"
10510 else sound_cflags="-I/usr/demo/SOUND"
10512 if test -z "$native_sound_lib" ; then
10513 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10514 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10515 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10520 if test -z "$sound_found"; then
10521 case "$canonical" in
10523 if test -z "$native_sound_lib"; then
10525 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10526 echo "configure:10527: checking for ALopenport in -laudio" >&5
10527 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10529 xe_check_libs=" -laudio "
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533 /* Override any gcc2 internal prototype to avoid an error. */
10534 /* We use char because int might match the return type of a gcc2
10535 builtin and then its argument prototype would still apply. */
10542 if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10544 eval "ac_cv_lib_$ac_lib_var=yes"
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10549 eval "ac_cv_lib_$ac_lib_var=no"
10554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10555 echo "$ac_t""yes" 1>&6
10556 native_sound_lib="-laudio"
10558 echo "$ac_t""no" 1>&6
10563 if test -n "$native_sound_lib"; then
10564 sound_found=yes sound_cflags=""
10565 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10566 echo " xemacs will be linked with \"sgiplay.o\""
10570 if test -z "$native_sound_lib"; then
10572 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10573 echo "configure:10574: checking for AOpenAudio in -lAlib" >&5
10574 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10576 xe_check_libs=" -lAlib "
10577 cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10580 /* Override any gcc2 internal prototype to avoid an error. */
10581 /* We use char because int might match the return type of a gcc2
10582 builtin and then its argument prototype would still apply. */
10589 if { (eval echo configure:10590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10591 eval "ac_cv_lib_$ac_lib_var=yes"
10593 echo "configure: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10596 eval "ac_cv_lib_$ac_lib_var=no"
10601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10602 echo "$ac_t""yes" 1>&6
10603 native_sound_lib="-lAlib"
10605 echo "$ac_t""no" 1>&6
10610 if test -n "$native_sound_lib"; then
10612 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10613 echo " xemacs will be linked with \"hpplay.o\""
10615 if test "$GCC" = "yes" # Kludge city
10616 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10617 else sound_cflags="+e -I/usr/audio/examples"
10623 if test -z "$sound_found"; then
10624 for dir in "machine" "sys" "linux"; do
10625 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10626 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10627 echo "configure:10628: checking for ${dir}/soundcard.h" >&5
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10632 #include <${dir}/soundcard.h>
10634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10635 { (eval echo configure:10636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10636 ac_err=`grep -v '^ *+' conftest.out`
10637 if test -z "$ac_err"; then
10639 eval "ac_cv_header_$ac_safe=yes"
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10645 eval "ac_cv_header_$ac_safe=no"
10648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10649 echo "$ac_t""yes" 1>&6
10651 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10652 echo " xemacs will be linked with \"linuxplay.o\""
10654 { test "$extra_verbose" = "yes" && cat << EOF
10655 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10657 cat >> confdefs.h <<EOF
10658 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10664 echo "$ac_t""no" 1>&6
10670 test "$sound_found" = "yes" && with_native_sound=yes
10673 if test -z "$with_sound"; then
10674 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10679 if test "$with_native_sound" = "yes"; then
10680 { test "$extra_verbose" = "yes" && cat << \EOF
10681 Defining HAVE_NATIVE_SOUND
10683 cat >> confdefs.h <<\EOF
10684 #define HAVE_NATIVE_SOUND 1
10688 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10691 case "$with_sound" in both | nas )
10692 { test "$extra_verbose" = "yes" && cat << \EOF
10693 Defining HAVE_NAS_SOUND
10695 cat >> confdefs.h <<\EOF
10696 #define HAVE_NAS_SOUND 1
10700 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10701 echo " xemacs will be linked with \"nas.o\""
10703 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include <audio/Xtutil.h>
10709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10710 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10714 { test "$extra_verbose" = "yes" && cat << \EOF
10715 Defining NAS_NO_ERROR_JUMP
10717 cat >> confdefs.h <<\EOF
10718 #define NAS_NO_ERROR_JUMP 1
10728 test -z "$with_tty" && with_tty=yes
10730 if test "$with_tty" = "yes" ; then
10731 echo "checking for TTY-related features" 1>&6
10732 echo "configure:10733: checking for TTY-related features" >&5
10733 { test "$extra_verbose" = "yes" && cat << \EOF
10736 cat >> confdefs.h <<\EOF
10741 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
10742 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\""
10745 if test -z "$with_ncurses"; then
10747 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10748 echo "configure:10749: checking for tgetent in -lncurses" >&5
10749 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10751 xe_check_libs=" -lncurses "
10752 cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure"
10754 #include "confdefs.h"
10755 /* Override any gcc2 internal prototype to avoid an error. */
10756 /* We use char because int might match the return type of a gcc2
10757 builtin and then its argument prototype would still apply. */
10764 if { (eval echo configure:10765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10766 eval "ac_cv_lib_$ac_lib_var=yes"
10768 echo "configure: failed program was:" >&5
10769 cat conftest.$ac_ext >&5
10771 eval "ac_cv_lib_$ac_lib_var=no"
10776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10777 echo "$ac_t""yes" 1>&6
10780 echo "$ac_t""no" 1>&6
10786 if test "$with_ncurses" = "yes"; then
10787 { test "$extra_verbose" = "yes" && cat << \EOF
10788 Defining HAVE_NCURSES
10790 cat >> confdefs.h <<\EOF
10791 #define HAVE_NCURSES 1
10795 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10796 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10797 echo "configure:10798: checking for ncurses/curses.h" >&5
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 #include <ncurses/curses.h>
10804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10805 { (eval echo configure:10806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10806 ac_err=`grep -v '^ *+' conftest.out`
10807 if test -z "$ac_err"; then
10809 eval "ac_cv_header_$ac_safe=yes"
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10815 eval "ac_cv_header_$ac_safe=no"
10818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10819 echo "$ac_t""yes" 1>&6
10820 curses_h_path=ncurses/curses.h
10822 echo "$ac_t""no" 1>&6
10825 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10826 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10827 echo "configure:10828: checking for ncurses/term.h" >&5
10829 cat > conftest.$ac_ext <<EOF
10830 #line 10831 "configure"
10831 #include "confdefs.h"
10832 #include <ncurses/term.h>
10834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10835 { (eval echo configure:10836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10836 ac_err=`grep -v '^ *+' conftest.out`
10837 if test -z "$ac_err"; then
10839 eval "ac_cv_header_$ac_safe=yes"
10842 echo "configure: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10845 eval "ac_cv_header_$ac_safe=no"
10848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10849 echo "$ac_t""yes" 1>&6
10850 term_h_path=ncurses/term.h
10852 echo "$ac_t""no" 1>&6
10855 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10856 echo " xemacs will be linked with \"terminfo.o\""
10858 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
10860 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10861 save_c_switch_site="$c_switch_site"
10862 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10863 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10864 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10865 echo "configure:10866: checking for ncurses/curses.h" >&5
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 #include <ncurses/curses.h>
10872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10873 { (eval echo configure:10874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10874 ac_err=`grep -v '^ *+' conftest.out`
10875 if test -z "$ac_err"; then
10877 eval "ac_cv_header_$ac_safe=yes"
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10883 eval "ac_cv_header_$ac_safe=no"
10886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10887 echo "$ac_t""yes" 1>&6
10888 curses_h_path=ncurses/curses.h
10890 echo "$ac_t""no" 1>&6
10893 if test "$ac_cv_header_ncurses_curses_h" = "yes"
10894 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
10895 else c_switch_site="$save_c_switch_site"
10898 else if test "$have_terminfo" = "yes"; then
10899 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10900 echo " xemacs will be linked with \"terminfo.o\""
10902 if test -n "$libs_termcap"; then
10903 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10905 for lib in curses termlib termcap; do
10907 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10908 echo "configure:10909: checking for tgetent in -l$lib" >&5
10909 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10911 xe_check_libs=" -l$lib "
10912 cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10915 /* Override any gcc2 internal prototype to avoid an error. */
10916 /* We use char because int might match the return type of a gcc2
10917 builtin and then its argument prototype would still apply. */
10924 if { (eval echo configure:10925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10926 eval "ac_cv_lib_$ac_lib_var=yes"
10928 echo "configure: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10931 eval "ac_cv_lib_$ac_lib_var=no"
10936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10937 echo "$ac_t""yes" 1>&6
10938 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
10940 echo "$ac_t""no" 1>&6
10946 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
10947 echo " xemacs will be linked with \"tparam.o\""
10949 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
10950 if test -n "$libs_termcap"; then
10951 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10954 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10955 echo "configure:10956: checking for tgetent in -lcurses" >&5
10956 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10958 xe_check_libs=" -lcurses "
10959 cat > conftest.$ac_ext <<EOF
10960 #line 10961 "configure"
10961 #include "confdefs.h"
10962 /* Override any gcc2 internal prototype to avoid an error. */
10963 /* We use char because int might match the return type of a gcc2
10964 builtin and then its argument prototype would still apply. */
10971 if { (eval echo configure:10972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10973 eval "ac_cv_lib_$ac_lib_var=yes"
10975 echo "configure: failed program was:" >&5
10976 cat conftest.$ac_ext >&5
10978 eval "ac_cv_lib_$ac_lib_var=no"
10983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10984 echo "$ac_t""yes" 1>&6
10985 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10987 echo "$ac_t""no" 1>&6
10988 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10989 echo "configure:10990: checking for tgetent in -ltermcap" >&5
10990 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10992 xe_check_libs=" -ltermcap "
10993 cat > conftest.$ac_ext <<EOF
10994 #line 10995 "configure"
10995 #include "confdefs.h"
10996 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
11005 if { (eval echo configure:11006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11007 eval "ac_cv_lib_$ac_lib_var=yes"
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11012 eval "ac_cv_lib_$ac_lib_var=no"
11017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11018 echo "$ac_t""yes" 1>&6
11019 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11021 echo "$ac_t""no" 1>&6
11022 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11023 echo " xemacs will be linked with \"termcap.o\""
11034 { test "$extra_verbose" = "yes" && cat << EOF
11035 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11037 cat >> confdefs.h <<EOF
11038 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11042 { test "$extra_verbose" = "yes" && cat << EOF
11043 Defining TERM_H_PATH = "${term_h_path-term.h}"
11045 cat >> confdefs.h <<EOF
11046 #define TERM_H_PATH "${term_h_path-term.h}"
11051 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11052 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11053 echo "configure:11054: checking for gpm.h" >&5
11055 cat > conftest.$ac_ext <<EOF
11056 #line 11057 "configure"
11057 #include "confdefs.h"
11060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11061 { (eval echo configure:11062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11062 ac_err=`grep -v '^ *+' conftest.out`
11063 if test -z "$ac_err"; then
11065 eval "ac_cv_header_$ac_safe=yes"
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11071 eval "ac_cv_header_$ac_safe=no"
11074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11075 echo "$ac_t""yes" 1>&6
11078 echo "$ac_t""no" 1>&6
11082 test -z "$with_gpm" && {
11083 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11084 echo "configure:11085: checking for Gpm_Open in -lgpm" >&5
11085 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11087 xe_check_libs=" -lgpm "
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 /* Override any gcc2 internal prototype to avoid an error. */
11092 /* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11100 if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11102 eval "ac_cv_lib_$ac_lib_var=yes"
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11107 eval "ac_cv_lib_$ac_lib_var=no"
11112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11113 echo "$ac_t""yes" 1>&6
11116 echo "$ac_t""no" 1>&6
11121 if test "$with_gpm" = "yes"; then
11122 { test "$extra_verbose" = "yes" && cat << \EOF
11125 cat >> confdefs.h <<\EOF
11130 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11131 echo " xemacs will be linked with \"gpmevent.o\""
11133 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11136 else for feature in ncurses gpm; do
11137 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11138 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11140 eval "with_${feature}=no"
11143 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11144 echo " xemacs will be linked with \"event-unixoid.o\""
11148 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11149 != "no no no" && echo "checking for database support" 1>&6
11150 echo "configure:11151: checking for database support" >&5
11152 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11153 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11154 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11155 echo "configure:11156: checking for ndbm.h" >&5
11157 cat > conftest.$ac_ext <<EOF
11158 #line 11159 "configure"
11159 #include "confdefs.h"
11162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11163 { (eval echo configure:11164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11164 ac_err=`grep -v '^ *+' conftest.out`
11165 if test -z "$ac_err"; then
11167 eval "ac_cv_header_$ac_safe=yes"
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11173 eval "ac_cv_header_$ac_safe=no"
11176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11177 echo "$ac_t""yes" 1>&6
11180 echo "$ac_t""no" 1>&6
11182 test "$with_database_gnudbm" = "yes" -o \
11183 "$with_database_dbm" = "yes" && \
11184 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11185 with_database_gnudbm=no with_database_dbm=no
11190 if test "$with_database_gnudbm" != "no"; then
11192 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11193 echo "configure:11194: checking for dbm_open in -lgdbm" >&5
11194 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11196 xe_check_libs=" -lgdbm "
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11200 /* Override any gcc2 internal prototype to avoid an error. */
11201 /* We use char because int might match the return type of a gcc2
11202 builtin and then its argument prototype would still apply. */
11209 if { (eval echo configure:11210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11211 eval "ac_cv_lib_$ac_lib_var=yes"
11213 echo "configure: failed program was:" >&5
11214 cat conftest.$ac_ext >&5
11216 eval "ac_cv_lib_$ac_lib_var=no"
11221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11222 echo "$ac_t""yes" 1>&6
11223 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11225 echo "$ac_t""no" 1>&6
11226 if test "$with_database_gnudbm" = "yes"; then
11227 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11229 with_database_gnudbm=no
11235 if test "$with_database_dbm" != "no"; then
11236 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11237 echo "configure:11238: checking for dbm_open" >&5
11239 cat > conftest.$ac_ext <<EOF
11240 #line 11241 "configure"
11241 #include "confdefs.h"
11242 /* System header to define __stub macros and hopefully few prototypes,
11243 which can conflict with char dbm_open(); below. */
11244 #include <assert.h>
11245 /* Override any gcc2 internal prototype to avoid an error. */
11246 /* We use char because int might match the return type of a gcc2
11247 builtin and then its argument prototype would still apply. */
11252 /* The GNU C library defines this for functions which it implements
11253 to always fail with ENOSYS. Some functions are actually named
11254 something starting with __ and the normal name is an alias. */
11255 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11263 if { (eval echo configure:11264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11265 eval "ac_cv_func_dbm_open=yes"
11267 echo "configure: failed program was:" >&5
11268 cat conftest.$ac_ext >&5
11270 eval "ac_cv_func_dbm_open=no"
11274 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11275 echo "$ac_t""yes" 1>&6
11276 with_database_dbm=yes libdbm=
11278 echo "$ac_t""no" 1>&6
11281 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11282 echo "configure:11283: checking for dbm_open in -ldbm" >&5
11283 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11285 xe_check_libs=" -ldbm "
11286 cat > conftest.$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11289 /* Override any gcc2 internal prototype to avoid an error. */
11290 /* We use char because int might match the return type of a gcc2
11291 builtin and then its argument prototype would still apply. */
11298 if { (eval echo configure:11299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11300 eval "ac_cv_lib_$ac_lib_var=yes"
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11305 eval "ac_cv_lib_$ac_lib_var=no"
11310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11311 echo "$ac_t""yes" 1>&6
11312 with_database_dbm=yes libdbm=-ldbm
11314 echo "$ac_t""no" 1>&6
11315 test "$with_database_dbm" = "yes" && \
11316 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11317 with_database_dbm=no
11325 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11326 test "$with_database_gnudbm" = "yes" -o \
11327 "$with_database_dbm" = "yes" && \
11328 { test "$extra_verbose" = "yes" && cat << \EOF
11331 cat >> confdefs.h <<\EOF
11337 if test "$with_database_berkdb" != "no"; then
11338 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11339 echo "configure:11340: checking for Berkeley db.h" >&5
11340 for path in "db/db.h" "db.h"; do
11341 cat > conftest.$ac_ext <<EOF
11342 #line 11343 "configure"
11343 #include "confdefs.h"
11344 #ifdef HAVE_INTTYPES_H
11345 #define __BIT_TYPES_DEFINED__
11346 #include <inttypes.h>
11347 typedef uint8_t u_int8_t;
11348 typedef uint16_t u_int16_t;
11349 typedef uint32_t u_int32_t;
11350 #ifdef WE_DONT_NEED_QUADS
11351 typedef uint64_t u_int64_t;
11360 if { (eval echo configure:11361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11362 db_h_path="$path"; break
11364 echo "configure: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11369 if test -z "$db_h_path"
11370 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11371 else echo "$ac_t""$db_h_path" 1>&6
11374 if test "$with_database_berkdb" != "no"; then
11375 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11376 echo "configure:11377: checking for Berkeley DB version" >&5
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11380 #include <$db_h_path>
11381 #if DB_VERSION_MAJOR > 1
11386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11387 egrep "yes" >/dev/null 2>&1; then
11389 echo "$ac_t""2" 1>&6; dbfunc=db_open
11392 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11396 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11397 echo "configure:11398: checking for $dbfunc" >&5
11399 cat > conftest.$ac_ext <<EOF
11400 #line 11401 "configure"
11401 #include "confdefs.h"
11402 /* System header to define __stub macros and hopefully few prototypes,
11403 which can conflict with char $dbfunc(); below. */
11404 #include <assert.h>
11405 /* Override any gcc2 internal prototype to avoid an error. */
11406 /* We use char because int might match the return type of a gcc2
11407 builtin and then its argument prototype would still apply. */
11412 /* The GNU C library defines this for functions which it implements
11413 to always fail with ENOSYS. Some functions are actually named
11414 something starting with __ and the normal name is an alias. */
11415 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11423 if { (eval echo configure:11424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11425 eval "ac_cv_func_$dbfunc=yes"
11427 echo "configure: failed program was:" >&5
11428 cat conftest.$ac_ext >&5
11430 eval "ac_cv_func_$dbfunc=no"
11434 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11435 echo "$ac_t""yes" 1>&6
11436 with_database_berkdb=yes need_libdb=no
11438 echo "$ac_t""no" 1>&6
11441 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11442 echo "configure:11443: checking for $dbfunc in -ldb" >&5
11443 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11445 xe_check_libs=" -ldb "
11446 cat > conftest.$ac_ext <<EOF
11447 #line 11448 "configure"
11448 #include "confdefs.h"
11449 /* Override any gcc2 internal prototype to avoid an error. */
11450 /* We use char because int might match the return type of a gcc2
11451 builtin and then its argument prototype would still apply. */
11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11460 eval "ac_cv_lib_$ac_lib_var=yes"
11462 echo "configure: failed program was:" >&5
11463 cat conftest.$ac_ext >&5
11465 eval "ac_cv_lib_$ac_lib_var=no"
11470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11471 echo "$ac_t""yes" 1>&6
11472 with_database_berkdb=yes need_libdb=yes
11474 echo "$ac_t""no" 1>&6
11482 if test "$with_database_berkdb" = "yes"; then
11483 { test "$extra_verbose" = "yes" && cat << EOF
11484 Defining DB_H_PATH = "$db_h_path"
11486 cat >> confdefs.h <<EOF
11487 #define DB_H_PATH "$db_h_path"
11491 { test "$extra_verbose" = "yes" && cat << \EOF
11492 Defining HAVE_BERKELEY_DB
11494 cat >> confdefs.h <<\EOF
11495 #define HAVE_BERKELEY_DB 1
11499 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11500 else with_database_berkdb=no
11504 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11505 != "no no no"; then
11506 { test "$extra_verbose" = "yes" && cat << \EOF
11507 Defining HAVE_DATABASE
11509 cat >> confdefs.h <<\EOF
11510 #define HAVE_DATABASE 1
11514 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11515 echo " xemacs will be linked with \"database.o\""
11519 if test "$with_socks" = "yes"; then
11521 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11522 echo "configure:11523: checking for SOCKSinit in -lsocks" >&5
11523 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11525 xe_check_libs=" -lsocks "
11526 cat > conftest.$ac_ext <<EOF
11527 #line 11528 "configure"
11528 #include "confdefs.h"
11529 /* Override any gcc2 internal prototype to avoid an error. */
11530 /* We use char because int might match the return type of a gcc2
11531 builtin and then its argument prototype would still apply. */
11538 if { (eval echo configure:11539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11540 eval "ac_cv_lib_$ac_lib_var=yes"
11542 echo "configure: failed program was:" >&5
11543 cat conftest.$ac_ext >&5
11545 eval "ac_cv_lib_$ac_lib_var=no"
11550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11551 echo "$ac_t""yes" 1>&6
11552 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11553 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11554 { test "$extra_verbose" = "yes" && cat << EOF
11555 Defining $ac_tr_lib
11557 cat >> confdefs.h <<EOF
11558 #define $ac_tr_lib 1
11562 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11565 echo "$ac_t""no" 1>&6
11569 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11570 Defining HAVE_SOCKS
11572 cat >> confdefs.h <<\EOF
11573 #define HAVE_SOCKS 1
11579 if test "$usage_tracking" = "yes"; then
11580 { test "$extra_verbose" = "yes" && cat << \EOF
11581 Defining USAGE_TRACKING
11583 cat >> confdefs.h <<\EOF
11584 #define USAGE_TRACKING 1
11588 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11591 for ac_hdr in dlfcn.h
11593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11595 echo "configure:11596: checking for $ac_hdr" >&5
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11603 { (eval echo configure:11604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11604 ac_err=`grep -v '^ *+' conftest.out`
11605 if test -z "$ac_err"; then
11607 eval "ac_cv_header_$ac_safe=yes"
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11613 eval "ac_cv_header_$ac_safe=no"
11616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11617 echo "$ac_t""yes" 1>&6
11618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11619 { test "$extra_verbose" = "yes" && cat << EOF
11620 Defining $ac_tr_hdr
11622 cat >> confdefs.h <<EOF
11623 #define $ac_tr_hdr 1
11627 { test "$extra_verbose" = "yes" && cat << \EOF
11628 Defining HAVE_DLFCN_H
11630 cat >> confdefs.h <<\EOF
11631 #define HAVE_DLFCN_H 1
11636 echo "$ac_t""no" 1>&6
11640 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11641 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11642 echo "configure:11643: checking for dlopen in -ldl" >&5
11643 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11645 xe_check_libs=" -ldl "
11646 cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11649 /* Override any gcc2 internal prototype to avoid an error. */
11650 /* We use char because int might match the return type of a gcc2
11651 builtin and then its argument prototype would still apply. */
11658 if { (eval echo configure:11659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11660 eval "ac_cv_lib_$ac_lib_var=yes"
11662 echo "configure: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11665 eval "ac_cv_lib_$ac_lib_var=no"
11670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11671 echo "$ac_t""yes" 1>&6
11672 { test "$extra_verbose" = "yes" && cat << \EOF
11673 Defining HAVE_DLOPEN
11675 cat >> confdefs.h <<\EOF
11676 #define HAVE_DLOPEN 1
11679 DLL_LIB=dl; with_shlib=yes
11681 echo "$ac_t""no" 1>&6
11685 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11686 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11687 echo "configure:11688: checking for _dlopen in -lc" >&5
11688 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11690 xe_check_libs=" -lc "
11691 cat > conftest.$ac_ext <<EOF
11692 #line 11693 "configure"
11693 #include "confdefs.h"
11694 /* Override any gcc2 internal prototype to avoid an error. */
11695 /* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11703 if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11705 eval "ac_cv_lib_$ac_lib_var=yes"
11707 echo "configure: failed program was:" >&5
11708 cat conftest.$ac_ext >&5
11710 eval "ac_cv_lib_$ac_lib_var=no"
11715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11716 echo "$ac_t""yes" 1>&6
11717 { test "$extra_verbose" = "yes" && cat << \EOF
11718 Defining HAVE_DLOPEN
11720 cat >> confdefs.h <<\EOF
11721 #define HAVE_DLOPEN 1
11724 DLL_LIB=; with_shlib=yes
11726 echo "$ac_t""no" 1>&6
11730 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11731 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11732 echo "configure:11733: checking for dlopen in -lc" >&5
11733 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11735 xe_check_libs=" -lc "
11736 cat > conftest.$ac_ext <<EOF
11737 #line 11738 "configure"
11738 #include "confdefs.h"
11739 /* Override any gcc2 internal prototype to avoid an error. */
11740 /* We use char because int might match the return type of a gcc2
11741 builtin and then its argument prototype would still apply. */
11748 if { (eval echo configure:11749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11750 eval "ac_cv_lib_$ac_lib_var=yes"
11752 echo "configure: failed program was:" >&5
11753 cat conftest.$ac_ext >&5
11755 eval "ac_cv_lib_$ac_lib_var=no"
11760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11761 echo "$ac_t""yes" 1>&6
11762 { test "$extra_verbose" = "yes" && cat << \EOF
11763 Defining HAVE_DLOPEN
11765 cat >> confdefs.h <<\EOF
11766 #define HAVE_DLOPEN 1
11769 DLL_LIB=; with_shlib=yes
11771 echo "$ac_t""no" 1>&6
11775 test -z "$with_shlib" && {
11776 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11777 echo "configure:11778: checking for shl_load in -ldld" >&5
11778 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11780 xe_check_libs=" -ldld "
11781 cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 /* Override any gcc2 internal prototype to avoid an error. */
11785 /* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11793 if { (eval echo configure:11794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11795 eval "ac_cv_lib_$ac_lib_var=yes"
11797 echo "configure: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11800 eval "ac_cv_lib_$ac_lib_var=no"
11805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11806 echo "$ac_t""yes" 1>&6
11807 { test "$extra_verbose" = "yes" && cat << \EOF
11808 Defining HAVE_SHL_LOAD
11810 cat >> confdefs.h <<\EOF
11811 #define HAVE_SHL_LOAD 1
11814 DLL_LIB=dld; with_shlib=yes
11816 echo "$ac_t""no" 1>&6
11820 test -z "$with_shlib" && {
11821 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11822 echo "configure:11823: checking for dld_init in -ldld" >&5
11823 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11825 xe_check_libs=" -ldld "
11826 cat > conftest.$ac_ext <<EOF
11827 #line 11828 "configure"
11828 #include "confdefs.h"
11829 /* Override any gcc2 internal prototype to avoid an error. */
11830 /* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11838 if { (eval echo configure:11839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11840 eval "ac_cv_lib_$ac_lib_var=yes"
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11845 eval "ac_cv_lib_$ac_lib_var=no"
11850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11851 echo "$ac_t""yes" 1>&6
11852 { test "$extra_verbose" = "yes" && cat << \EOF
11853 Defining HAVE_DLD_INIT
11855 cat >> confdefs.h <<\EOF
11856 #define HAVE_DLD_INIT 1
11859 DLL_LIB=dld; with_shlib=yes
11861 echo "$ac_t""no" 1>&6
11865 if test "$with_shlib" = "yes"; then
11872 ld_dynamic_link_flags=
11874 xealias=$internal_configuration
11876 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
11877 echo "configure:11878: checking how to build dynamic libraries for ${xehost}" >&5
11878 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
11881 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11884 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11885 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11886 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11888 case "$xehost_os" in
11890 # AIX sometimes has problems with the GCC collect2 program. For some
11891 # reason, if we set the COLLECT_NAMES environment variable, the problems
11892 # vanish in a puff of smoke.
11893 if test "${COLLECT_NAMES+set}" != set; then
11895 export COLLECT_NAMES
11900 # Now see if the compiler is really GCC.
11901 if test "$GCC" = "yes"; then
11904 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
11905 echo "configure:11906: checking checking whether we are using GNU C" >&5
11906 cat > conftest.$ac_ext <<EOF
11907 #line 11908 "configure"
11908 #include "confdefs.h"
11915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11916 egrep "yes" >/dev/null 2>&1; then
11925 echo "$ac_t""${XEGCC}" 1>&6
11928 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
11929 echo "configure:11930: checking how to produce PIC code" >&5
11932 can_build_shared=yes
11933 if test "$XEGCC" = yes; then
11936 case "$xehost_os" in
11937 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
11938 # PIC is the default for these OSes.
11942 # We can build DLLs from non-PIC.
11945 # FIXME: we need at least 68020 code to build shared libraries, but
11946 # adding the `-m68020' flag to GCC prevents building anything better,
11948 dll_cflags='-m68020 -resident32 -malways-restore-a4'
11955 # PORTME Check for PIC flags for the system compiler.
11956 case "$xehost_os" in
11958 # Is there a better link_static_flag that works with the bundled CC?
11965 # PIC (with -KPIC) is the default.
11969 # We can build DLLs from non-PIC.
11973 # All OSF/1 code is PIC.
11978 dll_cflags='-belf -Kpic'
12012 can_build_shared=no
12017 if test -n "$dll_cflags"; then
12018 echo "$ac_t""${dll_cflags}" 1>&6
12020 # Check to make sure the dll_cflags actually works.
12021 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12022 echo "configure:12023: checking if PIC flag ${dll_cflags} really works" >&5
12023 save_CFLAGS="$CFLAGS"
12024 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12025 cat > conftest.$ac_ext <<EOF
12026 #line 12027 "configure"
12027 #include "confdefs.h"
12033 if { (eval echo configure:12034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12036 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12037 # reports no error. So, we need to grep stderr for (Bundled).
12038 if grep '(Bundled)' config.log >/dev/null; then
12039 echo "$ac_t""no" 1>&6
12040 can_build_shared=no
12043 echo "$ac_t""yes" 1>&6
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12049 echo "$ac_t""no" 1>&6
12050 can_build_shared=no
12054 CFLAGS="$save_CFLAGS"
12056 echo "$ac_t""none" 1>&6
12059 if test "$can_build_shared" = "yes"; then
12063 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12064 echo "configure:12065: checking if C compiler can produce shared libraries" >&5
12065 if test "$XEGCC" = yes; then
12068 else # Not using GCC
12069 case "$xehost_os" in
12071 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12072 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12075 freebsd2* | netbsd* | openbsd*)
12077 xcldf="${wl}-Bshareable"
12086 xcldf="${wl}-b ${wl}+s"
12089 irix5* | irix6* | osf3* | osf4*)
12090 xcldf="${wl}-shared"
12094 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12100 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12101 xldf="-assert pure-text -Bstatic"
12104 fi # End if if we are using gcc
12106 if test -n "$xcldf"; then
12107 save_LDFLAGS=$LDFLAGS
12109 save_xe_libs=$xe_libs
12110 LDFLAGS="$xcldf $LDFLAGS"
12113 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12114 cat > conftest.$ac_ext <<EOF
12115 #line 12116 "configure"
12116 #include "confdefs.h"
12122 if { (eval echo configure:12123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12132 LDFLAGS=$save_LDFLAGS
12134 xe_libs=$save_xe_libs
12135 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12139 echo "$ac_t""${cc_produces_so}" 1>&6
12142 if test -z "$LTLD"; then
12144 if test "$XEGCC" = yes; then
12145 # Check if gcc -print-prog-name=ld gives a path.
12146 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12147 echo "configure:12148: checking for ld used by GCC" >&5
12148 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12150 # Accept absolute paths.
12152 if test -z "$LTLD"; then
12154 *gcc-lib*) LTLD="$CC"
12162 # If it fails, then pretend we aren't using GCC.
12166 # If it is relative, then search for the first ld in PATH.
12167 with_gnu_ld=unknown
12171 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12172 echo "configure:12173: checking for GNU ld" >&5
12175 if test -z "$LTLD"; then
12176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12177 for ac_dir in $PATH; do
12178 test -z "$ac_dir" && ac_dir=.
12179 if test -f "$ac_dir/$ac_prog"; then
12180 LTLD="$ac_dir/$ac_prog"
12181 # Check to see if the program is GNU ld. I'd rather use --version,
12182 # but apparently some GNU ld's only accept -v.
12183 # Break only if it was the GNU/non-GNU ld that we prefer.
12184 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12194 if test -n "$LTLD"; then
12195 echo "$ac_t""${LTLD}" 1>&6
12197 echo "$ac_t""no" 1>&6
12200 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12201 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12206 ld_dynamic_link_flags=
12208 # Check to see if it really is or isn't GNU ld.
12209 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12210 echo "configure:12211: checking if the linker is GNU ld" >&5
12211 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12212 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12217 echo "$ac_t""${xe_gnu_ld}" 1>&6
12219 case "$xehost_os" in
12220 amigaos* | sunos4*)
12221 # On these operating systems, we should treat GNU ld like the system ld.
12222 gnu_ld_acts_native=yes
12225 gnu_ld_acts_native=no
12229 if test "$cc_produces_so" = "yes"; then
12232 can_build_shared=yes
12234 # OK - only NOW do we futz about with ld.
12235 # See if the linker supports building shared libraries.
12236 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12237 echo "configure:12238: checking whether the linker supports shared libraries" >&5
12239 dll_ldflags=$LDFLAGS
12241 can_build_shared=yes
12242 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12243 # See if GNU ld supports shared libraries.
12244 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12246 dll_ldflags="-shared"
12252 # PORTME fill in a description of your system's linker (not GNU ld)
12253 case "$xehost_os" in
12263 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12264 # support. Future versions do this automatically, but an explicit c++rt0.o
12265 # doesn't break anything, and helps significantly (at the cost of a little
12270 dll_post="/usr/lib/c++rt0.o"
12273 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12276 dll_ldflags="-Bshareable"
12279 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12281 dll_ldflags="-shared"
12295 # Tested with NetBSD 1.2 ld
12310 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12311 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12314 *gcc*) dll_ldflags="-shared"
12317 *) dll_ldflags="-G"
12323 if test "$XEGCC" = yes; then
12343 can_build_shared=no
12347 echo "$ac_t""${ld_shlibs}" 1>&6
12348 if test "$ld_shlibs" = "no"; then
12349 can_build_shared=no
12351 fi # End of if cc_produces_so = no
12354 if test "$xe_gnu_ld" = yes; then
12355 if test "$ld_shlibs" = yes; then
12356 ld_dynamic_link_flags="${wl}-export-dynamic"
12360 if test -z "$ld_dynamic_link_flags"; then
12361 case "$xehost_os" in
12363 ld_dynamic_link_flags=
12367 ld_dynamic_link_flags=
12371 ld_dynamic_link_flags=
12375 ld_dynamic_link_flags=
12379 ld_dynamic_link_flags=
12383 ld_dynamic_link_flags="${wl}-E"
12387 ld_dynamic_link_flags=
12391 ld_dynamic_link_flags=
12395 ld_dynamic_link_flags=
12399 ld_dynamic_link_flags=
12402 solaris2* | solaris7*)
12403 ld_dynamic_link_flags="${wl}-Bdynamic"
12406 sco3.2v5* | unixware* | sysv5* | sysv4*)
12407 ld_dynamic_link_flags="${wl}-Bexport"
12411 ld_dynamic_link_flags=
12415 ld_dynamic_link_flags=
12419 ld_dynamic_link_flags=
12423 fi # End of if -z ld_dynamic_link_flags
12424 fi # End of if test "$can_build_shared" = "yes"
12433 if test "$can_build_shared" = "yes"; then
12434 { test "$extra_verbose" = "yes" && cat << \EOF
12435 Defining HAVE_SHLIB
12437 cat >> confdefs.h <<\EOF
12438 #define HAVE_SHLIB 1
12442 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12443 echo " xemacs will be linked with \"sysdll.o\""
12445 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12446 echo " xemacs will be linked with \"emodules.o\""
12448 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12449 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12450 for ac_func in dlerror _dlerror
12452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12453 echo "configure:12454: checking for $ac_func" >&5
12455 cat > conftest.$ac_ext <<EOF
12456 #line 12457 "configure"
12457 #include "confdefs.h"
12458 /* System header to define __stub macros and hopefully few prototypes,
12459 which can conflict with char $ac_func(); below. */
12460 #include <assert.h>
12461 /* Override any gcc2 internal prototype to avoid an error. */
12462 /* We use char because int might match the return type of a gcc2
12463 builtin and then its argument prototype would still apply. */
12468 /* The GNU C library defines this for functions which it implements
12469 to always fail with ENOSYS. Some functions are actually named
12470 something starting with __ and the normal name is an alias. */
12471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12479 if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12481 eval "ac_cv_func_$ac_func=yes"
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12486 eval "ac_cv_func_$ac_func=no"
12490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12491 echo "$ac_t""yes" 1>&6
12492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12493 { test "$extra_verbose" = "yes" && cat << EOF
12494 Defining $ac_tr_func
12496 cat >> confdefs.h <<EOF
12497 #define $ac_tr_func 1
12502 echo "$ac_t""no" 1>&6
12507 echo "configure: warning: disabling shared library support" 1>&2
12512 cat > conftest.$ac_ext <<EOF
12513 #line 12514 "configure"
12514 #include "confdefs.h"
12515 int main(int c,char *v[]){return 0;}
12517 if { (eval echo configure:12518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12522 echo "configure: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12527 echo "*** PANIC *** The C compiler can no longer build working executables."
12528 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12529 echo "*** PANIC *** The most likely reason for this problem is that configure"
12530 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12531 echo "*** PANIC *** found at run time."
12532 echo "*** PANIC ***"
12533 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12534 echo "*** PANIC *** On other systems, try telling configure where to find the"
12535 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12536 echo "*** PANIC ***"
12537 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12538 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12539 echo "*** PANIC *** on your system. Don't do that."
12544 if test "$win32_processes" = "yes"; then
12545 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12546 echo " xemacs will be linked with \"process-nt.o\""
12549 { test "$extra_verbose" = "yes" && cat << \EOF
12550 Defining HAVE_UNIX_PROCESSES
12552 cat >> confdefs.h <<\EOF
12553 #define HAVE_UNIX_PROCESSES 1
12557 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12558 echo " xemacs will be linked with \"process-unix.o\""
12565 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12570 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12575 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
12576 c_switch_general="$T"
12580 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12581 c_switch_window_system="$T"
12585 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12590 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
12591 ld_switch_general="$T"
12595 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12596 ld_switch_window_system="$T"
12600 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12605 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12606 ld_libs_general="$T"
12610 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
12611 ld_libs_window_system="$T"
12615 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12620 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12621 internal_makefile_list="Makefile.in"
12622 SUBDIR_MAKEFILES=''
12623 test -d lock || mkdir lock
12624 for dir in $MAKE_SUBDIR; do
12625 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12626 test -d "$d" || mkdir "$d"; cd "$d"
12628 * ) test -d "$dir" || mkdir "$dir" ;;
12632 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12633 SUBDIR_MAKEFILES="$T"
12637 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12638 internal_makefile_list="$T"
12645 for dir in src/s src/m; do
12646 if test ! -d "$dir" ; then
12647 echo Making symbolic link to "$srcdir/$dir"
12648 ${LN_S} "$srcdir/$dir" "$dir"
12652 if test "$extra_verbose" = "yes"; then
12654 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
12658 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12659 echo "creating src/gdbinit"; echo ""
12660 echo "source $srcdir/src/gdbinit" > src/gdbinit
12663 if test "$__SUNPRO_C" = "yes"; then
12664 echo "creating .sbinit"; echo ""
12665 ( echo "# For use with Sun WorkShop's Source browser."
12666 echo "# See sbquery(1) and sbinit(4) for more information"
12667 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12691 *\$* ) eval "PREFIX=$PREFIX" ;;
12698 EXEC_PREFIX=$exec_prefix
12700 case "$EXEC_PREFIX" in
12701 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12712 *\$* ) eval "INFODIR=$INFODIR" ;;
12722 case "$INFOPATH" in
12723 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12731 PACKAGE_PATH=$package_path
12733 case "$PACKAGE_PATH" in
12734 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12745 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12753 MODULEDIR=$moduledir
12755 case "$MODULEDIR" in
12756 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12764 SITELISPDIR=$sitelispdir
12766 case "$SITELISPDIR" in
12767 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12775 SITEMODULEDIR=$sitemoduledir
12777 case "$SITEMODULEDIR" in
12778 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12789 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12800 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12808 ARCHLIBDIR=$archlibdir
12810 case "$ARCHLIBDIR" in
12811 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12835 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12843 : ${XEMACS_CC:=$CC}
12847 if test "$with_site_lisp" = "no"; then
12848 { test "$extra_verbose" = "yes" && cat << \EOF
12849 Defining INHIBIT_SITE_LISP
12851 cat >> confdefs.h <<\EOF
12852 #define INHIBIT_SITE_LISP 1
12857 if test "$with_site_modules" = "no"; then
12858 { test "$extra_verbose" = "yes" && cat << \EOF
12859 Defining INHIBIT_SITE_MODULES
12861 cat >> confdefs.h <<\EOF
12862 #define INHIBIT_SITE_MODULES 1
12870 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12871 ac_configure_args="$T"
12873 { test "$extra_verbose" = "yes" && cat << EOF
12874 Defining EMACS_CONFIGURATION = "$canonical"
12876 cat >> confdefs.h <<EOF
12877 #define EMACS_CONFIGURATION "$canonical"
12881 { test "$extra_verbose" = "yes" && cat << EOF
12882 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12884 cat >> confdefs.h <<EOF
12885 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
12889 { test "$extra_verbose" = "yes" && cat << EOF
12890 Defining config_machfile = "$machfile"
12892 cat >> confdefs.h <<EOF
12893 #define config_machfile "$machfile"
12897 { test "$extra_verbose" = "yes" && cat << EOF
12898 Defining config_opsysfile = "$opsysfile"
12900 cat >> confdefs.h <<EOF
12901 #define config_opsysfile "$opsysfile"
12908 { test "$extra_verbose" = "yes" && cat << EOF
12909 Defining LD_SWITCH_X_SITE = $null_string
12911 cat >> confdefs.h <<EOF
12912 #define LD_SWITCH_X_SITE $null_string
12916 { test "$extra_verbose" = "yes" && cat << EOF
12917 Defining LD_SWITCH_X_SITE_AUX = $null_string
12919 cat >> confdefs.h <<EOF
12920 #define LD_SWITCH_X_SITE_AUX $null_string
12924 { test "$extra_verbose" = "yes" && cat << EOF
12925 Defining C_SWITCH_X_SITE = $null_string
12927 cat >> confdefs.h <<EOF
12928 #define C_SWITCH_X_SITE $null_string
12932 { test "$extra_verbose" = "yes" && cat << EOF
12933 Defining LD_SWITCH_SITE = $null_string
12935 cat >> confdefs.h <<EOF
12936 #define LD_SWITCH_SITE $null_string
12940 { test "$extra_verbose" = "yes" && cat << EOF
12941 Defining C_SWITCH_SITE = $null_string
12943 cat >> confdefs.h <<EOF
12944 #define C_SWITCH_SITE $null_string
12950 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12951 Defining GNU_MALLOC
12953 cat >> confdefs.h <<\EOF
12954 #define GNU_MALLOC 1
12958 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12959 Defining USE_SYSTEM_MALLOC
12961 cat >> confdefs.h <<\EOF
12962 #define USE_SYSTEM_MALLOC 1
12966 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12967 Defining USE_DEBUG_MALLOC
12969 cat >> confdefs.h <<\EOF
12970 #define USE_DEBUG_MALLOC 1
12974 { test "$extra_verbose" = "yes" && cat << \EOF
12975 Defining USE_SYSTEM_MALLOC
12977 cat >> confdefs.h <<\EOF
12978 #define USE_SYSTEM_MALLOC 1
12983 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12986 cat >> confdefs.h <<\EOF
12991 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12994 cat >> confdefs.h <<\EOF
12999 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13000 Defining EXTERNAL_WIDGET
13002 cat >> confdefs.h <<\EOF
13003 #define EXTERNAL_WIDGET 1
13007 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13008 Defining NO_DOC_FILE
13010 cat >> confdefs.h <<\EOF
13011 #define NO_DOC_FILE 1
13015 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13018 cat >> confdefs.h <<\EOF
13023 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13026 cat >> confdefs.h <<\EOF
13031 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13032 Defining MAIL_USE_POP
13034 cat >> confdefs.h <<\EOF
13035 #define MAIL_USE_POP 1
13039 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13042 cat >> confdefs.h <<\EOF
13047 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13050 cat >> confdefs.h <<\EOF
13055 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13056 Defining USE_UNION_TYPE
13058 cat >> confdefs.h <<\EOF
13059 #define USE_UNION_TYPE 1
13066 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13068 echo "uname -a: `uname -a`"
13071 echo "$0 $quoted_arguments"
13074 if test ! -z ${emacs_beta_version} ; then
13075 if test -z "${emacs_is_beta}" ; then
13076 xemacs_betaname=".${emacs_beta_version}"
13078 xemacs_betaname="-b${emacs_beta_version}"
13087 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13089 Where should the build process find the source code? $srcdir
13090 What installation prefix should install use? $prefix
13091 What operating system and machine description files should XEmacs use?
13092 \`$opsysfile' and \`$machfile'
13093 What compiler should XEmacs be built with? $CC $CFLAGS
13094 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13095 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13096 What window system should XEmacs use? ${window_system}"
13097 if test "$with_x11" = "yes"; then
13098 echo " Where do we find X Windows header files? $x_includes"
13099 echo " Where do we find X Windows libraries? $x_libraries"
13101 if test -n "$site_includes"; then
13102 echo " Additional header files: $site_includes"
13104 if test -n "$site_libraries"; then
13105 echo " Additional libraries: $site_libraries"
13107 if test -n "$site_prefixes"; then
13108 echo " Additional prefixes: $site_prefixes"
13110 if test -n "$runpath"; then
13111 echo " Runtime library search path: $runpath"
13113 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13114 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13115 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13116 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13117 echo " No Xmu; substituting equivalent routines."
13120 if test "$with_xpm" = yes; then
13121 echo " Compiling in support for XPM images."
13122 elif test "$with_x11" = yes; then
13123 echo " --------------------------------------------------------------------"
13124 echo " WARNING: Compiling without XPM support."
13125 if test "$xpm_problem" != ""; then
13126 echo " Reason: $xpm_problem"
13128 echo " WARNING: You should strongly consider installing XPM."
13129 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13130 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13131 echo " --------------------------------------------------------------------"
13133 if test "$with_png" = yes; then
13134 echo " Compiling in support for PNG image handling."
13135 elif test "$window_system" != "none"; then
13136 echo " --------------------------------------------------------------------"
13137 echo " WARNING: Compiling without PNG image support."
13138 if test "$png_problem" != ""; then
13139 echo " Reason: $png_problem"
13141 echo " WARNING: You should strongly consider installing the PNG libraries."
13142 echo " WARNING: Otherwise certain images and glyphs may not display."
13143 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13144 echo " --------------------------------------------------------------------"
13146 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13147 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13148 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13149 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13150 case "$with_sound" in
13151 nas ) echo " Compiling in network sound (NAS) support." ;;
13152 native ) echo " Compiling in native sound support." ;;
13153 both ) echo " Compiling in both network and native sound support." ;;
13155 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13157 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13158 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13159 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13161 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13163 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13164 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13166 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13167 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13168 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13169 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13170 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13171 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13172 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13173 if test "$with_wnn" = yes; then
13174 echo " Compiling in support for the WNN input method on Mule."
13175 test "$with_wnn6" = yes && echo " Using WNN version 6."
13177 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13179 test "$with_cde" = yes && echo " Compiling in support for CDE."
13180 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13181 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13182 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13183 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13184 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13185 case "$with_menubars" in
13186 lucid ) echo " Using Lucid menubars." ;;
13187 motif ) echo " Using Motif menubars."
13188 echo " *WARNING* The Motif menubar implementation is currently buggy."
13189 echo " We recommend using the Lucid menubar instead."
13190 echo " Re-run configure with --with-menubars='lucid'." ;;
13192 case "$with_scrollbars" in
13193 lucid ) echo " Using Lucid scrollbars." ;;
13194 motif ) echo " Using Motif scrollbars." ;;
13195 athena ) echo " Using Athena scrollbars." ;;
13196 athena3d ) echo " Using Athena-3d scrollbars." ;;
13198 case "$with_dialogs" in
13200 echo " Using Motif dialog boxes."
13201 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13202 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13203 echo " We recommend using the Athena dialog boxes instead."
13204 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13205 echo " Read the PROBLEMS file for more information."
13208 athena ) echo " Using Athena dialog boxes." ;;
13209 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13211 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
13212 test "$with_clash_detection" = yes && \
13213 echo " Clash detection will use \"$lockdir\" for locking files."
13214 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13215 test "$with_pop" = yes && echo " Using POP for mail access."
13216 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13217 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13218 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13219 test "$debug" = yes && echo " Compiling in extra code for debugging."
13220 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13221 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13222 != "no no no no no"; then
13223 echo " WARNING: ---------------------------------------------------------"
13224 echo " WARNING: Compiling in support for runtime error checking."
13225 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13226 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13227 echo " WARNING: ---------------------------------------------------------"
13230 ) | tee -a Installation
13234 # Remove any trailing slashes in these variables.
13235 test -n "$prefix" &&
13236 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13237 test -n "$exec_prefix" &&
13238 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13241 for file in $internal_makefile_list; do
13242 test "$file" = src/Makefile.in && \
13243 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13244 ac_output_files="${ac_output_files+$ac_output_files }$file"
13246 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13247 if test "$with_shlib" = "yes"; then
13248 ac_output_files="$ac_output_files lib-src/ellcc.h"
13253 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13256 # Let make expand exec_prefix.
13257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13259 # Any assignment to VPATH causes Sun make to only execute
13260 # the first set of double-colon rules, so remove it if not needed.
13261 # If there is a colon in the path, we need to keep it.
13262 if test "x$srcdir" = x.; then
13263 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13266 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13268 DEFS=-DHAVE_CONFIG_H
13270 # Without the "./", some shells look in PATH for config.status.
13271 : ${CONFIG_STATUS=./config.status}
13273 echo creating $CONFIG_STATUS
13274 rm -f $CONFIG_STATUS
13275 cat > $CONFIG_STATUS <<EOF
13277 # Generated automatically by configure.
13278 # Run this file to recreate the current configuration.
13279 # This directory was configured as follows,
13280 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13282 # $0 $ac_configure_args
13284 # Compiler output produced by configure, useful for debugging
13285 # configure, is in ./config.log if it exists.
13287 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13290 case "\$ac_option" in
13291 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13292 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13293 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13294 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13295 echo "$CONFIG_STATUS generated by autoconf version 2.12"
13297 -help | --help | --hel | --he | --h)
13298 echo "\$ac_cs_usage"; exit 0 ;;
13299 *) echo "\$ac_cs_usage"; exit 1 ;;
13303 ac_given_srcdir=$srcdir
13304 ac_given_INSTALL="$INSTALL"
13306 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13308 cat >> $CONFIG_STATUS <<EOF
13310 # Protect against being on the right side of a sed subst in config.status.
13311 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13312 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13315 s%@CFLAGS@%$CFLAGS%g
13316 s%@CPPFLAGS@%$CPPFLAGS%g
13317 s%@CXXFLAGS@%$CXXFLAGS%g
13319 s%@LDFLAGS@%$LDFLAGS%g
13321 s%@exec_prefix@%$exec_prefix%g
13322 s%@prefix@%$prefix%g
13323 s%@program_transform_name@%$program_transform_name%g
13324 s%@bindir@%$bindir%g
13325 s%@sbindir@%$sbindir%g
13326 s%@libexecdir@%$libexecdir%g
13327 s%@datadir@%$datadir%g
13328 s%@sysconfdir@%$sysconfdir%g
13329 s%@sharedstatedir@%$sharedstatedir%g
13330 s%@localstatedir@%$localstatedir%g
13331 s%@libdir@%$libdir%g
13332 s%@includedir@%$includedir%g
13333 s%@oldincludedir@%$oldincludedir%g
13334 s%@infodir@%$infodir%g
13335 s%@mandir@%$mandir%g
13337 s%@blddir@%$blddir%g
13340 s%@start_flags@%$start_flags%g
13341 s%@ld_switch_shared@%$ld_switch_shared%g
13342 s%@start_files@%$start_files%g
13344 s%@lib_gcc@%$lib_gcc%g
13345 s%@RANLIB@%$RANLIB%g
13346 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13347 s%@INSTALL_DATA@%$INSTALL_DATA%g
13349 s%@SET_MAKE@%$SET_MAKE%g
13350 s%@X_CFLAGS@%$X_CFLAGS%g
13351 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13352 s%@X_LIBS@%$X_LIBS%g
13353 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13354 s%@install_pp@%$install_pp%g
13355 s%@libs_xauth@%$libs_xauth%g
13356 s%@dnd_objs@%$dnd_objs%g
13357 s%@lwlib_objs@%$lwlib_objs%g
13358 s%@ALLOCA@%$ALLOCA%g
13359 s%@dll_ld@%$dll_ld%g
13360 s%@dll_cflags@%$dll_cflags%g
13361 s%@dll_ldflags@%$dll_ldflags%g
13362 s%@dll_post@%$dll_post%g
13363 s%@dll_ldo@%$dll_ldo%g
13364 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13365 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13366 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13367 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13368 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13369 s%@PROGNAME@%$PROGNAME%g
13370 s%@version@%$version%g
13371 s%@configuration@%$configuration%g
13372 s%@canonical@%$canonical%g
13373 s%@srcdir@%$srcdir%g
13374 s%@pkgdir@%$pkgdir%g
13375 s%@statedir@%$statedir%g
13376 s%@PREFIX@%$PREFIX%g
13377 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13378 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13379 s%@INFODIR@%$INFODIR%g
13380 s%@infopath@%$infopath%g
13381 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13382 s%@INFOPATH@%$INFOPATH%g
13383 s%@package_path@%$package_path%g
13384 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13385 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13386 s%@lispdir@%$lispdir%g
13387 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13388 s%@LISPDIR@%$LISPDIR%g
13389 s%@moduledir@%$moduledir%g
13390 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13391 s%@MODULEDIR@%$MODULEDIR%g
13392 s%@sitelispdir@%$sitelispdir%g
13393 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13394 s%@SITELISPDIR@%$SITELISPDIR%g
13395 s%@sitemoduledir@%$sitemoduledir%g
13396 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13397 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13398 s%@etcdir@%$etcdir%g
13399 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13400 s%@ETCDIR@%$ETCDIR%g
13401 s%@lockdir@%$lockdir%g
13402 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13403 s%@LOCKDIR@%$LOCKDIR%g
13404 s%@archlibdir@%$archlibdir%g
13405 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13406 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13407 s%@docdir@%$docdir%g
13408 s%@bitmapdir@%$bitmapdir%g
13409 s%@extra_objs@%$extra_objs%g
13410 s%@machfile@%$machfile%g
13411 s%@opsysfile@%$opsysfile%g
13412 s%@c_switch_general@%$c_switch_general%g
13413 s%@c_switch_window_system@%$c_switch_window_system%g
13414 s%@c_switch_all@%$c_switch_all%g
13415 s%@ld_switch_general@%$ld_switch_general%g
13416 s%@ld_switch_window_system@%$ld_switch_window_system%g
13417 s%@ld_switch_all@%$ld_switch_all%g
13418 s%@ld_libs_general@%$ld_libs_general%g
13419 s%@ld_libs_window_system@%$ld_libs_window_system%g
13420 s%@ld_libs_all@%$ld_libs_all%g
13421 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13422 s%@native_sound_lib@%$native_sound_lib%g
13423 s%@sound_cflags@%$sound_cflags%g
13424 s%@dynodump_arch@%$dynodump_arch%g
13425 s%@XEMACS_CC@%$XEMACS_CC%g
13426 s%@internal_makefile_list@%$internal_makefile_list%g
13431 cat >> $CONFIG_STATUS <<\EOF
13433 # Split the substitutions into bite-sized pieces for seds with
13434 # small command number limits, like on Digital OSF/1 and HP-UX.
13435 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13436 ac_file=1 # Number of current file.
13437 ac_beg=1 # First line for current file.
13438 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13441 while $ac_more_lines; do
13442 if test $ac_beg -gt 1; then
13443 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13445 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13447 if test ! -s conftest.s$ac_file; then
13448 ac_more_lines=false
13449 rm -f conftest.s$ac_file
13451 if test -z "$ac_sed_cmds"; then
13452 ac_sed_cmds="sed -f conftest.s$ac_file"
13454 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13456 ac_file=`expr $ac_file + 1`
13458 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13461 if test -z "$ac_sed_cmds"; then
13466 cat >> $CONFIG_STATUS <<EOF
13468 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13470 cat >> $CONFIG_STATUS <<\EOF
13471 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13474 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13475 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13476 *) ac_file_in="${ac_file}.in" ;;
13479 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13481 # Remove last slash and all that follows it. Not all systems have dirname.
13482 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13483 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13484 # The file is in a subdirectory.
13485 test ! -d "$ac_dir" && mkdir "$ac_dir"
13486 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13487 # A "../" for each directory in $ac_dir_suffix.
13488 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13490 ac_dir_suffix= ac_dots=
13493 case "$ac_given_srcdir" in
13495 if test -z "$ac_dots"; then top_srcdir=.
13496 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13497 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13498 *) # Relative path.
13499 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13500 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13503 case "$ac_given_INSTALL" in
13504 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13505 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13508 echo creating "$ac_file"
13510 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13512 *Makefile*) ac_comsub="1i\\
13513 # $configure_input" ;;
13517 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13519 s%@configure_input@%$configure_input%g
13520 s%@srcdir@%$srcdir%g
13521 s%@top_srcdir@%$top_srcdir%g
13522 s%@INSTALL@%$INSTALL%g
13523 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13527 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13528 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13530 # ac_d sets the value in "#define NAME VALUE" lines.
13531 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13532 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13535 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13536 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13537 ac_uB='\([ ]\)%\1#\2define\3'
13540 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13541 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13542 ac_eB='$%\1#\2define\3'
13546 if test "${CONFIG_HEADERS+set}" != set; then
13548 cat >> $CONFIG_STATUS <<EOF
13549 CONFIG_HEADERS="src/config.h lwlib/config.h"
13551 cat >> $CONFIG_STATUS <<\EOF
13553 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13554 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13556 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13557 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13558 *) ac_file_in="${ac_file}.in" ;;
13561 echo creating $ac_file
13563 rm -f conftest.frag conftest.in conftest.out
13564 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13565 cat $ac_file_inputs > conftest.in
13569 # Transform confdefs.h into a sed script conftest.vals that substitutes
13570 # the proper values into config.h.in to produce config.h. And first:
13571 # Protect against being on the right side of a sed subst in config.status.
13572 # Protect against being in an unquoted here document in config.status.
13573 rm -f conftest.vals
13574 cat > conftest.hdr <<\EOF
13577 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13581 sed -n -f conftest.hdr confdefs.h > conftest.vals
13584 # This sed command replaces #undef with comments. This is necessary, for
13585 # example, in the case of _POSIX_SOURCE, which is predefined and required
13586 # on some systems where configure will not decide to define it.
13587 cat >> conftest.vals <<\EOF
13588 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13591 # Break up conftest.vals because some shells have a limit on
13592 # the size of here documents, and old seds have small limits too.
13594 rm -f conftest.tail
13597 ac_lines=`grep -c . conftest.vals`
13598 # grep -c gives empty output for an empty file on some AIX systems.
13599 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13600 # Write a limited-size here document to conftest.frag.
13601 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13602 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13604 sed -f conftest.frag conftest.in > conftest.out
13606 mv conftest.out conftest.in
13607 ' >> $CONFIG_STATUS
13608 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13609 rm -f conftest.vals
13610 mv conftest.tail conftest.vals
13612 rm -f conftest.vals
13614 cat >> $CONFIG_STATUS <<\EOF
13615 rm -f conftest.frag conftest.h
13616 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13617 cat conftest.in >> conftest.h
13619 if cmp -s $ac_file conftest.h 2>/dev/null; then
13620 echo "$ac_file is unchanged"
13623 # Remove last slash and all that follows it. Not all systems have dirname.
13624 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13625 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13626 # The file is in a subdirectory.
13627 test ! -d "$ac_dir" && mkdir "$ac_dir"
13630 mv conftest.h $ac_file
13635 cat >> $CONFIG_STATUS <<EOF
13637 top_srcdir="$srcdir"
13638 MAKE_SUBDIR="$MAKE_SUBDIR"
13641 cat >> $CONFIG_STATUS <<\EOF
13642 for dir in . $MAKE_SUBDIR; do
13647 sed -e '/^# Generated/d' \
13648 -e 's%/\*\*/#.*%%' \
13663 echo creating $dir/Makefile
13664 $CPP -I. -I${top_srcdir}/src junk.c \
13665 | sed -e 's/^\#.*//' \
13666 -e 's/^[ ][ ]*$//'\
13668 | sed -n -e '/^..*$/p' \
13674 chmod 444 Makefile.new
13675 mv -f Makefile.new Makefile
13677 echo creating $dir/GNUmakefile
13678 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13679 | sed -e 's/^\#.*//' \
13680 -e 's/^[ ][ ]*$//'\
13682 | sed -n -e '/^..*$/p' \
13688 chmod 444 Makefile.new
13689 mv -f Makefile.new GNUmakefile
13695 sed < config.status >> lib-src/config.values \
13696 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13697 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13698 -e 's/^\([^ ]*\) $/\1 ""/' \
13704 chmod +x $CONFIG_STATUS
13705 rm -fr confdefs* $ac_clean_files
13706 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1