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.13
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'
204 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
205 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
206 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
213 ac_n= ac_c='\c' ac_t=
217 progname="`echo $0 | sed 's:^\./\./:\./:'`"
220 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
221 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
224 exec_prefix='${prefix}'
225 bindir='${exec_prefix}/bin'
226 datadir='${prefix}/lib'
227 statedir='${prefix}/lib'
228 libdir='${exec_prefix}/lib'
229 mandir='${prefix}/man/man1'
230 inststaticdir='${PROGNAME}'
231 instvardir='${PROGNAME}-${version}'
232 infodir='${datadir}/${instvardir}/info'
235 lispdir='${datadir}/${instvardir}/lisp'
236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
239 pkgdir='${datadir}/${instvardir}/lisp'
241 etcdir='${datadir}/${instvardir}/etc'
242 lockdir='${statedir}/${inststaticdir}/lock'
243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
247 with_site_modules='yes'
253 cpp='' cppflags='' libs='' ldflags=''
258 with_system_malloc='default'
259 with_dlmalloc='default'
272 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
277 | --no-cr | --no-c) ;;
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
281 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
282 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
286 while test $# != 0; do
289 --no-create|--no-recursion) ;;
293 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
294 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
298 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
299 val="yes" valomitted=yes
304 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
306 case "${valomitted}-${opt}" in yes-without_* )
307 opt=`echo $opt | sed 's/without/with/'`
308 valomitted="no" val="no" ;;
315 with_site_modules | \
365 memory_usage_stats | \
366 with_clash_detection | \
370 y | ye | yes ) val=yes ;;
372 * ) (echo "$progname: Usage error:"
373 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
374 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
376 eval "$opt=\"$val\"" ;;
394 site_runtime_libraries )
395 if test "$valomitted" = "yes" ; then
396 if test "$#" = 0 ; then
397 (echo "$progname: Usage error:"
398 echo " " "The \`--$optname' option requires a value."
399 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
408 with_debug_malloc | use_debug_malloc | \
409 with_system_malloc | use_system_malloc )
411 y | ye | yes ) val=yes ;;
413 d | de | def | defa | defau | defaul | default ) val=default ;;
414 * ) (echo "$progname: Usage error:"
415 echo " " "The \`--$optname' option requires one of these values:
416 \`yes', \`no', or \`default'."
417 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
419 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
424 with_database_berkdb=no
426 with_database_gnudbm=no
427 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
430 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
431 d | db | dbm ) with_database_dbm=yes ;;
432 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
433 * ) (echo "$progname: Usage error:"
434 echo " " "The \`--$optname' option value
435 must be either \`no' or a comma-separated list
436 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
437 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
440 if test "$with_database_dbm" = "yes" -a \
441 "$with_database_gnudbm" = "yes"; then
442 (echo "$progname: Usage error:"
443 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
444 with the \`--$optname' option."
445 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
451 y | ye | yes ) val=native ;;
452 n | no | non | none ) val=no;;
453 na | nat | nati | nativ | native ) val=native ;;
454 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
455 b | bo | bot | both ) val=both;;
456 * ) (echo "$progname: Usage error:"
457 echo " " "The \`--$optname' option must have one of these values:
458 \`native', \`nas', \`both', or \`none'."
459 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
466 y | ye | yes ) val=yes ;;
467 n | no | non | none ) val=no ;;
468 x | xl | xli | xlib ) val=xlib ;;
469 m | mo | mot | moti | motif ) val=motif ;;
470 * ) (echo "$progname: Usage error:"
471 echo " " "The \`--$optname' option must have one of these values:
472 \`motif', \`xlib', \`yes', or \`no'."
473 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
483 * ) (echo "$progname: Usage error:"
484 echo " " "The \`--$optname' option must have one of these values:
485 \`lockf', \`flock', or \`file'."
486 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
493 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
495 n | no | non | none ) new_default=no ;;
496 a | al | all ) new_default=yes ;;
498 extents ) error_check_extents=yes ;;
499 noextents ) error_check_extents=no ;;
501 typecheck ) error_check_typecheck=yes ;;
502 notypecheck ) error_check_typecheck=no ;;
504 bufpos ) error_check_bufpos=yes ;;
505 nobufpos ) error_check_bufpos=no ;;
507 gc ) error_check_gc=yes ;;
508 nogc ) error_check_gc=no ;;
510 malloc ) error_check_malloc=yes ;;
511 nomalloc ) error_check_malloc=no ;;
513 byte_code ) error_check_byte_code=yes ;;
514 nobyte_code ) error_check_byte_code=no ;;
516 * ) bogus_error_check=yes ;;
518 if test "$bogus_error_check" -o \
519 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
520 if test "$error_check_default" = yes ; then
521 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
523 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
525 (echo "$progname: Usage error:"
526 echo " " "Valid types for the \`--$optname' option are:
528 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
529 elif test -n "$new_default" ; then
530 error_check_extents=$new_default
531 error_check_typecheck=$new_default
532 error_check_bufpos=$new_default
533 error_check_gc=$new_default
534 error_check_malloc=$new_default
535 error_check_byte_code=$new_default
536 new_default= # reset this
543 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
544 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
545 archlibdir | docdir | package_path )
546 if test "$valomitted" = "yes"; then
547 if test "$#" = 0; then
548 (echo "$progname: Usage error:"
549 echo " " "The \`--$optname' option requires a value."
550 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
557 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
558 Defining EXEC_PREFIX_USER_DEFINED
560 cat >> confdefs.h <<\EOF
561 #define EXEC_PREFIX_USER_DEFINED 1
565 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
566 Defining LISPDIR_USER_DEFINED
568 cat >> confdefs.h <<\EOF
569 #define LISPDIR_USER_DEFINED 1
573 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
574 Defining SITELISPDIR_USER_DEFINED
576 cat >> confdefs.h <<\EOF
577 #define SITELISPDIR_USER_DEFINED 1
581 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
582 Defining MODULEDIR_USER_DEFINED
584 cat >> confdefs.h <<\EOF
585 #define MODULEDIR_USER_DEFINED 1
589 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
590 Defining ETCDIR_USER_DEFINED
592 cat >> confdefs.h <<\EOF
593 #define ETCDIR_USER_DEFINED 1
597 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
598 Defining INFODIR_USER_DEFINED
600 cat >> confdefs.h <<\EOF
601 #define INFODIR_USER_DEFINED 1
605 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
606 Defining INFOPATH_USER_DEFINED
608 cat >> confdefs.h <<\EOF
609 #define INFOPATH_USER_DEFINED 1
613 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
614 Defining PACKAGE_PATH_USER_DEFINED
616 cat >> confdefs.h <<\EOF
617 #define PACKAGE_PATH_USER_DEFINED 1
622 { test "$extra_verbose" = "yes" && cat << \EOF
623 Defining INFODIR_USER_DEFINED
625 cat >> confdefs.h <<\EOF
626 #define INFODIR_USER_DEFINED 1
630 { test "$extra_verbose" = "yes" && cat << \EOF
631 Defining LISPDIR_USER_DEFINED
633 cat >> confdefs.h <<\EOF
634 #define LISPDIR_USER_DEFINED 1
638 { test "$extra_verbose" = "yes" && cat << \EOF
639 Defining MODULEDIR_USER_DEFINED
641 cat >> confdefs.h <<\EOF
642 #define MODULEDIR_USER_DEFINED 1
646 { test "$extra_verbose" = "yes" && cat << \EOF
647 Defining ETCDIR_USER_DEFINED
649 cat >> confdefs.h <<\EOF
650 #define ETCDIR_USER_DEFINED 1
654 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
655 Defining LOCKDIR_USER_DEFINED
657 cat >> confdefs.h <<\EOF
658 #define LOCKDIR_USER_DEFINED 1
662 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
663 Defining DOCDIR_USER_DEFINED
665 cat >> confdefs.h <<\EOF
666 #define DOCDIR_USER_DEFINED 1
670 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
671 Defining ARCHLIBDIR_USER_DEFINED
673 cat >> confdefs.h <<\EOF
674 #define ARCHLIBDIR_USER_DEFINED 1
683 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
686 "with_scrollbars" | \
690 l | lu | luc | luci | lucid ) val=lucid ;;
691 m | mo | mot | moti | motif ) val=motif ;;
692 athena3d | athena-3d ) val=athena3d ;;
693 a | at | ath | athe | athen | athena ) val=athena ;;
694 n | no | non | none ) val=no ;;
695 * ) (echo "$progname: Usage error:"
696 echo " " "The \`--$optname' option must have one of these values:
697 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
698 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
705 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
708 * ) (echo "$progname: Usage error:"
709 echo " " "Unrecognized option: $arg"
710 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
715 *-*-*) configuration="$arg" ;;
717 *) (echo "$progname: Usage error:"
718 echo " " "Unrecognized argument: $arg"
719 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
725 test -n "$cpp" && CPP="$cpp"
726 test -n "$cppflags" && CPPFLAGS="$cppflags"
727 test -n "$libs" && LIBS="$libs"
728 test -n "$ldflags" && LDFLAGS="$ldflags"
730 eval set x "$quoted_arguments"; shift
732 test "$extra_verbose" = "yes" && verbose=yes
734 test -n "$with_x" && with_x11="$with_x"
736 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
737 test "$with_system_malloc" = "default" && with_system_malloc=yes
742 if test "$with_cde $with_tooltalk" = "yes no"; then
743 (echo "$progname: Usage error:"
744 echo " " "--with-cde requires --with-tooltalk"
745 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
746 elif test "$with_tooltalk" = "no" ; then with_cde=no
747 elif test "$with_cde" = "yes"; then with_tooltalk=yes
754 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
755 if test -f "$dir/src/lisp.h" -a \
756 -f "$dir/lisp/version.el" ; then
761 if test -z "$srcdir" ; then
762 (echo "$progname: Usage error:"
763 echo " " "Neither the current directory nor its parent seem to
764 contain the XEmacs sources. If you do not want to build XEmacs in its
765 source tree, you should run \`$progname' in the directory in which
766 you wish to build XEmacs, using the \`--srcdir' option to say where the
767 sources may be found."
768 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
773 if test ! -f "$srcdir/src/lisp.h" -o \
774 ! -f "$srcdir/lisp/version.el" ; then
775 (echo "$progname: Usage error:"
776 echo " " "The directory specified with the \`--srcdir' option,
777 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
778 either run the \`$progname' script at the top of the XEmacs source
779 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
780 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
785 if test -z "$configuration"; then
786 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
787 if test -z "$configuration"; then
788 (echo "$progname: Usage error:"
789 echo " " "XEmacs has not been ported to this host type.
790 Try explicitly specifying the CONFIGURATION when rerunning configure."
791 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
795 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
796 echo "configure:797: checking whether ln -s works" >&5
799 if ln -s X conftestdata 2>/dev/null
802 ac_cv_prog_LN_S="ln -s"
806 LN_S="$ac_cv_prog_LN_S"
807 if test "$ac_cv_prog_LN_S" = "ln -s"; then
808 echo "$ac_t""yes" 1>&6
810 echo "$ac_t""no" 1>&6
814 for dir in lisp etc man info; do
815 if test ! -d "$dir" ; then
816 echo Making symbolic link to "$srcdir/$dir"
817 ${LN_S} "$srcdir/$dir" "$dir"
822 absolute_pwd="`pwd`";
823 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
825 else blddir="$absolute_pwd"; if test -d "/net"; then
826 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
827 blddir=`echo "$blddir" | \
828 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
835 . ) srcdir="$blddir" ;;
836 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
837 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
838 srcdir=`echo "$srcdir" | \
839 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
843 if test `pwd` != `sh -c cd $srcdir && pwd` \
844 && test -f "$srcdir/src/config.h"; then
845 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
846 echo " as a build directory right now; it has been configured in its own"
847 echo " right. To configure in another directory as well, you MUST"
848 echo " use GNU make. If you do not have GNU make, then you must"
849 echo " now do \`make distclean' in $srcdir,"
850 echo " and then run $progname again.") >&2
851 extrasub='/^VPATH[ ]*=/c\
857 vpath %.in $(srcdir)'
860 . "$srcdir/version.sh" || exit 1;
861 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
862 : "${extra_verbose=$beta}"
863 version="${emacs_major_version}.${emacs_minor_version}"
864 { test "$extra_verbose" = "yes" && cat << EOF
865 Defining EMACS_MAJOR_VERSION = $emacs_major_version
867 cat >> confdefs.h <<EOF
868 #define EMACS_MAJOR_VERSION $emacs_major_version
872 { test "$extra_verbose" = "yes" && cat << EOF
873 Defining EMACS_MINOR_VERSION = $emacs_minor_version
875 cat >> confdefs.h <<EOF
876 #define EMACS_MINOR_VERSION $emacs_minor_version
880 if test -n "$emacs_beta_version" ; then
881 if test "$beta" = "yes"; then
882 version="${version}-b${emacs_beta_version}"
883 { test "$extra_verbose" = "yes" && cat << EOF
884 Defining EMACS_BETA_VERSION = $emacs_beta_version
886 cat >> confdefs.h <<EOF
887 #define EMACS_BETA_VERSION $emacs_beta_version
892 version="${version}.${emacs_beta_version}"
893 { test "$extra_verbose" = "yes" && cat << EOF
894 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
896 cat >> confdefs.h <<EOF
897 #define EMACS_PATCH_LEVEL $emacs_beta_version
903 { test "$extra_verbose" = "yes" && cat << EOF
904 Defining XEMACS_CODENAME = "$xemacs_codename"
906 cat >> confdefs.h <<EOF
907 #define XEMACS_CODENAME "$xemacs_codename"
911 { test "$extra_verbose" = "yes" && cat << EOF
912 Defining EMACS_VERSION = "$version"
914 cat >> confdefs.h <<EOF
915 #define EMACS_VERSION "$version"
920 if test "$with_infodock" = "yes"; then
921 if test ! -f ../../ID-INSTALL; then
922 echo "Cannot build InfoDock without InfoDock sources"
927 if test "$with_infodock" = "yes"; then
928 { test "$extra_verbose" = "yes" && cat << EOF
929 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
931 cat >> confdefs.h <<EOF
932 #define INFODOCK_MAJOR_VERSION $infodock_major_version
936 { test "$extra_verbose" = "yes" && cat << EOF
937 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
939 cat >> confdefs.h <<EOF
940 #define INFODOCK_MINOR_VERSION $infodock_minor_version
944 { test "$extra_verbose" = "yes" && cat << EOF
945 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
947 cat >> confdefs.h <<EOF
948 #define INFODOCK_BUILD_VERSION $infodock_build_version
952 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
954 CPPFLAGS="$CPPFLAGS -DINFODOCK"
959 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
960 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
961 Defining ERROR_CHECK_EXTENTS
963 cat >> confdefs.h <<\EOF
964 #define ERROR_CHECK_EXTENTS 1
968 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
969 Defining ERROR_CHECK_TYPECHECK
971 cat >> confdefs.h <<\EOF
972 #define ERROR_CHECK_TYPECHECK 1
976 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
977 Defining ERROR_CHECK_BUFPOS
979 cat >> confdefs.h <<\EOF
980 #define ERROR_CHECK_BUFPOS 1
984 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
985 Defining ERROR_CHECK_GC
987 cat >> confdefs.h <<\EOF
988 #define ERROR_CHECK_GC 1
992 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
993 Defining ERROR_CHECK_MALLOC
995 cat >> confdefs.h <<\EOF
996 #define ERROR_CHECK_MALLOC 1
1000 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1001 Defining ERROR_CHECK_BYTE_CODE
1003 cat >> confdefs.h <<\EOF
1004 #define ERROR_CHECK_BYTE_CODE 1
1008 if test "${debug:=$beta}" = "yes"; then
1009 use_assertions=yes memory_usage_stats=yes
1010 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1011 echo " xemacs will be linked with \"debug.o\""
1013 { test "$extra_verbose" = "yes" && cat << \EOF
1014 Defining DEBUG_XEMACS
1016 cat >> confdefs.h <<\EOF
1017 #define DEBUG_XEMACS 1
1022 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1023 Defining USE_ASSERTIONS
1025 cat >> confdefs.h <<\EOF
1026 #define USE_ASSERTIONS 1
1030 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1031 Defining MEMORY_USAGE_STATS
1033 cat >> confdefs.h <<\EOF
1034 #define MEMORY_USAGE_STATS 1
1040 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1041 echo "configure:1042: checking "host system type"" >&5
1042 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1043 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1044 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1045 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1046 echo "$ac_t""$configuration" 1>&6
1054 case "$canonical" in
1055 sparc-*-* ) machine=sparc ;;
1056 alpha*-*-* ) machine=alpha ;;
1057 vax-*-* ) machine=vax ;;
1058 mips-dec-* ) machine=pmax ;;
1059 mips-sgi-* ) machine=iris4d ;;
1060 romp-ibm-* ) machine=ibmrt ;;
1061 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1062 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1063 powerpc*-* ) machine=powerpc ;;
1064 hppa-*-* ) machine=hp800 ;;
1065 m88k-dg-* ) machine=aviion ;;
1066 m68*-sony-* ) machine=news ;;
1067 mips-sony-* ) machine=news-risc ;;
1068 clipper-* ) machine=clipper ;;
1069 arm-* ) machine=arm ;;
1070 ns32k-* ) machine=ns32000 ;;
1073 case "$canonical" in
1074 *-*-linux* ) opsys=linux ;;
1075 *-*-netbsd* ) opsys=netbsd ;;
1076 *-*-openbsd* ) opsys=openbsd ;;
1077 *-*-nextstep* ) opsys=nextstep ;;
1078 *-*-vms ) opsys=vms ;;
1080 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1081 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1082 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1083 *-dec-osf3* ) opsys=decosf3-1 ;;
1084 *-dec-osf4* ) opsys=decosf4-0 ;;
1086 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1087 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1088 *-*-ultrix* ) opsys=ultrix4-3 ;;
1090 *-*-aix3.1* ) opsys=aix3-1 ;;
1091 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1092 *-*-aix3* ) opsys=aix3-2 ;;
1093 *-*-aix4.0* ) opsys=aix4 ;;
1094 *-*-aix4.1* ) opsys=aix4-1 ;;
1095 *-*-aix4* ) opsys=aix4-2 ;;
1097 *-gnu* ) opsys=gnu ;;
1098 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1099 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1100 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1101 *-*-aos4.2 ) opsys=bsd4-2 ;;
1102 *-*-aos* ) opsys=bsd4-3 ;;
1103 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1104 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1105 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1106 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1107 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1108 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1109 if test -z "$NON_GNU_CPP" ; then
1110 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1111 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1115 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1116 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1119 case "$canonical" in
1122 case "$canonical" in
1123 i[3-9]86-*-netbsd*) machine=intel386 ;;
1124 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1125 machine=hp9000s300 ;;
1126 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1127 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1132 case "${canonical}" in
1133 i386-*-openbsd*) machine=intel386 ;;
1134 m68k-*-openbsd*) machine=hp9000s300 ;;
1135 mipsel-*-openbsd*) machine=pmax ;;
1139 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1140 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1142 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1143 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1145 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1147 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1149 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1151 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1153 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1155 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1156 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1157 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1160 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1162 *-convex-bsd* | *-convex-convexos* )
1163 machine=convex opsys=bsd4-3
1164 NON_GNU_CPP="cc -E -P"
1167 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1169 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1170 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1171 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1172 m88k-dg-dgux* ) opsys=dgux ;;
1174 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1175 m88k-motorola-sysv4* )
1176 machine=delta88k opsys=usg5-4-2
1178 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1180 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1181 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1183 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1185 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1186 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1187 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1190 case "`uname -r`" in
1191 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1192 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1194 NON_GNU_CPP="/lib/cpp"
1196 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1197 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1199 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1201 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1204 case "$canonical" in
1205 m68* ) machine=hp9000s300 ;;
1206 hppa* ) machine=hp800 ;;
1209 case "$canonical" in
1210 *-hp-hpux7* ) opsys=hpux ;;
1211 *-hp-hpux8* ) opsys=hpux8 ;;
1212 *-hp-hpux9* ) opsys=hpux9 ;;
1213 *-hp-hpux10* ) opsys=hpux10 ;;
1214 *-hp-hpux11* ) opsys=hpux11 ;;
1218 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1219 echo " xemacs will be linked with \"strcat.o\""
1222 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1223 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1224 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1226 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1229 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1230 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1232 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1233 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1234 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1235 romp-ibm-aos* ) opsys=bsd4-3 ;;
1236 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1237 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1239 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1240 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1242 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1244 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1246 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1248 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1250 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1252 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1254 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1256 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1258 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1260 mips-mips-usg* ) machine=mips4 ;;
1263 NON_GNU_CC="cc -systype bsd43"
1264 NON_GNU_CPP="cc -systype bsd43 -E"
1265 case "$canonical" in
1266 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1267 mips-mips-riscos5* ) opsys=riscos5 ;;
1270 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1271 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1273 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1275 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1277 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1278 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1280 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1282 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1284 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1286 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1288 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1289 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1291 mips-siemens-sysv* | mips-sni-sysv*)
1292 machine=mips-siemens opsys=usg5-4
1293 NON_GNU_CC=/usr/ccs/bin/cc
1294 NON_GNU_CPP=/usr/ccs/lib/cpp
1299 NON_GNU_CC=/usr/ccs/bin/cc
1300 NON_GNU_CPP=/usr/ccs/lib/cpp
1303 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1304 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1305 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1306 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1307 mips-sgi-irix6* ) opsys=irix6-0 ;;
1308 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1309 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1310 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1311 mips-sgi-irix* ) opsys=irix5-0 ;;
1313 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1314 *-sony-news* ) opsys=newsos5 ;;
1316 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1318 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1319 case "$canonical" in
1320 m68*-sunos1* ) machine=sun1 ;;
1321 m68*-sunos2* ) machine=sun2 ;;
1322 m68* ) machine=sun3 ;;
1323 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1324 i*86-*-* ) machine=intel386 ;;
1325 rs6000* ) machine=rs6000 ;;
1328 case "$canonical" in *-sunos5*)
1329 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1332 case "$canonical" in
1334 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1337 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1341 case "$canonical" in
1344 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1345 { test "$extra_verbose" = "yes" && cat << EOF
1346 Defining OS_RELEASE = $os_release
1348 cat >> confdefs.h <<EOF
1349 #define OS_RELEASE $os_release
1354 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1355 *-sunos4.0* ) opsys=sunos4-0 ;;
1356 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1357 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1358 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1359 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1360 *-mach* ) opsys=mach-bsd4-3 ;;
1364 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1366 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1369 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1371 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1372 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1374 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1376 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1378 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1379 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1381 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1383 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1386 case "$canonical" in
1387 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1388 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1389 *-mach* ) opsys=mach-bsd4-3 ;;
1393 ns16k-whitechapel-* ) machine=mg1 ;;
1395 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1399 case "$canonical" in
1400 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1401 *-isc2.2* ) opsys=isc2-2 ;;
1402 *-isc4.0* ) opsys=isc4-0 ;;
1403 *-isc4.* ) opsys=isc4-1
1404 GCC_TEST_OPTIONS=-posix
1405 NON_GCC_TEST_OPTIONS=-Xp
1407 *-isc* ) opsys=isc3-0 ;;
1408 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1409 *-esix* ) opsys=esix ;;
1410 *-mach* ) opsys=mach-bsd4-3 ;;
1411 *-xenix* ) opsys=xenix ;;
1412 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1413 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1414 *-bsdi4* ) opsys=bsdos4 ;;
1415 *-bsdi3* ) opsys=bsdos3 ;;
1416 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1417 *-bsdi2* ) opsys=bsdos2 ;;
1418 *-sco3.2v5* ) opsys=sco5 ;
1419 if test "$dynamic" = "yes" ; then
1420 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1422 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1424 *-sysv5* ) opsys=sco7 ;;
1425 *-386bsd* ) opsys=386bsd ;;
1426 *-freebsd* ) opsys=freebsd ;;
1427 *-nextstep* ) opsys=nextstep ;;
1428 *-pc-cygwin* ) opsys=cygwin32 ;;
1429 *-pc-mingw* ) opsys=mingw32 ;
1430 test -z "$with_tty" && with_tty="no";;
1434 m68k-*-linux* ) machine=m68k opsys=linux ;;
1438 if test -z "$machine" -o -z "$opsys"; then
1439 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1440 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1445 if test -z "$dynamic"; then
1447 hpux* | sunos4* ) dynamic=no ;;
1451 if test "$dynamic" = "yes"; then
1453 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1454 decosf* ) ld_call_shared="-call_shared" ;;
1456 else case "$opsys" in
1458 echo "Static linking is not supported on Solaris 2."
1459 echo "Rerun configure without specifying --dynamic=no."
1461 linux ) ld_call_shared="-Bstatic" ;;
1462 decosf* ) ld_call_shared="-non_shared" ;;
1466 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1468 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1469 { test "$extra_verbose" = "yes" && cat << EOF
1470 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1472 cat >> confdefs.h <<EOF
1473 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1478 machfile="m/${machine}.h"
1479 opsysfile="s/${opsys}.h"
1482 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1483 if test "$with_workshop $with_tooltalk" = "yes no"; then
1484 (echo "$progname: Usage error:"
1485 echo " " "--with-workshop requires --with-tooltalk"
1486 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1487 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1488 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1491 if test "$with_workshop" = "yes"; then
1492 { test "$extra_verbose" = "yes" && cat << \EOF
1495 cat >> confdefs.h <<\EOF
1500 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1501 echo " xemacs will be linked with \"sunpro.o\""
1505 if test "$with_clash_detection" = "yes"; then
1506 { test "$extra_verbose" = "yes" && cat << \EOF
1507 Defining CLASH_DETECTION
1509 cat >> confdefs.h <<\EOF
1510 #define CLASH_DETECTION 1
1514 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1515 echo " xemacs will be linked with \"filelock.o\""
1519 test -n "$compiler" && CC="$compiler"
1520 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1523 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1524 if test "${CFLAGS-unset}" != unset
1525 then cflags_specified=yes;
1526 else cflags_specified=no;
1529 xe_save_CFLAGS="$CFLAGS"
1531 # Extract the first word of "gcc", so it can be a program name with args.
1532 set dummy gcc; ac_word=$2
1533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1534 echo "configure:1535: checking for $ac_word" >&5
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1541 for ac_dir in $ac_dummy; do
1542 test -z "$ac_dir" && ac_dir=.
1543 if test -f $ac_dir/$ac_word; then
1551 if test -n "$CC"; then
1552 echo "$ac_t""$CC" 1>&6
1554 echo "$ac_t""no" 1>&6
1557 if test -z "$CC"; then
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1561 echo "configure:1562: checking for $ac_word" >&5
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC="$CC" # Let the user override the test.
1566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1569 for ac_dir in $ac_dummy; do
1570 test -z "$ac_dir" && ac_dir=.
1571 if test -f $ac_dir/$ac_word; then
1572 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1573 ac_prog_rejected=yes
1581 if test $ac_prog_rejected = yes; then
1582 # We found a bogon in the path, so make sure we never use it.
1583 set dummy $ac_cv_prog_CC
1585 if test $# -gt 0; then
1586 # We chose a different compiler from the bogus one.
1587 # However, it has the same basename, so the bogon will be chosen
1588 # first if we set CC to just the basename; use the full file name.
1590 set dummy "$ac_dir/$ac_word" "$@"
1597 if test -n "$CC"; then
1598 echo "$ac_t""$CC" 1>&6
1600 echo "$ac_t""no" 1>&6
1603 if test -z "$CC"; then
1604 case "`uname -s`" in
1606 # Extract the first word of "cl", so it can be a program name with args.
1607 set dummy cl; ac_word=$2
1608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1609 echo "configure:1610: checking for $ac_word" >&5
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1616 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 if test -f $ac_dir/$ac_word; then
1626 if test -n "$CC"; then
1627 echo "$ac_t""$CC" 1>&6
1629 echo "$ac_t""no" 1>&6
1634 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1637 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1638 echo "configure:1639: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1641 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1642 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1643 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1644 ac_cpp='$CPP '"$xe_cppflags"
1645 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1646 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1649 cat > conftest.$ac_ext << EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1656 if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1657 ac_cv_prog_cc_works=yes
1658 # If we can't run a trivial program, we are probably using a cross compiler.
1659 if (./conftest; exit) 2>/dev/null; then
1660 ac_cv_prog_cc_cross=no
1662 ac_cv_prog_cc_cross=yes
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 ac_cv_prog_cc_works=no
1671 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1672 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1673 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1674 ac_cpp='$CPP '"$xe_cppflags"
1675 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1676 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1679 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1680 if test $ac_cv_prog_cc_works = no; then
1681 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1683 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1684 echo "configure:1685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1685 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1686 cross_compiling=$ac_cv_prog_cc_cross
1688 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1689 echo "configure:1690: checking whether we are using GNU C" >&5
1691 cat > conftest.c <<EOF
1696 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1702 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1704 if test $ac_cv_prog_gcc = yes; then
1710 ac_test_CFLAGS="${CFLAGS+set}"
1711 ac_save_CFLAGS="$CFLAGS"
1713 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1714 echo "configure:1715: checking whether ${CC-cc} accepts -g" >&5
1716 echo 'void f(){}' > conftest.c
1717 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1725 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1726 if test "$ac_test_CFLAGS" = set; then
1727 CFLAGS="$ac_save_CFLAGS"
1728 elif test $ac_cv_prog_cc_g = yes; then
1729 if test "$GCC" = yes; then
1735 if test "$GCC" = yes; then
1742 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1744 # Extract the first word of "gcc", so it can be a program name with args.
1745 set dummy gcc; ac_word=$2
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $ac_word" >&5
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1754 for ac_dir in $ac_dummy; do
1755 test -z "$ac_dir" && ac_dir=.
1756 if test -f $ac_dir/$ac_word; then
1764 if test -n "$CC"; then
1765 echo "$ac_t""$CC" 1>&6
1767 echo "$ac_t""no" 1>&6
1770 if test -z "$CC"; then
1771 # Extract the first word of "cc", so it can be a program name with args.
1772 set dummy cc; ac_word=$2
1773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1774 echo "configure:1775: checking for $ac_word" >&5
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1782 for ac_dir in $ac_dummy; do
1783 test -z "$ac_dir" && ac_dir=.
1784 if test -f $ac_dir/$ac_word; then
1785 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1786 ac_prog_rejected=yes
1794 if test $ac_prog_rejected = yes; then
1795 # We found a bogon in the path, so make sure we never use it.
1796 set dummy $ac_cv_prog_CC
1798 if test $# -gt 0; then
1799 # We chose a different compiler from the bogus one.
1800 # However, it has the same basename, so the bogon will be chosen
1801 # first if we set CC to just the basename; use the full file name.
1803 set dummy "$ac_dir/$ac_word" "$@"
1810 if test -n "$CC"; then
1811 echo "$ac_t""$CC" 1>&6
1813 echo "$ac_t""no" 1>&6
1816 if test -z "$CC"; then
1817 case "`uname -s`" in
1819 # Extract the first word of "cl", so it can be a program name with args.
1820 set dummy cl; ac_word=$2
1821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1822 echo "configure:1823: checking for $ac_word" >&5
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 for ac_dir in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then
1839 if test -n "$CC"; then
1840 echo "$ac_t""$CC" 1>&6
1842 echo "$ac_t""no" 1>&6
1847 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1850 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1851 echo "configure:1852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1854 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1855 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1856 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1857 ac_cpp='$CPP '"$xe_cppflags"
1858 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1859 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1862 cat > conftest.$ac_ext << EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1869 if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1870 ac_cv_prog_cc_works=yes
1871 # If we can't run a trivial program, we are probably using a cross compiler.
1872 if (./conftest; exit) 2>/dev/null; then
1873 ac_cv_prog_cc_cross=no
1875 ac_cv_prog_cc_cross=yes
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 ac_cv_prog_cc_works=no
1884 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1885 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1886 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1887 ac_cpp='$CPP '"$xe_cppflags"
1888 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1889 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1892 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1893 if test $ac_cv_prog_cc_works = no; then
1894 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1898 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1899 cross_compiling=$ac_cv_prog_cc_cross
1901 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1902 echo "configure:1903: checking whether we are using GNU C" >&5
1904 cat > conftest.c <<EOF
1909 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1915 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1917 if test $ac_cv_prog_gcc = yes; then
1923 ac_test_CFLAGS="${CFLAGS+set}"
1924 ac_save_CFLAGS="$CFLAGS"
1926 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1927 echo "configure:1928: checking whether ${CC-cc} accepts -g" >&5
1929 echo 'void f(){}' > conftest.c
1930 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1938 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1939 if test "$ac_test_CFLAGS" = set; then
1940 CFLAGS="$ac_save_CFLAGS"
1941 elif test $ac_cv_prog_cc_g = yes; then
1942 if test "$GCC" = yes; then
1948 if test "$GCC" = yes; then
1955 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1957 # Extract the first word of "gcc", so it can be a program name with args.
1958 set dummy gcc; ac_word=$2
1959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1960 echo "configure:1961: checking for $ac_word" >&5
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1967 for ac_dir in $ac_dummy; do
1968 test -z "$ac_dir" && ac_dir=.
1969 if test -f $ac_dir/$ac_word; then
1977 if test -n "$CC"; then
1978 echo "$ac_t""$CC" 1>&6
1980 echo "$ac_t""no" 1>&6
1983 if test -z "$CC"; then
1984 # Extract the first word of "cc", so it can be a program name with args.
1985 set dummy cc; ac_word=$2
1986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_word" >&5
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1995 for ac_dir in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir=.
1997 if test -f $ac_dir/$ac_word; then
1998 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1999 ac_prog_rejected=yes
2007 if test $ac_prog_rejected = yes; then
2008 # We found a bogon in the path, so make sure we never use it.
2009 set dummy $ac_cv_prog_CC
2011 if test $# -gt 0; then
2012 # We chose a different compiler from the bogus one.
2013 # However, it has the same basename, so the bogon will be chosen
2014 # first if we set CC to just the basename; use the full file name.
2016 set dummy "$ac_dir/$ac_word" "$@"
2023 if test -n "$CC"; then
2024 echo "$ac_t""$CC" 1>&6
2026 echo "$ac_t""no" 1>&6
2029 if test -z "$CC"; then
2030 case "`uname -s`" in
2032 # Extract the first word of "cl", so it can be a program name with args.
2033 set dummy cl; ac_word=$2
2034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2035 echo "configure:2036: checking for $ac_word" >&5
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2042 for ac_dir in $ac_dummy; do
2043 test -z "$ac_dir" && ac_dir=.
2044 if test -f $ac_dir/$ac_word; then
2052 if test -n "$CC"; then
2053 echo "$ac_t""$CC" 1>&6
2055 echo "$ac_t""no" 1>&6
2060 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2063 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2064 echo "configure:2065: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2067 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2068 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2069 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2070 ac_cpp='$CPP '"$xe_cppflags"
2071 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2072 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2075 cat > conftest.$ac_ext << EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2082 if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2083 ac_cv_prog_cc_works=yes
2084 # If we can't run a trivial program, we are probably using a cross compiler.
2085 if (./conftest; exit) 2>/dev/null; then
2086 ac_cv_prog_cc_cross=no
2088 ac_cv_prog_cc_cross=yes
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 ac_cv_prog_cc_works=no
2097 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2098 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2099 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2100 ac_cpp='$CPP '"$xe_cppflags"
2101 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2102 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2105 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2106 if test $ac_cv_prog_cc_works = no; then
2107 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2109 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2110 echo "configure:2111: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2111 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2112 cross_compiling=$ac_cv_prog_cc_cross
2114 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2115 echo "configure:2116: checking whether we are using GNU C" >&5
2117 cat > conftest.c <<EOF
2122 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2128 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2130 if test $ac_cv_prog_gcc = yes; then
2136 ac_test_CFLAGS="${CFLAGS+set}"
2137 ac_save_CFLAGS="$CFLAGS"
2139 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether ${CC-cc} accepts -g" >&5
2142 echo 'void f(){}' > conftest.c
2143 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2151 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2152 if test "$ac_test_CFLAGS" = set; then
2153 CFLAGS="$ac_save_CFLAGS"
2154 elif test $ac_cv_prog_cc_g = yes; then
2155 if test "$GCC" = yes; then
2161 if test "$GCC" = yes; then
2169 CFLAGS="$xe_save_CFLAGS"
2172 test -n "$CPP" -a -d "$CPP" && CPP=
2174 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2176 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2177 echo "configure:2178: checking how to run the C preprocessor" >&5
2178 # On Suns, sometimes $CPP names a directory.
2179 if test -n "$CPP" && test -d "$CPP"; then
2182 if test -z "$CPP"; then
2184 # This must be in double quotes, not single quotes, because CPP may get
2185 # substituted into the Makefile and "${CC-cc}" will confuse make.
2187 # On the NeXT, cc -E runs the code through the compiler's parser,
2188 # not just through cpp.
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2196 { (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2198 if test -z "$ac_err"; then
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2205 CPP="${CC-cc} -E -traditional-cpp"
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2213 { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2215 if test -z "$ac_err"; then
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 CPP="${CC-cc} -nologo -E"
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2230 { (eval echo configure:2231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2232 if test -z "$ac_err"; then
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2246 ac_cv_prog_CPP="$CPP"
2247 CPP="$ac_cv_prog_CPP"
2249 ac_cv_prog_CPP="$CPP"
2251 echo "$ac_t""$CPP" 1>&6
2254 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2255 echo "configure:2256: checking for AIX" >&5
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2265 egrep "yes" >/dev/null 2>&1; then
2267 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2268 Defining _ALL_SOURCE
2270 cat >> confdefs.h <<\EOF
2271 #define _ALL_SOURCE 1
2277 echo "$ac_t""no" 1>&6
2283 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2284 echo "configure:2285: checking for GNU libc" >&5
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 #include <features.h>
2291 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2292 #error Not a GNU libc system :-(
2293 ******* ======= ******** &&&&&&&&
2298 if { (eval echo configure:2299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2308 echo "$ac_t""$have_glibc" 1>&6
2309 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2310 Defining _GNU_SOURCE
2312 cat >> confdefs.h <<\EOF
2313 #define _GNU_SOURCE 1
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2323 #if defined __SUNPRO_C
2325 #elif defined __DECC
2332 if { (eval echo configure:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 case "$conftest_rc" in
2341 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2342 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2350 echo "Extracting information from the machine- and system-dependent headers..."
2352 tempcname="conftest.c"
2356 cat > $tempcname <<EOF
2358 #define C_SWITCH_SITE
2359 #define C_SWITCH_X_SITE
2360 #define LD_SWITCH_SITE
2361 #define LD_SWITCH_X_SITE
2362 #define LD_SWITCH_X_SITE_AUX
2363 #define OS_RELEASE $os_release
2364 #include "$srcdir/src/$opsysfile"
2365 #include "$srcdir/src/$machfile"
2367 #ifndef LIBS_MACHINE
2368 #define LIBS_MACHINE
2370 configure___ libs_machine=LIBS_MACHINE
2375 configure___ libs_system=LIBS_SYSTEM
2377 #ifndef LIBS_TERMCAP
2378 #define LIBS_TERMCAP
2380 configure___ libs_termcap=LIBS_TERMCAP
2382 #ifndef LIB_STANDARD
2383 #define LIB_STANDARD
2385 configure___ libs_standard=LIB_STANDARD
2388 #ifndef OBJECTS_MACHINE
2389 #define OBJECTS_MACHINE
2391 configure___ objects_machine=OBJECTS_MACHINE
2393 #ifndef OBJECTS_SYSTEM
2394 #define OBJECTS_SYSTEM
2396 configure___ objects_system=OBJECTS_SYSTEM
2399 #ifndef C_SWITCH_MACHINE
2400 #define C_SWITCH_MACHINE
2402 configure___ c_switch_machine=C_SWITCH_MACHINE
2404 #ifndef C_SWITCH_SYSTEM
2405 #define C_SWITCH_SYSTEM
2407 configure___ c_switch_system=C_SWITCH_SYSTEM
2410 #ifndef LD_SWITCH_MACHINE
2411 #define LD_SWITCH_MACHINE
2413 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2415 #ifndef LD_SWITCH_SYSTEM
2416 #define LD_SWITCH_SYSTEM
2418 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2422 #define UNEXEC "unexec.o"
2424 configure___ unexec=UNEXEC
2427 #ifndef LD_SWITCH_SHARED
2428 #define LD_SWITCH_SHARED "-c"
2430 configure___ ld_switch_shared=LD_SWITCH_SHARED
2433 #ifdef ORDINARY_LINK
2434 #define LD "\$(CC) \$(CFLAGS)"
2435 #else /* no ORDINARY LINK */
2436 #ifdef COFF_ENCAPSULATE
2437 #define LD "\$(CC) -nostdlib"
2438 #else /* not COFF_ENCAPSULATE */
2441 #else /* ! defined (LINKER) */
2443 #endif /* ! defined (LINKER) */
2444 #endif /* ! defined (COFF_ENCAPSULATE) */
2445 #endif /* not ORDINARY_LINK */
2451 configure___ lib_gcc=LIB_GCC
2453 #ifndef LD_TEXT_START_ADDR
2454 #define LD_TEXT_START_ADDR
2456 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2459 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2461 #ifdef COFF_ENCAPSULATE
2462 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2463 #else /* ! defined (COFF_ENCAPSULATE) */
2464 #define START_FILES "pre-crt0.o /lib/crt0.o"
2465 #endif /* ! defined (COFF_ENCAPSULATE) */
2466 #else /* ! defined (NO_REMAP) */
2467 #define START_FILES "ecrt0.o"
2468 #endif /* ! defined (NO_REMAP) */
2469 #endif /* no ORDINARY_LINK */
2473 configure___ start_files=START_FILES
2475 #ifdef ORDINARY_LINK
2476 configure___ ordinary_link=yes
2478 configure___ ordinary_link=no
2481 #ifdef SYSTEM_MALLOC
2482 configure___ system_malloc=yes
2484 configure___ system_malloc=no
2488 configure___ have_terminfo=yes
2490 configure___ have_terminfo=no
2493 #ifdef MAIL_USE_FLOCK
2494 configure___ mail_use_flock=yes
2496 configure___ mail_use_flock=no
2499 #ifdef MAIL_USE_LOCKF
2500 configure___ mail_use_lockf=yes
2502 configure___ mail_use_lockf=no
2505 #ifdef HAVE_WIN32_PROCESSES
2506 configure___ win32_processes=yes
2508 configure___ win32_processes=no
2513 CPP=`eval "echo $CPP $CPPFLAGS"`
2514 eval `$CPP -Isrc $tempcname \
2515 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2519 test "$extra_verbose" = "yes" && \
2520 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 ""
2522 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2524 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2526 if test "$cflags_specified" = "no"; then
2527 if test "$GCC" = "yes"; then
2528 CFLAGS="-g -O3 -Wall -Wno-switch"
2529 elif test "$__SUNPRO_C" = "yes"; then
2531 sol2 ) CFLAGS="-v -xO4" ;;
2532 sunos4* ) CFLAGS="-xO2";;
2534 elif test "$__DECC" = "yes"; then
2536 elif test "$CC" = "xlc"; then
2537 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2543 if test "$GCC" = "yes"; then
2544 set x $ld_switch_system; shift; ld_switch_system=""
2545 while test -n "$1"; do
2547 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2548 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2550 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2556 if test "$GCC" = "yes"; then
2557 set x $ld_switch_machine; shift; ld_switch_machine=""
2558 while test -n "$1"; do
2560 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2561 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2563 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2569 if test "$GCC" = "yes"; then
2570 set x $LDFLAGS; shift; LDFLAGS=""
2571 while test -n "$1"; do
2573 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2574 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2576 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2582 if test "$GCC" = "yes"; then
2583 set x $ld_call_shared; shift; ld_call_shared=""
2584 while test -n "$1"; do
2586 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2587 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2589 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2595 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2596 echo " xemacs will be linked with \"$objects_machine\""
2598 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2599 echo " xemacs will be linked with \"$objects_system\""
2601 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2602 echo " xemacs will be linked with \"$unexec\""
2605 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2606 echo "configure:2607: checking for dynodump" >&5
2607 if test "$unexec" != "unexsol2.o"; then
2608 echo "$ac_t""no" 1>&6
2610 echo "$ac_t""yes" 1>&6
2611 { test "$extra_verbose" = "yes" && cat << \EOF
2614 cat >> confdefs.h <<\EOF
2619 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2620 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2622 sparc ) dynodump_arch=sparc ;;
2623 *86* ) dynodump_arch=i386 ;;
2624 powerpc ) dynodump_arch=ppc ;;
2626 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
2630 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2632 if test "$unexec" = "unexaix.o"; then
2633 if test "$dynamic" = "no"; then
2634 start_flags="-Wl,-bnso,-bnodelcsect"
2635 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2636 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2637 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2639 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2640 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2643 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2644 echo "configure:2645: checking for terminateAndUnload in -lC" >&5
2645 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2647 xe_check_libs=" -lC "
2648 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2651 /* Override any gcc2 internal prototype to avoid an error. */
2652 /* We use char because int might match the return type of a gcc2
2653 builtin and then its argument prototype would still apply. */
2654 char terminateAndUnload();
2657 terminateAndUnload()
2660 if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2662 eval "ac_cv_lib_$ac_lib_var=yes"
2664 echo "configure: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2667 eval "ac_cv_lib_$ac_lib_var=no"
2672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2673 echo "$ac_t""yes" 1>&6
2674 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2676 echo "$ac_t""no" 1>&6
2681 elif test -n "$ld_text_start_addr"; then
2682 start_flags="-T $ld_text_start_addr -e __start"
2688 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2689 test -z "$linker" && linker='$(CC) -nostdlib'
2690 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2692 test "$GCC" != "yes" && lib_gcc=
2698 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2699 if test -n "$site_libraries"; then
2700 for arg in $site_libraries; do
2703 * ) test -d "$arg" || \
2704 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2707 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2711 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2712 if test -n "$site_includes"; then
2713 for arg in $site_includes; do
2716 * ) test -d "$arg" || \
2717 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2720 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2724 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2725 if test -n "$site_prefixes"; then
2726 for dir in $site_prefixes; do
2727 lib_dir="${dir}/lib"
2728 inc_dir="${dir}/include"
2729 if test ! -d "$dir"; then
2730 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2731 elif test ! -d "$lib_dir"; then
2732 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2734 if test -d "$inc_dir"; then
2735 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
2737 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
2743 for dir in "/usr/ccs/lib"; do
2744 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
2747 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2748 if test -n "$site_runtime_libraries"; then
2749 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2754 if test "$dynamic" = "no"; then add_runtime_path=no
2755 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2756 else case "$opsys" in
2757 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2758 * ) add_runtime_path=no ;;
2762 if test "$add_runtime_path" = "yes"; then
2763 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2764 echo "configure:2765: checking "for runtime libraries flag"" >&5
2766 sol2 ) dash_r="-R" ;;
2767 decosf* | linux* | irix*) dash_r="-rpath " ;;
2770 for try_dash_r in "-R" "-R " "-rpath "; do
2771 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2773 if test "$GCC" = "yes"; then
2774 set x $xe_check_libs; shift; xe_check_libs=""
2775 while test -n "$1"; do
2777 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2778 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2780 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2793 if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2795 dash_r="$try_dash_r"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2802 test -n "$dash_r" && break
2805 if test -n "$dash_r";
2806 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2807 else echo "$ac_t""NONE" 1>&6
2811 xe_add_unique_runpath_dir='
2813 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2815 if test "$xe_add_p" = "yes"; then
2816 test -n "$runpath" && runpath="${runpath}:"
2817 runpath="${runpath}${xe_runpath_dir}"
2818 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2824 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2825 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2826 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2828 runpath="" runpath_dirs=""
2829 if test -n "$LD_RUN_PATH"; then
2830 runpath="$LD_RUN_PATH"
2831 elif test "$GCC" = "yes"; then
2832 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2833 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2834 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2835 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2836 case "$arg" in P,* | -L* | -R* )
2837 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2839 xe_runpath_dir="$dir"
2840 test "$xe_runpath_dir" != "/lib" -a \
2841 "$xe_runpath_dir" != "/usr/lib" -a \
2842 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2843 eval "$xe_add_unique_runpath_dir"
2848 ld_switch_run="$ld_switch_run_save"
2851 for arg in $ld_switch_site $ld_switch_x_site; do
2852 case "$arg" in -L*) {
2853 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2854 test "$xe_runpath_dir" != "/lib" -a \
2855 "$xe_runpath_dir" != "/usr/lib" -a \
2856 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2857 eval "$xe_add_unique_runpath_dir"
2860 if test "$opsys $need_motif" = "sol2 yes"; then
2861 xe_runpath_dir="/opt/SUNWdt/lib";
2862 eval "$xe_add_unique_runpath_dir";
2865 if test -n "$runpath"; then
2866 ld_switch_run="${dash_r}${runpath}"
2868 if test "$GCC" = "yes"; then
2869 set x $ld_switch_run; shift; ld_switch_run=""
2870 while test -n "$1"; do
2872 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2873 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2875 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2880 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2888 if test "$with_dlmalloc" != "no"; then
2893 after_morecore_hook_exists=yes
2894 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2895 echo "configure:2896: checking for malloc_get_state" >&5
2897 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2900 /* System header to define __stub macros and hopefully few prototypes,
2901 which can conflict with char malloc_get_state(); below. */
2903 /* Override any gcc2 internal prototype to avoid an error. */
2904 /* We use char because int might match the return type of a gcc2
2905 builtin and then its argument prototype would still apply. */
2906 char malloc_get_state();
2910 /* The GNU C library defines this for functions which it implements
2911 to always fail with ENOSYS. Some functions are actually named
2912 something starting with __ and the normal name is an alias. */
2913 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2921 if { (eval echo configure:2922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2923 eval "ac_cv_func_malloc_get_state=yes"
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2928 eval "ac_cv_func_malloc_get_state=no"
2932 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2936 echo "$ac_t""no" 1>&6
2940 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2941 echo "configure:2942: checking for malloc_set_state" >&5
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 /* System header to define __stub macros and hopefully few prototypes,
2947 which can conflict with char malloc_set_state(); below. */
2949 /* Override any gcc2 internal prototype to avoid an error. */
2950 /* We use char because int might match the return type of a gcc2
2951 builtin and then its argument prototype would still apply. */
2952 char malloc_set_state();
2956 /* The GNU C library defines this for functions which it implements
2957 to always fail with ENOSYS. Some functions are actually named
2958 something starting with __ and the normal name is an alias. */
2959 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2969 eval "ac_cv_func_malloc_set_state=yes"
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2974 eval "ac_cv_func_malloc_set_state=no"
2978 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2979 echo "$ac_t""yes" 1>&6
2982 echo "$ac_t""no" 1>&6
2986 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2987 echo "configure:2988: checking whether __after_morecore_hook exists" >&5
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 extern void (* __after_morecore_hook)();
2993 __after_morecore_hook = 0
2996 if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2998 echo "$ac_t""yes" 1>&6
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3003 echo "$ac_t""no" 1>&6
3004 after_morecore_hook_exists=no
3007 if test "$system_malloc" = "yes" ; then
3010 (The GNU allocators don't work with this system configuration)."
3011 elif test "$with_system_malloc" = "yes" ; then
3014 (User chose not to use GNU allocators)."
3015 elif test "$with_debug_malloc" = "yes" ; then
3018 (User chose to use Debugging Malloc)."
3021 if test "$doug_lea_malloc" = "yes" ; then
3022 if test "$GNU_MALLOC" = yes ; then
3024 (Using Doug Lea's new malloc from the GNU C Library.)"
3026 { test "$extra_verbose" = "yes" && cat << \EOF
3027 Defining DOUG_LEA_MALLOC
3029 cat >> confdefs.h <<\EOF
3030 #define DOUG_LEA_MALLOC 1
3034 if test "$after_morecore_hook_exists" = "no" ; then
3036 (Using Doug Lea's new malloc from the Linux C Library.)"
3037 { test "$extra_verbose" = "yes" && cat << \EOF
3038 Defining _NO_MALLOC_WARNING_
3040 cat >> confdefs.h <<\EOF
3041 #define _NO_MALLOC_WARNING_ 1
3046 use_minimal_tagbits=yes
3052 # Extract the first word of "ranlib", so it can be a program name with args.
3053 set dummy ranlib; ac_word=$2
3054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_word" >&5
3057 if test -n "$RANLIB"; then
3058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3062 for ac_dir in $ac_dummy; do
3063 test -z "$ac_dir" && ac_dir=.
3064 if test -f $ac_dir/$ac_word; then
3065 ac_cv_prog_RANLIB="ranlib"
3070 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3072 RANLIB="$ac_cv_prog_RANLIB"
3073 if test -n "$RANLIB"; then
3074 echo "$ac_t""$RANLIB" 1>&6
3076 echo "$ac_t""no" 1>&6
3080 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3081 if test -f $ac_dir/install-sh; then
3083 ac_install_sh="$ac_aux_dir/install-sh -c"
3085 elif test -f $ac_dir/install.sh; then
3087 ac_install_sh="$ac_aux_dir/install.sh -c"
3091 if test -z "$ac_aux_dir"; then
3092 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3094 ac_config_guess=$ac_aux_dir/config.guess
3095 ac_config_sub=$ac_aux_dir/config.sub
3096 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3098 # Find a good install program. We prefer a C program (faster),
3099 # so one script is as good as another. But avoid the broken or
3100 # incompatible versions:
3101 # SysV /etc/install, /usr/sbin/install
3102 # SunOS /usr/etc/install
3103 # IRIX /sbin/install
3105 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3106 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3107 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3108 # ./install, which can be erroneously created by make from ./install.sh.
3109 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3110 echo "configure:3111: checking for a BSD compatible install" >&5
3111 if test -z "$INSTALL"; then
3113 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3114 for ac_dir in $PATH; do
3115 # Account for people who put trailing slashes in PATH elements.
3117 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3119 # OSF1 and SCO ODT 3.0 have their own names for install.
3120 # Don't use installbsd from OSF since it installs stuff as root
3122 for ac_prog in ginstall scoinst install; do
3123 if test -f $ac_dir/$ac_prog; then
3124 if test $ac_prog = install &&
3125 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3126 # AIX install. It has an incompatible calling convention.
3129 ac_cv_path_install="$ac_dir/$ac_prog -c"
3139 if test "${ac_cv_path_install+set}" = set; then
3140 INSTALL="$ac_cv_path_install"
3142 # As a last resort, use the slow shell script. We don't cache a
3143 # path for INSTALL within a source directory, because that will
3144 # break other packages using the cache if that directory is
3145 # removed, or if the path is relative.
3146 INSTALL="$ac_install_sh"
3149 echo "$ac_t""$INSTALL" 1>&6
3151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3152 # It thinks the first close brace ends the variable substitution.
3153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3159 for ac_prog in 'bison -y' byacc
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3164 echo "configure:3165: checking for $ac_word" >&5
3166 if test -n "$YACC"; then
3167 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3171 for ac_dir in $ac_dummy; do
3172 test -z "$ac_dir" && ac_dir=.
3173 if test -f $ac_dir/$ac_word; then
3174 ac_cv_prog_YACC="$ac_prog"
3180 YACC="$ac_cv_prog_YACC"
3181 if test -n "$YACC"; then
3182 echo "$ac_t""$YACC" 1>&6
3184 echo "$ac_t""no" 1>&6
3187 test -n "$YACC" && break
3189 test -n "$YACC" || YACC="yacc"
3192 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3196 echo "configure:3197: checking for $ac_hdr" >&5
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3204 { (eval echo configure:3205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3206 if test -z "$ac_err"; then
3208 eval "ac_cv_header_$ac_safe=yes"
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 eval "ac_cv_header_$ac_safe=no"
3217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3218 echo "$ac_t""yes" 1>&6
3219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3220 { test "$extra_verbose" = "yes" && cat << EOF
3223 cat >> confdefs.h <<EOF
3224 #define $ac_tr_hdr 1
3229 echo "$ac_t""no" 1>&6
3233 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3237 echo "configure:3238: checking for $ac_hdr" >&5
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3245 { (eval echo configure:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3247 if test -z "$ac_err"; then
3249 eval "ac_cv_header_$ac_safe=yes"
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 eval "ac_cv_header_$ac_safe=no"
3258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3259 echo "$ac_t""yes" 1>&6
3260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3261 { test "$extra_verbose" = "yes" && cat << EOF
3264 cat >> confdefs.h <<EOF
3265 #define $ac_tr_hdr 1
3270 echo "$ac_t""no" 1>&6
3274 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3278 echo "configure:3279: checking for $ac_hdr" >&5
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3286 { (eval echo configure:3287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3288 if test -z "$ac_err"; then
3290 eval "ac_cv_header_$ac_safe=yes"
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 eval "ac_cv_header_$ac_safe=no"
3299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3300 echo "$ac_t""yes" 1>&6
3301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3302 { test "$extra_verbose" = "yes" && cat << EOF
3305 cat >> confdefs.h <<EOF
3306 #define $ac_tr_hdr 1
3311 echo "$ac_t""no" 1>&6
3315 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3316 echo "configure:3317: checking for sys/wait.h that is POSIX.1 compatible" >&5
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3322 #include <sys/wait.h>
3324 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3327 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3332 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3335 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3337 ac_cv_header_sys_wait_h=yes
3339 echo "configure: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3342 ac_cv_header_sys_wait_h=no
3346 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3347 if test $ac_cv_header_sys_wait_h = yes; then
3348 { test "$extra_verbose" = "yes" && cat << \EOF
3349 Defining HAVE_SYS_WAIT_H
3351 cat >> confdefs.h <<\EOF
3352 #define HAVE_SYS_WAIT_H 1
3358 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3359 echo "configure:3360: checking for ANSI C header files" >&5
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3370 { (eval echo configure:3371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3372 if test -z "$ac_err"; then
3374 ac_cv_header_stdc=yes
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 ac_cv_header_stdc=no
3384 if test $ac_cv_header_stdc = yes; then
3385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3392 egrep "memchr" >/dev/null 2>&1; then
3396 ac_cv_header_stdc=no
3402 if test $ac_cv_header_stdc = yes; then
3403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 egrep "free" >/dev/null 2>&1; then
3414 ac_cv_header_stdc=no
3420 if test $ac_cv_header_stdc = yes; then
3421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3422 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3426 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3427 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3429 int main () { int i; for (i = 0; i < 256; i++)
3430 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 ac_cv_header_stdc=no
3447 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3448 if test $ac_cv_header_stdc = yes; then
3449 { test "$extra_verbose" = "yes" && cat << \EOF
3450 Defining STDC_HEADERS
3452 cat >> confdefs.h <<\EOF
3453 #define STDC_HEADERS 1
3459 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3460 echo "configure:3461: checking whether time.h and sys/time.h may both be included" >&5
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <sys/types.h>
3466 #include <sys/time.h>
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474 ac_cv_header_time=yes
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3479 ac_cv_header_time=no
3483 echo "$ac_t""$ac_cv_header_time" 1>&6
3484 if test $ac_cv_header_time = yes; then
3485 { test "$extra_verbose" = "yes" && cat << \EOF
3486 Defining TIME_WITH_SYS_TIME
3488 cat >> confdefs.h <<\EOF
3489 #define TIME_WITH_SYS_TIME 1
3495 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3496 echo "configure:3497: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3503 /* NetBSD declares sys_siglist in unistd.h. */
3504 #ifdef HAVE_UNISTD_H
3508 char *msg = *(sys_siglist + 1);
3511 if { (eval echo configure:3512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3513 ac_cv_decl_sys_siglist=yes
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3518 ac_cv_decl_sys_siglist=no
3522 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3523 if test $ac_cv_decl_sys_siglist = yes; then
3524 { test "$extra_verbose" = "yes" && cat << \EOF
3525 Defining SYS_SIGLIST_DECLARED
3527 cat >> confdefs.h <<\EOF
3528 #define SYS_SIGLIST_DECLARED 1
3535 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3536 echo "configure:3537: checking for struct utimbuf" >&5
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #ifdef TIME_WITH_SYS_TIME
3541 #include <sys/time.h>
3544 #ifdef HAVE_SYS_TIME_H
3545 #include <sys/time.h>
3554 static struct utimbuf x; x.actime = x.modtime;
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 echo "$ac_t""yes" 1>&6
3560 { test "$extra_verbose" = "yes" && cat << \EOF
3561 Defining HAVE_STRUCT_UTIMBUF
3563 cat >> confdefs.h <<\EOF
3564 #define HAVE_STRUCT_UTIMBUF 1
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 echo "$ac_t""no" 1>&6
3576 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3577 echo "configure:3578: checking return type of signal handlers" >&5
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <sys/types.h>
3588 extern "C" void (*signal (int, void (*)(int)))(int);
3590 void (*signal ()) ();
3597 if { (eval echo configure:3598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3599 ac_cv_type_signal=void
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3604 ac_cv_type_signal=int
3608 echo "$ac_t""$ac_cv_type_signal" 1>&6
3609 { test "$extra_verbose" = "yes" && cat << EOF
3610 Defining RETSIGTYPE = $ac_cv_type_signal
3612 cat >> confdefs.h <<EOF
3613 #define RETSIGTYPE $ac_cv_type_signal
3618 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3619 echo "configure:3620: checking for size_t" >&5
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3633 ac_cv_type_size_t=yes
3636 ac_cv_type_size_t=no
3640 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3641 if test $ac_cv_type_size_t = no; then
3642 { test "$extra_verbose" = "yes" && cat << \EOF
3643 Defining size_t = unsigned
3645 cat >> confdefs.h <<\EOF
3646 #define size_t unsigned
3652 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3653 echo "configure:3654: checking for pid_t" >&5
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 #include <sys/types.h>
3664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3665 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3667 ac_cv_type_pid_t=yes
3674 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3675 if test $ac_cv_type_pid_t = no; then
3676 { test "$extra_verbose" = "yes" && cat << \EOF
3677 Defining pid_t = int
3679 cat >> confdefs.h <<\EOF
3686 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3687 echo "configure:3688: checking for uid_t in sys/types.h" >&5
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <sys/types.h>
3694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695 egrep "uid_t" >/dev/null 2>&1; then
3697 ac_cv_type_uid_t=yes
3705 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3706 if test $ac_cv_type_uid_t = no; then
3707 { test "$extra_verbose" = "yes" && cat << \EOF
3708 Defining uid_t = int
3710 cat >> confdefs.h <<\EOF
3715 { test "$extra_verbose" = "yes" && cat << \EOF
3716 Defining gid_t = int
3718 cat >> confdefs.h <<\EOF
3725 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3726 echo "configure:3727: checking for mode_t" >&5
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731 #include <sys/types.h>
3737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3738 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3740 ac_cv_type_mode_t=yes
3743 ac_cv_type_mode_t=no
3747 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3748 if test $ac_cv_type_mode_t = no; then
3749 { test "$extra_verbose" = "yes" && cat << \EOF
3750 Defining mode_t = int
3752 cat >> confdefs.h <<\EOF
3759 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3760 echo "configure:3761: checking for off_t" >&5
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 #include <sys/types.h>
3771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3774 ac_cv_type_off_t=yes
3781 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3782 if test $ac_cv_type_off_t = no; then
3783 { test "$extra_verbose" = "yes" && cat << \EOF
3784 Defining off_t = long
3786 cat >> confdefs.h <<\EOF
3794 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3795 echo "configure:3796: checking for struct timeval" >&5
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #ifdef TIME_WITH_SYS_TIME
3800 #include <sys/time.h>
3803 #ifdef HAVE_SYS_TIME_H
3804 #include <sys/time.h>
3810 static struct timeval x; x.tv_sec = x.tv_usec;
3813 if { (eval echo configure:3814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3815 echo "$ac_t""yes" 1>&6
3817 { test "$extra_verbose" = "yes" && cat << \EOF
3818 Defining HAVE_TIMEVAL
3820 cat >> confdefs.h <<\EOF
3821 #define HAVE_TIMEVAL 1
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3829 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3835 echo "configure:3836: checking whether struct tm is in sys/time.h or time.h" >&5
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <sys/types.h>
3843 struct tm *tp; tp->tm_sec;
3846 if { (eval echo configure:3847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3848 ac_cv_struct_tm=time.h
3850 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3853 ac_cv_struct_tm=sys/time.h
3857 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3858 if test $ac_cv_struct_tm = sys/time.h; then
3859 { test "$extra_verbose" = "yes" && cat << \EOF
3860 Defining TM_IN_SYS_TIME
3862 cat >> confdefs.h <<\EOF
3863 #define TM_IN_SYS_TIME 1
3869 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3870 echo "configure:3871: checking for tm_zone in struct tm" >&5
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 #include <sys/types.h>
3876 #include <$ac_cv_struct_tm>
3878 struct tm tm; tm.tm_zone;
3881 if { (eval echo configure:3882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883 ac_cv_struct_tm_zone=yes
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 ac_cv_struct_tm_zone=no
3892 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3893 if test "$ac_cv_struct_tm_zone" = yes; then
3894 { test "$extra_verbose" = "yes" && cat << \EOF
3895 Defining HAVE_TM_ZONE
3897 cat >> confdefs.h <<\EOF
3898 #define HAVE_TM_ZONE 1
3903 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3904 echo "configure:3905: checking for tzname" >&5
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3910 #ifndef tzname /* For SGI. */
3911 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3917 if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3919 ac_cv_var_tzname=yes
3921 echo "configure: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3928 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3929 if test $ac_cv_var_tzname = yes; then
3930 { test "$extra_verbose" = "yes" && cat << \EOF
3931 Defining HAVE_TZNAME
3933 cat >> confdefs.h <<\EOF
3934 #define HAVE_TZNAME 1
3942 echo $ac_n "checking for working const""... $ac_c" 1>&6
3943 echo "configure:3944: checking for working const" >&5
3945 cat > conftest.$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3951 /* Ultrix mips cc rejects this. */
3952 typedef int charset[2]; const charset x;
3953 /* SunOS 4.1.1 cc rejects this. */
3954 char const *const *ccp;
3956 /* NEC SVR4.0.2 mips cc rejects this. */
3957 struct point {int x, y;};
3958 static struct point const zero = {0,0};
3959 /* AIX XL C 1.02.0.0 rejects this.
3960 It does not let you subtract one const X* pointer from another in an arm
3961 of an if-expression whose if-part is not a constant expression */
3962 const char *g = "string";
3963 ccp = &g + (g ? g-g : 0);
3964 /* HPUX 7.0 cc rejects these. */
3967 ccp = (char const *const *) p;
3968 { /* SCO 3.2v4 cc rejects this. */
3970 char const *s = 0 ? (char *) 0 : (char const *) 0;
3974 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3976 const int *foo = &x[0];
3979 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3980 typedef const int *iptr;
3984 { /* AIX XL C 1.02.0.0 rejects this saying
3985 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3986 struct s { int j; const int *ap[3]; };
3987 struct s *b; b->j = 5;
3989 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3995 if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3999 echo "configure: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4006 echo "$ac_t""$ac_cv_c_const" 1>&6
4007 if test $ac_cv_c_const = no; then
4008 { test "$extra_verbose" = "yes" && cat << \EOF
4011 cat >> confdefs.h <<\EOF
4019 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4020 echo "configure:4021: checking whether ${MAKE-make} sets \${MAKE}" >&5
4021 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4023 cat > conftestmake <<\EOF
4025 @echo 'ac_maketemp="${MAKE}"'
4027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4028 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4029 if test -n "$ac_maketemp"; then
4030 eval ac_cv_prog_make_${ac_make}_set=yes
4032 eval ac_cv_prog_make_${ac_make}_set=no
4035 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4039 echo "$ac_t""no" 1>&6
4040 SET_MAKE="MAKE=${MAKE-make}"
4044 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4045 echo "configure:4046: checking whether byte ordering is bigendian" >&5
4047 ac_cv_c_bigendian=unknown
4048 # See if sys/param.h defines the BYTE_ORDER macro.
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 #include <sys/types.h>
4053 #include <sys/param.h>
4056 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 # It does; now see whether it defined to BIG_ENDIAN or not.
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4067 #include <sys/types.h>
4068 #include <sys/param.h>
4071 #if BYTE_ORDER != BIG_ENDIAN
4076 if { (eval echo configure:4077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4078 ac_cv_c_bigendian=yes
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 ac_cv_c_bigendian=no
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4091 if test $ac_cv_c_bigendian = unknown; then
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4096 /* Are we little or big endian? From Harbison&Steele. */
4100 char c[sizeof (long)];
4103 exit (u.c[sizeof (long) - 1] == 1);
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4108 ac_cv_c_bigendian=no
4111 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
4114 ac_cv_c_bigendian=yes
4119 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4120 if test $ac_cv_c_bigendian = yes; then
4121 { test "$extra_verbose" = "yes" && cat << \EOF
4122 Defining WORDS_BIGENDIAN
4124 cat >> confdefs.h <<\EOF
4125 #define WORDS_BIGENDIAN 1
4132 echo $ac_n "checking size of short""... $ac_c" 1>&6
4133 echo "configure:4134: checking size of short" >&5
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4141 FILE *f=fopen("conftestval", "w");
4143 fprintf(f, "%d\n", sizeof(short));
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4149 ac_cv_sizeof_short=`cat conftestval`
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4155 ac_cv_sizeof_short=0
4158 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4159 { test "$extra_verbose" = "yes" && cat << EOF
4160 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4162 cat >> confdefs.h <<EOF
4163 #define SIZEOF_SHORT $ac_cv_sizeof_short
4168 if test "$ac_cv_sizeof_short" = 0; then
4170 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4171 echo "*** PANIC *** Please examine config.log for compilation errors."
4174 echo $ac_n "checking size of int""... $ac_c" 1>&6
4175 echo "configure:4176: checking size of int" >&5
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4183 FILE *f=fopen("conftestval", "w");
4185 fprintf(f, "%d\n", sizeof(int));
4189 if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4191 ac_cv_sizeof_int=`cat conftestval`
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4200 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4201 { test "$extra_verbose" = "yes" && cat << EOF
4202 Defining SIZEOF_INT = $ac_cv_sizeof_int
4204 cat >> confdefs.h <<EOF
4205 #define SIZEOF_INT $ac_cv_sizeof_int
4210 echo $ac_n "checking size of long""... $ac_c" 1>&6
4211 echo "configure:4212: checking size of long" >&5
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4219 FILE *f=fopen("conftestval", "w");
4221 fprintf(f, "%d\n", sizeof(long));
4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4227 ac_cv_sizeof_long=`cat conftestval`
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4236 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4237 { test "$extra_verbose" = "yes" && cat << EOF
4238 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4240 cat >> confdefs.h <<EOF
4241 #define SIZEOF_LONG $ac_cv_sizeof_long
4246 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4247 echo "configure:4248: checking size of long long" >&5
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4255 FILE *f=fopen("conftestval", "w");
4257 fprintf(f, "%d\n", sizeof(long long));
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4263 ac_cv_sizeof_long_long=`cat conftestval`
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 ac_cv_sizeof_long_long=0
4272 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4273 { test "$extra_verbose" = "yes" && cat << EOF
4274 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4276 cat >> confdefs.h <<EOF
4277 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4282 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4283 echo "configure:4284: checking size of void *" >&5
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4291 FILE *f=fopen("conftestval", "w");
4293 fprintf(f, "%d\n", sizeof(void *));
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4299 ac_cv_sizeof_void_p=`cat conftestval`
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4305 ac_cv_sizeof_void_p=0
4308 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4309 { test "$extra_verbose" = "yes" && cat << EOF
4310 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4312 cat >> confdefs.h <<EOF
4313 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4319 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4320 echo "configure:4321: checking for long file names" >&5
4322 ac_cv_sys_long_file_names=yes
4323 # Test for long file names in all the places we know might matter:
4324 # . the current directory, where building will happen
4325 # $prefix/lib where we will be installing things
4326 # $exec_prefix/lib likewise
4327 # eval it to expand exec_prefix.
4328 # $TMPDIR if set, where it might want to write temporary files
4329 # if $TMPDIR is not set:
4330 # /tmp where it might want to write temporary files
4333 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4334 ac_tmpdirs="$TMPDIR"
4336 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4338 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4339 test -d $ac_dir || continue
4340 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4341 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4342 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4343 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4344 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4345 ac_cv_sys_long_file_names=no
4346 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4349 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4352 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4353 if test $ac_cv_sys_long_file_names = yes; then
4354 { test "$extra_verbose" = "yes" && cat << \EOF
4355 Defining HAVE_LONG_FILE_NAMES
4357 cat >> confdefs.h <<\EOF
4358 #define HAVE_LONG_FILE_NAMES 1
4365 echo $ac_n "checking for sin""... $ac_c" 1>&6
4366 echo "configure:4367: checking for sin" >&5
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4371 /* System header to define __stub macros and hopefully few prototypes,
4372 which can conflict with char sin(); below. */
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4381 /* The GNU C library defines this for functions which it implements
4382 to always fail with ENOSYS. Some functions are actually named
4383 something starting with __ and the normal name is an alias. */
4384 #if defined (__stub_sin) || defined (__stub___sin)
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394 eval "ac_cv_func_sin=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4399 eval "ac_cv_func_sin=no"
4403 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4404 echo "$ac_t""yes" 1>&6
4407 echo "$ac_t""no" 1>&6
4409 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4410 echo "configure:4411: checking for sin in -lm" >&5
4411 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4413 xe_check_libs=" -lm "
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4428 eval "ac_cv_lib_$ac_lib_var=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 eval "ac_cv_lib_$ac_lib_var=no"
4438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4439 echo "$ac_t""yes" 1>&6
4440 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4441 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4442 { test "$extra_verbose" = "yes" && cat << EOF
4445 cat >> confdefs.h <<EOF
4446 #define $ac_tr_lib 1
4450 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4453 echo "$ac_t""no" 1>&6
4460 { test "$extra_verbose" = "yes" && cat << \EOF
4461 Defining LISP_FLOAT_TYPE
4463 cat >> confdefs.h <<\EOF
4464 #define LISP_FLOAT_TYPE 1
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4474 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479 { test "$extra_verbose" = "yes" && cat << \EOF
4480 Defining HAVE_INVERSE_HYPERBOLIC
4482 cat >> confdefs.h <<\EOF
4483 #define HAVE_INVERSE_HYPERBOLIC 1
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4493 echo "checking type of mail spool file locking" 1>&6
4494 echo "configure:4495: checking type of mail spool file locking" >&5
4495 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4496 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4497 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4498 Defining REAL_MAIL_USE_LOCKF
4500 cat >> confdefs.h <<\EOF
4501 #define REAL_MAIL_USE_LOCKF 1
4505 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4506 Defining REAL_MAIL_USE_FLOCK
4508 cat >> confdefs.h <<\EOF
4509 #define REAL_MAIL_USE_FLOCK 1
4513 else mail_locking="dot-locking"
4516 case "$opsys" in decosf*)
4518 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4519 echo "configure:4520: checking for cma_open in -lpthreads" >&5
4520 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4522 xe_check_libs=" -lpthreads "
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4537 eval "ac_cv_lib_$ac_lib_var=yes"
4539 echo "configure: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4542 eval "ac_cv_lib_$ac_lib_var=no"
4547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4551 { test "$extra_verbose" = "yes" && cat << EOF
4554 cat >> confdefs.h <<EOF
4555 #define $ac_tr_lib 1
4559 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4562 echo "$ac_t""no" 1>&6
4566 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4567 c_switch_site="$c_switch_site -threads" ;;
4570 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4571 echo "configure:4572: checking whether the -xildoff compiler flag is required" >&5
4572 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4573 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4574 then echo "$ac_t""no" 1>&6;
4575 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
4577 else echo "$ac_t""no" 1>&6
4580 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4581 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4582 echo "configure:4583: checking for \"-z ignore\" linker flag" >&5
4583 case "`ld -h 2>&1`" in
4584 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4585 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4586 *) echo "$ac_t""no" 1>&6 ;;
4591 echo "checking "for specified window system"" 1>&6
4592 echo "configure:4593: checking "for specified window system"" >&5
4594 if test "$with_x11" != "no"; then
4595 test "$x_includes $x_libraries" != "NONE NONE" && \
4596 window_system=x11 with_x11=yes
4599 if test "$x_includes $x_libraries" = "NONE NONE" \
4600 -a -n "$OPENWINHOME" \
4601 -a "$OPENWINHOME" != "/usr/openwin" \
4602 -a -d "$OPENWINHOME"; then
4603 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4604 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4605 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4608 if test "$x_includes" = "NONE"; then
4609 for dir in "/usr/X11" "/usr/X11R6"; do
4610 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4614 if test "$x_libraries" = "NONE"; then
4615 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4616 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4620 # If we find X, set shell vars x_includes and x_libraries to the
4621 # paths, otherwise set no_x=yes.
4622 # Uses ac_ vars as temps to allow command line to override cache and checks.
4623 # --without-x overrides everything else, but does not touch the cache.
4624 echo $ac_n "checking for X""... $ac_c" 1>&6
4625 echo "configure:4626: checking for X" >&5
4627 # Check whether --with-x or --without-x was given.
4628 if test "${with_x+set}" = set; then
4633 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4634 if test "x$with_x" = xno; then
4635 # The user explicitly disabled X.
4638 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4639 # Both variables are already set.
4643 # One or both of the vars are not set, and there is no cached value.
4644 ac_x_includes=NO ac_x_libraries=NO
4646 if mkdir conftestdir; then
4648 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4649 cat > Imakefile <<'EOF'
4651 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4653 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4655 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4656 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4657 for ac_extension in a so sl; do
4658 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4659 test -f $ac_im_libdir/libX11.$ac_extension; then
4660 ac_im_usrlibdir=$ac_im_libdir; break
4663 # Screen out bogus values from the imake configuration. They are
4664 # bogus both because they are the default anyway, and because
4665 # using them would break gcc on systems where it needs fixed includes.
4666 case "$ac_im_incroot" in
4668 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4670 case "$ac_im_usrlibdir" in
4672 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4679 if test "$ac_x_includes" = NO; then
4680 # Guess where to find include files, by looking for this one X11 .h file.
4681 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4683 # First, try using that file with no special directory specified.
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 #include <$x_direct_test_include>
4689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4690 { (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4692 if test -z "$ac_err"; then
4694 # We can compile using X headers with no special include directory.
4698 echo "configure: failed program was:" >&5
4699 cat conftest.$ac_ext >&5
4701 # Look for the header file in a standard set of common directories.
4702 # Check X11 before X11Rn because it is often a symlink to the current release.
4705 /usr/X11R6/include \
4706 /usr/X11R5/include \
4707 /usr/X11R4/include \
4710 /usr/include/X11R6 \
4711 /usr/include/X11R5 \
4712 /usr/include/X11R4 \
4714 /usr/local/X11/include \
4715 /usr/local/X11R6/include \
4716 /usr/local/X11R5/include \
4717 /usr/local/X11R4/include \
4719 /usr/local/include/X11 \
4720 /usr/local/include/X11R6 \
4721 /usr/local/include/X11R5 \
4722 /usr/local/include/X11R4 \
4726 /usr/XFree86/include/X11 \
4729 /usr/local/include \
4730 /usr/unsupported/include \
4731 /usr/athena/include \
4732 /usr/local/x11r5/include \
4733 /usr/lpp/Xamples/include \
4735 /usr/openwin/include \
4736 /usr/openwin/share/include \
4739 if test -r "$ac_dir/$x_direct_test_include"; then
4740 ac_x_includes=$ac_dir
4746 fi # $ac_x_includes = NO
4748 if test "$ac_x_libraries" = NO; then
4749 # Check for the libraries.
4751 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4752 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4754 # See if we find them without any special options.
4755 # Don't add to $LIBS permanently.
4756 ac_save_LIBS="$LIBS"
4757 LIBS="-l$x_direct_test_library $LIBS"
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4763 ${x_direct_test_function}()
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768 LIBS="$ac_save_LIBS"
4769 # We can link X programs with no special library path.
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4775 LIBS="$ac_save_LIBS"
4776 # First see if replacing the include by lib works.
4777 # Check X11 before X11Rn because it is often a symlink to the current release.
4778 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4789 /usr/local/X11/lib \
4790 /usr/local/X11R6/lib \
4791 /usr/local/X11R5/lib \
4792 /usr/local/X11R4/lib \
4794 /usr/local/lib/X11 \
4795 /usr/local/lib/X11R6 \
4796 /usr/local/lib/X11R5 \
4797 /usr/local/lib/X11R4 \
4801 /usr/XFree86/lib/X11 \
4805 /usr/unsupported/lib \
4807 /usr/local/x11r5/lib \
4808 /usr/lpp/Xamples/lib \
4812 /usr/openwin/share/lib \
4815 for ac_extension in a so sl; do
4816 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4817 ac_x_libraries=$ac_dir
4824 fi # $ac_x_libraries = NO
4826 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4827 # Didn't find X anywhere. Cache the known absence of X.
4828 ac_cv_have_x="have_x=no"
4830 # Record where we found X for the cache.
4831 ac_cv_have_x="have_x=yes \
4832 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4835 eval "$ac_cv_have_x"
4838 if test "$have_x" != yes; then
4839 echo "$ac_t""$have_x" 1>&6
4842 # If each of the values was on the command line, it overrides each guess.
4843 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4844 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4845 # Update the cache value to reflect the command line values.
4846 ac_cv_have_x="have_x=yes \
4847 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4848 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4851 if test "$no_x" = yes; then
4852 # Not all programs may use this symbol, but it does not hurt to define it.
4853 { test "$extra_verbose" = "yes" && cat << \EOF
4854 Defining X_DISPLAY_MISSING
4856 cat >> confdefs.h <<\EOF
4857 #define X_DISPLAY_MISSING 1
4861 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4863 if test -n "$x_includes"; then
4864 X_CFLAGS="$X_CFLAGS -I$x_includes"
4867 # It would also be nice to do this for all -L options, not just this one.
4868 if test -n "$x_libraries"; then
4869 X_LIBS="$X_LIBS -L$x_libraries"
4870 # For Solaris; some versions of Sun CC require a space after -R and
4871 # others require no space. Words are not sufficient . . . .
4872 case "`(uname -sr) 2>/dev/null`" in
4874 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4875 echo "configure:4876: checking whether -R must be followed by a space" >&5
4876 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4895 if test $ac_R_nospace = yes; then
4896 echo "$ac_t""no" 1>&6
4897 X_LIBS="$X_LIBS -R$x_libraries"
4899 LIBS="$ac_xsave_LIBS -R $x_libraries"
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4918 if test $ac_R_space = yes; then
4919 echo "$ac_t""yes" 1>&6
4920 X_LIBS="$X_LIBS -R $x_libraries"
4922 echo "$ac_t""neither works" 1>&6
4925 LIBS="$ac_xsave_LIBS"
4929 # Check for system-dependent libraries X programs must link with.
4930 # Do this before checking for the system-independent R6 libraries
4931 # (-lICE), since we may need -lsocket or whatever for X linking.
4933 if test "$ISC" = yes; then
4934 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4936 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4937 # libraries were built with DECnet support. And karl@cs.umb.edu says
4938 # the Alpha needs dnet_stub (dnet does not exist).
4939 if test "$with_dnet" = "no" ; then
4940 ac_cv_lib_dnet_dnet_ntoa=no
4943 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4944 echo "configure:4945: checking for dnet_ntoa in -ldnet" >&5
4945 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4947 xe_check_libs=" -ldnet "
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4967 eval "ac_cv_lib_$ac_lib_var=no"
4972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4973 echo "$ac_t""yes" 1>&6
4974 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4976 echo "$ac_t""no" 1>&6
4981 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4983 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4984 echo "configure:4985: checking for dnet_ntoa in -ldnet_stub" >&5
4985 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4987 xe_check_libs=" -ldnet_stub "
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
5000 if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5002 eval "ac_cv_lib_$ac_lib_var=yes"
5004 echo "configure: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5007 eval "ac_cv_lib_$ac_lib_var=no"
5012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5013 echo "$ac_t""yes" 1>&6
5014 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5016 echo "$ac_t""no" 1>&6
5022 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5023 # to get the SysV transport functions.
5024 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5026 # The nsl library prevents programs from opening the X display
5027 # on Irix 5.2, according to dickey@clark.net.
5028 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5029 echo "configure:5030: checking for gethostbyname" >&5
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5034 /* System header to define __stub macros and hopefully few prototypes,
5035 which can conflict with char gethostbyname(); below. */
5037 /* Override any gcc2 internal prototype to avoid an error. */
5038 /* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
5040 char gethostbyname();
5044 /* The GNU C library defines this for functions which it implements
5045 to always fail with ENOSYS. Some functions are actually named
5046 something starting with __ and the normal name is an alias. */
5047 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 eval "ac_cv_func_gethostbyname=yes"
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 eval "ac_cv_func_gethostbyname=no"
5066 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5067 echo "$ac_t""yes" 1>&6
5070 echo "$ac_t""no" 1>&6
5073 if test $ac_cv_func_gethostbyname = no; then
5075 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5076 echo "configure:5077: checking for gethostbyname in -lnsl" >&5
5077 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5079 xe_check_libs=" -lnsl "
5080 cat > conftest.$ac_ext <<EOF
5081 #line 5082 "configure"
5082 #include "confdefs.h"
5083 /* Override any gcc2 internal prototype to avoid an error. */
5084 /* We use char because int might match the return type of a gcc2
5085 builtin and then its argument prototype would still apply. */
5086 char gethostbyname();
5092 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5094 eval "ac_cv_lib_$ac_lib_var=yes"
5096 echo "configure: failed program was:" >&5
5097 cat conftest.$ac_ext >&5
5099 eval "ac_cv_lib_$ac_lib_var=no"
5104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5105 echo "$ac_t""yes" 1>&6
5106 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5108 echo "$ac_t""no" 1>&6
5114 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5115 # socket/setsockopt and other routines are undefined under SCO ODT
5116 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5117 # on later versions), says simon@lia.di.epfl.ch: it contains
5118 # gethostby* variants that don't use the nameserver (or something).
5119 # -lsocket must be given before -lnsl if both are needed.
5120 # We assume that if connect needs -lnsl, so does gethostbyname.
5121 echo $ac_n "checking for connect""... $ac_c" 1>&6
5122 echo "configure:5123: checking for connect" >&5
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes,
5128 which can conflict with char connect(); below. */
5130 /* Override any gcc2 internal prototype to avoid an error. */
5131 /* We use char because int might match the return type of a gcc2
5132 builtin and then its argument prototype would still apply. */
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_connect) || defined (__stub___connect)
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 eval "ac_cv_func_connect=yes"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 eval "ac_cv_func_connect=no"
5159 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5160 echo "$ac_t""yes" 1>&6
5163 echo "$ac_t""no" 1>&6
5166 if test $ac_cv_func_connect = no; then
5168 xe_msg_checking="for connect in -lsocket"
5169 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5170 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5171 echo "configure:5172: checking "$xe_msg_checking"" >&5
5172 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5174 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5189 eval "ac_cv_lib_$ac_lib_var=yes"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5194 eval "ac_cv_lib_$ac_lib_var=no"
5199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5200 echo "$ac_t""yes" 1>&6
5201 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5203 echo "$ac_t""no" 1>&6
5209 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5210 echo $ac_n "checking for remove""... $ac_c" 1>&6
5211 echo "configure:5212: checking for remove" >&5
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 /* System header to define __stub macros and hopefully few prototypes,
5217 which can conflict with char remove(); below. */
5219 /* Override any gcc2 internal prototype to avoid an error. */
5220 /* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */
5226 /* The GNU C library defines this for functions which it implements
5227 to always fail with ENOSYS. Some functions are actually named
5228 something starting with __ and the normal name is an alias. */
5229 #if defined (__stub_remove) || defined (__stub___remove)
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 eval "ac_cv_func_remove=yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5244 eval "ac_cv_func_remove=no"
5248 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5252 echo "$ac_t""no" 1>&6
5255 if test $ac_cv_func_remove = no; then
5257 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5258 echo "configure:5259: checking for remove in -lposix" >&5
5259 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5261 xe_check_libs=" -lposix "
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 /* Override any gcc2 internal prototype to avoid an error. */
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5274 if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5276 eval "ac_cv_lib_$ac_lib_var=yes"
5278 echo "configure: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5281 eval "ac_cv_lib_$ac_lib_var=no"
5286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5287 echo "$ac_t""yes" 1>&6
5288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5290 echo "$ac_t""no" 1>&6
5296 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5297 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5298 echo "configure:5299: checking for shmat" >&5
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5303 /* System header to define __stub macros and hopefully few prototypes,
5304 which can conflict with char shmat(); below. */
5306 /* Override any gcc2 internal prototype to avoid an error. */
5307 /* We use char because int might match the return type of a gcc2
5308 builtin and then its argument prototype would still apply. */
5313 /* The GNU C library defines this for functions which it implements
5314 to always fail with ENOSYS. Some functions are actually named
5315 something starting with __ and the normal name is an alias. */
5316 #if defined (__stub_shmat) || defined (__stub___shmat)
5324 if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5326 eval "ac_cv_func_shmat=yes"
5328 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5331 eval "ac_cv_func_shmat=no"
5335 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5336 echo "$ac_t""yes" 1>&6
5339 echo "$ac_t""no" 1>&6
5342 if test $ac_cv_func_shmat = no; then
5344 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5345 echo "configure:5346: checking for shmat in -lipc" >&5
5346 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5348 xe_check_libs=" -lipc "
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 /* Override any gcc2 internal prototype to avoid an error. */
5353 /* We use char because int might match the return type of a gcc2
5354 builtin and then its argument prototype would still apply. */
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5363 eval "ac_cv_lib_$ac_lib_var=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5368 eval "ac_cv_lib_$ac_lib_var=no"
5373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5374 echo "$ac_t""yes" 1>&6
5375 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5377 echo "$ac_t""no" 1>&6
5384 # Check for libraries that X11R6 Xt/Xaw programs need.
5385 ac_save_LDFLAGS="$LDFLAGS"
5386 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5387 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5388 # check for ICE first), but we must link in the order -lSM -lICE or
5389 # we get undefined symbols. So assume we have SM if we have ICE.
5390 # These have to be linked with before -lX11, unlike the other
5391 # libraries we check for below, so use a different variable.
5392 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5394 xe_msg_checking="for IceConnectionNumber in -lICE"
5395 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5396 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5397 echo "configure:5398: checking "$xe_msg_checking"" >&5
5398 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5400 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5404 /* Override any gcc2 internal prototype to avoid an error. */
5405 /* We use char because int might match the return type of a gcc2
5406 builtin and then its argument prototype would still apply. */
5407 char IceConnectionNumber();
5410 IceConnectionNumber()
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5415 eval "ac_cv_lib_$ac_lib_var=yes"
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5420 eval "ac_cv_lib_$ac_lib_var=no"
5425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5426 echo "$ac_t""yes" 1>&6
5427 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5429 echo "$ac_t""no" 1>&6
5433 LDFLAGS="$ac_save_LDFLAGS"
5436 # Autoconf claims to find X library and include dirs for us.
5437 if test "$no_x" = "yes"
5438 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5439 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5444 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5445 no ) window_system=none HAVE_X_WINDOWS=no ;;
5448 if test "$with_x11" = "yes"; then
5449 { test "$extra_verbose" = "yes" && cat << \EOF
5450 Defining HAVE_X_WINDOWS
5452 cat >> confdefs.h <<\EOF
5453 #define HAVE_X_WINDOWS 1
5457 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5458 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5460 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5461 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5462 if test -d "$lib_dir" -a -d "$inc_dir"; then
5463 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5464 x_libraries="$lib_dir $x_libraries"
5465 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5467 case "$x_includes" in "$inc_dir"* ) ;; *)
5468 x_includes="$inc_dir $x_includes"
5469 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5474 for rel in "X11R6" "X11R5" "X11R4"; do
5475 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5476 if test -d "$lib_dir" -a -d "$inc_dir"; then
5477 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5478 x_libraries="$x_libraries $lib_dir"
5479 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5481 case "$x_includes" in "$inc_dir"* ) ;; *)
5482 x_includes="$x_includes $inc_dir"
5483 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5488 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
5490 ld_switch_x_site="$X_LIBS"
5493 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5494 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5495 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5497 runpath="" runpath_dirs=""
5498 if test -n "$LD_RUN_PATH"; then
5499 runpath="$LD_RUN_PATH"
5500 elif test "$GCC" = "yes"; then
5501 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5502 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5503 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5504 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5505 case "$arg" in P,* | -L* | -R* )
5506 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5508 xe_runpath_dir="$dir"
5509 test "$xe_runpath_dir" != "/lib" -a \
5510 "$xe_runpath_dir" != "/usr/lib" -a \
5511 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5512 eval "$xe_add_unique_runpath_dir"
5517 ld_switch_run="$ld_switch_run_save"
5520 for arg in $ld_switch_site $ld_switch_x_site; do
5521 case "$arg" in -L*) {
5522 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5523 test "$xe_runpath_dir" != "/lib" -a \
5524 "$xe_runpath_dir" != "/usr/lib" -a \
5525 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5526 eval "$xe_add_unique_runpath_dir"
5529 if test "$opsys $need_motif" = "sol2 yes"; then
5530 xe_runpath_dir="/opt/SUNWdt/lib";
5531 eval "$xe_add_unique_runpath_dir";
5534 if test -n "$runpath"; then
5535 ld_switch_run="${dash_r}${runpath}"
5537 if test "$GCC" = "yes"; then
5538 set x $ld_switch_run; shift; ld_switch_run=""
5539 while test -n "$1"; do
5541 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5542 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5544 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5549 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5554 if test "$extra_verbose" = "yes"; then
5555 echo; echo "X11 compilation variables:"
5556 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5561 if test "$x_includes" != NONE; then
5562 for i in $x_includes; do
5563 if test -d "$i/bitmaps"; then
5564 bitmapdirs="$i/bitmaps:$bitmapdirs"
5566 if test -d "$i/X11/bitmaps"; then
5567 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5570 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5572 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5573 Defining BITMAPDIR = "$bitmapdirs"
5575 cat >> confdefs.h <<EOF
5576 #define BITMAPDIR "$bitmapdirs"
5581 echo "checking for X defines extracted by xmkmf" 1>&6
5582 echo "configure:5583: checking for X defines extracted by xmkmf" >&5
5584 if mkdir conftestdir; then
5586 cat > Imakefile <<'EOF'
5588 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5590 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5591 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5592 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5596 for word in $xmkmf_defines; do
5599 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5600 { test "$extra_verbose" = "yes" && cat << EOF
5603 cat >> confdefs.h <<EOF
5612 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5613 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5614 echo "configure:5615: checking for X11/Intrinsic.h" >&5
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 #include <X11/Intrinsic.h>
5621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5622 { (eval echo configure:5623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5624 if test -z "$ac_err"; then
5626 eval "ac_cv_header_$ac_safe=yes"
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5632 eval "ac_cv_header_$ac_safe=no"
5635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5639 echo "$ac_t""no" 1>&6
5640 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5645 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5646 echo "configure:5647: checking for XOpenDisplay in -lX11" >&5
5647 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5649 xe_check_libs=" -lX11 "
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5656 char XOpenDisplay();
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5664 eval "ac_cv_lib_$ac_lib_var=yes"
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 eval "ac_cv_lib_$ac_lib_var=no"
5674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5675 echo "$ac_t""yes" 1>&6
5678 echo "$ac_t""no" 1>&6
5682 if test "$have_lib_x11" != "yes"; then
5684 xe_msg_checking="for XGetFontProperty in -lX11"
5685 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5686 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5687 echo "configure:5688: checking "$xe_msg_checking"" >&5
5688 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5690 xe_check_libs=" -lX11 -b i486-linuxaout"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 /* Override any gcc2 internal prototype to avoid an error. */
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5697 char XGetFontProperty();
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5705 eval "ac_cv_lib_$ac_lib_var=yes"
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 eval "ac_cv_lib_$ac_lib_var=no"
5715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5716 echo "$ac_t""yes" 1>&6
5717 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5719 echo "$ac_t""no" 1>&6
5720 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5726 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5729 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5730 echo "configure:5731: checking for XShapeSelectInput in -lXext" >&5
5731 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5733 xe_check_libs=" -lXext "
5734 cat > conftest.$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5737 /* Override any gcc2 internal prototype to avoid an error. */
5738 /* We use char because int might match the return type of a gcc2
5739 builtin and then its argument prototype would still apply. */
5740 char XShapeSelectInput();
5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5748 eval "ac_cv_lib_$ac_lib_var=yes"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 eval "ac_cv_lib_$ac_lib_var=no"
5758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5759 echo "$ac_t""yes" 1>&6
5760 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5762 echo "$ac_t""no" 1>&6
5768 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5769 echo "configure:5770: checking for XtOpenDisplay in -lXt" >&5
5770 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5772 xe_check_libs=" -lXt "
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* Override any gcc2 internal prototype to avoid an error. */
5777 /* We use char because int might match the return type of a gcc2
5778 builtin and then its argument prototype would still apply. */
5779 char XtOpenDisplay();
5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5787 eval "ac_cv_lib_$ac_lib_var=yes"
5789 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5792 eval "ac_cv_lib_$ac_lib_var=no"
5797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5798 echo "$ac_t""yes" 1>&6
5799 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5801 echo "$ac_t""no" 1>&6
5802 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5807 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5808 echo "configure:5809: checking the version of X11 being used" >&5
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 #include <X11/Intrinsic.h>
5813 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5817 ./conftest foobar; x11_release=$?
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5826 echo "$ac_t""R${x11_release}" 1>&6
5827 { test "$extra_verbose" = "yes" && cat << EOF
5828 Defining THIS_IS_X11R${x11_release}
5830 cat >> confdefs.h <<EOF
5831 #define THIS_IS_X11R${x11_release} 1
5836 for ac_hdr in X11/Xlocale.h
5838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5840 echo "configure:5841: checking for $ac_hdr" >&5
5842 cat > conftest.$ac_ext <<EOF
5843 #line 5844 "configure"
5844 #include "confdefs.h"
5847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5848 { (eval echo configure:5849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5850 if test -z "$ac_err"; then
5852 eval "ac_cv_header_$ac_safe=yes"
5855 echo "configure: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5858 eval "ac_cv_header_$ac_safe=no"
5861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5862 echo "$ac_t""yes" 1>&6
5863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5864 { test "$extra_verbose" = "yes" && cat << EOF
5867 cat >> confdefs.h <<EOF
5868 #define $ac_tr_hdr 1
5873 echo "$ac_t""no" 1>&6
5878 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5879 echo "configure:5880: checking for XFree86" >&5
5880 if test -d "/usr/X386/include" -o \
5881 -f "/etc/XF86Config" -o \
5882 -f "/etc/X11/XF86Config" -o \
5883 -f "/usr/X11R6/lib/X11/XF86Config"; then
5884 echo "$ac_t""yes" 1>&6
5885 { test "$extra_verbose" = "yes" && cat << \EOF
5886 Defining HAVE_XFREE386
5888 cat >> confdefs.h <<\EOF
5889 #define HAVE_XFREE386 1
5894 echo "$ac_t""no" 1>&6
5897 test -z "$with_xmu" && {
5898 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5899 echo "configure:5900: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5900 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5902 xe_check_libs=" -lXmu "
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 /* Override any gcc2 internal prototype to avoid an error. */
5907 /* We use char because int might match the return type of a gcc2
5908 builtin and then its argument prototype would still apply. */
5909 char XmuReadBitmapDataFromFile();
5912 XmuReadBitmapDataFromFile()
5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 eval "ac_cv_lib_$ac_lib_var=yes"
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 eval "ac_cv_lib_$ac_lib_var=no"
5927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5928 echo "$ac_t""yes" 1>&6
5931 echo "$ac_t""no" 1>&6
5936 if test "$with_xmu" = "no"; then
5937 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5938 echo " xemacs will be linked with \"xmu.o\""
5941 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5942 { test "$extra_verbose" = "yes" && cat << \EOF
5945 cat >> confdefs.h <<\EOF
5953 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5954 echo "configure:5955: checking for main in -lXbsd" >&5
5955 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5957 xe_check_libs=" -lXbsd "
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5968 eval "ac_cv_lib_$ac_lib_var=yes"
5970 echo "configure: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5973 eval "ac_cv_lib_$ac_lib_var=no"
5978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5979 echo "$ac_t""yes" 1>&6
5980 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5982 echo "$ac_t""no" 1>&6
5987 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5988 if test "$GCC" = "yes"; then
5989 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5990 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5993 "xlc" ) CC="xlc_r" ;;
5994 "xlC" ) CC="xlC_r" ;;
6001 if test "$with_msw" != "no"; then
6002 echo "checking for MS-Windows" 1>&6
6003 echo "configure:6004: checking for MS-Windows" >&5
6005 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6006 echo "configure:6007: checking for main in -lgdi32" >&5
6007 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6009 xe_check_libs=" -lgdi32 "
6010 cat > conftest.$ac_ext <<EOF
6011 #line 6012 "configure"
6012 #include "confdefs.h"
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020 eval "ac_cv_lib_$ac_lib_var=yes"
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 eval "ac_cv_lib_$ac_lib_var=no"
6030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6031 echo "$ac_t""yes" 1>&6
6034 echo "$ac_t""no" 1>&6
6038 if test "$with_msw" = "yes"; then
6039 { test "$extra_verbose" = "yes" && cat << \EOF
6040 Defining HAVE_MS_WINDOWS
6042 cat >> confdefs.h <<\EOF
6043 #define HAVE_MS_WINDOWS 1
6047 install_pp="$blddir/lib-src/installexe.sh"
6048 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6049 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6050 if test "$window_system" != x11; then
6052 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6053 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6054 echo " xemacs will be linked with \"scrollbar-msw.o\""
6056 test "$with_menubars" != "no" && with_menubars=msw \
6057 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6058 echo " xemacs will be linked with \"menubar-msw.o\""
6060 test "$with_toolbars" != "no" && with_toolbars=msw \
6061 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6062 echo " xemacs will be linked with \"toolbar-msw.o\""
6064 test "$with_dialogs" != "no" && with_dialogs=msw \
6065 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6066 echo " xemacs will be linked with \"dialog-msw.o\""
6068 test "$with_widgets" != "no" && with_widgets=msw
6070 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6071 echo " xemacs will be linked with \"scrollbar-msw.o\""
6073 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6074 echo " xemacs will be linked with \"menubar-msw.o\""
6076 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6077 echo " xemacs will be linked with \"toolbar-msw.o\""
6079 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6080 echo " xemacs will be linked with \"dialog-msw.o\""
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6087 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6089 if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6091 { test "$extra_verbose" = "yes" && cat << \EOF
6092 Defining HAVE_MSG_SELECT
6094 cat >> confdefs.h <<\EOF
6095 #define HAVE_MSG_SELECT 1
6101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6106 with_file_coding=yes
6107 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
6108 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\""
6115 test -z "$window_system" && window_system="none"
6117 if test "$window_system" = "none"; then
6118 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6120 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6121 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6123 eval "with_${feature}=no"
6126 test -z "$with_toolbars" && with_toolbars=yes
6129 if test "$with_msw" != "yes"; then
6130 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6132 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6133 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6135 eval "with_${feature}=no"
6141 if test "$with_x11" != "yes"; then
6142 for feature in tooltalk cde offix wmcommand xim xmu
6144 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6145 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6147 eval "with_${feature}=no"
6153 case "$window_system" in
6154 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6155 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6156 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6159 case "$x_libraries" in *X11R4* )
6160 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6161 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6164 echo "checking for WM_COMMAND option" 1>&6
6165 echo "configure:6166: checking for WM_COMMAND option" >&5;
6166 if test "$with_wmcommand" != "no"; then
6167 { test "$extra_verbose" = "yes" && cat << \EOF
6168 Defining HAVE_WMCOMMAND
6170 cat >> confdefs.h <<\EOF
6171 #define HAVE_WMCOMMAND 1
6177 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6178 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6179 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6180 echo "configure:6181: checking for X11/Xauth.h" >&5
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 #include <X11/Xauth.h>
6187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6188 { (eval echo configure:6189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6190 if test -z "$ac_err"; then
6192 eval "ac_cv_header_$ac_safe=yes"
6195 echo "configure: failed program was:" >&5
6196 cat conftest.$ac_ext >&5
6198 eval "ac_cv_header_$ac_safe=no"
6201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6202 echo "$ac_t""yes" 1>&6
6205 echo "$ac_t""no" 1>&6
6209 test -z "$with_xauth" && {
6210 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6211 echo "configure:6212: checking for XauGetAuthByAddr in -lXau" >&5
6212 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6214 xe_check_libs=" -lXau "
6215 cat > conftest.$ac_ext <<EOF
6216 #line 6217 "configure"
6217 #include "confdefs.h"
6218 /* Override any gcc2 internal prototype to avoid an error. */
6219 /* We use char because int might match the return type of a gcc2
6220 builtin and then its argument prototype would still apply. */
6221 char XauGetAuthByAddr();
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6229 eval "ac_cv_lib_$ac_lib_var=yes"
6231 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6234 eval "ac_cv_lib_$ac_lib_var=no"
6239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6240 echo "$ac_t""yes" 1>&6
6243 echo "$ac_t""no" 1>&6
6248 test -z "$with_xauth" && with_xauth=yes
6249 if test "$with_xauth" = "yes"; then
6250 { test "$extra_verbose" = "yes" && cat << \EOF
6253 cat >> confdefs.h <<\EOF
6254 #define HAVE_XAUTH 1
6260 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
6268 if test "$with_tooltalk" != "no" ; then
6269 for dir in "" "Tt/" "desktop/" ; do
6270 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6271 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6272 echo "configure:6273: checking for ${dir}tt_c.h" >&5
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6277 #include <${dir}tt_c.h>
6279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6280 { (eval echo configure:6281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6282 if test -z "$ac_err"; then
6284 eval "ac_cv_header_$ac_safe=yes"
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6290 eval "ac_cv_header_$ac_safe=no"
6293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6294 echo "$ac_t""yes" 1>&6
6295 tt_c_h_path="${dir}tt_c.h"; break
6297 echo "$ac_t""no" 1>&6
6301 if test -z "$tt_c_h_path"; then
6302 if test "$with_tooltalk" = "yes"; then
6303 (echo "$progname: Usage error:"
6304 echo " " "Unable to find required tooltalk header files."
6305 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6310 if test "$with_tooltalk" != "no" ; then
6311 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6313 xe_msg_checking="for tt_message_create in -ltt"
6314 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6315 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6316 echo "configure:6317: checking "$xe_msg_checking"" >&5
6317 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6319 xe_check_libs=" -ltt $extra_libs"
6320 cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure"
6322 #include "confdefs.h"
6323 /* Override any gcc2 internal prototype to avoid an error. */
6324 /* We use char because int might match the return type of a gcc2
6325 builtin and then its argument prototype would still apply. */
6326 char tt_message_create();
6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6334 eval "ac_cv_lib_$ac_lib_var=yes"
6336 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6339 eval "ac_cv_lib_$ac_lib_var=no"
6344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6345 echo "$ac_t""yes" 1>&6
6346 tt_libs="-ltt $extra_libs"; break
6348 echo "$ac_t""no" 1>&6
6354 if test -z "$tt_libs"; then
6355 if test "$with_tooltalk" = "yes"; then
6356 (echo "$progname: Usage error:"
6357 echo " " "Unable to find required tooltalk libraries."
6358 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6363 test -z "$with_tooltalk" && with_tooltalk=yes
6364 if test "$with_tooltalk" = "yes"; then
6365 { test "$extra_verbose" = "yes" && cat << \EOF
6368 cat >> confdefs.h <<\EOF
6373 { test "$extra_verbose" = "yes" && cat << EOF
6374 Defining TT_C_H_PATH = "$tt_c_h_path"
6376 cat >> confdefs.h <<EOF
6377 #define TT_C_H_PATH "$tt_c_h_path"
6381 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6382 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6383 echo " xemacs will be linked with \"tooltalk.o\""
6387 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6388 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6389 echo "configure:6390: checking for Dt/Dt.h" >&5
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6397 { (eval echo configure:6398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6399 if test -z "$ac_err"; then
6401 eval "ac_cv_header_$ac_safe=yes"
6404 echo "configure: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6407 eval "ac_cv_header_$ac_safe=no"
6410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6411 echo "$ac_t""yes" 1>&6
6414 echo "$ac_t""no" 1>&6
6418 test -z "$with_cde" && {
6419 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6420 echo "configure:6421: checking for DtDndDragStart in -lDtSvc" >&5
6421 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6423 xe_check_libs=" -lDtSvc "
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6430 char DtDndDragStart();
6436 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6438 eval "ac_cv_lib_$ac_lib_var=yes"
6440 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6443 eval "ac_cv_lib_$ac_lib_var=no"
6448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6449 echo "$ac_t""yes" 1>&6
6452 echo "$ac_t""no" 1>&6
6457 test -z "$with_cde" && with_cde=yes
6458 if test "$with_dragndrop" = no; then
6459 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6462 if test "$with_cde" = "yes" ; then
6463 { test "$extra_verbose" = "yes" && cat << \EOF
6466 cat >> confdefs.h <<\EOF
6471 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6472 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6473 with_tooltalk=yes # CDE requires Tooltalk
6474 need_motif=yes # CDE requires Motif
6477 test "$window_system" != "x11" && with_offix=no
6478 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6479 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6482 if test "$with_dragndrop" = no; then
6483 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6486 if test "$with_cde" = yes; then
6487 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6490 test -z "$with_offix" && with_offix=no
6491 if test "$with_offix" = "yes"; then
6492 { test "$extra_verbose" = "yes" && cat << \EOF
6493 Defining HAVE_OFFIX_DND
6495 cat >> confdefs.h <<\EOF
6496 #define HAVE_OFFIX_DND 1
6500 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6501 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6504 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6505 echo "configure:6506: checking if drag and drop API is needed" >&5
6506 if test "$with_dragndrop" != "no" ; then
6507 if test -n "$dragndrop_proto" ; then
6509 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6510 { test "$extra_verbose" = "yes" && cat << \EOF
6511 Defining HAVE_DRAGNDROP
6513 cat >> confdefs.h <<\EOF
6514 #define HAVE_DRAGNDROP 1
6518 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6521 echo "$ac_t""no" 1>&6
6525 echo "checking for LDAP" 1>&6
6526 echo "configure:6527: checking for LDAP" >&5
6527 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6528 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6529 echo "configure:6530: checking for ldap.h" >&5
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6537 { (eval echo configure:6538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6539 if test -z "$ac_err"; then
6541 eval "ac_cv_header_$ac_safe=yes"
6544 echo "configure: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6547 eval "ac_cv_header_$ac_safe=no"
6550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6551 echo "$ac_t""yes" 1>&6
6554 echo "$ac_t""no" 1>&6
6558 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6559 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6560 echo "configure:6561: checking for lber.h" >&5
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6568 { (eval echo configure:6569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6570 if test -z "$ac_err"; then
6572 eval "ac_cv_header_$ac_safe=yes"
6575 echo "configure: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 eval "ac_cv_header_$ac_safe=no"
6581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6582 echo "$ac_t""yes" 1>&6
6585 echo "$ac_t""no" 1>&6
6589 if test "$with_ldap" != "no"; then
6591 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6592 echo "configure:6593: checking for ldap_search in -lldap" >&5
6593 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6595 xe_check_libs=" -lldap "
6596 cat > conftest.$ac_ext <<EOF
6597 #line 6598 "configure"
6598 #include "confdefs.h"
6599 /* Override any gcc2 internal prototype to avoid an error. */
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6608 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6610 eval "ac_cv_lib_$ac_lib_var=yes"
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6615 eval "ac_cv_lib_$ac_lib_var=no"
6620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6621 echo "$ac_t""yes" 1>&6
6622 with_ldap_nolber=yes
6624 echo "$ac_t""no" 1>&6
6629 test "$with_ldap_nolber" = "no" && {
6630 xe_msg_checking="for ldap_open in -lldap"
6631 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6632 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6633 echo "configure:6634: checking "$xe_msg_checking"" >&5
6634 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6636 xe_check_libs=" -lldap -llber"
6637 cat > conftest.$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6640 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6651 eval "ac_cv_lib_$ac_lib_var=yes"
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6656 eval "ac_cv_lib_$ac_lib_var=no"
6661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6662 echo "$ac_t""yes" 1>&6
6665 echo "$ac_t""no" 1>&6
6670 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6671 xe_msg_checking="for ldap_open in -lldap"
6672 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6673 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6674 echo "configure:6675: checking "$xe_msg_checking"" >&5
6675 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6677 xe_check_libs=" -lldap -llber -lkrb"
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6692 eval "ac_cv_lib_$ac_lib_var=yes"
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6697 eval "ac_cv_lib_$ac_lib_var=no"
6702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6703 echo "$ac_t""yes" 1>&6
6706 echo "$ac_t""no" 1>&6
6711 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6712 xe_msg_checking="for ldap_open in -lldap"
6713 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6714 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6715 echo "configure:6716: checking "$xe_msg_checking"" >&5
6716 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6718 xe_check_libs=" -lldap -llber -lkrb -ldes"
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 eval "ac_cv_lib_$ac_lib_var=yes"
6735 echo "configure: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6738 eval "ac_cv_lib_$ac_lib_var=no"
6743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6744 echo "$ac_t""yes" 1>&6
6745 with_ldap_krbdes=yes
6747 echo "$ac_t""no" 1>&6
6752 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
6754 if test "$with_ldap" = "yes"; then
6755 { test "$extra_verbose" = "yes" && cat << \EOF
6758 cat >> confdefs.h <<\EOF
6763 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6764 echo " xemacs will be linked with \"eldap.o\""
6766 if test "$with_ldap_nolber" = "yes" ; then
6767 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6769 if test "$with_ldap_krb" = "yes" ; then
6770 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6772 if test "$with_ldap_krbdes" = "yes" ; then
6773 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6774 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6776 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6777 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6779 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6782 echo "configure:6783: checking for $ac_func" >&5
6784 cat > conftest.$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6787 /* System header to define __stub macros and hopefully few prototypes,
6788 which can conflict with char $ac_func(); below. */
6790 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6797 /* The GNU C library defines this for functions which it implements
6798 to always fail with ENOSYS. Some functions are actually named
6799 something starting with __ and the normal name is an alias. */
6800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6810 eval "ac_cv_func_$ac_func=yes"
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6815 eval "ac_cv_func_$ac_func=no"
6819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6822 { test "$extra_verbose" = "yes" && cat << EOF
6823 Defining $ac_tr_func
6825 cat >> confdefs.h <<EOF
6826 #define $ac_tr_func 1
6831 echo "$ac_t""no" 1>&6
6838 if test "$window_system" != "none"; then
6839 echo "checking for graphics libraries" 1>&6
6840 echo "configure:6841: checking for graphics libraries" >&5
6843 if test -z "$with_xpm"; then
6844 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6845 echo "configure:6846: checking for Xpm - no older than 3.4f" >&5
6847 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6850 #include <X11/xpm.h>
6851 int main(int c, char **v) {
6853 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6854 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6858 ./conftest dummy_arg; xpm_status=$?;
6859 if test "$xpm_status" = "0"; then
6863 if test "$xpm_status" = "1"; then
6864 xpm_problem="Xpm library version and header file version don't match!"
6865 elif test "$xpm_status" = "2"; then
6866 xpm_problem="Xpm library version is too old!"
6868 xpm_problem="Internal xpm detection logic error!"
6871 *** WARNING *** $xpm_problem
6872 I'm not touching that with a 10-foot pole!
6873 If you really want to use the installed version of Xpm, rerun
6874 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6885 echo "$ac_t""$with_xpm" 1>&6
6887 if test "$with_xpm" = "yes"; then
6888 { test "$extra_verbose" = "yes" && cat << \EOF
6891 cat >> confdefs.h <<\EOF
6896 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6897 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6898 echo "configure:6899: checking for \"FOR_MSW\" xpm" >&5
6900 cat > conftest.$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6905 XpmCreatePixmapFromData()
6908 if { (eval echo configure:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6912 echo "configure: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6919 echo "$ac_t""$xpm_for_msw" 1>&6
6920 if test "$xpm_for_msw" = "yes"; then
6921 { test "$extra_verbose" = "yes" && cat << \EOF
6924 cat >> confdefs.h <<\EOF
6932 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6933 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6934 echo "configure:6935: checking for compface.h" >&5
6936 cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 #include <compface.h>
6941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6942 { (eval echo configure:6943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6944 if test -z "$ac_err"; then
6946 eval "ac_cv_header_$ac_safe=yes"
6949 echo "configure: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6952 eval "ac_cv_header_$ac_safe=no"
6955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6956 echo "$ac_t""yes" 1>&6
6959 echo "$ac_t""no" 1>&6
6963 test -z "$with_xface" && {
6964 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6965 echo "configure:6966: checking for UnGenFace in -lcompface" >&5
6966 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6968 xe_check_libs=" -lcompface "
6969 cat > conftest.$ac_ext <<EOF
6970 #line 6971 "configure"
6971 #include "confdefs.h"
6972 /* Override any gcc2 internal prototype to avoid an error. */
6973 /* We use char because int might match the return type of a gcc2
6974 builtin and then its argument prototype would still apply. */
6981 if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6983 eval "ac_cv_lib_$ac_lib_var=yes"
6985 echo "configure: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6988 eval "ac_cv_lib_$ac_lib_var=no"
6993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6994 echo "$ac_t""yes" 1>&6
6997 echo "$ac_t""no" 1>&6
7002 test -z "$with_xface" && with_xface=yes
7003 if test "$with_xface" = "yes"; then
7004 { test "$extra_verbose" = "yes" && cat << \EOF
7007 cat >> confdefs.h <<\EOF
7008 #define HAVE_XFACE 1
7012 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7015 if test "$with_gif" != "no"; then
7017 { test "$extra_verbose" = "yes" && cat << \EOF
7020 cat >> confdefs.h <<\EOF
7025 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7026 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7030 if test "$with_png $with_tiff" != "no no"; then
7032 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7033 echo "configure:7034: checking for inflate in -lc" >&5
7034 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7036 xe_check_libs=" -lc "
7037 cat > conftest.$ac_ext <<EOF
7038 #line 7039 "configure"
7039 #include "confdefs.h"
7040 /* Override any gcc2 internal prototype to avoid an error. */
7041 /* We use char because int might match the return type of a gcc2
7042 builtin and then its argument prototype would still apply. */
7049 if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7051 eval "ac_cv_lib_$ac_lib_var=yes"
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7056 eval "ac_cv_lib_$ac_lib_var=no"
7061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7062 echo "$ac_t""yes" 1>&6
7065 echo "$ac_t""no" 1>&6
7067 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7068 echo "configure:7069: checking for inflate in -lz" >&5
7069 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7071 xe_check_libs=" -lz "
7072 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure"
7074 #include "confdefs.h"
7075 /* Override any gcc2 internal prototype to avoid an error. */
7076 /* We use char because int might match the return type of a gcc2
7077 builtin and then its argument prototype would still apply. */
7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7086 eval "ac_cv_lib_$ac_lib_var=yes"
7088 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7091 eval "ac_cv_lib_$ac_lib_var=no"
7096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7097 echo "$ac_t""yes" 1>&6
7098 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7100 echo "$ac_t""no" 1>&6
7102 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7103 echo "configure:7104: checking for inflate in -lgz" >&5
7104 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7106 xe_check_libs=" -lgz "
7107 cat > conftest.$ac_ext <<EOF
7108 #line 7109 "configure"
7109 #include "confdefs.h"
7110 /* Override any gcc2 internal prototype to avoid an error. */
7111 /* We use char because int might match the return type of a gcc2
7112 builtin and then its argument prototype would still apply. */
7119 if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7121 eval "ac_cv_lib_$ac_lib_var=yes"
7123 echo "configure: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7126 eval "ac_cv_lib_$ac_lib_var=no"
7131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7132 echo "$ac_t""yes" 1>&6
7133 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7135 echo "$ac_t""no" 1>&6
7147 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7148 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7149 echo "configure:7150: checking for jpeglib.h" >&5
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7154 #include <jpeglib.h>
7156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7157 { (eval echo configure:7158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7159 if test -z "$ac_err"; then
7161 eval "ac_cv_header_$ac_safe=yes"
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 eval "ac_cv_header_$ac_safe=no"
7170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7174 echo "$ac_t""no" 1>&6
7178 test -z "$with_jpeg" && {
7179 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7180 echo "configure:7181: checking for jpeg_destroy_decompress in -ljpeg" >&5
7181 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7183 xe_check_libs=" -ljpeg "
7184 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7187 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7190 char jpeg_destroy_decompress();
7193 jpeg_destroy_decompress()
7196 if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7198 eval "ac_cv_lib_$ac_lib_var=yes"
7200 echo "configure: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7203 eval "ac_cv_lib_$ac_lib_var=no"
7208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7209 echo "$ac_t""yes" 1>&6
7212 echo "$ac_t""no" 1>&6
7217 test -z "$with_jpeg" && with_jpeg=yes
7218 if test "$with_jpeg" = "yes"; then
7219 { test "$extra_verbose" = "yes" && cat << \EOF
7222 cat >> confdefs.h <<\EOF
7227 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7231 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7232 echo "configure:7233: checking for pow" >&5
7234 cat > conftest.$ac_ext <<EOF
7235 #line 7236 "configure"
7236 #include "confdefs.h"
7237 /* System header to define __stub macros and hopefully few prototypes,
7238 which can conflict with char pow(); below. */
7240 /* Override any gcc2 internal prototype to avoid an error. */
7241 /* We use char because int might match the return type of a gcc2
7242 builtin and then its argument prototype would still apply. */
7247 /* The GNU C library defines this for functions which it implements
7248 to always fail with ENOSYS. Some functions are actually named
7249 something starting with __ and the normal name is an alias. */
7250 #if defined (__stub_pow) || defined (__stub___pow)
7258 if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7260 eval "ac_cv_func_pow=yes"
7262 echo "configure: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 eval "ac_cv_func_pow=no"
7269 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7270 echo "$ac_t""yes" 1>&6
7273 echo "$ac_t""no" 1>&6
7277 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7278 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7279 echo "configure:7280: checking for png.h" >&5
7281 cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7287 { (eval echo configure:7288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7289 if test -z "$ac_err"; then
7291 eval "ac_cv_header_$ac_safe=yes"
7294 echo "configure: failed program was:" >&5
7295 cat conftest.$ac_ext >&5
7297 eval "ac_cv_header_$ac_safe=no"
7300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7301 echo "$ac_t""yes" 1>&6
7304 echo "$ac_t""no" 1>&6
7308 test -z "$with_png" && {
7309 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7310 echo "configure:7311: checking for png_read_image in -lpng" >&5
7311 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7313 xe_check_libs=" -lpng "
7314 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7317 /* Override any gcc2 internal prototype to avoid an error. */
7318 /* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320 char png_read_image();
7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7328 eval "ac_cv_lib_$ac_lib_var=yes"
7330 echo "configure: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7333 eval "ac_cv_lib_$ac_lib_var=no"
7338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7339 echo "$ac_t""yes" 1>&6
7342 echo "$ac_t""no" 1>&6
7347 if test -z "$with_png"; then
7348 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7349 echo "configure:7350: checking for workable png version information" >&5
7350 xe_check_libs="-lpng -lz"
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7355 int main(int c, char **v) {
7356 if (c == 1) return 0;
7357 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7358 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7360 if { (eval echo configure:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7362 ./conftest dummy_arg; png_status=$?;
7363 if test "$png_status" = "0"; then
7367 if test "$png_status" = "1"; then
7368 png_problem="PNG library version and header file don't match!"
7369 elif test "$png_status" = "2"; then
7370 png_problem="PNG library version too old (pre 1.0.2)!"
7373 *** WARNING *** $png_problem
7374 I'm not touching that with a 10-foot pole!
7375 If you really want to use the installed version of libPNG, rerun
7376 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7380 echo "configure: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7387 echo "$ac_t""$with_png" 1>&6
7389 if test "$with_png" = "yes"; then
7390 { test "$extra_verbose" = "yes" && cat << \EOF
7393 cat >> confdefs.h <<\EOF
7398 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7401 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7402 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7403 echo "configure:7404: checking for tiffio.h" >&5
7405 cat > conftest.$ac_ext <<EOF
7406 #line 7407 "configure"
7407 #include "confdefs.h"
7410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7411 { (eval echo configure:7412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7413 if test -z "$ac_err"; then
7415 eval "ac_cv_header_$ac_safe=yes"
7418 echo "configure: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7421 eval "ac_cv_header_$ac_safe=no"
7424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7425 echo "$ac_t""yes" 1>&6
7428 echo "$ac_t""no" 1>&6
7432 test -z "$with_tiff" && {
7433 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7434 echo "configure:7435: checking for TIFFClientOpen in -ltiff" >&5
7435 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7437 xe_check_libs=" -ltiff "
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 /* Override any gcc2 internal prototype to avoid an error. */
7442 /* We use char because int might match the return type of a gcc2
7443 builtin and then its argument prototype would still apply. */
7444 char TIFFClientOpen();
7450 if { (eval echo configure:7451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7452 eval "ac_cv_lib_$ac_lib_var=yes"
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7457 eval "ac_cv_lib_$ac_lib_var=no"
7462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7463 echo "$ac_t""yes" 1>&6
7466 echo "$ac_t""no" 1>&6
7471 test -z "$with_tiff" && with_tiff=yes
7472 if test "$with_tiff" = "yes"; then
7473 { test "$extra_verbose" = "yes" && cat << \EOF
7476 cat >> confdefs.h <<\EOF
7481 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7486 if test "$with_x11" = "yes"; then
7488 echo "checking for X11 graphics libraries" 1>&6
7489 echo "configure:7490: checking for X11 graphics libraries" >&5
7492 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7493 echo "configure:7494: checking for XawScrollbarSetThumb in -lXaw" >&5
7494 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7496 xe_check_libs=" -lXaw "
7497 cat > conftest.$ac_ext <<EOF
7498 #line 7499 "configure"
7499 #include "confdefs.h"
7500 /* Override any gcc2 internal prototype to avoid an error. */
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7503 char XawScrollbarSetThumb();
7506 XawScrollbarSetThumb()
7509 if { (eval echo configure:7510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7511 eval "ac_cv_lib_$ac_lib_var=yes"
7513 echo "configure: failed program was:" >&5
7514 cat conftest.$ac_ext >&5
7516 eval "ac_cv_lib_$ac_lib_var=no"
7521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7522 echo "$ac_t""yes" 1>&6
7525 echo "$ac_t""no" 1>&6
7531 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7532 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7533 echo "configure:7534: checking for Xm/Xm.h" >&5
7535 cat > conftest.$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7541 { (eval echo configure:7542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7543 if test -z "$ac_err"; then
7545 eval "ac_cv_header_$ac_safe=yes"
7548 echo "configure: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7551 eval "ac_cv_header_$ac_safe=no"
7554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7555 echo "$ac_t""yes" 1>&6
7557 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7558 echo "configure:7559: checking for XmStringFree in -lXm" >&5
7559 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7561 xe_check_libs=" -lXm "
7562 cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7568 char XmStringFree();
7574 if { (eval echo configure:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7576 eval "ac_cv_lib_$ac_lib_var=yes"
7578 echo "configure: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7581 eval "ac_cv_lib_$ac_lib_var=no"
7586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7587 echo "$ac_t""yes" 1>&6
7590 echo "$ac_t""no" 1>&6
7596 echo "$ac_t""no" 1>&6
7601 if test "$have_motif" = "yes"; then
7602 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7603 echo "configure:7604: checking for Lesstif" >&5
7604 cat > conftest.$ac_ext <<EOF
7605 #line 7606 "configure"
7606 #include "confdefs.h"
7608 #ifdef LESSTIF_VERSION
7613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7614 egrep "yes" >/dev/null 2>&1; then
7623 echo "$ac_t""$have_lesstif" 1>&6
7628 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7629 with_menubars="lucid" ;;
7631 case "$with_dialogs" in "" | "yes" | "lucid" )
7632 if test "$have_motif" = "yes"; then with_dialogs="motif"
7633 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7634 else with_dialogs=no
7637 case "$with_scrollbars" in "" | "yes" )
7638 with_scrollbars="lucid" ;;
7640 case "$with_widgets" in "" | "yes" )
7641 if test "$have_motif" = "yes"; then with_widgets="motif"
7642 else with_widgets=no
7646 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
7648 case "$all_widgets" in *athena* )
7649 { test "$extra_verbose" = "yes" && cat << \EOF
7650 Defining LWLIB_USES_ATHENA
7652 cat >> confdefs.h <<\EOF
7653 #define LWLIB_USES_ATHENA 1
7657 { test "$extra_verbose" = "yes" && cat << \EOF
7658 Defining NEED_ATHENA
7660 cat >> confdefs.h <<\EOF
7661 #define NEED_ATHENA 1
7665 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7666 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7669 case "$all_widgets" in *motif* )
7670 { test "$extra_verbose" = "yes" && cat << \EOF
7671 Defining LWLIB_USES_MOTIF
7673 cat >> confdefs.h <<\EOF
7674 #define LWLIB_USES_MOTIF 1
7678 { test "$extra_verbose" = "yes" && cat << \EOF
7681 cat >> confdefs.h <<\EOF
7682 #define NEED_MOTIF 1
7686 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7690 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7691 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7692 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7693 case "$all_widgets" in *lucid* )
7694 { test "$extra_verbose" = "yes" && cat << \EOF
7697 cat >> confdefs.h <<\EOF
7698 #define NEED_LUCID 1
7702 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7707 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7708 Defining LWLIB_SCROLLBARS_ATHENA
7710 cat >> confdefs.h <<\EOF
7711 #define LWLIB_SCROLLBARS_ATHENA 1
7715 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7716 Defining LWLIB_DIALOGS_ATHENA
7718 cat >> confdefs.h <<\EOF
7719 #define LWLIB_DIALOGS_ATHENA 1
7723 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7724 Defining LWLIB_SCROLLBARS_ATHENA3D
7726 cat >> confdefs.h <<\EOF
7727 #define LWLIB_SCROLLBARS_ATHENA3D 1
7731 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7732 Defining LWLIB_DIALOGS_ATHENA3D
7734 cat >> confdefs.h <<\EOF
7735 #define LWLIB_DIALOGS_ATHENA3D 1
7740 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7741 Defining HAVE_MENUBARS
7743 cat >> confdefs.h <<\EOF
7744 #define HAVE_MENUBARS 1
7748 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7749 Defining HAVE_SCROLLBARS
7751 cat >> confdefs.h <<\EOF
7752 #define HAVE_SCROLLBARS 1
7756 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7757 Defining HAVE_DIALOGS
7759 cat >> confdefs.h <<\EOF
7760 #define HAVE_DIALOGS 1
7764 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7765 Defining HAVE_TOOLBARS
7767 cat >> confdefs.h <<\EOF
7768 #define HAVE_TOOLBARS 1
7773 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7774 Defining LWLIB_MENUBARS_LUCID
7776 cat >> confdefs.h <<\EOF
7777 #define LWLIB_MENUBARS_LUCID 1
7781 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7782 Defining LWLIB_SCROLLBARS_LUCID
7784 cat >> confdefs.h <<\EOF
7785 #define LWLIB_SCROLLBARS_LUCID 1
7790 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7791 Defining LWLIB_MENUBARS_MOTIF
7793 cat >> confdefs.h <<\EOF
7794 #define LWLIB_MENUBARS_MOTIF 1
7798 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7799 Defining LWLIB_SCROLLBARS_MOTIF
7801 cat >> confdefs.h <<\EOF
7802 #define LWLIB_SCROLLBARS_MOTIF 1
7806 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7807 Defining LWLIB_DIALOGS_MOTIF
7809 cat >> confdefs.h <<\EOF
7810 #define LWLIB_DIALOGS_MOTIF 1
7815 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7816 echo " xemacs will be linked with \"menubar.o\""
7818 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7819 echo " xemacs will be linked with \"scrollbar.o\""
7821 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7822 echo " xemacs will be linked with \"dialog.o\""
7824 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7825 echo " xemacs will be linked with \"toolbar.o\""
7828 if test "$with_x11" = "yes"; then
7829 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7830 echo " xemacs will be linked with \"menubar-x.o\""
7832 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7833 echo " xemacs will be linked with \"scrollbar-x.o\""
7835 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7836 echo " xemacs will be linked with \"dialog-x.o\""
7838 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7839 echo " xemacs will be linked with \"toolbar-x.o\""
7841 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7842 echo " xemacs will be linked with \"gui-x.o\""
7845 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7846 echo "Attempt to Build NAS sound without X"
7847 echo "Please remove NAS configuration or build with X"
7853 test -z "$with_mule" && with_mule=no
7854 test -z "$with_file_coding" && with_file_coding=no
7857 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7858 { test "$extra_verbose" = "yes" && cat << \EOF
7859 Defining FILE_CODING
7861 cat >> confdefs.h <<\EOF
7862 #define FILE_CODING 1
7866 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7867 echo " xemacs will be linked with \"file-coding.o\""
7871 if test "$with_mule" = "yes" ; then
7872 echo "checking for Mule-related features" 1>&6
7873 echo "configure:7874: checking for Mule-related features" >&5
7874 { test "$extra_verbose" = "yes" && cat << \EOF
7877 cat >> confdefs.h <<\EOF
7882 { test "$extra_verbose" = "yes" && cat << \EOF
7883 Defining FILE_CODING
7885 cat >> confdefs.h <<\EOF
7886 #define FILE_CODING 1
7890 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7891 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7894 for ac_hdr in libintl.h
7896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_hdr" >&5
7900 cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure"
7902 #include "confdefs.h"
7905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7906 { (eval echo configure:7907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7908 if test -z "$ac_err"; then
7910 eval "ac_cv_header_$ac_safe=yes"
7913 echo "configure: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7916 eval "ac_cv_header_$ac_safe=no"
7919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7920 echo "$ac_t""yes" 1>&6
7921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7922 { test "$extra_verbose" = "yes" && cat << EOF
7925 cat >> confdefs.h <<EOF
7926 #define $ac_tr_hdr 1
7931 echo "$ac_t""no" 1>&6
7936 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7937 echo "configure:7938: checking for strerror in -lintl" >&5
7938 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7940 xe_check_libs=" -lintl "
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7955 eval "ac_cv_lib_$ac_lib_var=yes"
7957 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7960 eval "ac_cv_lib_$ac_lib_var=no"
7965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7966 echo "$ac_t""yes" 1>&6
7967 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7969 { test "$extra_verbose" = "yes" && cat << EOF
7972 cat >> confdefs.h <<EOF
7973 #define $ac_tr_lib 1
7977 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7980 echo "$ac_t""no" 1>&6
7985 if test "$with_utf_2000" = "yes" ; then
7986 { test "$extra_verbose" = "yes" && cat << \EOF
7987 Defining CHAR_IS_UCS4
7989 cat >> confdefs.h <<\EOF
7990 #define CHAR_IS_UCS4 1
7994 { test "$extra_verbose" = "yes" && cat << \EOF
7997 cat >> confdefs.h <<\EOF
8004 echo "checking for Mule input methods" 1>&6
8005 echo "configure:8006: checking for Mule input methods" >&5
8006 case "$with_xim" in "" | "yes" )
8007 echo "checking for XIM" 1>&6
8008 echo "configure:8009: checking for XIM" >&5
8010 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8011 echo "configure:8012: checking for XOpenIM in -lX11" >&5
8012 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8014 xe_check_libs=" -lX11 "
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8029 eval "ac_cv_lib_$ac_lib_var=yes"
8031 echo "configure: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8034 eval "ac_cv_lib_$ac_lib_var=no"
8039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8040 echo "$ac_t""yes" 1>&6
8043 echo "$ac_t""no" 1>&6
8048 if test "$have_motif $have_lesstif" = "yes no"; then
8050 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8051 echo "configure:8052: checking for XmImMbLookupString in -lXm" >&5
8052 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8054 xe_check_libs=" -lXm "
8055 cat > conftest.$ac_ext <<EOF
8056 #line 8057 "configure"
8057 #include "confdefs.h"
8058 /* Override any gcc2 internal prototype to avoid an error. */
8059 /* We use char because int might match the return type of a gcc2
8060 builtin and then its argument prototype would still apply. */
8061 char XmImMbLookupString();
8064 XmImMbLookupString()
8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8069 eval "ac_cv_lib_$ac_lib_var=yes"
8071 echo "configure: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8074 eval "ac_cv_lib_$ac_lib_var=no"
8079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8080 echo "$ac_t""yes" 1>&6
8083 echo "$ac_t""no" 1>&6
8089 if test "$with_xim" != "no"; then
8090 { test "$extra_verbose" = "yes" && cat << \EOF
8093 cat >> confdefs.h <<\EOF
8098 if test "$with_xim" = "xlib"; then
8099 { test "$extra_verbose" = "yes" && cat << \EOF
8102 cat >> confdefs.h <<\EOF
8107 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8108 echo " xemacs will be linked with \"input-method-xlib.o\""
8111 if test "$with_xim" = "motif"; then
8112 { test "$extra_verbose" = "yes" && cat << \EOF
8115 cat >> confdefs.h <<\EOF
8121 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8122 echo " xemacs will be linked with \"input-method-motif.o\""
8125 if test "$with_xim" = "motif"; then
8130 if test "$with_xfs" = "yes" ; then
8131 echo "checking for XFontSet" 1>&6
8132 echo "configure:8133: checking for XFontSet" >&5
8134 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8135 echo "configure:8136: checking for XmbDrawString in -lX11" >&5
8136 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8138 xe_check_libs=" -lX11 "
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* Override any gcc2 internal prototype to avoid an error. */
8143 /* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */
8145 char XmbDrawString();
8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8153 eval "ac_cv_lib_$ac_lib_var=yes"
8155 echo "configure: failed program was:" >&5
8156 cat conftest.$ac_ext >&5
8158 eval "ac_cv_lib_$ac_lib_var=no"
8163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8164 echo "$ac_t""yes" 1>&6
8167 echo "$ac_t""no" 1>&6
8172 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8173 { test "$extra_verbose" = "yes" && cat << \EOF
8174 Defining USE_XFONTSET
8176 cat >> confdefs.h <<\EOF
8177 #define USE_XFONTSET 1
8181 if test "$with_xim" = "no" ; then
8182 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8183 echo " xemacs will be linked with \"input-method-xfs.o\""
8188 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8189 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8190 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8191 echo "configure:8192: checking for wnn/jllib.h" >&5
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 #include <wnn/jllib.h>
8198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8199 { (eval echo configure:8200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8201 if test -z "$ac_err"; then
8203 eval "ac_cv_header_$ac_safe=yes"
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 eval "ac_cv_header_$ac_safe=no"
8212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8213 echo "$ac_t""yes" 1>&6
8216 echo "$ac_t""no" 1>&6
8220 if test "$with_wnn" != "no"; then
8221 for ac_func in crypt
8223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8224 echo "configure:8225: checking for $ac_func" >&5
8226 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 /* System header to define __stub macros and hopefully few prototypes,
8230 which can conflict with char $ac_func(); below. */
8232 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8239 /* The GNU C library defines this for functions which it implements
8240 to always fail with ENOSYS. Some functions are actually named
8241 something starting with __ and the normal name is an alias. */
8242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8252 eval "ac_cv_func_$ac_func=yes"
8254 echo "configure: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8257 eval "ac_cv_func_$ac_func=no"
8261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8262 echo "$ac_t""yes" 1>&6
8263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8264 { test "$extra_verbose" = "yes" && cat << EOF
8265 Defining $ac_tr_func
8267 cat >> confdefs.h <<EOF
8268 #define $ac_tr_func 1
8273 echo "$ac_t""no" 1>&6
8277 test "$ac_cv_func_crypt" != "yes" && {
8278 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8279 echo "configure:8280: checking for crypt in -lcrypt" >&5
8280 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8282 xe_check_libs=" -lcrypt "
8283 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8286 /* Override any gcc2 internal prototype to avoid an error. */
8287 /* We use char because int might match the return type of a gcc2
8288 builtin and then its argument prototype would still apply. */
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8297 eval "ac_cv_lib_$ac_lib_var=yes"
8299 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8302 eval "ac_cv_lib_$ac_lib_var=no"
8307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8308 echo "$ac_t""yes" 1>&6
8309 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8311 { test "$extra_verbose" = "yes" && cat << EOF
8314 cat >> confdefs.h <<EOF
8315 #define $ac_tr_lib 1
8319 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8322 echo "$ac_t""no" 1>&6
8327 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8329 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8330 echo "configure:8331: checking for jl_dic_list_e in -lwnn" >&5
8331 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8333 xe_check_libs=" -lwnn "
8334 cat > conftest.$ac_ext <<EOF
8335 #line 8336 "configure"
8336 #include "confdefs.h"
8337 /* Override any gcc2 internal prototype to avoid an error. */
8338 /* We use char because int might match the return type of a gcc2
8339 builtin and then its argument prototype would still apply. */
8340 char jl_dic_list_e();
8346 if { (eval echo configure:8347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8348 eval "ac_cv_lib_$ac_lib_var=yes"
8350 echo "configure: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8353 eval "ac_cv_lib_$ac_lib_var=no"
8358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8359 echo "$ac_t""yes" 1>&6
8362 echo "$ac_t""no" 1>&6
8363 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8364 echo "configure:8365: checking for jl_dic_list_e in -lwnn4" >&5
8365 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8367 xe_check_libs=" -lwnn4 "
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char jl_dic_list_e();
8380 if { (eval echo configure:8381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8382 eval "ac_cv_lib_$ac_lib_var=yes"
8384 echo "configure: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8387 eval "ac_cv_lib_$ac_lib_var=no"
8392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8393 echo "$ac_t""yes" 1>&6
8396 echo "$ac_t""no" 1>&6
8397 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8398 echo "configure:8399: checking for jl_dic_list_e in -lwnn6" >&5
8399 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8401 xe_check_libs=" -lwnn6 "
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8405 /* Override any gcc2 internal prototype to avoid an error. */
8406 /* We use char because int might match the return type of a gcc2
8407 builtin and then its argument prototype would still apply. */
8408 char jl_dic_list_e();
8414 if { (eval echo configure:8415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8416 eval "ac_cv_lib_$ac_lib_var=yes"
8418 echo "configure: failed program was:" >&5
8419 cat conftest.$ac_ext >&5
8421 eval "ac_cv_lib_$ac_lib_var=no"
8426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8427 echo "$ac_t""yes" 1>&6
8430 echo "$ac_t""no" 1>&6
8431 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8432 echo "configure:8433: checking for dic_list_e in -lwnn6_fromsrc" >&5
8433 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8435 xe_check_libs=" -lwnn6_fromsrc "
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. */
8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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
8464 echo "$ac_t""no" 1>&6
8479 test -z "$with_wnn" && with_wnn=yes
8480 if test "$with_wnn" = "yes"; then
8481 { test "$extra_verbose" = "yes" && cat << \EOF
8484 cat >> confdefs.h <<\EOF
8489 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8490 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8491 echo " xemacs will be linked with \"mule-wnnfns.o\""
8493 if test "$with_wnn6" != "no"; then
8495 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8496 echo "configure:8497: checking for jl_fi_dic_list in -l$libwnn" >&5
8497 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8499 xe_check_libs=" -l$libwnn "
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 /* Override any gcc2 internal prototype to avoid an error. */
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8506 char jl_fi_dic_list();
8512 if { (eval echo configure:8513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8514 eval "ac_cv_lib_$ac_lib_var=yes"
8516 echo "configure: failed program was:" >&5
8517 cat conftest.$ac_ext >&5
8519 eval "ac_cv_lib_$ac_lib_var=no"
8524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8525 echo "$ac_t""yes" 1>&6
8528 echo "$ac_t""no" 1>&6
8532 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8535 cat >> confdefs.h <<\EOF
8543 canna_includes_found=no
8544 if test "$with_canna" != "no"; then
8545 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8546 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8547 echo "configure:8548: checking for canna/jrkanji.h" >&5
8549 cat > conftest.$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 #include <canna/jrkanji.h>
8554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8555 { (eval echo configure:8556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8557 if test -z "$ac_err"; then
8559 eval "ac_cv_header_$ac_safe=yes"
8562 echo "configure: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8565 eval "ac_cv_header_$ac_safe=no"
8568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8569 echo "$ac_t""yes" 1>&6
8570 canna_includes_found=yes
8572 echo "$ac_t""no" 1>&6
8576 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8577 -d "/usr/local/canna/include"; then
8578 save_c_switch_site="$c_switch_site"
8579 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8580 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8581 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8582 echo "configure:8583: checking for canna/jrkanji.h" >&5
8584 cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8587 #include <canna/jrkanji.h>
8589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8590 { (eval echo configure:8591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8592 if test -z "$ac_err"; then
8594 eval "ac_cv_header_$ac_safe=yes"
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8600 eval "ac_cv_header_$ac_safe=no"
8603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8604 echo "$ac_t""yes" 1>&6
8605 canna_includes_found=yes
8607 echo "$ac_t""no" 1>&6
8610 if test "$canna_includes_found" != "yes"; then
8611 c_switch_site="$save_c_switch_site"
8616 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8617 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8618 echo "configure:8619: checking for canna/RK.h" >&5
8620 cat > conftest.$ac_ext <<EOF
8621 #line 8622 "configure"
8622 #include "confdefs.h"
8623 #include <canna/RK.h>
8625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8626 { (eval echo configure:8627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8628 if test -z "$ac_err"; then
8630 eval "ac_cv_header_$ac_safe=yes"
8633 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 eval "ac_cv_header_$ac_safe=no"
8639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8640 echo "$ac_t""yes" 1>&6
8643 echo "$ac_t""no" 1>&6
8647 test -z "$with_canna" && {
8648 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8649 echo "configure:8650: checking for RkBgnBun in -lRKC" >&5
8650 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8652 xe_check_libs=" -lRKC "
8653 cat > conftest.$ac_ext <<EOF
8654 #line 8655 "configure"
8655 #include "confdefs.h"
8656 /* Override any gcc2 internal prototype to avoid an error. */
8657 /* We use char because int might match the return type of a gcc2
8658 builtin and then its argument prototype would still apply. */
8665 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8667 eval "ac_cv_lib_$ac_lib_var=yes"
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 eval "ac_cv_lib_$ac_lib_var=no"
8677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8678 echo "$ac_t""yes" 1>&6
8681 echo "$ac_t""no" 1>&6
8686 test -z "$with_canna" && {
8687 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8688 echo "configure:8689: checking for jrKanjiControl in -lcanna" >&5
8689 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8691 xe_check_libs=" -lcanna "
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8695 /* Override any gcc2 internal prototype to avoid an error. */
8696 /* We use char because int might match the return type of a gcc2
8697 builtin and then its argument prototype would still apply. */
8698 char jrKanjiControl();
8704 if { (eval echo configure:8705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8706 eval "ac_cv_lib_$ac_lib_var=yes"
8708 echo "configure: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8711 eval "ac_cv_lib_$ac_lib_var=no"
8716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8717 echo "$ac_t""yes" 1>&6
8720 echo "$ac_t""no" 1>&6
8725 test -z "$with_canna" && with_canna=yes
8726 if test "$with_canna" = "yes"; then
8727 { test "$extra_verbose" = "yes" && cat << \EOF
8730 cat >> confdefs.h <<\EOF
8731 #define HAVE_CANNA 1
8735 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8736 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8737 echo " xemacs will be linked with \"mule-canna.o\""
8741 else for feature in xim canna wnn; do
8742 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8743 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8745 eval "with_${feature}=no"
8749 if test "$need_motif" = "yes" ; then
8750 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8752 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8753 echo "configure:8754: checking for layout_object_getvalue in -li18n" >&5
8754 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8756 xe_check_libs=" -li18n "
8757 cat > conftest.$ac_ext <<EOF
8758 #line 8759 "configure"
8759 #include "confdefs.h"
8760 /* Override any gcc2 internal prototype to avoid an error. */
8761 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8763 char layout_object_getvalue();
8766 layout_object_getvalue()
8769 if { (eval echo configure:8770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8771 eval "ac_cv_lib_$ac_lib_var=yes"
8773 echo "configure: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8776 eval "ac_cv_lib_$ac_lib_var=no"
8781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8782 echo "$ac_t""yes" 1>&6
8783 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8785 echo "$ac_t""no" 1>&6
8790 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8791 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8792 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8794 runpath="" runpath_dirs=""
8795 if test -n "$LD_RUN_PATH"; then
8796 runpath="$LD_RUN_PATH"
8797 elif test "$GCC" = "yes"; then
8798 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8799 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8800 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8801 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8802 case "$arg" in P,* | -L* | -R* )
8803 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8805 xe_runpath_dir="$dir"
8806 test "$xe_runpath_dir" != "/lib" -a \
8807 "$xe_runpath_dir" != "/usr/lib" -a \
8808 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8809 eval "$xe_add_unique_runpath_dir"
8814 ld_switch_run="$ld_switch_run_save"
8817 for arg in $ld_switch_site $ld_switch_x_site; do
8818 case "$arg" in -L*) {
8819 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8820 test "$xe_runpath_dir" != "/lib" -a \
8821 "$xe_runpath_dir" != "/usr/lib" -a \
8822 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8823 eval "$xe_add_unique_runpath_dir"
8826 if test "$opsys $need_motif" = "sol2 yes"; then
8827 xe_runpath_dir="/opt/SUNWdt/lib";
8828 eval "$xe_add_unique_runpath_dir";
8831 if test -n "$runpath"; then
8832 ld_switch_run="${dash_r}${runpath}"
8834 if test "$GCC" = "yes"; then
8835 set x $ld_switch_run; shift; ld_switch_run=""
8836 while test -n "$1"; do
8838 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8839 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8841 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8846 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8852 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
8854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8855 echo "configure:8856: checking for $ac_func" >&5
8857 cat > conftest.$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8860 /* System header to define __stub macros and hopefully few prototypes,
8861 which can conflict with char $ac_func(); below. */
8863 /* Override any gcc2 internal prototype to avoid an error. */
8864 /* We use char because int might match the return type of a gcc2
8865 builtin and then its argument prototype would still apply. */
8870 /* The GNU C library defines this for functions which it implements
8871 to always fail with ENOSYS. Some functions are actually named
8872 something starting with __ and the normal name is an alias. */
8873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8881 if { (eval echo configure:8882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8883 eval "ac_cv_func_$ac_func=yes"
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8888 eval "ac_cv_func_$ac_func=no"
8892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8893 echo "$ac_t""yes" 1>&6
8894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8895 { test "$extra_verbose" = "yes" && cat << EOF
8896 Defining $ac_tr_func
8898 cat >> confdefs.h <<EOF
8899 #define $ac_tr_func 1
8904 echo "$ac_t""no" 1>&6
8911 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8912 echo " xemacs will be linked with \"realpath.o\""
8915 case "$canonical" in
8916 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8917 echo " xemacs will be linked with \"realpath.o\""
8919 * ) for ac_func in realpath
8921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8922 echo "configure:8923: checking for $ac_func" >&5
8924 cat > conftest.$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8927 /* System header to define __stub macros and hopefully few prototypes,
8928 which can conflict with char $ac_func(); below. */
8930 /* Override any gcc2 internal prototype to avoid an error. */
8931 /* We use char because int might match the return type of a gcc2
8932 builtin and then its argument prototype would still apply. */
8937 /* The GNU C library defines this for functions which it implements
8938 to always fail with ENOSYS. Some functions are actually named
8939 something starting with __ and the normal name is an alias. */
8940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8948 if { (eval echo configure:8949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8950 eval "ac_cv_func_$ac_func=yes"
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8955 eval "ac_cv_func_$ac_func=no"
8959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8960 echo "$ac_t""yes" 1>&6
8961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8962 { test "$extra_verbose" = "yes" && cat << EOF
8963 Defining $ac_tr_func
8965 cat >> confdefs.h <<EOF
8966 #define $ac_tr_func 1
8971 echo "$ac_t""no" 1>&6
8975 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8976 echo " xemacs will be linked with \"realpath.o\""
8981 for ac_func in getloadavg
8983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8984 echo "configure:8985: checking for $ac_func" >&5
8986 cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure"
8988 #include "confdefs.h"
8989 /* System header to define __stub macros and hopefully few prototypes,
8990 which can conflict with char $ac_func(); below. */
8992 /* Override any gcc2 internal prototype to avoid an error. */
8993 /* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
8999 /* The GNU C library defines this for functions which it implements
9000 to always fail with ENOSYS. Some functions are actually named
9001 something starting with __ and the normal name is an alias. */
9002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9012 eval "ac_cv_func_$ac_func=yes"
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9017 eval "ac_cv_func_$ac_func=no"
9021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9022 echo "$ac_t""yes" 1>&6
9023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9024 { test "$extra_verbose" = "yes" && cat << EOF
9025 Defining $ac_tr_func
9027 cat >> confdefs.h <<EOF
9028 #define $ac_tr_func 1
9033 echo "$ac_t""no" 1>&6
9038 if test "$ac_cv_func_getloadavg" != "yes"
9040 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9041 echo " xemacs will be linked with \"getloadavg.o\""
9045 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9046 echo "configure:9047: checking for kstat_open in -lkstat" >&5
9047 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9049 xe_check_libs=" -lkstat "
9050 cat > conftest.$ac_ext <<EOF
9051 #line 9052 "configure"
9052 #include "confdefs.h"
9053 /* Override any gcc2 internal prototype to avoid an error. */
9054 /* We use char because int might match the return type of a gcc2
9055 builtin and then its argument prototype would still apply. */
9062 if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9064 eval "ac_cv_lib_$ac_lib_var=yes"
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9069 eval "ac_cv_lib_$ac_lib_var=no"
9074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9075 echo "$ac_t""yes" 1>&6
9076 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9078 { test "$extra_verbose" = "yes" && cat << EOF
9081 cat >> confdefs.h <<EOF
9082 #define $ac_tr_lib 1
9086 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9089 echo "$ac_t""no" 1>&6
9095 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9096 echo "configure:9097: checking for kvm_read in -lkvm" >&5
9097 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9099 xe_check_libs=" -lkvm "
9100 cat > conftest.$ac_ext <<EOF
9101 #line 9102 "configure"
9102 #include "confdefs.h"
9103 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9112 if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9114 eval "ac_cv_lib_$ac_lib_var=yes"
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9119 eval "ac_cv_lib_$ac_lib_var=no"
9124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9125 echo "$ac_t""yes" 1>&6
9126 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9127 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9128 { test "$extra_verbose" = "yes" && cat << EOF
9131 cat >> confdefs.h <<EOF
9132 #define $ac_tr_lib 1
9136 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9139 echo "$ac_t""no" 1>&6
9145 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9146 echo "configure:9147: checking whether netdb declares h_errno" >&5
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9155 if { (eval echo configure:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9157 echo "$ac_t""yes" 1>&6
9158 { test "$extra_verbose" = "yes" && cat << \EOF
9159 Defining HAVE_H_ERRNO
9161 cat >> confdefs.h <<\EOF
9162 #define HAVE_H_ERRNO 1
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 echo "$ac_t""no" 1>&6
9174 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9175 echo "configure:9176: checking for sigsetjmp" >&5
9176 cat > conftest.$ac_ext <<EOF
9177 #line 9178 "configure"
9178 #include "confdefs.h"
9181 sigjmp_buf bar; sigsetjmp (bar, 0);
9184 if { (eval echo configure:9185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9186 echo "$ac_t""yes" 1>&6
9187 { test "$extra_verbose" = "yes" && cat << \EOF
9188 Defining HAVE_SIGSETJMP
9190 cat >> confdefs.h <<\EOF
9191 #define HAVE_SIGSETJMP 1
9196 echo "configure: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9199 echo "$ac_t""no" 1>&6
9203 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9204 echo "configure:9205: checking whether localtime caches TZ" >&5
9206 if test "$ac_cv_func_tzset" = "yes"; then
9207 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure"
9209 #include "confdefs.h"
9212 # include <stdlib.h>
9214 extern char **environ;
9218 for (to = from = environ; (*to = *from); from++)
9219 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9222 char TZ_GMT0[] = "TZ=GMT0";
9223 char TZ_PST8[] = "TZ=PST8";
9226 time_t now = time ((time_t *) 0);
9227 int hour_GMT0, hour_unset;
9228 if (putenv (TZ_GMT0) != 0)
9230 hour_GMT0 = localtime (&now)->tm_hour;
9232 hour_unset = localtime (&now)->tm_hour;
9233 if (putenv (TZ_PST8) != 0)
9235 if (localtime (&now)->tm_hour == hour_GMT0)
9238 if (localtime (&now)->tm_hour != hour_unset)
9243 if { (eval echo configure:9244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9245 emacs_cv_localtime_cache=no
9248 echo "configure: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9251 emacs_cv_localtime_cache=yes
9255 # If we lack tzset, report that localtime does not cache TZ,
9256 # since we can't invalidate the cache if we don't have tzset.
9257 emacs_cv_localtime_cache=no
9259 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9260 if test $emacs_cv_localtime_cache = yes; then
9261 { test "$extra_verbose" = "yes" && cat << \EOF
9262 Defining LOCALTIME_CACHE
9264 cat >> confdefs.h <<\EOF
9265 #define LOCALTIME_CACHE 1
9271 if test "$HAVE_TIMEVAL" = "yes"; then
9272 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9273 echo "configure:9274: checking whether gettimeofday accepts one or two arguments" >&5
9274 cat > conftest.$ac_ext <<EOF
9275 #line 9276 "configure"
9276 #include "confdefs.h"
9278 #ifdef TIME_WITH_SYS_TIME
9279 #include <sys/time.h>
9282 #ifdef HAVE_SYS_TIME_H
9283 #include <sys/time.h>
9291 struct timeval time;
9292 struct timezone dummy;
9293 gettimeofday (&time, &dummy);
9297 if { (eval echo configure:9298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9299 echo "$ac_t""two" 1>&6
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9304 echo "$ac_t""one" 1>&6
9305 { test "$extra_verbose" = "yes" && cat << \EOF
9306 Defining GETTIMEOFDAY_ONE_ARGUMENT
9308 cat >> confdefs.h <<\EOF
9309 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9318 echo $ac_n "checking for inline""... $ac_c" 1>&6
9319 echo "configure:9320: checking for inline" >&5
9322 for ac_kw in inline __inline__ __inline; do
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9331 if { (eval echo configure:9332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9333 ac_cv_c_inline=$ac_kw; break
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9342 echo "$ac_t""$ac_cv_c_inline" 1>&6
9343 case "$ac_cv_c_inline" in
9345 no) { test "$extra_verbose" = "yes" && cat << \EOF
9348 cat >> confdefs.h <<\EOF
9353 *) { test "$extra_verbose" = "yes" && cat << EOF
9354 Defining inline = $ac_cv_c_inline
9356 cat >> confdefs.h <<EOF
9357 #define inline $ac_cv_c_inline
9363 if test "$ac_cv_c_inline" != "no"; then
9364 { test "$extra_verbose" = "yes" && cat << \EOF
9365 Defining HAVE_INLINE
9367 cat >> confdefs.h <<\EOF
9368 #define HAVE_INLINE 1
9372 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9373 echo " xemacs will be linked with \"inline.o\""
9378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9379 # for constant arguments. Useless!
9380 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9381 echo "configure:9382: checking for working alloca.h" >&5
9383 cat > conftest.$ac_ext <<EOF
9384 #line 9385 "configure"
9385 #include "confdefs.h"
9388 char *p = alloca(2 * sizeof(int));
9391 if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9393 ac_cv_header_alloca_h=yes
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 ac_cv_header_alloca_h=no
9402 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9403 if test $ac_cv_header_alloca_h = yes; then
9404 { test "$extra_verbose" = "yes" && cat << \EOF
9405 Defining HAVE_ALLOCA_H
9407 cat >> confdefs.h <<\EOF
9408 #define HAVE_ALLOCA_H 1
9414 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9415 echo "configure:9416: checking for alloca" >&5
9417 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9422 # define alloca __builtin_alloca
9425 # include <malloc.h>
9426 # define alloca _alloca
9429 # include <alloca.h>
9434 # ifndef alloca /* predefined by HP cc +Olibcalls */
9443 char *p = (char *) alloca(1);
9446 if { (eval echo configure:9447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9448 ac_cv_func_alloca_works=yes
9450 echo "configure: failed program was:" >&5
9451 cat conftest.$ac_ext >&5
9453 ac_cv_func_alloca_works=no
9457 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9458 if test $ac_cv_func_alloca_works = yes; then
9459 { test "$extra_verbose" = "yes" && cat << \EOF
9460 Defining HAVE_ALLOCA
9462 cat >> confdefs.h <<\EOF
9463 #define HAVE_ALLOCA 1
9469 if test $ac_cv_func_alloca_works = no; then
9470 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9471 # that cause trouble. Some versions do not even contain alloca or
9472 # contain a buggy version. If you still want to use their alloca,
9473 # use ar to extract alloca.o from them instead of compiling alloca.c.
9474 ALLOCA=alloca.${ac_objext}
9475 { test "$extra_verbose" = "yes" && cat << \EOF
9478 cat >> confdefs.h <<\EOF
9484 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9485 echo "configure:9486: checking whether alloca needs Cray hooks" >&5
9487 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9490 #if defined(CRAY) && ! defined(CRAY2)
9497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9498 egrep "webecray" >/dev/null 2>&1; then
9508 echo "$ac_t""$ac_cv_os_cray" 1>&6
9509 if test $ac_cv_os_cray = yes; then
9510 for ac_func in _getb67 GETB67 getb67; do
9511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9512 echo "configure:9513: checking for $ac_func" >&5
9514 cat > conftest.$ac_ext <<EOF
9515 #line 9516 "configure"
9516 #include "confdefs.h"
9517 /* System header to define __stub macros and hopefully few prototypes,
9518 which can conflict with char $ac_func(); below. */
9520 /* Override any gcc2 internal prototype to avoid an error. */
9521 /* We use char because int might match the return type of a gcc2
9522 builtin and then its argument prototype would still apply. */
9527 /* The GNU C library defines this for functions which it implements
9528 to always fail with ENOSYS. Some functions are actually named
9529 something starting with __ and the normal name is an alias. */
9530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9538 if { (eval echo configure:9539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9540 eval "ac_cv_func_$ac_func=yes"
9542 echo "configure: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9545 eval "ac_cv_func_$ac_func=no"
9549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9550 echo "$ac_t""yes" 1>&6
9551 { test "$extra_verbose" = "yes" && cat << EOF
9552 Defining CRAY_STACKSEG_END = $ac_func
9554 cat >> confdefs.h <<EOF
9555 #define CRAY_STACKSEG_END $ac_func
9561 echo "$ac_t""no" 1>&6
9567 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9568 echo "configure:9569: checking stack direction for C alloca" >&5
9570 cat > conftest.$ac_ext <<EOF
9571 #line 9572 "configure"
9572 #include "confdefs.h"
9573 find_stack_direction ()
9575 static char *addr = 0;
9580 return find_stack_direction ();
9583 return (&dummy > addr) ? 1 : -1;
9587 exit (find_stack_direction() < 0);
9590 if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9592 ac_cv_c_stack_direction=1
9595 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9598 ac_cv_c_stack_direction=-1
9602 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9603 { test "$extra_verbose" = "yes" && cat << EOF
9604 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9606 cat >> confdefs.h <<EOF
9607 #define STACK_DIRECTION $ac_cv_c_stack_direction
9613 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9614 echo " xemacs will be linked with \"$ALLOCA\""
9617 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9618 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9619 echo "configure:9620: checking for vfork.h" >&5
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9627 { (eval echo configure:9628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9629 if test -z "$ac_err"; then
9631 eval "ac_cv_header_$ac_safe=yes"
9634 echo "configure: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9637 eval "ac_cv_header_$ac_safe=no"
9640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9641 echo "$ac_t""yes" 1>&6
9642 { test "$extra_verbose" = "yes" && cat << \EOF
9643 Defining HAVE_VFORK_H
9645 cat >> confdefs.h <<\EOF
9646 #define HAVE_VFORK_H 1
9651 echo "$ac_t""no" 1>&6
9654 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9655 echo "configure:9656: checking for working vfork" >&5
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 /* Thanks to Paul Eggert for this test. */
9662 #include <sys/types.h>
9663 #include <sys/stat.h>
9664 #ifdef HAVE_UNISTD_H
9670 /* On some sparc systems, changes by the child to local and incoming
9671 argument registers are propagated back to the parent.
9672 The compiler is told about this with #include <vfork.h>,
9673 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9674 Test for this by using a static variable whose address
9675 is put into a register that is clobbered by the vfork. */
9678 sparc_address_test (int arg)
9680 sparc_address_test (arg) int arg;
9698 pid_t parent = getpid ();
9701 sparc_address_test ();
9706 /* Here is another test for sparc vfork register problems.
9707 This test uses lots of local variables, at least
9708 as many local variables as main has allocated so far
9709 including compiler temporaries. 4 locals are enough for
9710 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9711 A buggy compiler should reuse the register of parent
9712 for one of the local variables, since it will think that
9713 parent can't possibly be used any more in this routine.
9714 Assigning to the local variable will thus munge parent
9715 in the parent process. */
9717 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9718 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9719 /* Convince the compiler that p..p7 are live; otherwise, it might
9720 use the same hardware register for all 8 local variables. */
9721 if (p != p1 || p != p2 || p != p3 || p != p4
9722 || p != p5 || p != p6 || p != p7)
9725 /* On some systems (e.g. IRIX 3.3),
9726 vfork doesn't separate parent from child file descriptors.
9727 If the child closes a descriptor before it execs or exits,
9728 this munges the parent's descriptor as well.
9729 Test for this by closing stdout in the child. */
9730 _exit(close(fileno(stdout)) != 0);
9735 while (wait(&status) != child)
9738 /* Was there some problem with vforking? */
9741 /* Did the child fail? (This shouldn't happen.) */
9744 /* Did the vfork/compiler bug occur? */
9745 || parent != getpid()
9747 /* Did the file descriptor bug occur? */
9748 || fstat(fileno(stdout), &st) != 0
9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9755 ac_cv_func_vfork_works=yes
9758 echo "configure: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9761 ac_cv_func_vfork_works=no
9765 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9766 if test $ac_cv_func_vfork_works = no; then
9767 { test "$extra_verbose" = "yes" && cat << \EOF
9768 Defining vfork = fork
9770 cat >> confdefs.h <<\EOF
9778 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9779 echo "configure:9780: checking for working strcoll" >&5
9781 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9787 exit (strcoll ("abc", "def") >= 0 ||
9788 strcoll ("ABC", "DEF") >= 0 ||
9789 strcoll ("123", "456") >= 0);
9792 if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9794 ac_cv_func_strcoll_works=yes
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9800 ac_cv_func_strcoll_works=no
9804 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9805 if test $ac_cv_func_strcoll_works = yes; then
9806 { test "$extra_verbose" = "yes" && cat << \EOF
9807 Defining HAVE_STRCOLL
9809 cat >> confdefs.h <<\EOF
9810 #define HAVE_STRCOLL 1
9817 for ac_func in getpgrp
9819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9820 echo "configure:9821: checking for $ac_func" >&5
9822 cat > conftest.$ac_ext <<EOF
9823 #line 9824 "configure"
9824 #include "confdefs.h"
9825 /* System header to define __stub macros and hopefully few prototypes,
9826 which can conflict with char $ac_func(); below. */
9828 /* Override any gcc2 internal prototype to avoid an error. */
9829 /* We use char because int might match the return type of a gcc2
9830 builtin and then its argument prototype would still apply. */
9835 /* The GNU C library defines this for functions which it implements
9836 to always fail with ENOSYS. Some functions are actually named
9837 something starting with __ and the normal name is an alias. */
9838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9846 if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9848 eval "ac_cv_func_$ac_func=yes"
9850 echo "configure: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9853 eval "ac_cv_func_$ac_func=no"
9857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9858 echo "$ac_t""yes" 1>&6
9859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9860 { test "$extra_verbose" = "yes" && cat << EOF
9861 Defining $ac_tr_func
9863 cat >> confdefs.h <<EOF
9864 #define $ac_tr_func 1
9869 echo "$ac_t""no" 1>&6
9873 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9874 echo "configure:9875: checking whether getpgrp takes no argument" >&5
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9881 * If this system has a BSD-style getpgrp(),
9882 * which takes a pid argument, exit unsuccessfully.
9884 * Snarfed from Chet Ramey's bash pgrp.c test program
9887 #include <sys/types.h>
9890 int pg1, pg2, pg3, pg4;
9891 int ng, np, s, child;
9902 * If all of these values are the same, it's pretty sure that
9903 * we're on a system that ignores getpgrp's first argument.
9905 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9911 else if (child == 0) {
9914 * If this is Sys V, this will not work; pgrp will be
9915 * set to np because setpgrp just changes a pgrp to be
9916 * the same as the pid.
9919 ng = getpgrp(0); /* Same result for Sys V and BSD */
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9934 ac_cv_func_getpgrp_void=yes
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9940 ac_cv_func_getpgrp_void=no
9945 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9946 if test $ac_cv_func_getpgrp_void = yes; then
9947 { test "$extra_verbose" = "yes" && cat << \EOF
9948 Defining GETPGRP_VOID
9950 cat >> confdefs.h <<\EOF
9951 #define GETPGRP_VOID 1
9958 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9959 echo "configure:9960: checking for working mmap" >&5
9960 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9967 #include <sys/mman.h>
9969 #ifndef MAP_VARIABLE
9970 #define MAP_VARIABLE 0
9974 #define MAP_FAILED -1
9977 int main (int argc, char *argv[])
9981 #ifndef MAP_ANONYMOUS
9982 fd = open ("/dev/zero", O_RDWR);
9985 #define MAP_ANONYMOUS 0
9987 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9988 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9989 fd, 0) != (void *) MAP_FAILED)
9991 perror ("conftest: mmap failed");
9995 if { (eval echo configure:9996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10005 rm -fr conftest* ;;
10007 echo "$ac_t""$have_mmap" 1>&6
10008 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10011 cat >> confdefs.h <<\EOF
10012 #define HAVE_MMAP 1
10017 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10018 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10019 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10022 cat >> confdefs.h <<\EOF
10023 #define REL_ALLOC 1
10028 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10029 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10030 echo "configure:10031: checking for termios.h" >&5
10032 cat > conftest.$ac_ext <<EOF
10033 #line 10034 "configure"
10034 #include "confdefs.h"
10035 #include <termios.h>
10037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10038 { (eval echo configure:10039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10040 if test -z "$ac_err"; then
10042 eval "ac_cv_header_$ac_safe=yes"
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10048 eval "ac_cv_header_$ac_safe=no"
10051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10052 echo "$ac_t""yes" 1>&6
10053 { test "$extra_verbose" = "yes" && cat << \EOF
10054 Defining HAVE_TERMIOS
10056 cat >> confdefs.h <<\EOF
10057 #define HAVE_TERMIOS 1
10061 { test "$extra_verbose" = "yes" && cat << \EOF
10062 Defining SIGNALS_VIA_CHARACTERS
10064 cat >> confdefs.h <<\EOF
10065 #define SIGNALS_VIA_CHARACTERS 1
10069 { test "$extra_verbose" = "yes" && cat << \EOF
10072 cat >> confdefs.h <<\EOF
10073 #define NO_TERMIO 1
10078 echo "$ac_t""no" 1>&6
10079 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10080 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10081 echo "configure:10082: checking for termio.h" >&5
10083 cat > conftest.$ac_ext <<EOF
10084 #line 10085 "configure"
10085 #include "confdefs.h"
10086 #include <termio.h>
10088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10089 { (eval echo configure:10090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10091 if test -z "$ac_err"; then
10093 eval "ac_cv_header_$ac_safe=yes"
10096 echo "configure: failed program was:" >&5
10097 cat conftest.$ac_ext >&5
10099 eval "ac_cv_header_$ac_safe=no"
10102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10103 echo "$ac_t""yes" 1>&6
10104 { test "$extra_verbose" = "yes" && cat << \EOF
10105 Defining HAVE_TERMIO
10107 cat >> confdefs.h <<\EOF
10108 #define HAVE_TERMIO 1
10113 echo "$ac_t""no" 1>&6
10120 echo $ac_n "checking for socket""... $ac_c" 1>&6
10121 echo "configure:10122: checking for socket" >&5
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 /* System header to define __stub macros and hopefully few prototypes,
10127 which can conflict with char socket(); below. */
10128 #include <assert.h>
10129 /* Override any gcc2 internal prototype to avoid an error. */
10130 /* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10136 /* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139 #if defined (__stub_socket) || defined (__stub___socket)
10147 if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10149 eval "ac_cv_func_socket=yes"
10151 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10154 eval "ac_cv_func_socket=no"
10158 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10160 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10161 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10162 echo "configure:10163: checking for netinet/in.h" >&5
10164 cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10167 #include <netinet/in.h>
10169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10170 { (eval echo configure:10171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10172 if test -z "$ac_err"; then
10174 eval "ac_cv_header_$ac_safe=yes"
10177 echo "configure: failed program was:" >&5
10178 cat conftest.$ac_ext >&5
10180 eval "ac_cv_header_$ac_safe=no"
10183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10184 echo "$ac_t""yes" 1>&6
10185 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10186 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10187 echo "configure:10188: checking for arpa/inet.h" >&5
10189 cat > conftest.$ac_ext <<EOF
10190 #line 10191 "configure"
10191 #include "confdefs.h"
10192 #include <arpa/inet.h>
10194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10195 { (eval echo configure:10196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10197 if test -z "$ac_err"; then
10199 eval "ac_cv_header_$ac_safe=yes"
10202 echo "configure: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10205 eval "ac_cv_header_$ac_safe=no"
10208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10209 echo "$ac_t""yes" 1>&6
10211 { test "$extra_verbose" = "yes" && cat << \EOF
10212 Defining HAVE_SOCKETS
10214 cat >> confdefs.h <<\EOF
10215 #define HAVE_SOCKETS 1
10219 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10220 echo "configure:10221: checking "for sun_len member in struct sockaddr_un"" >&5
10221 cat > conftest.$ac_ext <<EOF
10222 #line 10223 "configure"
10223 #include "confdefs.h"
10225 #include <sys/types.h>
10226 #include <sys/socket.h>
10227 #include <sys/un.h>
10230 static struct sockaddr_un x; x.sun_len = 1;
10233 if { (eval echo configure:10234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10235 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10236 Defining HAVE_SOCKADDR_SUN_LEN
10238 cat >> confdefs.h <<\EOF
10239 #define HAVE_SOCKADDR_SUN_LEN 1
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10247 echo "$ac_t""no" 1>&6
10250 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10251 echo "configure:10252: checking "for ip_mreq struct in netinet/in.h"" >&5
10252 cat > conftest.$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10256 #include <sys/types.h>
10257 #include <netinet/in.h>
10260 static struct ip_mreq x;
10263 if { (eval echo configure:10264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10265 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10266 Defining HAVE_MULTICAST
10268 cat >> confdefs.h <<\EOF
10269 #define HAVE_MULTICAST 1
10274 echo "configure: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
10277 echo "$ac_t""no" 1>&6
10281 echo "$ac_t""no" 1>&6
10285 echo "$ac_t""no" 1>&6
10289 echo "$ac_t""no" 1>&6
10293 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10294 echo "configure:10295: checking for msgget" >&5
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char msgget(); below. */
10301 #include <assert.h>
10302 /* Override any gcc2 internal prototype to avoid an error. */
10303 /* We use char because int might match the return type of a gcc2
10304 builtin and then its argument prototype would still apply. */
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined (__stub_msgget) || defined (__stub___msgget)
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10322 eval "ac_cv_func_msgget=yes"
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10327 eval "ac_cv_func_msgget=no"
10331 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10332 echo "$ac_t""yes" 1>&6
10333 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10334 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10335 echo "configure:10336: checking for sys/ipc.h" >&5
10337 cat > conftest.$ac_ext <<EOF
10338 #line 10339 "configure"
10339 #include "confdefs.h"
10340 #include <sys/ipc.h>
10342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10343 { (eval echo configure:10344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10345 if test -z "$ac_err"; then
10347 eval "ac_cv_header_$ac_safe=yes"
10350 echo "configure: failed program was:" >&5
10351 cat conftest.$ac_ext >&5
10353 eval "ac_cv_header_$ac_safe=no"
10356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10357 echo "$ac_t""yes" 1>&6
10358 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10359 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10360 echo "configure:10361: checking for sys/msg.h" >&5
10362 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10365 #include <sys/msg.h>
10367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10368 { (eval echo configure:10369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10370 if test -z "$ac_err"; then
10372 eval "ac_cv_header_$ac_safe=yes"
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10378 eval "ac_cv_header_$ac_safe=no"
10381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10382 echo "$ac_t""yes" 1>&6
10383 { test "$extra_verbose" = "yes" && cat << \EOF
10384 Defining HAVE_SYSVIPC
10386 cat >> confdefs.h <<\EOF
10387 #define HAVE_SYSVIPC 1
10392 echo "$ac_t""no" 1>&6
10396 echo "$ac_t""no" 1>&6
10400 echo "$ac_t""no" 1>&6
10404 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10405 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10406 echo "configure:10407: checking for dirent.h" >&5
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10411 #include <dirent.h>
10413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10414 { (eval echo configure:10415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10416 if test -z "$ac_err"; then
10418 eval "ac_cv_header_$ac_safe=yes"
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10424 eval "ac_cv_header_$ac_safe=no"
10427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10428 echo "$ac_t""yes" 1>&6
10429 { test "$extra_verbose" = "yes" && cat << \EOF
10430 Defining SYSV_SYSTEM_DIR
10432 cat >> confdefs.h <<\EOF
10433 #define SYSV_SYSTEM_DIR 1
10438 echo "$ac_t""no" 1>&6
10439 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10440 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10441 echo "configure:10442: checking for sys/dir.h" >&5
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446 #include <sys/dir.h>
10448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10449 { (eval echo configure:10450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10451 if test -z "$ac_err"; then
10453 eval "ac_cv_header_$ac_safe=yes"
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10459 eval "ac_cv_header_$ac_safe=no"
10462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10463 echo "$ac_t""yes" 1>&6
10466 echo "$ac_t""no" 1>&6
10467 { test "$extra_verbose" = "yes" && cat << \EOF
10468 Defining NONSYSTEM_DIR_LIBRARY
10470 cat >> confdefs.h <<\EOF
10471 #define NONSYSTEM_DIR_LIBRARY 1
10480 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10481 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10482 echo "configure:10483: checking for nlist.h" >&5
10484 cat > conftest.$ac_ext <<EOF
10485 #line 10486 "configure"
10486 #include "confdefs.h"
10489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10490 { (eval echo configure:10491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10492 if test -z "$ac_err"; then
10494 eval "ac_cv_header_$ac_safe=yes"
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10500 eval "ac_cv_header_$ac_safe=no"
10503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10504 echo "$ac_t""yes" 1>&6
10505 { test "$extra_verbose" = "yes" && cat << \EOF
10506 Defining NLIST_STRUCT
10508 cat >> confdefs.h <<\EOF
10509 #define NLIST_STRUCT 1
10514 echo "$ac_t""no" 1>&6
10519 echo "checking "for sound support"" 1>&6
10520 echo "configure:10521: checking "for sound support"" >&5
10521 case "$with_sound" in
10522 native | both ) with_native_sound=yes;;
10523 nas | no ) with_native_sound=no;;
10525 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10527 if test "$with_native_sound" != "no"; then
10528 if test -n "$native_sound_lib"; then
10529 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10530 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10531 echo "configure:10532: checking for multimedia/audio_device.h" >&5
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 #include <multimedia/audio_device.h>
10538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10539 { (eval echo configure:10540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10541 if test -z "$ac_err"; then
10543 eval "ac_cv_header_$ac_safe=yes"
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10549 eval "ac_cv_header_$ac_safe=no"
10552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10553 echo "$ac_t""yes" 1>&6
10554 sound_found=yes sound_cflags=""
10555 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10556 echo " xemacs will be linked with \"sunplay.o\""
10559 echo "$ac_t""no" 1>&6
10564 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10566 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10567 echo " xemacs will be linked with \"sunplay.o\""
10569 if test -d "/usr/demo/SOUND/include"
10570 then sound_cflags="-I/usr/demo/SOUND/include"
10571 else sound_cflags="-I/usr/demo/SOUND"
10573 if test -z "$native_sound_lib" ; then
10574 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10575 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10576 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10581 if test -z "$sound_found"; then
10582 case "$canonical" in
10584 if test -z "$native_sound_lib"; then
10586 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10587 echo "configure:10588: checking for ALopenport in -laudio" >&5
10588 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10590 xe_check_libs=" -laudio "
10591 cat > conftest.$ac_ext <<EOF
10592 #line 10593 "configure"
10593 #include "confdefs.h"
10594 /* Override any gcc2 internal prototype to avoid an error. */
10595 /* We use char because int might match the return type of a gcc2
10596 builtin and then its argument prototype would still apply. */
10603 if { (eval echo configure:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10605 eval "ac_cv_lib_$ac_lib_var=yes"
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10610 eval "ac_cv_lib_$ac_lib_var=no"
10615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10616 echo "$ac_t""yes" 1>&6
10617 native_sound_lib="-laudio"
10619 echo "$ac_t""no" 1>&6
10624 if test -n "$native_sound_lib"; then
10625 sound_found=yes sound_cflags=""
10626 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10627 echo " xemacs will be linked with \"sgiplay.o\""
10631 if test -z "$native_sound_lib"; then
10633 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10634 echo "configure:10635: checking for AOpenAudio in -lAlib" >&5
10635 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10637 xe_check_libs=" -lAlib "
10638 cat > conftest.$ac_ext <<EOF
10639 #line 10640 "configure"
10640 #include "confdefs.h"
10641 /* Override any gcc2 internal prototype to avoid an error. */
10642 /* We use char because int might match the return type of a gcc2
10643 builtin and then its argument prototype would still apply. */
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10652 eval "ac_cv_lib_$ac_lib_var=yes"
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10657 eval "ac_cv_lib_$ac_lib_var=no"
10662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10663 echo "$ac_t""yes" 1>&6
10664 native_sound_lib="-lAlib"
10666 echo "$ac_t""no" 1>&6
10671 if test -n "$native_sound_lib"; then
10673 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10674 echo " xemacs will be linked with \"hpplay.o\""
10676 if test "$GCC" = "yes" # Kludge city
10677 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10678 else sound_cflags="+e -I/usr/audio/examples"
10684 if test -z "$sound_found"; then
10685 for dir in "machine" "sys" "linux"; do
10686 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10687 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10688 echo "configure:10689: checking for ${dir}/soundcard.h" >&5
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10693 #include <${dir}/soundcard.h>
10695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10696 { (eval echo configure:10697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10698 if test -z "$ac_err"; then
10700 eval "ac_cv_header_$ac_safe=yes"
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10706 eval "ac_cv_header_$ac_safe=no"
10709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10710 echo "$ac_t""yes" 1>&6
10712 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10713 echo " xemacs will be linked with \"linuxplay.o\""
10715 { test "$extra_verbose" = "yes" && cat << EOF
10716 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10718 cat >> confdefs.h <<EOF
10719 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10725 echo "$ac_t""no" 1>&6
10731 test "$sound_found" = "yes" && with_native_sound=yes
10734 if test -z "$with_sound"; then
10735 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10740 if test "$with_native_sound" = "yes"; then
10741 { test "$extra_verbose" = "yes" && cat << \EOF
10742 Defining HAVE_NATIVE_SOUND
10744 cat >> confdefs.h <<\EOF
10745 #define HAVE_NATIVE_SOUND 1
10749 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10752 case "$with_sound" in both | nas )
10753 { test "$extra_verbose" = "yes" && cat << \EOF
10754 Defining HAVE_NAS_SOUND
10756 cat >> confdefs.h <<\EOF
10757 #define HAVE_NAS_SOUND 1
10761 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10762 echo " xemacs will be linked with \"nas.o\""
10764 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10765 cat > conftest.$ac_ext <<EOF
10766 #line 10767 "configure"
10767 #include "confdefs.h"
10768 #include <audio/Xtutil.h>
10770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10771 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10775 { test "$extra_verbose" = "yes" && cat << \EOF
10776 Defining NAS_NO_ERROR_JUMP
10778 cat >> confdefs.h <<\EOF
10779 #define NAS_NO_ERROR_JUMP 1
10789 test -z "$with_tty" && with_tty=yes
10791 if test "$with_tty" = "yes" ; then
10792 echo "checking for TTY-related features" 1>&6
10793 echo "configure:10794: checking for TTY-related features" >&5
10794 { test "$extra_verbose" = "yes" && cat << \EOF
10797 cat >> confdefs.h <<\EOF
10802 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
10803 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\""
10806 if test -z "$with_ncurses"; then
10808 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10809 echo "configure:10810: checking for tgetent in -lncurses" >&5
10810 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10812 xe_check_libs=" -lncurses "
10813 cat > conftest.$ac_ext <<EOF
10814 #line 10815 "configure"
10815 #include "confdefs.h"
10816 /* Override any gcc2 internal prototype to avoid an error. */
10817 /* We use char because int might match the return type of a gcc2
10818 builtin and then its argument prototype would still apply. */
10825 if { (eval echo configure:10826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10827 eval "ac_cv_lib_$ac_lib_var=yes"
10829 echo "configure: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10832 eval "ac_cv_lib_$ac_lib_var=no"
10837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10838 echo "$ac_t""yes" 1>&6
10841 echo "$ac_t""no" 1>&6
10847 if test "$with_ncurses" = "yes"; then
10848 { test "$extra_verbose" = "yes" && cat << \EOF
10849 Defining HAVE_NCURSES
10851 cat >> confdefs.h <<\EOF
10852 #define HAVE_NCURSES 1
10856 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10857 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10858 echo "configure:10859: checking for ncurses/curses.h" >&5
10860 cat > conftest.$ac_ext <<EOF
10861 #line 10862 "configure"
10862 #include "confdefs.h"
10863 #include <ncurses/curses.h>
10865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10866 { (eval echo configure:10867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10868 if test -z "$ac_err"; then
10870 eval "ac_cv_header_$ac_safe=yes"
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10876 eval "ac_cv_header_$ac_safe=no"
10879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10880 echo "$ac_t""yes" 1>&6
10881 curses_h_path=ncurses/curses.h
10883 echo "$ac_t""no" 1>&6
10886 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10887 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10888 echo "configure:10889: checking for ncurses/term.h" >&5
10890 cat > conftest.$ac_ext <<EOF
10891 #line 10892 "configure"
10892 #include "confdefs.h"
10893 #include <ncurses/term.h>
10895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10896 { (eval echo configure:10897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10898 if test -z "$ac_err"; then
10900 eval "ac_cv_header_$ac_safe=yes"
10903 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
10906 eval "ac_cv_header_$ac_safe=no"
10909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10910 echo "$ac_t""yes" 1>&6
10911 term_h_path=ncurses/term.h
10913 echo "$ac_t""no" 1>&6
10916 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10917 echo " xemacs will be linked with \"terminfo.o\""
10919 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
10921 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10922 save_c_switch_site="$c_switch_site"
10923 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10924 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10925 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10926 echo "configure:10927: checking for ncurses/curses.h" >&5
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 #include <ncurses/curses.h>
10933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10934 { (eval echo configure:10935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10936 if test -z "$ac_err"; then
10938 eval "ac_cv_header_$ac_safe=yes"
10941 echo "configure: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10944 eval "ac_cv_header_$ac_safe=no"
10947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10948 echo "$ac_t""yes" 1>&6
10949 curses_h_path=ncurses/curses.h
10951 echo "$ac_t""no" 1>&6
10954 if test "$ac_cv_header_ncurses_curses_h" = "yes"
10955 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
10956 else c_switch_site="$save_c_switch_site"
10959 else if test "$have_terminfo" = "yes"; then
10960 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10961 echo " xemacs will be linked with \"terminfo.o\""
10963 if test -n "$libs_termcap"; then
10964 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10966 for lib in curses termlib termcap; do
10968 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10969 echo "configure:10970: checking for tgetent in -l$lib" >&5
10970 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10972 xe_check_libs=" -l$lib "
10973 cat > conftest.$ac_ext <<EOF
10974 #line 10975 "configure"
10975 #include "confdefs.h"
10976 /* Override any gcc2 internal prototype to avoid an error. */
10977 /* We use char because int might match the return type of a gcc2
10978 builtin and then its argument prototype would still apply. */
10985 if { (eval echo configure:10986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10987 eval "ac_cv_lib_$ac_lib_var=yes"
10989 echo "configure: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10992 eval "ac_cv_lib_$ac_lib_var=no"
10997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10998 echo "$ac_t""yes" 1>&6
10999 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11001 echo "$ac_t""no" 1>&6
11007 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11008 echo " xemacs will be linked with \"tparam.o\""
11010 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11011 if test -n "$libs_termcap"; then
11012 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11015 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11016 echo "configure:11017: checking for tgetent in -lcurses" >&5
11017 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11019 xe_check_libs=" -lcurses "
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11023 /* Override any gcc2 internal prototype to avoid an error. */
11024 /* We use char because int might match the return type of a gcc2
11025 builtin and then its argument prototype would still apply. */
11032 if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11034 eval "ac_cv_lib_$ac_lib_var=yes"
11036 echo "configure: failed program was:" >&5
11037 cat conftest.$ac_ext >&5
11039 eval "ac_cv_lib_$ac_lib_var=no"
11044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11045 echo "$ac_t""yes" 1>&6
11046 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11048 echo "$ac_t""no" 1>&6
11049 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11050 echo "configure:11051: checking for tgetent in -ltermcap" >&5
11051 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11053 xe_check_libs=" -ltermcap "
11054 cat > conftest.$ac_ext <<EOF
11055 #line 11056 "configure"
11056 #include "confdefs.h"
11057 /* Override any gcc2 internal prototype to avoid an error. */
11058 /* We use char because int might match the return type of a gcc2
11059 builtin and then its argument prototype would still apply. */
11066 if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11068 eval "ac_cv_lib_$ac_lib_var=yes"
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11073 eval "ac_cv_lib_$ac_lib_var=no"
11078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11079 echo "$ac_t""yes" 1>&6
11080 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11082 echo "$ac_t""no" 1>&6
11083 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11084 echo " xemacs will be linked with \"termcap.o\""
11095 { test "$extra_verbose" = "yes" && cat << EOF
11096 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11098 cat >> confdefs.h <<EOF
11099 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11103 { test "$extra_verbose" = "yes" && cat << EOF
11104 Defining TERM_H_PATH = "${term_h_path-term.h}"
11106 cat >> confdefs.h <<EOF
11107 #define TERM_H_PATH "${term_h_path-term.h}"
11112 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11113 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11114 echo "configure:11115: checking for gpm.h" >&5
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11122 { (eval echo configure:11123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11124 if test -z "$ac_err"; then
11126 eval "ac_cv_header_$ac_safe=yes"
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11132 eval "ac_cv_header_$ac_safe=no"
11135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11136 echo "$ac_t""yes" 1>&6
11139 echo "$ac_t""no" 1>&6
11143 test -z "$with_gpm" && {
11144 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11145 echo "configure:11146: checking for Gpm_Open in -lgpm" >&5
11146 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11148 xe_check_libs=" -lgpm "
11149 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11152 /* Override any gcc2 internal prototype to avoid an error. */
11153 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11161 if { (eval echo configure:11162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11163 eval "ac_cv_lib_$ac_lib_var=yes"
11165 echo "configure: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11168 eval "ac_cv_lib_$ac_lib_var=no"
11173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11174 echo "$ac_t""yes" 1>&6
11177 echo "$ac_t""no" 1>&6
11182 if test "$with_gpm" = "yes"; then
11183 { test "$extra_verbose" = "yes" && cat << \EOF
11186 cat >> confdefs.h <<\EOF
11191 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11192 echo " xemacs will be linked with \"gpmevent.o\""
11194 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11197 else for feature in ncurses gpm; do
11198 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11199 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11201 eval "with_${feature}=no"
11204 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11205 echo " xemacs will be linked with \"event-unixoid.o\""
11209 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11210 != "no no no" && echo "checking for database support" 1>&6
11211 echo "configure:11212: checking for database support" >&5
11213 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11214 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11215 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11216 echo "configure:11217: checking for ndbm.h" >&5
11218 cat > conftest.$ac_ext <<EOF
11219 #line 11220 "configure"
11220 #include "confdefs.h"
11223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11224 { (eval echo configure:11225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11226 if test -z "$ac_err"; then
11228 eval "ac_cv_header_$ac_safe=yes"
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11234 eval "ac_cv_header_$ac_safe=no"
11237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11238 echo "$ac_t""yes" 1>&6
11241 echo "$ac_t""no" 1>&6
11243 test "$with_database_gnudbm" = "yes" -o \
11244 "$with_database_dbm" = "yes" && \
11245 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11246 with_database_gnudbm=no with_database_dbm=no
11251 if test "$with_database_gnudbm" != "no"; then
11253 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11254 echo "configure:11255: checking for dbm_open in -lgdbm" >&5
11255 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11257 xe_check_libs=" -lgdbm "
11258 cat > conftest.$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11261 /* Override any gcc2 internal prototype to avoid an error. */
11262 /* We use char because int might match the return type of a gcc2
11263 builtin and then its argument prototype would still apply. */
11270 if { (eval echo configure:11271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11272 eval "ac_cv_lib_$ac_lib_var=yes"
11274 echo "configure: failed program was:" >&5
11275 cat conftest.$ac_ext >&5
11277 eval "ac_cv_lib_$ac_lib_var=no"
11282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11283 echo "$ac_t""yes" 1>&6
11284 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11286 echo "$ac_t""no" 1>&6
11287 if test "$with_database_gnudbm" = "yes"; then
11288 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11290 with_database_gnudbm=no
11296 if test "$with_database_dbm" != "no"; then
11297 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11298 echo "configure:11299: checking for dbm_open" >&5
11300 cat > conftest.$ac_ext <<EOF
11301 #line 11302 "configure"
11302 #include "confdefs.h"
11303 /* System header to define __stub macros and hopefully few prototypes,
11304 which can conflict with char dbm_open(); below. */
11305 #include <assert.h>
11306 /* Override any gcc2 internal prototype to avoid an error. */
11307 /* We use char because int might match the return type of a gcc2
11308 builtin and then its argument prototype would still apply. */
11313 /* The GNU C library defines this for functions which it implements
11314 to always fail with ENOSYS. Some functions are actually named
11315 something starting with __ and the normal name is an alias. */
11316 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11324 if { (eval echo configure:11325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11326 eval "ac_cv_func_dbm_open=yes"
11328 echo "configure: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11331 eval "ac_cv_func_dbm_open=no"
11335 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11336 echo "$ac_t""yes" 1>&6
11337 with_database_dbm=yes libdbm=
11339 echo "$ac_t""no" 1>&6
11342 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11343 echo "configure:11344: checking for dbm_open in -ldbm" >&5
11344 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11346 xe_check_libs=" -ldbm "
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 /* Override any gcc2 internal prototype to avoid an error. */
11351 /* We use char because int might match the return type of a gcc2
11352 builtin and then its argument prototype would still apply. */
11359 if { (eval echo configure:11360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11361 eval "ac_cv_lib_$ac_lib_var=yes"
11363 echo "configure: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11366 eval "ac_cv_lib_$ac_lib_var=no"
11371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11372 echo "$ac_t""yes" 1>&6
11373 with_database_dbm=yes libdbm=-ldbm
11375 echo "$ac_t""no" 1>&6
11376 test "$with_database_dbm" = "yes" && \
11377 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11378 with_database_dbm=no
11386 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11387 test "$with_database_gnudbm" = "yes" -o \
11388 "$with_database_dbm" = "yes" && \
11389 { test "$extra_verbose" = "yes" && cat << \EOF
11392 cat >> confdefs.h <<\EOF
11398 if test "$with_database_berkdb" != "no"; then
11399 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11400 echo "configure:11401: checking for Berkeley db.h" >&5
11401 for path in "db/db.h" "db.h"; do
11402 cat > conftest.$ac_ext <<EOF
11403 #line 11404 "configure"
11404 #include "confdefs.h"
11405 #ifdef HAVE_INTTYPES_H
11406 #define __BIT_TYPES_DEFINED__
11407 #include <inttypes.h>
11408 typedef uint8_t u_int8_t;
11409 typedef uint16_t u_int16_t;
11410 typedef uint32_t u_int32_t;
11411 #ifdef WE_DONT_NEED_QUADS
11412 typedef uint64_t u_int64_t;
11421 if { (eval echo configure:11422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11423 db_h_path="$path"; break
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11430 if test -z "$db_h_path"
11431 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11432 else echo "$ac_t""$db_h_path" 1>&6
11435 if test "$with_database_berkdb" != "no"; then
11436 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11437 echo "configure:11438: checking for Berkeley DB version" >&5
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11441 #include <$db_h_path>
11442 #if DB_VERSION_MAJOR > 1
11447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11448 egrep "yes" >/dev/null 2>&1; then
11450 echo "$ac_t""2" 1>&6; dbfunc=db_open
11453 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11457 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11458 echo "configure:11459: checking for $dbfunc" >&5
11460 cat > conftest.$ac_ext <<EOF
11461 #line 11462 "configure"
11462 #include "confdefs.h"
11463 /* System header to define __stub macros and hopefully few prototypes,
11464 which can conflict with char $dbfunc(); below. */
11465 #include <assert.h>
11466 /* Override any gcc2 internal prototype to avoid an error. */
11467 /* We use char because int might match the return type of a gcc2
11468 builtin and then its argument prototype would still apply. */
11473 /* The GNU C library defines this for functions which it implements
11474 to always fail with ENOSYS. Some functions are actually named
11475 something starting with __ and the normal name is an alias. */
11476 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11484 if { (eval echo configure:11485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11486 eval "ac_cv_func_$dbfunc=yes"
11488 echo "configure: failed program was:" >&5
11489 cat conftest.$ac_ext >&5
11491 eval "ac_cv_func_$dbfunc=no"
11495 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11496 echo "$ac_t""yes" 1>&6
11497 with_database_berkdb=yes need_libdb=no
11499 echo "$ac_t""no" 1>&6
11502 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11503 echo "configure:11504: checking for $dbfunc in -ldb" >&5
11504 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11506 xe_check_libs=" -ldb "
11507 cat > conftest.$ac_ext <<EOF
11508 #line 11509 "configure"
11509 #include "confdefs.h"
11510 /* Override any gcc2 internal prototype to avoid an error. */
11511 /* We use char because int might match the return type of a gcc2
11512 builtin and then its argument prototype would still apply. */
11519 if { (eval echo configure:11520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11521 eval "ac_cv_lib_$ac_lib_var=yes"
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11526 eval "ac_cv_lib_$ac_lib_var=no"
11531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11532 echo "$ac_t""yes" 1>&6
11533 with_database_berkdb=yes need_libdb=yes
11535 echo "$ac_t""no" 1>&6
11543 if test "$with_database_berkdb" = "yes"; then
11544 { test "$extra_verbose" = "yes" && cat << EOF
11545 Defining DB_H_PATH = "$db_h_path"
11547 cat >> confdefs.h <<EOF
11548 #define DB_H_PATH "$db_h_path"
11552 { test "$extra_verbose" = "yes" && cat << \EOF
11553 Defining HAVE_BERKELEY_DB
11555 cat >> confdefs.h <<\EOF
11556 #define HAVE_BERKELEY_DB 1
11560 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11561 else with_database_berkdb=no
11565 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11566 != "no no no"; then
11567 { test "$extra_verbose" = "yes" && cat << \EOF
11568 Defining HAVE_DATABASE
11570 cat >> confdefs.h <<\EOF
11571 #define HAVE_DATABASE 1
11575 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11576 echo " xemacs will be linked with \"database.o\""
11580 if test "$with_socks" = "yes"; then
11582 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11583 echo "configure:11584: checking for SOCKSinit in -lsocks" >&5
11584 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11586 xe_check_libs=" -lsocks "
11587 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11590 /* Override any gcc2 internal prototype to avoid an error. */
11591 /* We use char because int might match the return type of a gcc2
11592 builtin and then its argument prototype would still apply. */
11599 if { (eval echo configure:11600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11601 eval "ac_cv_lib_$ac_lib_var=yes"
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11606 eval "ac_cv_lib_$ac_lib_var=no"
11611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11612 echo "$ac_t""yes" 1>&6
11613 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11614 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11615 { test "$extra_verbose" = "yes" && cat << EOF
11616 Defining $ac_tr_lib
11618 cat >> confdefs.h <<EOF
11619 #define $ac_tr_lib 1
11623 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11626 echo "$ac_t""no" 1>&6
11630 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11631 Defining HAVE_SOCKS
11633 cat >> confdefs.h <<\EOF
11634 #define HAVE_SOCKS 1
11640 if test "$usage_tracking" = "yes"; then
11641 { test "$extra_verbose" = "yes" && cat << \EOF
11642 Defining USAGE_TRACKING
11644 cat >> confdefs.h <<\EOF
11645 #define USAGE_TRACKING 1
11649 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11652 for ac_hdr in dlfcn.h
11654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11656 echo "configure:11657: checking for $ac_hdr" >&5
11658 cat > conftest.$ac_ext <<EOF
11659 #line 11660 "configure"
11660 #include "confdefs.h"
11663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11664 { (eval echo configure:11665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11666 if test -z "$ac_err"; then
11668 eval "ac_cv_header_$ac_safe=yes"
11671 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11674 eval "ac_cv_header_$ac_safe=no"
11677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11678 echo "$ac_t""yes" 1>&6
11679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11680 { test "$extra_verbose" = "yes" && cat << EOF
11681 Defining $ac_tr_hdr
11683 cat >> confdefs.h <<EOF
11684 #define $ac_tr_hdr 1
11688 { test "$extra_verbose" = "yes" && cat << \EOF
11689 Defining HAVE_DLFCN_H
11691 cat >> confdefs.h <<\EOF
11692 #define HAVE_DLFCN_H 1
11697 echo "$ac_t""no" 1>&6
11701 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11702 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11703 echo "configure:11704: checking for dlopen in -ldl" >&5
11704 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11706 xe_check_libs=" -ldl "
11707 cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11710 /* Override any gcc2 internal prototype to avoid an error. */
11711 /* We use char because int might match the return type of a gcc2
11712 builtin and then its argument prototype would still apply. */
11719 if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11721 eval "ac_cv_lib_$ac_lib_var=yes"
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11726 eval "ac_cv_lib_$ac_lib_var=no"
11731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11732 echo "$ac_t""yes" 1>&6
11733 { test "$extra_verbose" = "yes" && cat << \EOF
11734 Defining HAVE_DLOPEN
11736 cat >> confdefs.h <<\EOF
11737 #define HAVE_DLOPEN 1
11740 DLL_LIB=dl; with_modules=yes
11742 echo "$ac_t""no" 1>&6
11746 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11747 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11748 echo "configure:11749: checking for _dlopen in -lc" >&5
11749 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11751 xe_check_libs=" -lc "
11752 cat > conftest.$ac_ext <<EOF
11753 #line 11754 "configure"
11754 #include "confdefs.h"
11755 /* Override any gcc2 internal prototype to avoid an error. */
11756 /* We use char because int might match the return type of a gcc2
11757 builtin and then its argument prototype would still apply. */
11764 if { (eval echo configure:11765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11766 eval "ac_cv_lib_$ac_lib_var=yes"
11768 echo "configure: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11771 eval "ac_cv_lib_$ac_lib_var=no"
11776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11777 echo "$ac_t""yes" 1>&6
11778 { test "$extra_verbose" = "yes" && cat << \EOF
11779 Defining HAVE_DLOPEN
11781 cat >> confdefs.h <<\EOF
11782 #define HAVE_DLOPEN 1
11785 DLL_LIB=; with_modules=yes
11787 echo "$ac_t""no" 1>&6
11791 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11792 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11793 echo "configure:11794: checking for dlopen in -lc" >&5
11794 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11796 xe_check_libs=" -lc "
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11800 /* Override any gcc2 internal prototype to avoid an error. */
11801 /* We use char because int might match the return type of a gcc2
11802 builtin and then its argument prototype would still apply. */
11809 if { (eval echo configure:11810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11811 eval "ac_cv_lib_$ac_lib_var=yes"
11813 echo "configure: failed program was:" >&5
11814 cat conftest.$ac_ext >&5
11816 eval "ac_cv_lib_$ac_lib_var=no"
11821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11822 echo "$ac_t""yes" 1>&6
11823 { test "$extra_verbose" = "yes" && cat << \EOF
11824 Defining HAVE_DLOPEN
11826 cat >> confdefs.h <<\EOF
11827 #define HAVE_DLOPEN 1
11830 DLL_LIB=; with_modules=yes
11832 echo "$ac_t""no" 1>&6
11836 test -z "$with_modules" && {
11837 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11838 echo "configure:11839: checking for shl_load in -ldld" >&5
11839 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11841 xe_check_libs=" -ldld "
11842 cat > conftest.$ac_ext <<EOF
11843 #line 11844 "configure"
11844 #include "confdefs.h"
11845 /* Override any gcc2 internal prototype to avoid an error. */
11846 /* We use char because int might match the return type of a gcc2
11847 builtin and then its argument prototype would still apply. */
11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11856 eval "ac_cv_lib_$ac_lib_var=yes"
11858 echo "configure: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11861 eval "ac_cv_lib_$ac_lib_var=no"
11866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11867 echo "$ac_t""yes" 1>&6
11868 { test "$extra_verbose" = "yes" && cat << \EOF
11869 Defining HAVE_SHL_LOAD
11871 cat >> confdefs.h <<\EOF
11872 #define HAVE_SHL_LOAD 1
11875 DLL_LIB=dld; with_modules=yes
11877 echo "$ac_t""no" 1>&6
11881 test -z "$with_modules" && {
11882 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11883 echo "configure:11884: checking for dld_init in -ldld" >&5
11884 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11886 xe_check_libs=" -ldld "
11887 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11899 if { (eval echo configure:11900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11901 eval "ac_cv_lib_$ac_lib_var=yes"
11903 echo "configure: failed program was:" >&5
11904 cat conftest.$ac_ext >&5
11906 eval "ac_cv_lib_$ac_lib_var=no"
11911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11912 echo "$ac_t""yes" 1>&6
11913 { test "$extra_verbose" = "yes" && cat << \EOF
11914 Defining HAVE_DLD_INIT
11916 cat >> confdefs.h <<\EOF
11917 #define HAVE_DLD_INIT 1
11920 DLL_LIB=dld; with_modules=yes
11922 echo "$ac_t""no" 1>&6
11926 if test "$with_modules" = "yes"; then
11933 ld_dynamic_link_flags=
11935 xealias=$internal_configuration
11937 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
11938 echo "configure:11939: checking how to build dynamic libraries for ${xehost}" >&5
11939 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
11942 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11945 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11946 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11947 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11949 case "$xehost_os" in
11951 # AIX sometimes has problems with the GCC collect2 program. For some
11952 # reason, if we set the COLLECT_NAMES environment variable, the problems
11953 # vanish in a puff of smoke.
11954 if test "${COLLECT_NAMES+set}" != set; then
11956 export COLLECT_NAMES
11961 # Now see if the compiler is really GCC.
11962 if test "$GCC" = "yes"; then
11965 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
11966 echo "configure:11967: checking checking whether we are using GNU C" >&5
11967 cat > conftest.$ac_ext <<EOF
11968 #line 11969 "configure"
11969 #include "confdefs.h"
11976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11977 egrep "yes" >/dev/null 2>&1; then
11986 echo "$ac_t""${XEGCC}" 1>&6
11989 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
11990 echo "configure:11991: checking how to produce PIC code" >&5
11993 can_build_shared=yes
11994 if test "$XEGCC" = yes; then
11997 case "$xehost_os" in
11998 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
11999 # PIC is the default for these OSes.
12003 # We can build DLLs from non-PIC.
12006 # FIXME: we need at least 68020 code to build shared libraries, but
12007 # adding the `-m68020' flag to GCC prevents building anything better,
12009 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12016 # PORTME Check for PIC flags for the system compiler.
12017 case "$xehost_os" in
12019 # Is there a better link_static_flag that works with the bundled CC?
12026 # PIC (with -KPIC) is the default.
12030 # We can build DLLs from non-PIC.
12034 # All OSF/1 code is PIC.
12039 dll_cflags='-belf -Kpic'
12073 can_build_shared=no
12078 if test -n "$dll_cflags"; then
12079 echo "$ac_t""${dll_cflags}" 1>&6
12081 # Check to make sure the dll_cflags actually works.
12082 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12083 echo "configure:12084: checking if PIC flag ${dll_cflags} really works" >&5
12084 save_CFLAGS="$CFLAGS"
12085 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12086 cat > conftest.$ac_ext <<EOF
12087 #line 12088 "configure"
12088 #include "confdefs.h"
12094 if { (eval echo configure:12095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12097 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12098 # reports no error. So, we need to grep stderr for (Bundled).
12099 if grep '(Bundled)' config.log >/dev/null; then
12100 echo "$ac_t""no" 1>&6
12101 can_build_shared=no
12104 echo "$ac_t""yes" 1>&6
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12110 echo "$ac_t""no" 1>&6
12111 can_build_shared=no
12115 CFLAGS="$save_CFLAGS"
12117 echo "$ac_t""none" 1>&6
12120 if test "$can_build_shared" = "yes"; then
12124 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12125 echo "configure:12126: checking if C compiler can produce shared libraries" >&5
12126 if test "$XEGCC" = yes; then
12129 else # Not using GCC
12130 case "$xehost_os" in
12132 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12133 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12136 freebsd2* | netbsd* | openbsd*)
12138 xcldf="${wl}-Bshareable"
12147 xcldf="${wl}-b ${wl}+s"
12150 irix5* | irix6* | osf3* | osf4*)
12151 xcldf="${wl}-shared"
12155 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12161 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12162 xldf="-assert pure-text -Bstatic"
12165 fi # End if if we are using gcc
12167 if test -n "$xcldf"; then
12168 save_LDFLAGS=$LDFLAGS
12170 save_xe_libs=$xe_libs
12171 LDFLAGS="$xcldf $LDFLAGS"
12174 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12175 cat > conftest.$ac_ext <<EOF
12176 #line 12177 "configure"
12177 #include "confdefs.h"
12183 if { (eval echo configure:12184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12187 echo "configure: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12193 LDFLAGS=$save_LDFLAGS
12195 xe_libs=$save_xe_libs
12196 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12200 echo "$ac_t""${cc_produces_so}" 1>&6
12203 if test -z "$LTLD"; then
12205 if test "$XEGCC" = yes; then
12206 # Check if gcc -print-prog-name=ld gives a path.
12207 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12208 echo "configure:12209: checking for ld used by GCC" >&5
12209 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12211 # Accept absolute paths.
12213 if test -z "$LTLD"; then
12215 *gcc-lib*) LTLD="$CC"
12223 # If it fails, then pretend we aren't using GCC.
12227 # If it is relative, then search for the first ld in PATH.
12228 with_gnu_ld=unknown
12232 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12233 echo "configure:12234: checking for GNU ld" >&5
12236 if test -z "$LTLD"; then
12237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12238 for ac_dir in $PATH; do
12239 test -z "$ac_dir" && ac_dir=.
12240 if test -f "$ac_dir/$ac_prog"; then
12241 LTLD="$ac_dir/$ac_prog"
12242 # Check to see if the program is GNU ld. I'd rather use --version,
12243 # but apparently some GNU ld's only accept -v.
12244 # Break only if it was the GNU/non-GNU ld that we prefer.
12245 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12255 if test -n "$LTLD"; then
12256 echo "$ac_t""${LTLD}" 1>&6
12258 echo "$ac_t""no" 1>&6
12261 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12262 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12267 ld_dynamic_link_flags=
12269 # Check to see if it really is or isn't GNU ld.
12270 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12271 echo "configure:12272: checking if the linker is GNU ld" >&5
12272 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12273 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12278 echo "$ac_t""${xe_gnu_ld}" 1>&6
12280 case "$xehost_os" in
12281 amigaos* | sunos4*)
12282 # On these operating systems, we should treat GNU ld like the system ld.
12283 gnu_ld_acts_native=yes
12286 gnu_ld_acts_native=no
12290 if test "$cc_produces_so" = "yes"; then
12293 can_build_shared=yes
12295 # OK - only NOW do we futz about with ld.
12296 # See if the linker supports building shared libraries.
12297 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12298 echo "configure:12299: checking whether the linker supports shared libraries" >&5
12300 dll_ldflags=$LDFLAGS
12302 can_build_shared=yes
12303 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12304 # See if GNU ld supports shared libraries.
12305 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12307 dll_ldflags="-shared"
12313 # PORTME fill in a description of your system's linker (not GNU ld)
12314 case "$xehost_os" in
12324 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12325 # support. Future versions do this automatically, but an explicit c++rt0.o
12326 # doesn't break anything, and helps significantly (at the cost of a little
12331 dll_post="/usr/lib/c++rt0.o"
12334 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12337 dll_ldflags="-Bshareable"
12340 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12342 dll_ldflags="-shared"
12356 # Tested with NetBSD 1.2 ld
12371 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12372 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12375 *gcc*) dll_ldflags="-shared"
12378 *) dll_ldflags="-G"
12384 if test "$XEGCC" = yes; then
12404 can_build_shared=no
12408 echo "$ac_t""${ld_shlibs}" 1>&6
12409 if test "$ld_shlibs" = "no"; then
12410 can_build_shared=no
12412 fi # End of if cc_produces_so = no
12415 if test "$xe_gnu_ld" = yes; then
12416 if test "$ld_shlibs" = yes; then
12417 ld_dynamic_link_flags="${wl}-export-dynamic"
12421 if test -z "$ld_dynamic_link_flags"; then
12422 case "$xehost_os" in
12424 ld_dynamic_link_flags=
12428 ld_dynamic_link_flags=
12432 ld_dynamic_link_flags=
12436 ld_dynamic_link_flags=
12440 ld_dynamic_link_flags=
12444 ld_dynamic_link_flags="${wl}-E"
12448 ld_dynamic_link_flags=
12452 ld_dynamic_link_flags=
12456 ld_dynamic_link_flags=
12460 ld_dynamic_link_flags=
12463 solaris2* | solaris7*)
12464 ld_dynamic_link_flags="${wl}-Bdynamic"
12467 sco3.2v5* | unixware* | sysv5* | sysv4*)
12468 ld_dynamic_link_flags="${wl}-Bexport"
12472 ld_dynamic_link_flags=
12476 ld_dynamic_link_flags=
12480 ld_dynamic_link_flags=
12484 fi # End of if -z ld_dynamic_link_flags
12485 fi # End of if test "$can_build_shared" = "yes"
12494 if test "$can_build_shared" = "yes"; then
12495 { test "$extra_verbose" = "yes" && cat << \EOF
12496 Defining HAVE_SHLIB
12498 cat >> confdefs.h <<\EOF
12499 #define HAVE_SHLIB 1
12503 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12504 echo " xemacs will be linked with \"sysdll.o\""
12506 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12507 echo " xemacs will be linked with \"emodules.o\""
12509 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12510 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12511 for ac_func in dlerror _dlerror
12513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12514 echo "configure:12515: checking for $ac_func" >&5
12516 cat > conftest.$ac_ext <<EOF
12517 #line 12518 "configure"
12518 #include "confdefs.h"
12519 /* System header to define __stub macros and hopefully few prototypes,
12520 which can conflict with char $ac_func(); below. */
12521 #include <assert.h>
12522 /* Override any gcc2 internal prototype to avoid an error. */
12523 /* We use char because int might match the return type of a gcc2
12524 builtin and then its argument prototype would still apply. */
12529 /* The GNU C library defines this for functions which it implements
12530 to always fail with ENOSYS. Some functions are actually named
12531 something starting with __ and the normal name is an alias. */
12532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12540 if { (eval echo configure:12541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12542 eval "ac_cv_func_$ac_func=yes"
12544 echo "configure: failed program was:" >&5
12545 cat conftest.$ac_ext >&5
12547 eval "ac_cv_func_$ac_func=no"
12551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12552 echo "$ac_t""yes" 1>&6
12553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12554 { test "$extra_verbose" = "yes" && cat << EOF
12555 Defining $ac_tr_func
12557 cat >> confdefs.h <<EOF
12558 #define $ac_tr_func 1
12563 echo "$ac_t""no" 1>&6
12568 echo "configure: warning: disabling shared library support" 1>&2
12573 cat > conftest.$ac_ext <<EOF
12574 #line 12575 "configure"
12575 #include "confdefs.h"
12576 int main(int c,char *v[]){return 0;}
12578 if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12583 echo "configure: failed program was:" >&5
12584 cat conftest.$ac_ext >&5
12588 echo "*** PANIC *** The C compiler can no longer build working executables."
12589 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12590 echo "*** PANIC *** The most likely reason for this problem is that configure"
12591 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12592 echo "*** PANIC *** found at run time."
12593 echo "*** PANIC ***"
12594 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12595 echo "*** PANIC *** On other systems, try telling configure where to find the"
12596 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12597 echo "*** PANIC ***"
12598 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12599 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12600 echo "*** PANIC *** on your system. Don't do that."
12605 if test "$win32_processes" = "yes"; then
12606 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12607 echo " xemacs will be linked with \"process-nt.o\""
12610 { test "$extra_verbose" = "yes" && cat << \EOF
12611 Defining HAVE_UNIX_PROCESSES
12613 cat >> confdefs.h <<\EOF
12614 #define HAVE_UNIX_PROCESSES 1
12618 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12619 echo " xemacs will be linked with \"process-unix.o\""
12626 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12631 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12636 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
12637 c_switch_general="$T"
12641 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12642 c_switch_window_system="$T"
12646 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12651 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
12652 ld_switch_general="$T"
12656 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12657 ld_switch_window_system="$T"
12661 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12666 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12667 ld_libs_general="$T"
12671 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
12672 ld_libs_window_system="$T"
12676 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12681 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12682 internal_makefile_list="Makefile.in"
12683 SUBDIR_MAKEFILES=''
12684 test -d lock || mkdir lock
12685 for dir in $MAKE_SUBDIR; do
12686 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12687 test -d "$d" || mkdir "$d"; cd "$d"
12689 * ) test -d "$dir" || mkdir "$dir" ;;
12693 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12694 SUBDIR_MAKEFILES="$T"
12698 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12699 internal_makefile_list="$T"
12706 for dir in src/s src/m; do
12707 if test ! -d "$dir" ; then
12708 echo Making symbolic link to "$srcdir/$dir"
12709 ${LN_S} "$srcdir/$dir" "$dir"
12713 if test "$extra_verbose" = "yes"; then
12715 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
12719 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12720 echo "creating src/gdbinit"; echo ""
12721 echo "source $srcdir/src/gdbinit" > src/gdbinit
12724 if test "$__SUNPRO_C" = "yes"; then
12725 echo "creating .sbinit"; echo ""
12726 ( echo "# For use with Sun WorkShop's Source browser."
12727 echo "# See sbquery(1) and sbinit(4) for more information"
12728 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12755 *\$* ) eval "PREFIX=$PREFIX" ;;
12763 EXEC_PREFIX=$exec_prefix
12765 case "$EXEC_PREFIX" in
12766 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12777 *\$* ) eval "INFODIR=$INFODIR" ;;
12787 case "$INFOPATH" in
12788 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12796 PACKAGE_PATH=$package_path
12798 case "$PACKAGE_PATH" in
12799 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12810 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12818 MODULEDIR=$moduledir
12820 case "$MODULEDIR" in
12821 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12829 SITELISPDIR=$sitelispdir
12831 case "$SITELISPDIR" in
12832 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12840 SITEMODULEDIR=$sitemoduledir
12842 case "$SITEMODULEDIR" in
12843 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12854 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12865 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12876 *\$* ) eval "DOCDIR=$DOCDIR" ;;
12884 ARCHLIBDIR=$archlibdir
12886 case "$ARCHLIBDIR" in
12887 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12911 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12919 : ${XEMACS_CC:=$CC}
12922 if test "$with_prefix" = "yes"; then
12923 { test "$extra_verbose" = "yes" && cat << \EOF
12924 Defining PREFIX_USER_DEFINED
12926 cat >> confdefs.h <<\EOF
12927 #define PREFIX_USER_DEFINED 1
12933 if test "$with_site_lisp" = "no"; then
12934 { test "$extra_verbose" = "yes" && cat << \EOF
12935 Defining INHIBIT_SITE_LISP
12937 cat >> confdefs.h <<\EOF
12938 #define INHIBIT_SITE_LISP 1
12943 if test "$with_site_modules" = "no"; then
12944 { test "$extra_verbose" = "yes" && cat << \EOF
12945 Defining INHIBIT_SITE_MODULES
12947 cat >> confdefs.h <<\EOF
12948 #define INHIBIT_SITE_MODULES 1
12956 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12957 ac_configure_args="$T"
12959 { test "$extra_verbose" = "yes" && cat << EOF
12960 Defining EMACS_CONFIGURATION = "$canonical"
12962 cat >> confdefs.h <<EOF
12963 #define EMACS_CONFIGURATION "$canonical"
12967 { test "$extra_verbose" = "yes" && cat << EOF
12968 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12970 cat >> confdefs.h <<EOF
12971 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
12975 { test "$extra_verbose" = "yes" && cat << EOF
12976 Defining config_machfile = "$machfile"
12978 cat >> confdefs.h <<EOF
12979 #define config_machfile "$machfile"
12983 { test "$extra_verbose" = "yes" && cat << EOF
12984 Defining config_opsysfile = "$opsysfile"
12986 cat >> confdefs.h <<EOF
12987 #define config_opsysfile "$opsysfile"
12994 { test "$extra_verbose" = "yes" && cat << EOF
12995 Defining LD_SWITCH_X_SITE = $null_string
12997 cat >> confdefs.h <<EOF
12998 #define LD_SWITCH_X_SITE $null_string
13002 { test "$extra_verbose" = "yes" && cat << EOF
13003 Defining LD_SWITCH_X_SITE_AUX = $null_string
13005 cat >> confdefs.h <<EOF
13006 #define LD_SWITCH_X_SITE_AUX $null_string
13010 { test "$extra_verbose" = "yes" && cat << EOF
13011 Defining C_SWITCH_X_SITE = $null_string
13013 cat >> confdefs.h <<EOF
13014 #define C_SWITCH_X_SITE $null_string
13018 { test "$extra_verbose" = "yes" && cat << EOF
13019 Defining LD_SWITCH_SITE = $null_string
13021 cat >> confdefs.h <<EOF
13022 #define LD_SWITCH_SITE $null_string
13026 { test "$extra_verbose" = "yes" && cat << EOF
13027 Defining C_SWITCH_SITE = $null_string
13029 cat >> confdefs.h <<EOF
13030 #define C_SWITCH_SITE $null_string
13036 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13037 Defining GNU_MALLOC
13039 cat >> confdefs.h <<\EOF
13040 #define GNU_MALLOC 1
13044 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13045 Defining USE_SYSTEM_MALLOC
13047 cat >> confdefs.h <<\EOF
13048 #define USE_SYSTEM_MALLOC 1
13052 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13053 Defining USE_DEBUG_MALLOC
13055 cat >> confdefs.h <<\EOF
13056 #define USE_DEBUG_MALLOC 1
13060 { test "$extra_verbose" = "yes" && cat << \EOF
13061 Defining USE_SYSTEM_MALLOC
13063 cat >> confdefs.h <<\EOF
13064 #define USE_SYSTEM_MALLOC 1
13069 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13072 cat >> confdefs.h <<\EOF
13077 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13080 cat >> confdefs.h <<\EOF
13085 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13086 Defining EXTERNAL_WIDGET
13088 cat >> confdefs.h <<\EOF
13089 #define EXTERNAL_WIDGET 1
13093 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13094 Defining NO_DOC_FILE
13096 cat >> confdefs.h <<\EOF
13097 #define NO_DOC_FILE 1
13101 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13104 cat >> confdefs.h <<\EOF
13109 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13112 cat >> confdefs.h <<\EOF
13117 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13118 Defining MAIL_USE_POP
13120 cat >> confdefs.h <<\EOF
13121 #define MAIL_USE_POP 1
13125 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13128 cat >> confdefs.h <<\EOF
13133 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13136 cat >> confdefs.h <<\EOF
13141 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13142 Defining USE_UNION_TYPE
13144 cat >> confdefs.h <<\EOF
13145 #define USE_UNION_TYPE 1
13152 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13154 echo "uname -a: `uname -a`"
13157 echo "$0 $quoted_arguments"
13160 if test ! -z ${emacs_beta_version} ; then
13161 if test -z "${emacs_is_beta}" ; then
13162 xemacs_betaname=".${emacs_beta_version}"
13164 xemacs_betaname="-b${emacs_beta_version}"
13173 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13175 Where should the build process find the source code? $srcdir
13176 What installation prefix should install use? $prefix
13177 What operating system and machine description files should XEmacs use?
13178 \`$opsysfile' and \`$machfile'
13179 What compiler should XEmacs be built with? $CC $CFLAGS
13180 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13181 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13182 What window system should XEmacs use? ${window_system}"
13183 if test "$with_x11" = "yes"; then
13184 echo " Where do we find X Windows header files? $x_includes"
13185 echo " Where do we find X Windows libraries? $x_libraries"
13187 if test -n "$site_includes"; then
13188 echo " Additional header files: $site_includes"
13190 if test -n "$site_libraries"; then
13191 echo " Additional libraries: $site_libraries"
13193 if test -n "$site_prefixes"; then
13194 echo " Additional prefixes: $site_prefixes"
13196 if test -n "$runpath"; then
13197 echo " Runtime library search path: $runpath"
13199 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13200 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13201 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13202 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13203 echo " No Xmu; substituting equivalent routines."
13206 if test "$with_xpm" = yes; then
13207 echo " Compiling in support for XPM images."
13208 elif test "$with_x11" = yes; then
13209 echo " --------------------------------------------------------------------"
13210 echo " WARNING: Compiling without XPM support."
13211 if test "$xpm_problem" != ""; then
13212 echo " Reason: $xpm_problem"
13214 echo " WARNING: You should strongly consider installing XPM."
13215 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13216 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13217 echo " --------------------------------------------------------------------"
13219 if test "$with_png" = yes; then
13220 echo " Compiling in support for PNG image handling."
13221 elif test "$window_system" != "none"; then
13222 echo " --------------------------------------------------------------------"
13223 echo " WARNING: Compiling without PNG image support."
13224 if test "$png_problem" != ""; then
13225 echo " Reason: $png_problem"
13227 echo " WARNING: You should strongly consider installing the PNG libraries."
13228 echo " WARNING: Otherwise certain images and glyphs may not display."
13229 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13230 echo " --------------------------------------------------------------------"
13232 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13233 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13234 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13235 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13236 case "$with_sound" in
13237 nas ) echo " Compiling in network sound (NAS) support." ;;
13238 native ) echo " Compiling in native sound support." ;;
13239 both ) echo " Compiling in both network and native sound support." ;;
13241 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13243 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13244 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13245 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13247 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13249 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13250 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13252 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13253 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
13254 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13255 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13256 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13257 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13258 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13259 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13260 if test "$with_wnn" = yes; then
13261 echo " Compiling in support for the WNN input method on Mule."
13262 test "$with_wnn6" = yes && echo " Using WNN version 6."
13264 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13266 test "$with_cde" = yes && echo " Compiling in support for CDE."
13267 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13268 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13269 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13270 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13271 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13272 case "$with_menubars" in
13273 lucid ) echo " Using Lucid menubars." ;;
13274 motif ) echo " Using Motif menubars."
13275 echo " *WARNING* The Motif menubar implementation is currently buggy."
13276 echo " We recommend using the Lucid menubar instead."
13277 echo " Re-run configure with --with-menubars='lucid'." ;;
13279 case "$with_scrollbars" in
13280 lucid ) echo " Using Lucid scrollbars." ;;
13281 motif ) echo " Using Motif scrollbars." ;;
13282 athena ) echo " Using Athena scrollbars." ;;
13283 athena3d ) echo " Using Athena-3d scrollbars." ;;
13285 case "$with_widgets" in
13286 motif ) echo " Using Motif native widgets." ;;
13288 case "$with_dialogs" in
13290 echo " Using Motif dialog boxes."
13291 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13292 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13293 echo " We recommend using the Athena dialog boxes instead."
13294 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13295 echo " Read the PROBLEMS file for more information."
13298 athena ) echo " Using Athena dialog boxes." ;;
13299 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13301 test "$with_modules" = "yes" && echo " Compiling in DSO module support."
13302 test "$with_clash_detection" = yes && \
13303 echo " Clash detection will use \"$lockdir\" for locking files."
13304 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13305 test "$with_pop" = yes && echo " Using POP for mail access."
13306 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13307 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13308 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13309 test "$debug" = yes && echo " Compiling in extra code for debugging."
13310 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13311 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13312 != "no no no no no"; then
13313 echo " WARNING: ---------------------------------------------------------"
13314 echo " WARNING: Compiling in support for runtime error checking."
13315 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13316 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13317 echo " WARNING: ---------------------------------------------------------"
13320 ) | tee -a Installation
13324 # Remove any trailing slashes in these variables.
13325 test -n "$prefix" &&
13326 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13327 test -n "$exec_prefix" &&
13328 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13331 for file in $internal_makefile_list; do
13332 test "$file" = src/Makefile.in && \
13333 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13334 ac_output_files="${ac_output_files+$ac_output_files }$file"
13336 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13337 if test "$with_modules" = "yes"; then
13338 ac_output_files="$ac_output_files lib-src/ellcc.h"
13343 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13346 # Let make expand exec_prefix.
13347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13349 # Any assignment to VPATH causes Sun make to only execute
13350 # the first set of double-colon rules, so remove it if not needed.
13351 # If there is a colon in the path, we need to keep it.
13352 if test "x$srcdir" = x.; then
13353 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13356 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13358 DEFS=-DHAVE_CONFIG_H
13360 # Without the "./", some shells look in PATH for config.status.
13361 : ${CONFIG_STATUS=./config.status}
13363 echo creating $CONFIG_STATUS
13364 rm -f $CONFIG_STATUS
13365 cat > $CONFIG_STATUS <<EOF
13367 # Generated automatically by configure.
13368 # Run this file to recreate the current configuration.
13369 # This directory was configured as follows,
13370 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13372 # $0 $ac_configure_args
13374 # Compiler output produced by configure, useful for debugging
13375 # configure, is in ./config.log if it exists.
13377 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13380 case "\$ac_option" in
13381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13382 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13383 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13384 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13385 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13387 -help | --help | --hel | --he | --h)
13388 echo "\$ac_cs_usage"; exit 0 ;;
13389 *) echo "\$ac_cs_usage"; exit 1 ;;
13393 ac_given_srcdir=$srcdir
13394 ac_given_INSTALL="$INSTALL"
13396 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13398 cat >> $CONFIG_STATUS <<EOF
13400 # Protect against being on the right side of a sed subst in config.status.
13401 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13402 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13406 s%@CFLAGS@%$CFLAGS%g
13407 s%@CPPFLAGS@%$CPPFLAGS%g
13408 s%@CXXFLAGS@%$CXXFLAGS%g
13409 s%@FFLAGS@%$FFLAGS%g
13411 s%@LDFLAGS@%$LDFLAGS%g
13413 s%@exec_prefix@%$exec_prefix%g
13414 s%@prefix@%$prefix%g
13415 s%@program_transform_name@%$program_transform_name%g
13416 s%@bindir@%$bindir%g
13417 s%@sbindir@%$sbindir%g
13418 s%@libexecdir@%$libexecdir%g
13419 s%@datadir@%$datadir%g
13420 s%@sysconfdir@%$sysconfdir%g
13421 s%@sharedstatedir@%$sharedstatedir%g
13422 s%@localstatedir@%$localstatedir%g
13423 s%@libdir@%$libdir%g
13424 s%@includedir@%$includedir%g
13425 s%@oldincludedir@%$oldincludedir%g
13426 s%@infodir@%$infodir%g
13427 s%@mandir@%$mandir%g
13429 s%@blddir@%$blddir%g
13432 s%@start_flags@%$start_flags%g
13433 s%@ld_switch_shared@%$ld_switch_shared%g
13434 s%@start_files@%$start_files%g
13436 s%@lib_gcc@%$lib_gcc%g
13437 s%@RANLIB@%$RANLIB%g
13438 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13439 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13440 s%@INSTALL_DATA@%$INSTALL_DATA%g
13442 s%@SET_MAKE@%$SET_MAKE%g
13443 s%@X_CFLAGS@%$X_CFLAGS%g
13444 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13445 s%@X_LIBS@%$X_LIBS%g
13446 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13447 s%@install_pp@%$install_pp%g
13448 s%@libs_xauth@%$libs_xauth%g
13449 s%@dnd_objs@%$dnd_objs%g
13450 s%@lwlib_objs@%$lwlib_objs%g
13451 s%@ALLOCA@%$ALLOCA%g
13452 s%@dll_ld@%$dll_ld%g
13453 s%@dll_cflags@%$dll_cflags%g
13454 s%@dll_ldflags@%$dll_ldflags%g
13455 s%@dll_post@%$dll_post%g
13456 s%@dll_ldo@%$dll_ldo%g
13457 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13458 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13459 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13460 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13461 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13462 s%@PROGNAME@%$PROGNAME%g
13463 s%@version@%$version%g
13464 s%@configuration@%$configuration%g
13465 s%@canonical@%$canonical%g
13466 s%@inststaticdir@%$inststaticdir%g
13467 s%@instvardir@%$instvardir%g
13468 s%@srcdir@%$srcdir%g
13469 s%@pkgdir@%$pkgdir%g
13470 s%@statedir@%$statedir%g
13471 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13472 s%@PREFIX@%$PREFIX%g
13473 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13474 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13475 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13476 s%@INFODIR@%$INFODIR%g
13477 s%@infopath@%$infopath%g
13478 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13479 s%@INFOPATH@%$INFOPATH%g
13480 s%@package_path@%$package_path%g
13481 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13482 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13483 s%@lispdir@%$lispdir%g
13484 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13485 s%@LISPDIR@%$LISPDIR%g
13486 s%@moduledir@%$moduledir%g
13487 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13488 s%@MODULEDIR@%$MODULEDIR%g
13489 s%@sitelispdir@%$sitelispdir%g
13490 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13491 s%@SITELISPDIR@%$SITELISPDIR%g
13492 s%@sitemoduledir@%$sitemoduledir%g
13493 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13494 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13495 s%@etcdir@%$etcdir%g
13496 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13497 s%@ETCDIR@%$ETCDIR%g
13498 s%@lockdir@%$lockdir%g
13499 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13500 s%@LOCKDIR@%$LOCKDIR%g
13501 s%@docdir@%$docdir%g
13502 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13503 s%@DOCDIR@%$DOCDIR%g
13504 s%@archlibdir@%$archlibdir%g
13505 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13506 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13507 s%@bitmapdir@%$bitmapdir%g
13508 s%@extra_objs@%$extra_objs%g
13509 s%@machfile@%$machfile%g
13510 s%@opsysfile@%$opsysfile%g
13511 s%@c_switch_general@%$c_switch_general%g
13512 s%@c_switch_window_system@%$c_switch_window_system%g
13513 s%@c_switch_all@%$c_switch_all%g
13514 s%@ld_switch_general@%$ld_switch_general%g
13515 s%@ld_switch_window_system@%$ld_switch_window_system%g
13516 s%@ld_switch_all@%$ld_switch_all%g
13517 s%@ld_libs_general@%$ld_libs_general%g
13518 s%@ld_libs_window_system@%$ld_libs_window_system%g
13519 s%@ld_libs_all@%$ld_libs_all%g
13520 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13521 s%@native_sound_lib@%$native_sound_lib%g
13522 s%@sound_cflags@%$sound_cflags%g
13523 s%@dynodump_arch@%$dynodump_arch%g
13524 s%@XEMACS_CC@%$XEMACS_CC%g
13525 s%@internal_makefile_list@%$internal_makefile_list%g
13530 cat >> $CONFIG_STATUS <<\EOF
13532 # Split the substitutions into bite-sized pieces for seds with
13533 # small command number limits, like on Digital OSF/1 and HP-UX.
13534 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13535 ac_file=1 # Number of current file.
13536 ac_beg=1 # First line for current file.
13537 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13540 while $ac_more_lines; do
13541 if test $ac_beg -gt 1; then
13542 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13544 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13546 if test ! -s conftest.s$ac_file; then
13547 ac_more_lines=false
13548 rm -f conftest.s$ac_file
13550 if test -z "$ac_sed_cmds"; then
13551 ac_sed_cmds="sed -f conftest.s$ac_file"
13553 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13555 ac_file=`expr $ac_file + 1`
13557 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13560 if test -z "$ac_sed_cmds"; then
13565 cat >> $CONFIG_STATUS <<EOF
13567 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13569 cat >> $CONFIG_STATUS <<\EOF
13570 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13573 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13574 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13575 *) ac_file_in="${ac_file}.in" ;;
13578 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13580 # Remove last slash and all that follows it. Not all systems have dirname.
13581 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13582 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13583 # The file is in a subdirectory.
13584 test ! -d "$ac_dir" && mkdir "$ac_dir"
13585 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13586 # A "../" for each directory in $ac_dir_suffix.
13587 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13589 ac_dir_suffix= ac_dots=
13592 case "$ac_given_srcdir" in
13594 if test -z "$ac_dots"; then top_srcdir=.
13595 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13596 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13597 *) # Relative path.
13598 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13599 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13602 case "$ac_given_INSTALL" in
13603 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13604 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13607 echo creating "$ac_file"
13609 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13611 *Makefile*) ac_comsub="1i\\
13612 # $configure_input" ;;
13616 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13618 s%@configure_input@%$configure_input%g
13619 s%@srcdir@%$srcdir%g
13620 s%@top_srcdir@%$top_srcdir%g
13621 s%@INSTALL@%$INSTALL%g
13622 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13626 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13627 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13629 # ac_d sets the value in "#define NAME VALUE" lines.
13630 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13631 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13634 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13635 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13636 ac_uB='\([ ]\)%\1#\2define\3'
13639 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13640 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13641 ac_eB='$%\1#\2define\3'
13645 if test "${CONFIG_HEADERS+set}" != set; then
13647 cat >> $CONFIG_STATUS <<EOF
13648 CONFIG_HEADERS="src/config.h lwlib/config.h"
13650 cat >> $CONFIG_STATUS <<\EOF
13652 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13653 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13655 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13656 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13657 *) ac_file_in="${ac_file}.in" ;;
13660 echo creating $ac_file
13662 rm -f conftest.frag conftest.in conftest.out
13663 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13664 cat $ac_file_inputs > conftest.in
13668 # Transform confdefs.h into a sed script conftest.vals that substitutes
13669 # the proper values into config.h.in to produce config.h. And first:
13670 # Protect against being on the right side of a sed subst in config.status.
13671 # Protect against being in an unquoted here document in config.status.
13672 rm -f conftest.vals
13673 cat > conftest.hdr <<\EOF
13676 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13680 sed -n -f conftest.hdr confdefs.h > conftest.vals
13683 # This sed command replaces #undef with comments. This is necessary, for
13684 # example, in the case of _POSIX_SOURCE, which is predefined and required
13685 # on some systems where configure will not decide to define it.
13686 cat >> conftest.vals <<\EOF
13687 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13690 # Break up conftest.vals because some shells have a limit on
13691 # the size of here documents, and old seds have small limits too.
13693 rm -f conftest.tail
13696 ac_lines=`grep -c . conftest.vals`
13697 # grep -c gives empty output for an empty file on some AIX systems.
13698 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13699 # Write a limited-size here document to conftest.frag.
13700 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13701 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13703 sed -f conftest.frag conftest.in > conftest.out
13705 mv conftest.out conftest.in
13706 ' >> $CONFIG_STATUS
13707 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13708 rm -f conftest.vals
13709 mv conftest.tail conftest.vals
13711 rm -f conftest.vals
13713 cat >> $CONFIG_STATUS <<\EOF
13714 rm -f conftest.frag conftest.h
13715 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13716 cat conftest.in >> conftest.h
13718 if cmp -s $ac_file conftest.h 2>/dev/null; then
13719 echo "$ac_file is unchanged"
13722 # Remove last slash and all that follows it. Not all systems have dirname.
13723 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13724 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13725 # The file is in a subdirectory.
13726 test ! -d "$ac_dir" && mkdir "$ac_dir"
13729 mv conftest.h $ac_file
13734 cat >> $CONFIG_STATUS <<EOF
13736 top_srcdir="$srcdir"
13737 MAKE_SUBDIR="$MAKE_SUBDIR"
13740 cat >> $CONFIG_STATUS <<\EOF
13741 for dir in . $MAKE_SUBDIR; do
13746 sed -e '/^# Generated/d' \
13747 -e 's%/\*\*/#.*%%' \
13762 echo creating $dir/Makefile
13763 $CPP -I. -I${top_srcdir}/src junk.c \
13764 | sed -e 's/^\#.*//' \
13765 -e 's/^[ ][ ]*$//'\
13767 | sed -n -e '/^..*$/p' \
13773 chmod 444 Makefile.new
13774 mv -f Makefile.new Makefile
13776 echo creating $dir/GNUmakefile
13777 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13778 | sed -e 's/^\#.*//' \
13779 -e 's/^[ ][ ]*$//'\
13781 | sed -n -e '/^..*$/p' \
13787 chmod 444 Makefile.new
13788 mv -f Makefile.new GNUmakefile
13794 sed < config.status >> lib-src/config.values \
13795 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13796 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13797 -e 's/^\([^ ]*\) $/\1 ""/' \
13803 chmod +x $CONFIG_STATUS
13804 rm -fr confdefs* $ac_clean_files
13805 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1