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.13 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'
95 SHELL=${CONFIG_SHELL-/bin/sh}
98 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
100 # File descriptor usage:
103 # 2 errors and warnings
104 # 3 some systems may open it to /dev/tty
105 # 4 used on the Kubota Titan
106 # 6 checking for... messages and results
107 # 5 compiler messages saved in config.log
108 if test "$silent" = yes; then
116 This file contains any messages produced by compilers while
117 running configure, to aid debugging if configure makes a mistake.
120 # Strip out --no-create and --no-recursion so they do not pile up.
121 # Also quote any args containing shell metacharacters.
126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
127 | --no-cr | --no-c) ;;
128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
131 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
132 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
137 # Only set these to C if already set. These must not be set unconditionally
138 # because not all systems understand e.g. LANG=C (notably SCO).
139 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
140 # Non-C LC_CTYPE values break the ctype check.
141 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
142 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
143 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
144 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
147 rm -rf conftest* confdefs.h
148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
151 # A filename unique to this package, relative to the directory that
152 # configure is in, which we can look for to find out if srcdir is correct.
153 ac_unique_file=src/lisp.h
155 # Find the source files, if location was not specified.
156 if test -z "$srcdir"; then
157 ac_srcdir_defaulted=yes
158 # Try the directory containing this script, then its parent.
160 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
161 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
163 if test ! -r $srcdir/$ac_unique_file; then
167 ac_srcdir_defaulted=no
169 if test ! -r $srcdir/$ac_unique_file; then
170 if test "$ac_srcdir_defaulted" = yes; then
171 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
173 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
176 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
178 # Prefer explicitly selected file to automatically selected ones.
179 if test -z "$CONFIG_SITE"; then
180 if test "x$prefix" != xNONE; then
181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
186 for ac_site_file in $CONFIG_SITE; do
187 if test -r "$ac_site_file"; then
188 echo "loading site script $ac_site_file"
195 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
196 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
197 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
198 ac_cpp='$CPP '"$xe_cppflags"
199 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
200 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
205 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
206 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
207 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
214 ac_n= ac_c='\c' ac_t=
218 progname="`echo $0 | sed 's:^\./\./:\./:'`"
221 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
222 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
225 exec_prefix='${prefix}'
226 bindir='${exec_prefix}/bin'
227 datadir='${prefix}/lib'
228 statedir='${prefix}/lib'
229 libdir='${exec_prefix}/lib'
230 mandir='${prefix}/man/man1'
231 inststaticdir='${PROGNAME}'
232 instvardir='${PROGNAME}-${version}'
233 infodir='${datadir}/${instvardir}/info'
236 lispdir='${datadir}/${instvardir}/lisp'
237 moduledir='${datadir}/${instvardir}/${configuration}/modules'
238 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
239 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
240 pkgdir='${datadir}/${instvardir}/lisp'
242 etcdir='${datadir}/${instvardir}/etc'
243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
247 with_site_modules='yes'
253 cpp='' cppflags='' libs='' ldflags=''
259 with_system_malloc='default'
260 with_dlmalloc='default'
275 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 | --no-cr | --no-c) ;;
281 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
284 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
285 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
289 while test $# != 0; do
292 --no-create|--no-recursion) ;;
296 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
297 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
301 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
302 val="yes" valomitted=yes
307 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
309 case "${valomitted}-${opt}" in yes-without_* )
310 opt=`echo $opt | sed 's/without/with/'`
311 valomitted="no" val="no" ;;
318 with_site_modules | \
368 memory_usage_stats | \
369 with_clash_detection | \
373 y | ye | yes ) val=yes ;;
375 * ) (echo "$progname: Usage error:"
376 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
377 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
379 eval "$opt=\"$val\"" ;;
397 site_runtime_libraries )
398 if test "$valomitted" = "yes" ; then
399 if test "$#" = 0 ; then
400 (echo "$progname: Usage error:"
401 echo " " "The \`--$optname' option requires a value."
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
411 with_debug_malloc | use_debug_malloc | \
412 with_system_malloc | use_system_malloc )
414 y | ye | yes ) val=yes ;;
416 d | de | def | defa | defau | defaul | default ) val=default ;;
417 * ) (echo "$progname: Usage error:"
418 echo " " "The \`--$optname' option requires one of these values:
419 \`yes', \`no', or \`default'."
420 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
422 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
427 with_database_berkdb=no
429 with_database_gdbm=no
430 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
433 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
434 d | db | dbm ) with_database_dbm=yes ;;
435 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
436 * ) (echo "$progname: Usage error:"
437 echo " " "The \`--$optname' option value
438 must be either \`no' or a comma-separated list
439 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
440 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
443 if test "$with_database_dbm" = "yes" -a \
444 "$with_database_gdbm" = "yes"; then
445 (echo "$progname: Usage error:"
446 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
447 with the \`--$optname' option."
448 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
453 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
455 n | no | non | none ) new_sdefault=no ;;
456 a | al | all | both ) new_sdefault=yes ;;
458 native ) with_native_sound=yes ;;
459 nonative ) with_native_sound=no ;;
461 nas ) with_nas_sound=yes ;;
462 nonas ) with_nas_sound=no ;;
464 esd ) with_esd_sound=yes ;;
465 noesd ) with_esd_sound=no ;;
467 * ) bogus_sound=yes ;;
469 if test "$bogus_sound" -o \
470 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
471 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
472 (echo "$progname: Usage error:"
473 echo " " "Valid types for the \`--$optname' option are:
475 The default is to autodetect all sound support."
476 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
477 elif test -n "$new_sdefault" ; then
478 with_native_sound=$new_sdefault
479 with_nas_sound=$new_sdefault
480 with_esd_sound=$new_sdefault
481 new_sdefault= # reset this
489 xa | xaw ) val=xaw ;;
490 3 | 3d | xaw3d ) val=3d ;;
491 ne | nex | next | naxtaw) val=next ;;
492 9 | 95 | xaw95 ) val=95 ;;
493 xp | xpm | xawxpm ) val=xpm ;;
494 * ) (echo "$progname: Usage error:"
495 echo " " "The \`--$optname' option must have one of these values:
496 \`xaw', \`3d', \`next', \`95', or \`xpm'."
497 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
504 y | ye | yes ) val=yes ;;
505 n | no | non | none ) val=no ;;
506 x | xl | xli | xlib ) val=xlib ;;
507 m | mo | mot | moti | motif ) val=motif ;;
508 * ) (echo "$progname: Usage error:"
509 echo " " "The \`--$optname' option must have one of these values:
510 \`motif', \`xlib', \`yes', or \`no'."
511 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
520 file | dot ) val=file ;;
521 locking ) val=locking ;;
522 * ) (echo "$progname: Usage error:"
523 echo " " "The \`--$optname' option must have one of these values:
524 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
525 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
532 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
534 n | no | non | none ) new_default=no ;;
535 a | al | all ) new_default=yes ;;
537 extents ) error_check_extents=yes ;;
538 noextents ) error_check_extents=no ;;
540 typecheck ) error_check_typecheck=yes ;;
541 notypecheck ) error_check_typecheck=no ;;
543 bufpos ) error_check_bufpos=yes ;;
544 nobufpos ) error_check_bufpos=no ;;
546 gc ) error_check_gc=yes ;;
547 nogc ) error_check_gc=no ;;
549 malloc ) error_check_malloc=yes ;;
550 nomalloc ) error_check_malloc=no ;;
552 byte_code ) error_check_byte_code=yes ;;
553 nobyte_code ) error_check_byte_code=no ;;
555 glyphs ) error_check_glyphs=yes ;;
556 noglyphs ) error_check_glyphs=no ;;
558 * ) bogus_error_check=yes ;;
560 if test "$bogus_error_check" -o \
561 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
562 if test "$error_check_default" = yes ; then
563 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
565 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
567 (echo "$progname: Usage error:"
568 echo " " "Valid types for the \`--$optname' option are:
570 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
571 elif test -n "$new_default" ; then
572 error_check_extents=$new_default
573 error_check_typecheck=$new_default
574 error_check_bufpos=$new_default
575 error_check_gc=$new_default
576 error_check_malloc=$new_default
577 error_check_byte_code=$new_default
578 error_check_glyphs=$new_default
579 new_default= # reset this
586 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
587 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
588 archlibdir | docdir | package_path )
589 if test "$valomitted" = "yes"; then
590 if test "$#" = 0; then
591 (echo "$progname: Usage error:"
592 echo " " "The \`--$optname' option requires a value."
593 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
600 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
601 Defining EXEC_PREFIX_USER_DEFINED
603 cat >> confdefs.h <<\EOF
604 #define EXEC_PREFIX_USER_DEFINED 1
608 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
609 Defining LISPDIR_USER_DEFINED
611 cat >> confdefs.h <<\EOF
612 #define LISPDIR_USER_DEFINED 1
616 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
617 Defining SITELISPDIR_USER_DEFINED
619 cat >> confdefs.h <<\EOF
620 #define SITELISPDIR_USER_DEFINED 1
624 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
625 Defining MODULEDIR_USER_DEFINED
627 cat >> confdefs.h <<\EOF
628 #define MODULEDIR_USER_DEFINED 1
632 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
633 Defining ETCDIR_USER_DEFINED
635 cat >> confdefs.h <<\EOF
636 #define ETCDIR_USER_DEFINED 1
640 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
641 Defining INFODIR_USER_DEFINED
643 cat >> confdefs.h <<\EOF
644 #define INFODIR_USER_DEFINED 1
648 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
649 Defining INFOPATH_USER_DEFINED
651 cat >> confdefs.h <<\EOF
652 #define INFOPATH_USER_DEFINED 1
656 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
657 Defining PACKAGE_PATH_USER_DEFINED
659 cat >> confdefs.h <<\EOF
660 #define PACKAGE_PATH_USER_DEFINED 1
665 { test "$extra_verbose" = "yes" && cat << \EOF
666 Defining INFODIR_USER_DEFINED
668 cat >> confdefs.h <<\EOF
669 #define INFODIR_USER_DEFINED 1
673 { test "$extra_verbose" = "yes" && cat << \EOF
674 Defining LISPDIR_USER_DEFINED
676 cat >> confdefs.h <<\EOF
677 #define LISPDIR_USER_DEFINED 1
681 { test "$extra_verbose" = "yes" && cat << \EOF
682 Defining MODULEDIR_USER_DEFINED
684 cat >> confdefs.h <<\EOF
685 #define MODULEDIR_USER_DEFINED 1
689 { test "$extra_verbose" = "yes" && cat << \EOF
690 Defining ETCDIR_USER_DEFINED
692 cat >> confdefs.h <<\EOF
693 #define ETCDIR_USER_DEFINED 1
697 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
698 Defining DOCDIR_USER_DEFINED
700 cat >> confdefs.h <<\EOF
701 #define DOCDIR_USER_DEFINED 1
705 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
706 Defining ARCHLIBDIR_USER_DEFINED
708 cat >> confdefs.h <<\EOF
709 #define ARCHLIBDIR_USER_DEFINED 1
718 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
721 "with_scrollbars" | \
725 l | lu | luc | luci | lucid ) val=lucid ;;
726 m | mo | mot | moti | motif ) val=motif ;;
727 a | at | ath | athe | athen | athena ) val=athena ;;
728 n | no | non | none ) val=no ;;
729 y | ye | yes ) val=yes ;;
730 m | ms | msw ) val=msw ;;
731 * ) (echo "$progname: Usage error:"
732 echo " " "The \`--$optname' option must have one of these values:
733 \`lucid', \`motif', \`athena', \`yes', or \`no'."
734 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
739 "use_minimal_tagbits" | \
740 "use_indexed_lrecord_implementation" | \
742 "const_is_losing" | \
744 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
747 * ) (echo "$progname: Usage error:"
748 echo " " "Unrecognized option: $arg"
749 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
754 *-*-*) configuration="$arg" ;;
756 *) (echo "$progname: Usage error:"
757 echo " " "Unrecognized argument: $arg"
758 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
764 test -n "$cpp" && CPP="$cpp"
765 test -n "$cppflags" && CPPFLAGS="$cppflags"
766 test -n "$libs" && LIBS="$libs"
767 test -n "$ldflags" && LDFLAGS="$ldflags"
769 eval set x "$quoted_arguments"; shift
771 test "$extra_verbose" = "yes" && verbose=yes
773 test -n "$with_x" && with_x11="$with_x"
775 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
776 test "$with_system_malloc" = "default" && with_system_malloc=yes
781 if test "$with_cde $with_tooltalk" = "yes no"; then
782 (echo "$progname: Usage error:"
783 echo " " "--with-cde requires --with-tooltalk"
784 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
785 elif test "$with_tooltalk" = "no" ; then with_cde=no
786 elif test "$with_cde" = "yes"; then with_tooltalk=yes
793 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
794 if test -f "$dir/src/lisp.h" -a \
795 -f "$dir/lisp/version.el" ; then
800 if test -z "$srcdir" ; then
801 (echo "$progname: Usage error:"
802 echo " " "Neither the current directory nor its parent seem to
803 contain the XEmacs sources. If you do not want to build XEmacs in its
804 source tree, you should run \`$progname' in the directory in which
805 you wish to build XEmacs, using the \`--srcdir' option to say where the
806 sources may be found."
807 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
812 if test ! -f "$srcdir/src/lisp.h" -o \
813 ! -f "$srcdir/lisp/version.el" ; then
814 (echo "$progname: Usage error:"
815 echo " " "The directory specified with the \`--srcdir' option,
816 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
817 either run the \`$progname' script at the top of the XEmacs source
818 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
819 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
824 if test -z "$configuration"; then
825 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
826 if test -z "$configuration"; then
827 (echo "$progname: Usage error:"
828 echo " " "XEmacs has not been ported to this host type.
829 Try explicitly specifying the CONFIGURATION when rerunning configure."
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
834 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
835 echo "configure:836: checking whether ln -s works" >&5
838 if ln -s X conftestdata 2>/dev/null
841 ac_cv_prog_LN_S="ln -s"
845 LN_S="$ac_cv_prog_LN_S"
846 if test "$ac_cv_prog_LN_S" = "ln -s"; then
847 echo "$ac_t""yes" 1>&6
849 echo "$ac_t""no" 1>&6
853 for dir in lisp etc man info tests; do
854 if test ! -d "$dir" ; then
855 echo Making symbolic link to "$srcdir/$dir"
856 ${LN_S} "$srcdir/$dir" "$dir"
861 absolute_pwd="`pwd`";
862 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
864 else blddir="$absolute_pwd"; if test -d "/net"; then
865 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
866 blddir=`echo "$blddir" | \
867 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
874 . ) srcdir="$blddir" ;;
875 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
876 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
877 srcdir=`echo "$srcdir" | \
878 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
882 if test `pwd` != `sh -c cd $srcdir && pwd` \
883 && test -f "$srcdir/src/config.h"; then
884 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
885 echo " as a build directory right now; it has been configured in its own"
886 echo " right. To configure in another directory as well, you MUST"
887 echo " use GNU make. If you do not have GNU make, then you must"
888 echo " now do \`make distclean' in $srcdir,"
889 echo " and then run $progname again.") >&2
890 extrasub='/^VPATH[ ]*=/c\
896 vpath %.in $(srcdir)'
899 . "$srcdir/version.sh" || exit 1;
900 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
901 : "${extra_verbose=$beta}"
902 version="${emacs_major_version}.${emacs_minor_version}"
903 { test "$extra_verbose" = "yes" && cat << EOF
904 Defining EMACS_MAJOR_VERSION = $emacs_major_version
906 cat >> confdefs.h <<EOF
907 #define EMACS_MAJOR_VERSION $emacs_major_version
911 { test "$extra_verbose" = "yes" && cat << EOF
912 Defining EMACS_MINOR_VERSION = $emacs_minor_version
914 cat >> confdefs.h <<EOF
915 #define EMACS_MINOR_VERSION $emacs_minor_version
919 if test -n "$emacs_beta_version" ; then
920 if test "$beta" = "yes"; then
921 version="${version}-b${emacs_beta_version}"
922 { test "$extra_verbose" = "yes" && cat << EOF
923 Defining EMACS_BETA_VERSION = $emacs_beta_version
925 cat >> confdefs.h <<EOF
926 #define EMACS_BETA_VERSION $emacs_beta_version
931 version="${version}.${emacs_beta_version}"
932 { test "$extra_verbose" = "yes" && cat << EOF
933 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
935 cat >> confdefs.h <<EOF
936 #define EMACS_PATCH_LEVEL $emacs_beta_version
942 { test "$extra_verbose" = "yes" && cat << EOF
943 Defining XEMACS_CODENAME = "$xemacs_codename"
945 cat >> confdefs.h <<EOF
946 #define XEMACS_CODENAME "$xemacs_codename"
950 { test "$extra_verbose" = "yes" && cat << EOF
951 Defining EMACS_VERSION = "$version"
953 cat >> confdefs.h <<EOF
954 #define EMACS_VERSION "$version"
959 if test "$with_infodock" = "yes"; then
960 if test ! -f ../../ID-INSTALL; then
961 echo "Cannot build InfoDock without InfoDock sources"
966 if test "$with_infodock" = "yes"; then
967 { test "$extra_verbose" = "yes" && cat << EOF
968 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
970 cat >> confdefs.h <<EOF
971 #define INFODOCK_MAJOR_VERSION $infodock_major_version
975 { test "$extra_verbose" = "yes" && cat << EOF
976 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
978 cat >> confdefs.h <<EOF
979 #define INFODOCK_MINOR_VERSION $infodock_minor_version
983 { test "$extra_verbose" = "yes" && cat << EOF
984 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
986 cat >> confdefs.h <<EOF
987 #define INFODOCK_BUILD_VERSION $infodock_build_version
991 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
993 CPPFLAGS="$CPPFLAGS -DINFODOCK"
998 { test "$extra_verbose" = "yes" && cat << EOF
999 Defining EMACS_PROGNAME = "$PROGNAME"
1001 cat >> confdefs.h <<EOF
1002 #define EMACS_PROGNAME "$PROGNAME"
1007 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1008 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1009 Defining ERROR_CHECK_EXTENTS
1011 cat >> confdefs.h <<\EOF
1012 #define ERROR_CHECK_EXTENTS 1
1016 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1017 Defining ERROR_CHECK_TYPECHECK
1019 cat >> confdefs.h <<\EOF
1020 #define ERROR_CHECK_TYPECHECK 1
1024 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1025 Defining ERROR_CHECK_BUFPOS
1027 cat >> confdefs.h <<\EOF
1028 #define ERROR_CHECK_BUFPOS 1
1032 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1033 Defining ERROR_CHECK_GC
1035 cat >> confdefs.h <<\EOF
1036 #define ERROR_CHECK_GC 1
1040 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1041 Defining ERROR_CHECK_MALLOC
1043 cat >> confdefs.h <<\EOF
1044 #define ERROR_CHECK_MALLOC 1
1048 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1049 Defining ERROR_CHECK_BYTE_CODE
1051 cat >> confdefs.h <<\EOF
1052 #define ERROR_CHECK_BYTE_CODE 1
1056 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1057 Defining ERROR_CHECK_GLYPHS
1059 cat >> confdefs.h <<\EOF
1060 #define ERROR_CHECK_GLYPHS 1
1064 if test "${debug:=$beta}" = "yes"; then
1065 use_assertions=yes memory_usage_stats=yes
1066 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1067 echo " xemacs will be linked with \"debug.o\""
1069 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1070 echo " xemacs will be linked with \"tests.o\""
1072 { test "$extra_verbose" = "yes" && cat << \EOF
1073 Defining DEBUG_XEMACS
1075 cat >> confdefs.h <<\EOF
1076 #define DEBUG_XEMACS 1
1081 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1082 Defining USE_ASSERTIONS
1084 cat >> confdefs.h <<\EOF
1085 #define USE_ASSERTIONS 1
1089 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1090 Defining MEMORY_USAGE_STATS
1092 cat >> confdefs.h <<\EOF
1093 #define MEMORY_USAGE_STATS 1
1099 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1100 echo "configure:1101: checking "host system type"" >&5
1101 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1102 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1103 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1104 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1105 echo "$ac_t""$configuration" 1>&6
1113 case "$canonical" in
1114 sparc-*-* ) machine=sparc ;;
1115 alpha*-*-* ) machine=alpha ;;
1116 vax-*-* ) machine=vax ;;
1117 mips-dec-* ) machine=pmax ;;
1118 mips-sgi-irix6* ) machine=iris6d ;;
1119 mips-sgi-* ) machine=iris4d ;;
1120 mips*-linux ) machine=mips ;;
1121 romp-ibm-* ) machine=ibmrt ;;
1122 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1123 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1124 powerpc*-* ) machine=powerpc ;;
1125 hppa-*-* ) machine=hp800 ;;
1126 m88k-dg-* ) machine=aviion ;;
1127 m68*-sony-* ) machine=news ;;
1128 mips-sony-* ) machine=news-risc ;;
1129 clipper-* ) machine=clipper ;;
1130 arm* ) machine=arm ;;
1131 ns32k-* ) machine=ns32000 ;;
1134 case "$canonical" in
1135 *-*-linux* ) opsys=linux ;;
1136 *-*-netbsd* ) opsys=netbsd ;;
1137 *-*-openbsd* ) opsys=openbsd ;;
1138 *-*-nextstep* ) opsys=nextstep ;;
1139 *-*-vms ) opsys=vms ;;
1141 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1142 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1143 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1144 *-dec-osf3* ) opsys=decosf3-1 ;;
1145 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1147 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1148 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1149 *-*-ultrix* ) opsys=ultrix4-3 ;;
1151 *-*-aix3.1* ) opsys=aix3-1 ;;
1152 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1153 *-*-aix3* ) opsys=aix3-2 ;;
1154 *-*-aix4.0* ) opsys=aix4 ;;
1155 *-*-aix4.1* ) opsys=aix4-1 ;;
1156 *-*-aix4* ) opsys=aix4-2 ;;
1158 *-gnu* ) opsys=gnu ;;
1159 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1160 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1161 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1162 *-*-aos4.2 ) opsys=bsd4-2 ;;
1163 *-*-aos* ) opsys=bsd4-3 ;;
1164 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1165 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1166 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1167 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1168 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1169 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1170 if test -z "$NON_GNU_CPP" ; then
1171 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1172 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1176 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1177 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1180 case "$canonical" in
1183 case "$canonical" in
1184 i[3-9]86-*-netbsd*) machine=intel386 ;;
1185 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1186 machine=hp9000s300 ;;
1187 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1188 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1193 case "${canonical}" in
1194 i386-*-openbsd*) machine=intel386 ;;
1195 m68k-*-openbsd*) machine=hp9000s300 ;;
1196 mipsel-*-openbsd*) machine=pmax ;;
1200 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1201 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1203 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1204 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1206 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1208 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1210 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1212 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1214 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1216 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1217 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1218 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1221 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1223 *-convex-bsd* | *-convex-convexos* )
1224 machine=convex opsys=bsd4-3
1225 NON_GNU_CPP="cc -E -P"
1228 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1230 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1231 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1232 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1233 m88k-dg-dgux* ) opsys=dgux ;;
1235 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1236 m88k-motorola-sysv4* )
1237 machine=delta88k opsys=usg5-4-2
1239 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1241 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1242 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1244 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1246 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1247 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1248 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1251 case "`uname -r`" in
1252 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1253 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1255 NON_GNU_CPP="/lib/cpp"
1257 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1258 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1260 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1262 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1265 case "$canonical" in
1266 m68* ) machine=hp9000s300 ;;
1267 hppa* ) machine=hp800 ;;
1270 case "$canonical" in
1271 *-hp-hpux7* ) opsys=hpux ;;
1272 *-hp-hpux8* ) opsys=hpux8 ;;
1273 *-hp-hpux9* ) opsys=hpux9 ;;
1274 *-hp-hpux10* ) opsys=hpux10 ;;
1275 *-hp-hpux11* ) opsys=hpux11 ;;
1279 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1280 echo " xemacs will be linked with \"strcat.o\""
1283 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1284 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1285 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1287 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1290 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1291 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1293 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1294 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1295 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1296 romp-ibm-aos* ) opsys=bsd4-3 ;;
1297 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1298 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1300 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1301 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1303 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1305 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1307 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1309 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1311 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1313 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1315 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1317 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1319 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1321 mips-mips-usg* ) machine=mips4 ;;
1324 NON_GNU_CC="cc -systype bsd43"
1325 NON_GNU_CPP="cc -systype bsd43 -E"
1326 case "$canonical" in
1327 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1328 mips-mips-riscos5* ) opsys=riscos5 ;;
1331 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1332 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1334 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1336 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1338 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1339 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1341 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1343 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1345 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1347 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1349 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1350 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1352 mips-siemens-sysv* | mips-sni-sysv*)
1353 machine=mips-siemens opsys=usg5-4
1354 NON_GNU_CC=/usr/ccs/bin/cc
1355 NON_GNU_CPP=/usr/ccs/lib/cpp
1360 NON_GNU_CC=/usr/ccs/bin/cc
1361 NON_GNU_CPP=/usr/ccs/lib/cpp
1364 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1365 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1366 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1367 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1368 mips-sgi-irix6* ) opsys=irix6-0 ;;
1369 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1370 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1371 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1372 mips-sgi-irix* ) opsys=irix5-0 ;;
1374 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1375 *-sony-news* ) opsys=newsos5 ;;
1377 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1379 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1380 case "$canonical" in
1381 m68*-sunos1* ) machine=sun1 ;;
1382 m68*-sunos2* ) machine=sun2 ;;
1383 m68* ) machine=sun3 ;;
1384 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1385 i*86-*-* ) machine=intel386 ;;
1386 rs6000* ) machine=rs6000 ;;
1389 case "$canonical" in *-sunos5*)
1390 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1393 case "$canonical" in
1395 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1398 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1402 case "$canonical" in
1405 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1406 { test "$extra_verbose" = "yes" && cat << EOF
1407 Defining OS_RELEASE = $os_release
1409 cat >> confdefs.h <<EOF
1410 #define OS_RELEASE $os_release
1415 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1416 *-sunos4.0* ) opsys=sunos4-0 ;;
1417 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1418 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1419 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1420 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1421 *-mach* ) opsys=mach-bsd4-3 ;;
1425 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1427 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1430 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1432 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1433 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1435 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1437 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1439 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1440 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1442 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1444 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1447 case "$canonical" in
1448 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1449 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1450 *-mach* ) opsys=mach-bsd4-3 ;;
1454 ns16k-whitechapel-* ) machine=mg1 ;;
1456 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1460 case "$canonical" in
1461 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1462 *-isc2.2* ) opsys=isc2-2 ;;
1463 *-isc4.0* ) opsys=isc4-0 ;;
1464 *-isc4.* ) opsys=isc4-1
1465 GCC_TEST_OPTIONS=-posix
1466 NON_GCC_TEST_OPTIONS=-Xp
1468 *-isc* ) opsys=isc3-0 ;;
1469 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1470 *-esix* ) opsys=esix ;;
1471 *-mach* ) opsys=mach-bsd4-3 ;;
1472 *-xenix* ) opsys=xenix ;;
1473 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1474 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1475 *-bsdi4* ) opsys=bsdos4 ;;
1476 *-bsdi3* ) opsys=bsdos3 ;;
1477 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1478 *-bsdi2* ) opsys=bsdos2 ;;
1479 *-sco3.2v5* ) opsys=sco5 ;
1480 if test "$dynamic" = "yes" ; then
1481 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1483 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1485 *-sysv5* ) opsys=sco7 ;;
1486 *-386bsd* ) opsys=386bsd ;;
1487 *-freebsd* ) opsys=freebsd ;;
1488 *-nextstep* ) opsys=nextstep ;;
1489 *-pc-cygwin* ) opsys=cygwin32 ;;
1490 *-pc-mingw* ) opsys=mingw32 ;
1491 test -z "$with_tty" && with_tty="no";;
1495 m68k-*-linux* ) machine=m68k opsys=linux ;;
1499 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1500 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1502 if test -r "${srcdir}/src/m/${machine}.h"; then
1503 machfile="m/${machine}.h"
1504 { test "$extra_verbose" = "yes" && cat << EOF
1505 Defining config_machfile = "$machfile"
1507 cat >> confdefs.h <<EOF
1508 #define config_machfile "$machfile"
1513 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1514 echo "Using configure-time autodetection only."
1517 if test -r "${srcdir}/src/s/${opsys}.h"; then
1518 opsysfile="s/${opsys}.h"
1519 { test "$extra_verbose" = "yes" && cat << EOF
1520 Defining config_opsysfile = "$opsysfile"
1522 cat >> confdefs.h <<EOF
1523 #define config_opsysfile "$opsysfile"
1528 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1529 echo "Using configure-time autodetection only."
1533 if test -z "$dynamic"; then
1535 hpux* | sunos4* ) dynamic=no ;;
1539 if test "$dynamic" = "yes"; then
1541 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1542 decosf* ) ld_call_shared="-call_shared" ;;
1544 else case "$opsys" in
1546 echo "Static linking is not supported on Solaris 2."
1547 echo "Rerun configure without specifying --dynamic=no."
1549 linux ) ld_call_shared="-Bstatic" ;;
1550 decosf* ) ld_call_shared="-non_shared" ;;
1554 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1556 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1557 { test "$extra_verbose" = "yes" && cat << EOF
1558 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1560 cat >> confdefs.h <<EOF
1561 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1567 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1568 if test "$with_workshop $with_tooltalk" = "yes no"; then
1569 (echo "$progname: Usage error:"
1570 echo " " "--with-workshop requires --with-tooltalk"
1571 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1572 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1573 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1576 if test "$with_workshop" = "yes"; then
1577 { test "$extra_verbose" = "yes" && cat << \EOF
1580 cat >> confdefs.h <<\EOF
1585 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1586 echo " xemacs will be linked with \"sunpro.o\""
1590 if test "$with_clash_detection" != "no"; then
1591 { test "$extra_verbose" = "yes" && cat << \EOF
1592 Defining CLASH_DETECTION
1594 cat >> confdefs.h <<\EOF
1595 #define CLASH_DETECTION 1
1599 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1600 echo " xemacs will be linked with \"filelock.o\""
1604 test -n "$compiler" && CC="$compiler"
1605 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1608 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1609 if test "${CFLAGS-unset}" != unset
1610 then cflags_specified=yes;
1611 else cflags_specified=no;
1614 xe_save_CFLAGS="$CFLAGS"
1616 # Extract the first word of "gcc", so it can be a program name with args.
1617 set dummy gcc; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1626 for ac_dir in $ac_dummy; do
1627 test -z "$ac_dir" && ac_dir=.
1628 if test -f $ac_dir/$ac_word; then
1636 if test -n "$CC"; then
1637 echo "$ac_t""$CC" 1>&6
1639 echo "$ac_t""no" 1>&6
1642 if test -z "$CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_word" >&5
1648 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test.
1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1654 for ac_dir in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1658 ac_prog_rejected=yes
1666 if test $ac_prog_rejected = yes; then
1667 # We found a bogon in the path, so make sure we never use it.
1668 set dummy $ac_cv_prog_CC
1670 if test $# -gt 0; then
1671 # We chose a different compiler from the bogus one.
1672 # However, it has the same basename, so the bogon will be chosen
1673 # first if we set CC to just the basename; use the full file name.
1675 set dummy "$ac_dir/$ac_word" "$@"
1682 if test -n "$CC"; then
1683 echo "$ac_t""$CC" 1>&6
1685 echo "$ac_t""no" 1>&6
1688 if test -z "$CC"; then
1689 case "`uname -s`" in
1691 # Extract the first word of "cl", so it can be a program name with args.
1692 set dummy cl; ac_word=$2
1693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1694 echo "configure:1695: checking for $ac_word" >&5
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1701 for ac_dir in $ac_dummy; do
1702 test -z "$ac_dir" && ac_dir=.
1703 if test -f $ac_dir/$ac_word; then
1711 if test -n "$CC"; then
1712 echo "$ac_t""$CC" 1>&6
1714 echo "$ac_t""no" 1>&6
1719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1726 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1727 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1728 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1729 ac_cpp='$CPP '"$xe_cppflags"
1730 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1731 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1734 cat > conftest.$ac_ext << EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1742 ac_cv_prog_cc_works=yes
1743 # If we can't run a trivial program, we are probably using a cross compiler.
1744 if (./conftest; exit) 2>/dev/null; then
1745 ac_cv_prog_cc_cross=no
1747 ac_cv_prog_cc_cross=yes
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1752 ac_cv_prog_cc_works=no
1756 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1757 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1758 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1759 ac_cpp='$CPP '"$xe_cppflags"
1760 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1761 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1765 if test $ac_cv_prog_cc_works = no; then
1766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1769 echo "configure:1770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1771 cross_compiling=$ac_cv_prog_cc_cross
1773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether we are using GNU C" >&5
1776 cat > conftest.c <<EOF
1781 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1787 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1789 if test $ac_cv_prog_gcc = yes; then
1795 ac_test_CFLAGS="${CFLAGS+set}"
1796 ac_save_CFLAGS="$CFLAGS"
1798 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1799 echo "configure:1800: checking whether ${CC-cc} accepts -g" >&5
1801 echo 'void f(){}' > conftest.c
1802 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1810 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1811 if test "$ac_test_CFLAGS" = set; then
1812 CFLAGS="$ac_save_CFLAGS"
1813 elif test $ac_cv_prog_cc_g = yes; then
1814 if test "$GCC" = yes; then
1820 if test "$GCC" = yes; then
1827 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2
1831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1832 echo "configure:1833: checking for $ac_word" >&5
1834 if test -n "$CC"; then
1835 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1839 for ac_dir in $ac_dummy; do
1840 test -z "$ac_dir" && ac_dir=.
1841 if test -f $ac_dir/$ac_word; then
1849 if test -n "$CC"; then
1850 echo "$ac_t""$CC" 1>&6
1852 echo "$ac_t""no" 1>&6
1855 if test -z "$CC"; then
1856 # Extract the first word of "cc", so it can be a program name with args.
1857 set dummy cc; ac_word=$2
1858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_word" >&5
1861 if test -n "$CC"; then
1862 ac_cv_prog_CC="$CC" # Let the user override the test.
1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1867 for ac_dir in $ac_dummy; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
1870 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1871 ac_prog_rejected=yes
1879 if test $ac_prog_rejected = yes; then
1880 # We found a bogon in the path, so make sure we never use it.
1881 set dummy $ac_cv_prog_CC
1883 if test $# -gt 0; then
1884 # We chose a different compiler from the bogus one.
1885 # However, it has the same basename, so the bogon will be chosen
1886 # first if we set CC to just the basename; use the full file name.
1888 set dummy "$ac_dir/$ac_word" "$@"
1895 if test -n "$CC"; then
1896 echo "$ac_t""$CC" 1>&6
1898 echo "$ac_t""no" 1>&6
1901 if test -z "$CC"; then
1902 case "`uname -s`" in
1904 # Extract the first word of "cl", so it can be a program name with args.
1905 set dummy cl; ac_word=$2
1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_word" >&5
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1914 for ac_dir in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir=.
1916 if test -f $ac_dir/$ac_word; then
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1927 echo "$ac_t""no" 1>&6
1932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1939 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1940 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1941 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1942 ac_cpp='$CPP '"$xe_cppflags"
1943 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1944 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1947 cat > conftest.$ac_ext << EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1955 ac_cv_prog_cc_works=yes
1956 # If we can't run a trivial program, we are probably using a cross compiler.
1957 if (./conftest; exit) 2>/dev/null; then
1958 ac_cv_prog_cc_cross=no
1960 ac_cv_prog_cc_cross=yes
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1965 ac_cv_prog_cc_works=no
1969 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1970 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1971 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1972 ac_cpp='$CPP '"$xe_cppflags"
1973 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1974 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1978 if test $ac_cv_prog_cc_works = no; then
1979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1982 echo "configure:1983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1984 cross_compiling=$ac_cv_prog_cc_cross
1986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether we are using GNU C" >&5
1989 cat > conftest.c <<EOF
1994 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2000 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2002 if test $ac_cv_prog_gcc = yes; then
2008 ac_test_CFLAGS="${CFLAGS+set}"
2009 ac_save_CFLAGS="$CFLAGS"
2011 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether ${CC-cc} accepts -g" >&5
2014 echo 'void f(){}' > conftest.c
2015 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2023 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2024 if test "$ac_test_CFLAGS" = set; then
2025 CFLAGS="$ac_save_CFLAGS"
2026 elif test $ac_cv_prog_cc_g = yes; then
2027 if test "$GCC" = yes; then
2033 if test "$GCC" = yes; then
2040 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2042 # Extract the first word of "gcc", so it can be a program name with args.
2043 set dummy gcc; ac_word=$2
2044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2045 echo "configure:2046: checking for $ac_word" >&5
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2052 for ac_dir in $ac_dummy; do
2053 test -z "$ac_dir" && ac_dir=.
2054 if test -f $ac_dir/$ac_word; then
2062 if test -n "$CC"; then
2063 echo "$ac_t""$CC" 1>&6
2065 echo "$ac_t""no" 1>&6
2068 if test -z "$CC"; then
2069 # Extract the first word of "cc", so it can be a program name with args.
2070 set dummy cc; ac_word=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2080 for ac_dir in $ac_dummy; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2083 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2084 ac_prog_rejected=yes
2092 if test $ac_prog_rejected = yes; then
2093 # We found a bogon in the path, so make sure we never use it.
2094 set dummy $ac_cv_prog_CC
2096 if test $# -gt 0; then
2097 # We chose a different compiler from the bogus one.
2098 # However, it has the same basename, so the bogon will be chosen
2099 # first if we set CC to just the basename; use the full file name.
2101 set dummy "$ac_dir/$ac_word" "$@"
2108 if test -n "$CC"; then
2109 echo "$ac_t""$CC" 1>&6
2111 echo "$ac_t""no" 1>&6
2114 if test -z "$CC"; then
2115 case "`uname -s`" in
2117 # Extract the first word of "cl", so it can be a program name with args.
2118 set dummy cl; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2122 if test -n "$CC"; then
2123 ac_cv_prog_CC="$CC" # Let the user override the test.
2125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2127 for ac_dir in $ac_dummy; do
2128 test -z "$ac_dir" && ac_dir=.
2129 if test -f $ac_dir/$ac_word; then
2137 if test -n "$CC"; then
2138 echo "$ac_t""$CC" 1>&6
2140 echo "$ac_t""no" 1>&6
2145 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2148 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2149 echo "configure:2150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2152 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2153 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2154 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2155 ac_cpp='$CPP '"$xe_cppflags"
2156 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2157 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2160 cat > conftest.$ac_ext << EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2168 ac_cv_prog_cc_works=yes
2169 # If we can't run a trivial program, we are probably using a cross compiler.
2170 if (./conftest; exit) 2>/dev/null; then
2171 ac_cv_prog_cc_cross=no
2173 ac_cv_prog_cc_cross=yes
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2178 ac_cv_prog_cc_works=no
2182 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2183 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2184 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2185 ac_cpp='$CPP '"$xe_cppflags"
2186 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2187 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2190 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2191 if test $ac_cv_prog_cc_works = no; then
2192 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2194 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2195 echo "configure:2196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2196 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2197 cross_compiling=$ac_cv_prog_cc_cross
2199 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether we are using GNU C" >&5
2202 cat > conftest.c <<EOF
2207 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2213 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2215 if test $ac_cv_prog_gcc = yes; then
2221 ac_test_CFLAGS="${CFLAGS+set}"
2222 ac_save_CFLAGS="$CFLAGS"
2224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2225 echo "configure:2226: checking whether ${CC-cc} accepts -g" >&5
2227 echo 'void f(){}' > conftest.c
2228 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2237 if test "$ac_test_CFLAGS" = set; then
2238 CFLAGS="$ac_save_CFLAGS"
2239 elif test $ac_cv_prog_cc_g = yes; then
2240 if test "$GCC" = yes; then
2246 if test "$GCC" = yes; then
2254 CFLAGS="$xe_save_CFLAGS"
2257 test -n "$CPP" -a -d "$CPP" && CPP=
2259 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2261 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2262 echo "configure:2263: checking how to run the C preprocessor" >&5
2263 # On Suns, sometimes $CPP names a directory.
2264 if test -n "$CPP" && test -d "$CPP"; then
2267 if test -z "$CPP"; then
2269 # This must be in double quotes, not single quotes, because CPP may get
2270 # substituted into the Makefile and "${CC-cc}" will confuse make.
2272 # On the NeXT, cc -E runs the code through the compiler's parser,
2273 # not just through cpp.
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2281 { (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283 if test -z "$ac_err"; then
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 CPP="${CC-cc} -E -traditional-cpp"
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2298 { (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2300 if test -z "$ac_err"; then
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2307 CPP="${CC-cc} -nologo -E"
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2331 ac_cv_prog_CPP="$CPP"
2332 CPP="$ac_cv_prog_CPP"
2334 ac_cv_prog_CPP="$CPP"
2336 echo "$ac_t""$CPP" 1>&6
2340 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2341 echo "configure:2342: checking for AIX" >&5
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2351 egrep "yes" >/dev/null 2>&1; then
2353 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2354 Defining _ALL_SOURCE
2356 cat >> confdefs.h <<\EOF
2357 #define _ALL_SOURCE 1
2363 echo "$ac_t""no" 1>&6
2369 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2370 echo "configure:2371: checking for GNU libc" >&5
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <features.h>
2377 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2378 #error Not a GNU libc system :-(
2379 ******* ======= ******** &&&&&&&&
2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2394 echo "$ac_t""$have_glibc" 1>&6
2395 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2396 Defining _GNU_SOURCE
2398 cat >> confdefs.h <<\EOF
2399 #define _GNU_SOURCE 1
2406 { test "$extra_verbose" = "yes" && cat << \EOF
2407 Defining __EXTENSIONS__
2409 cat >> confdefs.h <<\EOF
2410 #define __EXTENSIONS__ 1
2414 if test "$os_release" -ge 55; then
2415 { test "$extra_verbose" = "yes" && cat << \EOF
2416 Defining _XOPEN_SOURCE = 500
2418 cat >> confdefs.h <<\EOF
2419 #define _XOPEN_SOURCE 500
2423 { test "$extra_verbose" = "yes" && cat << \EOF
2424 Defining _XOPEN_SOURCE_EXTENDED
2426 cat >> confdefs.h <<\EOF
2427 #define _XOPEN_SOURCE_EXTENDED 1
2433 { test "$extra_verbose" = "yes" && cat << \EOF
2434 Defining _POSIX_C_SOURCE = 199506L
2436 cat >> confdefs.h <<\EOF
2437 #define _POSIX_C_SOURCE 199506L
2441 { test "$extra_verbose" = "yes" && cat << \EOF
2442 Defining _XOPEN_SOURCE = 500
2444 cat >> confdefs.h <<\EOF
2445 #define _XOPEN_SOURCE 500
2449 { test "$extra_verbose" = "yes" && cat << \EOF
2450 Defining _XOPEN_SOURCE_EXTENDED
2452 cat >> confdefs.h <<\EOF
2453 #define _XOPEN_SOURCE_EXTENDED 1
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2464 #if defined __SUNPRO_C
2466 #elif defined __DECC
2468 #elif defined __USLC__ && defined __SCO_VERSION__
2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2480 echo "configure: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2483 case "$conftest_rc" in
2484 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2485 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2486 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2494 echo "Extracting information from the machine- and system-dependent headers..."
2496 tempcname="conftest.c"
2500 cat > $tempcname < confdefs.h
2501 cat >> $tempcname <<EOF
2503 #define C_SWITCH_SITE
2504 #define C_SWITCH_X_SITE
2505 #define LD_SWITCH_SITE
2506 #define LD_SWITCH_X_SITE
2507 #define LD_SWITCH_X_SITE_AUX
2508 #define OS_RELEASE $os_release
2510 #ifdef config_opsysfile
2511 #include "$srcdir/src/$opsysfile"
2514 #ifdef config_machfile
2515 #include "$srcdir/src/$machfile"
2518 #ifndef LIBS_MACHINE
2519 #define LIBS_MACHINE
2521 configure___ libs_machine=LIBS_MACHINE
2526 configure___ libs_system=LIBS_SYSTEM
2528 #ifndef LIBS_TERMCAP
2529 #define LIBS_TERMCAP
2531 configure___ libs_termcap=LIBS_TERMCAP
2533 #ifndef LIB_STANDARD
2534 #define LIB_STANDARD
2536 configure___ libs_standard=LIB_STANDARD
2539 #ifndef OBJECTS_MACHINE
2540 #define OBJECTS_MACHINE
2542 configure___ objects_machine=OBJECTS_MACHINE
2544 #ifndef OBJECTS_SYSTEM
2545 #define OBJECTS_SYSTEM
2547 configure___ objects_system=OBJECTS_SYSTEM
2550 #ifndef C_SWITCH_MACHINE
2551 #define C_SWITCH_MACHINE
2553 configure___ c_switch_machine=C_SWITCH_MACHINE
2555 #ifndef C_SWITCH_SYSTEM
2556 #define C_SWITCH_SYSTEM
2558 configure___ c_switch_system=C_SWITCH_SYSTEM
2561 #ifndef LD_SWITCH_MACHINE
2562 #define LD_SWITCH_MACHINE
2564 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2566 #ifndef LD_SWITCH_SYSTEM
2567 #define LD_SWITCH_SYSTEM
2569 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2573 #define UNEXEC "unexec.o"
2575 configure___ unexec=UNEXEC
2578 #ifndef LD_SWITCH_SHARED
2579 #define LD_SWITCH_SHARED "-c"
2581 configure___ ld_switch_shared=LD_SWITCH_SHARED
2584 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2585 configure___ ordinary_ld=ORDINARY_LD
2587 #ifdef ORDINARY_LINK
2588 #define LD ORDINARY_LD
2589 #else /* no ORDINARY LINK */
2590 #ifdef COFF_ENCAPSULATE
2591 #define LD "\$(CC) -nostdlib"
2592 #else /* not COFF_ENCAPSULATE */
2595 #else /* ! defined (LINKER) */
2597 #endif /* ! defined (LINKER) */
2598 #endif /* ! defined (COFF_ENCAPSULATE) */
2599 #endif /* not ORDINARY_LINK */
2605 configure___ lib_gcc=LIB_GCC
2607 #ifndef LD_TEXT_START_ADDR
2608 #define LD_TEXT_START_ADDR
2610 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2613 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2615 #ifdef COFF_ENCAPSULATE
2616 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2617 #else /* ! defined (COFF_ENCAPSULATE) */
2618 #define START_FILES "pre-crt0.o /lib/crt0.o"
2619 #endif /* ! defined (COFF_ENCAPSULATE) */
2620 #else /* ! defined (NO_REMAP) */
2621 #define START_FILES "ecrt0.o"
2622 #endif /* ! defined (NO_REMAP) */
2623 #endif /* no ORDINARY_LINK */
2627 configure___ start_files=START_FILES
2629 #ifdef ORDINARY_LINK
2630 configure___ ordinary_link=yes
2632 configure___ ordinary_link=no
2635 #ifdef SYSTEM_MALLOC
2636 configure___ system_malloc=yes
2638 configure___ system_malloc=no
2642 configure___ have_terminfo=yes
2644 configure___ have_terminfo=no
2647 #ifdef MAIL_USE_FLOCK
2648 configure___ mail_use_flock=yes
2650 configure___ mail_use_flock=no
2653 #ifdef MAIL_USE_LOCKF
2654 configure___ mail_use_lockf=yes
2656 configure___ mail_use_lockf=no
2659 #ifdef MAIL_USE_LOCKING
2660 configure___ mail_use_locking=yes
2662 configure___ mail_use_locking=no
2665 #ifdef HAVE_WIN32_PROCESSES
2666 configure___ win32_processes=yes
2668 configure___ win32_processes=no
2673 CPP=`eval "echo $CPP $CPPFLAGS"`
2674 eval `$CPP -Isrc $tempcname \
2675 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2679 if test "$pdump" = "yes"; then
2688 test "$extra_verbose" = "yes" && \
2689 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 ""
2691 case "$opsys" in mingw* | cygwin*)
2692 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2693 cygwin_include=`eval "dirname $cygwin_include"` ;
2694 cygwin_include="-I$cygwin_include/../include" ;
2695 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ;
2696 case "$opsys" in mingw*)
2697 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2702 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2705 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2707 if test "$__USLC__" = yes; then
2708 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2709 echo "configure:2710: checking for whether the -Kalloca compiler flag is needed" >&5
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2716 void *x = alloca(4);
2719 if { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2723 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2727 xe_save_c_switch_system="$c_switch_system"
2728 c_switch_system="$c_switch_system -Kalloca"
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2734 void *x = alloca(4);
2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2741 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2745 c_switch_system="$xe_save_c_switch_system"
2748 echo "$ac_t""$need_kalloca" 1>&6
2749 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2752 if test "$cflags_specified" = "no"; then
2753 if test "$GCC" = "yes"; then
2754 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2755 elif test "$__SUNPRO_C" = "yes"; then
2757 sol2 ) CFLAGS="-v -xO4" ;;
2758 sunos4* ) CFLAGS="-xO2";;
2760 elif test "$__DECC" = "yes"; then
2762 elif test "$CC" = "xlc"; then
2763 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2768 if test "$GCC" = "yes"; then
2769 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2770 echo "configure:2771: checking for buggy gcc versions" >&5
2771 GCC_VERSION=`$CC --version`
2772 case `uname -s`:`uname -m`:$GCC_VERSION in
2773 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2777 *-fno-schedule-insns*) ;;
2779 echo "$ac_t""yes" 1>&6
2780 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2781 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2782 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2788 Linux:alpha:egcs-2.91.*)
2789 echo "$ac_t""yes" 1>&6
2790 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2791 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2792 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2797 case "$GCC_VERSION" in
2800 *-fno-strength-reduce*) ;;
2802 echo "$ac_t""yes" 1>&6
2803 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2804 echo "configure: warning: -fno-strength-reduce." 1>&2
2805 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2811 *-fno-caller-saves*) ;;
2813 echo "$ac_t""yes" 1>&6
2814 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2815 echo "configure: warning: -fno-caller-saves." 1>&2
2816 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2823 echo "$ac_t""no" 1>&6
2827 if test "$GCC" = "yes"; then
2828 set x $ld_switch_system; shift; ld_switch_system=""
2829 while test -n "$1"; do
2831 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2832 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2834 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2840 if test "$GCC" = "yes"; then
2841 set x $ld_switch_machine; shift; ld_switch_machine=""
2842 while test -n "$1"; do
2844 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2845 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2847 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2853 if test "$GCC" = "yes"; then
2854 set x $LDFLAGS; shift; LDFLAGS=""
2855 while test -n "$1"; do
2857 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2858 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2860 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2866 if test "$GCC" = "yes"; then
2867 set x $ld_call_shared; shift; ld_call_shared=""
2868 while test -n "$1"; do
2870 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2871 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2873 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2879 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2880 echo " xemacs will be linked with \"$objects_machine\""
2882 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2883 echo " xemacs will be linked with \"$objects_system\""
2885 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2886 echo " xemacs will be linked with \"$unexec\""
2888 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2889 echo " xemacs will be linked with \"dumper.o\""
2892 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2893 echo "configure:2894: checking for dynodump" >&5
2894 if test "$unexec" != "unexsol2.o"; then
2895 echo "$ac_t""no" 1>&6
2897 echo "$ac_t""yes" 1>&6
2898 { test "$extra_verbose" = "yes" && cat << \EOF
2901 cat >> confdefs.h <<\EOF
2906 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2907 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2909 sparc ) dynodump_arch=sparc ;;
2910 *86* ) dynodump_arch=i386 ;;
2911 powerpc ) dynodump_arch=ppc ;;
2913 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
2917 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2919 if test "$unexec" = "unexaix.o"; then
2920 if test "$dynamic" = "no"; then
2921 start_flags="-Wl,-bnso,-bnodelcsect"
2922 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2923 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2924 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2926 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2927 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2930 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2931 echo "configure:2932: checking for terminateAndUnload in -lC" >&5
2932 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2934 xe_check_libs=" -lC "
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 /* Override any gcc2 internal prototype to avoid an error. */
2939 /* We use char because int might match the return type of a gcc2
2940 builtin and then its argument prototype would still apply. */
2941 char terminateAndUnload();
2944 terminateAndUnload()
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2949 eval "ac_cv_lib_$ac_lib_var=yes"
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 eval "ac_cv_lib_$ac_lib_var=no"
2959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2960 echo "$ac_t""yes" 1>&6
2961 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2963 echo "$ac_t""no" 1>&6
2968 elif test -n "$ld_text_start_addr"; then
2969 start_flags="-T $ld_text_start_addr -e __start"
2975 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2976 test -z "$linker" && linker='$(CC) -nostdlib'
2977 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2979 test "$GCC" != "yes" && lib_gcc=
2985 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2986 if test -n "$site_libraries"; then
2987 for arg in $site_libraries; do
2990 * ) test -d "$arg" || \
2991 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2994 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2998 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2999 if test -n "$site_includes"; then
3000 for arg in $site_includes; do
3003 * ) test -d "$arg" || \
3004 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3007 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3011 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3012 if test -n "$site_prefixes"; then
3013 for dir in $site_prefixes; do
3014 lib_dir="${dir}/lib"
3015 inc_dir="${dir}/include"
3016 if test ! -d "$dir"; then
3017 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3018 elif test ! -d "$lib_dir"; then
3019 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3021 if test -d "$inc_dir"; then
3022 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
3024 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
3030 for dir in "/usr/ccs/lib"; do
3031 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
3034 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3035 if test -n "$site_runtime_libraries"; then
3036 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3044 if test -n "$add_runtime_path"; then :;
3045 elif test "$dynamic" = "no"; then add_runtime_path=no
3046 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3047 else case "$opsys" in
3048 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3049 * ) add_runtime_path=no ;;
3053 if test "$add_runtime_path" = "yes"; then
3054 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3055 echo "configure:3056: checking "for runtime libraries flag"" >&5
3057 sol2 ) dash_r="-R" ;;
3058 decosf* | linux* | irix*) dash_r="-rpath " ;;
3061 for try_dash_r in "-R" "-R " "-rpath "; do
3062 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3064 if test "$GCC" = "yes"; then
3065 set x $xe_check_libs; shift; xe_check_libs=""
3066 while test -n "$1"; do
3068 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3069 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3071 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3086 dash_r="$try_dash_r"
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3093 test -n "$dash_r" && break
3096 if test -n "$dash_r";
3097 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3098 else echo "$ac_t""NONE" 1>&6
3102 xe_add_unique_runpath_dir='
3104 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3106 if test "$xe_add_p" = "yes"; then
3107 test -n "$runpath" && runpath="${runpath}:"
3108 runpath="${runpath}${xe_runpath_dir}"
3109 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3115 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3116 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3117 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3119 runpath="" runpath_dirs=""
3120 if test -n "$LD_RUN_PATH"; then
3121 runpath="$LD_RUN_PATH"
3122 elif test "$GCC" = "yes"; then
3123 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3124 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3125 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3126 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3127 case "$arg" in P,* | -L* | -R* )
3128 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3130 xe_runpath_dir="$dir"
3131 test "$xe_runpath_dir" != "/lib" -a \
3132 "$xe_runpath_dir" != "/usr/lib" -a \
3133 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3134 eval "$xe_add_unique_runpath_dir"
3139 ld_switch_run="$ld_switch_run_save"
3142 for arg in $ld_switch_site $ld_switch_x_site; do
3143 case "$arg" in -L*) {
3144 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3145 test "$xe_runpath_dir" != "/lib" -a \
3146 "$xe_runpath_dir" != "/usr/lib" -a \
3147 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3148 eval "$xe_add_unique_runpath_dir"
3151 if test "$opsys $need_motif" = "sol2 yes"; then
3152 xe_runpath_dir="/opt/SUNWdt/lib";
3153 eval "$xe_add_unique_runpath_dir";
3156 if test -n "$runpath"; then
3157 ld_switch_run="${dash_r}${runpath}"
3159 if test "$GCC" = "yes"; then
3160 set x $ld_switch_run; shift; ld_switch_run=""
3161 while test -n "$1"; do
3163 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3164 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3166 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3171 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3179 if test "$with_dlmalloc" != "no"; then
3184 after_morecore_hook_exists=yes
3185 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3186 echo "configure:3187: checking for malloc_set_state" >&5
3188 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 /* System header to define __stub macros and hopefully few prototypes,
3192 which can conflict with char malloc_set_state(); below. */
3194 /* Override any gcc2 internal prototype to avoid an error. */
3195 /* We use char because int might match the return type of a gcc2
3196 builtin and then its argument prototype would still apply. */
3197 char malloc_set_state();
3201 /* The GNU C library defines this for functions which it implements
3202 to always fail with ENOSYS. Some functions are actually named
3203 something starting with __ and the normal name is an alias. */
3204 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3214 eval "ac_cv_func_malloc_set_state=yes"
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3219 eval "ac_cv_func_malloc_set_state=no"
3223 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3224 echo "$ac_t""yes" 1>&6
3227 echo "$ac_t""no" 1>&6
3231 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3232 echo "configure:3233: checking whether __after_morecore_hook exists" >&5
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 extern void (* __after_morecore_hook)();
3238 __after_morecore_hook = 0
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3243 echo "$ac_t""yes" 1>&6
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3248 echo "$ac_t""no" 1>&6
3249 after_morecore_hook_exists=no
3252 if test "$system_malloc" = "yes" ; then
3255 - The GNU allocators don't work with this system configuration."
3256 elif test "$with_system_malloc" = "yes" ; then
3259 - User chose not to use GNU allocators."
3260 elif test "$with_debug_malloc" = "yes" ; then
3263 - User chose to use Debugging Malloc."
3266 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3268 - Using Doug Lea's new malloc from the GNU C Library."
3269 { test "$extra_verbose" = "yes" && cat << \EOF
3270 Defining DOUG_LEA_MALLOC
3272 cat >> confdefs.h <<\EOF
3273 #define DOUG_LEA_MALLOC 1
3277 if test "$after_morecore_hook_exists" = "no" ; then
3279 - Using Doug Lea's new malloc from the Linux C Library."
3280 { test "$extra_verbose" = "yes" && cat << \EOF
3281 Defining _NO_MALLOC_WARNING_
3283 cat >> confdefs.h <<\EOF
3284 #define _NO_MALLOC_WARNING_ 1
3294 # Extract the first word of "ranlib", so it can be a program name with args.
3295 set dummy ranlib; ac_word=$2
3296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_word" >&5
3299 if test -n "$RANLIB"; then
3300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3304 for ac_dir in $ac_dummy; do
3305 test -z "$ac_dir" && ac_dir=.
3306 if test -f $ac_dir/$ac_word; then
3307 ac_cv_prog_RANLIB="ranlib"
3312 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3314 RANLIB="$ac_cv_prog_RANLIB"
3315 if test -n "$RANLIB"; then
3316 echo "$ac_t""$RANLIB" 1>&6
3318 echo "$ac_t""no" 1>&6
3322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3323 if test -f $ac_dir/install-sh; then
3325 ac_install_sh="$ac_aux_dir/install-sh -c"
3327 elif test -f $ac_dir/install.sh; then
3329 ac_install_sh="$ac_aux_dir/install.sh -c"
3333 if test -z "$ac_aux_dir"; then
3334 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3336 ac_config_guess=$ac_aux_dir/config.guess
3337 ac_config_sub=$ac_aux_dir/config.sub
3338 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3340 # Find a good install program. We prefer a C program (faster),
3341 # so one script is as good as another. But avoid the broken or
3342 # incompatible versions:
3343 # SysV /etc/install, /usr/sbin/install
3344 # SunOS /usr/etc/install
3345 # IRIX /sbin/install
3347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3350 # ./install, which can be erroneously created by make from ./install.sh.
3351 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3352 echo "configure:3353: checking for a BSD compatible install" >&5
3353 if test -z "$INSTALL"; then
3355 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3356 for ac_dir in $PATH; do
3357 # Account for people who put trailing slashes in PATH elements.
3359 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3361 # OSF1 and SCO ODT 3.0 have their own names for install.
3362 # Don't use installbsd from OSF since it installs stuff as root
3364 for ac_prog in ginstall scoinst install; do
3365 if test -f $ac_dir/$ac_prog; then
3366 if test $ac_prog = install &&
3367 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3368 # AIX install. It has an incompatible calling convention.
3371 ac_cv_path_install="$ac_dir/$ac_prog -c"
3381 if test "${ac_cv_path_install+set}" = set; then
3382 INSTALL="$ac_cv_path_install"
3384 # As a last resort, use the slow shell script. We don't cache a
3385 # path for INSTALL within a source directory, because that will
3386 # break other packages using the cache if that directory is
3387 # removed, or if the path is relative.
3388 INSTALL="$ac_install_sh"
3391 echo "$ac_t""$INSTALL" 1>&6
3393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3394 # It thinks the first close brace ends the variable substitution.
3395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3399 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3401 for ac_prog in 'bison -y' byacc
3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy $ac_prog; ac_word=$2
3405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_word" >&5
3408 if test -n "$YACC"; then
3409 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3413 for ac_dir in $ac_dummy; do
3414 test -z "$ac_dir" && ac_dir=.
3415 if test -f $ac_dir/$ac_word; then
3416 ac_cv_prog_YACC="$ac_prog"
3422 YACC="$ac_cv_prog_YACC"
3423 if test -n "$YACC"; then
3424 echo "$ac_t""$YACC" 1>&6
3426 echo "$ac_t""no" 1>&6
3429 test -n "$YACC" && break
3431 test -n "$YACC" || YACC="yacc"
3434 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h utime.h
3436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3438 echo "configure:3439: checking for $ac_hdr" >&5
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3446 { (eval echo configure:3447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3448 if test -z "$ac_err"; then
3450 eval "ac_cv_header_$ac_safe=yes"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3456 eval "ac_cv_header_$ac_safe=no"
3459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3462 { test "$extra_verbose" = "yes" && cat << EOF
3465 cat >> confdefs.h <<EOF
3466 #define $ac_tr_hdr 1
3471 echo "$ac_t""no" 1>&6
3475 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3476 echo "configure:3477: checking for sys/wait.h that is POSIX.1 compatible" >&5
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 #include <sys/types.h>
3482 #include <sys/wait.h>
3484 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3487 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3492 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3495 if { (eval echo configure:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3497 ac_cv_header_sys_wait_h=yes
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3502 ac_cv_header_sys_wait_h=no
3506 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3507 if test $ac_cv_header_sys_wait_h = yes; then
3508 { test "$extra_verbose" = "yes" && cat << \EOF
3509 Defining HAVE_SYS_WAIT_H
3511 cat >> confdefs.h <<\EOF
3512 #define HAVE_SYS_WAIT_H 1
3518 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3519 echo "configure:3520: checking for ANSI C header files" >&5
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3530 { (eval echo configure:3531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3532 if test -z "$ac_err"; then
3534 ac_cv_header_stdc=yes
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 ac_cv_header_stdc=no
3544 if test $ac_cv_header_stdc = yes; then
3545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552 egrep "memchr" >/dev/null 2>&1; then
3556 ac_cv_header_stdc=no
3562 if test $ac_cv_header_stdc = yes; then
3563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 egrep "free" >/dev/null 2>&1; then
3574 ac_cv_header_stdc=no
3580 if test $ac_cv_header_stdc = yes; then
3581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3586 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3587 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3589 int main () { int i; for (i = 0; i < 256; i++)
3590 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3602 ac_cv_header_stdc=no
3607 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3608 if test $ac_cv_header_stdc = yes; then
3609 { test "$extra_verbose" = "yes" && cat << \EOF
3610 Defining STDC_HEADERS
3612 cat >> confdefs.h <<\EOF
3613 #define STDC_HEADERS 1
3619 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3620 echo "configure:3621: checking whether time.h and sys/time.h may both be included" >&5
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <sys/types.h>
3626 #include <sys/time.h>
3632 if { (eval echo configure:3633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3634 ac_cv_header_time=yes
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3639 ac_cv_header_time=no
3643 echo "$ac_t""$ac_cv_header_time" 1>&6
3644 if test $ac_cv_header_time = yes; then
3645 { test "$extra_verbose" = "yes" && cat << \EOF
3646 Defining TIME_WITH_SYS_TIME
3648 cat >> confdefs.h <<\EOF
3649 #define TIME_WITH_SYS_TIME 1
3655 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3656 echo "configure:3657: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3658 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3661 #include <sys/types.h>
3663 /* NetBSD declares sys_siglist in unistd.h. */
3664 #ifdef HAVE_UNISTD_H
3668 char *msg = *(sys_siglist + 1);
3671 if { (eval echo configure:3672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673 ac_cv_decl_sys_siglist=yes
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3678 ac_cv_decl_sys_siglist=no
3682 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3683 if test $ac_cv_decl_sys_siglist = yes; then
3684 { test "$extra_verbose" = "yes" && cat << \EOF
3685 Defining SYS_SIGLIST_DECLARED
3687 cat >> confdefs.h <<\EOF
3688 #define SYS_SIGLIST_DECLARED 1
3695 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3696 echo "configure:3697: checking for struct utimbuf" >&5
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #ifdef TIME_WITH_SYS_TIME
3701 #include <sys/time.h>
3704 #ifdef HAVE_SYS_TIME_H
3705 #include <sys/time.h>
3714 static struct utimbuf x; x.actime = x.modtime;
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3719 echo "$ac_t""yes" 1>&6
3720 { test "$extra_verbose" = "yes" && cat << \EOF
3721 Defining HAVE_STRUCT_UTIMBUF
3723 cat >> confdefs.h <<\EOF
3724 #define HAVE_STRUCT_UTIMBUF 1
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3732 echo "$ac_t""no" 1>&6
3736 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3737 echo "configure:3738: checking return type of signal handlers" >&5
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <sys/types.h>
3748 extern "C" void (*signal (int, void (*)(int)))(int);
3750 void (*signal ()) ();
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3759 ac_cv_type_signal=void
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3764 ac_cv_type_signal=int
3768 echo "$ac_t""$ac_cv_type_signal" 1>&6
3769 { test "$extra_verbose" = "yes" && cat << EOF
3770 Defining RETSIGTYPE = $ac_cv_type_signal
3772 cat >> confdefs.h <<EOF
3773 #define RETSIGTYPE $ac_cv_type_signal
3778 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3779 echo "configure:3780: checking for size_t" >&5
3781 cat > conftest.$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 #include <sys/types.h>
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3793 ac_cv_type_size_t=yes
3796 ac_cv_type_size_t=no
3800 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3801 if test $ac_cv_type_size_t = no; then
3802 { test "$extra_verbose" = "yes" && cat << \EOF
3803 Defining size_t = unsigned
3805 cat >> confdefs.h <<\EOF
3806 #define size_t unsigned
3812 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3813 echo "configure:3814: checking for pid_t" >&5
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3818 #include <sys/types.h>
3824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3825 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3827 ac_cv_type_pid_t=yes
3834 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3835 if test $ac_cv_type_pid_t = no; then
3836 { test "$extra_verbose" = "yes" && cat << \EOF
3837 Defining pid_t = int
3839 cat >> confdefs.h <<\EOF
3846 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3847 echo "configure:3848: checking for uid_t in sys/types.h" >&5
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <sys/types.h>
3854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3855 egrep "uid_t" >/dev/null 2>&1; then
3857 ac_cv_type_uid_t=yes
3865 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3866 if test $ac_cv_type_uid_t = no; then
3867 { test "$extra_verbose" = "yes" && cat << \EOF
3868 Defining uid_t = int
3870 cat >> confdefs.h <<\EOF
3875 { test "$extra_verbose" = "yes" && cat << \EOF
3876 Defining gid_t = int
3878 cat >> confdefs.h <<\EOF
3885 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3886 echo "configure:3887: checking for mode_t" >&5
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 #include <sys/types.h>
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3900 ac_cv_type_mode_t=yes
3903 ac_cv_type_mode_t=no
3907 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3908 if test $ac_cv_type_mode_t = no; then
3909 { test "$extra_verbose" = "yes" && cat << \EOF
3910 Defining mode_t = int
3912 cat >> confdefs.h <<\EOF
3919 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3920 echo "configure:3921: checking for off_t" >&5
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include <sys/types.h>
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3934 ac_cv_type_off_t=yes
3941 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3942 if test $ac_cv_type_off_t = no; then
3943 { test "$extra_verbose" = "yes" && cat << \EOF
3944 Defining off_t = long
3946 cat >> confdefs.h <<\EOF
3953 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3954 echo "configure:3955: checking for ssize_t" >&5
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 #include <sys/types.h>
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3968 ac_cv_type_ssize_t=yes
3971 ac_cv_type_ssize_t=no
3975 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3976 if test $ac_cv_type_ssize_t = no; then
3977 { test "$extra_verbose" = "yes" && cat << \EOF
3978 Defining ssize_t = int
3980 cat >> confdefs.h <<\EOF
3988 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3989 echo "configure:3990: checking for socklen_t" >&5
3990 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 #include <sys/socket.h>
4000 if { (eval echo configure:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4002 echo "$ac_t""yes" 1>&6
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 #include <sys/socket.h>
4012 int accept (int, struct sockaddr *, size_t *);
4018 if { (eval echo configure:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4021 echo "$ac_t""size_t" 1>&6
4022 { test "$extra_verbose" = "yes" && cat << \EOF
4023 Defining socklen_t = size_t
4025 cat >> confdefs.h <<\EOF
4026 #define socklen_t size_t
4031 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4035 echo "$ac_t""int" 1>&6
4036 { test "$extra_verbose" = "yes" && cat << \EOF
4037 Defining socklen_t = int
4039 cat >> confdefs.h <<\EOF
4040 #define socklen_t int
4049 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4050 echo "configure:4051: checking for struct timeval" >&5
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #ifdef TIME_WITH_SYS_TIME
4055 #include <sys/time.h>
4058 #ifdef HAVE_SYS_TIME_H
4059 #include <sys/time.h>
4065 static struct timeval x; x.tv_sec = x.tv_usec;
4068 if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4070 echo "$ac_t""yes" 1>&6
4072 { test "$extra_verbose" = "yes" && cat << \EOF
4073 Defining HAVE_TIMEVAL
4075 cat >> confdefs.h <<\EOF
4076 #define HAVE_TIMEVAL 1
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 echo "$ac_t""no" 1>&6
4089 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4090 echo "configure:4091: checking whether struct tm is in sys/time.h or time.h" >&5
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 #include <sys/types.h>
4098 struct tm *tp; tp->tm_sec;
4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4103 ac_cv_struct_tm=time.h
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 ac_cv_struct_tm=sys/time.h
4112 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4113 if test $ac_cv_struct_tm = sys/time.h; then
4114 { test "$extra_verbose" = "yes" && cat << \EOF
4115 Defining TM_IN_SYS_TIME
4117 cat >> confdefs.h <<\EOF
4118 #define TM_IN_SYS_TIME 1
4124 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4125 echo "configure:4126: checking for tm_zone in struct tm" >&5
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4130 #include <sys/types.h>
4131 #include <$ac_cv_struct_tm>
4133 struct tm tm; tm.tm_zone;
4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4138 ac_cv_struct_tm_zone=yes
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4143 ac_cv_struct_tm_zone=no
4147 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4148 if test "$ac_cv_struct_tm_zone" = yes; then
4149 { test "$extra_verbose" = "yes" && cat << \EOF
4150 Defining HAVE_TM_ZONE
4152 cat >> confdefs.h <<\EOF
4153 #define HAVE_TM_ZONE 1
4158 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4159 echo "configure:4160: checking for tzname" >&5
4161 cat > conftest.$ac_ext <<EOF
4162 #line 4163 "configure"
4163 #include "confdefs.h"
4165 #ifndef tzname /* For SGI. */
4166 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4172 if { (eval echo configure:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4174 ac_cv_var_tzname=yes
4176 echo "configure: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4183 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4184 if test $ac_cv_var_tzname = yes; then
4185 { test "$extra_verbose" = "yes" && cat << \EOF
4186 Defining HAVE_TZNAME
4188 cat >> confdefs.h <<\EOF
4189 #define HAVE_TZNAME 1
4197 echo $ac_n "checking for working const""... $ac_c" 1>&6
4198 echo "configure:4199: checking for working const" >&5
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4206 /* Ultrix mips cc rejects this. */
4207 typedef int charset[2]; const charset x;
4208 /* SunOS 4.1.1 cc rejects this. */
4209 char const *const *ccp;
4211 /* NEC SVR4.0.2 mips cc rejects this. */
4212 struct point {int x, y;};
4213 static struct point const zero = {0,0};
4214 /* AIX XL C 1.02.0.0 rejects this.
4215 It does not let you subtract one const X* pointer from another in an arm
4216 of an if-expression whose if-part is not a constant expression */
4217 const char *g = "string";
4218 ccp = &g + (g ? g-g : 0);
4219 /* HPUX 7.0 cc rejects these. */
4222 ccp = (char const *const *) p;
4223 { /* SCO 3.2v4 cc rejects this. */
4225 char const *s = 0 ? (char *) 0 : (char const *) 0;
4229 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4231 const int *foo = &x[0];
4234 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4235 typedef const int *iptr;
4239 { /* AIX XL C 1.02.0.0 rejects this saying
4240 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4241 struct s { int j; const int *ap[3]; };
4242 struct s *b; b->j = 5;
4244 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4250 if { (eval echo configure:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4261 echo "$ac_t""$ac_cv_c_const" 1>&6
4262 if test $ac_cv_c_const = no; then
4263 { test "$extra_verbose" = "yes" && cat << \EOF
4266 cat >> confdefs.h <<\EOF
4274 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4275 echo "configure:4276: checking whether ${MAKE-make} sets \${MAKE}" >&5
4276 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4278 cat > conftestmake <<\EOF
4280 @echo 'ac_maketemp="${MAKE}"'
4282 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4283 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4284 if test -n "$ac_maketemp"; then
4285 eval ac_cv_prog_make_${ac_make}_set=yes
4287 eval ac_cv_prog_make_${ac_make}_set=no
4290 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4294 echo "$ac_t""no" 1>&6
4295 SET_MAKE="MAKE=${MAKE-make}"
4299 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4300 echo "configure:4301: checking whether byte ordering is bigendian" >&5
4302 ac_cv_c_bigendian=unknown
4303 # See if sys/param.h defines the BYTE_ORDER macro.
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 #include <sys/types.h>
4308 #include <sys/param.h>
4311 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4316 if { (eval echo configure:4317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4318 # It does; now see whether it defined to BIG_ENDIAN or not.
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 #include <sys/types.h>
4323 #include <sys/param.h>
4326 #if BYTE_ORDER != BIG_ENDIAN
4331 if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4333 ac_cv_c_bigendian=yes
4335 echo "configure: failed program was:" >&5
4336 cat conftest.$ac_ext >&5
4338 ac_cv_c_bigendian=no
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4346 if test $ac_cv_c_bigendian = unknown; then
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4351 /* Are we little or big endian? From Harbison&Steele. */
4355 char c[sizeof (long)];
4358 exit (u.c[sizeof (long) - 1] == 1);
4361 if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4363 ac_cv_c_bigendian=no
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4369 ac_cv_c_bigendian=yes
4374 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4375 if test $ac_cv_c_bigendian = yes; then
4376 { test "$extra_verbose" = "yes" && cat << \EOF
4377 Defining WORDS_BIGENDIAN
4379 cat >> confdefs.h <<\EOF
4380 #define WORDS_BIGENDIAN 1
4387 echo $ac_n "checking size of short""... $ac_c" 1>&6
4388 echo "configure:4389: checking size of short" >&5
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4396 FILE *f=fopen("conftestval", "w");
4398 fprintf(f, "%d\n", sizeof(short));
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4404 ac_cv_sizeof_short=`cat conftestval`
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4410 ac_cv_sizeof_short=0
4413 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4414 { test "$extra_verbose" = "yes" && cat << EOF
4415 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4417 cat >> confdefs.h <<EOF
4418 #define SIZEOF_SHORT $ac_cv_sizeof_short
4423 if test "$ac_cv_sizeof_short" = 0; then
4425 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4426 echo "*** PANIC *** Please examine config.log for compilation errors."
4429 echo $ac_n "checking size of int""... $ac_c" 1>&6
4430 echo "configure:4431: checking size of int" >&5
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4438 FILE *f=fopen("conftestval", "w");
4440 fprintf(f, "%d\n", sizeof(int));
4444 if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4446 ac_cv_sizeof_int=`cat conftestval`
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4455 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4456 { test "$extra_verbose" = "yes" && cat << EOF
4457 Defining SIZEOF_INT = $ac_cv_sizeof_int
4459 cat >> confdefs.h <<EOF
4460 #define SIZEOF_INT $ac_cv_sizeof_int
4465 echo $ac_n "checking size of long""... $ac_c" 1>&6
4466 echo "configure:4467: checking size of long" >&5
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4474 FILE *f=fopen("conftestval", "w");
4476 fprintf(f, "%d\n", sizeof(long));
4480 if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4482 ac_cv_sizeof_long=`cat conftestval`
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4491 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4492 { test "$extra_verbose" = "yes" && cat << EOF
4493 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4495 cat >> confdefs.h <<EOF
4496 #define SIZEOF_LONG $ac_cv_sizeof_long
4501 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4502 echo "configure:4503: checking size of long long" >&5
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4510 FILE *f=fopen("conftestval", "w");
4512 fprintf(f, "%d\n", sizeof(long long));
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4518 ac_cv_sizeof_long_long=`cat conftestval`
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4524 ac_cv_sizeof_long_long=0
4527 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4528 { test "$extra_verbose" = "yes" && cat << EOF
4529 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4531 cat >> confdefs.h <<EOF
4532 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4537 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4538 echo "configure:4539: checking size of void *" >&5
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4546 FILE *f=fopen("conftestval", "w");
4548 fprintf(f, "%d\n", sizeof(void *));
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4554 ac_cv_sizeof_void_p=`cat conftestval`
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4560 ac_cv_sizeof_void_p=0
4563 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4564 { test "$extra_verbose" = "yes" && cat << EOF
4565 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4567 cat >> confdefs.h <<EOF
4568 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4574 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4575 echo "configure:4576: checking for long file names" >&5
4577 ac_cv_sys_long_file_names=yes
4578 # Test for long file names in all the places we know might matter:
4579 # . the current directory, where building will happen
4580 # $prefix/lib where we will be installing things
4581 # $exec_prefix/lib likewise
4582 # eval it to expand exec_prefix.
4583 # $TMPDIR if set, where it might want to write temporary files
4584 # if $TMPDIR is not set:
4585 # /tmp where it might want to write temporary files
4588 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4589 ac_tmpdirs="$TMPDIR"
4591 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4593 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4594 test -d $ac_dir || continue
4595 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4596 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4597 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4598 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4599 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4600 ac_cv_sys_long_file_names=no
4601 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4604 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4607 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4608 if test $ac_cv_sys_long_file_names = yes; then
4609 { test "$extra_verbose" = "yes" && cat << \EOF
4610 Defining HAVE_LONG_FILE_NAMES
4612 cat >> confdefs.h <<\EOF
4613 #define HAVE_LONG_FILE_NAMES 1
4620 echo $ac_n "checking for sin""... $ac_c" 1>&6
4621 echo "configure:4622: checking for sin" >&5
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 /* System header to define __stub macros and hopefully few prototypes,
4627 which can conflict with char sin(); below. */
4629 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4636 /* The GNU C library defines this for functions which it implements
4637 to always fail with ENOSYS. Some functions are actually named
4638 something starting with __ and the normal name is an alias. */
4639 #if defined (__stub_sin) || defined (__stub___sin)
4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4649 eval "ac_cv_func_sin=yes"
4651 echo "configure: failed program was:" >&5
4652 cat conftest.$ac_ext >&5
4654 eval "ac_cv_func_sin=no"
4658 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4662 echo "$ac_t""no" 1>&6
4664 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4665 echo "configure:4666: checking for sin in -lm" >&5
4666 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4668 xe_check_libs=" -lm "
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 eval "ac_cv_lib_$ac_lib_var=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_lib_$ac_lib_var=no"
4693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4694 echo "$ac_t""yes" 1>&6
4695 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4697 { test "$extra_verbose" = "yes" && cat << EOF
4700 cat >> confdefs.h <<EOF
4701 #define $ac_tr_lib 1
4705 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4708 echo "$ac_t""no" 1>&6
4715 { test "$extra_verbose" = "yes" && cat << \EOF
4716 Defining LISP_FLOAT_TYPE
4718 cat >> confdefs.h <<\EOF
4719 #define LISP_FLOAT_TYPE 1
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4729 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4734 { test "$extra_verbose" = "yes" && cat << \EOF
4735 Defining HAVE_INVERSE_HYPERBOLIC
4737 cat >> confdefs.h <<\EOF
4738 #define HAVE_INVERSE_HYPERBOLIC 1
4743 echo "configure: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4748 echo "checking type of mail spool file locking" 1>&6
4749 echo "configure:4750: checking type of mail spool file locking" >&5
4750 for ac_func in lockf flock
4752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_func" >&5
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781 eval "ac_cv_func_$ac_func=yes"
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4786 eval "ac_cv_func_$ac_func=no"
4790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4791 echo "$ac_t""yes" 1>&6
4792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4793 { test "$extra_verbose" = "yes" && cat << EOF
4794 Defining $ac_tr_func
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_func 1
4802 echo "$ac_t""no" 1>&6
4806 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4807 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4808 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4809 if test -z "$mail_locking"; then
4810 case "$opsys" in cygwin* | mingw*)
4815 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4816 Defining MAIL_LOCK_LOCKF
4818 cat >> confdefs.h <<\EOF
4819 #define MAIL_LOCK_LOCKF 1
4823 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4824 Defining MAIL_LOCK_FLOCK
4826 cat >> confdefs.h <<\EOF
4827 #define MAIL_LOCK_FLOCK 1
4831 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4832 Defining MAIL_LOCK_LOCKING
4834 cat >> confdefs.h <<\EOF
4835 #define MAIL_LOCK_LOCKING 1
4839 elif test "$mail_locking" = "pop"; then
4842 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4843 Defining MAIL_LOCK_DOT
4845 cat >> confdefs.h <<\EOF
4846 #define MAIL_LOCK_DOT 1
4851 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4852 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4853 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4854 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4855 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4856 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4858 case "$opsys" in decosf*)
4860 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4861 echo "configure:4862: checking for cma_open in -lpthreads" >&5
4862 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4864 xe_check_libs=" -lpthreads "
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4879 eval "ac_cv_lib_$ac_lib_var=yes"
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4884 eval "ac_cv_lib_$ac_lib_var=no"
4889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4893 { test "$extra_verbose" = "yes" && cat << EOF
4896 cat >> confdefs.h <<EOF
4897 #define $ac_tr_lib 1
4901 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4904 echo "$ac_t""no" 1>&6
4908 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4909 c_switch_site="$c_switch_site -threads" ;;
4912 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4913 echo "configure:4914: checking whether the -xildoff compiler flag is required" >&5
4914 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4915 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4916 then echo "$ac_t""no" 1>&6;
4917 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
4919 else echo "$ac_t""no" 1>&6
4922 if test "$opsys" = "sol2"; then
4923 if test "$os_release" -ge 56; then
4924 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4925 echo "configure:4926: checking for \"-z ignore\" linker flag" >&5
4926 case "`ld -h 2>&1`" in
4927 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4928 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4929 *) echo "$ac_t""no" 1>&6 ;;
4935 echo "checking "for specified window system"" 1>&6
4936 echo "configure:4937: checking "for specified window system"" >&5
4938 if test "$with_x11" != "no"; then
4939 test "$x_includes $x_libraries" != "NONE NONE" && \
4940 window_system=x11 with_x11=yes
4943 if test "$x_includes $x_libraries" = "NONE NONE" \
4944 -a -n "$OPENWINHOME" \
4945 -a "$OPENWINHOME" != "/usr/openwin" \
4946 -a -d "$OPENWINHOME"; then
4947 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4948 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4949 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4952 if test "$x_includes" = "NONE"; then
4953 for dir in "/usr/X11" "/usr/X11R6"; do
4954 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4958 if test "$x_libraries" = "NONE"; then
4959 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4960 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4964 # If we find X, set shell vars x_includes and x_libraries to the
4965 # paths, otherwise set no_x=yes.
4966 # Uses ac_ vars as temps to allow command line to override cache and checks.
4967 # --without-x overrides everything else, but does not touch the cache.
4968 echo $ac_n "checking for X""... $ac_c" 1>&6
4969 echo "configure:4970: checking for X" >&5
4971 # Check whether --with-x or --without-x was given.
4972 if test "${with_x+set}" = set; then
4977 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4978 if test "x$with_x" = xno; then
4979 # The user explicitly disabled X.
4982 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4983 # Both variables are already set.
4987 # One or both of the vars are not set, and there is no cached value.
4988 ac_x_includes=NO ac_x_libraries=NO
4990 if mkdir conftestdir; then
4992 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4993 cat > Imakefile <<'EOF'
4995 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4997 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4999 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5000 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5001 for ac_extension in a so sl; do
5002 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5003 test -f $ac_im_libdir/libX11.$ac_extension; then
5004 ac_im_usrlibdir=$ac_im_libdir; break
5007 # Screen out bogus values from the imake configuration. They are
5008 # bogus both because they are the default anyway, and because
5009 # using them would break gcc on systems where it needs fixed includes.
5010 case "$ac_im_incroot" in
5012 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5014 case "$ac_im_usrlibdir" in
5016 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5023 if test "$ac_x_includes" = NO; then
5024 # Guess where to find include files, by looking for this one X11 .h file.
5025 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5027 # First, try using that file with no special directory specified.
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5031 #include <$x_direct_test_include>
5033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5034 { (eval echo configure:5035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5036 if test -z "$ac_err"; then
5038 # We can compile using X headers with no special include directory.
5042 echo "configure: failed program was:" >&5
5043 cat conftest.$ac_ext >&5
5045 # Look for the header file in a standard set of common directories.
5046 # Check X11 before X11Rn because it is often a symlink to the current release.
5049 /usr/X11R6/include \
5050 /usr/X11R5/include \
5051 /usr/X11R4/include \
5054 /usr/include/X11R6 \
5055 /usr/include/X11R5 \
5056 /usr/include/X11R4 \
5058 /usr/local/X11/include \
5059 /usr/local/X11R6/include \
5060 /usr/local/X11R5/include \
5061 /usr/local/X11R4/include \
5063 /usr/local/include/X11 \
5064 /usr/local/include/X11R6 \
5065 /usr/local/include/X11R5 \
5066 /usr/local/include/X11R4 \
5070 /usr/XFree86/include/X11 \
5073 /usr/local/include \
5074 /usr/unsupported/include \
5075 /usr/athena/include \
5076 /usr/local/x11r5/include \
5077 /usr/lpp/Xamples/include \
5079 /usr/openwin/include \
5080 /usr/openwin/share/include \
5083 if test -r "$ac_dir/$x_direct_test_include"; then
5084 ac_x_includes=$ac_dir
5090 fi # $ac_x_includes = NO
5092 if test "$ac_x_libraries" = NO; then
5093 # Check for the libraries.
5095 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5096 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5098 # See if we find them without any special options.
5099 # Don't add to $LIBS permanently.
5100 ac_save_LIBS="$LIBS"
5101 LIBS="-l$x_direct_test_library $LIBS"
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5107 ${x_direct_test_function}()
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5112 LIBS="$ac_save_LIBS"
5113 # We can link X programs with no special library path.
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5119 LIBS="$ac_save_LIBS"
5120 # First see if replacing the include by lib works.
5121 # Check X11 before X11Rn because it is often a symlink to the current release.
5122 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5133 /usr/local/X11/lib \
5134 /usr/local/X11R6/lib \
5135 /usr/local/X11R5/lib \
5136 /usr/local/X11R4/lib \
5138 /usr/local/lib/X11 \
5139 /usr/local/lib/X11R6 \
5140 /usr/local/lib/X11R5 \
5141 /usr/local/lib/X11R4 \
5145 /usr/XFree86/lib/X11 \
5149 /usr/unsupported/lib \
5151 /usr/local/x11r5/lib \
5152 /usr/lpp/Xamples/lib \
5156 /usr/openwin/share/lib \
5159 for ac_extension in a so sl; do
5160 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5161 ac_x_libraries=$ac_dir
5168 fi # $ac_x_libraries = NO
5170 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5171 # Didn't find X anywhere. Cache the known absence of X.
5172 ac_cv_have_x="have_x=no"
5174 # Record where we found X for the cache.
5175 ac_cv_have_x="have_x=yes \
5176 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5179 eval "$ac_cv_have_x"
5182 if test "$have_x" != yes; then
5183 echo "$ac_t""$have_x" 1>&6
5186 # If each of the values was on the command line, it overrides each guess.
5187 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5188 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5189 # Update the cache value to reflect the command line values.
5190 ac_cv_have_x="have_x=yes \
5191 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5192 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5195 if test "$no_x" = yes; then
5196 # Not all programs may use this symbol, but it does not hurt to define it.
5197 { test "$extra_verbose" = "yes" && cat << \EOF
5198 Defining X_DISPLAY_MISSING
5200 cat >> confdefs.h <<\EOF
5201 #define X_DISPLAY_MISSING 1
5205 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5207 if test -n "$x_includes"; then
5208 X_CFLAGS="$X_CFLAGS -I$x_includes"
5211 # It would also be nice to do this for all -L options, not just this one.
5212 if test -n "$x_libraries"; then
5213 X_LIBS="$X_LIBS -L$x_libraries"
5214 # For Solaris; some versions of Sun CC require a space after -R and
5215 # others require no space. Words are not sufficient . . . .
5216 case "`(uname -sr) 2>/dev/null`" in
5218 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5219 echo "configure:5220: checking whether -R must be followed by a space" >&5
5220 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5239 if test $ac_R_nospace = yes; then
5240 echo "$ac_t""no" 1>&6
5241 X_LIBS="$X_LIBS -R$x_libraries"
5243 LIBS="$ac_xsave_LIBS -R $x_libraries"
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5252 if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5262 if test $ac_R_space = yes; then
5263 echo "$ac_t""yes" 1>&6
5264 X_LIBS="$X_LIBS -R $x_libraries"
5266 echo "$ac_t""neither works" 1>&6
5269 LIBS="$ac_xsave_LIBS"
5273 # Check for system-dependent libraries X programs must link with.
5274 # Do this before checking for the system-independent R6 libraries
5275 # (-lICE), since we may need -lsocket or whatever for X linking.
5277 if test "$ISC" = yes; then
5278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5280 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5281 # libraries were built with DECnet support. And karl@cs.umb.edu says
5282 # the Alpha needs dnet_stub (dnet does not exist).
5283 if test "$with_dnet" = "no" ; then
5284 ac_cv_lib_dnet_dnet_ntoa=no
5287 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5288 echo "configure:5289: checking for dnet_ntoa in -ldnet" >&5
5289 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5291 xe_check_libs=" -ldnet "
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5295 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 eval "ac_cv_lib_$ac_lib_var=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5311 eval "ac_cv_lib_$ac_lib_var=no"
5316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5317 echo "$ac_t""yes" 1>&6
5318 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5320 echo "$ac_t""no" 1>&6
5325 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5327 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5328 echo "configure:5329: checking for dnet_ntoa in -ldnet_stub" >&5
5329 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5331 xe_check_libs=" -ldnet_stub "
5332 cat > conftest.$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5335 /* Override any gcc2 internal prototype to avoid an error. */
5336 /* We use char because int might match the return type of a gcc2
5337 builtin and then its argument prototype would still apply. */
5344 if { (eval echo configure:5345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5346 eval "ac_cv_lib_$ac_lib_var=yes"
5348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5351 eval "ac_cv_lib_$ac_lib_var=no"
5356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5357 echo "$ac_t""yes" 1>&6
5358 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5360 echo "$ac_t""no" 1>&6
5366 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5367 # to get the SysV transport functions.
5368 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5370 # The nsl library prevents programs from opening the X display
5371 # on Irix 5.2, according to dickey@clark.net.
5372 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5373 echo "configure:5374: checking for gethostbyname" >&5
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 /* System header to define __stub macros and hopefully few prototypes,
5379 which can conflict with char gethostbyname(); below. */
5381 /* Override any gcc2 internal prototype to avoid an error. */
5382 /* We use char because int might match the return type of a gcc2
5383 builtin and then its argument prototype would still apply. */
5384 char gethostbyname();
5388 /* The GNU C library defines this for functions which it implements
5389 to always fail with ENOSYS. Some functions are actually named
5390 something starting with __ and the normal name is an alias. */
5391 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401 eval "ac_cv_func_gethostbyname=yes"
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5406 eval "ac_cv_func_gethostbyname=no"
5410 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5411 echo "$ac_t""yes" 1>&6
5414 echo "$ac_t""no" 1>&6
5417 if test $ac_cv_func_gethostbyname = no; then
5419 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5420 echo "configure:5421: checking for gethostbyname in -lnsl" >&5
5421 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5423 xe_check_libs=" -lnsl "
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */
5430 char gethostbyname();
5436 if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5438 eval "ac_cv_lib_$ac_lib_var=yes"
5440 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5443 eval "ac_cv_lib_$ac_lib_var=no"
5448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5449 echo "$ac_t""yes" 1>&6
5450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5452 echo "$ac_t""no" 1>&6
5458 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5459 # socket/setsockopt and other routines are undefined under SCO ODT
5460 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5461 # on later versions), says simon@lia.di.epfl.ch: it contains
5462 # gethostby* variants that don't use the nameserver (or something).
5463 # -lsocket must be given before -lnsl if both are needed.
5464 # We assume that if connect needs -lnsl, so does gethostbyname.
5465 echo $ac_n "checking for connect""... $ac_c" 1>&6
5466 echo "configure:5467: checking for connect" >&5
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 /* System header to define __stub macros and hopefully few prototypes,
5472 which can conflict with char connect(); below. */
5474 /* Override any gcc2 internal prototype to avoid an error. */
5475 /* We use char because int might match the return type of a gcc2
5476 builtin and then its argument prototype would still apply. */
5481 /* The GNU C library defines this for functions which it implements
5482 to always fail with ENOSYS. Some functions are actually named
5483 something starting with __ and the normal name is an alias. */
5484 #if defined (__stub_connect) || defined (__stub___connect)
5492 if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5494 eval "ac_cv_func_connect=yes"
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5499 eval "ac_cv_func_connect=no"
5503 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5504 echo "$ac_t""yes" 1>&6
5507 echo "$ac_t""no" 1>&6
5510 if test $ac_cv_func_connect = no; then
5512 xe_msg_checking="for connect in -lsocket"
5513 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5514 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5515 echo "configure:5516: checking "$xe_msg_checking"" >&5
5516 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5518 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5519 cat > conftest.$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5522 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5533 eval "ac_cv_lib_$ac_lib_var=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5538 eval "ac_cv_lib_$ac_lib_var=no"
5543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5544 echo "$ac_t""yes" 1>&6
5545 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5547 echo "$ac_t""no" 1>&6
5553 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5554 echo $ac_n "checking for remove""... $ac_c" 1>&6
5555 echo "configure:5556: checking for remove" >&5
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char remove(); below. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5570 /* The GNU C library defines this for functions which it implements
5571 to always fail with ENOSYS. Some functions are actually named
5572 something starting with __ and the normal name is an alias. */
5573 #if defined (__stub_remove) || defined (__stub___remove)
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5583 eval "ac_cv_func_remove=yes"
5585 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5588 eval "ac_cv_func_remove=no"
5592 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5593 echo "$ac_t""yes" 1>&6
5596 echo "$ac_t""no" 1>&6
5599 if test $ac_cv_func_remove = no; then
5601 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5602 echo "configure:5603: checking for remove in -lposix" >&5
5603 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5605 xe_check_libs=" -lposix "
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5609 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5620 eval "ac_cv_lib_$ac_lib_var=yes"
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 eval "ac_cv_lib_$ac_lib_var=no"
5630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5631 echo "$ac_t""yes" 1>&6
5632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5634 echo "$ac_t""no" 1>&6
5640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5641 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5642 echo "configure:5643: checking for shmat" >&5
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5647 /* System header to define __stub macros and hopefully few prototypes,
5648 which can conflict with char shmat(); below. */
5650 /* Override any gcc2 internal prototype to avoid an error. */
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5657 /* The GNU C library defines this for functions which it implements
5658 to always fail with ENOSYS. Some functions are actually named
5659 something starting with __ and the normal name is an alias. */
5660 #if defined (__stub_shmat) || defined (__stub___shmat)
5668 if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5670 eval "ac_cv_func_shmat=yes"
5672 echo "configure: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5675 eval "ac_cv_func_shmat=no"
5679 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5680 echo "$ac_t""yes" 1>&6
5683 echo "$ac_t""no" 1>&6
5686 if test $ac_cv_func_shmat = no; then
5688 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5689 echo "configure:5690: checking for shmat in -lipc" >&5
5690 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5692 xe_check_libs=" -lipc "
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5696 /* Override any gcc2 internal prototype to avoid an error. */
5697 /* We use char because int might match the return type of a gcc2
5698 builtin and then its argument prototype would still apply. */
5705 if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707 eval "ac_cv_lib_$ac_lib_var=yes"
5709 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5712 eval "ac_cv_lib_$ac_lib_var=no"
5717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5718 echo "$ac_t""yes" 1>&6
5719 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5721 echo "$ac_t""no" 1>&6
5728 # Check for libraries that X11R6 Xt/Xaw programs need.
5729 ac_save_LDFLAGS="$LDFLAGS"
5730 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5731 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5732 # check for ICE first), but we must link in the order -lSM -lICE or
5733 # we get undefined symbols. So assume we have SM if we have ICE.
5734 # These have to be linked with before -lX11, unlike the other
5735 # libraries we check for below, so use a different variable.
5736 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5738 xe_msg_checking="for IceConnectionNumber in -lICE"
5739 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5740 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5741 echo "configure:5742: checking "$xe_msg_checking"" >&5
5742 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5744 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5745 cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 /* Override any gcc2 internal prototype to avoid an error. */
5749 /* We use char because int might match the return type of a gcc2
5750 builtin and then its argument prototype would still apply. */
5751 char IceConnectionNumber();
5754 IceConnectionNumber()
5757 if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5759 eval "ac_cv_lib_$ac_lib_var=yes"
5761 echo "configure: failed program was:" >&5
5762 cat conftest.$ac_ext >&5
5764 eval "ac_cv_lib_$ac_lib_var=no"
5769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5770 echo "$ac_t""yes" 1>&6
5771 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5773 echo "$ac_t""no" 1>&6
5777 LDFLAGS="$ac_save_LDFLAGS"
5780 # Autoconf claims to find X library and include dirs for us.
5781 if test "$no_x" = "yes"
5782 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5783 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5788 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5789 no ) window_system=none HAVE_X_WINDOWS=no ;;
5792 if test "$with_x11" = "yes"; then
5793 { test "$extra_verbose" = "yes" && cat << \EOF
5794 Defining HAVE_X_WINDOWS
5796 cat >> confdefs.h <<\EOF
5797 #define HAVE_X_WINDOWS 1
5801 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5802 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5804 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5805 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5806 if test -d "$lib_dir" -a -d "$inc_dir"; then
5807 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5808 x_libraries="$lib_dir $x_libraries"
5809 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5811 case "$x_includes" in "$inc_dir"* ) ;; *)
5812 x_includes="$inc_dir $x_includes"
5813 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5818 for rel in "X11R6" "X11R5" "X11R4"; do
5819 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5820 if test -d "$lib_dir" -a -d "$inc_dir"; then
5821 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5822 x_libraries="$x_libraries $lib_dir"
5823 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5825 case "$x_includes" in "$inc_dir"* ) ;; *)
5826 x_includes="$x_includes $inc_dir"
5827 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5833 decosf*) 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 ;;
5836 ld_switch_x_site="$X_LIBS"
5839 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5840 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5841 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5843 runpath="" runpath_dirs=""
5844 if test -n "$LD_RUN_PATH"; then
5845 runpath="$LD_RUN_PATH"
5846 elif test "$GCC" = "yes"; then
5847 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5848 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5849 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5850 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5851 case "$arg" in P,* | -L* | -R* )
5852 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5854 xe_runpath_dir="$dir"
5855 test "$xe_runpath_dir" != "/lib" -a \
5856 "$xe_runpath_dir" != "/usr/lib" -a \
5857 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5858 eval "$xe_add_unique_runpath_dir"
5863 ld_switch_run="$ld_switch_run_save"
5866 for arg in $ld_switch_site $ld_switch_x_site; do
5867 case "$arg" in -L*) {
5868 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5869 test "$xe_runpath_dir" != "/lib" -a \
5870 "$xe_runpath_dir" != "/usr/lib" -a \
5871 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5872 eval "$xe_add_unique_runpath_dir"
5875 if test "$opsys $need_motif" = "sol2 yes"; then
5876 xe_runpath_dir="/opt/SUNWdt/lib";
5877 eval "$xe_add_unique_runpath_dir";
5880 if test -n "$runpath"; then
5881 ld_switch_run="${dash_r}${runpath}"
5883 if test "$GCC" = "yes"; then
5884 set x $ld_switch_run; shift; ld_switch_run=""
5885 while test -n "$1"; do
5887 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5888 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5890 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5895 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5900 if test "$extra_verbose" = "yes"; then
5901 echo; echo "X11 compilation variables:"
5902 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5907 if test "$x_includes" != NONE; then
5908 for i in $x_includes; do
5909 if test -d "$i/bitmaps"; then
5910 bitmapdirs="$i/bitmaps:$bitmapdirs"
5912 if test -d "$i/X11/bitmaps"; then
5913 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5916 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5918 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5919 Defining BITMAPDIR = "$bitmapdirs"
5921 cat >> confdefs.h <<EOF
5922 #define BITMAPDIR "$bitmapdirs"
5927 echo "checking for X defines extracted by xmkmf" 1>&6
5928 echo "configure:5929: checking for X defines extracted by xmkmf" >&5
5930 if mkdir conftestdir; then
5932 cat > Imakefile <<'EOF'
5934 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5936 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5937 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5938 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5942 for word in $xmkmf_defines; do
5943 case "$word" in -D* )
5944 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
5946 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
5949 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5950 if test "$val" = "1"
5951 then { test "$extra_verbose" = "yes" && cat << EOF
5954 cat >> confdefs.h <<EOF
5959 else { test "$extra_verbose" = "yes" && cat << EOF
5960 Defining $sym = $val
5962 cat >> confdefs.h <<EOF
5973 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5974 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5975 echo "configure:5976: checking for X11/Intrinsic.h" >&5
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 #include <X11/Intrinsic.h>
5982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5983 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5985 if test -z "$ac_err"; then
5987 eval "ac_cv_header_$ac_safe=yes"
5990 echo "configure: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5993 eval "ac_cv_header_$ac_safe=no"
5996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5997 echo "$ac_t""yes" 1>&6
6000 echo "$ac_t""no" 1>&6
6001 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6006 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6007 echo "configure:6008: checking for XOpenDisplay in -lX11" >&5
6008 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6010 xe_check_libs=" -lX11 "
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 /* Override any gcc2 internal prototype to avoid an error. */
6015 /* We use char because int might match the return type of a gcc2
6016 builtin and then its argument prototype would still apply. */
6017 char XOpenDisplay();
6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025 eval "ac_cv_lib_$ac_lib_var=yes"
6027 echo "configure: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6030 eval "ac_cv_lib_$ac_lib_var=no"
6035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6036 echo "$ac_t""yes" 1>&6
6039 echo "$ac_t""no" 1>&6
6043 if test "$have_lib_x11" != "yes"; then
6045 xe_msg_checking="for XGetFontProperty in -lX11"
6046 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6047 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6048 echo "configure:6049: checking "$xe_msg_checking"" >&5
6049 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6051 xe_check_libs=" -lX11 -b i486-linuxaout"
6052 cat > conftest.$ac_ext <<EOF
6053 #line 6054 "configure"
6054 #include "confdefs.h"
6055 /* Override any gcc2 internal prototype to avoid an error. */
6056 /* We use char because int might match the return type of a gcc2
6057 builtin and then its argument prototype would still apply. */
6058 char XGetFontProperty();
6064 if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6066 eval "ac_cv_lib_$ac_lib_var=yes"
6068 echo "configure: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6071 eval "ac_cv_lib_$ac_lib_var=no"
6076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6077 echo "$ac_t""yes" 1>&6
6078 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6080 echo "$ac_t""no" 1>&6
6081 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6087 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6090 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6091 echo "configure:6092: checking for XShapeSelectInput in -lXext" >&5
6092 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6094 xe_check_libs=" -lXext "
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6098 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6101 char XShapeSelectInput();
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 eval "ac_cv_lib_$ac_lib_var=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_lib_$ac_lib_var=no"
6119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6120 echo "$ac_t""yes" 1>&6
6121 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6123 echo "$ac_t""no" 1>&6
6129 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6130 echo "configure:6131: checking for XtOpenDisplay in -lXt" >&5
6131 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6133 xe_check_libs=" -lXt "
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6140 char XtOpenDisplay();
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 eval "ac_cv_lib_$ac_lib_var=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_lib_$ac_lib_var=no"
6158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6159 echo "$ac_t""yes" 1>&6
6160 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6162 echo "$ac_t""no" 1>&6
6163 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6168 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6169 echo "configure:6170: checking the version of X11 being used" >&5
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 #include <X11/Intrinsic.h>
6174 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6178 ./conftest foobar; x11_release=$?
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6187 echo "$ac_t""R${x11_release}" 1>&6
6188 { test "$extra_verbose" = "yes" && cat << EOF
6189 Defining THIS_IS_X11R${x11_release}
6191 cat >> confdefs.h <<EOF
6192 #define THIS_IS_X11R${x11_release} 1
6197 if test "${x11_release}" = "4"; then
6198 case "$with_widgets" in
6199 "" | "no") with_widgets=no ;;
6200 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6204 for ac_func in XConvertCase
6206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6207 echo "configure:6208: checking for $ac_func" >&5
6209 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure"
6211 #include "confdefs.h"
6212 /* System header to define __stub macros and hopefully few prototypes,
6213 which can conflict with char $ac_func(); below. */
6215 /* Override any gcc2 internal prototype to avoid an error. */
6216 /* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6222 /* The GNU C library defines this for functions which it implements
6223 to always fail with ENOSYS. Some functions are actually named
6224 something starting with __ and the normal name is an alias. */
6225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6235 eval "ac_cv_func_$ac_func=yes"
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6240 eval "ac_cv_func_$ac_func=no"
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 { test "$extra_verbose" = "yes" && cat << EOF
6248 Defining $ac_tr_func
6250 cat >> confdefs.h <<EOF
6251 #define $ac_tr_func 1
6256 echo "$ac_t""no" 1>&6
6261 for ac_hdr in X11/Xlocale.h
6263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6265 echo "configure:6266: checking for $ac_hdr" >&5
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6273 { (eval echo configure:6274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6275 if test -z "$ac_err"; then
6277 eval "ac_cv_header_$ac_safe=yes"
6280 echo "configure: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6283 eval "ac_cv_header_$ac_safe=no"
6286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6289 { test "$extra_verbose" = "yes" && cat << EOF
6292 cat >> confdefs.h <<EOF
6293 #define $ac_tr_hdr 1
6298 echo "$ac_t""no" 1>&6
6303 for ac_func in XRegisterIMInstantiateCallback
6305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6306 echo "configure:6307: checking for $ac_func" >&5
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6311 /* System header to define __stub macros and hopefully few prototypes,
6312 which can conflict with char $ac_func(); below. */
6314 /* Override any gcc2 internal prototype to avoid an error. */
6315 /* We use char because int might match the return type of a gcc2
6316 builtin and then its argument prototype would still apply. */
6321 /* The GNU C library defines this for functions which it implements
6322 to always fail with ENOSYS. Some functions are actually named
6323 something starting with __ and the normal name is an alias. */
6324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
6336 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6339 eval "ac_cv_func_$ac_func=no"
6343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6344 echo "$ac_t""yes" 1>&6
6345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6346 { test "$extra_verbose" = "yes" && cat << EOF
6347 Defining $ac_tr_func
6349 cat >> confdefs.h <<EOF
6350 #define $ac_tr_func 1
6355 echo "$ac_t""no" 1>&6
6359 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6360 echo "configure:6361: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6365 #define NeedFunctionPrototypes 1
6366 #include <X11/Xlib.h>
6367 extern Bool XRegisterIMInstantiateCallback(
6368 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6374 if { (eval echo configure:6375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6376 echo "$ac_t""yes" 1>&6
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6381 echo "$ac_t""no" 1>&6
6382 { test "$extra_verbose" = "yes" && cat << \EOF
6383 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6385 cat >> confdefs.h <<\EOF
6386 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6393 test -z "$with_xmu" && {
6394 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6395 echo "configure:6396: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6396 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6398 xe_check_libs=" -lXmu "
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6405 char XmuReadBitmapDataFromFile();
6408 XmuReadBitmapDataFromFile()
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 eval "ac_cv_lib_$ac_lib_var=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 eval "ac_cv_lib_$ac_lib_var=no"
6423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6424 echo "$ac_t""yes" 1>&6
6427 echo "$ac_t""no" 1>&6
6432 if test "$with_xmu" = "no"; then
6433 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6434 echo " xemacs will be linked with \"xmu.o\""
6437 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6438 { test "$extra_verbose" = "yes" && cat << \EOF
6441 cat >> confdefs.h <<\EOF
6449 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6450 echo "configure:6451: checking for main in -lXbsd" >&5
6451 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6453 xe_check_libs=" -lXbsd "
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6462 if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6464 eval "ac_cv_lib_$ac_lib_var=yes"
6466 echo "configure: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6469 eval "ac_cv_lib_$ac_lib_var=no"
6474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6475 echo "$ac_t""yes" 1>&6
6476 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6478 echo "$ac_t""no" 1>&6
6483 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6484 if test "$GCC" = "yes"; then
6485 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6486 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6489 "xlc" ) CC="xlc_r" ;;
6490 "xlC" ) CC="xlC_r" ;;
6497 if test "$with_msw" != "no"; then
6498 echo "checking for MS-Windows" 1>&6
6499 echo "configure:6500: checking for MS-Windows" >&5
6501 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6502 echo "configure:6503: checking for main in -lgdi32" >&5
6503 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6505 xe_check_libs=" -lgdi32 "
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6516 eval "ac_cv_lib_$ac_lib_var=yes"
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 eval "ac_cv_lib_$ac_lib_var=no"
6526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6527 echo "$ac_t""yes" 1>&6
6530 echo "$ac_t""no" 1>&6
6534 if test "$with_msw" = "yes"; then
6535 { test "$extra_verbose" = "yes" && cat << \EOF
6536 Defining HAVE_MS_WINDOWS
6538 cat >> confdefs.h <<\EOF
6539 #define HAVE_MS_WINDOWS 1
6544 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
6545 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
6546 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
6548 install_pp="$blddir/lib-src/installexe.sh"
6549 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6550 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6551 if test "$window_system" != x11; then
6553 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6554 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6555 echo " xemacs will be linked with \"scrollbar-msw.o\""
6557 test "$with_menubars" != "no" && with_menubars=msw \
6558 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6559 echo " xemacs will be linked with \"menubar-msw.o\""
6561 test "$with_toolbars" != "no" && with_toolbars=msw \
6562 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6563 echo " xemacs will be linked with \"toolbar-msw.o\""
6565 test "$with_dialogs" != "no" && with_dialogs=msw \
6566 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6567 echo " xemacs will be linked with \"dialog-msw.o\""
6569 test "$with_widgets" != "no" && with_widgets=msw
6571 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6572 echo " xemacs will be linked with \"scrollbar-msw.o\""
6574 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6575 echo " xemacs will be linked with \"menubar-msw.o\""
6577 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6578 echo " xemacs will be linked with \"toolbar-msw.o\""
6580 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6581 echo " xemacs will be linked with \"dialog-msw.o\""
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6588 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6590 if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6592 { test "$extra_verbose" = "yes" && cat << \EOF
6593 Defining HAVE_MSG_SELECT
6595 cat >> confdefs.h <<\EOF
6596 #define HAVE_MSG_SELECT 1
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6606 with_file_coding=yes
6607 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
6608 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\""
6615 test -z "$window_system" && window_system="none"
6617 if test "$window_system" = "none"; then
6618 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6620 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6621 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6623 eval "with_${feature}=no"
6626 test -z "$with_toolbars" && with_toolbars=yes
6629 if test "$with_msw" != "yes"; then
6630 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6632 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6633 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6635 eval "with_${feature}=no"
6641 if test "$with_x11" != "yes"; then
6642 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6644 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6645 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6647 eval "with_${feature}=no"
6651 if test "$with_x11" = "yes"; then
6652 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6653 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6654 echo "configure:6655: checking for X11/extensions/shape.h" >&5
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6659 #include <X11/extensions/shape.h>
6661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6662 { (eval echo configure:6663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6664 if test -z "$ac_err"; then
6666 eval "ac_cv_header_$ac_safe=yes"
6669 echo "configure: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6672 eval "ac_cv_header_$ac_safe=no"
6675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6678 { test "$extra_verbose" = "yes" && cat << \EOF
6679 Defining HAVE_BALLOON_HELP
6681 cat >> confdefs.h <<\EOF
6682 #define HAVE_BALLOON_HELP 1
6686 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
6687 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
6690 echo "$ac_t""no" 1>&6
6697 case "$window_system" in
6698 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6699 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6700 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6703 case "$x_libraries" in *X11R4* )
6704 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6705 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6708 echo "checking for WM_COMMAND option" 1>&6
6709 echo "configure:6710: checking for WM_COMMAND option" >&5;
6710 if test "$with_wmcommand" != "no"; then
6711 { test "$extra_verbose" = "yes" && cat << \EOF
6712 Defining HAVE_WMCOMMAND
6714 cat >> confdefs.h <<\EOF
6715 #define HAVE_WMCOMMAND 1
6721 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6722 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6723 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6724 echo "configure:6725: checking for X11/Xauth.h" >&5
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 #include <X11/Xauth.h>
6731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6732 { (eval echo configure:6733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6734 if test -z "$ac_err"; then
6736 eval "ac_cv_header_$ac_safe=yes"
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 eval "ac_cv_header_$ac_safe=no"
6745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6746 echo "$ac_t""yes" 1>&6
6749 echo "$ac_t""no" 1>&6
6753 test -z "$with_xauth" && {
6754 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6755 echo "configure:6756: checking for XauGetAuthByAddr in -lXau" >&5
6756 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6758 xe_check_libs=" -lXau "
6759 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6762 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */
6765 char XauGetAuthByAddr();
6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6773 eval "ac_cv_lib_$ac_lib_var=yes"
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6778 eval "ac_cv_lib_$ac_lib_var=no"
6783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6784 echo "$ac_t""yes" 1>&6
6787 echo "$ac_t""no" 1>&6
6792 test -z "$with_xauth" && with_xauth=yes
6793 if test "$with_xauth" = "yes"; then
6794 { test "$extra_verbose" = "yes" && cat << \EOF
6797 cat >> confdefs.h <<\EOF
6798 #define HAVE_XAUTH 1
6804 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
6812 if test "$with_tooltalk" != "no" ; then
6813 for dir in "" "Tt/" "desktop/" ; do
6814 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6815 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6816 echo "configure:6817: checking for ${dir}tt_c.h" >&5
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6821 #include <${dir}tt_c.h>
6823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6824 { (eval echo configure:6825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6826 if test -z "$ac_err"; then
6828 eval "ac_cv_header_$ac_safe=yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 eval "ac_cv_header_$ac_safe=no"
6837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6839 tt_c_h_file="${dir}tt_c.h"; break
6841 echo "$ac_t""no" 1>&6
6845 if test -z "$tt_c_h_file"; then
6846 if test "$with_tooltalk" = "yes"; then
6847 (echo "$progname: Usage error:"
6848 echo " " "Unable to find required tooltalk header files."
6849 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6854 if test "$with_tooltalk" != "no" ; then
6855 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6857 xe_msg_checking="for tt_message_create in -ltt"
6858 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6859 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6860 echo "configure:6861: checking "$xe_msg_checking"" >&5
6861 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6863 xe_check_libs=" -ltt $extra_libs"
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */
6870 char tt_message_create();
6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6878 eval "ac_cv_lib_$ac_lib_var=yes"
6880 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6883 eval "ac_cv_lib_$ac_lib_var=no"
6888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6889 echo "$ac_t""yes" 1>&6
6890 tt_libs="-ltt $extra_libs"; break
6892 echo "$ac_t""no" 1>&6
6898 if test -z "$tt_libs"; then
6899 if test "$with_tooltalk" = "yes"; then
6900 (echo "$progname: Usage error:"
6901 echo " " "Unable to find required tooltalk libraries."
6902 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6907 test -z "$with_tooltalk" && with_tooltalk=yes
6908 if test "$with_tooltalk" = "yes"; then
6909 { test "$extra_verbose" = "yes" && cat << \EOF
6912 cat >> confdefs.h <<\EOF
6917 { test "$extra_verbose" = "yes" && cat << EOF
6918 Defining TT_C_H_FILE = "$tt_c_h_file"
6920 cat >> confdefs.h <<EOF
6921 #define TT_C_H_FILE "$tt_c_h_file"
6925 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6926 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6927 echo " xemacs will be linked with \"tooltalk.o\""
6931 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6932 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6933 echo "configure:6934: checking for Dt/Dt.h" >&5
6935 cat > conftest.$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6941 { (eval echo configure:6942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6943 if test -z "$ac_err"; then
6945 eval "ac_cv_header_$ac_safe=yes"
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 eval "ac_cv_header_$ac_safe=no"
6954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6955 echo "$ac_t""yes" 1>&6
6958 echo "$ac_t""no" 1>&6
6962 test -z "$with_cde" && {
6963 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6964 echo "configure:6965: checking for DtDndDragStart in -lDtSvc" >&5
6965 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6967 xe_check_libs=" -lDtSvc "
6968 cat > conftest.$ac_ext <<EOF
6969 #line 6970 "configure"
6970 #include "confdefs.h"
6971 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6974 char DtDndDragStart();
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6982 eval "ac_cv_lib_$ac_lib_var=yes"
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6987 eval "ac_cv_lib_$ac_lib_var=no"
6992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6993 echo "$ac_t""yes" 1>&6
6996 echo "$ac_t""no" 1>&6
7001 test -z "$with_cde" && with_cde=yes
7002 if test "$with_dragndrop" = no; then
7003 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7006 if test "$with_cde" = "yes" ; then
7007 { test "$extra_verbose" = "yes" && cat << \EOF
7010 cat >> confdefs.h <<\EOF
7015 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7016 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7017 with_tooltalk=yes # CDE requires Tooltalk
7018 need_motif=yes # CDE requires Motif
7021 test "$window_system" != "x11" && with_offix=no
7022 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7023 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7026 if test "$with_dragndrop" = no; then
7027 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7030 if test "$with_cde" = yes; then
7031 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7034 test -z "$with_offix" && with_offix=no
7035 if test "$with_offix" = "yes"; then
7036 { test "$extra_verbose" = "yes" && cat << \EOF
7037 Defining HAVE_OFFIX_DND
7039 cat >> confdefs.h <<\EOF
7040 #define HAVE_OFFIX_DND 1
7044 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7045 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7048 if test "$with_dragndrop" != "no" ; then
7049 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7050 echo "configure:7051: checking if drag and drop API is needed" >&5
7051 if test -n "$dragndrop_proto" ; then
7053 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7054 { test "$extra_verbose" = "yes" && cat << \EOF
7055 Defining HAVE_DRAGNDROP
7057 cat >> confdefs.h <<\EOF
7058 #define HAVE_DRAGNDROP 1
7062 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7065 echo "$ac_t""no" 1>&6
7069 echo "checking for LDAP" 1>&6
7070 echo "configure:7071: checking for LDAP" >&5
7071 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7072 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7073 echo "configure:7074: checking for ldap.h" >&5
7075 cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7081 { (eval echo configure:7082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7083 if test -z "$ac_err"; then
7085 eval "ac_cv_header_$ac_safe=yes"
7088 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7091 eval "ac_cv_header_$ac_safe=no"
7094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7095 echo "$ac_t""yes" 1>&6
7098 echo "$ac_t""no" 1>&6
7102 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7103 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7104 echo "configure:7105: checking for lber.h" >&5
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7112 { (eval echo configure:7113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7114 if test -z "$ac_err"; then
7116 eval "ac_cv_header_$ac_safe=yes"
7119 echo "configure: failed program was:" >&5
7120 cat conftest.$ac_ext >&5
7122 eval "ac_cv_header_$ac_safe=no"
7125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7129 echo "$ac_t""no" 1>&6
7133 if test "$with_ldap" != "no"; then
7135 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7136 echo "configure:7137: checking for ldap_search in -lldap" >&5
7137 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7139 xe_check_libs=" -lldap "
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7154 eval "ac_cv_lib_$ac_lib_var=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7159 eval "ac_cv_lib_$ac_lib_var=no"
7164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7165 echo "$ac_t""yes" 1>&6
7166 with_ldap_nolber=yes
7168 echo "$ac_t""no" 1>&6
7173 test "$with_ldap_nolber" = "no" && {
7174 xe_msg_checking="for ldap_open in -lldap"
7175 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7176 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7177 echo "configure:7178: checking "$xe_msg_checking"" >&5
7178 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7180 xe_check_libs=" -lldap -llber"
7181 cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7184 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7195 eval "ac_cv_lib_$ac_lib_var=yes"
7197 echo "configure: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7200 eval "ac_cv_lib_$ac_lib_var=no"
7205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7206 echo "$ac_t""yes" 1>&6
7209 echo "$ac_t""no" 1>&6
7214 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7215 xe_msg_checking="for ldap_open in -lldap"
7216 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7217 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7218 echo "configure:7219: checking "$xe_msg_checking"" >&5
7219 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7221 xe_check_libs=" -lldap -llber -lkrb"
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 /* Override any gcc2 internal prototype to avoid an error. */
7226 /* We use char because int might match the return type of a gcc2
7227 builtin and then its argument prototype would still apply. */
7234 if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7236 eval "ac_cv_lib_$ac_lib_var=yes"
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7241 eval "ac_cv_lib_$ac_lib_var=no"
7246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7247 echo "$ac_t""yes" 1>&6
7250 echo "$ac_t""no" 1>&6
7255 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7256 xe_msg_checking="for ldap_open in -lldap"
7257 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7258 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7259 echo "configure:7260: checking "$xe_msg_checking"" >&5
7260 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7262 xe_check_libs=" -lldap -llber -lkrb -ldes"
7263 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 /* Override any gcc2 internal prototype to avoid an error. */
7267 /* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */
7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7277 eval "ac_cv_lib_$ac_lib_var=yes"
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7282 eval "ac_cv_lib_$ac_lib_var=no"
7287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7288 echo "$ac_t""yes" 1>&6
7289 with_ldap_krbdes=yes
7291 echo "$ac_t""no" 1>&6
7296 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
7298 if test "$with_ldap" = "yes"; then
7299 { test "$extra_verbose" = "yes" && cat << \EOF
7302 cat >> confdefs.h <<\EOF
7307 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7308 echo " xemacs will be linked with \"eldap.o\""
7310 if test "$with_ldap_nolber" = "yes" ; then
7311 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7313 if test "$with_ldap_krb" = "yes" ; then
7314 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7316 if test "$with_ldap_krbdes" = "yes" ; then
7317 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7318 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7320 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7321 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7323 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7326 echo "configure:7327: checking for $ac_func" >&5
7328 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7331 /* System header to define __stub macros and hopefully few prototypes,
7332 which can conflict with char $ac_func(); below. */
7334 /* Override any gcc2 internal prototype to avoid an error. */
7335 /* We use char because int might match the return type of a gcc2
7336 builtin and then its argument prototype would still apply. */
7341 /* The GNU C library defines this for functions which it implements
7342 to always fail with ENOSYS. Some functions are actually named
7343 something starting with __ and the normal name is an alias. */
7344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7354 eval "ac_cv_func_$ac_func=yes"
7356 echo "configure: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7359 eval "ac_cv_func_$ac_func=no"
7363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7364 echo "$ac_t""yes" 1>&6
7365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7366 { test "$extra_verbose" = "yes" && cat << EOF
7367 Defining $ac_tr_func
7369 cat >> confdefs.h <<EOF
7370 #define $ac_tr_func 1
7375 echo "$ac_t""no" 1>&6
7381 if test "$with_postgresql" != "no"; then
7382 echo "checking for PostgreSQL" 1>&6
7383 echo "configure:7384: checking for PostgreSQL" >&5
7385 for header_dir in "" "pgsql/" "postgresql/"; do
7386 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7387 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7388 echo "configure:7389: checking for ${header_dir}libpq-fe.h" >&5
7390 cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 #include <${header_dir}libpq-fe.h>
7395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7396 { (eval echo configure:7397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7398 if test -z "$ac_err"; then
7400 eval "ac_cv_header_$ac_safe=yes"
7403 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7406 eval "ac_cv_header_$ac_safe=no"
7409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7410 echo "$ac_t""yes" 1>&6
7411 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7413 echo "$ac_t""no" 1>&6
7418 test -n "$libpq_fe_h_file" && {
7419 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7420 echo "configure:7421: checking for PQconnectdb in -lpq" >&5
7421 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7423 xe_check_libs=" -lpq "
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* Override any gcc2 internal prototype to avoid an error. */
7428 /* We use char because int might match the return type of a gcc2
7429 builtin and then its argument prototype would still apply. */
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7438 eval "ac_cv_lib_$ac_lib_var=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 eval "ac_cv_lib_$ac_lib_var=no"
7448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7449 echo "$ac_t""yes" 1>&6
7452 echo "$ac_t""no" 1>&6
7457 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7459 { test "$extra_verbose" = "yes" && cat << \EOF
7460 Defining HAVE_POSTGRESQL
7462 cat >> confdefs.h <<\EOF
7463 #define HAVE_POSTGRESQL 1
7468 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7469 echo "configure:7470: checking for PQconnectStart in -lpq" >&5
7470 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7472 xe_check_libs=" -lpq "
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7479 char PQconnectStart();
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7487 eval "ac_cv_lib_$ac_lib_var=yes"
7489 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7492 eval "ac_cv_lib_$ac_lib_var=no"
7497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7498 echo "$ac_t""yes" 1>&6
7499 with_postgresqlv7=yes;
7500 { test "$extra_verbose" = "yes" && cat << \EOF
7501 Defining HAVE_POSTGRESQLV7
7503 cat >> confdefs.h <<\EOF
7504 #define HAVE_POSTGRESQLV7 1
7509 echo "$ac_t""no" 1>&6
7513 { test "$extra_verbose" = "yes" && cat << EOF
7514 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7516 cat >> confdefs.h <<EOF
7517 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7521 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7522 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7523 echo " xemacs will be linked with \"postgresql.o\""
7525 elif test "$with_postgresql" = "yes"; then
7526 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7531 if test "$window_system" != "none"; then
7532 echo "checking for graphics libraries" 1>&6
7533 echo "configure:7534: checking for graphics libraries" >&5
7536 if test -z "$with_xpm"; then
7537 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7538 echo "configure:7539: checking for Xpm - no older than 3.4f" >&5
7540 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7544 #include <X11/xpm.h>
7545 int main(int c, char **v) {
7547 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7548 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7552 ./conftest dummy_arg; xpm_status=$?;
7553 if test "$xpm_status" = "0"; then
7557 if test "$xpm_status" = "1"; then
7558 xpm_problem="Xpm library version and header file version don't match!"
7559 elif test "$xpm_status" = "2"; then
7560 xpm_problem="Xpm library version is too old!"
7562 xpm_problem="Internal xpm detection logic error!"
7565 *** WARNING *** $xpm_problem
7566 I'm not touching that with a 10-foot pole!
7567 If you really want to use the installed version of Xpm, rerun
7568 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7572 echo "configure: failed program was:" >&5
7573 cat conftest.$ac_ext >&5
7579 echo "$ac_t""$with_xpm" 1>&6
7581 if test "$with_xpm" = "yes"; then
7582 { test "$extra_verbose" = "yes" && cat << \EOF
7585 cat >> confdefs.h <<\EOF
7590 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7591 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7592 echo "configure:7593: checking for \"FOR_MSW\" xpm" >&5
7594 cat > conftest.$ac_ext <<EOF
7595 #line 7596 "configure"
7596 #include "confdefs.h"
7599 XpmCreatePixmapFromData()
7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7606 echo "configure: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7613 echo "$ac_t""$xpm_for_msw" 1>&6
7614 if test "$xpm_for_msw" = "yes"; then
7615 { test "$extra_verbose" = "yes" && cat << \EOF
7618 cat >> confdefs.h <<\EOF
7626 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7627 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7628 echo "configure:7629: checking for compface.h" >&5
7630 cat > conftest.$ac_ext <<EOF
7631 #line 7632 "configure"
7632 #include "confdefs.h"
7633 #include <compface.h>
7635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7636 { (eval echo configure:7637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7638 if test -z "$ac_err"; then
7640 eval "ac_cv_header_$ac_safe=yes"
7643 echo "configure: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7646 eval "ac_cv_header_$ac_safe=no"
7649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7653 echo "$ac_t""no" 1>&6
7657 test -z "$with_xface" && {
7658 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7659 echo "configure:7660: checking for UnGenFace in -lcompface" >&5
7660 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7662 xe_check_libs=" -lcompface "
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7675 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7677 eval "ac_cv_lib_$ac_lib_var=yes"
7679 echo "configure: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7682 eval "ac_cv_lib_$ac_lib_var=no"
7687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7688 echo "$ac_t""yes" 1>&6
7691 echo "$ac_t""no" 1>&6
7696 test -z "$with_xface" && with_xface=yes
7697 if test "$with_xface" = "yes"; then
7698 { test "$extra_verbose" = "yes" && cat << \EOF
7701 cat >> confdefs.h <<\EOF
7702 #define HAVE_XFACE 1
7706 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7709 if test "$with_gif" != "no"; then
7711 { test "$extra_verbose" = "yes" && cat << \EOF
7714 cat >> confdefs.h <<\EOF
7719 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7720 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7724 if test "$with_png $with_tiff" != "no no"; then
7726 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7727 echo "configure:7728: checking for inflate in -lc" >&5
7728 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7730 xe_check_libs=" -lc "
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7745 eval "ac_cv_lib_$ac_lib_var=yes"
7747 echo "configure: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7750 eval "ac_cv_lib_$ac_lib_var=no"
7755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7756 echo "$ac_t""yes" 1>&6
7759 echo "$ac_t""no" 1>&6
7761 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7762 echo "configure:7763: checking for inflate in -lz" >&5
7763 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7765 xe_check_libs=" -lz "
7766 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7769 /* Override any gcc2 internal prototype to avoid an error. */
7770 /* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7778 if { (eval echo configure:7779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7780 eval "ac_cv_lib_$ac_lib_var=yes"
7782 echo "configure: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7785 eval "ac_cv_lib_$ac_lib_var=no"
7790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7791 echo "$ac_t""yes" 1>&6
7792 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7794 echo "$ac_t""no" 1>&6
7796 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7797 echo "configure:7798: checking for inflate in -lgz" >&5
7798 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7800 xe_check_libs=" -lgz "
7801 cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 /* Override any gcc2 internal prototype to avoid an error. */
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7813 if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7815 eval "ac_cv_lib_$ac_lib_var=yes"
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7820 eval "ac_cv_lib_$ac_lib_var=no"
7825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7826 echo "$ac_t""yes" 1>&6
7827 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7829 echo "$ac_t""no" 1>&6
7841 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7842 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7843 echo "configure:7844: checking for jpeglib.h" >&5
7845 cat > conftest.$ac_ext <<EOF
7846 #line 7847 "configure"
7847 #include "confdefs.h"
7848 #include <jpeglib.h>
7850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7851 { (eval echo configure:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7853 if test -z "$ac_err"; then
7855 eval "ac_cv_header_$ac_safe=yes"
7858 echo "configure: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7861 eval "ac_cv_header_$ac_safe=no"
7864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7868 echo "$ac_t""no" 1>&6
7872 test -z "$with_jpeg" && {
7873 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7874 echo "configure:7875: checking for jpeg_destroy_decompress in -ljpeg" >&5
7875 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7877 xe_check_libs=" -ljpeg "
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7884 char jpeg_destroy_decompress();
7887 jpeg_destroy_decompress()
7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7892 eval "ac_cv_lib_$ac_lib_var=yes"
7894 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7897 eval "ac_cv_lib_$ac_lib_var=no"
7902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7903 echo "$ac_t""yes" 1>&6
7906 echo "$ac_t""no" 1>&6
7911 test -z "$with_jpeg" && with_jpeg=yes
7912 if test "$with_jpeg" = "yes"; then
7913 { test "$extra_verbose" = "yes" && cat << \EOF
7916 cat >> confdefs.h <<\EOF
7921 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7925 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7926 echo "configure:7927: checking for pow" >&5
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 /* System header to define __stub macros and hopefully few prototypes,
7932 which can conflict with char pow(); below. */
7934 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7941 /* The GNU C library defines this for functions which it implements
7942 to always fail with ENOSYS. Some functions are actually named
7943 something starting with __ and the normal name is an alias. */
7944 #if defined (__stub_pow) || defined (__stub___pow)
7952 if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7954 eval "ac_cv_func_pow=yes"
7956 echo "configure: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7959 eval "ac_cv_func_pow=no"
7963 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7964 echo "$ac_t""yes" 1>&6
7967 echo "$ac_t""no" 1>&6
7971 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7972 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7973 echo "configure:7974: checking for png.h" >&5
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7981 { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7983 if test -z "$ac_err"; then
7985 eval "ac_cv_header_$ac_safe=yes"
7988 echo "configure: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7991 eval "ac_cv_header_$ac_safe=no"
7994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7995 echo "$ac_t""yes" 1>&6
7998 echo "$ac_t""no" 1>&6
8002 test -z "$with_png" && {
8003 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8004 echo "configure:8005: checking for png_read_image in -lpng" >&5
8005 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8007 xe_check_libs=" -lpng "
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014 char png_read_image();
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8022 eval "ac_cv_lib_$ac_lib_var=yes"
8024 echo "configure: failed program was:" >&5
8025 cat conftest.$ac_ext >&5
8027 eval "ac_cv_lib_$ac_lib_var=no"
8032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8033 echo "$ac_t""yes" 1>&6
8036 echo "$ac_t""no" 1>&6
8041 if test -z "$with_png"; then
8042 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8043 echo "configure:8044: checking for workable png version information" >&5
8044 xe_check_libs="-lpng -lz"
8045 cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8049 int main(int c, char **v) {
8050 if (c == 1) return 0;
8051 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8052 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8056 ./conftest dummy_arg; png_status=$?;
8057 if test "$png_status" = "0"; then
8061 if test "$png_status" = "1"; then
8062 png_problem="PNG library version and header file don't match!"
8063 elif test "$png_status" = "2"; then
8064 png_problem="PNG library version too old (pre 1.0.2)!"
8067 *** WARNING *** $png_problem
8068 I'm not touching that with a 10-foot pole!
8069 If you really want to use the installed version of libPNG, rerun
8070 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8081 echo "$ac_t""$with_png" 1>&6
8083 if test "$with_png" = "yes"; then
8084 { test "$extra_verbose" = "yes" && cat << \EOF
8087 cat >> confdefs.h <<\EOF
8092 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8095 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8096 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8097 echo "configure:8098: checking for tiffio.h" >&5
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8105 { (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8107 if test -z "$ac_err"; then
8109 eval "ac_cv_header_$ac_safe=yes"
8112 echo "configure: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8115 eval "ac_cv_header_$ac_safe=no"
8118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8119 echo "$ac_t""yes" 1>&6
8122 echo "$ac_t""no" 1>&6
8126 test -z "$with_tiff" && {
8127 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8128 echo "configure:8129: checking for TIFFClientOpen in -ltiff" >&5
8129 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8131 xe_check_libs=" -ltiff "
8132 cat > conftest.$ac_ext <<EOF
8133 #line 8134 "configure"
8134 #include "confdefs.h"
8135 /* Override any gcc2 internal prototype to avoid an error. */
8136 /* We use char because int might match the return type of a gcc2
8137 builtin and then its argument prototype would still apply. */
8138 char TIFFClientOpen();
8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8146 eval "ac_cv_lib_$ac_lib_var=yes"
8148 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8151 eval "ac_cv_lib_$ac_lib_var=no"
8156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8157 echo "$ac_t""yes" 1>&6
8160 echo "$ac_t""no" 1>&6
8165 test -z "$with_tiff" && with_tiff=yes
8166 if test "$with_tiff" = "yes"; then
8167 { test "$extra_verbose" = "yes" && cat << \EOF
8170 cat >> confdefs.h <<\EOF
8175 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8180 if test "$with_x11" = "yes"; then
8182 echo "checking for X11 graphics libraries" 1>&6
8183 echo "configure:8184: checking for X11 graphics libraries" >&5
8185 echo "checking for the Athena widgets" 1>&6
8186 echo "configure:8187: checking for the Athena widgets" >&5
8188 case "$with_athena" in
8189 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8190 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8191 "next") athena_variant=neXtaw athena_3d=yes ;;
8192 "95") athena_variant=Xaw95 athena_3d=yes ;;
8193 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8194 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8197 if test "$athena_3d" = "no"; then
8199 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8200 echo "configure:8201: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8201 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8203 xe_check_libs=" -l$athena_variant "
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 /* Override any gcc2 internal prototype to avoid an error. */
8208 /* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */
8210 char XawScrollbarSetThumb();
8213 XawScrollbarSetThumb()
8216 if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8218 eval "ac_cv_lib_$ac_lib_var=yes"
8220 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8223 eval "ac_cv_lib_$ac_lib_var=no"
8228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8229 echo "$ac_t""yes" 1>&6
8231 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8232 echo "configure:8233: checking for threeDClassRec in -l$athena_variant" >&5
8233 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8235 xe_check_libs=" -l$athena_variant "
8236 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8239 /* Override any gcc2 internal prototype to avoid an error. */
8240 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8242 char threeDClassRec();
8248 if { (eval echo configure:8249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8250 eval "ac_cv_lib_$ac_lib_var=yes"
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8255 eval "ac_cv_lib_$ac_lib_var=no"
8260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8261 echo "$ac_t""yes" 1>&6
8262 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8264 echo "$ac_t""no" 1>&6
8265 athena_lib=$athena_variant
8271 echo "$ac_t""no" 1>&6
8272 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8278 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8279 echo "configure:8280: checking for threeDClassRec in -l$athena_variant" >&5
8280 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8282 xe_check_libs=" -l$athena_variant "
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. */
8289 char threeDClassRec();
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 athena_lib=$athena_variant
8311 echo "$ac_t""no" 1>&6
8312 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8313 echo "configure:8314: checking for threeDClassRec in -lXaw" >&5
8314 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8316 xe_check_libs=" -lXaw "
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8323 char threeDClassRec();
8329 if { (eval echo configure:8330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8331 eval "ac_cv_lib_$ac_lib_var=yes"
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8336 eval "ac_cv_lib_$ac_lib_var=no"
8341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8342 echo "$ac_t""yes" 1>&6
8344 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8347 echo "$ac_t""no" 1>&6
8348 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8357 if test "$athena_3d" = "no"; then
8358 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8359 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8360 echo "configure:8361: checking for X11/Xaw/ThreeD.h" >&5
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8365 #include <X11/Xaw/ThreeD.h>
8367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8368 { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8370 if test -z "$ac_err"; then
8372 eval "ac_cv_header_$ac_safe=yes"
8375 echo "configure: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8378 eval "ac_cv_header_$ac_safe=no"
8381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8382 echo "$ac_t""yes" 1>&6
8383 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8385 echo "$ac_t""no" 1>&6
8386 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8387 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8388 echo "configure:8389: checking for X11/Xaw/XawInit.h" >&5
8390 cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8393 #include <X11/Xaw/XawInit.h>
8395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8396 { (eval echo configure:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8398 if test -z "$ac_err"; then
8400 eval "ac_cv_header_$ac_safe=yes"
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8406 eval "ac_cv_header_$ac_safe=no"
8409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8410 echo "$ac_t""yes" 1>&6
8411 athena_h_path=X11/Xaw
8413 echo "$ac_t""no" 1>&6
8414 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8420 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8421 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8422 echo "configure:8423: checking for X11/$athena_variant/XawInit.h" >&5
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8427 #include <X11/$athena_variant/XawInit.h>
8429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8430 { (eval echo configure:8431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8432 if test -z "$ac_err"; then
8434 eval "ac_cv_header_$ac_safe=yes"
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 eval "ac_cv_header_$ac_safe=no"
8443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8444 echo "$ac_t""yes" 1>&6
8445 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8446 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8447 echo "configure:8448: checking for X11/$athena_variant/ThreeD.h" >&5
8449 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure"
8451 #include "confdefs.h"
8452 #include <X11/$athena_variant/ThreeD.h>
8454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8455 { (eval echo configure:8456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8457 if test -z "$ac_err"; then
8459 eval "ac_cv_header_$ac_safe=yes"
8462 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8465 eval "ac_cv_header_$ac_safe=no"
8468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8469 echo "$ac_t""yes" 1>&6
8470 athena_h_path=X11/$athena_variant
8472 echo "$ac_t""no" 1>&6
8476 echo "$ac_t""no" 1>&6
8480 if test -z "$athena_h_path"; then
8481 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8482 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8483 echo "configure:8484: checking for $athena_variant/XawInit.h" >&5
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 #include <$athena_variant/XawInit.h>
8490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8491 { (eval echo configure:8492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8493 if test -z "$ac_err"; then
8495 eval "ac_cv_header_$ac_safe=yes"
8498 echo "configure: failed program was:" >&5
8499 cat conftest.$ac_ext >&5
8501 eval "ac_cv_header_$ac_safe=no"
8504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8506 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8507 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8508 echo "configure:8509: checking for $athena_variant/ThreeD.h" >&5
8510 cat > conftest.$ac_ext <<EOF
8511 #line 8512 "configure"
8512 #include "confdefs.h"
8513 #include <$athena_variant/ThreeD.h>
8515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8516 { (eval echo configure:8517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8518 if test -z "$ac_err"; then
8520 eval "ac_cv_header_$ac_safe=yes"
8523 echo "configure: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8526 eval "ac_cv_header_$ac_safe=no"
8529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8530 echo "$ac_t""yes" 1>&6
8531 athena_h_path=$athena_variant
8533 echo "$ac_t""no" 1>&6
8537 echo "$ac_t""no" 1>&6
8542 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8543 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8544 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8545 echo "configure:8546: checking for X11/Xaw3d/XawInit.h" >&5
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8550 #include <X11/Xaw3d/XawInit.h>
8552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8553 { (eval echo configure:8554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8555 if test -z "$ac_err"; then
8557 eval "ac_cv_header_$ac_safe=yes"
8560 echo "configure: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8563 eval "ac_cv_header_$ac_safe=no"
8566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8568 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8569 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8570 echo "configure:8571: checking for X11/Xaw3d/ThreeD.h" >&5
8572 cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure"
8574 #include "confdefs.h"
8575 #include <X11/Xaw3d/ThreeD.h>
8577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8578 { (eval echo configure:8579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8580 if test -z "$ac_err"; then
8582 eval "ac_cv_header_$ac_safe=yes"
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 eval "ac_cv_header_$ac_safe=no"
8591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8592 echo "$ac_t""yes" 1>&6
8594 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8595 athena_h_path=X11/Xaw3d
8598 echo "$ac_t""no" 1>&6
8602 echo "$ac_t""no" 1>&6
8607 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8608 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8609 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8610 echo "configure:8611: checking for Xaw3d/XawInit.h" >&5
8612 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8615 #include <Xaw3d/XawInit.h>
8617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8618 { (eval echo configure:8619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8620 if test -z "$ac_err"; then
8622 eval "ac_cv_header_$ac_safe=yes"
8625 echo "configure: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8628 eval "ac_cv_header_$ac_safe=no"
8631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8632 echo "$ac_t""yes" 1>&6
8633 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8634 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8635 echo "configure:8636: checking for Xaw3d/ThreeD.h" >&5
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 #include <Xaw3d/ThreeD.h>
8642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8643 { (eval echo configure:8644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8645 if test -z "$ac_err"; then
8647 eval "ac_cv_header_$ac_safe=yes"
8650 echo "configure: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8653 eval "ac_cv_header_$ac_safe=no"
8656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8657 echo "$ac_t""yes" 1>&6
8659 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8663 echo "$ac_t""no" 1>&6
8667 echo "$ac_t""no" 1>&6
8672 if test -z "$athena_h_path"; then
8673 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8674 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8675 echo "configure:8676: checking for X11/Xaw/ThreeD.h" >&5
8677 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure"
8679 #include "confdefs.h"
8680 #include <X11/Xaw/ThreeD.h>
8682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8683 { (eval echo configure:8684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8685 if test -z "$ac_err"; then
8687 eval "ac_cv_header_$ac_safe=yes"
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8693 eval "ac_cv_header_$ac_safe=no"
8696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8697 echo "$ac_t""yes" 1>&6
8699 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8700 athena_h_path=X11/Xaw
8703 echo "$ac_t""no" 1>&6
8704 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8710 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8716 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8717 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8718 echo "configure:8719: checking for Xm/Xm.h" >&5
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8726 { (eval echo configure:8727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8728 if test -z "$ac_err"; then
8730 eval "ac_cv_header_$ac_safe=yes"
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 eval "ac_cv_header_$ac_safe=no"
8739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8740 echo "$ac_t""yes" 1>&6
8742 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8743 echo "configure:8744: checking for XmStringFree in -lXm" >&5
8744 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8746 xe_check_libs=" -lXm "
8747 cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8750 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8753 char XmStringFree();
8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8761 eval "ac_cv_lib_$ac_lib_var=yes"
8763 echo "configure: failed program was:" >&5
8764 cat conftest.$ac_ext >&5
8766 eval "ac_cv_lib_$ac_lib_var=no"
8771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8772 echo "$ac_t""yes" 1>&6
8775 echo "$ac_t""no" 1>&6
8781 echo "$ac_t""no" 1>&6
8786 if test "$have_motif" = "yes"; then
8787 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8788 echo "configure:8789: checking for Lesstif" >&5
8789 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8793 #ifdef LESSTIF_VERSION
8798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8799 egrep "yes" >/dev/null 2>&1; then
8808 echo "$ac_t""$have_lesstif" 1>&6
8813 case "$with_menubars" in "" | "yes" | "athena" )
8814 with_menubars="lucid" ;;
8816 case "$with_dialogs" in "" | "yes" | "lucid" )
8817 if test "$have_motif" = "yes"; then with_dialogs="motif"
8818 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8819 else with_dialogs=no
8822 case "$with_scrollbars" in "" | "yes" )
8823 with_scrollbars="lucid" ;;
8825 case "$with_widgets" in "" | "yes" | "lucid")
8826 if test "$have_motif" = "yes"; then with_widgets="motif"
8827 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8828 else with_widgets=no
8832 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8834 case "$all_widgets" in
8836 if test "$have_xaw" != "yes"; then
8837 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8840 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8842 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8844 { test "$extra_verbose" = "yes" && cat << EOF
8845 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8847 cat >> confdefs.h <<EOF
8848 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8852 { test "$extra_verbose" = "yes" && cat << EOF
8853 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8855 cat >> confdefs.h <<EOF
8856 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8860 { test "$extra_verbose" = "yes" && cat << EOF
8861 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8863 cat >> confdefs.h <<EOF
8864 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8868 { test "$extra_verbose" = "yes" && cat << EOF
8869 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8871 cat >> confdefs.h <<EOF
8872 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8876 { test "$extra_verbose" = "yes" && cat << EOF
8877 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8879 cat >> confdefs.h <<EOF
8880 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8884 { test "$extra_verbose" = "yes" && cat << EOF
8885 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8887 cat >> confdefs.h <<EOF
8888 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8892 { test "$extra_verbose" = "yes" && cat << EOF
8893 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8895 cat >> confdefs.h <<EOF
8896 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8900 { test "$extra_verbose" = "yes" && cat << EOF
8901 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8903 cat >> confdefs.h <<EOF
8904 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8908 { test "$extra_verbose" = "yes" && cat << EOF
8909 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8911 cat >> confdefs.h <<EOF
8912 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8916 { test "$extra_verbose" = "yes" && cat << EOF
8917 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8919 cat >> confdefs.h <<EOF
8920 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8925 { test "$extra_verbose" = "yes" && cat << \EOF
8926 Defining LWLIB_USES_ATHENA
8928 cat >> confdefs.h <<\EOF
8929 #define LWLIB_USES_ATHENA 1
8933 { test "$extra_verbose" = "yes" && cat << \EOF
8934 Defining NEED_ATHENA
8936 cat >> confdefs.h <<\EOF
8937 #define NEED_ATHENA 1
8943 if test "$athena_3d" = "yes"; then
8944 { test "$extra_verbose" = "yes" && cat << \EOF
8945 Defining HAVE_ATHENA_3D
8947 cat >> confdefs.h <<\EOF
8948 #define HAVE_ATHENA_3D 1
8956 case "$all_widgets" in *motif* )
8957 { test "$extra_verbose" = "yes" && cat << \EOF
8958 Defining LWLIB_USES_MOTIF
8960 cat >> confdefs.h <<\EOF
8961 #define LWLIB_USES_MOTIF 1
8965 { test "$extra_verbose" = "yes" && cat << \EOF
8968 cat >> confdefs.h <<\EOF
8969 #define NEED_MOTIF 1
8973 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8977 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8978 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8979 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8980 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8981 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8982 case "$with_widgets" in athena* )
8983 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
8985 case "$all_widgets" in *lucid* )
8986 { test "$extra_verbose" = "yes" && cat << \EOF
8989 cat >> confdefs.h <<\EOF
8990 #define NEED_LUCID 1
8994 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8999 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9000 Defining LWLIB_SCROLLBARS_ATHENA
9002 cat >> confdefs.h <<\EOF
9003 #define LWLIB_SCROLLBARS_ATHENA 1
9007 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9008 Defining LWLIB_DIALOGS_ATHENA
9010 cat >> confdefs.h <<\EOF
9011 #define LWLIB_DIALOGS_ATHENA 1
9016 if test "$athena_3d" = "yes"; then
9017 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9018 Defining LWLIB_SCROLLBARS_ATHENA3D
9020 cat >> confdefs.h <<\EOF
9021 #define LWLIB_SCROLLBARS_ATHENA3D 1
9025 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9026 Defining LWLIB_DIALOGS_ATHENA3D
9028 cat >> confdefs.h <<\EOF
9029 #define LWLIB_DIALOGS_ATHENA3D 1
9035 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9036 Defining LWLIB_WIDGETS_ATHENA
9038 cat >> confdefs.h <<\EOF
9039 #define LWLIB_WIDGETS_ATHENA 1
9043 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9044 { test "$extra_verbose" = "yes" && cat << \EOF
9045 Defining LWLIB_TABS_LUCID
9047 cat >> confdefs.h <<\EOF
9048 #define LWLIB_TABS_LUCID 1
9053 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9054 Defining HAVE_MENUBARS
9056 cat >> confdefs.h <<\EOF
9057 #define HAVE_MENUBARS 1
9061 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9062 Defining HAVE_SCROLLBARS
9064 cat >> confdefs.h <<\EOF
9065 #define HAVE_SCROLLBARS 1
9069 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9070 Defining HAVE_DIALOGS
9072 cat >> confdefs.h <<\EOF
9073 #define HAVE_DIALOGS 1
9077 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9078 Defining HAVE_TOOLBARS
9080 cat >> confdefs.h <<\EOF
9081 #define HAVE_TOOLBARS 1
9085 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9086 Defining HAVE_WIDGETS
9088 cat >> confdefs.h <<\EOF
9089 #define HAVE_WIDGETS 1
9094 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9095 Defining LWLIB_MENUBARS_LUCID
9097 cat >> confdefs.h <<\EOF
9098 #define LWLIB_MENUBARS_LUCID 1
9102 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9103 Defining LWLIB_SCROLLBARS_LUCID
9105 cat >> confdefs.h <<\EOF
9106 #define LWLIB_SCROLLBARS_LUCID 1
9111 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9112 Defining LWLIB_MENUBARS_MOTIF
9114 cat >> confdefs.h <<\EOF
9115 #define LWLIB_MENUBARS_MOTIF 1
9119 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9120 Defining LWLIB_SCROLLBARS_MOTIF
9122 cat >> confdefs.h <<\EOF
9123 #define LWLIB_SCROLLBARS_MOTIF 1
9127 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9128 Defining LWLIB_DIALOGS_MOTIF
9130 cat >> confdefs.h <<\EOF
9131 #define LWLIB_DIALOGS_MOTIF 1
9135 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9136 Defining LWLIB_WIDGETS_MOTIF
9138 cat >> confdefs.h <<\EOF
9139 #define LWLIB_WIDGETS_MOTIF 1
9144 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9145 echo " xemacs will be linked with \"menubar.o\""
9147 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9148 echo " xemacs will be linked with \"scrollbar.o\""
9150 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9151 echo " xemacs will be linked with \"dialog.o\""
9153 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9154 echo " xemacs will be linked with \"toolbar.o\""
9157 if test "$with_x11" = "yes"; then
9158 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9159 echo " xemacs will be linked with \"menubar-x.o\""
9161 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9162 echo " xemacs will be linked with \"scrollbar-x.o\""
9164 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9165 echo " xemacs will be linked with \"dialog-x.o\""
9167 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9168 echo " xemacs will be linked with \"toolbar-x.o\""
9170 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9171 echo " xemacs will be linked with \"gui-x.o\""
9176 test -z "$with_mule" && with_mule=no
9177 test -z "$with_file_coding" && with_file_coding=no
9180 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9181 { test "$extra_verbose" = "yes" && cat << \EOF
9182 Defining FILE_CODING
9184 cat >> confdefs.h <<\EOF
9185 #define FILE_CODING 1
9189 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9190 echo " xemacs will be linked with \"file-coding.o\""
9194 if test "$with_mule" = "yes" ; then
9195 echo "checking for Mule-related features" 1>&6
9196 echo "configure:9197: checking for Mule-related features" >&5
9197 { test "$extra_verbose" = "yes" && cat << \EOF
9200 cat >> confdefs.h <<\EOF
9205 { test "$extra_verbose" = "yes" && cat << \EOF
9206 Defining FILE_CODING
9208 cat >> confdefs.h <<\EOF
9209 #define FILE_CODING 1
9213 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9214 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9217 for ac_hdr in libintl.h
9219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9221 echo "configure:9222: checking for $ac_hdr" >&5
9223 cat > conftest.$ac_ext <<EOF
9224 #line 9225 "configure"
9225 #include "confdefs.h"
9228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9229 { (eval echo configure:9230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9231 if test -z "$ac_err"; then
9233 eval "ac_cv_header_$ac_safe=yes"
9236 echo "configure: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9239 eval "ac_cv_header_$ac_safe=no"
9242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9243 echo "$ac_t""yes" 1>&6
9244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9245 { test "$extra_verbose" = "yes" && cat << EOF
9248 cat >> confdefs.h <<EOF
9249 #define $ac_tr_hdr 1
9254 echo "$ac_t""no" 1>&6
9259 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9260 echo "configure:9261: checking for strerror in -lintl" >&5
9261 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9263 xe_check_libs=" -lintl "
9264 cat > conftest.$ac_ext <<EOF
9265 #line 9266 "configure"
9266 #include "confdefs.h"
9267 /* Override any gcc2 internal prototype to avoid an error. */
9268 /* We use char because int might match the return type of a gcc2
9269 builtin and then its argument prototype would still apply. */
9276 if { (eval echo configure:9277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9278 eval "ac_cv_lib_$ac_lib_var=yes"
9280 echo "configure: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9283 eval "ac_cv_lib_$ac_lib_var=no"
9288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9289 echo "$ac_t""yes" 1>&6
9290 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9292 { test "$extra_verbose" = "yes" && cat << EOF
9295 cat >> confdefs.h <<EOF
9296 #define $ac_tr_lib 1
9300 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9303 echo "$ac_t""no" 1>&6
9308 echo "checking for Mule input methods" 1>&6
9309 echo "configure:9310: checking for Mule input methods" >&5
9310 case "$with_xim" in "" | "yes" )
9311 echo "checking for XIM" 1>&6
9312 echo "configure:9313: checking for XIM" >&5
9314 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9315 echo "configure:9316: checking for XOpenIM in -lX11" >&5
9316 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9318 xe_check_libs=" -lX11 "
9319 cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9322 /* Override any gcc2 internal prototype to avoid an error. */
9323 /* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9333 eval "ac_cv_lib_$ac_lib_var=yes"
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9338 eval "ac_cv_lib_$ac_lib_var=no"
9343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9344 echo "$ac_t""yes" 1>&6
9347 echo "$ac_t""no" 1>&6
9352 if test "$have_motif $have_lesstif" = "yes no"; then
9354 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9355 echo "configure:9356: checking for XmImMbLookupString in -lXm" >&5
9356 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9358 xe_check_libs=" -lXm "
9359 cat > conftest.$ac_ext <<EOF
9360 #line 9361 "configure"
9361 #include "confdefs.h"
9362 /* Override any gcc2 internal prototype to avoid an error. */
9363 /* We use char because int might match the return type of a gcc2
9364 builtin and then its argument prototype would still apply. */
9365 char XmImMbLookupString();
9368 XmImMbLookupString()
9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9373 eval "ac_cv_lib_$ac_lib_var=yes"
9375 echo "configure: failed program was:" >&5
9376 cat conftest.$ac_ext >&5
9378 eval "ac_cv_lib_$ac_lib_var=no"
9383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9384 echo "$ac_t""yes" 1>&6
9387 echo "$ac_t""no" 1>&6
9393 if test "$with_xim" != "no"; then
9394 { test "$extra_verbose" = "yes" && cat << \EOF
9397 cat >> confdefs.h <<\EOF
9402 if test "$with_xim" = "xlib"; then
9403 { test "$extra_verbose" = "yes" && cat << \EOF
9406 cat >> confdefs.h <<\EOF
9411 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9412 echo " xemacs will be linked with \"input-method-xlib.o\""
9415 if test "$with_xim" = "motif"; then
9416 { test "$extra_verbose" = "yes" && cat << \EOF
9419 cat >> confdefs.h <<\EOF
9425 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9426 echo " xemacs will be linked with \"input-method-motif.o\""
9429 if test "$with_xim" = "motif"; then
9434 if test "$with_xfs" = "yes" ; then
9435 echo "checking for XFontSet" 1>&6
9436 echo "configure:9437: checking for XFontSet" >&5
9438 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9439 echo "configure:9440: checking for XmbDrawString in -lX11" >&5
9440 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9442 xe_check_libs=" -lX11 "
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9446 /* Override any gcc2 internal prototype to avoid an error. */
9447 /* We use char because int might match the return type of a gcc2
9448 builtin and then its argument prototype would still apply. */
9449 char XmbDrawString();
9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9457 eval "ac_cv_lib_$ac_lib_var=yes"
9459 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9462 eval "ac_cv_lib_$ac_lib_var=no"
9467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9468 echo "$ac_t""yes" 1>&6
9471 echo "$ac_t""no" 1>&6
9476 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9477 { test "$extra_verbose" = "yes" && cat << \EOF
9478 Defining USE_XFONTSET
9480 cat >> confdefs.h <<\EOF
9481 #define USE_XFONTSET 1
9485 if test "$with_xim" = "no" ; then
9486 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9487 echo " xemacs will be linked with \"input-method-xlib.o\""
9492 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9493 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9494 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9495 echo "configure:9496: checking for wnn/jllib.h" >&5
9497 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 #include <wnn/jllib.h>
9502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9503 { (eval echo configure:9504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9505 if test -z "$ac_err"; then
9507 eval "ac_cv_header_$ac_safe=yes"
9510 echo "configure: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9513 eval "ac_cv_header_$ac_safe=no"
9516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9517 echo "$ac_t""yes" 1>&6
9520 echo "$ac_t""no" 1>&6
9524 if test "$with_wnn" != "no"; then
9525 for ac_func in crypt
9527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9528 echo "configure:9529: checking for $ac_func" >&5
9530 cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 /* System header to define __stub macros and hopefully few prototypes,
9534 which can conflict with char $ac_func(); below. */
9536 /* Override any gcc2 internal prototype to avoid an error. */
9537 /* We use char because int might match the return type of a gcc2
9538 builtin and then its argument prototype would still apply. */
9543 /* The GNU C library defines this for functions which it implements
9544 to always fail with ENOSYS. Some functions are actually named
9545 something starting with __ and the normal name is an alias. */
9546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9554 if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9556 eval "ac_cv_func_$ac_func=yes"
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9561 eval "ac_cv_func_$ac_func=no"
9565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9566 echo "$ac_t""yes" 1>&6
9567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9568 { test "$extra_verbose" = "yes" && cat << EOF
9569 Defining $ac_tr_func
9571 cat >> confdefs.h <<EOF
9572 #define $ac_tr_func 1
9577 echo "$ac_t""no" 1>&6
9581 test "$ac_cv_func_crypt" != "yes" && {
9582 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9583 echo "configure:9584: checking for crypt in -lcrypt" >&5
9584 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9586 xe_check_libs=" -lcrypt "
9587 cat > conftest.$ac_ext <<EOF
9588 #line 9589 "configure"
9589 #include "confdefs.h"
9590 /* Override any gcc2 internal prototype to avoid an error. */
9591 /* We use char because int might match the return type of a gcc2
9592 builtin and then its argument prototype would still apply. */
9599 if { (eval echo configure:9600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9601 eval "ac_cv_lib_$ac_lib_var=yes"
9603 echo "configure: failed program was:" >&5
9604 cat conftest.$ac_ext >&5
9606 eval "ac_cv_lib_$ac_lib_var=no"
9611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9612 echo "$ac_t""yes" 1>&6
9613 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9614 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9615 { test "$extra_verbose" = "yes" && cat << EOF
9618 cat >> confdefs.h <<EOF
9619 #define $ac_tr_lib 1
9623 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9626 echo "$ac_t""no" 1>&6
9631 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9633 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9634 echo "configure:9635: checking for jl_dic_list_e in -lwnn" >&5
9635 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9637 xe_check_libs=" -lwnn "
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9641 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644 char jl_dic_list_e();
9650 if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9652 eval "ac_cv_lib_$ac_lib_var=yes"
9654 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9657 eval "ac_cv_lib_$ac_lib_var=no"
9662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9663 echo "$ac_t""yes" 1>&6
9666 echo "$ac_t""no" 1>&6
9667 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9668 echo "configure:9669: checking for jl_dic_list_e in -lwnn4" >&5
9669 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9671 xe_check_libs=" -lwnn4 "
9672 cat > conftest.$ac_ext <<EOF
9673 #line 9674 "configure"
9674 #include "confdefs.h"
9675 /* Override any gcc2 internal prototype to avoid an error. */
9676 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9678 char jl_dic_list_e();
9684 if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9686 eval "ac_cv_lib_$ac_lib_var=yes"
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9691 eval "ac_cv_lib_$ac_lib_var=no"
9696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9697 echo "$ac_t""yes" 1>&6
9700 echo "$ac_t""no" 1>&6
9701 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9702 echo "configure:9703: checking for jl_dic_list_e in -lwnn6" >&5
9703 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9705 xe_check_libs=" -lwnn6 "
9706 cat > conftest.$ac_ext <<EOF
9707 #line 9708 "configure"
9708 #include "confdefs.h"
9709 /* Override any gcc2 internal prototype to avoid an error. */
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9712 char jl_dic_list_e();
9718 if { (eval echo configure:9719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9720 eval "ac_cv_lib_$ac_lib_var=yes"
9722 echo "configure: failed program was:" >&5
9723 cat conftest.$ac_ext >&5
9725 eval "ac_cv_lib_$ac_lib_var=no"
9730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9731 echo "$ac_t""yes" 1>&6
9734 echo "$ac_t""no" 1>&6
9735 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9736 echo "configure:9737: checking for dic_list_e in -lwnn6_fromsrc" >&5
9737 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9739 xe_check_libs=" -lwnn6_fromsrc "
9740 cat > conftest.$ac_ext <<EOF
9741 #line 9742 "configure"
9742 #include "confdefs.h"
9743 /* Override any gcc2 internal prototype to avoid an error. */
9744 /* We use char because int might match the return type of a gcc2
9745 builtin and then its argument prototype would still apply. */
9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9754 eval "ac_cv_lib_$ac_lib_var=yes"
9756 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9759 eval "ac_cv_lib_$ac_lib_var=no"
9764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9765 echo "$ac_t""yes" 1>&6
9768 echo "$ac_t""no" 1>&6
9783 test -z "$with_wnn" && with_wnn=yes
9784 if test "$with_wnn" = "yes"; then
9785 { test "$extra_verbose" = "yes" && cat << \EOF
9788 cat >> confdefs.h <<\EOF
9793 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9794 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9795 echo " xemacs will be linked with \"mule-wnnfns.o\""
9797 if test "$with_wnn6" != "no"; then
9799 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9800 echo "configure:9801: checking for jl_fi_dic_list in -l$libwnn" >&5
9801 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9803 xe_check_libs=" -l$libwnn "
9804 cat > conftest.$ac_ext <<EOF
9805 #line 9806 "configure"
9806 #include "confdefs.h"
9807 /* Override any gcc2 internal prototype to avoid an error. */
9808 /* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9810 char jl_fi_dic_list();
9816 if { (eval echo configure:9817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9818 eval "ac_cv_lib_$ac_lib_var=yes"
9820 echo "configure: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9823 eval "ac_cv_lib_$ac_lib_var=no"
9828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9829 echo "$ac_t""yes" 1>&6
9832 echo "$ac_t""no" 1>&6
9836 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9839 cat >> confdefs.h <<\EOF
9847 canna_includes_found=no
9848 if test "$with_canna" != "no"; then
9849 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9850 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9851 echo "configure:9852: checking for canna/jrkanji.h" >&5
9853 cat > conftest.$ac_ext <<EOF
9854 #line 9855 "configure"
9855 #include "confdefs.h"
9856 #include <canna/jrkanji.h>
9858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9859 { (eval echo configure:9860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9861 if test -z "$ac_err"; then
9863 eval "ac_cv_header_$ac_safe=yes"
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9869 eval "ac_cv_header_$ac_safe=no"
9872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9873 echo "$ac_t""yes" 1>&6
9874 canna_includes_found=yes
9876 echo "$ac_t""no" 1>&6
9880 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9881 -d "/usr/local/canna/include"; then
9882 save_c_switch_site="$c_switch_site"
9883 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9884 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9885 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9886 echo "configure:9887: checking for canna/jrkanji.h" >&5
9888 cat > conftest.$ac_ext <<EOF
9889 #line 9890 "configure"
9890 #include "confdefs.h"
9891 #include <canna/jrkanji.h>
9893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9894 { (eval echo configure:9895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9896 if test -z "$ac_err"; then
9898 eval "ac_cv_header_$ac_safe=yes"
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9904 eval "ac_cv_header_$ac_safe=no"
9907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9908 echo "$ac_t""yes" 1>&6
9909 canna_includes_found=yes
9911 echo "$ac_t""no" 1>&6
9914 if test "$canna_includes_found" != "yes"; then
9915 c_switch_site="$save_c_switch_site"
9920 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9921 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9922 echo "configure:9923: checking for canna/RK.h" >&5
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 #include <canna/RK.h>
9929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9930 { (eval echo configure:9931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9932 if test -z "$ac_err"; then
9934 eval "ac_cv_header_$ac_safe=yes"
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9940 eval "ac_cv_header_$ac_safe=no"
9943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9944 echo "$ac_t""yes" 1>&6
9947 echo "$ac_t""no" 1>&6
9951 test -z "$with_canna" && {
9952 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9953 echo "configure:9954: checking for RkBgnBun in -lRKC" >&5
9954 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9956 xe_check_libs=" -lRKC "
9957 cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure"
9959 #include "confdefs.h"
9960 /* Override any gcc2 internal prototype to avoid an error. */
9961 /* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9971 eval "ac_cv_lib_$ac_lib_var=yes"
9973 echo "configure: failed program was:" >&5
9974 cat conftest.$ac_ext >&5
9976 eval "ac_cv_lib_$ac_lib_var=no"
9981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9982 echo "$ac_t""yes" 1>&6
9985 echo "$ac_t""no" 1>&6
9990 test -z "$with_canna" && {
9991 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9992 echo "configure:9993: checking for jrKanjiControl in -lcanna" >&5
9993 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9995 xe_check_libs=" -lcanna "
9996 cat > conftest.$ac_ext <<EOF
9997 #line 9998 "configure"
9998 #include "confdefs.h"
9999 /* Override any gcc2 internal prototype to avoid an error. */
10000 /* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10002 char jrKanjiControl();
10008 if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10010 eval "ac_cv_lib_$ac_lib_var=yes"
10012 echo "configure: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10015 eval "ac_cv_lib_$ac_lib_var=no"
10020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10021 echo "$ac_t""yes" 1>&6
10024 echo "$ac_t""no" 1>&6
10029 test -z "$with_canna" && with_canna=yes
10030 if test "$with_canna" = "yes"; then
10031 { test "$extra_verbose" = "yes" && cat << \EOF
10032 Defining HAVE_CANNA
10034 cat >> confdefs.h <<\EOF
10035 #define HAVE_CANNA 1
10039 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10040 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10041 echo " xemacs will be linked with \"mule-canna.o\""
10045 else for feature in xim canna wnn; do
10046 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10047 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10049 eval "with_${feature}=no"
10053 if test "$need_motif" = "yes" ; then
10054 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10056 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10057 echo "configure:10058: checking for layout_object_getvalue in -li18n" >&5
10058 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10060 xe_check_libs=" -li18n "
10061 cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure"
10063 #include "confdefs.h"
10064 /* Override any gcc2 internal prototype to avoid an error. */
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067 char layout_object_getvalue();
10070 layout_object_getvalue()
10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10075 eval "ac_cv_lib_$ac_lib_var=yes"
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 eval "ac_cv_lib_$ac_lib_var=no"
10085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10086 echo "$ac_t""yes" 1>&6
10087 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10089 echo "$ac_t""no" 1>&6
10094 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10095 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10096 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10098 runpath="" runpath_dirs=""
10099 if test -n "$LD_RUN_PATH"; then
10100 runpath="$LD_RUN_PATH"
10101 elif test "$GCC" = "yes"; then
10102 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10103 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10104 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10105 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10106 case "$arg" in P,* | -L* | -R* )
10107 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10109 xe_runpath_dir="$dir"
10110 test "$xe_runpath_dir" != "/lib" -a \
10111 "$xe_runpath_dir" != "/usr/lib" -a \
10112 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10113 eval "$xe_add_unique_runpath_dir"
10118 ld_switch_run="$ld_switch_run_save"
10121 for arg in $ld_switch_site $ld_switch_x_site; do
10122 case "$arg" in -L*) {
10123 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10124 test "$xe_runpath_dir" != "/lib" -a \
10125 "$xe_runpath_dir" != "/usr/lib" -a \
10126 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10127 eval "$xe_add_unique_runpath_dir"
10130 if test "$opsys $need_motif" = "sol2 yes"; then
10131 xe_runpath_dir="/opt/SUNWdt/lib";
10132 eval "$xe_add_unique_runpath_dir";
10135 if test -n "$runpath"; then
10136 ld_switch_run="${dash_r}${runpath}"
10138 if test "$GCC" = "yes"; then
10139 set x $ld_switch_run; shift; ld_switch_run=""
10140 while test -n "$1"; do
10142 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10143 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10145 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10150 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10156 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
10158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10159 echo "configure:10160: checking for $ac_func" >&5
10161 cat > conftest.$ac_ext <<EOF
10162 #line 10163 "configure"
10163 #include "confdefs.h"
10164 /* System header to define __stub macros and hopefully few prototypes,
10165 which can conflict with char $ac_func(); below. */
10166 #include <assert.h>
10167 /* Override any gcc2 internal prototype to avoid an error. */
10168 /* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10174 /* The GNU C library defines this for functions which it implements
10175 to always fail with ENOSYS. Some functions are actually named
10176 something starting with __ and the normal name is an alias. */
10177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10185 if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10187 eval "ac_cv_func_$ac_func=yes"
10189 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10192 eval "ac_cv_func_$ac_func=no"
10196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10197 echo "$ac_t""yes" 1>&6
10198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10199 { test "$extra_verbose" = "yes" && cat << EOF
10200 Defining $ac_tr_func
10202 cat >> confdefs.h <<EOF
10203 #define $ac_tr_func 1
10208 echo "$ac_t""no" 1>&6
10213 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10216 echo "configure:10217: checking for $ac_func" >&5
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 /* System header to define __stub macros and hopefully few prototypes,
10222 which can conflict with char $ac_func(); below. */
10223 #include <assert.h>
10224 /* Override any gcc2 internal prototype to avoid an error. */
10225 /* We use char because int might match the return type of a gcc2
10226 builtin and then its argument prototype would still apply. */
10231 /* The GNU C library defines this for functions which it implements
10232 to always fail with ENOSYS. Some functions are actually named
10233 something starting with __ and the normal name is an alias. */
10234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10242 if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10244 eval "ac_cv_func_$ac_func=yes"
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10249 eval "ac_cv_func_$ac_func=no"
10253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10254 echo "$ac_t""yes" 1>&6
10255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10256 { test "$extra_verbose" = "yes" && cat << EOF
10257 Defining $ac_tr_func
10259 cat >> confdefs.h <<EOF
10260 #define $ac_tr_func 1
10265 echo "$ac_t""no" 1>&6
10270 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10271 echo "configure:10272: checking for openpty" >&5
10273 cat > conftest.$ac_ext <<EOF
10274 #line 10275 "configure"
10275 #include "confdefs.h"
10276 /* System header to define __stub macros and hopefully few prototypes,
10277 which can conflict with char openpty(); below. */
10278 #include <assert.h>
10279 /* Override any gcc2 internal prototype to avoid an error. */
10280 /* We use char because int might match the return type of a gcc2
10281 builtin and then its argument prototype would still apply. */
10286 /* The GNU C library defines this for functions which it implements
10287 to always fail with ENOSYS. Some functions are actually named
10288 something starting with __ and the normal name is an alias. */
10289 #if defined (__stub_openpty) || defined (__stub___openpty)
10297 if { (eval echo configure:10298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10299 eval "ac_cv_func_openpty=yes"
10301 echo "configure: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10304 eval "ac_cv_func_openpty=no"
10308 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10309 echo "$ac_t""yes" 1>&6
10312 echo "$ac_t""no" 1>&6
10315 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10316 echo "configure:10317: checking for openpty in -lutil" >&5
10317 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10319 xe_check_libs=" -lutil "
10320 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10323 /* Override any gcc2 internal prototype to avoid an error. */
10324 /* We use char because int might match the return type of a gcc2
10325 builtin and then its argument prototype would still apply. */
10332 if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10334 eval "ac_cv_lib_$ac_lib_var=yes"
10336 echo "configure: failed program was:" >&5
10337 cat conftest.$ac_ext >&5
10339 eval "ac_cv_lib_$ac_lib_var=no"
10344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10345 echo "$ac_t""yes" 1>&6
10346 have_openpty=yes need_libutil=yes
10348 echo "$ac_t""no" 1>&6
10354 if test "$have_openpty" = "yes"; then
10355 { test "$extra_verbose" = "yes" && cat << \EOF
10356 Defining HAVE_OPENPTY
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_OPENPTY 1
10363 for ac_hdr in pty.h libutil.h
10365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10367 echo "configure:10368: checking for $ac_hdr" >&5
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10375 { (eval echo configure:10376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10377 if test -z "$ac_err"; then
10379 eval "ac_cv_header_$ac_safe=yes"
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10385 eval "ac_cv_header_$ac_safe=no"
10388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10389 echo "$ac_t""yes" 1>&6
10390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10391 { test "$extra_verbose" = "yes" && cat << EOF
10392 Defining $ac_tr_hdr
10394 cat >> confdefs.h <<EOF
10395 #define $ac_tr_hdr 1
10400 echo "$ac_t""no" 1>&6
10404 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
10407 for ac_hdr in stropts.h
10409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10411 echo "configure:10412: checking for $ac_hdr" >&5
10413 cat > conftest.$ac_ext <<EOF
10414 #line 10415 "configure"
10415 #include "confdefs.h"
10418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10419 { (eval echo configure:10420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10421 if test -z "$ac_err"; then
10423 eval "ac_cv_header_$ac_safe=yes"
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10429 eval "ac_cv_header_$ac_safe=no"
10432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10433 echo "$ac_t""yes" 1>&6
10434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10435 { test "$extra_verbose" = "yes" && cat << EOF
10436 Defining $ac_tr_hdr
10438 cat >> confdefs.h <<EOF
10439 #define $ac_tr_hdr 1
10444 echo "$ac_t""no" 1>&6
10448 if test "$ac_cv_header_stropts_h" = "yes"; then
10449 for ac_func in isastream
10451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10452 echo "configure:10453: checking for $ac_func" >&5
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10457 /* System header to define __stub macros and hopefully few prototypes,
10458 which can conflict with char $ac_func(); below. */
10459 #include <assert.h>
10460 /* Override any gcc2 internal prototype to avoid an error. */
10461 /* We use char because int might match the return type of a gcc2
10462 builtin and then its argument prototype would still apply. */
10467 /* The GNU C library defines this for functions which it implements
10468 to always fail with ENOSYS. Some functions are actually named
10469 something starting with __ and the normal name is an alias. */
10470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10478 if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10480 eval "ac_cv_func_$ac_func=yes"
10482 echo "configure: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10485 eval "ac_cv_func_$ac_func=no"
10489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10490 echo "$ac_t""yes" 1>&6
10491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10492 { test "$extra_verbose" = "yes" && cat << EOF
10493 Defining $ac_tr_func
10495 cat >> confdefs.h <<EOF
10496 #define $ac_tr_func 1
10501 echo "$ac_t""no" 1>&6
10505 for ac_hdr in strtio.h
10507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10509 echo "configure:10510: checking for $ac_hdr" >&5
10511 cat > conftest.$ac_ext <<EOF
10512 #line 10513 "configure"
10513 #include "confdefs.h"
10516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10517 { (eval echo configure:10518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10519 if test -z "$ac_err"; then
10521 eval "ac_cv_header_$ac_safe=yes"
10524 echo "configure: failed program was:" >&5
10525 cat conftest.$ac_ext >&5
10527 eval "ac_cv_header_$ac_safe=no"
10530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10531 echo "$ac_t""yes" 1>&6
10532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10533 { test "$extra_verbose" = "yes" && cat << EOF
10534 Defining $ac_tr_hdr
10536 cat >> confdefs.h <<EOF
10537 #define $ac_tr_hdr 1
10542 echo "$ac_t""no" 1>&6
10547 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
10548 echo " xemacs will be linked with \"realpath.o\""
10551 for ac_func in getloadavg
10553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10554 echo "configure:10555: checking for $ac_func" >&5
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10559 /* System header to define __stub macros and hopefully few prototypes,
10560 which can conflict with char $ac_func(); below. */
10561 #include <assert.h>
10562 /* Override any gcc2 internal prototype to avoid an error. */
10563 /* We use char because int might match the return type of a gcc2
10564 builtin and then its argument prototype would still apply. */
10569 /* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
10572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10580 if { (eval echo configure:10581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10582 eval "ac_cv_func_$ac_func=yes"
10584 echo "configure: failed program was:" >&5
10585 cat conftest.$ac_ext >&5
10587 eval "ac_cv_func_$ac_func=no"
10591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10592 echo "$ac_t""yes" 1>&6
10593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10594 { test "$extra_verbose" = "yes" && cat << EOF
10595 Defining $ac_tr_func
10597 cat >> confdefs.h <<EOF
10598 #define $ac_tr_func 1
10603 echo "$ac_t""no" 1>&6
10608 if test "$ac_cv_func_getloadavg" = "yes"; then
10609 for ac_hdr in sys/loadavg.h
10611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10613 echo "configure:10614: checking for $ac_hdr" >&5
10615 cat > conftest.$ac_ext <<EOF
10616 #line 10617 "configure"
10617 #include "confdefs.h"
10620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10621 { (eval echo configure:10622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10623 if test -z "$ac_err"; then
10625 eval "ac_cv_header_$ac_safe=yes"
10628 echo "configure: failed program was:" >&5
10629 cat conftest.$ac_ext >&5
10631 eval "ac_cv_header_$ac_safe=no"
10634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10635 echo "$ac_t""yes" 1>&6
10636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10637 { test "$extra_verbose" = "yes" && cat << EOF
10638 Defining $ac_tr_hdr
10640 cat >> confdefs.h <<EOF
10641 #define $ac_tr_hdr 1
10646 echo "$ac_t""no" 1>&6
10651 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10652 echo " xemacs will be linked with \"getloadavg.o\""
10656 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10657 echo "configure:10658: checking for kstat_open in -lkstat" >&5
10658 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10660 xe_check_libs=" -lkstat "
10661 cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10664 /* Override any gcc2 internal prototype to avoid an error. */
10665 /* We use char because int might match the return type of a gcc2
10666 builtin and then its argument prototype would still apply. */
10673 if { (eval echo configure:10674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10675 eval "ac_cv_lib_$ac_lib_var=yes"
10677 echo "configure: failed program was:" >&5
10678 cat conftest.$ac_ext >&5
10680 eval "ac_cv_lib_$ac_lib_var=no"
10685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10686 echo "$ac_t""yes" 1>&6
10687 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10688 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10689 { test "$extra_verbose" = "yes" && cat << EOF
10690 Defining $ac_tr_lib
10692 cat >> confdefs.h <<EOF
10693 #define $ac_tr_lib 1
10697 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10700 echo "$ac_t""no" 1>&6
10704 for ac_hdr in kstat.h
10706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10708 echo "configure:10709: checking for $ac_hdr" >&5
10710 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10716 { (eval echo configure:10717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10718 if test -z "$ac_err"; then
10720 eval "ac_cv_header_$ac_safe=yes"
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10726 eval "ac_cv_header_$ac_safe=no"
10729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10730 echo "$ac_t""yes" 1>&6
10731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10732 { test "$extra_verbose" = "yes" && cat << EOF
10733 Defining $ac_tr_hdr
10735 cat >> confdefs.h <<EOF
10736 #define $ac_tr_hdr 1
10741 echo "$ac_t""no" 1>&6
10747 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10748 echo "configure:10749: checking for kvm_read in -lkvm" >&5
10749 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10751 xe_check_libs=" -lkvm "
10752 cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure"
10754 #include "confdefs.h"
10755 /* Override any gcc2 internal prototype to avoid an error. */
10756 /* We use char because int might match the return type of a gcc2
10757 builtin and then its argument prototype would still apply. */
10764 if { (eval echo configure:10765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10766 eval "ac_cv_lib_$ac_lib_var=yes"
10768 echo "configure: failed program was:" >&5
10769 cat conftest.$ac_ext >&5
10771 eval "ac_cv_lib_$ac_lib_var=no"
10776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10777 echo "$ac_t""yes" 1>&6
10778 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10780 { test "$extra_verbose" = "yes" && cat << EOF
10781 Defining $ac_tr_lib
10783 cat >> confdefs.h <<EOF
10784 #define $ac_tr_lib 1
10788 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10791 echo "$ac_t""no" 1>&6
10797 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10798 echo "configure:10799: checking whether netdb declares h_errno" >&5
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10807 if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10809 echo "$ac_t""yes" 1>&6
10810 { test "$extra_verbose" = "yes" && cat << \EOF
10811 Defining HAVE_H_ERRNO
10813 cat >> confdefs.h <<\EOF
10814 #define HAVE_H_ERRNO 1
10819 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5
10822 echo "$ac_t""no" 1>&6
10826 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10827 echo "configure:10828: checking for sigsetjmp" >&5
10828 cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure"
10830 #include "confdefs.h"
10831 #include <setjmp.h>
10833 sigjmp_buf bar; sigsetjmp (bar, 0);
10836 if { (eval echo configure:10837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10838 echo "$ac_t""yes" 1>&6
10839 { test "$extra_verbose" = "yes" && cat << \EOF
10840 Defining HAVE_SIGSETJMP
10842 cat >> confdefs.h <<\EOF
10843 #define HAVE_SIGSETJMP 1
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10851 echo "$ac_t""no" 1>&6
10855 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10856 echo "configure:10857: checking whether localtime caches TZ" >&5
10858 if test "$ac_cv_func_tzset" = "yes"; then
10859 cat > conftest.$ac_ext <<EOF
10860 #line 10861 "configure"
10861 #include "confdefs.h"
10864 # include <stdlib.h>
10866 extern char **environ;
10870 for (to = from = environ; (*to = *from); from++)
10871 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10874 char TZ_GMT0[] = "TZ=GMT0";
10875 char TZ_PST8[] = "TZ=PST8";
10878 time_t now = time ((time_t *) 0);
10879 int hour_GMT0, hour_unset;
10880 if (putenv (TZ_GMT0) != 0)
10882 hour_GMT0 = localtime (&now)->tm_hour;
10884 hour_unset = localtime (&now)->tm_hour;
10885 if (putenv (TZ_PST8) != 0)
10887 if (localtime (&now)->tm_hour == hour_GMT0)
10890 if (localtime (&now)->tm_hour != hour_unset)
10895 if { (eval echo configure:10896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10897 emacs_cv_localtime_cache=no
10900 echo "configure: failed program was:" >&5
10901 cat conftest.$ac_ext >&5
10903 emacs_cv_localtime_cache=yes
10907 # If we lack tzset, report that localtime does not cache TZ,
10908 # since we can't invalidate the cache if we don't have tzset.
10909 emacs_cv_localtime_cache=no
10911 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10912 if test $emacs_cv_localtime_cache = yes; then
10913 { test "$extra_verbose" = "yes" && cat << \EOF
10914 Defining LOCALTIME_CACHE
10916 cat >> confdefs.h <<\EOF
10917 #define LOCALTIME_CACHE 1
10923 if test "$HAVE_TIMEVAL" = "yes"; then
10924 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10925 echo "configure:10926: checking whether gettimeofday accepts one or two arguments" >&5
10926 cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure"
10928 #include "confdefs.h"
10930 #ifdef TIME_WITH_SYS_TIME
10931 #include <sys/time.h>
10934 #ifdef HAVE_SYS_TIME_H
10935 #include <sys/time.h>
10943 struct timeval time;
10944 gettimeofday (&time, 0);
10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10950 echo "$ac_t""two" 1>&6
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10955 echo "$ac_t""one" 1>&6
10956 { test "$extra_verbose" = "yes" && cat << \EOF
10957 Defining GETTIMEOFDAY_ONE_ARGUMENT
10959 cat >> confdefs.h <<\EOF
10960 #define GETTIMEOFDAY_ONE_ARGUMENT 1
10969 echo $ac_n "checking for inline""... $ac_c" 1>&6
10970 echo "configure:10971: checking for inline" >&5
10973 for ac_kw in inline __inline__ __inline; do
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10982 if { (eval echo configure:10983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10984 ac_cv_c_inline=$ac_kw; break
10986 echo "configure: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10993 echo "$ac_t""$ac_cv_c_inline" 1>&6
10994 case "$ac_cv_c_inline" in
10996 no) { test "$extra_verbose" = "yes" && cat << \EOF
10999 cat >> confdefs.h <<\EOF
11004 *) { test "$extra_verbose" = "yes" && cat << EOF
11005 Defining inline = $ac_cv_c_inline
11007 cat >> confdefs.h <<EOF
11008 #define inline $ac_cv_c_inline
11014 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11015 echo " xemacs will be linked with \"inline.o\""
11019 if test "$__DECC" != "yes"; then
11020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11021 # for constant arguments. Useless!
11022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11023 echo "configure:11024: checking for working alloca.h" >&5
11025 cat > conftest.$ac_ext <<EOF
11026 #line 11027 "configure"
11027 #include "confdefs.h"
11028 #include <alloca.h>
11030 char *p = alloca(2 * sizeof(int));
11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11035 ac_cv_header_alloca_h=yes
11037 echo "configure: failed program was:" >&5
11038 cat conftest.$ac_ext >&5
11040 ac_cv_header_alloca_h=no
11044 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11045 if test $ac_cv_header_alloca_h = yes; then
11046 { test "$extra_verbose" = "yes" && cat << \EOF
11047 Defining HAVE_ALLOCA_H
11049 cat >> confdefs.h <<\EOF
11050 #define HAVE_ALLOCA_H 1
11056 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11057 echo "configure:11058: checking for alloca" >&5
11059 cat > conftest.$ac_ext <<EOF
11060 #line 11061 "configure"
11061 #include "confdefs.h"
11064 # define alloca __builtin_alloca
11067 # include <malloc.h>
11068 # define alloca _alloca
11071 # include <alloca.h>
11076 # ifndef alloca /* predefined by HP cc +Olibcalls */
11085 char *p = (char *) alloca(1);
11088 if { (eval echo configure:11089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11090 ac_cv_func_alloca_works=yes
11092 echo "configure: failed program was:" >&5
11093 cat conftest.$ac_ext >&5
11095 ac_cv_func_alloca_works=no
11099 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11100 if test $ac_cv_func_alloca_works = yes; then
11101 { test "$extra_verbose" = "yes" && cat << \EOF
11102 Defining HAVE_ALLOCA
11104 cat >> confdefs.h <<\EOF
11105 #define HAVE_ALLOCA 1
11111 if test $ac_cv_func_alloca_works = no; then
11112 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11113 # that cause trouble. Some versions do not even contain alloca or
11114 # contain a buggy version. If you still want to use their alloca,
11115 # use ar to extract alloca.o from them instead of compiling alloca.c.
11116 ALLOCA=alloca.${ac_objext}
11117 { test "$extra_verbose" = "yes" && cat << \EOF
11120 cat >> confdefs.h <<\EOF
11126 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11127 echo "configure:11128: checking whether alloca needs Cray hooks" >&5
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11132 #if defined(CRAY) && ! defined(CRAY2)
11139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11140 egrep "webecray" >/dev/null 2>&1; then
11150 echo "$ac_t""$ac_cv_os_cray" 1>&6
11151 if test $ac_cv_os_cray = yes; then
11152 for ac_func in _getb67 GETB67 getb67; do
11153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11154 echo "configure:11155: checking for $ac_func" >&5
11156 cat > conftest.$ac_ext <<EOF
11157 #line 11158 "configure"
11158 #include "confdefs.h"
11159 /* System header to define __stub macros and hopefully few prototypes,
11160 which can conflict with char $ac_func(); below. */
11161 #include <assert.h>
11162 /* Override any gcc2 internal prototype to avoid an error. */
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11182 eval "ac_cv_func_$ac_func=yes"
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11187 eval "ac_cv_func_$ac_func=no"
11191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11192 echo "$ac_t""yes" 1>&6
11193 { test "$extra_verbose" = "yes" && cat << EOF
11194 Defining CRAY_STACKSEG_END = $ac_func
11196 cat >> confdefs.h <<EOF
11197 #define CRAY_STACKSEG_END $ac_func
11203 echo "$ac_t""no" 1>&6
11209 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11210 echo "configure:11211: checking stack direction for C alloca" >&5
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 find_stack_direction ()
11217 static char *addr = 0;
11222 return find_stack_direction ();
11225 return (&dummy > addr) ? 1 : -1;
11229 exit (find_stack_direction() < 0);
11232 if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11234 ac_cv_c_stack_direction=1
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11240 ac_cv_c_stack_direction=-1
11244 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11245 { test "$extra_verbose" = "yes" && cat << EOF
11246 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11248 cat >> confdefs.h <<EOF
11249 #define STACK_DIRECTION $ac_cv_c_stack_direction
11255 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11256 echo " xemacs will be linked with \"$ALLOCA\""
11260 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11261 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11262 echo "configure:11263: checking for vfork.h" >&5
11264 cat > conftest.$ac_ext <<EOF
11265 #line 11266 "configure"
11266 #include "confdefs.h"
11269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11270 { (eval echo configure:11271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11272 if test -z "$ac_err"; then
11274 eval "ac_cv_header_$ac_safe=yes"
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11280 eval "ac_cv_header_$ac_safe=no"
11283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11284 echo "$ac_t""yes" 1>&6
11285 { test "$extra_verbose" = "yes" && cat << \EOF
11286 Defining HAVE_VFORK_H
11288 cat >> confdefs.h <<\EOF
11289 #define HAVE_VFORK_H 1
11294 echo "$ac_t""no" 1>&6
11297 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11298 echo "configure:11299: checking for working vfork" >&5
11300 cat > conftest.$ac_ext <<EOF
11301 #line 11302 "configure"
11302 #include "confdefs.h"
11303 /* Thanks to Paul Eggert for this test. */
11305 #include <sys/types.h>
11306 #include <sys/stat.h>
11307 #ifdef HAVE_UNISTD_H
11308 #include <unistd.h>
11310 #ifdef HAVE_VFORK_H
11313 /* On some sparc systems, changes by the child to local and incoming
11314 argument registers are propagated back to the parent.
11315 The compiler is told about this with #include <vfork.h>,
11316 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11317 Test for this by using a static variable whose address
11318 is put into a register that is clobbered by the vfork. */
11321 sparc_address_test (int arg)
11323 sparc_address_test (arg) int arg;
11326 static pid_t child;
11341 pid_t parent = getpid ();
11344 sparc_address_test ();
11349 /* Here is another test for sparc vfork register problems.
11350 This test uses lots of local variables, at least
11351 as many local variables as main has allocated so far
11352 including compiler temporaries. 4 locals are enough for
11353 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11354 A buggy compiler should reuse the register of parent
11355 for one of the local variables, since it will think that
11356 parent can't possibly be used any more in this routine.
11357 Assigning to the local variable will thus munge parent
11358 in the parent process. */
11360 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11361 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11362 /* Convince the compiler that p..p7 are live; otherwise, it might
11363 use the same hardware register for all 8 local variables. */
11364 if (p != p1 || p != p2 || p != p3 || p != p4
11365 || p != p5 || p != p6 || p != p7)
11368 /* On some systems (e.g. IRIX 3.3),
11369 vfork doesn't separate parent from child file descriptors.
11370 If the child closes a descriptor before it execs or exits,
11371 this munges the parent's descriptor as well.
11372 Test for this by closing stdout in the child. */
11373 _exit(close(fileno(stdout)) != 0);
11378 while (wait(&status) != child)
11381 /* Was there some problem with vforking? */
11384 /* Did the child fail? (This shouldn't happen.) */
11387 /* Did the vfork/compiler bug occur? */
11388 || parent != getpid()
11390 /* Did the file descriptor bug occur? */
11391 || fstat(fileno(stdout), &st) != 0
11396 if { (eval echo configure:11397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11398 ac_cv_func_vfork_works=yes
11401 echo "configure: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11404 ac_cv_func_vfork_works=no
11408 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
11409 if test $ac_cv_func_vfork_works = no; then
11410 { test "$extra_verbose" = "yes" && cat << \EOF
11411 Defining vfork = fork
11413 cat >> confdefs.h <<\EOF
11421 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11422 echo "configure:11423: checking for working strcoll" >&5
11424 cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11427 #include <string.h>
11430 exit (strcoll ("abc", "def") >= 0 ||
11431 strcoll ("ABC", "DEF") >= 0 ||
11432 strcoll ("123", "456") >= 0);
11435 if { (eval echo configure:11436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11437 ac_cv_func_strcoll_works=yes
11440 echo "configure: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11443 ac_cv_func_strcoll_works=no
11447 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
11448 if test $ac_cv_func_strcoll_works = yes; then
11449 { test "$extra_verbose" = "yes" && cat << \EOF
11450 Defining HAVE_STRCOLL
11452 cat >> confdefs.h <<\EOF
11453 #define HAVE_STRCOLL 1
11460 for ac_func in getpgrp
11462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11463 echo "configure:11464: checking for $ac_func" >&5
11465 cat > conftest.$ac_ext <<EOF
11466 #line 11467 "configure"
11467 #include "confdefs.h"
11468 /* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char $ac_func(); below. */
11470 #include <assert.h>
11471 /* Override any gcc2 internal prototype to avoid an error. */
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11478 /* The GNU C library defines this for functions which it implements
11479 to always fail with ENOSYS. Some functions are actually named
11480 something starting with __ and the normal name is an alias. */
11481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11489 if { (eval echo configure:11490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11491 eval "ac_cv_func_$ac_func=yes"
11493 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11496 eval "ac_cv_func_$ac_func=no"
11500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11501 echo "$ac_t""yes" 1>&6
11502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11503 { test "$extra_verbose" = "yes" && cat << EOF
11504 Defining $ac_tr_func
11506 cat >> confdefs.h <<EOF
11507 #define $ac_tr_func 1
11512 echo "$ac_t""no" 1>&6
11516 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11517 echo "configure:11518: checking whether getpgrp takes no argument" >&5
11519 cat > conftest.$ac_ext <<EOF
11520 #line 11521 "configure"
11521 #include "confdefs.h"
11524 * If this system has a BSD-style getpgrp(),
11525 * which takes a pid argument, exit unsuccessfully.
11527 * Snarfed from Chet Ramey's bash pgrp.c test program
11530 #include <sys/types.h>
11533 int pg1, pg2, pg3, pg4;
11534 int ng, np, s, child;
11541 pg3 = getpgrp(pid);
11545 * If all of these values are the same, it's pretty sure that
11546 * we're on a system that ignores getpgrp's first argument.
11548 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
11554 else if (child == 0) {
11557 * If this is Sys V, this will not work; pgrp will be
11558 * set to np because setpgrp just changes a pgrp to be
11559 * the same as the pid.
11562 ng = getpgrp(0); /* Same result for Sys V and BSD */
11575 if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11577 ac_cv_func_getpgrp_void=yes
11580 echo "configure: failed program was:" >&5
11581 cat conftest.$ac_ext >&5
11583 ac_cv_func_getpgrp_void=no
11588 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
11589 if test $ac_cv_func_getpgrp_void = yes; then
11590 { test "$extra_verbose" = "yes" && cat << \EOF
11591 Defining GETPGRP_VOID
11593 cat >> confdefs.h <<\EOF
11594 #define GETPGRP_VOID 1
11601 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11602 echo "configure:11603: checking for working mmap" >&5
11603 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11608 #include <unistd.h>
11610 #include <sys/mman.h>
11612 #ifndef MAP_VARIABLE
11613 #define MAP_VARIABLE 0
11617 #define MAP_FAILED -1
11620 int main (int argc, char *argv[])
11624 #ifndef MAP_ANONYMOUS
11625 fd = open ("/dev/zero", O_RDWR);
11628 #define MAP_ANONYMOUS 0
11630 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
11631 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
11632 fd, 0) != (void *) MAP_FAILED)
11634 perror ("conftest: mmap failed");
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11643 echo "configure: failed program was:" >&5
11644 cat conftest.$ac_ext >&5
11648 rm -fr conftest* ;;
11650 echo "$ac_t""$have_mmap" 1>&6
11651 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11654 cat >> confdefs.h <<\EOF
11655 #define HAVE_MMAP 1
11660 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11661 if test "$rel_alloc $have_mmap" = "default yes"; then
11662 if test "$doug_lea_malloc" = "yes"; then
11663 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11664 echo "configure:11665: checking for M_MMAP_THRESHOLD" >&5
11665 cat > conftest.$ac_ext <<EOF
11666 #line 11667 "configure"
11667 #include "confdefs.h"
11668 #include <malloc.h>
11671 #ifndef M_MMAP_THRESHOLD
11672 #error No M_MMAP_THRESHOLD :-(
11673 !@+$%^&*_)(_ - unlikely to compile...
11678 if { (eval echo configure:11679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11680 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11682 echo "configure: failed program was:" >&5
11683 cat conftest.$ac_ext >&5
11685 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11692 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11695 cat >> confdefs.h <<\EOF
11696 #define REL_ALLOC 1
11701 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11702 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11703 echo "configure:11704: checking for termios.h" >&5
11705 cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure"
11707 #include "confdefs.h"
11708 #include <termios.h>
11710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11711 { (eval echo configure:11712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11713 if test -z "$ac_err"; then
11715 eval "ac_cv_header_$ac_safe=yes"
11718 echo "configure: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11721 eval "ac_cv_header_$ac_safe=no"
11724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11725 echo "$ac_t""yes" 1>&6
11726 { test "$extra_verbose" = "yes" && cat << \EOF
11727 Defining HAVE_TERMIOS
11729 cat >> confdefs.h <<\EOF
11730 #define HAVE_TERMIOS 1
11734 { test "$extra_verbose" = "yes" && cat << \EOF
11735 Defining SIGNALS_VIA_CHARACTERS
11737 cat >> confdefs.h <<\EOF
11738 #define SIGNALS_VIA_CHARACTERS 1
11742 { test "$extra_verbose" = "yes" && cat << \EOF
11745 cat >> confdefs.h <<\EOF
11746 #define NO_TERMIO 1
11751 echo "$ac_t""no" 1>&6
11752 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11753 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11754 echo "configure:11755: checking for termio.h" >&5
11756 cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure"
11758 #include "confdefs.h"
11759 #include <termio.h>
11761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11762 { (eval echo configure:11763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11764 if test -z "$ac_err"; then
11766 eval "ac_cv_header_$ac_safe=yes"
11769 echo "configure: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11772 eval "ac_cv_header_$ac_safe=no"
11775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11776 echo "$ac_t""yes" 1>&6
11777 { test "$extra_verbose" = "yes" && cat << \EOF
11778 Defining HAVE_TERMIO
11780 cat >> confdefs.h <<\EOF
11781 #define HAVE_TERMIO 1
11786 echo "$ac_t""no" 1>&6
11793 echo $ac_n "checking for socket""... $ac_c" 1>&6
11794 echo "configure:11795: checking for socket" >&5
11796 cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11799 /* System header to define __stub macros and hopefully few prototypes,
11800 which can conflict with char socket(); below. */
11801 #include <assert.h>
11802 /* Override any gcc2 internal prototype to avoid an error. */
11803 /* We use char because int might match the return type of a gcc2
11804 builtin and then its argument prototype would still apply. */
11809 /* The GNU C library defines this for functions which it implements
11810 to always fail with ENOSYS. Some functions are actually named
11811 something starting with __ and the normal name is an alias. */
11812 #if defined (__stub_socket) || defined (__stub___socket)
11820 if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11822 eval "ac_cv_func_socket=yes"
11824 echo "configure: failed program was:" >&5
11825 cat conftest.$ac_ext >&5
11827 eval "ac_cv_func_socket=no"
11831 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11832 echo "$ac_t""yes" 1>&6
11833 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11834 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11835 echo "configure:11836: checking for netinet/in.h" >&5
11837 cat > conftest.$ac_ext <<EOF
11838 #line 11839 "configure"
11839 #include "confdefs.h"
11840 #include <netinet/in.h>
11842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11843 { (eval echo configure:11844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11845 if test -z "$ac_err"; then
11847 eval "ac_cv_header_$ac_safe=yes"
11850 echo "configure: failed program was:" >&5
11851 cat conftest.$ac_ext >&5
11853 eval "ac_cv_header_$ac_safe=no"
11856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6
11858 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11859 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11860 echo "configure:11861: checking for arpa/inet.h" >&5
11862 cat > conftest.$ac_ext <<EOF
11863 #line 11864 "configure"
11864 #include "confdefs.h"
11865 #include <arpa/inet.h>
11867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11868 { (eval echo configure:11869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11870 if test -z "$ac_err"; then
11872 eval "ac_cv_header_$ac_safe=yes"
11875 echo "configure: failed program was:" >&5
11876 cat conftest.$ac_ext >&5
11878 eval "ac_cv_header_$ac_safe=no"
11881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11882 echo "$ac_t""yes" 1>&6
11884 { test "$extra_verbose" = "yes" && cat << \EOF
11885 Defining HAVE_SOCKETS
11887 cat >> confdefs.h <<\EOF
11888 #define HAVE_SOCKETS 1
11892 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11893 echo "configure:11894: checking "for sun_len member in struct sockaddr_un"" >&5
11894 cat > conftest.$ac_ext <<EOF
11895 #line 11896 "configure"
11896 #include "confdefs.h"
11898 #include <sys/types.h>
11899 #include <sys/socket.h>
11900 #include <sys/un.h>
11903 static struct sockaddr_un x; x.sun_len = 1;
11906 if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11908 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11909 Defining HAVE_SOCKADDR_SUN_LEN
11911 cat >> confdefs.h <<\EOF
11912 #define HAVE_SOCKADDR_SUN_LEN 1
11917 echo "configure: failed program was:" >&5
11918 cat conftest.$ac_ext >&5
11920 echo "$ac_t""no" 1>&6
11923 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11924 echo "configure:11925: checking "for ip_mreq struct in netinet/in.h"" >&5
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11929 #include <sys/types.h>
11930 #include <netinet/in.h>
11933 static struct ip_mreq x;
11936 if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11938 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11939 Defining HAVE_MULTICAST
11941 cat >> confdefs.h <<\EOF
11942 #define HAVE_MULTICAST 1
11947 echo "configure: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11950 echo "$ac_t""no" 1>&6
11954 echo "$ac_t""no" 1>&6
11958 echo "$ac_t""no" 1>&6
11962 echo "$ac_t""no" 1>&6
11966 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11967 echo "configure:11968: checking for msgget" >&5
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11972 /* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char msgget(); below. */
11974 #include <assert.h>
11975 /* Override any gcc2 internal prototype to avoid an error. */
11976 /* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11982 /* The GNU C library defines this for functions which it implements
11983 to always fail with ENOSYS. Some functions are actually named
11984 something starting with __ and the normal name is an alias. */
11985 #if defined (__stub_msgget) || defined (__stub___msgget)
11993 if { (eval echo configure:11994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11995 eval "ac_cv_func_msgget=yes"
11997 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
12000 eval "ac_cv_func_msgget=no"
12004 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12005 echo "$ac_t""yes" 1>&6
12006 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12007 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12008 echo "configure:12009: checking for sys/ipc.h" >&5
12010 cat > conftest.$ac_ext <<EOF
12011 #line 12012 "configure"
12012 #include "confdefs.h"
12013 #include <sys/ipc.h>
12015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12016 { (eval echo configure:12017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12018 if test -z "$ac_err"; then
12020 eval "ac_cv_header_$ac_safe=yes"
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12026 eval "ac_cv_header_$ac_safe=no"
12029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12030 echo "$ac_t""yes" 1>&6
12031 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12032 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12033 echo "configure:12034: checking for sys/msg.h" >&5
12035 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 #include <sys/msg.h>
12040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12041 { (eval echo configure:12042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12043 if test -z "$ac_err"; then
12045 eval "ac_cv_header_$ac_safe=yes"
12048 echo "configure: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12051 eval "ac_cv_header_$ac_safe=no"
12054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12055 echo "$ac_t""yes" 1>&6
12056 { test "$extra_verbose" = "yes" && cat << \EOF
12057 Defining HAVE_SYSVIPC
12059 cat >> confdefs.h <<\EOF
12060 #define HAVE_SYSVIPC 1
12065 echo "$ac_t""no" 1>&6
12069 echo "$ac_t""no" 1>&6
12073 echo "$ac_t""no" 1>&6
12077 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12078 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12079 echo "configure:12080: checking for dirent.h" >&5
12081 cat > conftest.$ac_ext <<EOF
12082 #line 12083 "configure"
12083 #include "confdefs.h"
12084 #include <dirent.h>
12086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12087 { (eval echo configure:12088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12089 if test -z "$ac_err"; then
12091 eval "ac_cv_header_$ac_safe=yes"
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12097 eval "ac_cv_header_$ac_safe=no"
12100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12101 echo "$ac_t""yes" 1>&6
12102 { test "$extra_verbose" = "yes" && cat << \EOF
12103 Defining SYSV_SYSTEM_DIR
12105 cat >> confdefs.h <<\EOF
12106 #define SYSV_SYSTEM_DIR 1
12111 echo "$ac_t""no" 1>&6
12112 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12113 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12114 echo "configure:12115: checking for sys/dir.h" >&5
12116 cat > conftest.$ac_ext <<EOF
12117 #line 12118 "configure"
12118 #include "confdefs.h"
12119 #include <sys/dir.h>
12121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12122 { (eval echo configure:12123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12124 if test -z "$ac_err"; then
12126 eval "ac_cv_header_$ac_safe=yes"
12129 echo "configure: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12132 eval "ac_cv_header_$ac_safe=no"
12135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12136 echo "$ac_t""yes" 1>&6
12139 echo "$ac_t""no" 1>&6
12140 { test "$extra_verbose" = "yes" && cat << \EOF
12141 Defining NONSYSTEM_DIR_LIBRARY
12143 cat >> confdefs.h <<\EOF
12144 #define NONSYSTEM_DIR_LIBRARY 1
12153 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12154 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12155 echo "configure:12156: checking for nlist.h" >&5
12157 cat > conftest.$ac_ext <<EOF
12158 #line 12159 "configure"
12159 #include "confdefs.h"
12162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12163 { (eval echo configure:12164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12165 if test -z "$ac_err"; then
12167 eval "ac_cv_header_$ac_safe=yes"
12170 echo "configure: failed program was:" >&5
12171 cat conftest.$ac_ext >&5
12173 eval "ac_cv_header_$ac_safe=no"
12176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12177 echo "$ac_t""yes" 1>&6
12178 { test "$extra_verbose" = "yes" && cat << \EOF
12179 Defining NLIST_STRUCT
12181 cat >> confdefs.h <<\EOF
12182 #define NLIST_STRUCT 1
12187 echo "$ac_t""no" 1>&6
12192 echo "checking "for sound support"" 1>&6
12193 echo "configure:12194: checking "for sound support"" >&5
12194 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12196 if test "$with_native_sound" != "no"; then
12197 if test -n "$native_sound_lib"; then
12198 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12199 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12200 echo "configure:12201: checking for multimedia/audio_device.h" >&5
12202 cat > conftest.$ac_ext <<EOF
12203 #line 12204 "configure"
12204 #include "confdefs.h"
12205 #include <multimedia/audio_device.h>
12207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12208 { (eval echo configure:12209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12210 if test -z "$ac_err"; then
12212 eval "ac_cv_header_$ac_safe=yes"
12215 echo "configure: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12218 eval "ac_cv_header_$ac_safe=no"
12221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12222 echo "$ac_t""yes" 1>&6
12223 sound_found=yes sound_cflags=""
12224 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12225 echo " xemacs will be linked with \"sunplay.o\""
12228 echo "$ac_t""no" 1>&6
12233 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12235 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12236 echo " xemacs will be linked with \"sunplay.o\""
12238 if test -d "/usr/demo/SOUND/include"
12239 then sound_cflags="-I/usr/demo/SOUND/include"
12240 else sound_cflags="-I/usr/demo/SOUND"
12242 if test -z "$native_sound_lib" ; then
12243 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12244 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12245 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12250 if test -z "$sound_found"; then
12251 case "$canonical" in
12253 if test -z "$native_sound_lib"; then
12255 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12256 echo "configure:12257: checking for ALopenport in -laudio" >&5
12257 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12259 xe_check_libs=" -laudio "
12260 cat > conftest.$ac_ext <<EOF
12261 #line 12262 "configure"
12262 #include "confdefs.h"
12263 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12272 if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12274 eval "ac_cv_lib_$ac_lib_var=yes"
12276 echo "configure: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12279 eval "ac_cv_lib_$ac_lib_var=no"
12284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12285 echo "$ac_t""yes" 1>&6
12286 native_sound_lib="-laudio"
12288 echo "$ac_t""no" 1>&6
12293 if test -n "$native_sound_lib"; then
12294 sound_found=yes sound_cflags=""
12295 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12296 echo " xemacs will be linked with \"sgiplay.o\""
12300 if test -z "$native_sound_lib"; then
12302 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12303 echo "configure:12304: checking for AOpenAudio in -lAlib" >&5
12304 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12306 xe_check_libs=" -lAlib "
12307 cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure"
12309 #include "confdefs.h"
12310 /* Override any gcc2 internal prototype to avoid an error. */
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12319 if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12321 eval "ac_cv_lib_$ac_lib_var=yes"
12323 echo "configure: failed program was:" >&5
12324 cat conftest.$ac_ext >&5
12326 eval "ac_cv_lib_$ac_lib_var=no"
12331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12332 echo "$ac_t""yes" 1>&6
12333 native_sound_lib="-lAlib"
12335 echo "$ac_t""no" 1>&6
12340 if test -n "$native_sound_lib"; then
12342 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12343 echo " xemacs will be linked with \"hpplay.o\""
12345 if test "$GCC" = "yes" # Kludge city
12346 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12347 else sound_cflags="+e -I/usr/audio/examples"
12353 if test -z "$sound_found"; then
12354 for dir in "machine" "sys" "linux"; do
12355 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12356 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12357 echo "configure:12358: checking for ${dir}/soundcard.h" >&5
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure"
12361 #include "confdefs.h"
12362 #include <${dir}/soundcard.h>
12364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12365 { (eval echo configure:12366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12367 if test -z "$ac_err"; then
12369 eval "ac_cv_header_$ac_safe=yes"
12372 echo "configure: failed program was:" >&5
12373 cat conftest.$ac_ext >&5
12375 eval "ac_cv_header_$ac_safe=no"
12378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12379 echo "$ac_t""yes" 1>&6
12382 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
12383 echo " xemacs will be linked with \"linuxplay.o\""
12385 { test "$extra_verbose" = "yes" && cat << EOF
12386 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
12388 cat >> confdefs.h <<EOF
12389 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
12395 echo "$ac_t""no" 1>&6
12401 if test -z "$sound_found"; then
12402 if test "$with_msw" = "yes"; then
12408 test "$sound_found" = "yes" && with_native_sound=yes
12411 if test "$with_native_sound" = "yes"; then
12412 { test "$extra_verbose" = "yes" && cat << \EOF
12413 Defining HAVE_NATIVE_SOUND
12415 cat >> confdefs.h <<\EOF
12416 #define HAVE_NATIVE_SOUND 1
12420 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
12423 if test "$with_nas_sound" != "no"; then
12424 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12425 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12426 echo "configure:12427: checking for audio/audiolib.h" >&5
12428 cat > conftest.$ac_ext <<EOF
12429 #line 12430 "configure"
12430 #include "confdefs.h"
12431 #include <audio/audiolib.h>
12433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12434 { (eval echo configure:12435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12436 if test -z "$ac_err"; then
12438 eval "ac_cv_header_$ac_safe=yes"
12441 echo "configure: failed program was:" >&5
12442 cat conftest.$ac_ext >&5
12444 eval "ac_cv_header_$ac_safe=no"
12447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12448 echo "$ac_t""yes" 1>&6
12451 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12452 echo "configure:12453: checking for AuOpenServer in -laudio" >&5
12453 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12455 xe_check_libs=" -laudio "
12456 cat > conftest.$ac_ext <<EOF
12457 #line 12458 "configure"
12458 #include "confdefs.h"
12459 /* Override any gcc2 internal prototype to avoid an error. */
12460 /* We use char because int might match the return type of a gcc2
12461 builtin and then its argument prototype would still apply. */
12462 char AuOpenServer();
12468 if { (eval echo configure:12469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12470 eval "ac_cv_lib_$ac_lib_var=yes"
12472 echo "configure: failed program was:" >&5
12473 cat conftest.$ac_ext >&5
12475 eval "ac_cv_lib_$ac_lib_var=no"
12480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12481 echo "$ac_t""yes" 1>&6
12484 echo "$ac_t""no" 1>&6
12489 echo "$ac_t""no" 1>&6
12492 if test "$have_nas_sound" = "yes"; then
12494 { test "$extra_verbose" = "yes" && cat << \EOF
12495 Defining HAVE_NAS_SOUND
12497 cat >> confdefs.h <<\EOF
12498 #define HAVE_NAS_SOUND 1
12502 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12503 echo " xemacs will be linked with \"nas.o\""
12505 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12506 cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure"
12508 #include "confdefs.h"
12509 #include <audio/Xtutil.h>
12511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12512 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12516 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
12517 Defining NAS_NO_ERROR_JUMP
12519 cat >> confdefs.h <<\EOF
12520 #define NAS_NO_ERROR_JUMP 1
12528 test "$with_nas_sound" = "yes" && \
12529 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12534 if test "$with_esd_sound" != "no"; then
12535 # Extract the first word of "esd-config", so it can be a program name with args.
12536 set dummy esd-config; ac_word=$2
12537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12538 echo "configure:12539: checking for $ac_word" >&5
12540 if test -n "$have_esd_config"; then
12541 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12545 for ac_dir in $ac_dummy; do
12546 test -z "$ac_dir" && ac_dir=.
12547 if test -f $ac_dir/$ac_word; then
12548 ac_cv_prog_have_esd_config="yes"
12553 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
12555 have_esd_config="$ac_cv_prog_have_esd_config"
12556 if test -n "$have_esd_config"; then
12557 echo "$ac_t""$have_esd_config" 1>&6
12559 echo "$ac_t""no" 1>&6
12562 if test "$have_esd_config" = "yes"; then
12563 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12564 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
12565 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12566 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12567 echo "configure:12568: checking for esd_play_stream" >&5
12569 cat > conftest.$ac_ext <<EOF
12570 #line 12571 "configure"
12571 #include "confdefs.h"
12572 /* System header to define __stub macros and hopefully few prototypes,
12573 which can conflict with char esd_play_stream(); below. */
12574 #include <assert.h>
12575 /* Override any gcc2 internal prototype to avoid an error. */
12576 /* We use char because int might match the return type of a gcc2
12577 builtin and then its argument prototype would still apply. */
12578 char esd_play_stream();
12582 /* The GNU C library defines this for functions which it implements
12583 to always fail with ENOSYS. Some functions are actually named
12584 something starting with __ and the normal name is an alias. */
12585 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
12593 if { (eval echo configure:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12595 eval "ac_cv_func_esd_play_stream=yes"
12597 echo "configure: failed program was:" >&5
12598 cat conftest.$ac_ext >&5
12600 eval "ac_cv_func_esd_play_stream=no"
12604 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
12605 echo "$ac_t""yes" 1>&6
12608 echo "$ac_t""no" 1>&6
12609 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
12614 if test "$have_esd_sound" = "yes"; then
12617 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
12618 echo " xemacs will be linked with \"esd.o\""
12620 { test "$extra_verbose" = "yes" && cat << \EOF
12621 Defining HAVE_ESD_SOUND
12623 cat >> confdefs.h <<\EOF
12624 #define HAVE_ESD_SOUND 1
12629 test "$with_esd_sound" = "yes" && \
12630 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12635 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12636 echo " xemacs will be linked with \"miscplay.o\""
12640 test -z "$with_tty" && with_tty=yes
12642 if test "$with_tty" = "yes" ; then
12643 echo "checking for TTY-related features" 1>&6
12644 echo "configure:12645: checking for TTY-related features" >&5
12645 { test "$extra_verbose" = "yes" && cat << \EOF
12648 cat >> confdefs.h <<\EOF
12653 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
12654 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\""
12657 if test -z "$with_ncurses"; then
12659 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12660 echo "configure:12661: checking for tgetent in -lncurses" >&5
12661 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12663 xe_check_libs=" -lncurses "
12664 cat > conftest.$ac_ext <<EOF
12665 #line 12666 "configure"
12666 #include "confdefs.h"
12667 /* Override any gcc2 internal prototype to avoid an error. */
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12676 if { (eval echo configure:12677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12678 eval "ac_cv_lib_$ac_lib_var=yes"
12680 echo "configure: failed program was:" >&5
12681 cat conftest.$ac_ext >&5
12683 eval "ac_cv_lib_$ac_lib_var=no"
12688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12689 echo "$ac_t""yes" 1>&6
12692 echo "$ac_t""no" 1>&6
12698 if test "$with_ncurses" = "yes"; then
12699 { test "$extra_verbose" = "yes" && cat << \EOF
12700 Defining HAVE_NCURSES
12702 cat >> confdefs.h <<\EOF
12703 #define HAVE_NCURSES 1
12707 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12708 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12709 echo "configure:12710: checking for ncurses/curses.h" >&5
12711 cat > conftest.$ac_ext <<EOF
12712 #line 12713 "configure"
12713 #include "confdefs.h"
12714 #include <ncurses/curses.h>
12716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12717 { (eval echo configure:12718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12719 if test -z "$ac_err"; then
12721 eval "ac_cv_header_$ac_safe=yes"
12724 echo "configure: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12727 eval "ac_cv_header_$ac_safe=no"
12730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12731 echo "$ac_t""yes" 1>&6
12732 curses_h_file=ncurses/curses.h
12734 echo "$ac_t""no" 1>&6
12737 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12738 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12739 echo "configure:12740: checking for ncurses/term.h" >&5
12741 cat > conftest.$ac_ext <<EOF
12742 #line 12743 "configure"
12743 #include "confdefs.h"
12744 #include <ncurses/term.h>
12746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12747 { (eval echo configure:12748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12749 if test -z "$ac_err"; then
12751 eval "ac_cv_header_$ac_safe=yes"
12754 echo "configure: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12757 eval "ac_cv_header_$ac_safe=no"
12760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12761 echo "$ac_t""yes" 1>&6
12762 term_h_file=ncurses/term.h
12764 echo "$ac_t""no" 1>&6
12767 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12768 echo " xemacs will be linked with \"terminfo.o\""
12770 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12772 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12773 save_c_switch_site="$c_switch_site"
12774 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12775 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12776 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12777 echo "configure:12778: checking for ncurses/curses.h" >&5
12779 cat > conftest.$ac_ext <<EOF
12780 #line 12781 "configure"
12781 #include "confdefs.h"
12782 #include <ncurses/curses.h>
12784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12785 { (eval echo configure:12786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12787 if test -z "$ac_err"; then
12789 eval "ac_cv_header_$ac_safe=yes"
12792 echo "configure: failed program was:" >&5
12793 cat conftest.$ac_ext >&5
12795 eval "ac_cv_header_$ac_safe=no"
12798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12799 echo "$ac_t""yes" 1>&6
12800 curses_h_file=ncurses/curses.h
12802 echo "$ac_t""no" 1>&6
12805 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12806 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12807 else c_switch_site="$save_c_switch_site"
12810 else if test "$have_terminfo" = "yes"; then
12811 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12812 echo " xemacs will be linked with \"terminfo.o\""
12814 if test -n "$libs_termcap"; then
12815 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12817 for lib in curses termlib termcap; do
12819 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12820 echo "configure:12821: checking for tgetent in -l$lib" >&5
12821 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12823 xe_check_libs=" -l$lib "
12824 cat > conftest.$ac_ext <<EOF
12825 #line 12826 "configure"
12826 #include "confdefs.h"
12827 /* Override any gcc2 internal prototype to avoid an error. */
12828 /* We use char because int might match the return type of a gcc2
12829 builtin and then its argument prototype would still apply. */
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12838 eval "ac_cv_lib_$ac_lib_var=yes"
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12843 eval "ac_cv_lib_$ac_lib_var=no"
12848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12849 echo "$ac_t""yes" 1>&6
12850 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12852 echo "$ac_t""no" 1>&6
12858 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12859 echo " xemacs will be linked with \"tparam.o\""
12861 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12862 if test -n "$libs_termcap"; then
12863 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12866 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12867 echo "configure:12868: checking for tgetent in -lcurses" >&5
12868 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12870 xe_check_libs=" -lcurses "
12871 cat > conftest.$ac_ext <<EOF
12872 #line 12873 "configure"
12873 #include "confdefs.h"
12874 /* Override any gcc2 internal prototype to avoid an error. */
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12883 if { (eval echo configure:12884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12885 eval "ac_cv_lib_$ac_lib_var=yes"
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12890 eval "ac_cv_lib_$ac_lib_var=no"
12895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12896 echo "$ac_t""yes" 1>&6
12897 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12899 echo "$ac_t""no" 1>&6
12900 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12901 echo "configure:12902: checking for tgetent in -ltermcap" >&5
12902 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12904 xe_check_libs=" -ltermcap "
12905 cat > conftest.$ac_ext <<EOF
12906 #line 12907 "configure"
12907 #include "confdefs.h"
12908 /* Override any gcc2 internal prototype to avoid an error. */
12909 /* We use char because int might match the return type of a gcc2
12910 builtin and then its argument prototype would still apply. */
12917 if { (eval echo configure:12918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12919 eval "ac_cv_lib_$ac_lib_var=yes"
12921 echo "configure: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12924 eval "ac_cv_lib_$ac_lib_var=no"
12929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12930 echo "$ac_t""yes" 1>&6
12931 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12933 echo "$ac_t""no" 1>&6
12934 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12935 echo " xemacs will be linked with \"termcap.o\""
12946 { test "$extra_verbose" = "yes" && cat << EOF
12947 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
12949 cat >> confdefs.h <<EOF
12950 #define CURSES_H_FILE "${curses_h_file-curses.h}"
12954 { test "$extra_verbose" = "yes" && cat << EOF
12955 Defining TERM_H_FILE = "${term_h_file-term.h}"
12957 cat >> confdefs.h <<EOF
12958 #define TERM_H_FILE "${term_h_file-term.h}"
12963 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12964 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12965 echo "configure:12966: checking for gpm.h" >&5
12967 cat > conftest.$ac_ext <<EOF
12968 #line 12969 "configure"
12969 #include "confdefs.h"
12972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12973 { (eval echo configure:12974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12975 if test -z "$ac_err"; then
12977 eval "ac_cv_header_$ac_safe=yes"
12980 echo "configure: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12983 eval "ac_cv_header_$ac_safe=no"
12986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12987 echo "$ac_t""yes" 1>&6
12990 echo "$ac_t""no" 1>&6
12994 test -z "$with_gpm" && {
12995 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12996 echo "configure:12997: checking for Gpm_Open in -lgpm" >&5
12997 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12999 xe_check_libs=" -lgpm "
13000 cat > conftest.$ac_ext <<EOF
13001 #line 13002 "configure"
13002 #include "confdefs.h"
13003 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13012 if { (eval echo configure:13013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13014 eval "ac_cv_lib_$ac_lib_var=yes"
13016 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13019 eval "ac_cv_lib_$ac_lib_var=no"
13024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13025 echo "$ac_t""yes" 1>&6
13028 echo "$ac_t""no" 1>&6
13033 if test "$with_gpm" = "yes"; then
13034 { test "$extra_verbose" = "yes" && cat << \EOF
13037 cat >> confdefs.h <<\EOF
13042 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13043 echo " xemacs will be linked with \"gpmevent.o\""
13045 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13048 else for feature in ncurses gpm; do
13049 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13050 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13052 eval "with_${feature}=no"
13055 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13056 echo " xemacs will be linked with \"event-unixoid.o\""
13060 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13061 != "no no no" && echo "checking for database support" 1>&6
13062 echo "configure:13063: checking for database support" >&5
13064 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13065 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13066 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13067 echo "configure:13068: checking for ndbm.h" >&5
13069 cat > conftest.$ac_ext <<EOF
13070 #line 13071 "configure"
13071 #include "confdefs.h"
13074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13075 { (eval echo configure:13076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13077 if test -z "$ac_err"; then
13079 eval "ac_cv_header_$ac_safe=yes"
13082 echo "configure: failed program was:" >&5
13083 cat conftest.$ac_ext >&5
13085 eval "ac_cv_header_$ac_safe=no"
13088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13089 echo "$ac_t""yes" 1>&6
13092 echo "$ac_t""no" 1>&6
13094 test "$with_database_gdbm" = "yes" -o \
13095 "$with_database_dbm" = "yes" && \
13096 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13097 with_database_gdbm=no with_database_dbm=no
13102 if test "$with_database_gdbm" != "no"; then
13104 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13105 echo "configure:13106: checking for dbm_open in -lgdbm" >&5
13106 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13108 xe_check_libs=" -lgdbm "
13109 cat > conftest.$ac_ext <<EOF
13110 #line 13111 "configure"
13111 #include "confdefs.h"
13112 /* Override any gcc2 internal prototype to avoid an error. */
13113 /* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */
13121 if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13123 eval "ac_cv_lib_$ac_lib_var=yes"
13125 echo "configure: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13128 eval "ac_cv_lib_$ac_lib_var=no"
13133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13134 echo "$ac_t""yes" 1>&6
13135 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13137 echo "$ac_t""no" 1>&6
13138 if test "$with_database_gdbm" = "yes"; then
13139 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13141 with_database_gdbm=no
13147 if test "$with_database_dbm" != "no"; then
13148 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13149 echo "configure:13150: checking for dbm_open" >&5
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char dbm_open(); below. */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error. */
13158 /* We use char because int might match the return type of a gcc2
13159 builtin and then its argument prototype would still apply. */
13164 /* The GNU C library defines this for functions which it implements
13165 to always fail with ENOSYS. Some functions are actually named
13166 something starting with __ and the normal name is an alias. */
13167 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13177 eval "ac_cv_func_dbm_open=yes"
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13182 eval "ac_cv_func_dbm_open=no"
13186 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13187 echo "$ac_t""yes" 1>&6
13188 with_database_dbm=yes libdbm=
13190 echo "$ac_t""no" 1>&6
13193 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13194 echo "configure:13195: checking for dbm_open in -ldbm" >&5
13195 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13197 xe_check_libs=" -ldbm "
13198 cat > conftest.$ac_ext <<EOF
13199 #line 13200 "configure"
13200 #include "confdefs.h"
13201 /* Override any gcc2 internal prototype to avoid an error. */
13202 /* We use char because int might match the return type of a gcc2
13203 builtin and then its argument prototype would still apply. */
13210 if { (eval echo configure:13211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13212 eval "ac_cv_lib_$ac_lib_var=yes"
13214 echo "configure: failed program was:" >&5
13215 cat conftest.$ac_ext >&5
13217 eval "ac_cv_lib_$ac_lib_var=no"
13222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13223 echo "$ac_t""yes" 1>&6
13224 with_database_dbm=yes libdbm=-ldbm
13226 echo "$ac_t""no" 1>&6
13227 test "$with_database_dbm" = "yes" && \
13228 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13229 with_database_dbm=no
13237 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13238 test "$with_database_gdbm" = "yes" -o \
13239 "$with_database_dbm" = "yes" && \
13240 { test "$extra_verbose" = "yes" && cat << \EOF
13243 cat >> confdefs.h <<\EOF
13249 if test "$with_database_berkdb" != "no"; then
13250 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13251 echo "configure:13252: checking for Berkeley db.h" >&5
13252 for header in "db/db.h" "db.h"; do
13253 cat > conftest.$ac_ext <<EOF
13254 #line 13255 "configure"
13255 #include "confdefs.h"
13257 #include <stdlib.h>
13258 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13259 #ifdef HAVE_INTTYPES_H
13260 #define __BIT_TYPES_DEFINED__
13261 #include <inttypes.h>
13262 typedef uint8_t u_int8_t;
13263 typedef uint16_t u_int16_t;
13264 typedef uint32_t u_int32_t;
13265 #ifdef WE_DONT_NEED_QUADS
13266 typedef uint64_t u_int64_t;
13276 if { (eval echo configure:13277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13278 db_h_file="$header"; break
13280 echo "configure: failed program was:" >&5
13281 cat conftest.$ac_ext >&5
13285 if test -z "$db_h_file"
13286 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13287 else echo "$ac_t""$db_h_file" 1>&6
13290 if test "$with_database_berkdb" != "no"; then
13291 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13292 echo "configure:13293: checking for Berkeley DB version" >&5
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13296 #include <$db_h_file>
13297 #if DB_VERSION_MAJOR > 1
13302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13303 egrep "yes" >/dev/null 2>&1; then
13305 cat > conftest.$ac_ext <<EOF
13306 #line 13307 "configure"
13307 #include "confdefs.h"
13308 #include <$db_h_file>
13309 #if DB_VERSION_MAJOR > 2
13314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13315 egrep "yes" >/dev/null 2>&1; then
13317 echo "$ac_t""3" 1>&6; dbfunc=db_create
13321 echo "$ac_t""2" 1>&6; dbfunc=db_open
13328 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13332 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13333 echo "configure:13334: checking for $dbfunc" >&5
13335 cat > conftest.$ac_ext <<EOF
13336 #line 13337 "configure"
13337 #include "confdefs.h"
13338 /* System header to define __stub macros and hopefully few prototypes,
13339 which can conflict with char $dbfunc(); below. */
13340 #include <assert.h>
13341 /* Override any gcc2 internal prototype to avoid an error. */
13342 /* We use char because int might match the return type of a gcc2
13343 builtin and then its argument prototype would still apply. */
13348 /* The GNU C library defines this for functions which it implements
13349 to always fail with ENOSYS. Some functions are actually named
13350 something starting with __ and the normal name is an alias. */
13351 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13359 if { (eval echo configure:13360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13361 eval "ac_cv_func_$dbfunc=yes"
13363 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13366 eval "ac_cv_func_$dbfunc=no"
13370 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13371 echo "$ac_t""yes" 1>&6
13372 with_database_berkdb=yes need_libdb=no
13374 echo "$ac_t""no" 1>&6
13377 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13378 echo "configure:13379: checking for $dbfunc in -ldb" >&5
13379 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13381 xe_check_libs=" -ldb "
13382 cat > conftest.$ac_ext <<EOF
13383 #line 13384 "configure"
13384 #include "confdefs.h"
13385 /* Override any gcc2 internal prototype to avoid an error. */
13386 /* We use char because int might match the return type of a gcc2
13387 builtin and then its argument prototype would still apply. */
13394 if { (eval echo configure:13395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13396 eval "ac_cv_lib_$ac_lib_var=yes"
13398 echo "configure: failed program was:" >&5
13399 cat conftest.$ac_ext >&5
13401 eval "ac_cv_lib_$ac_lib_var=no"
13406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13407 echo "$ac_t""yes" 1>&6
13408 with_database_berkdb=yes need_libdb=yes
13410 echo "$ac_t""no" 1>&6
13418 if test "$with_database_berkdb" = "yes"; then
13419 { test "$extra_verbose" = "yes" && cat << EOF
13420 Defining DB_H_FILE = "$db_h_file"
13422 cat >> confdefs.h <<EOF
13423 #define DB_H_FILE "$db_h_file"
13427 { test "$extra_verbose" = "yes" && cat << \EOF
13428 Defining HAVE_BERKELEY_DB
13430 cat >> confdefs.h <<\EOF
13431 #define HAVE_BERKELEY_DB 1
13435 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
13436 else with_database_berkdb=no
13440 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13441 != "no no no"; then
13442 { test "$extra_verbose" = "yes" && cat << \EOF
13443 Defining HAVE_DATABASE
13445 cat >> confdefs.h <<\EOF
13446 #define HAVE_DATABASE 1
13450 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
13451 echo " xemacs will be linked with \"database.o\""
13455 if test "$with_socks" = "yes"; then
13457 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13458 echo "configure:13459: checking for SOCKSinit in -lsocks" >&5
13459 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13461 xe_check_libs=" -lsocks "
13462 cat > conftest.$ac_ext <<EOF
13463 #line 13464 "configure"
13464 #include "confdefs.h"
13465 /* Override any gcc2 internal prototype to avoid an error. */
13466 /* We use char because int might match the return type of a gcc2
13467 builtin and then its argument prototype would still apply. */
13474 if { (eval echo configure:13475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13476 eval "ac_cv_lib_$ac_lib_var=yes"
13478 echo "configure: failed program was:" >&5
13479 cat conftest.$ac_ext >&5
13481 eval "ac_cv_lib_$ac_lib_var=no"
13486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13487 echo "$ac_t""yes" 1>&6
13488 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13490 { test "$extra_verbose" = "yes" && cat << EOF
13491 Defining $ac_tr_lib
13493 cat >> confdefs.h <<EOF
13494 #define $ac_tr_lib 1
13498 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
13501 echo "$ac_t""no" 1>&6
13505 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
13506 Defining HAVE_SOCKS
13508 cat >> confdefs.h <<\EOF
13509 #define HAVE_SOCKS 1
13515 if test "$usage_tracking" = "yes"; then
13516 { test "$extra_verbose" = "yes" && cat << \EOF
13517 Defining USAGE_TRACKING
13519 cat >> confdefs.h <<\EOF
13520 #define USAGE_TRACKING 1
13524 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13527 if test "$with_modules" != "no"; then
13528 echo "checking for module support" 1>&6
13529 echo "configure:13530: checking for module support" >&5
13531 if test "$with_msw" = "yes"; then
13534 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13535 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13536 echo "configure:13537: checking for dlfcn.h" >&5
13538 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13544 { (eval echo configure:13545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13546 if test -z "$ac_err"; then
13548 eval "ac_cv_header_$ac_safe=yes"
13551 echo "configure: failed program was:" >&5
13552 cat conftest.$ac_ext >&5
13554 eval "ac_cv_header_$ac_safe=no"
13557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13558 echo "$ac_t""yes" 1>&6
13560 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13561 echo "configure:13562: checking for dlopen in -lc" >&5
13562 cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13570 if { (eval echo configure:13571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13574 echo "configure: failed program was:" >&5
13575 cat conftest.$ac_ext >&5
13578 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13579 echo "configure:13580: checking for dlopen in -ldl" >&5
13580 ac_save_LIBS="$LIBS"
13582 cat > conftest.$ac_ext <<EOF
13583 #line 13584 "configure"
13584 #include "confdefs.h"
13590 if { (eval echo configure:13591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13594 echo "configure: failed program was:" >&5
13595 cat conftest.$ac_ext >&5
13597 LIBS="$ac_save_LIBS"
13604 echo "$ac_t""no" 1>&6
13607 if test -n "$have_dl"; then
13608 { test "$extra_verbose" = "yes" && cat << \EOF
13609 Defining HAVE_DLOPEN
13611 cat >> confdefs.h <<\EOF
13612 #define HAVE_DLOPEN 1
13618 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13619 echo "configure:13620: checking for shl_load in -ldld" >&5
13620 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13622 xe_check_libs=" -ldld "
13623 cat > conftest.$ac_ext <<EOF
13624 #line 13625 "configure"
13625 #include "confdefs.h"
13626 /* Override any gcc2 internal prototype to avoid an error. */
13627 /* We use char because int might match the return type of a gcc2
13628 builtin and then its argument prototype would still apply. */
13635 if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13637 eval "ac_cv_lib_$ac_lib_var=yes"
13639 echo "configure: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13642 eval "ac_cv_lib_$ac_lib_var=no"
13647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13648 echo "$ac_t""yes" 1>&6
13649 libdl=dld have_dl=yes;
13650 { test "$extra_verbose" = "yes" && cat << \EOF
13651 Defining HAVE_SHL_LOAD
13653 cat >> confdefs.h <<\EOF
13654 #define HAVE_SHL_LOAD 1
13659 echo "$ac_t""no" 1>&6
13661 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13662 echo "configure:13663: checking for dld_init in -ldld" >&5
13663 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13665 xe_check_libs=" -ldld "
13666 cat > conftest.$ac_ext <<EOF
13667 #line 13668 "configure"
13668 #include "confdefs.h"
13669 /* Override any gcc2 internal prototype to avoid an error. */
13670 /* We use char because int might match the return type of a gcc2
13671 builtin and then its argument prototype would still apply. */
13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13680 eval "ac_cv_lib_$ac_lib_var=yes"
13682 echo "configure: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13685 eval "ac_cv_lib_$ac_lib_var=no"
13690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13691 echo "$ac_t""yes" 1>&6
13692 libdl=dld have_dl=yes;
13693 { test "$extra_verbose" = "yes" && cat << \EOF
13694 Defining HAVE_DLD_INIT
13696 cat >> confdefs.h <<\EOF
13697 #define HAVE_DLD_INIT 1
13702 echo "$ac_t""no" 1>&6
13711 if test -n "$have_dl"; then
13718 ld_dynamic_link_flags=
13720 xealias=$internal_configuration
13722 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13723 echo "configure:13724: checking how to build dynamic libraries for ${xehost}" >&5
13724 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13727 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13730 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13731 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13732 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13734 case "$xehost_os" in
13736 # AIX sometimes has problems with the GCC collect2 program. For some
13737 # reason, if we set the COLLECT_NAMES environment variable, the problems
13738 # vanish in a puff of smoke.
13739 if test "${COLLECT_NAMES+set}" != set; then
13741 export COLLECT_NAMES
13746 # Now see if the compiler is really GCC.
13747 if test "$GCC" = "yes"; then
13750 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13751 echo "configure:13752: checking checking whether we are using GNU C" >&5
13752 cat > conftest.$ac_ext <<EOF
13753 #line 13754 "configure"
13754 #include "confdefs.h"
13761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13762 egrep "yes" >/dev/null 2>&1; then
13771 echo "$ac_t""${XEGCC}" 1>&6
13774 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13775 echo "configure:13776: checking how to produce PIC code" >&5
13778 can_build_shared=yes
13779 if test "$XEGCC" = yes; then
13782 case "$xehost_os" in
13783 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13784 # PIC is the default for these OSes.
13787 aix3* | aix4* | os2*)
13788 # We can build DLLs from non-PIC.
13791 # FIXME: we need at least 68020 code to build shared libraries, but
13792 # adding the `-m68020' flag to GCC prevents building anything better,
13794 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13796 *cygwin* | *mingw* )
13797 # PIC is the default
13804 # PORTME Check for PIC flags for the system compiler.
13805 case "$xehost_os" in
13806 hpux9* | hpux1[0-9]*)
13807 # Is there a better link_static_flag that works with the bundled CC?
13814 # PIC (with -KPIC) is the default.
13818 # We can build DLLs from non-PIC.
13822 # All OSF/1 code is PIC.
13827 dll_cflags='-belf -Kpic'
13861 can_build_shared=no
13866 if test -n "$dll_cflags"; then
13867 echo "$ac_t""${dll_cflags}" 1>&6
13869 # Check to make sure the dll_cflags actually works.
13870 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13871 echo "configure:13872: checking if PIC flag ${dll_cflags} really works" >&5
13872 save_CFLAGS="$CFLAGS"
13873 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13874 cat > conftest.$ac_ext <<EOF
13875 #line 13876 "configure"
13876 #include "confdefs.h"
13882 if { (eval echo configure:13883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13885 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13886 # reports no error. So, we need to grep stderr for (Bundled).
13887 if grep '(Bundled)' config.log >/dev/null; then
13888 echo "$ac_t""no" 1>&6
13889 can_build_shared=no
13892 echo "$ac_t""yes" 1>&6
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13898 echo "$ac_t""no" 1>&6
13899 can_build_shared=no
13903 CFLAGS="$save_CFLAGS"
13905 echo "$ac_t""none" 1>&6
13908 if test "$can_build_shared" = "yes"; then
13912 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13913 echo "configure:13914: checking if C compiler can produce shared libraries" >&5
13914 if test "$XEGCC" = yes; then
13917 else # Not using GCC
13918 case "$xehost_os" in
13920 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13921 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
13924 freebsd2* | netbsd* | openbsd*)
13926 xcldf="${wl}-Bshareable"
13935 xcldf="${wl}-b ${wl}+s"
13938 irix5* | irix6* | osf3* | osf4*)
13939 xcldf="${wl}-shared"
13943 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
13949 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
13950 xldf="-assert pure-text -Bstatic"
13953 fi # End if if we are using gcc
13955 if test -n "$xcldf"; then
13956 save_LDFLAGS=$LDFLAGS
13958 save_xe_libs=$xe_libs
13959 LDFLAGS="$xcldf $LDFLAGS"
13962 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13963 cat > conftest.$ac_ext <<EOF
13964 #line 13965 "configure"
13965 #include "confdefs.h"
13971 if { (eval echo configure:13972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13975 echo "configure: failed program was:" >&5
13976 cat conftest.$ac_ext >&5
13981 LDFLAGS=$save_LDFLAGS
13983 xe_libs=$save_xe_libs
13984 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13988 echo "$ac_t""${cc_produces_so}" 1>&6
13991 if test -z "$LTLD"; then
13993 if test "$XEGCC" = yes; then
13994 # Check if gcc -print-prog-name=ld gives a path.
13995 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13996 echo "configure:13997: checking for ld used by GCC" >&5
13997 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13999 # Accept absolute paths.
14001 if test -z "$LTLD"; then
14003 *gcc-lib*) LTLD="$CC"
14011 # If it fails, then pretend we aren't using GCC.
14015 # If it is relative, then search for the first ld in PATH.
14016 with_gnu_ld=unknown
14020 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14021 echo "configure:14022: checking for GNU ld" >&5
14024 if test -z "$LTLD"; then
14025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14026 for ac_dir in $PATH; do
14027 test -z "$ac_dir" && ac_dir=.
14028 if test -f "$ac_dir/$ac_prog"; then
14029 LTLD="$ac_dir/$ac_prog"
14030 # Check to see if the program is GNU ld. I'd rather use --version,
14031 # but apparently some GNU ld's only accept -v.
14032 # Break only if it was the GNU/non-GNU ld that we prefer.
14033 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14043 if test -n "$LTLD"; then
14044 echo "$ac_t""${LTLD}" 1>&6
14046 echo "$ac_t""no" 1>&6
14049 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14050 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14055 ld_dynamic_link_flags=
14057 # Check to see if it really is or isn't GNU ld.
14058 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14059 echo "configure:14060: checking if the linker is GNU ld" >&5
14060 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14061 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14066 echo "$ac_t""${xe_gnu_ld}" 1>&6
14068 case "$xehost_os" in
14069 amigaos* | sunos4*)
14070 # On these operating systems, we should treat GNU ld like the system ld.
14071 gnu_ld_acts_native=yes
14074 gnu_ld_acts_native=no
14078 if test "$cc_produces_so" = "yes"; then
14081 can_build_shared=yes
14084 # OK - only NOW do we futz about with ld.
14085 # See if the linker supports building shared libraries.
14086 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14087 echo "configure:14088: checking whether the linker supports shared libraries" >&5
14089 dll_ldflags=$LDFLAGS
14091 can_build_shared=yes
14092 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14093 # See if GNU ld supports shared libraries.
14094 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14096 dll_ldflags="-shared"
14102 # PORTME fill in a description of your system's linker (not GNU ld)
14103 case "$xehost_os" in
14113 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14114 # support. Future versions do this automatically, but an explicit c++rt0.o
14115 # doesn't break anything, and helps significantly (at the cost of a little
14120 dll_post="/usr/lib/c++rt0.o"
14123 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14126 dll_ldflags="-Bshareable"
14129 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14131 dll_ldflags="-shared"
14145 # Tested with NetBSD 1.2 ld
14160 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14161 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14164 *gcc*) dll_ldflags="-shared"
14167 *) dll_ldflags="-G"
14173 if test "$XEGCC" = yes; then
14193 can_build_shared=no
14197 echo "$ac_t""${ld_shlibs}" 1>&6
14198 if test "$ld_shlibs" = "no"; then
14199 can_build_shared=no
14201 fi # End of if cc_produces_so = no
14204 if test "$xe_gnu_ld" = yes; then
14205 if test "$ld_shlibs" = yes; then
14206 ld_dynamic_link_flags="${wl}-export-dynamic"
14210 if test -z "$ld_dynamic_link_flags"; then
14211 case "$xehost_os" in
14213 ld_dynamic_link_flags=
14217 ld_dynamic_link_flags=
14221 ld_dynamic_link_flags=
14225 ld_dynamic_link_flags=
14229 ld_dynamic_link_flags=
14233 ld_dynamic_link_flags="${wl}-E"
14237 ld_dynamic_link_flags=
14241 ld_dynamic_link_flags=
14245 ld_dynamic_link_flags=
14249 ld_dynamic_link_flags=
14252 solaris2* | solaris7*)
14253 ld_dynamic_link_flags=
14256 sco3.2v5* | unixware* | sysv5* | sysv4*)
14257 ld_dynamic_link_flags="${wl}-Bexport"
14261 ld_dynamic_link_flags=
14265 ld_dynamic_link_flags=
14269 ld_dynamic_link_flags=
14273 fi # End of if -z ld_dynamic_link_flags
14274 fi # End of if test "$can_build_shared" = "yes"
14285 if test "$can_build_shared" = "yes"; then
14286 { test "$extra_verbose" = "yes" && cat << \EOF
14287 Defining HAVE_SHLIB
14289 cat >> confdefs.h <<\EOF
14290 #define HAVE_SHLIB 1
14294 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14295 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14297 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14298 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14299 for ac_func in dlerror _dlerror
14301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14302 echo "configure:14303: checking for $ac_func" >&5
14304 cat > conftest.$ac_ext <<EOF
14305 #line 14306 "configure"
14306 #include "confdefs.h"
14307 /* System header to define __stub macros and hopefully few prototypes,
14308 which can conflict with char $ac_func(); below. */
14309 #include <assert.h>
14310 /* Override any gcc2 internal prototype to avoid an error. */
14311 /* We use char because int might match the return type of a gcc2
14312 builtin and then its argument prototype would still apply. */
14317 /* The GNU C library defines this for functions which it implements
14318 to always fail with ENOSYS. Some functions are actually named
14319 something starting with __ and the normal name is an alias. */
14320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14328 if { (eval echo configure:14329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14330 eval "ac_cv_func_$ac_func=yes"
14332 echo "configure: failed program was:" >&5
14333 cat conftest.$ac_ext >&5
14335 eval "ac_cv_func_$ac_func=no"
14339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14340 echo "$ac_t""yes" 1>&6
14341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14342 { test "$extra_verbose" = "yes" && cat << EOF
14343 Defining $ac_tr_func
14345 cat >> confdefs.h <<EOF
14346 #define $ac_tr_func 1
14351 echo "$ac_t""no" 1>&6
14357 if test "$with_modules" = "yes"; then
14358 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14360 echo "configure: warning: "Module support cannot be provided."" 1>&2
14366 cat > conftest.$ac_ext <<EOF
14367 #line 14368 "configure"
14368 #include "confdefs.h"
14369 int main(int c,char *v[]){return 0;}
14371 if { (eval echo configure:14372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14376 echo "configure: failed program was:" >&5
14377 cat conftest.$ac_ext >&5
14381 echo "*** PANIC *** The C compiler can no longer build working executables."
14382 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
14383 echo "*** PANIC *** The most likely reason for this problem is that configure"
14384 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
14385 echo "*** PANIC *** found at run time."
14386 echo "*** PANIC ***"
14387 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
14388 echo "*** PANIC *** On other systems, try telling configure where to find the"
14389 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
14390 echo "*** PANIC ***"
14391 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
14392 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
14393 echo "*** PANIC *** on your system. Don't do that."
14398 if test "$win32_processes" = "yes"; then
14399 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
14400 echo " xemacs will be linked with \"process-nt.o\""
14403 { test "$extra_verbose" = "yes" && cat << \EOF
14404 Defining HAVE_UNIX_PROCESSES
14406 cat >> confdefs.h <<\EOF
14407 #define HAVE_UNIX_PROCESSES 1
14411 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
14412 echo " xemacs will be linked with \"process-unix.o\""
14419 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14424 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14429 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
14430 c_switch_general="$T"
14434 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14435 c_switch_window_system="$T"
14439 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14444 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
14445 ld_switch_general="$T"
14449 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14450 ld_switch_window_system="$T"
14454 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14459 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14460 ld_libs_general="$T"
14464 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
14465 ld_libs_window_system="$T"
14469 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14474 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14475 internal_makefile_list="Makefile.in"
14476 SUBDIR_MAKEFILES=''
14477 test -d lock || mkdir lock
14478 for dir in $MAKE_SUBDIR; do
14479 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
14480 test -d "$d" || mkdir "$d"; cd "$d"
14482 * ) test -d "$dir" || mkdir "$dir" ;;
14486 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14487 SUBDIR_MAKEFILES="$T"
14491 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14492 internal_makefile_list="$T"
14499 for dir in src/s src/m; do
14500 if test ! -d "$dir" ; then
14501 echo Making symbolic link to "$srcdir/$dir"
14502 ${LN_S} "$srcdir/$dir" "$dir"
14506 if test "$extra_verbose" = "yes"; then
14508 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
14513 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
14514 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
14515 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
14518 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
14519 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
14520 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
14523 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
14524 test "$extra_verbose" = "yes" && echo "creating TAGS"
14526 $srcdir/TAGS,include" > "TAGS"
14529 if test "$__SUNPRO_C" = "yes"; then
14530 test "$extra_verbose" = "yes" && echo "creating .sbinit"
14531 ( echo "# For use with Sun WorkShop's Source browser."
14532 echo "# See sbquery(1) and sbinit(4) for more information"
14533 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14561 *\$* ) eval "PREFIX=$PREFIX" ;;
14569 EXEC_PREFIX=$exec_prefix
14571 case "$EXEC_PREFIX" in
14572 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
14583 *\$* ) eval "INFODIR=$INFODIR" ;;
14593 case "$INFOPATH" in
14594 *\$* ) eval "INFOPATH=$INFOPATH" ;;
14602 PACKAGE_PATH=$package_path
14604 case "$PACKAGE_PATH" in
14605 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
14616 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14624 MODULEDIR=$moduledir
14626 case "$MODULEDIR" in
14627 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14635 SITELISPDIR=$sitelispdir
14637 case "$SITELISPDIR" in
14638 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14646 SITEMODULEDIR=$sitemoduledir
14648 case "$SITEMODULEDIR" in
14649 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14660 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14671 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14679 ARCHLIBDIR=$archlibdir
14681 case "$ARCHLIBDIR" in
14682 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14706 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14714 : ${XEMACS_CC:=$CC}
14717 if test "$with_prefix" = "yes"; then
14718 { test "$extra_verbose" = "yes" && cat << \EOF
14719 Defining PREFIX_USER_DEFINED
14721 cat >> confdefs.h <<\EOF
14722 #define PREFIX_USER_DEFINED 1
14728 if test "$with_site_lisp" = "no"; then
14729 { test "$extra_verbose" = "yes" && cat << \EOF
14730 Defining INHIBIT_SITE_LISP
14732 cat >> confdefs.h <<\EOF
14733 #define INHIBIT_SITE_LISP 1
14738 if test "$with_site_modules" = "no"; then
14739 { test "$extra_verbose" = "yes" && cat << \EOF
14740 Defining INHIBIT_SITE_MODULES
14742 cat >> confdefs.h <<\EOF
14743 #define INHIBIT_SITE_MODULES 1
14751 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14752 ac_configure_args="$T"
14754 { test "$extra_verbose" = "yes" && cat << EOF
14755 Defining EMACS_CONFIGURATION = "$configuration"
14757 cat >> confdefs.h <<EOF
14758 #define EMACS_CONFIGURATION "$configuration"
14762 { test "$extra_verbose" = "yes" && cat << EOF
14763 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14765 cat >> confdefs.h <<EOF
14766 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14773 { test "$extra_verbose" = "yes" && cat << EOF
14774 Defining LD_SWITCH_X_SITE = $null_string
14776 cat >> confdefs.h <<EOF
14777 #define LD_SWITCH_X_SITE $null_string
14781 { test "$extra_verbose" = "yes" && cat << EOF
14782 Defining LD_SWITCH_X_SITE_AUX = $null_string
14784 cat >> confdefs.h <<EOF
14785 #define LD_SWITCH_X_SITE_AUX $null_string
14789 { test "$extra_verbose" = "yes" && cat << EOF
14790 Defining C_SWITCH_X_SITE = $null_string
14792 cat >> confdefs.h <<EOF
14793 #define C_SWITCH_X_SITE $null_string
14797 { test "$extra_verbose" = "yes" && cat << EOF
14798 Defining LD_SWITCH_SITE = $null_string
14800 cat >> confdefs.h <<EOF
14801 #define LD_SWITCH_SITE $null_string
14805 { test "$extra_verbose" = "yes" && cat << EOF
14806 Defining C_SWITCH_SITE = $null_string
14808 cat >> confdefs.h <<EOF
14809 #define C_SWITCH_SITE $null_string
14815 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14816 Defining GNU_MALLOC
14818 cat >> confdefs.h <<\EOF
14819 #define GNU_MALLOC 1
14823 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14824 Defining USE_SYSTEM_MALLOC
14826 cat >> confdefs.h <<\EOF
14827 #define USE_SYSTEM_MALLOC 1
14831 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14832 Defining USE_DEBUG_MALLOC
14834 cat >> confdefs.h <<\EOF
14835 #define USE_DEBUG_MALLOC 1
14839 { test "$extra_verbose" = "yes" && cat << \EOF
14840 Defining USE_SYSTEM_MALLOC
14842 cat >> confdefs.h <<\EOF
14843 #define USE_SYSTEM_MALLOC 1
14848 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14851 cat >> confdefs.h <<\EOF
14856 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14859 cat >> confdefs.h <<\EOF
14864 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14865 Defining EXTERNAL_WIDGET
14867 cat >> confdefs.h <<\EOF
14868 #define EXTERNAL_WIDGET 1
14872 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14873 Defining QUICK_BUILD
14875 cat >> confdefs.h <<\EOF
14876 #define QUICK_BUILD 1
14880 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14883 cat >> confdefs.h <<\EOF
14888 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14891 cat >> confdefs.h <<\EOF
14896 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14897 Defining MAIL_USE_POP
14899 cat >> confdefs.h <<\EOF
14900 #define MAIL_USE_POP 1
14904 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14907 cat >> confdefs.h <<\EOF
14912 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14915 cat >> confdefs.h <<\EOF
14920 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14921 Defining USE_UNION_TYPE
14923 cat >> confdefs.h <<\EOF
14924 #define USE_UNION_TYPE 1
14928 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14931 cat >> confdefs.h <<\EOF
14939 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
14941 echo "uname -a: `uname -a`"
14944 echo "$0 $quoted_arguments"
14947 if test ! -z ${emacs_beta_version} ; then
14948 if test -z "${emacs_is_beta}" ; then
14949 xemacs_betaname=".${emacs_beta_version}"
14951 xemacs_betaname="-b${emacs_beta_version}"
14960 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
14963 Compilation / Installation:"
14964 echo " Source code location: $srcdir"
14965 echo " Installation prefix: $prefix"
14966 if test -n "$site_includes"; then
14967 echo " Additional header files: $site_includes"
14969 if test -n "$site_libraries"; then
14970 echo " Additional libraries: $site_libraries"
14972 if test -n "$site_prefixes"; then
14973 echo " Additional prefixes: $site_prefixes"
14975 if test -n "$runpath"; then
14976 echo " Runtime library search path: $runpath"
14979 if test -n "$opsysfile"
14980 then echo " Operating system description file: \`$opsysfile'"
14981 else echo " Not using any operating system description file"
14983 if test -n "$machfile"
14984 then echo " Machine description file: \`$machfile'"
14985 else echo " Not using any machine description file"
14988 echo " Compiler: $CC $CFLAGS"
14989 echo " Relocating allocator for buffers: $rel_alloc"
14990 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
14994 if test "$with_msw" = "yes"; then
14995 echo " Compiling in support for the Microsoft window system."
14997 if test "$with_x11" = "yes"; then
14998 echo " Compiling in support for the X window system:"
14999 echo " - X Windows headers location: $x_includes"
15000 echo " - X Windows libraries location: $x_libraries"
15001 if test "$with_xauth" != yes; then
15002 echo " - Xau (X authority) not available."
15004 if test "$with_xmu" != yes; then
15005 echo " - Xmu library not available; substituting equivalent routines."
15007 if test "$with_wmcommand" != no; then
15008 echo " - Handling WM_COMMAND properly."
15011 if test "$need_athena" = "yes"; then
15012 echo " Compiling in support for the Athena widget set:"
15013 echo " - Athena headers location: $athena_h_path"
15014 echo " - Athena library to link: $athena_lib"
15016 case "$with_menubars" in
15017 lucid ) echo " Using Lucid menubars." ;;
15018 motif ) echo " Using Motif menubars."
15019 echo " *WARNING* The Motif menubar implementation is currently buggy."
15020 echo " We recommend using the Lucid menubar instead."
15021 echo " Re-run configure with --with-menubars='lucid'." ;;
15022 msw ) echo " Using MS-Windows menubars." ;;
15024 case "$with_scrollbars" in
15025 lucid ) echo " Using Lucid scrollbars." ;;
15026 motif ) echo " Using Motif scrollbars." ;;
15027 athena ) echo " Using Athena scrollbars." ;;
15028 msw ) echo " Using MS-Windows scrollbars." ;;
15030 case "$with_dialogs" in
15031 motif ) echo " Using Motif dialog boxes."
15032 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15033 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15034 echo " We recommend using the Athena dialog boxes instead."
15035 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15036 echo " Read the PROBLEMS file for more information."
15038 athena ) echo " Using Athena dialog boxes." ;;
15039 msw ) echo " Using MS-Windows dialog boxes." ;;
15041 case "$with_widgets" in
15042 motif ) echo " Using Motif native widgets." ;;
15043 athena ) echo " Using Athena native widgets." ;;
15044 msw ) echo " Using MS-Windows native widgets." ;;
15046 if test "$with_dragndrop" = yes; then
15047 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15048 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15053 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15054 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15058 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15059 if test "$with_xpm" = yes; then
15060 echo " Compiling in support for XPM images."
15061 elif test "$with_x11" = yes; then
15062 echo " WARNING: -----------------------------------------------------------"
15063 echo " WARNING: Compiling without XPM image support."
15064 if test "$xpm_problem" != ""; then
15065 echo " Reason: $xpm_problem"
15067 echo " WARNING: You should strongly consider installing XPM."
15068 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15069 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15070 echo " WARNING: -----------------------------------------------------------"
15072 if test "$with_png" = yes; then
15073 echo " Compiling in support for PNG images."
15074 elif test "$window_system" != "none"; then
15075 echo " WARNING: -----------------------------------------------------------"
15076 echo " WARNING: Compiling without PNG image support."
15077 if test "$png_problem" != ""; then
15078 echo " Reason: $png_problem"
15080 echo " WARNING: You should strongly consider installing the PNG libraries."
15081 echo " WARNING: Otherwise certain images and glyphs may not display."
15082 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15083 echo " WARNING: -----------------------------------------------------------"
15085 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15086 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15087 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15091 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15092 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15093 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15094 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15098 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15099 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15100 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15101 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15102 if test "$with_postgresql" = yes; then
15103 echo " Compiling in support for PostgreSQL."
15104 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15105 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15109 Internationalization:"
15110 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15111 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15112 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15113 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15114 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15115 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15116 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15117 if test "$with_wnn" = yes; then
15118 echo " Compiling in support for the WNN input method on Mule."
15119 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15121 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15125 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15126 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15127 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15128 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15132 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15133 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15134 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15135 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15136 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15137 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15138 test "$pdump" = yes && echo " Using the new portable dumper."
15139 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15140 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15141 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15142 != "no no no no no no"; then
15143 echo " WARNING: ---------------------------------------------------------"
15144 echo " WARNING: Compiling in support for runtime error checking."
15145 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15146 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15147 echo " WARNING: ---------------------------------------------------------"
15150 ) | tee -a Installation
15154 # Remove any trailing slashes in these variables.
15155 test -n "$prefix" &&
15156 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15157 test -n "$exec_prefix" &&
15158 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15161 for file in $internal_makefile_list; do
15162 test "$file" = src/Makefile.in && \
15163 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15164 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15166 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15167 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
15171 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15174 # Let make expand exec_prefix.
15175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15177 # Any assignment to VPATH causes Sun make to only execute
15178 # the first set of double-colon rules, so remove it if not needed.
15179 # If there is a colon in the path, we need to keep it.
15180 if test "x$srcdir" = x.; then
15181 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15184 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15186 DEFS=-DHAVE_CONFIG_H
15188 # Without the "./", some shells look in PATH for config.status.
15189 : ${CONFIG_STATUS=./config.status}
15191 echo creating $CONFIG_STATUS
15192 rm -f $CONFIG_STATUS
15193 cat > $CONFIG_STATUS <<EOF
15195 # Generated automatically by configure.
15196 # Run this file to recreate the current configuration.
15197 # This directory was configured as follows,
15198 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15200 # $0 $ac_configure_args
15202 # Compiler output produced by configure, useful for debugging
15203 # configure, is in ./config.log if it exists.
15205 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15208 case "\$ac_option" in
15209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15210 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15211 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15212 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15213 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15215 -help | --help | --hel | --he | --h)
15216 echo "\$ac_cs_usage"; exit 0 ;;
15217 *) echo "\$ac_cs_usage"; exit 1 ;;
15221 ac_given_srcdir=$srcdir
15222 ac_given_INSTALL="$INSTALL"
15224 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15226 cat >> $CONFIG_STATUS <<EOF
15228 # Protect against being on the right side of a sed subst in config.status.
15229 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15230 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15234 s%@CFLAGS@%$CFLAGS%g
15235 s%@CPPFLAGS@%$CPPFLAGS%g
15236 s%@CXXFLAGS@%$CXXFLAGS%g
15237 s%@FFLAGS@%$FFLAGS%g
15239 s%@LDFLAGS@%$LDFLAGS%g
15241 s%@exec_prefix@%$exec_prefix%g
15242 s%@prefix@%$prefix%g
15243 s%@program_transform_name@%$program_transform_name%g
15244 s%@bindir@%$bindir%g
15245 s%@sbindir@%$sbindir%g
15246 s%@libexecdir@%$libexecdir%g
15247 s%@datadir@%$datadir%g
15248 s%@sysconfdir@%$sysconfdir%g
15249 s%@sharedstatedir@%$sharedstatedir%g
15250 s%@localstatedir@%$localstatedir%g
15251 s%@libdir@%$libdir%g
15252 s%@includedir@%$includedir%g
15253 s%@oldincludedir@%$oldincludedir%g
15254 s%@infodir@%$infodir%g
15255 s%@mandir@%$mandir%g
15257 s%@blddir@%$blddir%g
15260 s%@start_flags@%$start_flags%g
15261 s%@ld_switch_shared@%$ld_switch_shared%g
15262 s%@start_files@%$start_files%g
15264 s%@lib_gcc@%$lib_gcc%g
15265 s%@RANLIB@%$RANLIB%g
15266 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15267 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15268 s%@INSTALL_DATA@%$INSTALL_DATA%g
15270 s%@SET_MAKE@%$SET_MAKE%g
15271 s%@X_CFLAGS@%$X_CFLAGS%g
15272 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15273 s%@X_LIBS@%$X_LIBS%g
15274 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15275 s%@install_pp@%$install_pp%g
15276 s%@libs_xauth@%$libs_xauth%g
15277 s%@dnd_objs@%$dnd_objs%g
15278 s%@lwlib_objs@%$lwlib_objs%g
15279 s%@ALLOCA@%$ALLOCA%g
15280 s%@have_esd_config@%$have_esd_config%g
15281 s%@dll_ld@%$dll_ld%g
15282 s%@dll_cflags@%$dll_cflags%g
15283 s%@dll_ldflags@%$dll_ldflags%g
15284 s%@dll_post@%$dll_post%g
15285 s%@dll_ldo@%$dll_ldo%g
15286 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15287 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15288 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15289 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15290 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15291 s%@PROGNAME@%$PROGNAME%g
15292 s%@version@%$version%g
15293 s%@configuration@%$configuration%g
15294 s%@canonical@%$canonical%g
15295 s%@inststaticdir@%$inststaticdir%g
15296 s%@instvardir@%$instvardir%g
15297 s%@srcdir@%$srcdir%g
15298 s%@pkgdir@%$pkgdir%g
15299 s%@statedir@%$statedir%g
15300 s%@extra_includes@%$extra_includes%g
15301 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15302 s%@PREFIX@%$PREFIX%g
15303 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15304 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15305 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15306 s%@INFODIR@%$INFODIR%g
15307 s%@infopath@%$infopath%g
15308 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15309 s%@INFOPATH@%$INFOPATH%g
15310 s%@package_path@%$package_path%g
15311 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15312 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15313 s%@lispdir@%$lispdir%g
15314 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15315 s%@LISPDIR@%$LISPDIR%g
15316 s%@moduledir@%$moduledir%g
15317 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15318 s%@MODULEDIR@%$MODULEDIR%g
15319 s%@sitelispdir@%$sitelispdir%g
15320 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15321 s%@SITELISPDIR@%$SITELISPDIR%g
15322 s%@sitemoduledir@%$sitemoduledir%g
15323 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15324 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15325 s%@etcdir@%$etcdir%g
15326 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15327 s%@ETCDIR@%$ETCDIR%g
15328 s%@docdir@%$docdir%g
15329 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15330 s%@DOCDIR@%$DOCDIR%g
15331 s%@archlibdir@%$archlibdir%g
15332 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15333 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15334 s%@bitmapdir@%$bitmapdir%g
15335 s%@extra_objs@%$extra_objs%g
15336 s%@machfile@%$machfile%g
15337 s%@opsysfile@%$opsysfile%g
15338 s%@c_switch_general@%$c_switch_general%g
15339 s%@c_switch_window_system@%$c_switch_window_system%g
15340 s%@c_switch_all@%$c_switch_all%g
15341 s%@ld_switch_general@%$ld_switch_general%g
15342 s%@ld_switch_window_system@%$ld_switch_window_system%g
15343 s%@ld_switch_all@%$ld_switch_all%g
15344 s%@ld_libs_general@%$ld_libs_general%g
15345 s%@ld_libs_window_system@%$ld_libs_window_system%g
15346 s%@ld_libs_all@%$ld_libs_all%g
15347 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15348 s%@native_sound_lib@%$native_sound_lib%g
15349 s%@sound_cflags@%$sound_cflags%g
15350 s%@dynodump_arch@%$dynodump_arch%g
15351 s%@XEMACS_CC@%$XEMACS_CC%g
15352 s%@internal_makefile_list@%$internal_makefile_list%g
15357 cat >> $CONFIG_STATUS <<\EOF
15359 # Split the substitutions into bite-sized pieces for seds with
15360 # small command number limits, like on Digital OSF/1 and HP-UX.
15361 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15362 ac_file=1 # Number of current file.
15363 ac_beg=1 # First line for current file.
15364 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15367 while $ac_more_lines; do
15368 if test $ac_beg -gt 1; then
15369 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15371 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15373 if test ! -s conftest.s$ac_file; then
15374 ac_more_lines=false
15375 rm -f conftest.s$ac_file
15377 if test -z "$ac_sed_cmds"; then
15378 ac_sed_cmds="sed -f conftest.s$ac_file"
15380 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15382 ac_file=`expr $ac_file + 1`
15384 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15387 if test -z "$ac_sed_cmds"; then
15392 cat >> $CONFIG_STATUS <<EOF
15394 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
15396 cat >> $CONFIG_STATUS <<\EOF
15397 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15398 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15400 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15401 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15402 *) ac_file_in="${ac_file}.in" ;;
15405 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15407 # Remove last slash and all that follows it. Not all systems have dirname.
15408 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15409 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15410 # The file is in a subdirectory.
15411 test ! -d "$ac_dir" && mkdir "$ac_dir"
15412 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15413 # A "../" for each directory in $ac_dir_suffix.
15414 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15416 ac_dir_suffix= ac_dots=
15419 case "$ac_given_srcdir" in
15421 if test -z "$ac_dots"; then top_srcdir=.
15422 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15423 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15424 *) # Relative path.
15425 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15426 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15429 case "$ac_given_INSTALL" in
15430 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15431 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15434 echo creating "$ac_file"
15436 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15438 *Makefile*) ac_comsub="1i\\
15439 # $configure_input" ;;
15443 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15445 s%@configure_input@%$configure_input%g
15446 s%@srcdir@%$srcdir%g
15447 s%@top_srcdir@%$top_srcdir%g
15448 s%@INSTALL@%$INSTALL%g
15449 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15453 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15454 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15456 # ac_d sets the value in "#define NAME VALUE" lines.
15457 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15458 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15461 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15462 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15463 ac_uB='\([ ]\)%\1#\2define\3'
15466 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15467 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15468 ac_eB='$%\1#\2define\3'
15472 if test "${CONFIG_HEADERS+set}" != set; then
15474 cat >> $CONFIG_STATUS <<EOF
15475 CONFIG_HEADERS="src/config.h lwlib/config.h"
15477 cat >> $CONFIG_STATUS <<\EOF
15479 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15480 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15482 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15483 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15484 *) ac_file_in="${ac_file}.in" ;;
15487 echo creating $ac_file
15489 rm -f conftest.frag conftest.in conftest.out
15490 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15491 cat $ac_file_inputs > conftest.in
15495 # Transform confdefs.h into a sed script conftest.vals that substitutes
15496 # the proper values into config.h.in to produce config.h. And first:
15497 # Protect against being on the right side of a sed subst in config.status.
15498 # Protect against being in an unquoted here document in config.status.
15499 rm -f conftest.vals
15500 cat > conftest.hdr <<\EOF
15503 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15507 sed -n -f conftest.hdr confdefs.h > conftest.vals
15510 # This sed command replaces #undef with comments. This is necessary, for
15511 # example, in the case of _POSIX_SOURCE, which is predefined and required
15512 # on some systems where configure will not decide to define it.
15513 cat >> conftest.vals <<\EOF
15514 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15517 # Break up conftest.vals because some shells have a limit on
15518 # the size of here documents, and old seds have small limits too.
15520 rm -f conftest.tail
15523 ac_lines=`grep -c . conftest.vals`
15524 # grep -c gives empty output for an empty file on some AIX systems.
15525 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15526 # Write a limited-size here document to conftest.frag.
15527 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15528 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15530 sed -f conftest.frag conftest.in > conftest.out
15532 mv conftest.out conftest.in
15533 ' >> $CONFIG_STATUS
15534 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15535 rm -f conftest.vals
15536 mv conftest.tail conftest.vals
15538 rm -f conftest.vals
15540 cat >> $CONFIG_STATUS <<\EOF
15541 rm -f conftest.frag conftest.h
15542 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15543 cat conftest.in >> conftest.h
15545 if cmp -s $ac_file conftest.h 2>/dev/null; then
15546 echo "$ac_file is unchanged"
15549 # Remove last slash and all that follows it. Not all systems have dirname.
15550 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15551 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15552 # The file is in a subdirectory.
15553 test ! -d "$ac_dir" && mkdir "$ac_dir"
15556 mv conftest.h $ac_file
15561 cat >> $CONFIG_STATUS <<EOF
15563 top_srcdir="$srcdir"
15564 MAKE_SUBDIR="$MAKE_SUBDIR"
15567 cat >> $CONFIG_STATUS <<\EOF
15568 for dir in . $MAKE_SUBDIR; do
15573 sed -e '/^# Generated/d' \
15574 -e 's%/\*\*/#.*%%' \
15589 echo creating $dir/Makefile
15590 $CPP -I. -I${top_srcdir}/src junk.c \
15591 | sed -e 's/^\#.*//' \
15592 -e 's/^[ ][ ]*$//'\
15600 chmod 444 Makefile.new
15601 mv -f Makefile.new Makefile
15603 echo creating $dir/GNUmakefile
15604 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
15605 | sed -e 's/^\#.*//' \
15606 -e 's/^[ ][ ]*$//'\
15614 chmod 444 Makefile.new
15615 mv -f Makefile.new GNUmakefile
15621 sed < config.status >> lib-src/config.values \
15622 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15623 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15624 -e 's/^\([^ ]*\) $/\1 ""/' \
15630 chmod +x $CONFIG_STATUS
15631 rm -fr confdefs* $ac_clean_files
15632 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1