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 | \
370 memory_usage_stats | \
371 with_clash_detection | \
375 y | ye | yes ) val=yes ;;
377 * ) (echo "$progname: Usage error:"
378 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
379 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
381 eval "$opt=\"$val\"" ;;
399 site_runtime_libraries )
400 if test "$valomitted" = "yes" ; then
401 if test "$#" = 0 ; then
402 (echo "$progname: Usage error:"
403 echo " " "The \`--$optname' option requires a value."
404 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
413 with_debug_malloc | use_debug_malloc | \
414 with_system_malloc | use_system_malloc )
416 y | ye | yes ) val=yes ;;
418 d | de | def | defa | defau | defaul | default ) val=default ;;
419 * ) (echo "$progname: Usage error:"
420 echo " " "The \`--$optname' option requires one of these values:
421 \`yes', \`no', or \`default'."
422 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
424 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
429 with_database_berkdb=no
431 with_database_gdbm=no
432 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
435 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
436 d | db | dbm ) with_database_dbm=yes ;;
437 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
438 * ) (echo "$progname: Usage error:"
439 echo " " "The \`--$optname' option value
440 must be either \`no' or a comma-separated list
441 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
445 if test "$with_database_dbm" = "yes" -a \
446 "$with_database_gdbm" = "yes"; then
447 (echo "$progname: Usage error:"
448 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
449 with the \`--$optname' option."
450 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
455 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
457 n | no | non | none ) new_sdefault=no ;;
458 a | al | all | both ) new_sdefault=yes ;;
460 native ) with_native_sound=yes ;;
461 nonative ) with_native_sound=no ;;
463 nas ) with_nas_sound=yes ;;
464 nonas ) with_nas_sound=no ;;
466 esd ) with_esd_sound=yes ;;
467 noesd ) with_esd_sound=no ;;
469 * ) bogus_sound=yes ;;
471 if test "$bogus_sound" -o \
472 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
473 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
474 (echo "$progname: Usage error:"
475 echo " " "Valid types for the \`--$optname' option are:
477 The default is to autodetect all sound support."
478 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
479 elif test -n "$new_sdefault" ; then
480 with_native_sound=$new_sdefault
481 with_nas_sound=$new_sdefault
482 with_esd_sound=$new_sdefault
483 new_sdefault= # reset this
491 xa | xaw ) val=xaw ;;
492 3 | 3d | xaw3d ) val=3d ;;
493 ne | nex | next | naxtaw) val=next ;;
494 9 | 95 | xaw95 ) val=95 ;;
495 xp | xpm | xawxpm ) val=xpm ;;
496 * ) (echo "$progname: Usage error:"
497 echo " " "The \`--$optname' option must have one of these values:
498 \`xaw', \`3d', \`next', \`95', or \`xpm'."
499 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
506 y | ye | yes ) val=yes ;;
507 n | no | non | none ) val=no ;;
508 x | xl | xli | xlib ) val=xlib ;;
509 m | mo | mot | moti | motif ) val=motif ;;
510 * ) (echo "$progname: Usage error:"
511 echo " " "The \`--$optname' option must have one of these values:
512 \`motif', \`xlib', \`yes', or \`no'."
513 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
522 file | dot ) val=file ;;
523 locking ) val=locking ;;
524 * ) (echo "$progname: Usage error:"
525 echo " " "The \`--$optname' option must have one of these values:
526 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
527 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
534 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
536 n | no | non | none ) new_default=no ;;
537 a | al | all ) new_default=yes ;;
539 extents ) error_check_extents=yes ;;
540 noextents ) error_check_extents=no ;;
542 typecheck ) error_check_typecheck=yes ;;
543 notypecheck ) error_check_typecheck=no ;;
545 bufpos ) error_check_bufpos=yes ;;
546 nobufpos ) error_check_bufpos=no ;;
548 gc ) error_check_gc=yes ;;
549 nogc ) error_check_gc=no ;;
551 malloc ) error_check_malloc=yes ;;
552 nomalloc ) error_check_malloc=no ;;
554 byte_code ) error_check_byte_code=yes ;;
555 nobyte_code ) error_check_byte_code=no ;;
557 glyphs ) error_check_glyphs=yes ;;
558 noglyphs ) error_check_glyphs=no ;;
560 * ) bogus_error_check=yes ;;
562 if test "$bogus_error_check" -o \
563 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
564 if test "$error_check_default" = yes ; then
565 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
567 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
569 (echo "$progname: Usage error:"
570 echo " " "Valid types for the \`--$optname' option are:
572 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
573 elif test -n "$new_default" ; then
574 error_check_extents=$new_default
575 error_check_typecheck=$new_default
576 error_check_bufpos=$new_default
577 error_check_gc=$new_default
578 error_check_malloc=$new_default
579 error_check_byte_code=$new_default
580 error_check_glyphs=$new_default
581 new_default= # reset this
588 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
589 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
590 archlibdir | docdir | package_path )
591 if test "$valomitted" = "yes"; then
592 if test "$#" = 0; then
593 (echo "$progname: Usage error:"
594 echo " " "The \`--$optname' option requires a value."
595 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
602 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
603 Defining EXEC_PREFIX_USER_DEFINED
605 cat >> confdefs.h <<\EOF
606 #define EXEC_PREFIX_USER_DEFINED 1
610 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
611 Defining LISPDIR_USER_DEFINED
613 cat >> confdefs.h <<\EOF
614 #define LISPDIR_USER_DEFINED 1
618 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
619 Defining SITELISPDIR_USER_DEFINED
621 cat >> confdefs.h <<\EOF
622 #define SITELISPDIR_USER_DEFINED 1
626 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
627 Defining MODULEDIR_USER_DEFINED
629 cat >> confdefs.h <<\EOF
630 #define MODULEDIR_USER_DEFINED 1
634 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
635 Defining ETCDIR_USER_DEFINED
637 cat >> confdefs.h <<\EOF
638 #define ETCDIR_USER_DEFINED 1
642 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
643 Defining INFODIR_USER_DEFINED
645 cat >> confdefs.h <<\EOF
646 #define INFODIR_USER_DEFINED 1
650 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
651 Defining INFOPATH_USER_DEFINED
653 cat >> confdefs.h <<\EOF
654 #define INFOPATH_USER_DEFINED 1
658 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
659 Defining PACKAGE_PATH_USER_DEFINED
661 cat >> confdefs.h <<\EOF
662 #define PACKAGE_PATH_USER_DEFINED 1
667 { test "$extra_verbose" = "yes" && cat << \EOF
668 Defining INFODIR_USER_DEFINED
670 cat >> confdefs.h <<\EOF
671 #define INFODIR_USER_DEFINED 1
675 { test "$extra_verbose" = "yes" && cat << \EOF
676 Defining LISPDIR_USER_DEFINED
678 cat >> confdefs.h <<\EOF
679 #define LISPDIR_USER_DEFINED 1
683 { test "$extra_verbose" = "yes" && cat << \EOF
684 Defining MODULEDIR_USER_DEFINED
686 cat >> confdefs.h <<\EOF
687 #define MODULEDIR_USER_DEFINED 1
691 { test "$extra_verbose" = "yes" && cat << \EOF
692 Defining ETCDIR_USER_DEFINED
694 cat >> confdefs.h <<\EOF
695 #define ETCDIR_USER_DEFINED 1
699 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
700 Defining DOCDIR_USER_DEFINED
702 cat >> confdefs.h <<\EOF
703 #define DOCDIR_USER_DEFINED 1
707 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
708 Defining ARCHLIBDIR_USER_DEFINED
710 cat >> confdefs.h <<\EOF
711 #define ARCHLIBDIR_USER_DEFINED 1
720 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
723 "with_scrollbars" | \
727 l | lu | luc | luci | lucid ) val=lucid ;;
728 m | mo | mot | moti | motif ) val=motif ;;
729 a | at | ath | athe | athen | athena ) val=athena ;;
730 n | no | non | none ) val=no ;;
731 y | ye | yes ) val=yes ;;
732 m | ms | msw ) val=msw ;;
733 * ) (echo "$progname: Usage error:"
734 echo " " "The \`--$optname' option must have one of these values:
735 \`lucid', \`motif', \`athena', \`yes', or \`no'."
736 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
741 "use_minimal_tagbits" | \
742 "use_indexed_lrecord_implementation" | \
744 "const_is_losing" | \
746 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
749 * ) (echo "$progname: Usage error:"
750 echo " " "Unrecognized option: $arg"
751 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
756 *-*-*) configuration="$arg" ;;
758 *) (echo "$progname: Usage error:"
759 echo " " "Unrecognized argument: $arg"
760 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
766 test -n "$cpp" && CPP="$cpp"
767 test -n "$cppflags" && CPPFLAGS="$cppflags"
768 test -n "$libs" && LIBS="$libs"
769 test -n "$ldflags" && LDFLAGS="$ldflags"
771 eval set x "$quoted_arguments"; shift
773 test "$extra_verbose" = "yes" && verbose=yes
775 test -n "$with_x" && with_x11="$with_x"
777 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
778 test "$with_system_malloc" = "default" && with_system_malloc=yes
783 if test "$with_cde $with_tooltalk" = "yes no"; then
784 (echo "$progname: Usage error:"
785 echo " " "--with-cde requires --with-tooltalk"
786 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
787 elif test "$with_tooltalk" = "no" ; then with_cde=no
788 elif test "$with_cde" = "yes"; then with_tooltalk=yes
795 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
796 if test -f "$dir/src/lisp.h" -a \
797 -f "$dir/lisp/version.el" ; then
802 if test -z "$srcdir" ; then
803 (echo "$progname: Usage error:"
804 echo " " "Neither the current directory nor its parent seem to
805 contain the XEmacs sources. If you do not want to build XEmacs in its
806 source tree, you should run \`$progname' in the directory in which
807 you wish to build XEmacs, using the \`--srcdir' option to say where the
808 sources may be found."
809 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
814 if test ! -f "$srcdir/src/lisp.h" -o \
815 ! -f "$srcdir/lisp/version.el" ; then
816 (echo "$progname: Usage error:"
817 echo " " "The directory specified with the \`--srcdir' option,
818 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
819 either run the \`$progname' script at the top of the XEmacs source
820 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
821 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
826 if test -z "$configuration"; then
827 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
828 if test -z "$configuration"; then
829 (echo "$progname: Usage error:"
830 echo " " "XEmacs has not been ported to this host type.
831 Try explicitly specifying the CONFIGURATION when rerunning configure."
832 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
836 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
837 echo "configure:838: checking whether ln -s works" >&5
840 if ln -s X conftestdata 2>/dev/null
843 ac_cv_prog_LN_S="ln -s"
847 LN_S="$ac_cv_prog_LN_S"
848 if test "$ac_cv_prog_LN_S" = "ln -s"; then
849 echo "$ac_t""yes" 1>&6
851 echo "$ac_t""no" 1>&6
855 for dir in lisp etc man info tests; do
856 if test ! -d "$dir" ; then
857 echo Making symbolic link to "$srcdir/$dir"
858 ${LN_S} "$srcdir/$dir" "$dir"
863 absolute_pwd="`pwd`";
864 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
866 else blddir="$absolute_pwd"; if test -d "/net"; then
867 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
868 blddir=`echo "$blddir" | \
869 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
876 . ) srcdir="$blddir" ;;
877 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
878 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
879 srcdir=`echo "$srcdir" | \
880 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
884 if test `pwd` != `sh -c cd $srcdir && pwd` \
885 && test -f "$srcdir/src/config.h"; then
886 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
887 echo " as a build directory right now; it has been configured in its own"
888 echo " right. To configure in another directory as well, you MUST"
889 echo " use GNU make. If you do not have GNU make, then you must"
890 echo " now do \`make distclean' in $srcdir,"
891 echo " and then run $progname again.") >&2
892 extrasub='/^VPATH[ ]*=/c\
898 vpath %.in $(srcdir)'
901 . "$srcdir/version.sh" || exit 1;
902 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
903 : "${extra_verbose=$beta}"
904 version="${emacs_major_version}.${emacs_minor_version}"
905 { test "$extra_verbose" = "yes" && cat << EOF
906 Defining EMACS_MAJOR_VERSION = $emacs_major_version
908 cat >> confdefs.h <<EOF
909 #define EMACS_MAJOR_VERSION $emacs_major_version
913 { test "$extra_verbose" = "yes" && cat << EOF
914 Defining EMACS_MINOR_VERSION = $emacs_minor_version
916 cat >> confdefs.h <<EOF
917 #define EMACS_MINOR_VERSION $emacs_minor_version
921 if test -n "$emacs_beta_version" ; then
922 if test "$beta" = "yes"; then
923 version="${version}-b${emacs_beta_version}"
924 { test "$extra_verbose" = "yes" && cat << EOF
925 Defining EMACS_BETA_VERSION = $emacs_beta_version
927 cat >> confdefs.h <<EOF
928 #define EMACS_BETA_VERSION $emacs_beta_version
933 version="${version}.${emacs_beta_version}"
934 { test "$extra_verbose" = "yes" && cat << EOF
935 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
937 cat >> confdefs.h <<EOF
938 #define EMACS_PATCH_LEVEL $emacs_beta_version
944 { test "$extra_verbose" = "yes" && cat << EOF
945 Defining XEMACS_CODENAME = "$xemacs_codename"
947 cat >> confdefs.h <<EOF
948 #define XEMACS_CODENAME "$xemacs_codename"
952 { test "$extra_verbose" = "yes" && cat << EOF
953 Defining EMACS_VERSION = "$version"
955 cat >> confdefs.h <<EOF
956 #define EMACS_VERSION "$version"
961 if test "$with_infodock" = "yes"; then
962 if test ! -f ../../ID-INSTALL; then
963 echo "Cannot build InfoDock without InfoDock sources"
968 if test "$with_infodock" = "yes"; then
969 { test "$extra_verbose" = "yes" && cat << EOF
970 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
972 cat >> confdefs.h <<EOF
973 #define INFODOCK_MAJOR_VERSION $infodock_major_version
977 { test "$extra_verbose" = "yes" && cat << EOF
978 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
980 cat >> confdefs.h <<EOF
981 #define INFODOCK_MINOR_VERSION $infodock_minor_version
985 { test "$extra_verbose" = "yes" && cat << EOF
986 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
988 cat >> confdefs.h <<EOF
989 #define INFODOCK_BUILD_VERSION $infodock_build_version
993 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
995 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1000 { test "$extra_verbose" = "yes" && cat << EOF
1001 Defining EMACS_PROGNAME = "$PROGNAME"
1003 cat >> confdefs.h <<EOF
1004 #define EMACS_PROGNAME "$PROGNAME"
1009 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1010 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1011 Defining ERROR_CHECK_EXTENTS
1013 cat >> confdefs.h <<\EOF
1014 #define ERROR_CHECK_EXTENTS 1
1018 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1019 Defining ERROR_CHECK_TYPECHECK
1021 cat >> confdefs.h <<\EOF
1022 #define ERROR_CHECK_TYPECHECK 1
1026 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1027 Defining ERROR_CHECK_BUFPOS
1029 cat >> confdefs.h <<\EOF
1030 #define ERROR_CHECK_BUFPOS 1
1034 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1035 Defining ERROR_CHECK_GC
1037 cat >> confdefs.h <<\EOF
1038 #define ERROR_CHECK_GC 1
1042 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1043 Defining ERROR_CHECK_MALLOC
1045 cat >> confdefs.h <<\EOF
1046 #define ERROR_CHECK_MALLOC 1
1050 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1051 Defining ERROR_CHECK_BYTE_CODE
1053 cat >> confdefs.h <<\EOF
1054 #define ERROR_CHECK_BYTE_CODE 1
1058 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1059 Defining ERROR_CHECK_GLYPHS
1061 cat >> confdefs.h <<\EOF
1062 #define ERROR_CHECK_GLYPHS 1
1066 if test "${debug:=$beta}" = "yes"; then
1067 use_assertions=yes memory_usage_stats=yes
1068 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1069 echo " xemacs will be linked with \"debug.o\""
1071 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1072 echo " xemacs will be linked with \"tests.o\""
1074 { test "$extra_verbose" = "yes" && cat << \EOF
1075 Defining DEBUG_XEMACS
1077 cat >> confdefs.h <<\EOF
1078 #define DEBUG_XEMACS 1
1083 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1084 Defining USE_ASSERTIONS
1086 cat >> confdefs.h <<\EOF
1087 #define USE_ASSERTIONS 1
1091 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1092 Defining MEMORY_USAGE_STATS
1094 cat >> confdefs.h <<\EOF
1095 #define MEMORY_USAGE_STATS 1
1101 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1102 echo "configure:1103: checking "host system type"" >&5
1103 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1104 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1105 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1106 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1107 echo "$ac_t""$configuration" 1>&6
1115 case "$canonical" in
1116 sparc-*-* ) machine=sparc ;;
1117 alpha*-*-* ) machine=alpha ;;
1118 vax-*-* ) machine=vax ;;
1119 mips-dec-* ) machine=pmax ;;
1120 mips-sgi-irix6* ) machine=iris6d ;;
1121 mips-sgi-* ) machine=iris4d ;;
1122 mips*-linux ) machine=mips ;;
1123 romp-ibm-* ) machine=ibmrt ;;
1124 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1125 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1126 powerpc*-* ) machine=powerpc ;;
1127 hppa-*-* ) machine=hp800 ;;
1128 m88k-dg-* ) machine=aviion ;;
1129 m68*-sony-* ) machine=news ;;
1130 mips-sony-* ) machine=news-risc ;;
1131 clipper-* ) machine=clipper ;;
1132 arm* ) machine=arm ;;
1133 ns32k-* ) machine=ns32000 ;;
1136 case "$canonical" in
1137 *-*-linux* ) opsys=linux ;;
1138 *-*-netbsd* ) opsys=netbsd ;;
1139 *-*-openbsd* ) opsys=openbsd ;;
1140 *-*-nextstep* ) opsys=nextstep ;;
1141 *-*-vms ) opsys=vms ;;
1143 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1144 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1145 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1146 *-dec-osf3* ) opsys=decosf3-1 ;;
1147 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1149 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1150 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1151 *-*-ultrix* ) opsys=ultrix4-3 ;;
1153 *-*-aix3.1* ) opsys=aix3-1 ;;
1154 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1155 *-*-aix3* ) opsys=aix3-2 ;;
1156 *-*-aix4.0* ) opsys=aix4 ;;
1157 *-*-aix4.1* ) opsys=aix4-1 ;;
1158 *-*-aix4* ) opsys=aix4-2 ;;
1160 *-gnu* ) opsys=gnu ;;
1161 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1162 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1163 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1164 *-*-aos4.2 ) opsys=bsd4-2 ;;
1165 *-*-aos* ) opsys=bsd4-3 ;;
1166 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1167 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1168 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1169 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1170 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1171 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1172 if test -z "$NON_GNU_CPP" ; then
1173 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1174 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1178 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1179 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1182 case "$canonical" in
1185 case "$canonical" in
1186 i[3-9]86-*-netbsd*) machine=intel386 ;;
1187 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1188 machine=hp9000s300 ;;
1189 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1190 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1195 case "${canonical}" in
1196 i386-*-openbsd*) machine=intel386 ;;
1197 m68k-*-openbsd*) machine=hp9000s300 ;;
1198 mipsel-*-openbsd*) machine=pmax ;;
1202 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1203 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1205 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1206 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1208 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1210 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1212 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1214 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1216 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1218 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1219 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1220 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1223 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1225 *-convex-bsd* | *-convex-convexos* )
1226 machine=convex opsys=bsd4-3
1227 NON_GNU_CPP="cc -E -P"
1230 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1232 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1233 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1234 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1235 m88k-dg-dgux* ) opsys=dgux ;;
1237 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1238 m88k-motorola-sysv4* )
1239 machine=delta88k opsys=usg5-4-2
1241 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1243 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1244 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1246 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1248 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1249 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1250 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1253 case "`uname -r`" in
1254 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1255 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1257 NON_GNU_CPP="/lib/cpp"
1259 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1260 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1262 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1264 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1267 case "$canonical" in
1268 m68* ) machine=hp9000s300 ;;
1269 hppa* ) machine=hp800 ;;
1272 case "$canonical" in
1273 *-hp-hpux7* ) opsys=hpux ;;
1274 *-hp-hpux8* ) opsys=hpux8 ;;
1275 *-hp-hpux9* ) opsys=hpux9 ;;
1276 *-hp-hpux10* ) opsys=hpux10 ;;
1277 *-hp-hpux11* ) opsys=hpux11 ;;
1281 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1282 echo " xemacs will be linked with \"strcat.o\""
1285 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1286 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1287 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1289 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1292 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1293 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1295 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1296 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1297 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1298 romp-ibm-aos* ) opsys=bsd4-3 ;;
1299 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1300 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1302 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1303 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1305 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1307 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1309 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1311 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1313 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1315 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1317 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1319 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1321 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1323 mips-mips-usg* ) machine=mips4 ;;
1326 NON_GNU_CC="cc -systype bsd43"
1327 NON_GNU_CPP="cc -systype bsd43 -E"
1328 case "$canonical" in
1329 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1330 mips-mips-riscos5* ) opsys=riscos5 ;;
1333 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1334 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1336 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1338 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1340 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1341 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1343 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1345 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1347 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1349 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1351 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1352 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1354 mips-siemens-sysv* | mips-sni-sysv*)
1355 machine=mips-siemens opsys=usg5-4
1356 NON_GNU_CC=/usr/ccs/bin/cc
1357 NON_GNU_CPP=/usr/ccs/lib/cpp
1362 NON_GNU_CC=/usr/ccs/bin/cc
1363 NON_GNU_CPP=/usr/ccs/lib/cpp
1366 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1367 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1368 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1369 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1370 mips-sgi-irix6* ) opsys=irix6-0 ;;
1371 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1372 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1373 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1374 mips-sgi-irix* ) opsys=irix5-0 ;;
1376 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1377 *-sony-news* ) opsys=newsos5 ;;
1379 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1381 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1382 case "$canonical" in
1383 m68*-sunos1* ) machine=sun1 ;;
1384 m68*-sunos2* ) machine=sun2 ;;
1385 m68* ) machine=sun3 ;;
1386 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1387 i*86-*-* ) machine=intel386 ;;
1388 rs6000* ) machine=rs6000 ;;
1391 case "$canonical" in *-sunos5*)
1392 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1395 case "$canonical" in
1397 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1400 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1404 case "$canonical" in
1407 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1408 { test "$extra_verbose" = "yes" && cat << EOF
1409 Defining OS_RELEASE = $os_release
1411 cat >> confdefs.h <<EOF
1412 #define OS_RELEASE $os_release
1417 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1418 *-sunos4.0* ) opsys=sunos4-0 ;;
1419 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1420 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1421 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1422 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1423 *-mach* ) opsys=mach-bsd4-3 ;;
1427 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1429 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1432 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1434 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1435 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1437 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1439 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1441 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1442 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1444 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1446 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1449 case "$canonical" in
1450 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1451 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1452 *-mach* ) opsys=mach-bsd4-3 ;;
1456 ns16k-whitechapel-* ) machine=mg1 ;;
1458 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1462 case "$canonical" in
1463 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1464 *-isc2.2* ) opsys=isc2-2 ;;
1465 *-isc4.0* ) opsys=isc4-0 ;;
1466 *-isc4.* ) opsys=isc4-1
1467 GCC_TEST_OPTIONS=-posix
1468 NON_GCC_TEST_OPTIONS=-Xp
1470 *-isc* ) opsys=isc3-0 ;;
1471 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1472 *-esix* ) opsys=esix ;;
1473 *-mach* ) opsys=mach-bsd4-3 ;;
1474 *-xenix* ) opsys=xenix ;;
1475 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1476 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1477 *-bsdi4* ) opsys=bsdos4 ;;
1478 *-bsdi3* ) opsys=bsdos3 ;;
1479 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1480 *-bsdi2* ) opsys=bsdos2 ;;
1481 *-sco3.2v5* ) opsys=sco5 ;
1482 if test "$dynamic" = "yes" ; then
1483 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1485 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1487 *-sysv5* ) opsys=sco7 ;;
1488 *-386bsd* ) opsys=386bsd ;;
1489 *-freebsd* ) opsys=freebsd ;;
1490 *-nextstep* ) opsys=nextstep ;;
1491 *-pc-cygwin* ) opsys=cygwin32 ;;
1492 *-pc-mingw* ) opsys=mingw32 ;
1493 test -z "$with_tty" && with_tty="no";;
1497 m68k-*-linux* ) machine=m68k opsys=linux ;;
1501 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1502 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1504 if test -r "${srcdir}/src/m/${machine}.h"; then
1505 machfile="m/${machine}.h"
1506 { test "$extra_verbose" = "yes" && cat << EOF
1507 Defining config_machfile = "$machfile"
1509 cat >> confdefs.h <<EOF
1510 #define config_machfile "$machfile"
1515 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1516 echo "Using configure-time autodetection only."
1519 if test -r "${srcdir}/src/s/${opsys}.h"; then
1520 opsysfile="s/${opsys}.h"
1521 { test "$extra_verbose" = "yes" && cat << EOF
1522 Defining config_opsysfile = "$opsysfile"
1524 cat >> confdefs.h <<EOF
1525 #define config_opsysfile "$opsysfile"
1530 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1531 echo "Using configure-time autodetection only."
1535 if test -z "$dynamic"; then
1537 hpux* | sunos4* ) dynamic=no ;;
1541 if test "$dynamic" = "yes"; then
1543 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1544 decosf* ) ld_call_shared="-call_shared" ;;
1546 else case "$opsys" in
1548 echo "Static linking is not supported on Solaris 2."
1549 echo "Rerun configure without specifying --dynamic=no."
1551 linux ) ld_call_shared="-Bstatic" ;;
1552 decosf* ) ld_call_shared="-non_shared" ;;
1556 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1558 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1559 { test "$extra_verbose" = "yes" && cat << EOF
1560 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1562 cat >> confdefs.h <<EOF
1563 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1569 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1570 if test "$with_workshop $with_tooltalk" = "yes no"; then
1571 (echo "$progname: Usage error:"
1572 echo " " "--with-workshop requires --with-tooltalk"
1573 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1574 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1575 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1578 if test "$with_workshop" = "yes"; then
1579 { test "$extra_verbose" = "yes" && cat << \EOF
1582 cat >> confdefs.h <<\EOF
1587 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1588 echo " xemacs will be linked with \"sunpro.o\""
1592 if test "$with_clash_detection" != "no"; then
1593 { test "$extra_verbose" = "yes" && cat << \EOF
1594 Defining CLASH_DETECTION
1596 cat >> confdefs.h <<\EOF
1597 #define CLASH_DETECTION 1
1601 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1602 echo " xemacs will be linked with \"filelock.o\""
1606 test -n "$compiler" && CC="$compiler"
1607 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1610 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1611 if test "${CFLAGS-unset}" != unset
1612 then cflags_specified=yes;
1613 else cflags_specified=no;
1616 xe_save_CFLAGS="$CFLAGS"
1618 # Extract the first word of "gcc", so it can be a program name with args.
1619 set dummy gcc; ac_word=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1628 for ac_dir in $ac_dummy; do
1629 test -z "$ac_dir" && ac_dir=.
1630 if test -f $ac_dir/$ac_word; then
1638 if test -n "$CC"; then
1639 echo "$ac_t""$CC" 1>&6
1641 echo "$ac_t""no" 1>&6
1644 if test -z "$CC"; then
1645 # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc; ac_word=$2
1647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1648 echo "configure:1649: checking for $ac_word" >&5
1650 if test -n "$CC"; then
1651 ac_cv_prog_CC="$CC" # Let the user override the test.
1653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1656 for ac_dir in $ac_dummy; do
1657 test -z "$ac_dir" && ac_dir=.
1658 if test -f $ac_dir/$ac_word; then
1659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1660 ac_prog_rejected=yes
1668 if test $ac_prog_rejected = yes; then
1669 # We found a bogon in the path, so make sure we never use it.
1670 set dummy $ac_cv_prog_CC
1672 if test $# -gt 0; then
1673 # We chose a different compiler from the bogus one.
1674 # However, it has the same basename, so the bogon will be chosen
1675 # first if we set CC to just the basename; use the full file name.
1677 set dummy "$ac_dir/$ac_word" "$@"
1684 if test -n "$CC"; then
1685 echo "$ac_t""$CC" 1>&6
1687 echo "$ac_t""no" 1>&6
1690 if test -z "$CC"; then
1691 case "`uname -s`" in
1693 # Extract the first word of "cl", so it can be a program name with args.
1694 set dummy cl; ac_word=$2
1695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1696 echo "configure:1697: checking for $ac_word" >&5
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1703 for ac_dir in $ac_dummy; do
1704 test -z "$ac_dir" && ac_dir=.
1705 if test -f $ac_dir/$ac_word; then
1713 if test -n "$CC"; then
1714 echo "$ac_t""$CC" 1>&6
1716 echo "$ac_t""no" 1>&6
1721 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1724 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1725 echo "configure:1726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1728 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1729 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1730 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1731 ac_cpp='$CPP '"$xe_cppflags"
1732 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1733 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1736 cat > conftest.$ac_ext << EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1743 if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1744 ac_cv_prog_cc_works=yes
1745 # If we can't run a trivial program, we are probably using a cross compiler.
1746 if (./conftest; exit) 2>/dev/null; then
1747 ac_cv_prog_cc_cross=no
1749 ac_cv_prog_cc_cross=yes
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1754 ac_cv_prog_cc_works=no
1758 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1759 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1760 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1761 ac_cpp='$CPP '"$xe_cppflags"
1762 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1763 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1766 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1767 if test $ac_cv_prog_cc_works = no; then
1768 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1771 echo "configure:1772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1772 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1773 cross_compiling=$ac_cv_prog_cc_cross
1775 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether we are using GNU C" >&5
1778 cat > conftest.c <<EOF
1783 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1789 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1791 if test $ac_cv_prog_gcc = yes; then
1797 ac_test_CFLAGS="${CFLAGS+set}"
1798 ac_save_CFLAGS="$CFLAGS"
1800 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether ${CC-cc} accepts -g" >&5
1803 echo 'void f(){}' > conftest.c
1804 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1812 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1813 if test "$ac_test_CFLAGS" = set; then
1814 CFLAGS="$ac_save_CFLAGS"
1815 elif test $ac_cv_prog_cc_g = yes; then
1816 if test "$GCC" = yes; then
1822 if test "$GCC" = yes; then
1829 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1831 # Extract the first word of "gcc", so it can be a program name with args.
1832 set dummy gcc; ac_word=$2
1833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_word" >&5
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1841 for ac_dir in $ac_dummy; do
1842 test -z "$ac_dir" && ac_dir=.
1843 if test -f $ac_dir/$ac_word; then
1851 if test -n "$CC"; then
1852 echo "$ac_t""$CC" 1>&6
1854 echo "$ac_t""no" 1>&6
1857 if test -z "$CC"; then
1858 # Extract the first word of "cc", so it can be a program name with args.
1859 set dummy cc; ac_word=$2
1860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_word" >&5
1863 if test -n "$CC"; then
1864 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1869 for ac_dir in $ac_dummy; do
1870 test -z "$ac_dir" && ac_dir=.
1871 if test -f $ac_dir/$ac_word; then
1872 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1873 ac_prog_rejected=yes
1881 if test $ac_prog_rejected = yes; then
1882 # We found a bogon in the path, so make sure we never use it.
1883 set dummy $ac_cv_prog_CC
1885 if test $# -gt 0; then
1886 # We chose a different compiler from the bogus one.
1887 # However, it has the same basename, so the bogon will be chosen
1888 # first if we set CC to just the basename; use the full file name.
1890 set dummy "$ac_dir/$ac_word" "$@"
1897 if test -n "$CC"; then
1898 echo "$ac_t""$CC" 1>&6
1900 echo "$ac_t""no" 1>&6
1903 if test -z "$CC"; then
1904 case "`uname -s`" in
1906 # Extract the first word of "cl", so it can be a program name with args.
1907 set dummy cl; ac_word=$2
1908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1909 echo "configure:1910: checking for $ac_word" >&5
1911 if test -n "$CC"; then
1912 ac_cv_prog_CC="$CC" # Let the user override the test.
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1916 for ac_dir in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f $ac_dir/$ac_word; then
1926 if test -n "$CC"; then
1927 echo "$ac_t""$CC" 1>&6
1929 echo "$ac_t""no" 1>&6
1934 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1938 echo "configure:1939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1941 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1942 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1943 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1944 ac_cpp='$CPP '"$xe_cppflags"
1945 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1946 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1949 cat > conftest.$ac_ext << EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1956 if { (eval echo configure:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1957 ac_cv_prog_cc_works=yes
1958 # If we can't run a trivial program, we are probably using a cross compiler.
1959 if (./conftest; exit) 2>/dev/null; then
1960 ac_cv_prog_cc_cross=no
1962 ac_cv_prog_cc_cross=yes
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1967 ac_cv_prog_cc_works=no
1971 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1972 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1973 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1974 ac_cpp='$CPP '"$xe_cppflags"
1975 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1976 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1979 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1980 if test $ac_cv_prog_cc_works = no; then
1981 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1983 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1984 echo "configure:1985: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1985 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1986 cross_compiling=$ac_cv_prog_cc_cross
1988 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1989 echo "configure:1990: checking whether we are using GNU C" >&5
1991 cat > conftest.c <<EOF
1996 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2002 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2004 if test $ac_cv_prog_gcc = yes; then
2010 ac_test_CFLAGS="${CFLAGS+set}"
2011 ac_save_CFLAGS="$CFLAGS"
2013 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2014 echo "configure:2015: checking whether ${CC-cc} accepts -g" >&5
2016 echo 'void f(){}' > conftest.c
2017 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2025 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2026 if test "$ac_test_CFLAGS" = set; then
2027 CFLAGS="$ac_save_CFLAGS"
2028 elif test $ac_cv_prog_cc_g = yes; then
2029 if test "$GCC" = yes; then
2035 if test "$GCC" = yes; then
2042 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2044 # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_word" >&5
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2054 for ac_dir in $ac_dummy; do
2055 test -z "$ac_dir" && ac_dir=.
2056 if test -f $ac_dir/$ac_word; then
2064 if test -n "$CC"; then
2065 echo "$ac_t""$CC" 1>&6
2067 echo "$ac_t""no" 1>&6
2070 if test -z "$CC"; then
2071 # Extract the first word of "cc", so it can be a program name with args.
2072 set dummy cc; ac_word=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5
2076 if test -n "$CC"; then
2077 ac_cv_prog_CC="$CC" # Let the user override the test.
2079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2082 for ac_dir in $ac_dummy; do
2083 test -z "$ac_dir" && ac_dir=.
2084 if test -f $ac_dir/$ac_word; then
2085 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2086 ac_prog_rejected=yes
2094 if test $ac_prog_rejected = yes; then
2095 # We found a bogon in the path, so make sure we never use it.
2096 set dummy $ac_cv_prog_CC
2098 if test $# -gt 0; then
2099 # We chose a different compiler from the bogus one.
2100 # However, it has the same basename, so the bogon will be chosen
2101 # first if we set CC to just the basename; use the full file name.
2103 set dummy "$ac_dir/$ac_word" "$@"
2110 if test -n "$CC"; then
2111 echo "$ac_t""$CC" 1>&6
2113 echo "$ac_t""no" 1>&6
2116 if test -z "$CC"; then
2117 case "`uname -s`" in
2119 # Extract the first word of "cl", so it can be a program name with args.
2120 set dummy cl; ac_word=$2
2121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2122 echo "configure:2123: checking for $ac_word" >&5
2124 if test -n "$CC"; then
2125 ac_cv_prog_CC="$CC" # Let the user override the test.
2127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2129 for ac_dir in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir=.
2131 if test -f $ac_dir/$ac_word; then
2139 if test -n "$CC"; then
2140 echo "$ac_t""$CC" 1>&6
2142 echo "$ac_t""no" 1>&6
2147 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2150 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2151 echo "configure:2152: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2154 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2155 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2156 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2157 ac_cpp='$CPP '"$xe_cppflags"
2158 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2159 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2162 cat > conftest.$ac_ext << EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2169 if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2170 ac_cv_prog_cc_works=yes
2171 # If we can't run a trivial program, we are probably using a cross compiler.
2172 if (./conftest; exit) 2>/dev/null; then
2173 ac_cv_prog_cc_cross=no
2175 ac_cv_prog_cc_cross=yes
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2180 ac_cv_prog_cc_works=no
2184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2187 ac_cpp='$CPP '"$xe_cppflags"
2188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2192 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2193 if test $ac_cv_prog_cc_works = no; then
2194 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2196 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2197 echo "configure:2198: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2198 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2199 cross_compiling=$ac_cv_prog_cc_cross
2201 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2202 echo "configure:2203: checking whether we are using GNU C" >&5
2204 cat > conftest.c <<EOF
2209 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2215 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2217 if test $ac_cv_prog_gcc = yes; then
2223 ac_test_CFLAGS="${CFLAGS+set}"
2224 ac_save_CFLAGS="$CFLAGS"
2226 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2227 echo "configure:2228: checking whether ${CC-cc} accepts -g" >&5
2229 echo 'void f(){}' > conftest.c
2230 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2238 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2239 if test "$ac_test_CFLAGS" = set; then
2240 CFLAGS="$ac_save_CFLAGS"
2241 elif test $ac_cv_prog_cc_g = yes; then
2242 if test "$GCC" = yes; then
2248 if test "$GCC" = yes; then
2256 CFLAGS="$xe_save_CFLAGS"
2259 test -n "$CPP" -a -d "$CPP" && CPP=
2261 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2263 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2264 echo "configure:2265: checking how to run the C preprocessor" >&5
2265 # On Suns, sometimes $CPP names a directory.
2266 if test -n "$CPP" && test -d "$CPP"; then
2269 if test -z "$CPP"; then
2271 # This must be in double quotes, not single quotes, because CPP may get
2272 # substituted into the Makefile and "${CC-cc}" will confuse make.
2274 # On the NeXT, cc -E runs the code through the compiler's parser,
2275 # not just through cpp.
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283 { (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285 if test -z "$ac_err"; then
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2292 CPP="${CC-cc} -E -traditional-cpp"
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2300 { (eval echo configure:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2302 if test -z "$ac_err"; then
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 CPP="${CC-cc} -nologo -E"
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2317 { (eval echo configure:2318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2319 if test -z "$ac_err"; then
2323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2333 ac_cv_prog_CPP="$CPP"
2334 CPP="$ac_cv_prog_CPP"
2336 ac_cv_prog_CPP="$CPP"
2338 echo "$ac_t""$CPP" 1>&6
2342 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2343 echo "configure:2344: checking for AIX" >&5
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2353 egrep "yes" >/dev/null 2>&1; then
2355 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2356 Defining _ALL_SOURCE
2358 cat >> confdefs.h <<\EOF
2359 #define _ALL_SOURCE 1
2365 echo "$ac_t""no" 1>&6
2371 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2372 echo "configure:2373: checking for GNU libc" >&5
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 #include <features.h>
2379 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2380 #error Not a GNU libc system :-(
2381 ******* ======= ******** &&&&&&&&
2386 if { (eval echo configure:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390 echo "configure: failed program was:" >&5
2391 cat conftest.$ac_ext >&5
2396 echo "$ac_t""$have_glibc" 1>&6
2397 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2398 Defining _GNU_SOURCE
2400 cat >> confdefs.h <<\EOF
2401 #define _GNU_SOURCE 1
2408 { test "$extra_verbose" = "yes" && cat << \EOF
2409 Defining __EXTENSIONS__
2411 cat >> confdefs.h <<\EOF
2412 #define __EXTENSIONS__ 1
2416 if test "$os_release" -ge 55; then
2417 { test "$extra_verbose" = "yes" && cat << \EOF
2418 Defining _XOPEN_SOURCE = 500
2420 cat >> confdefs.h <<\EOF
2421 #define _XOPEN_SOURCE 500
2425 { test "$extra_verbose" = "yes" && cat << \EOF
2426 Defining _XOPEN_SOURCE_EXTENDED
2428 cat >> confdefs.h <<\EOF
2429 #define _XOPEN_SOURCE_EXTENDED 1
2435 { test "$extra_verbose" = "yes" && cat << \EOF
2436 Defining _POSIX_C_SOURCE = 199506L
2438 cat >> confdefs.h <<\EOF
2439 #define _POSIX_C_SOURCE 199506L
2443 { test "$extra_verbose" = "yes" && cat << \EOF
2444 Defining _XOPEN_SOURCE = 500
2446 cat >> confdefs.h <<\EOF
2447 #define _XOPEN_SOURCE 500
2451 { test "$extra_verbose" = "yes" && cat << \EOF
2452 Defining _XOPEN_SOURCE_EXTENDED
2454 cat >> confdefs.h <<\EOF
2455 #define _XOPEN_SOURCE_EXTENDED 1
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2466 #if defined __SUNPRO_C
2468 #elif defined __DECC
2470 #elif defined __USLC__ && defined __SCO_VERSION__
2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 case "$conftest_rc" in
2486 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2487 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2488 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2496 echo "Extracting information from the machine- and system-dependent headers..."
2498 tempcname="conftest.c"
2502 cat > $tempcname < confdefs.h
2503 cat >> $tempcname <<EOF
2505 #define C_SWITCH_SITE
2506 #define C_SWITCH_X_SITE
2507 #define LD_SWITCH_SITE
2508 #define LD_SWITCH_X_SITE
2509 #define LD_SWITCH_X_SITE_AUX
2510 #define OS_RELEASE $os_release
2512 #ifdef config_opsysfile
2513 #include "$srcdir/src/$opsysfile"
2516 #ifdef config_machfile
2517 #include "$srcdir/src/$machfile"
2520 #ifndef LIBS_MACHINE
2521 #define LIBS_MACHINE
2523 configure___ libs_machine=LIBS_MACHINE
2528 configure___ libs_system=LIBS_SYSTEM
2530 #ifndef LIBS_TERMCAP
2531 #define LIBS_TERMCAP
2533 configure___ libs_termcap=LIBS_TERMCAP
2535 #ifndef LIB_STANDARD
2536 #define LIB_STANDARD
2538 configure___ libs_standard=LIB_STANDARD
2541 #ifndef OBJECTS_MACHINE
2542 #define OBJECTS_MACHINE
2544 configure___ objects_machine=OBJECTS_MACHINE
2546 #ifndef OBJECTS_SYSTEM
2547 #define OBJECTS_SYSTEM
2549 configure___ objects_system=OBJECTS_SYSTEM
2552 #ifndef C_SWITCH_MACHINE
2553 #define C_SWITCH_MACHINE
2555 configure___ c_switch_machine=C_SWITCH_MACHINE
2557 #ifndef C_SWITCH_SYSTEM
2558 #define C_SWITCH_SYSTEM
2560 configure___ c_switch_system=C_SWITCH_SYSTEM
2563 #ifndef LD_SWITCH_MACHINE
2564 #define LD_SWITCH_MACHINE
2566 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2568 #ifndef LD_SWITCH_SYSTEM
2569 #define LD_SWITCH_SYSTEM
2571 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2575 #define UNEXEC "unexec.o"
2577 configure___ unexec=UNEXEC
2580 #ifndef LD_SWITCH_SHARED
2581 #define LD_SWITCH_SHARED "-c"
2583 configure___ ld_switch_shared=LD_SWITCH_SHARED
2586 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2587 configure___ ordinary_ld=ORDINARY_LD
2589 #ifdef ORDINARY_LINK
2590 #define LD ORDINARY_LD
2591 #else /* no ORDINARY LINK */
2592 #ifdef COFF_ENCAPSULATE
2593 #define LD "\$(CC) -nostdlib"
2594 #else /* not COFF_ENCAPSULATE */
2597 #else /* ! defined (LINKER) */
2599 #endif /* ! defined (LINKER) */
2600 #endif /* ! defined (COFF_ENCAPSULATE) */
2601 #endif /* not ORDINARY_LINK */
2607 configure___ lib_gcc=LIB_GCC
2609 #ifndef LD_TEXT_START_ADDR
2610 #define LD_TEXT_START_ADDR
2612 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2615 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2617 #ifdef COFF_ENCAPSULATE
2618 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2619 #else /* ! defined (COFF_ENCAPSULATE) */
2620 #define START_FILES "pre-crt0.o /lib/crt0.o"
2621 #endif /* ! defined (COFF_ENCAPSULATE) */
2622 #else /* ! defined (NO_REMAP) */
2623 #define START_FILES "ecrt0.o"
2624 #endif /* ! defined (NO_REMAP) */
2625 #endif /* no ORDINARY_LINK */
2629 configure___ start_files=START_FILES
2631 #ifdef ORDINARY_LINK
2632 configure___ ordinary_link=yes
2634 configure___ ordinary_link=no
2637 #ifdef SYSTEM_MALLOC
2638 configure___ system_malloc=yes
2640 configure___ system_malloc=no
2644 configure___ have_terminfo=yes
2646 configure___ have_terminfo=no
2649 #ifdef MAIL_USE_FLOCK
2650 configure___ mail_use_flock=yes
2652 configure___ mail_use_flock=no
2655 #ifdef MAIL_USE_LOCKF
2656 configure___ mail_use_lockf=yes
2658 configure___ mail_use_lockf=no
2661 #ifdef MAIL_USE_LOCKING
2662 configure___ mail_use_locking=yes
2664 configure___ mail_use_locking=no
2667 #ifdef HAVE_WIN32_PROCESSES
2668 configure___ win32_processes=yes
2670 configure___ win32_processes=no
2675 CPP=`eval "echo $CPP $CPPFLAGS"`
2676 eval `$CPP -Isrc $tempcname \
2677 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2681 if test "$pdump" = "yes"; then
2690 test "$extra_verbose" = "yes" && \
2691 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 ""
2693 case "$opsys" in mingw* | cygwin*)
2694 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2695 cygwin_include=`eval "dirname $cygwin_include"` ;
2696 cygwin_include="-I$cygwin_include/../include" ;
2697 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ;
2698 case "$opsys" in mingw*)
2699 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2704 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2707 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2709 if test "$__USLC__" = yes; then
2710 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2711 echo "configure:2712: checking for whether the -Kalloca compiler flag is needed" >&5
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2718 void *x = alloca(4);
2721 if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2729 xe_save_c_switch_system="$c_switch_system"
2730 c_switch_system="$c_switch_system -Kalloca"
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2736 void *x = alloca(4);
2739 if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2743 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2747 c_switch_system="$xe_save_c_switch_system"
2750 echo "$ac_t""$need_kalloca" 1>&6
2751 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
2754 if test "$cflags_specified" = "no"; then
2755 if test "$GCC" = "yes"; then
2756 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2757 elif test "$__SUNPRO_C" = "yes"; then
2759 sol2 ) CFLAGS="-v -xO4" ;;
2760 sunos4* ) CFLAGS="-xO2";;
2762 elif test "$__DECC" = "yes"; then
2764 elif test "$CC" = "xlc"; then
2765 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2770 if test "$GCC" = "yes"; then
2771 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2772 echo "configure:2773: checking for buggy gcc versions" >&5
2773 GCC_VERSION=`$CC --version`
2774 case `uname -s`:`uname -m`:$GCC_VERSION in
2775 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2779 *-fno-schedule-insns*) ;;
2781 echo "$ac_t""yes" 1>&6
2782 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2783 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2784 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2790 Linux:alpha:egcs-2.91.*)
2791 echo "$ac_t""yes" 1>&6
2792 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2793 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2794 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2799 case "$GCC_VERSION" in
2802 *-fno-strength-reduce*) ;;
2804 echo "$ac_t""yes" 1>&6
2805 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2806 echo "configure: warning: -fno-strength-reduce." 1>&2
2807 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2813 *-fno-caller-saves*) ;;
2815 echo "$ac_t""yes" 1>&6
2816 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2817 echo "configure: warning: -fno-caller-saves." 1>&2
2818 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2825 echo "$ac_t""no" 1>&6
2829 if test "$GCC" = "yes"; then
2830 set x $ld_switch_system; shift; ld_switch_system=""
2831 while test -n "$1"; do
2833 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2834 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2836 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2842 if test "$GCC" = "yes"; then
2843 set x $ld_switch_machine; shift; ld_switch_machine=""
2844 while test -n "$1"; do
2846 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2847 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2849 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2855 if test "$GCC" = "yes"; then
2856 set x $LDFLAGS; shift; LDFLAGS=""
2857 while test -n "$1"; do
2859 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2860 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2862 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2868 if test "$GCC" = "yes"; then
2869 set x $ld_call_shared; shift; ld_call_shared=""
2870 while test -n "$1"; do
2872 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2873 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2875 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2881 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2882 echo " xemacs will be linked with \"$objects_machine\""
2884 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2885 echo " xemacs will be linked with \"$objects_system\""
2887 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2888 echo " xemacs will be linked with \"$unexec\""
2890 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2891 echo " xemacs will be linked with \"dumper.o\""
2894 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2895 echo "configure:2896: checking for dynodump" >&5
2896 if test "$unexec" != "unexsol2.o"; then
2897 echo "$ac_t""no" 1>&6
2899 echo "$ac_t""yes" 1>&6
2900 { test "$extra_verbose" = "yes" && cat << \EOF
2903 cat >> confdefs.h <<\EOF
2908 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2909 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2911 sparc ) dynodump_arch=sparc ;;
2912 *86* ) dynodump_arch=i386 ;;
2913 powerpc ) dynodump_arch=ppc ;;
2915 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
2919 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2921 if test "$unexec" = "unexaix.o"; then
2922 if test "$dynamic" = "no"; then
2923 start_flags="-Wl,-bnso,-bnodelcsect"
2924 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2925 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2926 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2928 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2929 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2932 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2933 echo "configure:2934: checking for terminateAndUnload in -lC" >&5
2934 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2936 xe_check_libs=" -lC "
2937 cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2940 /* Override any gcc2 internal prototype to avoid an error. */
2941 /* We use char because int might match the return type of a gcc2
2942 builtin and then its argument prototype would still apply. */
2943 char terminateAndUnload();
2946 terminateAndUnload()
2949 if { (eval echo configure:2950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2951 eval "ac_cv_lib_$ac_lib_var=yes"
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 eval "ac_cv_lib_$ac_lib_var=no"
2961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2962 echo "$ac_t""yes" 1>&6
2963 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2965 echo "$ac_t""no" 1>&6
2970 elif test -n "$ld_text_start_addr"; then
2971 start_flags="-T $ld_text_start_addr -e __start"
2977 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2978 test -z "$linker" && linker='$(CC) -nostdlib'
2979 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2981 test "$GCC" != "yes" && lib_gcc=
2987 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2988 if test -n "$site_libraries"; then
2989 for arg in $site_libraries; do
2992 * ) test -d "$arg" || \
2993 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2996 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3000 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3001 if test -n "$site_includes"; then
3002 for arg in $site_includes; do
3005 * ) test -d "$arg" || \
3006 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3009 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3013 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3014 if test -n "$site_prefixes"; then
3015 for dir in $site_prefixes; do
3016 lib_dir="${dir}/lib"
3017 inc_dir="${dir}/include"
3018 if test ! -d "$dir"; then
3019 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3020 elif test ! -d "$lib_dir"; then
3021 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3023 if test -d "$inc_dir"; then
3024 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
3026 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
3032 for dir in "/usr/ccs/lib"; do
3033 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
3036 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3037 if test -n "$site_runtime_libraries"; then
3038 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3046 if test -n "$add_runtime_path"; then :;
3047 elif test "$dynamic" = "no"; then add_runtime_path=no
3048 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3049 else case "$opsys" in
3050 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3051 * ) add_runtime_path=no ;;
3055 if test "$add_runtime_path" = "yes"; then
3056 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3057 echo "configure:3058: checking "for runtime libraries flag"" >&5
3059 sol2 ) dash_r="-R" ;;
3060 decosf* | linux* | irix*) dash_r="-rpath " ;;
3063 for try_dash_r in "-R" "-R " "-rpath "; do
3064 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3066 if test "$GCC" = "yes"; then
3067 set x $xe_check_libs; shift; xe_check_libs=""
3068 while test -n "$1"; do
3070 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3071 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3073 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3086 if { (eval echo configure:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3088 dash_r="$try_dash_r"
3090 echo "configure: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3095 test -n "$dash_r" && break
3098 if test -n "$dash_r";
3099 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3100 else echo "$ac_t""NONE" 1>&6
3104 xe_add_unique_runpath_dir='
3106 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3108 if test "$xe_add_p" = "yes"; then
3109 test -n "$runpath" && runpath="${runpath}:"
3110 runpath="${runpath}${xe_runpath_dir}"
3111 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3117 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3118 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3119 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3121 runpath="" runpath_dirs=""
3122 if test -n "$LD_RUN_PATH"; then
3123 runpath="$LD_RUN_PATH"
3124 elif test "$GCC" = "yes"; then
3125 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3126 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3127 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3128 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3129 case "$arg" in P,* | -L* | -R* )
3130 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3132 xe_runpath_dir="$dir"
3133 test "$xe_runpath_dir" != "/lib" -a \
3134 "$xe_runpath_dir" != "/usr/lib" -a \
3135 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3136 eval "$xe_add_unique_runpath_dir"
3141 ld_switch_run="$ld_switch_run_save"
3144 for arg in $ld_switch_site $ld_switch_x_site; do
3145 case "$arg" in -L*) {
3146 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3147 test "$xe_runpath_dir" != "/lib" -a \
3148 "$xe_runpath_dir" != "/usr/lib" -a \
3149 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3150 eval "$xe_add_unique_runpath_dir"
3153 if test "$opsys $need_motif" = "sol2 yes"; then
3154 xe_runpath_dir="/opt/SUNWdt/lib";
3155 eval "$xe_add_unique_runpath_dir";
3158 if test -n "$runpath"; then
3159 ld_switch_run="${dash_r}${runpath}"
3161 if test "$GCC" = "yes"; then
3162 set x $ld_switch_run; shift; ld_switch_run=""
3163 while test -n "$1"; do
3165 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3166 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3168 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3173 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3181 if test "$with_dlmalloc" != "no"; then
3186 after_morecore_hook_exists=yes
3187 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3188 echo "configure:3189: checking for malloc_set_state" >&5
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 /* System header to define __stub macros and hopefully few prototypes,
3194 which can conflict with char malloc_set_state(); below. */
3196 /* Override any gcc2 internal prototype to avoid an error. */
3197 /* We use char because int might match the return type of a gcc2
3198 builtin and then its argument prototype would still apply. */
3199 char malloc_set_state();
3203 /* The GNU C library defines this for functions which it implements
3204 to always fail with ENOSYS. Some functions are actually named
3205 something starting with __ and the normal name is an alias. */
3206 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3214 if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3216 eval "ac_cv_func_malloc_set_state=yes"
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3221 eval "ac_cv_func_malloc_set_state=no"
3225 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3229 echo "$ac_t""no" 1>&6
3233 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3234 echo "configure:3235: checking whether __after_morecore_hook exists" >&5
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 extern void (* __after_morecore_hook)();
3240 __after_morecore_hook = 0
3243 if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3245 echo "$ac_t""yes" 1>&6
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 echo "$ac_t""no" 1>&6
3251 after_morecore_hook_exists=no
3254 if test "$system_malloc" = "yes" ; then
3257 - The GNU allocators don't work with this system configuration."
3258 elif test "$with_system_malloc" = "yes" ; then
3261 - User chose not to use GNU allocators."
3262 elif test "$with_debug_malloc" = "yes" ; then
3265 - User chose to use Debugging Malloc."
3268 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3270 - Using Doug Lea's new malloc from the GNU C Library."
3271 { test "$extra_verbose" = "yes" && cat << \EOF
3272 Defining DOUG_LEA_MALLOC
3274 cat >> confdefs.h <<\EOF
3275 #define DOUG_LEA_MALLOC 1
3279 if test "$after_morecore_hook_exists" = "no" ; then
3281 - Using Doug Lea's new malloc from the Linux C Library."
3282 { test "$extra_verbose" = "yes" && cat << \EOF
3283 Defining _NO_MALLOC_WARNING_
3285 cat >> confdefs.h <<\EOF
3286 #define _NO_MALLOC_WARNING_ 1
3296 # Extract the first word of "ranlib", so it can be a program name with args.
3297 set dummy ranlib; ac_word=$2
3298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3299 echo "configure:3300: checking for $ac_word" >&5
3301 if test -n "$RANLIB"; then
3302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3306 for ac_dir in $ac_dummy; do
3307 test -z "$ac_dir" && ac_dir=.
3308 if test -f $ac_dir/$ac_word; then
3309 ac_cv_prog_RANLIB="ranlib"
3314 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3316 RANLIB="$ac_cv_prog_RANLIB"
3317 if test -n "$RANLIB"; then
3318 echo "$ac_t""$RANLIB" 1>&6
3320 echo "$ac_t""no" 1>&6
3324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3325 if test -f $ac_dir/install-sh; then
3327 ac_install_sh="$ac_aux_dir/install-sh -c"
3329 elif test -f $ac_dir/install.sh; then
3331 ac_install_sh="$ac_aux_dir/install.sh -c"
3335 if test -z "$ac_aux_dir"; then
3336 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3338 ac_config_guess=$ac_aux_dir/config.guess
3339 ac_config_sub=$ac_aux_dir/config.sub
3340 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3342 # Find a good install program. We prefer a C program (faster),
3343 # so one script is as good as another. But avoid the broken or
3344 # incompatible versions:
3345 # SysV /etc/install, /usr/sbin/install
3346 # SunOS /usr/etc/install
3347 # IRIX /sbin/install
3349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3352 # ./install, which can be erroneously created by make from ./install.sh.
3353 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3354 echo "configure:3355: checking for a BSD compatible install" >&5
3355 if test -z "$INSTALL"; then
3357 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3358 for ac_dir in $PATH; do
3359 # Account for people who put trailing slashes in PATH elements.
3361 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3363 # OSF1 and SCO ODT 3.0 have their own names for install.
3364 # Don't use installbsd from OSF since it installs stuff as root
3366 for ac_prog in ginstall scoinst install; do
3367 if test -f $ac_dir/$ac_prog; then
3368 if test $ac_prog = install &&
3369 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3370 # AIX install. It has an incompatible calling convention.
3373 ac_cv_path_install="$ac_dir/$ac_prog -c"
3383 if test "${ac_cv_path_install+set}" = set; then
3384 INSTALL="$ac_cv_path_install"
3386 # As a last resort, use the slow shell script. We don't cache a
3387 # path for INSTALL within a source directory, because that will
3388 # break other packages using the cache if that directory is
3389 # removed, or if the path is relative.
3390 INSTALL="$ac_install_sh"
3393 echo "$ac_t""$INSTALL" 1>&6
3395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3396 # It thinks the first close brace ends the variable substitution.
3397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3403 for ac_prog in 'bison -y' byacc
3405 # Extract the first word of "$ac_prog", so it can be a program name with args.
3406 set dummy $ac_prog; ac_word=$2
3407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3408 echo "configure:3409: checking for $ac_word" >&5
3410 if test -n "$YACC"; then
3411 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3415 for ac_dir in $ac_dummy; do
3416 test -z "$ac_dir" && ac_dir=.
3417 if test -f $ac_dir/$ac_word; then
3418 ac_cv_prog_YACC="$ac_prog"
3424 YACC="$ac_cv_prog_YACC"
3425 if test -n "$YACC"; then
3426 echo "$ac_t""$YACC" 1>&6
3428 echo "$ac_t""no" 1>&6
3431 test -n "$YACC" && break
3433 test -n "$YACC" || YACC="yacc"
3436 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
3438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3440 echo "configure:3441: checking for $ac_hdr" >&5
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3448 { (eval echo configure:3449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3450 if test -z "$ac_err"; then
3452 eval "ac_cv_header_$ac_safe=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3458 eval "ac_cv_header_$ac_safe=no"
3461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3462 echo "$ac_t""yes" 1>&6
3463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3464 { test "$extra_verbose" = "yes" && cat << EOF
3467 cat >> confdefs.h <<EOF
3468 #define $ac_tr_hdr 1
3473 echo "$ac_t""no" 1>&6
3477 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3478 echo "configure:3479: checking for sys/wait.h that is POSIX.1 compatible" >&5
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <sys/types.h>
3484 #include <sys/wait.h>
3486 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3489 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3494 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3497 if { (eval echo configure:3498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3499 ac_cv_header_sys_wait_h=yes
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3504 ac_cv_header_sys_wait_h=no
3508 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3509 if test $ac_cv_header_sys_wait_h = yes; then
3510 { test "$extra_verbose" = "yes" && cat << \EOF
3511 Defining HAVE_SYS_WAIT_H
3513 cat >> confdefs.h <<\EOF
3514 #define HAVE_SYS_WAIT_H 1
3520 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3521 echo "configure:3522: checking for ANSI C header files" >&5
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3532 { (eval echo configure:3533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3534 if test -z "$ac_err"; then
3536 ac_cv_header_stdc=yes
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3542 ac_cv_header_stdc=no
3546 if test $ac_cv_header_stdc = yes; then
3547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554 egrep "memchr" >/dev/null 2>&1; then
3558 ac_cv_header_stdc=no
3564 if test $ac_cv_header_stdc = yes; then
3565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572 egrep "free" >/dev/null 2>&1; then
3576 ac_cv_header_stdc=no
3582 if test $ac_cv_header_stdc = yes; then
3583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3588 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3589 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3591 int main () { int i; for (i = 0; i < 256; i++)
3592 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3596 if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3604 ac_cv_header_stdc=no
3609 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3610 if test $ac_cv_header_stdc = yes; then
3611 { test "$extra_verbose" = "yes" && cat << \EOF
3612 Defining STDC_HEADERS
3614 cat >> confdefs.h <<\EOF
3615 #define STDC_HEADERS 1
3621 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3622 echo "configure:3623: checking whether time.h and sys/time.h may both be included" >&5
3624 cat > conftest.$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3627 #include <sys/types.h>
3628 #include <sys/time.h>
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3636 ac_cv_header_time=yes
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3641 ac_cv_header_time=no
3645 echo "$ac_t""$ac_cv_header_time" 1>&6
3646 if test $ac_cv_header_time = yes; then
3647 { test "$extra_verbose" = "yes" && cat << \EOF
3648 Defining TIME_WITH_SYS_TIME
3650 cat >> confdefs.h <<\EOF
3651 #define TIME_WITH_SYS_TIME 1
3657 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3658 echo "configure:3659: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 #include <sys/types.h>
3665 /* NetBSD declares sys_siglist in unistd.h. */
3666 #ifdef HAVE_UNISTD_H
3670 char *msg = *(sys_siglist + 1);
3673 if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3675 ac_cv_decl_sys_siglist=yes
3677 echo "configure: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3680 ac_cv_decl_sys_siglist=no
3684 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3685 if test $ac_cv_decl_sys_siglist = yes; then
3686 { test "$extra_verbose" = "yes" && cat << \EOF
3687 Defining SYS_SIGLIST_DECLARED
3689 cat >> confdefs.h <<\EOF
3690 #define SYS_SIGLIST_DECLARED 1
3697 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3698 echo "configure:3699: checking for struct utimbuf" >&5
3699 cat > conftest.$ac_ext <<EOF
3700 #line 3701 "configure"
3701 #include "confdefs.h"
3702 #ifdef TIME_WITH_SYS_TIME
3703 #include <sys/time.h>
3706 #ifdef HAVE_SYS_TIME_H
3707 #include <sys/time.h>
3716 static struct utimbuf x; x.actime = x.modtime;
3719 if { (eval echo configure:3720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3721 echo "$ac_t""yes" 1>&6
3722 { test "$extra_verbose" = "yes" && cat << \EOF
3723 Defining HAVE_STRUCT_UTIMBUF
3725 cat >> confdefs.h <<\EOF
3726 #define HAVE_STRUCT_UTIMBUF 1
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3734 echo "$ac_t""no" 1>&6
3738 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3739 echo "configure:3740: checking return type of signal handlers" >&5
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 #include <sys/types.h>
3750 extern "C" void (*signal (int, void (*)(int)))(int);
3752 void (*signal ()) ();
3759 if { (eval echo configure:3760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3761 ac_cv_type_signal=void
3763 echo "configure: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3766 ac_cv_type_signal=int
3770 echo "$ac_t""$ac_cv_type_signal" 1>&6
3771 { test "$extra_verbose" = "yes" && cat << EOF
3772 Defining RETSIGTYPE = $ac_cv_type_signal
3774 cat >> confdefs.h <<EOF
3775 #define RETSIGTYPE $ac_cv_type_signal
3780 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3781 echo "configure:3782: checking for size_t" >&5
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 #include <sys/types.h>
3792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3793 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3795 ac_cv_type_size_t=yes
3798 ac_cv_type_size_t=no
3802 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3803 if test $ac_cv_type_size_t = no; then
3804 { test "$extra_verbose" = "yes" && cat << \EOF
3805 Defining size_t = unsigned
3807 cat >> confdefs.h <<\EOF
3808 #define size_t unsigned
3814 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3815 echo "configure:3816: checking for pid_t" >&5
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3820 #include <sys/types.h>
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3829 ac_cv_type_pid_t=yes
3836 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3837 if test $ac_cv_type_pid_t = no; then
3838 { test "$extra_verbose" = "yes" && cat << \EOF
3839 Defining pid_t = int
3841 cat >> confdefs.h <<\EOF
3848 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3849 echo "configure:3850: checking for uid_t in sys/types.h" >&5
3851 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 #include <sys/types.h>
3856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857 egrep "uid_t" >/dev/null 2>&1; then
3859 ac_cv_type_uid_t=yes
3867 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3868 if test $ac_cv_type_uid_t = no; then
3869 { test "$extra_verbose" = "yes" && cat << \EOF
3870 Defining uid_t = int
3872 cat >> confdefs.h <<\EOF
3877 { test "$extra_verbose" = "yes" && cat << \EOF
3878 Defining gid_t = int
3880 cat >> confdefs.h <<\EOF
3887 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3888 echo "configure:3889: checking for mode_t" >&5
3890 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3893 #include <sys/types.h>
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3902 ac_cv_type_mode_t=yes
3905 ac_cv_type_mode_t=no
3909 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3910 if test $ac_cv_type_mode_t = no; then
3911 { test "$extra_verbose" = "yes" && cat << \EOF
3912 Defining mode_t = int
3914 cat >> confdefs.h <<\EOF
3921 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3922 echo "configure:3923: checking for off_t" >&5
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3927 #include <sys/types.h>
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3936 ac_cv_type_off_t=yes
3943 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3944 if test $ac_cv_type_off_t = no; then
3945 { test "$extra_verbose" = "yes" && cat << \EOF
3946 Defining off_t = long
3948 cat >> confdefs.h <<\EOF
3955 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3956 echo "configure:3957: checking for ssize_t" >&5
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 #include <sys/types.h>
3967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3968 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3970 ac_cv_type_ssize_t=yes
3973 ac_cv_type_ssize_t=no
3977 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3978 if test $ac_cv_type_ssize_t = no; then
3979 { test "$extra_verbose" = "yes" && cat << \EOF
3980 Defining ssize_t = int
3982 cat >> confdefs.h <<\EOF
3990 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3991 echo "configure:3992: checking for socklen_t" >&5
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 #include <sys/socket.h>
4002 if { (eval echo configure:4003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4004 echo "$ac_t""yes" 1>&6
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 #include <sys/socket.h>
4014 int accept (int, struct sockaddr *, size_t *);
4020 if { (eval echo configure:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 echo "$ac_t""size_t" 1>&6
4024 { test "$extra_verbose" = "yes" && cat << \EOF
4025 Defining socklen_t = size_t
4027 cat >> confdefs.h <<\EOF
4028 #define socklen_t size_t
4033 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4037 echo "$ac_t""int" 1>&6
4038 { test "$extra_verbose" = "yes" && cat << \EOF
4039 Defining socklen_t = int
4041 cat >> confdefs.h <<\EOF
4042 #define socklen_t int
4051 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4052 echo "configure:4053: checking for struct timeval" >&5
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #ifdef TIME_WITH_SYS_TIME
4057 #include <sys/time.h>
4060 #ifdef HAVE_SYS_TIME_H
4061 #include <sys/time.h>
4067 static struct timeval x; x.tv_sec = x.tv_usec;
4070 if { (eval echo configure:4071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4072 echo "$ac_t""yes" 1>&6
4074 { test "$extra_verbose" = "yes" && cat << \EOF
4075 Defining HAVE_TIMEVAL
4077 cat >> confdefs.h <<\EOF
4078 #define HAVE_TIMEVAL 1
4083 echo "configure: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4086 echo "$ac_t""no" 1>&6
4091 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4092 echo "configure:4093: checking whether struct tm is in sys/time.h or time.h" >&5
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4097 #include <sys/types.h>
4100 struct tm *tp; tp->tm_sec;
4103 if { (eval echo configure:4104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4105 ac_cv_struct_tm=time.h
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4110 ac_cv_struct_tm=sys/time.h
4114 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4115 if test $ac_cv_struct_tm = sys/time.h; then
4116 { test "$extra_verbose" = "yes" && cat << \EOF
4117 Defining TM_IN_SYS_TIME
4119 cat >> confdefs.h <<\EOF
4120 #define TM_IN_SYS_TIME 1
4126 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4127 echo "configure:4128: checking for tm_zone in struct tm" >&5
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 #include <sys/types.h>
4133 #include <$ac_cv_struct_tm>
4135 struct tm tm; tm.tm_zone;
4138 if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4140 ac_cv_struct_tm_zone=yes
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4145 ac_cv_struct_tm_zone=no
4149 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4150 if test "$ac_cv_struct_tm_zone" = yes; then
4151 { test "$extra_verbose" = "yes" && cat << \EOF
4152 Defining HAVE_TM_ZONE
4154 cat >> confdefs.h <<\EOF
4155 #define HAVE_TM_ZONE 1
4160 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4161 echo "configure:4162: checking for tzname" >&5
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4167 #ifndef tzname /* For SGI. */
4168 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 ac_cv_var_tzname=yes
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4185 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4186 if test $ac_cv_var_tzname = yes; then
4187 { test "$extra_verbose" = "yes" && cat << \EOF
4188 Defining HAVE_TZNAME
4190 cat >> confdefs.h <<\EOF
4191 #define HAVE_TZNAME 1
4199 echo $ac_n "checking for working const""... $ac_c" 1>&6
4200 echo "configure:4201: checking for working const" >&5
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4208 /* Ultrix mips cc rejects this. */
4209 typedef int charset[2]; const charset x;
4210 /* SunOS 4.1.1 cc rejects this. */
4211 char const *const *ccp;
4213 /* NEC SVR4.0.2 mips cc rejects this. */
4214 struct point {int x, y;};
4215 static struct point const zero = {0,0};
4216 /* AIX XL C 1.02.0.0 rejects this.
4217 It does not let you subtract one const X* pointer from another in an arm
4218 of an if-expression whose if-part is not a constant expression */
4219 const char *g = "string";
4220 ccp = &g + (g ? g-g : 0);
4221 /* HPUX 7.0 cc rejects these. */
4224 ccp = (char const *const *) p;
4225 { /* SCO 3.2v4 cc rejects this. */
4227 char const *s = 0 ? (char *) 0 : (char const *) 0;
4231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4233 const int *foo = &x[0];
4236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4237 typedef const int *iptr;
4241 { /* AIX XL C 1.02.0.0 rejects this saying
4242 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4243 struct s { int j; const int *ap[3]; };
4244 struct s *b; b->j = 5;
4246 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4252 if { (eval echo configure:4253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4263 echo "$ac_t""$ac_cv_c_const" 1>&6
4264 if test $ac_cv_c_const = no; then
4265 { test "$extra_verbose" = "yes" && cat << \EOF
4268 cat >> confdefs.h <<\EOF
4276 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4277 echo "configure:4278: checking whether ${MAKE-make} sets \${MAKE}" >&5
4278 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4280 cat > conftestmake <<\EOF
4282 @echo 'ac_maketemp="${MAKE}"'
4284 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4285 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4286 if test -n "$ac_maketemp"; then
4287 eval ac_cv_prog_make_${ac_make}_set=yes
4289 eval ac_cv_prog_make_${ac_make}_set=no
4292 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4293 echo "$ac_t""yes" 1>&6
4296 echo "$ac_t""no" 1>&6
4297 SET_MAKE="MAKE=${MAKE-make}"
4301 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4302 echo "configure:4303: checking whether byte ordering is bigendian" >&5
4304 ac_cv_c_bigendian=unknown
4305 # See if sys/param.h defines the BYTE_ORDER macro.
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 #include <sys/types.h>
4310 #include <sys/param.h>
4313 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4318 if { (eval echo configure:4319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4320 # It does; now see whether it defined to BIG_ENDIAN or not.
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 #include <sys/types.h>
4325 #include <sys/param.h>
4328 #if BYTE_ORDER != BIG_ENDIAN
4333 if { (eval echo configure:4334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4335 ac_cv_c_bigendian=yes
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4340 ac_cv_c_bigendian=no
4344 echo "configure: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4348 if test $ac_cv_c_bigendian = unknown; then
4349 cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4353 /* Are we little or big endian? From Harbison&Steele. */
4357 char c[sizeof (long)];
4360 exit (u.c[sizeof (long) - 1] == 1);
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4365 ac_cv_c_bigendian=no
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 ac_cv_c_bigendian=yes
4376 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4377 if test $ac_cv_c_bigendian = yes; then
4378 { test "$extra_verbose" = "yes" && cat << \EOF
4379 Defining WORDS_BIGENDIAN
4381 cat >> confdefs.h <<\EOF
4382 #define WORDS_BIGENDIAN 1
4389 echo $ac_n "checking size of short""... $ac_c" 1>&6
4390 echo "configure:4391: checking size of short" >&5
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4396 #include <sys/types.h>
4399 FILE *f=fopen("conftestval", "w");
4401 fprintf(f, "%d\n", sizeof(short));
4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4407 ac_cv_sizeof_short=`cat conftestval`
4410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4413 ac_cv_sizeof_short=0
4416 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4417 { test "$extra_verbose" = "yes" && cat << EOF
4418 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4420 cat >> confdefs.h <<EOF
4421 #define SIZEOF_SHORT $ac_cv_sizeof_short
4426 if test "$ac_cv_sizeof_short" = 0; then
4428 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4429 echo "*** PANIC *** Please examine config.log for compilation errors."
4432 echo $ac_n "checking size of int""... $ac_c" 1>&6
4433 echo "configure:4434: checking size of int" >&5
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4439 #include <sys/types.h>
4442 FILE *f=fopen("conftestval", "w");
4444 fprintf(f, "%d\n", sizeof(int));
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4450 ac_cv_sizeof_int=`cat conftestval`
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4459 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4460 { test "$extra_verbose" = "yes" && cat << EOF
4461 Defining SIZEOF_INT = $ac_cv_sizeof_int
4463 cat >> confdefs.h <<EOF
4464 #define SIZEOF_INT $ac_cv_sizeof_int
4469 echo $ac_n "checking size of long""... $ac_c" 1>&6
4470 echo "configure:4471: checking size of long" >&5
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4476 #include <sys/types.h>
4479 FILE *f=fopen("conftestval", "w");
4481 fprintf(f, "%d\n", sizeof(long));
4485 if { (eval echo configure:4486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4487 ac_cv_sizeof_long=`cat conftestval`
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4496 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4497 { test "$extra_verbose" = "yes" && cat << EOF
4498 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4500 cat >> confdefs.h <<EOF
4501 #define SIZEOF_LONG $ac_cv_sizeof_long
4506 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4507 echo "configure:4508: checking size of long long" >&5
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4513 #include <sys/types.h>
4516 FILE *f=fopen("conftestval", "w");
4518 fprintf(f, "%d\n", sizeof(long long));
4522 if { (eval echo configure:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4524 ac_cv_sizeof_long_long=`cat conftestval`
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 ac_cv_sizeof_long_long=0
4533 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4534 { test "$extra_verbose" = "yes" && cat << EOF
4535 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4537 cat >> confdefs.h <<EOF
4538 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4543 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4544 echo "configure:4545: checking size of void *" >&5
4546 cat > conftest.$ac_ext <<EOF
4547 #line 4548 "configure"
4548 #include "confdefs.h"
4550 #include <sys/types.h>
4553 FILE *f=fopen("conftestval", "w");
4555 fprintf(f, "%d\n", sizeof(void *));
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4561 ac_cv_sizeof_void_p=`cat conftestval`
4564 echo "configure: failed program was:" >&5
4565 cat conftest.$ac_ext >&5
4567 ac_cv_sizeof_void_p=0
4570 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4571 { test "$extra_verbose" = "yes" && cat << EOF
4572 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4574 cat >> confdefs.h <<EOF
4575 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4581 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4582 echo "configure:4583: checking for long file names" >&5
4584 ac_cv_sys_long_file_names=yes
4585 # Test for long file names in all the places we know might matter:
4586 # . the current directory, where building will happen
4587 # $prefix/lib where we will be installing things
4588 # $exec_prefix/lib likewise
4589 # eval it to expand exec_prefix.
4590 # $TMPDIR if set, where it might want to write temporary files
4591 # if $TMPDIR is not set:
4592 # /tmp where it might want to write temporary files
4595 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4596 ac_tmpdirs="$TMPDIR"
4598 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4600 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4601 test -d $ac_dir || continue
4602 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4603 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4604 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4605 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4606 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4607 ac_cv_sys_long_file_names=no
4608 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4611 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4614 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4615 if test $ac_cv_sys_long_file_names = yes; then
4616 { test "$extra_verbose" = "yes" && cat << \EOF
4617 Defining HAVE_LONG_FILE_NAMES
4619 cat >> confdefs.h <<\EOF
4620 #define HAVE_LONG_FILE_NAMES 1
4627 echo $ac_n "checking for sin""... $ac_c" 1>&6
4628 echo "configure:4629: checking for sin" >&5
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 /* System header to define __stub macros and hopefully few prototypes,
4634 which can conflict with char sin(); below. */
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4643 /* The GNU C library defines this for functions which it implements
4644 to always fail with ENOSYS. Some functions are actually named
4645 something starting with __ and the normal name is an alias. */
4646 #if defined (__stub_sin) || defined (__stub___sin)
4654 if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4656 eval "ac_cv_func_sin=yes"
4658 echo "configure: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4661 eval "ac_cv_func_sin=no"
4665 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4669 echo "$ac_t""no" 1>&6
4671 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4672 echo "configure:4673: checking for sin in -lm" >&5
4673 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4675 xe_check_libs=" -lm "
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690 eval "ac_cv_lib_$ac_lib_var=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 eval "ac_cv_lib_$ac_lib_var=no"
4700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4703 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4704 { test "$extra_verbose" = "yes" && cat << EOF
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_lib 1
4712 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4715 echo "$ac_t""no" 1>&6
4722 { test "$extra_verbose" = "yes" && cat << \EOF
4723 Defining LISP_FLOAT_TYPE
4725 cat >> confdefs.h <<\EOF
4726 #define LISP_FLOAT_TYPE 1
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4736 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4739 if { (eval echo configure:4740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4741 { test "$extra_verbose" = "yes" && cat << \EOF
4742 Defining HAVE_INVERSE_HYPERBOLIC
4744 cat >> confdefs.h <<\EOF
4745 #define HAVE_INVERSE_HYPERBOLIC 1
4750 echo "configure: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4755 echo "checking type of mail spool file locking" 1>&6
4756 echo "configure:4757: checking type of mail spool file locking" >&5
4757 for ac_func in lockf flock
4759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4760 echo "configure:4761: checking for $ac_func" >&5
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 /* System header to define __stub macros and hopefully few prototypes,
4766 which can conflict with char $ac_func(); below. */
4768 /* Override any gcc2 internal prototype to avoid an error. */
4769 /* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4775 /* The GNU C library defines this for functions which it implements
4776 to always fail with ENOSYS. Some functions are actually named
4777 something starting with __ and the normal name is an alias. */
4778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4786 if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4788 eval "ac_cv_func_$ac_func=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_func_$ac_func=no"
4797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4800 { test "$extra_verbose" = "yes" && cat << EOF
4801 Defining $ac_tr_func
4803 cat >> confdefs.h <<EOF
4804 #define $ac_tr_func 1
4809 echo "$ac_t""no" 1>&6
4813 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4814 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4815 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4816 if test -z "$mail_locking"; then
4817 case "$opsys" in cygwin* | mingw*)
4822 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4823 Defining MAIL_LOCK_LOCKF
4825 cat >> confdefs.h <<\EOF
4826 #define MAIL_LOCK_LOCKF 1
4830 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4831 Defining MAIL_LOCK_FLOCK
4833 cat >> confdefs.h <<\EOF
4834 #define MAIL_LOCK_FLOCK 1
4838 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4839 Defining MAIL_LOCK_LOCKING
4841 cat >> confdefs.h <<\EOF
4842 #define MAIL_LOCK_LOCKING 1
4846 elif test "$mail_locking" = "pop"; then
4849 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4850 Defining MAIL_LOCK_DOT
4852 cat >> confdefs.h <<\EOF
4853 #define MAIL_LOCK_DOT 1
4858 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4859 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4860 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4861 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4862 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4863 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4865 case "$opsys" in decosf*)
4867 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4868 echo "configure:4869: checking for cma_open in -lpthreads" >&5
4869 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4871 xe_check_libs=" -lpthreads "
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 /* Override any gcc2 internal prototype to avoid an error. */
4876 /* We use char because int might match the return type of a gcc2
4877 builtin and then its argument prototype would still apply. */
4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4886 eval "ac_cv_lib_$ac_lib_var=yes"
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4891 eval "ac_cv_lib_$ac_lib_var=no"
4896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4897 echo "$ac_t""yes" 1>&6
4898 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4899 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4900 { test "$extra_verbose" = "yes" && cat << EOF
4903 cat >> confdefs.h <<EOF
4904 #define $ac_tr_lib 1
4908 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4911 echo "$ac_t""no" 1>&6
4915 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4916 c_switch_site="$c_switch_site -threads" ;;
4919 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4920 echo "configure:4921: checking whether the -xildoff compiler flag is required" >&5
4921 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4922 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4923 then echo "$ac_t""no" 1>&6;
4924 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
4926 else echo "$ac_t""no" 1>&6
4929 if test "$opsys" = "sol2"; then
4930 if test "$os_release" -ge 56; then
4931 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4932 echo "configure:4933: checking for \"-z ignore\" linker flag" >&5
4933 case "`ld -h 2>&1`" in
4934 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4935 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4936 *) echo "$ac_t""no" 1>&6 ;;
4942 echo "checking "for specified window system"" 1>&6
4943 echo "configure:4944: checking "for specified window system"" >&5
4945 if test "$with_x11" != "no"; then
4946 test "$x_includes $x_libraries" != "NONE NONE" && \
4947 window_system=x11 with_x11=yes
4950 if test "$x_includes $x_libraries" = "NONE NONE" \
4951 -a -n "$OPENWINHOME" \
4952 -a "$OPENWINHOME" != "/usr/openwin" \
4953 -a -d "$OPENWINHOME"; then
4954 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4955 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4956 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4959 if test "$x_includes" = "NONE"; then
4960 for dir in "/usr/X11" "/usr/X11R6"; do
4961 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4965 if test "$x_libraries" = "NONE"; then
4966 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4967 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4971 # If we find X, set shell vars x_includes and x_libraries to the
4972 # paths, otherwise set no_x=yes.
4973 # Uses ac_ vars as temps to allow command line to override cache and checks.
4974 # --without-x overrides everything else, but does not touch the cache.
4975 echo $ac_n "checking for X""... $ac_c" 1>&6
4976 echo "configure:4977: checking for X" >&5
4978 # Check whether --with-x or --without-x was given.
4979 if test "${with_x+set}" = set; then
4984 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4985 if test "x$with_x" = xno; then
4986 # The user explicitly disabled X.
4989 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4990 # Both variables are already set.
4994 # One or both of the vars are not set, and there is no cached value.
4995 ac_x_includes=NO ac_x_libraries=NO
4997 if mkdir conftestdir; then
4999 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5000 cat > Imakefile <<'EOF'
5002 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5004 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5005 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5006 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5007 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5008 for ac_extension in a so sl; do
5009 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5010 test -f $ac_im_libdir/libX11.$ac_extension; then
5011 ac_im_usrlibdir=$ac_im_libdir; break
5014 # Screen out bogus values from the imake configuration. They are
5015 # bogus both because they are the default anyway, and because
5016 # using them would break gcc on systems where it needs fixed includes.
5017 case "$ac_im_incroot" in
5019 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5021 case "$ac_im_usrlibdir" in
5023 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5030 if test "$ac_x_includes" = NO; then
5031 # Guess where to find include files, by looking for this one X11 .h file.
5032 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5034 # First, try using that file with no special directory specified.
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038 #include <$x_direct_test_include>
5040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5041 { (eval echo configure:5042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5043 if test -z "$ac_err"; then
5045 # We can compile using X headers with no special include directory.
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5052 # Look for the header file in a standard set of common directories.
5053 # Check X11 before X11Rn because it is often a symlink to the current release.
5056 /usr/X11R6/include \
5057 /usr/X11R5/include \
5058 /usr/X11R4/include \
5061 /usr/include/X11R6 \
5062 /usr/include/X11R5 \
5063 /usr/include/X11R4 \
5065 /usr/local/X11/include \
5066 /usr/local/X11R6/include \
5067 /usr/local/X11R5/include \
5068 /usr/local/X11R4/include \
5070 /usr/local/include/X11 \
5071 /usr/local/include/X11R6 \
5072 /usr/local/include/X11R5 \
5073 /usr/local/include/X11R4 \
5077 /usr/XFree86/include/X11 \
5080 /usr/local/include \
5081 /usr/unsupported/include \
5082 /usr/athena/include \
5083 /usr/local/x11r5/include \
5084 /usr/lpp/Xamples/include \
5086 /usr/openwin/include \
5087 /usr/openwin/share/include \
5090 if test -r "$ac_dir/$x_direct_test_include"; then
5091 ac_x_includes=$ac_dir
5097 fi # $ac_x_includes = NO
5099 if test "$ac_x_libraries" = NO; then
5100 # Check for the libraries.
5102 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5103 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5105 # See if we find them without any special options.
5106 # Don't add to $LIBS permanently.
5107 ac_save_LIBS="$LIBS"
5108 LIBS="-l$x_direct_test_library $LIBS"
5109 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5114 ${x_direct_test_function}()
5117 if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5119 LIBS="$ac_save_LIBS"
5120 # We can link X programs with no special library path.
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5126 LIBS="$ac_save_LIBS"
5127 # First see if replacing the include by lib works.
5128 # Check X11 before X11Rn because it is often a symlink to the current release.
5129 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5140 /usr/local/X11/lib \
5141 /usr/local/X11R6/lib \
5142 /usr/local/X11R5/lib \
5143 /usr/local/X11R4/lib \
5145 /usr/local/lib/X11 \
5146 /usr/local/lib/X11R6 \
5147 /usr/local/lib/X11R5 \
5148 /usr/local/lib/X11R4 \
5152 /usr/XFree86/lib/X11 \
5156 /usr/unsupported/lib \
5158 /usr/local/x11r5/lib \
5159 /usr/lpp/Xamples/lib \
5163 /usr/openwin/share/lib \
5166 for ac_extension in a so sl; do
5167 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5168 ac_x_libraries=$ac_dir
5175 fi # $ac_x_libraries = NO
5177 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5178 # Didn't find X anywhere. Cache the known absence of X.
5179 ac_cv_have_x="have_x=no"
5181 # Record where we found X for the cache.
5182 ac_cv_have_x="have_x=yes \
5183 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5186 eval "$ac_cv_have_x"
5189 if test "$have_x" != yes; then
5190 echo "$ac_t""$have_x" 1>&6
5193 # If each of the values was on the command line, it overrides each guess.
5194 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5195 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5196 # Update the cache value to reflect the command line values.
5197 ac_cv_have_x="have_x=yes \
5198 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5199 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5202 if test "$no_x" = yes; then
5203 # Not all programs may use this symbol, but it does not hurt to define it.
5204 { test "$extra_verbose" = "yes" && cat << \EOF
5205 Defining X_DISPLAY_MISSING
5207 cat >> confdefs.h <<\EOF
5208 #define X_DISPLAY_MISSING 1
5212 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5214 if test -n "$x_includes"; then
5215 X_CFLAGS="$X_CFLAGS -I$x_includes"
5218 # It would also be nice to do this for all -L options, not just this one.
5219 if test -n "$x_libraries"; then
5220 X_LIBS="$X_LIBS -L$x_libraries"
5221 # For Solaris; some versions of Sun CC require a space after -R and
5222 # others require no space. Words are not sufficient . . . .
5223 case "`(uname -sr) 2>/dev/null`" in
5225 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5226 echo "configure:5227: checking whether -R must be followed by a space" >&5
5227 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5246 if test $ac_R_nospace = yes; then
5247 echo "$ac_t""no" 1>&6
5248 X_LIBS="$X_LIBS -R$x_libraries"
5250 LIBS="$ac_xsave_LIBS -R $x_libraries"
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5269 if test $ac_R_space = yes; then
5270 echo "$ac_t""yes" 1>&6
5271 X_LIBS="$X_LIBS -R $x_libraries"
5273 echo "$ac_t""neither works" 1>&6
5276 LIBS="$ac_xsave_LIBS"
5280 # Check for system-dependent libraries X programs must link with.
5281 # Do this before checking for the system-independent R6 libraries
5282 # (-lICE), since we may need -lsocket or whatever for X linking.
5284 if test "$ISC" = yes; then
5285 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5287 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5288 # libraries were built with DECnet support. And karl@cs.umb.edu says
5289 # the Alpha needs dnet_stub (dnet does not exist).
5290 if test "$with_dnet" = "no" ; then
5291 ac_cv_lib_dnet_dnet_ntoa=no
5294 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5295 echo "configure:5296: checking for dnet_ntoa in -ldnet" >&5
5296 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5298 xe_check_libs=" -ldnet "
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 /* Override any gcc2 internal prototype to avoid an error. */
5303 /* We use char because int might match the return type of a gcc2
5304 builtin and then its argument prototype would still apply. */
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5313 eval "ac_cv_lib_$ac_lib_var=yes"
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 eval "ac_cv_lib_$ac_lib_var=no"
5323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5324 echo "$ac_t""yes" 1>&6
5325 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5327 echo "$ac_t""no" 1>&6
5332 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5334 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5335 echo "configure:5336: checking for dnet_ntoa in -ldnet_stub" >&5
5336 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5338 xe_check_libs=" -ldnet_stub "
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342 /* Override any gcc2 internal prototype to avoid an error. */
5343 /* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */
5351 if { (eval echo configure:5352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5353 eval "ac_cv_lib_$ac_lib_var=yes"
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5358 eval "ac_cv_lib_$ac_lib_var=no"
5363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5364 echo "$ac_t""yes" 1>&6
5365 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5367 echo "$ac_t""no" 1>&6
5373 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5374 # to get the SysV transport functions.
5375 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5377 # The nsl library prevents programs from opening the X display
5378 # on Irix 5.2, according to dickey@clark.net.
5379 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5380 echo "configure:5381: checking for gethostbyname" >&5
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 /* System header to define __stub macros and hopefully few prototypes,
5386 which can conflict with char gethostbyname(); below. */
5388 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5391 char gethostbyname();
5395 /* The GNU C library defines this for functions which it implements
5396 to always fail with ENOSYS. Some functions are actually named
5397 something starting with __ and the normal name is an alias. */
5398 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5408 eval "ac_cv_func_gethostbyname=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 eval "ac_cv_func_gethostbyname=no"
5417 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5421 echo "$ac_t""no" 1>&6
5424 if test $ac_cv_func_gethostbyname = no; then
5426 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5427 echo "configure:5428: checking for gethostbyname in -lnsl" >&5
5428 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5430 xe_check_libs=" -lnsl "
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 /* Override any gcc2 internal prototype to avoid an error. */
5435 /* We use char because int might match the return type of a gcc2
5436 builtin and then its argument prototype would still apply. */
5437 char gethostbyname();
5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445 eval "ac_cv_lib_$ac_lib_var=yes"
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 eval "ac_cv_lib_$ac_lib_var=no"
5455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5456 echo "$ac_t""yes" 1>&6
5457 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5459 echo "$ac_t""no" 1>&6
5465 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5466 # socket/setsockopt and other routines are undefined under SCO ODT
5467 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5468 # on later versions), says simon@lia.di.epfl.ch: it contains
5469 # gethostby* variants that don't use the nameserver (or something).
5470 # -lsocket must be given before -lnsl if both are needed.
5471 # We assume that if connect needs -lnsl, so does gethostbyname.
5472 echo $ac_n "checking for connect""... $ac_c" 1>&6
5473 echo "configure:5474: checking for connect" >&5
5475 cat > conftest.$ac_ext <<EOF
5476 #line 5477 "configure"
5477 #include "confdefs.h"
5478 /* System header to define __stub macros and hopefully few prototypes,
5479 which can conflict with char connect(); below. */
5481 /* Override any gcc2 internal prototype to avoid an error. */
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5488 /* The GNU C library defines this for functions which it implements
5489 to always fail with ENOSYS. Some functions are actually named
5490 something starting with __ and the normal name is an alias. */
5491 #if defined (__stub_connect) || defined (__stub___connect)
5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5501 eval "ac_cv_func_connect=yes"
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5506 eval "ac_cv_func_connect=no"
5510 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5511 echo "$ac_t""yes" 1>&6
5514 echo "$ac_t""no" 1>&6
5517 if test $ac_cv_func_connect = no; then
5519 xe_msg_checking="for connect in -lsocket"
5520 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5521 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5522 echo "configure:5523: checking "$xe_msg_checking"" >&5
5523 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5525 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 /* Override any gcc2 internal prototype to avoid an error. */
5530 /* We use char because int might match the return type of a gcc2
5531 builtin and then its argument prototype would still apply. */
5538 if { (eval echo configure:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5540 eval "ac_cv_lib_$ac_lib_var=yes"
5542 echo "configure: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5545 eval "ac_cv_lib_$ac_lib_var=no"
5550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5551 echo "$ac_t""yes" 1>&6
5552 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5554 echo "$ac_t""no" 1>&6
5560 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5561 echo $ac_n "checking for remove""... $ac_c" 1>&6
5562 echo "configure:5563: checking for remove" >&5
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 /* System header to define __stub macros and hopefully few prototypes,
5568 which can conflict with char remove(); below. */
5570 /* Override any gcc2 internal prototype to avoid an error. */
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5577 /* The GNU C library defines this for functions which it implements
5578 to always fail with ENOSYS. Some functions are actually named
5579 something starting with __ and the normal name is an alias. */
5580 #if defined (__stub_remove) || defined (__stub___remove)
5588 if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5590 eval "ac_cv_func_remove=yes"
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5595 eval "ac_cv_func_remove=no"
5599 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5600 echo "$ac_t""yes" 1>&6
5603 echo "$ac_t""no" 1>&6
5606 if test $ac_cv_func_remove = no; then
5608 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5609 echo "configure:5610: checking for remove in -lposix" >&5
5610 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5612 xe_check_libs=" -lposix "
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5616 /* Override any gcc2 internal prototype to avoid an error. */
5617 /* We use char because int might match the return type of a gcc2
5618 builtin and then its argument prototype would still apply. */
5625 if { (eval echo configure:5626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5627 eval "ac_cv_lib_$ac_lib_var=yes"
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5632 eval "ac_cv_lib_$ac_lib_var=no"
5637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5638 echo "$ac_t""yes" 1>&6
5639 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5641 echo "$ac_t""no" 1>&6
5647 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5648 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5649 echo "configure:5650: checking for shmat" >&5
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* System header to define __stub macros and hopefully few prototypes,
5655 which can conflict with char shmat(); below. */
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5664 /* The GNU C library defines this for functions which it implements
5665 to always fail with ENOSYS. Some functions are actually named
5666 something starting with __ and the normal name is an alias. */
5667 #if defined (__stub_shmat) || defined (__stub___shmat)
5675 if { (eval echo configure:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5677 eval "ac_cv_func_shmat=yes"
5679 echo "configure: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5682 eval "ac_cv_func_shmat=no"
5686 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5687 echo "$ac_t""yes" 1>&6
5690 echo "$ac_t""no" 1>&6
5693 if test $ac_cv_func_shmat = no; then
5695 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5696 echo "configure:5697: checking for shmat in -lipc" >&5
5697 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5699 xe_check_libs=" -lipc "
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* Override any gcc2 internal prototype to avoid an error. */
5704 /* We use char because int might match the return type of a gcc2
5705 builtin and then its argument prototype would still apply. */
5712 if { (eval echo configure:5713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5714 eval "ac_cv_lib_$ac_lib_var=yes"
5716 echo "configure: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5719 eval "ac_cv_lib_$ac_lib_var=no"
5724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5725 echo "$ac_t""yes" 1>&6
5726 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5728 echo "$ac_t""no" 1>&6
5735 # Check for libraries that X11R6 Xt/Xaw programs need.
5736 ac_save_LDFLAGS="$LDFLAGS"
5737 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5738 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5739 # check for ICE first), but we must link in the order -lSM -lICE or
5740 # we get undefined symbols. So assume we have SM if we have ICE.
5741 # These have to be linked with before -lX11, unlike the other
5742 # libraries we check for below, so use a different variable.
5743 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5745 xe_msg_checking="for IceConnectionNumber in -lICE"
5746 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5747 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5748 echo "configure:5749: checking "$xe_msg_checking"" >&5
5749 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5751 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5755 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5758 char IceConnectionNumber();
5761 IceConnectionNumber()
5764 if { (eval echo configure:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766 eval "ac_cv_lib_$ac_lib_var=yes"
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5771 eval "ac_cv_lib_$ac_lib_var=no"
5776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5777 echo "$ac_t""yes" 1>&6
5778 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5780 echo "$ac_t""no" 1>&6
5784 LDFLAGS="$ac_save_LDFLAGS"
5787 # Autoconf claims to find X library and include dirs for us.
5788 if test "$no_x" = "yes"
5789 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5790 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5795 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5796 no ) window_system=none HAVE_X_WINDOWS=no ;;
5799 if test "$with_x11" = "yes"; then
5800 { test "$extra_verbose" = "yes" && cat << \EOF
5801 Defining HAVE_X_WINDOWS
5803 cat >> confdefs.h <<\EOF
5804 #define HAVE_X_WINDOWS 1
5808 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5809 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5811 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5812 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5813 if test -d "$lib_dir" -a -d "$inc_dir"; then
5814 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5815 x_libraries="$lib_dir $x_libraries"
5816 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5818 case "$x_includes" in "$inc_dir"* ) ;; *)
5819 x_includes="$inc_dir $x_includes"
5820 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5825 for rel in "X11R6" "X11R5" "X11R4"; do
5826 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5827 if test -d "$lib_dir" -a -d "$inc_dir"; then
5828 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5829 x_libraries="$x_libraries $lib_dir"
5830 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5832 case "$x_includes" in "$inc_dir"* ) ;; *)
5833 x_includes="$x_includes $inc_dir"
5834 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5840 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 ;;
5843 ld_switch_x_site="$X_LIBS"
5846 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5847 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5848 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5850 runpath="" runpath_dirs=""
5851 if test -n "$LD_RUN_PATH"; then
5852 runpath="$LD_RUN_PATH"
5853 elif test "$GCC" = "yes"; then
5854 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5855 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5856 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5857 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5858 case "$arg" in P,* | -L* | -R* )
5859 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5861 xe_runpath_dir="$dir"
5862 test "$xe_runpath_dir" != "/lib" -a \
5863 "$xe_runpath_dir" != "/usr/lib" -a \
5864 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5865 eval "$xe_add_unique_runpath_dir"
5870 ld_switch_run="$ld_switch_run_save"
5873 for arg in $ld_switch_site $ld_switch_x_site; do
5874 case "$arg" in -L*) {
5875 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5876 test "$xe_runpath_dir" != "/lib" -a \
5877 "$xe_runpath_dir" != "/usr/lib" -a \
5878 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5879 eval "$xe_add_unique_runpath_dir"
5882 if test "$opsys $need_motif" = "sol2 yes"; then
5883 xe_runpath_dir="/opt/SUNWdt/lib";
5884 eval "$xe_add_unique_runpath_dir";
5887 if test -n "$runpath"; then
5888 ld_switch_run="${dash_r}${runpath}"
5890 if test "$GCC" = "yes"; then
5891 set x $ld_switch_run; shift; ld_switch_run=""
5892 while test -n "$1"; do
5894 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5895 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5897 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5902 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5907 if test "$extra_verbose" = "yes"; then
5908 echo; echo "X11 compilation variables:"
5909 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5914 if test "$x_includes" != NONE; then
5915 for i in $x_includes; do
5916 if test -d "$i/bitmaps"; then
5917 bitmapdirs="$i/bitmaps:$bitmapdirs"
5919 if test -d "$i/X11/bitmaps"; then
5920 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5923 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5925 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5926 Defining BITMAPDIR = "$bitmapdirs"
5928 cat >> confdefs.h <<EOF
5929 #define BITMAPDIR "$bitmapdirs"
5934 echo "checking for X defines extracted by xmkmf" 1>&6
5935 echo "configure:5936: checking for X defines extracted by xmkmf" >&5
5937 if mkdir conftestdir; then
5939 cat > Imakefile <<'EOF'
5941 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5943 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5945 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5949 for word in $xmkmf_defines; do
5950 case "$word" in -D* )
5951 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
5953 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
5956 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5957 if test "$val" = "1"
5958 then { test "$extra_verbose" = "yes" && cat << EOF
5961 cat >> confdefs.h <<EOF
5966 else { test "$extra_verbose" = "yes" && cat << EOF
5967 Defining $sym = $val
5969 cat >> confdefs.h <<EOF
5980 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5981 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5982 echo "configure:5983: checking for X11/Intrinsic.h" >&5
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 #include <X11/Intrinsic.h>
5989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5990 { (eval echo configure:5991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5992 if test -z "$ac_err"; then
5994 eval "ac_cv_header_$ac_safe=yes"
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 eval "ac_cv_header_$ac_safe=no"
6003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6004 echo "$ac_t""yes" 1>&6
6007 echo "$ac_t""no" 1>&6
6008 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6013 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6014 echo "configure:6015: checking for XOpenDisplay in -lX11" >&5
6015 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6017 xe_check_libs=" -lX11 "
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021 /* Override any gcc2 internal prototype to avoid an error. */
6022 /* We use char because int might match the return type of a gcc2
6023 builtin and then its argument prototype would still apply. */
6024 char XOpenDisplay();
6030 if { (eval echo configure:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6032 eval "ac_cv_lib_$ac_lib_var=yes"
6034 echo "configure: failed program was:" >&5
6035 cat conftest.$ac_ext >&5
6037 eval "ac_cv_lib_$ac_lib_var=no"
6042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6043 echo "$ac_t""yes" 1>&6
6046 echo "$ac_t""no" 1>&6
6050 if test "$have_lib_x11" != "yes"; then
6052 xe_msg_checking="for XGetFontProperty in -lX11"
6053 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6054 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6055 echo "configure:6056: checking "$xe_msg_checking"" >&5
6056 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6058 xe_check_libs=" -lX11 -b i486-linuxaout"
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6065 char XGetFontProperty();
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6073 eval "ac_cv_lib_$ac_lib_var=yes"
6075 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6078 eval "ac_cv_lib_$ac_lib_var=no"
6083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6084 echo "$ac_t""yes" 1>&6
6085 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6087 echo "$ac_t""no" 1>&6
6088 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6094 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6097 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6098 echo "configure:6099: checking for XShapeSelectInput in -lXext" >&5
6099 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6101 xe_check_libs=" -lXext "
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6108 char XShapeSelectInput();
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6116 eval "ac_cv_lib_$ac_lib_var=yes"
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6121 eval "ac_cv_lib_$ac_lib_var=no"
6126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6127 echo "$ac_t""yes" 1>&6
6128 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6130 echo "$ac_t""no" 1>&6
6136 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6137 echo "configure:6138: checking for XtOpenDisplay in -lXt" >&5
6138 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6140 xe_check_libs=" -lXt "
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6144 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6147 char XtOpenDisplay();
6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6155 eval "ac_cv_lib_$ac_lib_var=yes"
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6160 eval "ac_cv_lib_$ac_lib_var=no"
6165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6166 echo "$ac_t""yes" 1>&6
6167 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6169 echo "$ac_t""no" 1>&6
6170 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6175 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6176 echo "configure:6177: checking the version of X11 being used" >&5
6177 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6180 #include <X11/Intrinsic.h>
6181 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6183 if { (eval echo configure:6184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6185 ./conftest foobar; x11_release=$?
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6194 echo "$ac_t""R${x11_release}" 1>&6
6195 { test "$extra_verbose" = "yes" && cat << EOF
6196 Defining THIS_IS_X11R${x11_release}
6198 cat >> confdefs.h <<EOF
6199 #define THIS_IS_X11R${x11_release} 1
6204 if test "${x11_release}" = "4"; then
6205 case "$with_widgets" in
6206 "" | "no") with_widgets=no ;;
6207 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6211 for ac_func in XConvertCase
6213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6214 echo "configure:6215: checking for $ac_func" >&5
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* System header to define __stub macros and hopefully few prototypes,
6220 which can conflict with char $ac_func(); below. */
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6240 if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6242 eval "ac_cv_func_$ac_func=yes"
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 eval "ac_cv_func_$ac_func=no"
6251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6252 echo "$ac_t""yes" 1>&6
6253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6254 { test "$extra_verbose" = "yes" && cat << EOF
6255 Defining $ac_tr_func
6257 cat >> confdefs.h <<EOF
6258 #define $ac_tr_func 1
6263 echo "$ac_t""no" 1>&6
6268 for ac_hdr in X11/Xlocale.h
6270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6272 echo "configure:6273: checking for $ac_hdr" >&5
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6280 { (eval echo configure:6281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6282 if test -z "$ac_err"; then
6284 eval "ac_cv_header_$ac_safe=yes"
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6290 eval "ac_cv_header_$ac_safe=no"
6293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6294 echo "$ac_t""yes" 1>&6
6295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6296 { test "$extra_verbose" = "yes" && cat << EOF
6299 cat >> confdefs.h <<EOF
6300 #define $ac_tr_hdr 1
6305 echo "$ac_t""no" 1>&6
6310 for ac_func in XRegisterIMInstantiateCallback
6312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6313 echo "configure:6314: checking for $ac_func" >&5
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6318 /* System header to define __stub macros and hopefully few prototypes,
6319 which can conflict with char $ac_func(); below. */
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6328 /* The GNU C library defines this for functions which it implements
6329 to always fail with ENOSYS. Some functions are actually named
6330 something starting with __ and the normal name is an alias. */
6331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6341 eval "ac_cv_func_$ac_func=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 eval "ac_cv_func_$ac_func=no"
6350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6353 { test "$extra_verbose" = "yes" && cat << EOF
6354 Defining $ac_tr_func
6356 cat >> confdefs.h <<EOF
6357 #define $ac_tr_func 1
6362 echo "$ac_t""no" 1>&6
6366 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6367 echo "configure:6368: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6368 cat > conftest.$ac_ext <<EOF
6369 #line 6370 "configure"
6370 #include "confdefs.h"
6372 #define NeedFunctionPrototypes 1
6373 #include <X11/Xlib.h>
6374 extern Bool XRegisterIMInstantiateCallback(
6375 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6381 if { (eval echo configure:6382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6383 echo "$ac_t""yes" 1>&6
6385 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 echo "$ac_t""no" 1>&6
6389 { test "$extra_verbose" = "yes" && cat << \EOF
6390 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6392 cat >> confdefs.h <<\EOF
6393 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6400 test -z "$with_xmu" && {
6401 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6402 echo "configure:6403: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6403 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6405 xe_check_libs=" -lXmu "
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 /* We use char because int might match the return type of a gcc2
6411 builtin and then its argument prototype would still apply. */
6412 char XmuReadBitmapDataFromFile();
6415 XmuReadBitmapDataFromFile()
6418 if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6420 eval "ac_cv_lib_$ac_lib_var=yes"
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6425 eval "ac_cv_lib_$ac_lib_var=no"
6430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6431 echo "$ac_t""yes" 1>&6
6434 echo "$ac_t""no" 1>&6
6439 if test "$with_xmu" = "no"; then
6440 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6441 echo " xemacs will be linked with \"xmu.o\""
6444 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6445 { test "$extra_verbose" = "yes" && cat << \EOF
6448 cat >> confdefs.h <<\EOF
6456 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6457 echo "configure:6458: checking for main in -lXbsd" >&5
6458 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6460 xe_check_libs=" -lXbsd "
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6469 if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6471 eval "ac_cv_lib_$ac_lib_var=yes"
6473 echo "configure: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6476 eval "ac_cv_lib_$ac_lib_var=no"
6481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6482 echo "$ac_t""yes" 1>&6
6483 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6485 echo "$ac_t""no" 1>&6
6490 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6491 if test "$GCC" = "yes"; then
6492 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6493 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6496 "xlc" ) CC="xlc_r" ;;
6497 "xlC" ) CC="xlC_r" ;;
6504 if test "$with_msw" != "no"; then
6505 echo "checking for MS-Windows" 1>&6
6506 echo "configure:6507: checking for MS-Windows" >&5
6508 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6509 echo "configure:6510: checking for main in -lgdi32" >&5
6510 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6512 xe_check_libs=" -lgdi32 "
6513 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6521 if { (eval echo configure:6522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6523 eval "ac_cv_lib_$ac_lib_var=yes"
6525 echo "configure: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6528 eval "ac_cv_lib_$ac_lib_var=no"
6533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6534 echo "$ac_t""yes" 1>&6
6537 echo "$ac_t""no" 1>&6
6541 if test "$with_msw" = "yes"; then
6542 { test "$extra_verbose" = "yes" && cat << \EOF
6543 Defining HAVE_MS_WINDOWS
6545 cat >> confdefs.h <<\EOF
6546 #define HAVE_MS_WINDOWS 1
6551 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
6552 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
6553 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
6555 install_pp="$blddir/lib-src/installexe.sh"
6556 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
6557 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6558 if test "$window_system" != x11; then
6560 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6561 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6562 echo " xemacs will be linked with \"scrollbar-msw.o\""
6564 test "$with_menubars" != "no" && with_menubars=msw \
6565 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6566 echo " xemacs will be linked with \"menubar-msw.o\""
6568 test "$with_toolbars" != "no" && with_toolbars=msw \
6569 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6570 echo " xemacs will be linked with \"toolbar-msw.o\""
6572 test "$with_dialogs" != "no" && with_dialogs=msw \
6573 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6574 echo " xemacs will be linked with \"dialog-msw.o\""
6576 test "$with_widgets" != "no" && with_widgets=msw
6578 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6579 echo " xemacs will be linked with \"scrollbar-msw.o\""
6581 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6582 echo " xemacs will be linked with \"menubar-msw.o\""
6584 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6585 echo " xemacs will be linked with \"toolbar-msw.o\""
6587 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6588 echo " xemacs will be linked with \"dialog-msw.o\""
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6595 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6597 if { (eval echo configure:6598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6599 { test "$extra_verbose" = "yes" && cat << \EOF
6600 Defining HAVE_MSG_SELECT
6602 cat >> confdefs.h <<\EOF
6603 #define HAVE_MSG_SELECT 1
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6613 with_file_coding=yes
6614 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
6615 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\""
6622 test -z "$window_system" && window_system="none"
6624 if test "$window_system" = "none"; then
6625 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6627 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6628 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6630 eval "with_${feature}=no"
6633 test -z "$with_toolbars" && with_toolbars=yes
6636 if test "$with_msw" != "yes"; then
6637 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6639 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6640 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6642 eval "with_${feature}=no"
6648 if test "$with_x11" != "yes"; then
6649 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6651 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6652 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6654 eval "with_${feature}=no"
6658 if test "$with_x11" = "yes"; then
6659 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6660 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6661 echo "configure:6662: checking for X11/extensions/shape.h" >&5
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 #include <X11/extensions/shape.h>
6668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6669 { (eval echo configure:6670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6671 if test -z "$ac_err"; then
6673 eval "ac_cv_header_$ac_safe=yes"
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6679 eval "ac_cv_header_$ac_safe=no"
6682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6683 echo "$ac_t""yes" 1>&6
6685 { test "$extra_verbose" = "yes" && cat << \EOF
6686 Defining HAVE_BALLOON_HELP
6688 cat >> confdefs.h <<\EOF
6689 #define HAVE_BALLOON_HELP 1
6693 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
6694 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
6697 echo "$ac_t""no" 1>&6
6704 case "$window_system" in
6705 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6706 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6707 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6710 case "$x_libraries" in *X11R4* )
6711 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6712 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6715 echo "checking for WM_COMMAND option" 1>&6
6716 echo "configure:6717: checking for WM_COMMAND option" >&5;
6717 if test "$with_wmcommand" != "no"; then
6718 { test "$extra_verbose" = "yes" && cat << \EOF
6719 Defining HAVE_WMCOMMAND
6721 cat >> confdefs.h <<\EOF
6722 #define HAVE_WMCOMMAND 1
6728 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6729 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6730 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6731 echo "configure:6732: checking for X11/Xauth.h" >&5
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 #include <X11/Xauth.h>
6738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6739 { (eval echo configure:6740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6741 if test -z "$ac_err"; then
6743 eval "ac_cv_header_$ac_safe=yes"
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6749 eval "ac_cv_header_$ac_safe=no"
6752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6753 echo "$ac_t""yes" 1>&6
6756 echo "$ac_t""no" 1>&6
6760 test -z "$with_xauth" && {
6761 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6762 echo "configure:6763: checking for XauGetAuthByAddr in -lXau" >&5
6763 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6765 xe_check_libs=" -lXau "
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 /* Override any gcc2 internal prototype to avoid an error. */
6770 /* We use char because int might match the return type of a gcc2
6771 builtin and then its argument prototype would still apply. */
6772 char XauGetAuthByAddr();
6778 if { (eval echo configure:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6780 eval "ac_cv_lib_$ac_lib_var=yes"
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6785 eval "ac_cv_lib_$ac_lib_var=no"
6790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6791 echo "$ac_t""yes" 1>&6
6794 echo "$ac_t""no" 1>&6
6799 test -z "$with_xauth" && with_xauth=yes
6800 if test "$with_xauth" = "yes"; then
6801 { test "$extra_verbose" = "yes" && cat << \EOF
6804 cat >> confdefs.h <<\EOF
6805 #define HAVE_XAUTH 1
6811 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
6819 if test "$with_tooltalk" != "no" ; then
6820 for dir in "" "Tt/" "desktop/" ; do
6821 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6822 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6823 echo "configure:6824: checking for ${dir}tt_c.h" >&5
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6828 #include <${dir}tt_c.h>
6830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6831 { (eval echo configure:6832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6833 if test -z "$ac_err"; then
6835 eval "ac_cv_header_$ac_safe=yes"
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 eval "ac_cv_header_$ac_safe=no"
6844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6845 echo "$ac_t""yes" 1>&6
6846 tt_c_h_file="${dir}tt_c.h"; break
6848 echo "$ac_t""no" 1>&6
6852 if test -z "$tt_c_h_file"; then
6853 if test "$with_tooltalk" = "yes"; then
6854 (echo "$progname: Usage error:"
6855 echo " " "Unable to find required tooltalk header files."
6856 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6861 if test "$with_tooltalk" != "no" ; then
6862 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6864 xe_msg_checking="for tt_message_create in -ltt"
6865 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6866 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6867 echo "configure:6868: checking "$xe_msg_checking"" >&5
6868 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6870 xe_check_libs=" -ltt $extra_libs"
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6877 char tt_message_create();
6883 if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6885 eval "ac_cv_lib_$ac_lib_var=yes"
6887 echo "configure: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6890 eval "ac_cv_lib_$ac_lib_var=no"
6895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6896 echo "$ac_t""yes" 1>&6
6897 tt_libs="-ltt $extra_libs"; break
6899 echo "$ac_t""no" 1>&6
6905 if test -z "$tt_libs"; then
6906 if test "$with_tooltalk" = "yes"; then
6907 (echo "$progname: Usage error:"
6908 echo " " "Unable to find required tooltalk libraries."
6909 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6914 test -z "$with_tooltalk" && with_tooltalk=yes
6915 if test "$with_tooltalk" = "yes"; then
6916 { test "$extra_verbose" = "yes" && cat << \EOF
6919 cat >> confdefs.h <<\EOF
6924 { test "$extra_verbose" = "yes" && cat << EOF
6925 Defining TT_C_H_FILE = "$tt_c_h_file"
6927 cat >> confdefs.h <<EOF
6928 #define TT_C_H_FILE "$tt_c_h_file"
6932 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6933 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6934 echo " xemacs will be linked with \"tooltalk.o\""
6938 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6939 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6940 echo "configure:6941: checking for Dt/Dt.h" >&5
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6948 { (eval echo configure:6949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6950 if test -z "$ac_err"; then
6952 eval "ac_cv_header_$ac_safe=yes"
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 eval "ac_cv_header_$ac_safe=no"
6961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6965 echo "$ac_t""no" 1>&6
6969 test -z "$with_cde" && {
6970 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6971 echo "configure:6972: checking for DtDndDragStart in -lDtSvc" >&5
6972 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6974 xe_check_libs=" -lDtSvc "
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978 /* Override any gcc2 internal prototype to avoid an error. */
6979 /* We use char because int might match the return type of a gcc2
6980 builtin and then its argument prototype would still apply. */
6981 char DtDndDragStart();
6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6989 eval "ac_cv_lib_$ac_lib_var=yes"
6991 echo "configure: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6994 eval "ac_cv_lib_$ac_lib_var=no"
6999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7000 echo "$ac_t""yes" 1>&6
7003 echo "$ac_t""no" 1>&6
7008 test -z "$with_cde" && with_cde=yes
7009 if test "$with_dragndrop" = no; then
7010 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7013 if test "$with_cde" = "yes" ; then
7014 { test "$extra_verbose" = "yes" && cat << \EOF
7017 cat >> confdefs.h <<\EOF
7022 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7023 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7024 with_tooltalk=yes # CDE requires Tooltalk
7025 need_motif=yes # CDE requires Motif
7028 test "$window_system" != "x11" && with_offix=no
7029 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7030 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7033 if test "$with_dragndrop" = no; then
7034 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7037 if test "$with_cde" = yes; then
7038 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7041 test -z "$with_offix" && with_offix=no
7042 if test "$with_offix" = "yes"; then
7043 { test "$extra_verbose" = "yes" && cat << \EOF
7044 Defining HAVE_OFFIX_DND
7046 cat >> confdefs.h <<\EOF
7047 #define HAVE_OFFIX_DND 1
7051 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7052 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7055 if test "$with_dragndrop" != "no" ; then
7056 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7057 echo "configure:7058: checking if drag and drop API is needed" >&5
7058 if test -n "$dragndrop_proto" ; then
7060 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7061 { test "$extra_verbose" = "yes" && cat << \EOF
7062 Defining HAVE_DRAGNDROP
7064 cat >> confdefs.h <<\EOF
7065 #define HAVE_DRAGNDROP 1
7069 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7072 echo "$ac_t""no" 1>&6
7076 echo "checking for LDAP" 1>&6
7077 echo "configure:7078: checking for LDAP" >&5
7078 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7079 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7080 echo "configure:7081: checking for ldap.h" >&5
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7088 { (eval echo configure:7089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7090 if test -z "$ac_err"; then
7092 eval "ac_cv_header_$ac_safe=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7098 eval "ac_cv_header_$ac_safe=no"
7101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7102 echo "$ac_t""yes" 1>&6
7105 echo "$ac_t""no" 1>&6
7109 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7110 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7111 echo "configure:7112: checking for lber.h" >&5
7113 cat > conftest.$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7119 { (eval echo configure:7120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7121 if test -z "$ac_err"; then
7123 eval "ac_cv_header_$ac_safe=yes"
7126 echo "configure: failed program was:" >&5
7127 cat conftest.$ac_ext >&5
7129 eval "ac_cv_header_$ac_safe=no"
7132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7133 echo "$ac_t""yes" 1>&6
7136 echo "$ac_t""no" 1>&6
7140 if test "$with_ldap" != "no"; then
7142 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7143 echo "configure:7144: checking for ldap_search in -lldap" >&5
7144 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7146 xe_check_libs=" -lldap "
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 /* Override any gcc2 internal prototype to avoid an error. */
7151 /* We use char because int might match the return type of a gcc2
7152 builtin and then its argument prototype would still apply. */
7159 if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7161 eval "ac_cv_lib_$ac_lib_var=yes"
7163 echo "configure: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7166 eval "ac_cv_lib_$ac_lib_var=no"
7171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7172 echo "$ac_t""yes" 1>&6
7173 with_ldap_nolber=yes
7175 echo "$ac_t""no" 1>&6
7180 test "$with_ldap_nolber" = "no" && {
7181 xe_msg_checking="for ldap_open in -lldap"
7182 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7183 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7184 echo "configure:7185: checking "$xe_msg_checking"" >&5
7185 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7187 xe_check_libs=" -lldap -llber"
7188 cat > conftest.$ac_ext <<EOF
7189 #line 7190 "configure"
7190 #include "confdefs.h"
7191 /* Override any gcc2 internal prototype to avoid an error. */
7192 /* We use char because int might match the return type of a gcc2
7193 builtin and then its argument prototype would still apply. */
7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7202 eval "ac_cv_lib_$ac_lib_var=yes"
7204 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7207 eval "ac_cv_lib_$ac_lib_var=no"
7212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7213 echo "$ac_t""yes" 1>&6
7216 echo "$ac_t""no" 1>&6
7221 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7222 xe_msg_checking="for ldap_open in -lldap"
7223 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7224 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7225 echo "configure:7226: checking "$xe_msg_checking"" >&5
7226 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7228 xe_check_libs=" -lldap -llber -lkrb"
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7232 /* Override any gcc2 internal prototype to avoid an error. */
7233 /* We use char because int might match the return type of a gcc2
7234 builtin and then its argument prototype would still apply. */
7241 if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7243 eval "ac_cv_lib_$ac_lib_var=yes"
7245 echo "configure: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7248 eval "ac_cv_lib_$ac_lib_var=no"
7253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7254 echo "$ac_t""yes" 1>&6
7257 echo "$ac_t""no" 1>&6
7262 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7263 xe_msg_checking="for ldap_open in -lldap"
7264 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7265 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7266 echo "configure:7267: checking "$xe_msg_checking"" >&5
7267 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7269 xe_check_libs=" -lldap -llber -lkrb -ldes"
7270 cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7273 /* Override any gcc2 internal prototype to avoid an error. */
7274 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */
7282 if { (eval echo configure:7283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7284 eval "ac_cv_lib_$ac_lib_var=yes"
7286 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7289 eval "ac_cv_lib_$ac_lib_var=no"
7294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7295 echo "$ac_t""yes" 1>&6
7296 with_ldap_krbdes=yes
7298 echo "$ac_t""no" 1>&6
7303 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
7305 if test "$with_ldap" = "yes"; then
7306 { test "$extra_verbose" = "yes" && cat << \EOF
7309 cat >> confdefs.h <<\EOF
7314 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7315 echo " xemacs will be linked with \"eldap.o\""
7317 if test "$with_ldap_nolber" = "yes" ; then
7318 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7320 if test "$with_ldap_krb" = "yes" ; then
7321 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7323 if test "$with_ldap_krbdes" = "yes" ; then
7324 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7325 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7327 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7328 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7330 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7333 echo "configure:7334: checking for $ac_func" >&5
7335 cat > conftest.$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7338 /* System header to define __stub macros and hopefully few prototypes,
7339 which can conflict with char $ac_func(); below. */
7341 /* Override any gcc2 internal prototype to avoid an error. */
7342 /* We use char because int might match the return type of a gcc2
7343 builtin and then its argument prototype would still apply. */
7348 /* The GNU C library defines this for functions which it implements
7349 to always fail with ENOSYS. Some functions are actually named
7350 something starting with __ and the normal name is an alias. */
7351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7361 eval "ac_cv_func_$ac_func=yes"
7363 echo "configure: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7366 eval "ac_cv_func_$ac_func=no"
7370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7371 echo "$ac_t""yes" 1>&6
7372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7373 { test "$extra_verbose" = "yes" && cat << EOF
7374 Defining $ac_tr_func
7376 cat >> confdefs.h <<EOF
7377 #define $ac_tr_func 1
7382 echo "$ac_t""no" 1>&6
7388 if test "$with_postgresql" != "no"; then
7389 echo "checking for PostgreSQL" 1>&6
7390 echo "configure:7391: checking for PostgreSQL" >&5
7392 for header_dir in "" "pgsql/" "postgresql/"; do
7393 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7394 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7395 echo "configure:7396: checking for ${header_dir}libpq-fe.h" >&5
7397 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 #include <${header_dir}libpq-fe.h>
7402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7403 { (eval echo configure:7404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7405 if test -z "$ac_err"; then
7407 eval "ac_cv_header_$ac_safe=yes"
7410 echo "configure: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7413 eval "ac_cv_header_$ac_safe=no"
7416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7417 echo "$ac_t""yes" 1>&6
7418 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7420 echo "$ac_t""no" 1>&6
7425 test -n "$libpq_fe_h_file" && {
7426 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7427 echo "configure:7428: checking for PQconnectdb in -lpq" >&5
7428 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7430 xe_check_libs=" -lpq "
7431 cat > conftest.$ac_ext <<EOF
7432 #line 7433 "configure"
7433 #include "confdefs.h"
7434 /* Override any gcc2 internal prototype to avoid an error. */
7435 /* We use char because int might match the return type of a gcc2
7436 builtin and then its argument prototype would still apply. */
7443 if { (eval echo configure:7444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7445 eval "ac_cv_lib_$ac_lib_var=yes"
7447 echo "configure: failed program was:" >&5
7448 cat conftest.$ac_ext >&5
7450 eval "ac_cv_lib_$ac_lib_var=no"
7455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7456 echo "$ac_t""yes" 1>&6
7459 echo "$ac_t""no" 1>&6
7464 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7466 { test "$extra_verbose" = "yes" && cat << \EOF
7467 Defining HAVE_POSTGRESQL
7469 cat >> confdefs.h <<\EOF
7470 #define HAVE_POSTGRESQL 1
7475 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7476 echo "configure:7477: checking for PQconnectStart in -lpq" >&5
7477 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7479 xe_check_libs=" -lpq "
7480 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7483 /* Override any gcc2 internal prototype to avoid an error. */
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7486 char PQconnectStart();
7492 if { (eval echo configure:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7494 eval "ac_cv_lib_$ac_lib_var=yes"
7496 echo "configure: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7499 eval "ac_cv_lib_$ac_lib_var=no"
7504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7505 echo "$ac_t""yes" 1>&6
7506 with_postgresqlv7=yes;
7507 { test "$extra_verbose" = "yes" && cat << \EOF
7508 Defining HAVE_POSTGRESQLV7
7510 cat >> confdefs.h <<\EOF
7511 #define HAVE_POSTGRESQLV7 1
7516 echo "$ac_t""no" 1>&6
7520 { test "$extra_verbose" = "yes" && cat << EOF
7521 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7523 cat >> confdefs.h <<EOF
7524 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7528 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7529 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7530 echo " xemacs will be linked with \"postgresql.o\""
7532 elif test "$with_postgresql" = "yes"; then
7533 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7538 if test "$window_system" != "none"; then
7539 echo "checking for graphics libraries" 1>&6
7540 echo "configure:7541: checking for graphics libraries" >&5
7543 if test -z "$with_xpm"; then
7544 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7545 echo "configure:7546: checking for Xpm - no older than 3.4f" >&5
7547 cat > conftest.$ac_ext <<EOF
7548 #line 7549 "configure"
7549 #include "confdefs.h"
7551 #include <X11/xpm.h>
7552 int main(int c, char **v) {
7554 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7555 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7559 ./conftest dummy_arg; xpm_status=$?;
7560 if test "$xpm_status" = "0"; then
7564 if test "$xpm_status" = "1"; then
7565 xpm_problem="Xpm library version and header file version don't match!"
7566 elif test "$xpm_status" = "2"; then
7567 xpm_problem="Xpm library version is too old!"
7569 xpm_problem="Internal xpm detection logic error!"
7572 *** WARNING *** $xpm_problem
7573 I'm not touching that with a 10-foot pole!
7574 If you really want to use the installed version of Xpm, rerun
7575 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7579 echo "configure: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7586 echo "$ac_t""$with_xpm" 1>&6
7588 if test "$with_xpm" = "yes"; then
7589 { test "$extra_verbose" = "yes" && cat << \EOF
7592 cat >> confdefs.h <<\EOF
7597 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7598 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7599 echo "configure:7600: checking for \"FOR_MSW\" xpm" >&5
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7606 XpmCreatePixmapFromData()
7609 if { (eval echo configure:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7613 echo "configure: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7620 echo "$ac_t""$xpm_for_msw" 1>&6
7621 if test "$xpm_for_msw" = "yes"; then
7622 { test "$extra_verbose" = "yes" && cat << \EOF
7625 cat >> confdefs.h <<\EOF
7633 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7634 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7635 echo "configure:7636: checking for compface.h" >&5
7637 cat > conftest.$ac_ext <<EOF
7638 #line 7639 "configure"
7639 #include "confdefs.h"
7640 #include <compface.h>
7642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7643 { (eval echo configure:7644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7645 if test -z "$ac_err"; then
7647 eval "ac_cv_header_$ac_safe=yes"
7650 echo "configure: failed program was:" >&5
7651 cat conftest.$ac_ext >&5
7653 eval "ac_cv_header_$ac_safe=no"
7656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7657 echo "$ac_t""yes" 1>&6
7660 echo "$ac_t""no" 1>&6
7664 test -z "$with_xface" && {
7665 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7666 echo "configure:7667: checking for UnGenFace in -lcompface" >&5
7667 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7669 xe_check_libs=" -lcompface "
7670 cat > conftest.$ac_ext <<EOF
7671 #line 7672 "configure"
7672 #include "confdefs.h"
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7682 if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7684 eval "ac_cv_lib_$ac_lib_var=yes"
7686 echo "configure: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7689 eval "ac_cv_lib_$ac_lib_var=no"
7694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7695 echo "$ac_t""yes" 1>&6
7698 echo "$ac_t""no" 1>&6
7703 test -z "$with_xface" && with_xface=yes
7704 if test "$with_xface" = "yes"; then
7705 { test "$extra_verbose" = "yes" && cat << \EOF
7708 cat >> confdefs.h <<\EOF
7709 #define HAVE_XFACE 1
7713 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7716 if test "$with_gif" != "no"; then
7718 { test "$extra_verbose" = "yes" && cat << \EOF
7721 cat >> confdefs.h <<\EOF
7726 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7727 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7731 if test "$with_png $with_tiff" != "no no"; then
7733 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7734 echo "configure:7735: checking for inflate in -lc" >&5
7735 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7737 xe_check_libs=" -lc "
7738 cat > conftest.$ac_ext <<EOF
7739 #line 7740 "configure"
7740 #include "confdefs.h"
7741 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7750 if { (eval echo configure:7751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7752 eval "ac_cv_lib_$ac_lib_var=yes"
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7757 eval "ac_cv_lib_$ac_lib_var=no"
7762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7763 echo "$ac_t""yes" 1>&6
7766 echo "$ac_t""no" 1>&6
7768 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7769 echo "configure:7770: checking for inflate in -lz" >&5
7770 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7772 xe_check_libs=" -lz "
7773 cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 /* Override any gcc2 internal prototype to avoid an error. */
7777 /* We use char because int might match the return type of a gcc2
7778 builtin and then its argument prototype would still apply. */
7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7787 eval "ac_cv_lib_$ac_lib_var=yes"
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 eval "ac_cv_lib_$ac_lib_var=no"
7797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7798 echo "$ac_t""yes" 1>&6
7799 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7801 echo "$ac_t""no" 1>&6
7803 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7804 echo "configure:7805: checking for inflate in -lgz" >&5
7805 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7807 xe_check_libs=" -lgz "
7808 cat > conftest.$ac_ext <<EOF
7809 #line 7810 "configure"
7810 #include "confdefs.h"
7811 /* Override any gcc2 internal prototype to avoid an error. */
7812 /* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7820 if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7822 eval "ac_cv_lib_$ac_lib_var=yes"
7824 echo "configure: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7827 eval "ac_cv_lib_$ac_lib_var=no"
7832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7833 echo "$ac_t""yes" 1>&6
7834 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7836 echo "$ac_t""no" 1>&6
7848 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7849 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7850 echo "configure:7851: checking for jpeglib.h" >&5
7852 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 #include <jpeglib.h>
7857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7858 { (eval echo configure:7859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7860 if test -z "$ac_err"; then
7862 eval "ac_cv_header_$ac_safe=yes"
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7868 eval "ac_cv_header_$ac_safe=no"
7871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7872 echo "$ac_t""yes" 1>&6
7875 echo "$ac_t""no" 1>&6
7879 test -z "$with_jpeg" && {
7880 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7881 echo "configure:7882: checking for jpeg_destroy_decompress in -ljpeg" >&5
7882 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7884 xe_check_libs=" -ljpeg "
7885 cat > conftest.$ac_ext <<EOF
7886 #line 7887 "configure"
7887 #include "confdefs.h"
7888 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891 char jpeg_destroy_decompress();
7894 jpeg_destroy_decompress()
7897 if { (eval echo configure:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7899 eval "ac_cv_lib_$ac_lib_var=yes"
7901 echo "configure: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7904 eval "ac_cv_lib_$ac_lib_var=no"
7909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7910 echo "$ac_t""yes" 1>&6
7913 echo "$ac_t""no" 1>&6
7918 test -z "$with_jpeg" && with_jpeg=yes
7919 if test "$with_jpeg" = "yes"; then
7920 { test "$extra_verbose" = "yes" && cat << \EOF
7923 cat >> confdefs.h <<\EOF
7928 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7932 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7933 echo "configure:7934: checking for pow" >&5
7935 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure"
7937 #include "confdefs.h"
7938 /* System header to define __stub macros and hopefully few prototypes,
7939 which can conflict with char pow(); below. */
7941 /* Override any gcc2 internal prototype to avoid an error. */
7942 /* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7948 /* The GNU C library defines this for functions which it implements
7949 to always fail with ENOSYS. Some functions are actually named
7950 something starting with __ and the normal name is an alias. */
7951 #if defined (__stub_pow) || defined (__stub___pow)
7959 if { (eval echo configure:7960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7961 eval "ac_cv_func_pow=yes"
7963 echo "configure: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7966 eval "ac_cv_func_pow=no"
7970 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7971 echo "$ac_t""yes" 1>&6
7974 echo "$ac_t""no" 1>&6
7978 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7979 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7980 echo "configure:7981: checking for png.h" >&5
7982 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure"
7984 #include "confdefs.h"
7987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7988 { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7990 if test -z "$ac_err"; then
7992 eval "ac_cv_header_$ac_safe=yes"
7995 echo "configure: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7998 eval "ac_cv_header_$ac_safe=no"
8001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8005 echo "$ac_t""no" 1>&6
8009 test -z "$with_png" && {
8010 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8011 echo "configure:8012: checking for png_read_image in -lpng" >&5
8012 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8014 xe_check_libs=" -lpng "
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8021 char png_read_image();
8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8029 eval "ac_cv_lib_$ac_lib_var=yes"
8031 echo "configure: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8034 eval "ac_cv_lib_$ac_lib_var=no"
8039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8040 echo "$ac_t""yes" 1>&6
8043 echo "$ac_t""no" 1>&6
8048 if test -z "$with_png"; then
8049 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8050 echo "configure:8051: checking for workable png version information" >&5
8051 xe_check_libs="-lpng -lz"
8052 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8056 int main(int c, char **v) {
8057 if (c == 1) return 0;
8058 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8059 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8061 if { (eval echo configure:8062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8063 ./conftest dummy_arg; png_status=$?;
8064 if test "$png_status" = "0"; then
8068 if test "$png_status" = "1"; then
8069 png_problem="PNG library version and header file don't match!"
8070 elif test "$png_status" = "2"; then
8071 png_problem="PNG library version too old (pre 1.0.2)!"
8074 *** WARNING *** $png_problem
8075 I'm not touching that with a 10-foot pole!
8076 If you really want to use the installed version of libPNG, rerun
8077 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8081 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8088 echo "$ac_t""$with_png" 1>&6
8090 if test "$with_png" = "yes"; then
8091 { test "$extra_verbose" = "yes" && cat << \EOF
8094 cat >> confdefs.h <<\EOF
8099 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8102 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8103 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8104 echo "configure:8105: checking for tiffio.h" >&5
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8112 { (eval echo configure:8113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8114 if test -z "$ac_err"; then
8116 eval "ac_cv_header_$ac_safe=yes"
8119 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8122 eval "ac_cv_header_$ac_safe=no"
8125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8126 echo "$ac_t""yes" 1>&6
8129 echo "$ac_t""no" 1>&6
8133 test -z "$with_tiff" && {
8134 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8135 echo "configure:8136: checking for TIFFClientOpen in -ltiff" >&5
8136 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8138 xe_check_libs=" -ltiff "
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* Override any gcc2 internal prototype to avoid an error. */
8143 /* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */
8145 char TIFFClientOpen();
8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8153 eval "ac_cv_lib_$ac_lib_var=yes"
8155 echo "configure: failed program was:" >&5
8156 cat conftest.$ac_ext >&5
8158 eval "ac_cv_lib_$ac_lib_var=no"
8163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8164 echo "$ac_t""yes" 1>&6
8167 echo "$ac_t""no" 1>&6
8172 test -z "$with_tiff" && with_tiff=yes
8173 if test "$with_tiff" = "yes"; then
8174 { test "$extra_verbose" = "yes" && cat << \EOF
8177 cat >> confdefs.h <<\EOF
8182 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8187 if test "$with_x11" = "yes"; then
8189 echo "checking for X11 graphics libraries" 1>&6
8190 echo "configure:8191: checking for X11 graphics libraries" >&5
8192 echo "checking for the Athena widgets" 1>&6
8193 echo "configure:8194: checking for the Athena widgets" >&5
8195 case "$with_athena" in
8196 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8197 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8198 "next") athena_variant=neXtaw athena_3d=yes ;;
8199 "95") athena_variant=Xaw95 athena_3d=yes ;;
8200 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8201 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8204 if test "$athena_3d" = "no"; then
8206 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8207 echo "configure:8208: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8208 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8210 xe_check_libs=" -l$athena_variant "
8211 cat > conftest.$ac_ext <<EOF
8212 #line 8213 "configure"
8213 #include "confdefs.h"
8214 /* Override any gcc2 internal prototype to avoid an error. */
8215 /* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8217 char XawScrollbarSetThumb();
8220 XawScrollbarSetThumb()
8223 if { (eval echo configure:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8225 eval "ac_cv_lib_$ac_lib_var=yes"
8227 echo "configure: failed program was:" >&5
8228 cat conftest.$ac_ext >&5
8230 eval "ac_cv_lib_$ac_lib_var=no"
8235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8236 echo "$ac_t""yes" 1>&6
8238 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8239 echo "configure:8240: checking for threeDClassRec in -l$athena_variant" >&5
8240 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8242 xe_check_libs=" -l$athena_variant "
8243 cat > conftest.$ac_ext <<EOF
8244 #line 8245 "configure"
8245 #include "confdefs.h"
8246 /* Override any gcc2 internal prototype to avoid an error. */
8247 /* We use char because int might match the return type of a gcc2
8248 builtin and then its argument prototype would still apply. */
8249 char threeDClassRec();
8255 if { (eval echo configure:8256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8257 eval "ac_cv_lib_$ac_lib_var=yes"
8259 echo "configure: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8262 eval "ac_cv_lib_$ac_lib_var=no"
8267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8268 echo "$ac_t""yes" 1>&6
8269 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8271 echo "$ac_t""no" 1>&6
8272 athena_lib=$athena_variant
8278 echo "$ac_t""no" 1>&6
8279 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8285 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8286 echo "configure:8287: checking for threeDClassRec in -l$athena_variant" >&5
8287 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8289 xe_check_libs=" -l$athena_variant "
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296 char threeDClassRec();
8302 if { (eval echo configure:8303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8304 eval "ac_cv_lib_$ac_lib_var=yes"
8306 echo "configure: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8309 eval "ac_cv_lib_$ac_lib_var=no"
8314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8315 echo "$ac_t""yes" 1>&6
8316 athena_lib=$athena_variant
8318 echo "$ac_t""no" 1>&6
8319 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8320 echo "configure:8321: checking for threeDClassRec in -lXaw" >&5
8321 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8323 xe_check_libs=" -lXaw "
8324 cat > conftest.$ac_ext <<EOF
8325 #line 8326 "configure"
8326 #include "confdefs.h"
8327 /* Override any gcc2 internal prototype to avoid an error. */
8328 /* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8330 char threeDClassRec();
8336 if { (eval echo configure:8337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8338 eval "ac_cv_lib_$ac_lib_var=yes"
8340 echo "configure: failed program was:" >&5
8341 cat conftest.$ac_ext >&5
8343 eval "ac_cv_lib_$ac_lib_var=no"
8348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8349 echo "$ac_t""yes" 1>&6
8351 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8354 echo "$ac_t""no" 1>&6
8355 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8364 if test "$athena_3d" = "no"; then
8365 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8366 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8367 echo "configure:8368: checking for X11/Xaw/ThreeD.h" >&5
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 #include <X11/Xaw/ThreeD.h>
8374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8375 { (eval echo configure:8376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8377 if test -z "$ac_err"; then
8379 eval "ac_cv_header_$ac_safe=yes"
8382 echo "configure: failed program was:" >&5
8383 cat conftest.$ac_ext >&5
8385 eval "ac_cv_header_$ac_safe=no"
8388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8389 echo "$ac_t""yes" 1>&6
8390 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8392 echo "$ac_t""no" 1>&6
8393 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8394 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8395 echo "configure:8396: checking for X11/Xaw/XawInit.h" >&5
8397 cat > conftest.$ac_ext <<EOF
8398 #line 8399 "configure"
8399 #include "confdefs.h"
8400 #include <X11/Xaw/XawInit.h>
8402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8403 { (eval echo configure:8404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8405 if test -z "$ac_err"; then
8407 eval "ac_cv_header_$ac_safe=yes"
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8413 eval "ac_cv_header_$ac_safe=no"
8416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8417 echo "$ac_t""yes" 1>&6
8418 athena_h_path=X11/Xaw
8420 echo "$ac_t""no" 1>&6
8421 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8427 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8428 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8429 echo "configure:8430: checking for X11/$athena_variant/XawInit.h" >&5
8431 cat > conftest.$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8434 #include <X11/$athena_variant/XawInit.h>
8436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8437 { (eval echo configure:8438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8439 if test -z "$ac_err"; then
8441 eval "ac_cv_header_$ac_safe=yes"
8444 echo "configure: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8447 eval "ac_cv_header_$ac_safe=no"
8450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8451 echo "$ac_t""yes" 1>&6
8452 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8453 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8454 echo "configure:8455: checking for X11/$athena_variant/ThreeD.h" >&5
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459 #include <X11/$athena_variant/ThreeD.h>
8461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8462 { (eval echo configure:8463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8464 if test -z "$ac_err"; then
8466 eval "ac_cv_header_$ac_safe=yes"
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8472 eval "ac_cv_header_$ac_safe=no"
8475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8477 athena_h_path=X11/$athena_variant
8479 echo "$ac_t""no" 1>&6
8483 echo "$ac_t""no" 1>&6
8487 if test -z "$athena_h_path"; then
8488 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8489 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8490 echo "configure:8491: checking for $athena_variant/XawInit.h" >&5
8492 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure"
8494 #include "confdefs.h"
8495 #include <$athena_variant/XawInit.h>
8497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8498 { (eval echo configure:8499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8500 if test -z "$ac_err"; then
8502 eval "ac_cv_header_$ac_safe=yes"
8505 echo "configure: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8508 eval "ac_cv_header_$ac_safe=no"
8511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8512 echo "$ac_t""yes" 1>&6
8513 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8514 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $athena_variant/ThreeD.h" >&5
8517 cat > conftest.$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8520 #include <$athena_variant/ThreeD.h>
8522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8523 { (eval echo configure:8524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8525 if test -z "$ac_err"; then
8527 eval "ac_cv_header_$ac_safe=yes"
8530 echo "configure: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8533 eval "ac_cv_header_$ac_safe=no"
8536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8537 echo "$ac_t""yes" 1>&6
8538 athena_h_path=$athena_variant
8540 echo "$ac_t""no" 1>&6
8544 echo "$ac_t""no" 1>&6
8549 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8550 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8551 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8552 echo "configure:8553: checking for X11/Xaw3d/XawInit.h" >&5
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 #include <X11/Xaw3d/XawInit.h>
8559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8560 { (eval echo configure:8561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8562 if test -z "$ac_err"; then
8564 eval "ac_cv_header_$ac_safe=yes"
8567 echo "configure: failed program was:" >&5
8568 cat conftest.$ac_ext >&5
8570 eval "ac_cv_header_$ac_safe=no"
8573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8574 echo "$ac_t""yes" 1>&6
8575 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8576 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8577 echo "configure:8578: checking for X11/Xaw3d/ThreeD.h" >&5
8579 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 #include <X11/Xaw3d/ThreeD.h>
8584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8585 { (eval echo configure:8586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8587 if test -z "$ac_err"; then
8589 eval "ac_cv_header_$ac_safe=yes"
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8595 eval "ac_cv_header_$ac_safe=no"
8598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8599 echo "$ac_t""yes" 1>&6
8601 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8602 athena_h_path=X11/Xaw3d
8605 echo "$ac_t""no" 1>&6
8609 echo "$ac_t""no" 1>&6
8614 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8615 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8616 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8617 echo "configure:8618: checking for Xaw3d/XawInit.h" >&5
8619 cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8622 #include <Xaw3d/XawInit.h>
8624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8625 { (eval echo configure:8626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8627 if test -z "$ac_err"; then
8629 eval "ac_cv_header_$ac_safe=yes"
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8635 eval "ac_cv_header_$ac_safe=no"
8638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8639 echo "$ac_t""yes" 1>&6
8640 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8641 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8642 echo "configure:8643: checking for Xaw3d/ThreeD.h" >&5
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8647 #include <Xaw3d/ThreeD.h>
8649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8650 { (eval echo configure:8651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8652 if test -z "$ac_err"; then
8654 eval "ac_cv_header_$ac_safe=yes"
8657 echo "configure: failed program was:" >&5
8658 cat conftest.$ac_ext >&5
8660 eval "ac_cv_header_$ac_safe=no"
8663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8664 echo "$ac_t""yes" 1>&6
8666 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8670 echo "$ac_t""no" 1>&6
8674 echo "$ac_t""no" 1>&6
8679 if test -z "$athena_h_path"; then
8680 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8681 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8682 echo "configure:8683: checking for X11/Xaw/ThreeD.h" >&5
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 #include <X11/Xaw/ThreeD.h>
8689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8690 { (eval echo configure:8691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8692 if test -z "$ac_err"; then
8694 eval "ac_cv_header_$ac_safe=yes"
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8700 eval "ac_cv_header_$ac_safe=no"
8703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8704 echo "$ac_t""yes" 1>&6
8706 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8707 athena_h_path=X11/Xaw
8710 echo "$ac_t""no" 1>&6
8711 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8717 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8723 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8724 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8725 echo "configure:8726: checking for Xm/Xm.h" >&5
8727 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8733 { (eval echo configure:8734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8735 if test -z "$ac_err"; then
8737 eval "ac_cv_header_$ac_safe=yes"
8740 echo "configure: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8743 eval "ac_cv_header_$ac_safe=no"
8746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8747 echo "$ac_t""yes" 1>&6
8749 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8750 echo "configure:8751: checking for XmStringFree in -lXm" >&5
8751 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8753 xe_check_libs=" -lXm "
8754 cat > conftest.$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8757 /* Override any gcc2 internal prototype to avoid an error. */
8758 /* We use char because int might match the return type of a gcc2
8759 builtin and then its argument prototype would still apply. */
8760 char XmStringFree();
8766 if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8768 eval "ac_cv_lib_$ac_lib_var=yes"
8770 echo "configure: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8773 eval "ac_cv_lib_$ac_lib_var=no"
8778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8779 echo "$ac_t""yes" 1>&6
8782 echo "$ac_t""no" 1>&6
8788 echo "$ac_t""no" 1>&6
8793 if test "$have_motif" = "yes"; then
8794 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8795 echo "configure:8796: checking for Lesstif" >&5
8796 cat > conftest.$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8800 #ifdef LESSTIF_VERSION
8805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 egrep "yes" >/dev/null 2>&1; then
8815 echo "$ac_t""$have_lesstif" 1>&6
8820 case "$with_menubars" in "" | "yes" | "athena" )
8821 with_menubars="lucid" ;;
8823 case "$with_dialogs" in "" | "yes" | "lucid" )
8824 if test "$have_motif" = "yes"; then with_dialogs="motif"
8825 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8826 else with_dialogs=no
8829 case "$with_scrollbars" in "" | "yes" )
8830 with_scrollbars="lucid" ;;
8832 case "$with_widgets" in "" | "yes" | "lucid")
8833 if test "$have_motif" = "yes"; then with_widgets="motif"
8834 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8835 else with_widgets=no
8839 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8841 case "$all_widgets" in
8843 if test "$have_xaw" != "yes"; then
8844 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8847 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8849 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8851 { test "$extra_verbose" = "yes" && cat << EOF
8852 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8854 cat >> confdefs.h <<EOF
8855 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8859 { test "$extra_verbose" = "yes" && cat << EOF
8860 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8862 cat >> confdefs.h <<EOF
8863 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8867 { test "$extra_verbose" = "yes" && cat << EOF
8868 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8870 cat >> confdefs.h <<EOF
8871 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8875 { test "$extra_verbose" = "yes" && cat << EOF
8876 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8878 cat >> confdefs.h <<EOF
8879 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8883 { test "$extra_verbose" = "yes" && cat << EOF
8884 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8886 cat >> confdefs.h <<EOF
8887 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8891 { test "$extra_verbose" = "yes" && cat << EOF
8892 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8894 cat >> confdefs.h <<EOF
8895 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8899 { test "$extra_verbose" = "yes" && cat << EOF
8900 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8902 cat >> confdefs.h <<EOF
8903 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8907 { test "$extra_verbose" = "yes" && cat << EOF
8908 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8910 cat >> confdefs.h <<EOF
8911 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8915 { test "$extra_verbose" = "yes" && cat << EOF
8916 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8918 cat >> confdefs.h <<EOF
8919 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8923 { test "$extra_verbose" = "yes" && cat << EOF
8924 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8926 cat >> confdefs.h <<EOF
8927 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8932 { test "$extra_verbose" = "yes" && cat << \EOF
8933 Defining LWLIB_USES_ATHENA
8935 cat >> confdefs.h <<\EOF
8936 #define LWLIB_USES_ATHENA 1
8940 { test "$extra_verbose" = "yes" && cat << \EOF
8941 Defining NEED_ATHENA
8943 cat >> confdefs.h <<\EOF
8944 #define NEED_ATHENA 1
8950 if test "$athena_3d" = "yes"; then
8951 { test "$extra_verbose" = "yes" && cat << \EOF
8952 Defining HAVE_ATHENA_3D
8954 cat >> confdefs.h <<\EOF
8955 #define HAVE_ATHENA_3D 1
8963 case "$all_widgets" in *motif* )
8964 { test "$extra_verbose" = "yes" && cat << \EOF
8965 Defining LWLIB_USES_MOTIF
8967 cat >> confdefs.h <<\EOF
8968 #define LWLIB_USES_MOTIF 1
8972 { test "$extra_verbose" = "yes" && cat << \EOF
8975 cat >> confdefs.h <<\EOF
8976 #define NEED_MOTIF 1
8980 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8984 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8985 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8986 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8987 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8988 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8989 case "$with_widgets" in athena* )
8990 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;;
8992 case "$all_widgets" in *lucid* )
8993 { test "$extra_verbose" = "yes" && cat << \EOF
8996 cat >> confdefs.h <<\EOF
8997 #define NEED_LUCID 1
9001 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9006 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9007 Defining LWLIB_SCROLLBARS_ATHENA
9009 cat >> confdefs.h <<\EOF
9010 #define LWLIB_SCROLLBARS_ATHENA 1
9014 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9015 Defining LWLIB_DIALOGS_ATHENA
9017 cat >> confdefs.h <<\EOF
9018 #define LWLIB_DIALOGS_ATHENA 1
9023 if test "$athena_3d" = "yes"; then
9024 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9025 Defining LWLIB_SCROLLBARS_ATHENA3D
9027 cat >> confdefs.h <<\EOF
9028 #define LWLIB_SCROLLBARS_ATHENA3D 1
9032 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9033 Defining LWLIB_DIALOGS_ATHENA3D
9035 cat >> confdefs.h <<\EOF
9036 #define LWLIB_DIALOGS_ATHENA3D 1
9042 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9043 Defining LWLIB_WIDGETS_ATHENA
9045 cat >> confdefs.h <<\EOF
9046 #define LWLIB_WIDGETS_ATHENA 1
9050 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9051 { test "$extra_verbose" = "yes" && cat << \EOF
9052 Defining LWLIB_TABS_LUCID
9054 cat >> confdefs.h <<\EOF
9055 #define LWLIB_TABS_LUCID 1
9060 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9061 Defining HAVE_MENUBARS
9063 cat >> confdefs.h <<\EOF
9064 #define HAVE_MENUBARS 1
9068 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9069 Defining HAVE_SCROLLBARS
9071 cat >> confdefs.h <<\EOF
9072 #define HAVE_SCROLLBARS 1
9076 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9077 Defining HAVE_DIALOGS
9079 cat >> confdefs.h <<\EOF
9080 #define HAVE_DIALOGS 1
9084 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9085 Defining HAVE_TOOLBARS
9087 cat >> confdefs.h <<\EOF
9088 #define HAVE_TOOLBARS 1
9092 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9093 Defining HAVE_WIDGETS
9095 cat >> confdefs.h <<\EOF
9096 #define HAVE_WIDGETS 1
9101 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9102 Defining LWLIB_MENUBARS_LUCID
9104 cat >> confdefs.h <<\EOF
9105 #define LWLIB_MENUBARS_LUCID 1
9109 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9110 Defining LWLIB_SCROLLBARS_LUCID
9112 cat >> confdefs.h <<\EOF
9113 #define LWLIB_SCROLLBARS_LUCID 1
9118 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9119 Defining LWLIB_MENUBARS_MOTIF
9121 cat >> confdefs.h <<\EOF
9122 #define LWLIB_MENUBARS_MOTIF 1
9126 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9127 Defining LWLIB_SCROLLBARS_MOTIF
9129 cat >> confdefs.h <<\EOF
9130 #define LWLIB_SCROLLBARS_MOTIF 1
9134 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9135 Defining LWLIB_DIALOGS_MOTIF
9137 cat >> confdefs.h <<\EOF
9138 #define LWLIB_DIALOGS_MOTIF 1
9142 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9143 Defining LWLIB_WIDGETS_MOTIF
9145 cat >> confdefs.h <<\EOF
9146 #define LWLIB_WIDGETS_MOTIF 1
9151 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9152 echo " xemacs will be linked with \"menubar.o\""
9154 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9155 echo " xemacs will be linked with \"scrollbar.o\""
9157 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9158 echo " xemacs will be linked with \"dialog.o\""
9160 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9161 echo " xemacs will be linked with \"toolbar.o\""
9164 if test "$with_x11" = "yes"; then
9165 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9166 echo " xemacs will be linked with \"menubar-x.o\""
9168 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9169 echo " xemacs will be linked with \"scrollbar-x.o\""
9171 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9172 echo " xemacs will be linked with \"dialog-x.o\""
9174 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9175 echo " xemacs will be linked with \"toolbar-x.o\""
9177 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9178 echo " xemacs will be linked with \"gui-x.o\""
9183 test -z "$with_mule" && with_mule=no
9184 test -z "$with_file_coding" && with_file_coding=no
9187 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9188 { test "$extra_verbose" = "yes" && cat << \EOF
9189 Defining FILE_CODING
9191 cat >> confdefs.h <<\EOF
9192 #define FILE_CODING 1
9196 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9197 echo " xemacs will be linked with \"file-coding.o\""
9201 if test "$with_mule" = "yes" ; then
9202 echo "checking for Mule-related features" 1>&6
9203 echo "configure:9204: checking for Mule-related features" >&5
9204 { test "$extra_verbose" = "yes" && cat << \EOF
9207 cat >> confdefs.h <<\EOF
9212 { test "$extra_verbose" = "yes" && cat << \EOF
9213 Defining FILE_CODING
9215 cat >> confdefs.h <<\EOF
9216 #define FILE_CODING 1
9220 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9221 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9223 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9224 { test "$extra_verbose" = "yes" && cat << \EOF
9225 Defining TEXT_CODING
9227 cat >> confdefs.h <<\EOF
9228 #define TEXT_CODING 1
9232 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9233 echo " xemacs will be linked with \"text-coding.o\""
9236 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9237 echo " xemacs will be linked with \"file-coding.o\""
9240 for ac_hdr in libintl.h
9242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9244 echo "configure:9245: checking for $ac_hdr" >&5
9246 cat > conftest.$ac_ext <<EOF
9247 #line 9248 "configure"
9248 #include "confdefs.h"
9251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9252 { (eval echo configure:9253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9254 if test -z "$ac_err"; then
9256 eval "ac_cv_header_$ac_safe=yes"
9259 echo "configure: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9262 eval "ac_cv_header_$ac_safe=no"
9265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9266 echo "$ac_t""yes" 1>&6
9267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9268 { test "$extra_verbose" = "yes" && cat << EOF
9271 cat >> confdefs.h <<EOF
9272 #define $ac_tr_hdr 1
9277 echo "$ac_t""no" 1>&6
9282 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9283 echo "configure:9284: checking for strerror in -lintl" >&5
9284 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9286 xe_check_libs=" -lintl "
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 /* We use char because int might match the return type of a gcc2
9292 builtin and then its argument prototype would still apply. */
9299 if { (eval echo configure:9300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9301 eval "ac_cv_lib_$ac_lib_var=yes"
9303 echo "configure: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9306 eval "ac_cv_lib_$ac_lib_var=no"
9311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9312 echo "$ac_t""yes" 1>&6
9313 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9315 { test "$extra_verbose" = "yes" && cat << EOF
9318 cat >> confdefs.h <<EOF
9319 #define $ac_tr_lib 1
9323 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9326 echo "$ac_t""no" 1>&6
9331 if test "$with_utf_2000" = "yes" ; then
9332 { test "$extra_verbose" = "yes" && cat << \EOF
9333 Defining CHAR_IS_UCS4
9335 cat >> confdefs.h <<\EOF
9336 #define CHAR_IS_UCS4 1
9340 { test "$extra_verbose" = "yes" && cat << \EOF
9343 cat >> confdefs.h <<\EOF
9350 echo "checking for Mule input methods" 1>&6
9351 echo "configure:9352: checking for Mule input methods" >&5
9352 case "$with_xim" in "" | "yes" )
9353 echo "checking for XIM" 1>&6
9354 echo "configure:9355: checking for XIM" >&5
9356 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9357 echo "configure:9358: checking for XOpenIM in -lX11" >&5
9358 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9360 xe_check_libs=" -lX11 "
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 /* Override any gcc2 internal prototype to avoid an error. */
9365 /* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9373 if { (eval echo configure:9374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9375 eval "ac_cv_lib_$ac_lib_var=yes"
9377 echo "configure: failed program was:" >&5
9378 cat conftest.$ac_ext >&5
9380 eval "ac_cv_lib_$ac_lib_var=no"
9385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9386 echo "$ac_t""yes" 1>&6
9389 echo "$ac_t""no" 1>&6
9394 if test "$have_motif $have_lesstif" = "yes no"; then
9396 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9397 echo "configure:9398: checking for XmImMbLookupString in -lXm" >&5
9398 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9400 xe_check_libs=" -lXm "
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9407 char XmImMbLookupString();
9410 XmImMbLookupString()
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9415 eval "ac_cv_lib_$ac_lib_var=yes"
9417 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9420 eval "ac_cv_lib_$ac_lib_var=no"
9425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9426 echo "$ac_t""yes" 1>&6
9429 echo "$ac_t""no" 1>&6
9435 if test "$with_xim" != "no"; then
9436 { test "$extra_verbose" = "yes" && cat << \EOF
9439 cat >> confdefs.h <<\EOF
9444 if test "$with_xim" = "xlib"; then
9445 { test "$extra_verbose" = "yes" && cat << \EOF
9448 cat >> confdefs.h <<\EOF
9453 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9454 echo " xemacs will be linked with \"input-method-xlib.o\""
9457 if test "$with_xim" = "motif"; then
9458 { test "$extra_verbose" = "yes" && cat << \EOF
9461 cat >> confdefs.h <<\EOF
9467 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9468 echo " xemacs will be linked with \"input-method-motif.o\""
9471 if test "$with_xim" = "motif"; then
9476 if test "$with_xfs" = "yes" ; then
9477 echo "checking for XFontSet" 1>&6
9478 echo "configure:9479: checking for XFontSet" >&5
9480 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9481 echo "configure:9482: checking for XmbDrawString in -lX11" >&5
9482 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9484 xe_check_libs=" -lX11 "
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 /* Override any gcc2 internal prototype to avoid an error. */
9489 /* We use char because int might match the return type of a gcc2
9490 builtin and then its argument prototype would still apply. */
9491 char XmbDrawString();
9497 if { (eval echo configure:9498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9499 eval "ac_cv_lib_$ac_lib_var=yes"
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9504 eval "ac_cv_lib_$ac_lib_var=no"
9509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9510 echo "$ac_t""yes" 1>&6
9513 echo "$ac_t""no" 1>&6
9518 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9519 { test "$extra_verbose" = "yes" && cat << \EOF
9520 Defining USE_XFONTSET
9522 cat >> confdefs.h <<\EOF
9523 #define USE_XFONTSET 1
9527 if test "$with_xim" = "no" ; then
9528 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9529 echo " xemacs will be linked with \"input-method-xlib.o\""
9534 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9535 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9536 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9537 echo "configure:9538: checking for wnn/jllib.h" >&5
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9542 #include <wnn/jllib.h>
9544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9545 { (eval echo configure:9546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9547 if test -z "$ac_err"; then
9549 eval "ac_cv_header_$ac_safe=yes"
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9555 eval "ac_cv_header_$ac_safe=no"
9558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9559 echo "$ac_t""yes" 1>&6
9562 echo "$ac_t""no" 1>&6
9566 if test "$with_wnn" != "no"; then
9567 for ac_func in crypt
9569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9570 echo "configure:9571: checking for $ac_func" >&5
9572 cat > conftest.$ac_ext <<EOF
9573 #line 9574 "configure"
9574 #include "confdefs.h"
9575 /* System header to define __stub macros and hopefully few prototypes,
9576 which can conflict with char $ac_func(); below. */
9578 /* Override any gcc2 internal prototype to avoid an error. */
9579 /* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9585 /* The GNU C library defines this for functions which it implements
9586 to always fail with ENOSYS. Some functions are actually named
9587 something starting with __ and the normal name is an alias. */
9588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9596 if { (eval echo configure:9597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9598 eval "ac_cv_func_$ac_func=yes"
9600 echo "configure: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9603 eval "ac_cv_func_$ac_func=no"
9607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9608 echo "$ac_t""yes" 1>&6
9609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9610 { test "$extra_verbose" = "yes" && cat << EOF
9611 Defining $ac_tr_func
9613 cat >> confdefs.h <<EOF
9614 #define $ac_tr_func 1
9619 echo "$ac_t""no" 1>&6
9623 test "$ac_cv_func_crypt" != "yes" && {
9624 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9625 echo "configure:9626: checking for crypt in -lcrypt" >&5
9626 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9628 xe_check_libs=" -lcrypt "
9629 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9632 /* Override any gcc2 internal prototype to avoid an error. */
9633 /* We use char because int might match the return type of a gcc2
9634 builtin and then its argument prototype would still apply. */
9641 if { (eval echo configure:9642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9643 eval "ac_cv_lib_$ac_lib_var=yes"
9645 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9648 eval "ac_cv_lib_$ac_lib_var=no"
9653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9654 echo "$ac_t""yes" 1>&6
9655 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9657 { test "$extra_verbose" = "yes" && cat << EOF
9660 cat >> confdefs.h <<EOF
9661 #define $ac_tr_lib 1
9665 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9668 echo "$ac_t""no" 1>&6
9673 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9675 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9676 echo "configure:9677: checking for jl_dic_list_e in -lwnn" >&5
9677 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9679 xe_check_libs=" -lwnn "
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9683 /* Override any gcc2 internal prototype to avoid an error. */
9684 /* We use char because int might match the return type of a gcc2
9685 builtin and then its argument prototype would still apply. */
9686 char jl_dic_list_e();
9692 if { (eval echo configure:9693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9694 eval "ac_cv_lib_$ac_lib_var=yes"
9696 echo "configure: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9699 eval "ac_cv_lib_$ac_lib_var=no"
9704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9705 echo "$ac_t""yes" 1>&6
9708 echo "$ac_t""no" 1>&6
9709 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9710 echo "configure:9711: checking for jl_dic_list_e in -lwnn4" >&5
9711 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9713 xe_check_libs=" -lwnn4 "
9714 cat > conftest.$ac_ext <<EOF
9715 #line 9716 "configure"
9716 #include "confdefs.h"
9717 /* Override any gcc2 internal prototype to avoid an error. */
9718 /* We use char because int might match the return type of a gcc2
9719 builtin and then its argument prototype would still apply. */
9720 char jl_dic_list_e();
9726 if { (eval echo configure:9727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9728 eval "ac_cv_lib_$ac_lib_var=yes"
9730 echo "configure: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9733 eval "ac_cv_lib_$ac_lib_var=no"
9738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9739 echo "$ac_t""yes" 1>&6
9742 echo "$ac_t""no" 1>&6
9743 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9744 echo "configure:9745: checking for jl_dic_list_e in -lwnn6" >&5
9745 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9747 xe_check_libs=" -lwnn6 "
9748 cat > conftest.$ac_ext <<EOF
9749 #line 9750 "configure"
9750 #include "confdefs.h"
9751 /* Override any gcc2 internal prototype to avoid an error. */
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char jl_dic_list_e();
9760 if { (eval echo configure:9761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9762 eval "ac_cv_lib_$ac_lib_var=yes"
9764 echo "configure: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9767 eval "ac_cv_lib_$ac_lib_var=no"
9772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9773 echo "$ac_t""yes" 1>&6
9776 echo "$ac_t""no" 1>&6
9777 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9778 echo "configure:9779: checking for dic_list_e in -lwnn6_fromsrc" >&5
9779 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9781 xe_check_libs=" -lwnn6_fromsrc "
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9794 if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9796 eval "ac_cv_lib_$ac_lib_var=yes"
9798 echo "configure: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9801 eval "ac_cv_lib_$ac_lib_var=no"
9806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9807 echo "$ac_t""yes" 1>&6
9810 echo "$ac_t""no" 1>&6
9825 test -z "$with_wnn" && with_wnn=yes
9826 if test "$with_wnn" = "yes"; then
9827 { test "$extra_verbose" = "yes" && cat << \EOF
9830 cat >> confdefs.h <<\EOF
9835 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9836 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9837 echo " xemacs will be linked with \"mule-wnnfns.o\""
9839 if test "$with_wnn6" != "no"; then
9841 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9842 echo "configure:9843: checking for jl_fi_dic_list in -l$libwnn" >&5
9843 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9845 xe_check_libs=" -l$libwnn "
9846 cat > conftest.$ac_ext <<EOF
9847 #line 9848 "configure"
9848 #include "confdefs.h"
9849 /* Override any gcc2 internal prototype to avoid an error. */
9850 /* We use char because int might match the return type of a gcc2
9851 builtin and then its argument prototype would still apply. */
9852 char jl_fi_dic_list();
9858 if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9860 eval "ac_cv_lib_$ac_lib_var=yes"
9862 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9865 eval "ac_cv_lib_$ac_lib_var=no"
9870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9871 echo "$ac_t""yes" 1>&6
9874 echo "$ac_t""no" 1>&6
9878 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9881 cat >> confdefs.h <<\EOF
9889 canna_includes_found=no
9890 if test "$with_canna" != "no"; then
9891 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9892 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9893 echo "configure:9894: checking for canna/jrkanji.h" >&5
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9898 #include <canna/jrkanji.h>
9900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9901 { (eval echo configure:9902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9903 if test -z "$ac_err"; then
9905 eval "ac_cv_header_$ac_safe=yes"
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9911 eval "ac_cv_header_$ac_safe=no"
9914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9915 echo "$ac_t""yes" 1>&6
9916 canna_includes_found=yes
9918 echo "$ac_t""no" 1>&6
9922 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9923 -d "/usr/local/canna/include"; then
9924 save_c_switch_site="$c_switch_site"
9925 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9926 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9927 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9928 echo "configure:9929: checking for canna/jrkanji.h" >&5
9930 cat > conftest.$ac_ext <<EOF
9931 #line 9932 "configure"
9932 #include "confdefs.h"
9933 #include <canna/jrkanji.h>
9935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9936 { (eval echo configure:9937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9938 if test -z "$ac_err"; then
9940 eval "ac_cv_header_$ac_safe=yes"
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9946 eval "ac_cv_header_$ac_safe=no"
9949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9950 echo "$ac_t""yes" 1>&6
9951 canna_includes_found=yes
9953 echo "$ac_t""no" 1>&6
9956 if test "$canna_includes_found" != "yes"; then
9957 c_switch_site="$save_c_switch_site"
9962 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9963 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9964 echo "configure:9965: checking for canna/RK.h" >&5
9966 cat > conftest.$ac_ext <<EOF
9967 #line 9968 "configure"
9968 #include "confdefs.h"
9969 #include <canna/RK.h>
9971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9972 { (eval echo configure:9973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9974 if test -z "$ac_err"; then
9976 eval "ac_cv_header_$ac_safe=yes"
9979 echo "configure: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9982 eval "ac_cv_header_$ac_safe=no"
9985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9986 echo "$ac_t""yes" 1>&6
9989 echo "$ac_t""no" 1>&6
9993 test -z "$with_canna" && {
9994 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9995 echo "configure:9996: checking for RkBgnBun in -lRKC" >&5
9996 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9998 xe_check_libs=" -lRKC "
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 /* Override any gcc2 internal prototype to avoid an error. */
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10011 if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10013 eval "ac_cv_lib_$ac_lib_var=yes"
10015 echo "configure: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10018 eval "ac_cv_lib_$ac_lib_var=no"
10023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10024 echo "$ac_t""yes" 1>&6
10027 echo "$ac_t""no" 1>&6
10032 test -z "$with_canna" && {
10033 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10034 echo "configure:10035: checking for jrKanjiControl in -lcanna" >&5
10035 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10037 xe_check_libs=" -lcanna "
10038 cat > conftest.$ac_ext <<EOF
10039 #line 10040 "configure"
10040 #include "confdefs.h"
10041 /* Override any gcc2 internal prototype to avoid an error. */
10042 /* We use char because int might match the return type of a gcc2
10043 builtin and then its argument prototype would still apply. */
10044 char jrKanjiControl();
10050 if { (eval echo configure:10051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10052 eval "ac_cv_lib_$ac_lib_var=yes"
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10057 eval "ac_cv_lib_$ac_lib_var=no"
10062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10063 echo "$ac_t""yes" 1>&6
10066 echo "$ac_t""no" 1>&6
10071 test -z "$with_canna" && with_canna=yes
10072 if test "$with_canna" = "yes"; then
10073 { test "$extra_verbose" = "yes" && cat << \EOF
10074 Defining HAVE_CANNA
10076 cat >> confdefs.h <<\EOF
10077 #define HAVE_CANNA 1
10081 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10082 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10083 echo " xemacs will be linked with \"mule-canna.o\""
10087 else for feature in xim canna wnn; do
10088 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10089 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10091 eval "with_${feature}=no"
10095 if test "$need_motif" = "yes" ; then
10096 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10098 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10099 echo "configure:10100: checking for layout_object_getvalue in -li18n" >&5
10100 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10102 xe_check_libs=" -li18n "
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10106 /* Override any gcc2 internal prototype to avoid an error. */
10107 /* We use char because int might match the return type of a gcc2
10108 builtin and then its argument prototype would still apply. */
10109 char layout_object_getvalue();
10112 layout_object_getvalue()
10115 if { (eval echo configure:10116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10117 eval "ac_cv_lib_$ac_lib_var=yes"
10119 echo "configure: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10122 eval "ac_cv_lib_$ac_lib_var=no"
10127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10128 echo "$ac_t""yes" 1>&6
10129 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10131 echo "$ac_t""no" 1>&6
10136 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10137 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10138 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10140 runpath="" runpath_dirs=""
10141 if test -n "$LD_RUN_PATH"; then
10142 runpath="$LD_RUN_PATH"
10143 elif test "$GCC" = "yes"; then
10144 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10145 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10146 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10147 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10148 case "$arg" in P,* | -L* | -R* )
10149 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10151 xe_runpath_dir="$dir"
10152 test "$xe_runpath_dir" != "/lib" -a \
10153 "$xe_runpath_dir" != "/usr/lib" -a \
10154 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10155 eval "$xe_add_unique_runpath_dir"
10160 ld_switch_run="$ld_switch_run_save"
10163 for arg in $ld_switch_site $ld_switch_x_site; do
10164 case "$arg" in -L*) {
10165 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10166 test "$xe_runpath_dir" != "/lib" -a \
10167 "$xe_runpath_dir" != "/usr/lib" -a \
10168 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10169 eval "$xe_add_unique_runpath_dir"
10172 if test "$opsys $need_motif" = "sol2 yes"; then
10173 xe_runpath_dir="/opt/SUNWdt/lib";
10174 eval "$xe_add_unique_runpath_dir";
10177 if test -n "$runpath"; then
10178 ld_switch_run="${dash_r}${runpath}"
10180 if test "$GCC" = "yes"; then
10181 set x $ld_switch_run; shift; ld_switch_run=""
10182 while test -n "$1"; do
10184 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10185 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10187 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10192 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10198 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
10200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10201 echo "configure:10202: checking for $ac_func" >&5
10203 cat > conftest.$ac_ext <<EOF
10204 #line 10205 "configure"
10205 #include "confdefs.h"
10206 /* System header to define __stub macros and hopefully few prototypes,
10207 which can conflict with char $ac_func(); below. */
10208 #include <assert.h>
10209 /* Override any gcc2 internal prototype to avoid an error. */
10210 /* We use char because int might match the return type of a gcc2
10211 builtin and then its argument prototype would still apply. */
10216 /* The GNU C library defines this for functions which it implements
10217 to always fail with ENOSYS. Some functions are actually named
10218 something starting with __ and the normal name is an alias. */
10219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10227 if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10229 eval "ac_cv_func_$ac_func=yes"
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10234 eval "ac_cv_func_$ac_func=no"
10238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10239 echo "$ac_t""yes" 1>&6
10240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10241 { test "$extra_verbose" = "yes" && cat << EOF
10242 Defining $ac_tr_func
10244 cat >> confdefs.h <<EOF
10245 #define $ac_tr_func 1
10250 echo "$ac_t""no" 1>&6
10255 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10258 echo "configure:10259: checking for $ac_func" >&5
10260 cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10263 /* System header to define __stub macros and hopefully few prototypes,
10264 which can conflict with char $ac_func(); below. */
10265 #include <assert.h>
10266 /* Override any gcc2 internal prototype to avoid an error. */
10267 /* We use char because int might match the return type of a gcc2
10268 builtin and then its argument prototype would still apply. */
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10286 eval "ac_cv_func_$ac_func=yes"
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10291 eval "ac_cv_func_$ac_func=no"
10295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10296 echo "$ac_t""yes" 1>&6
10297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10298 { test "$extra_verbose" = "yes" && cat << EOF
10299 Defining $ac_tr_func
10301 cat >> confdefs.h <<EOF
10302 #define $ac_tr_func 1
10307 echo "$ac_t""no" 1>&6
10312 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10313 echo "configure:10314: checking for openpty" >&5
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10318 /* System header to define __stub macros and hopefully few prototypes,
10319 which can conflict with char openpty(); below. */
10320 #include <assert.h>
10321 /* Override any gcc2 internal prototype to avoid an error. */
10322 /* We use char because int might match the return type of a gcc2
10323 builtin and then its argument prototype would still apply. */
10328 /* The GNU C library defines this for functions which it implements
10329 to always fail with ENOSYS. Some functions are actually named
10330 something starting with __ and the normal name is an alias. */
10331 #if defined (__stub_openpty) || defined (__stub___openpty)
10339 if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10341 eval "ac_cv_func_openpty=yes"
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10346 eval "ac_cv_func_openpty=no"
10350 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10351 echo "$ac_t""yes" 1>&6
10354 echo "$ac_t""no" 1>&6
10357 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10358 echo "configure:10359: checking for openpty in -lutil" >&5
10359 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10361 xe_check_libs=" -lutil "
10362 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10365 /* Override any gcc2 internal prototype to avoid an error. */
10366 /* We use char because int might match the return type of a gcc2
10367 builtin and then its argument prototype would still apply. */
10374 if { (eval echo configure:10375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10376 eval "ac_cv_lib_$ac_lib_var=yes"
10378 echo "configure: failed program was:" >&5
10379 cat conftest.$ac_ext >&5
10381 eval "ac_cv_lib_$ac_lib_var=no"
10386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10387 echo "$ac_t""yes" 1>&6
10388 have_openpty=yes need_libutil=yes
10390 echo "$ac_t""no" 1>&6
10396 if test "$have_openpty" = "yes"; then
10397 { test "$extra_verbose" = "yes" && cat << \EOF
10398 Defining HAVE_OPENPTY
10400 cat >> confdefs.h <<\EOF
10401 #define HAVE_OPENPTY 1
10405 for ac_hdr in pty.h libutil.h
10407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10409 echo "configure:10410: checking for $ac_hdr" >&5
10411 cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10417 { (eval echo configure:10418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10419 if test -z "$ac_err"; then
10421 eval "ac_cv_header_$ac_safe=yes"
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10427 eval "ac_cv_header_$ac_safe=no"
10430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10431 echo "$ac_t""yes" 1>&6
10432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10433 { test "$extra_verbose" = "yes" && cat << EOF
10434 Defining $ac_tr_hdr
10436 cat >> confdefs.h <<EOF
10437 #define $ac_tr_hdr 1
10442 echo "$ac_t""no" 1>&6
10446 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
10449 for ac_hdr in stropts.h
10451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10453 echo "configure:10454: checking for $ac_hdr" >&5
10455 cat > conftest.$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10461 { (eval echo configure:10462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10463 if test -z "$ac_err"; then
10465 eval "ac_cv_header_$ac_safe=yes"
10468 echo "configure: failed program was:" >&5
10469 cat conftest.$ac_ext >&5
10471 eval "ac_cv_header_$ac_safe=no"
10474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10475 echo "$ac_t""yes" 1>&6
10476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10477 { test "$extra_verbose" = "yes" && cat << EOF
10478 Defining $ac_tr_hdr
10480 cat >> confdefs.h <<EOF
10481 #define $ac_tr_hdr 1
10486 echo "$ac_t""no" 1>&6
10490 if test "$ac_cv_header_stropts_h" = "yes"; then
10491 for ac_func in isastream
10493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10494 echo "configure:10495: checking for $ac_func" >&5
10496 cat > conftest.$ac_ext <<EOF
10497 #line 10498 "configure"
10498 #include "confdefs.h"
10499 /* System header to define __stub macros and hopefully few prototypes,
10500 which can conflict with char $ac_func(); below. */
10501 #include <assert.h>
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 /* We use char because int might match the return type of a gcc2
10504 builtin and then its argument prototype would still apply. */
10509 /* The GNU C library defines this for functions which it implements
10510 to always fail with ENOSYS. Some functions are actually named
10511 something starting with __ and the normal name is an alias. */
10512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10520 if { (eval echo configure:10521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10522 eval "ac_cv_func_$ac_func=yes"
10524 echo "configure: failed program was:" >&5
10525 cat conftest.$ac_ext >&5
10527 eval "ac_cv_func_$ac_func=no"
10531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10532 echo "$ac_t""yes" 1>&6
10533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10534 { test "$extra_verbose" = "yes" && cat << EOF
10535 Defining $ac_tr_func
10537 cat >> confdefs.h <<EOF
10538 #define $ac_tr_func 1
10543 echo "$ac_t""no" 1>&6
10547 for ac_hdr in strtio.h
10549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10551 echo "configure:10552: checking for $ac_hdr" >&5
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure"
10555 #include "confdefs.h"
10558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10559 { (eval echo configure:10560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10561 if test -z "$ac_err"; then
10563 eval "ac_cv_header_$ac_safe=yes"
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 eval "ac_cv_header_$ac_safe=no"
10572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10573 echo "$ac_t""yes" 1>&6
10574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10575 { test "$extra_verbose" = "yes" && cat << EOF
10576 Defining $ac_tr_hdr
10578 cat >> confdefs.h <<EOF
10579 #define $ac_tr_hdr 1
10584 echo "$ac_t""no" 1>&6
10589 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
10590 echo " xemacs will be linked with \"realpath.o\""
10593 for ac_func in getloadavg
10595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10596 echo "configure:10597: checking for $ac_func" >&5
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10601 /* System header to define __stub macros and hopefully few prototypes,
10602 which can conflict with char $ac_func(); below. */
10603 #include <assert.h>
10604 /* Override any gcc2 internal prototype to avoid an error. */
10605 /* We use char because int might match the return type of a gcc2
10606 builtin and then its argument prototype would still apply. */
10611 /* The GNU C library defines this for functions which it implements
10612 to always fail with ENOSYS. Some functions are actually named
10613 something starting with __ and the normal name is an alias. */
10614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10622 if { (eval echo configure:10623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10624 eval "ac_cv_func_$ac_func=yes"
10626 echo "configure: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10629 eval "ac_cv_func_$ac_func=no"
10633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10634 echo "$ac_t""yes" 1>&6
10635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10636 { test "$extra_verbose" = "yes" && cat << EOF
10637 Defining $ac_tr_func
10639 cat >> confdefs.h <<EOF
10640 #define $ac_tr_func 1
10645 echo "$ac_t""no" 1>&6
10650 if test "$ac_cv_func_getloadavg" = "yes"; then
10651 for ac_hdr in sys/loadavg.h
10653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10655 echo "configure:10656: checking for $ac_hdr" >&5
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10663 { (eval echo configure:10664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10665 if test -z "$ac_err"; then
10667 eval "ac_cv_header_$ac_safe=yes"
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10673 eval "ac_cv_header_$ac_safe=no"
10676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10677 echo "$ac_t""yes" 1>&6
10678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10679 { test "$extra_verbose" = "yes" && cat << EOF
10680 Defining $ac_tr_hdr
10682 cat >> confdefs.h <<EOF
10683 #define $ac_tr_hdr 1
10688 echo "$ac_t""no" 1>&6
10693 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10694 echo " xemacs will be linked with \"getloadavg.o\""
10698 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10699 echo "configure:10700: checking for kstat_open in -lkstat" >&5
10700 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10702 xe_check_libs=" -lkstat "
10703 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10706 /* Override any gcc2 internal prototype to avoid an error. */
10707 /* We use char because int might match the return type of a gcc2
10708 builtin and then its argument prototype would still apply. */
10715 if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10717 eval "ac_cv_lib_$ac_lib_var=yes"
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10722 eval "ac_cv_lib_$ac_lib_var=no"
10727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10728 echo "$ac_t""yes" 1>&6
10729 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10731 { test "$extra_verbose" = "yes" && cat << EOF
10732 Defining $ac_tr_lib
10734 cat >> confdefs.h <<EOF
10735 #define $ac_tr_lib 1
10739 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10742 echo "$ac_t""no" 1>&6
10746 for ac_hdr in kstat.h
10748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10750 echo "configure:10751: checking for $ac_hdr" >&5
10752 cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure"
10754 #include "confdefs.h"
10757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10758 { (eval echo configure:10759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10760 if test -z "$ac_err"; then
10762 eval "ac_cv_header_$ac_safe=yes"
10765 echo "configure: failed program was:" >&5
10766 cat conftest.$ac_ext >&5
10768 eval "ac_cv_header_$ac_safe=no"
10771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10772 echo "$ac_t""yes" 1>&6
10773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10774 { test "$extra_verbose" = "yes" && cat << EOF
10775 Defining $ac_tr_hdr
10777 cat >> confdefs.h <<EOF
10778 #define $ac_tr_hdr 1
10783 echo "$ac_t""no" 1>&6
10789 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10790 echo "configure:10791: checking for kvm_read in -lkvm" >&5
10791 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10793 xe_check_libs=" -lkvm "
10794 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure"
10796 #include "confdefs.h"
10797 /* Override any gcc2 internal prototype to avoid an error. */
10798 /* We use char because int might match the return type of a gcc2
10799 builtin and then its argument prototype would still apply. */
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10808 eval "ac_cv_lib_$ac_lib_var=yes"
10810 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10813 eval "ac_cv_lib_$ac_lib_var=no"
10818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10819 echo "$ac_t""yes" 1>&6
10820 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10821 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10822 { test "$extra_verbose" = "yes" && cat << EOF
10823 Defining $ac_tr_lib
10825 cat >> confdefs.h <<EOF
10826 #define $ac_tr_lib 1
10830 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10833 echo "$ac_t""no" 1>&6
10839 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10840 echo "configure:10841: checking whether netdb declares h_errno" >&5
10841 cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10849 if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10851 echo "$ac_t""yes" 1>&6
10852 { test "$extra_verbose" = "yes" && cat << \EOF
10853 Defining HAVE_H_ERRNO
10855 cat >> confdefs.h <<\EOF
10856 #define HAVE_H_ERRNO 1
10861 echo "configure: failed program was:" >&5
10862 cat conftest.$ac_ext >&5
10864 echo "$ac_t""no" 1>&6
10868 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10869 echo "configure:10870: checking for sigsetjmp" >&5
10870 cat > conftest.$ac_ext <<EOF
10871 #line 10872 "configure"
10872 #include "confdefs.h"
10873 #include <setjmp.h>
10875 sigjmp_buf bar; sigsetjmp (bar, 0);
10878 if { (eval echo configure:10879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10880 echo "$ac_t""yes" 1>&6
10881 { test "$extra_verbose" = "yes" && cat << \EOF
10882 Defining HAVE_SIGSETJMP
10884 cat >> confdefs.h <<\EOF
10885 #define HAVE_SIGSETJMP 1
10890 echo "configure: failed program was:" >&5
10891 cat conftest.$ac_ext >&5
10893 echo "$ac_t""no" 1>&6
10897 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10898 echo "configure:10899: checking whether localtime caches TZ" >&5
10900 if test "$ac_cv_func_tzset" = "yes"; then
10901 cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10906 # include <stdlib.h>
10908 extern char **environ;
10912 for (to = from = environ; (*to = *from); from++)
10913 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10916 char TZ_GMT0[] = "TZ=GMT0";
10917 char TZ_PST8[] = "TZ=PST8";
10920 time_t now = time ((time_t *) 0);
10921 int hour_GMT0, hour_unset;
10922 if (putenv (TZ_GMT0) != 0)
10924 hour_GMT0 = localtime (&now)->tm_hour;
10926 hour_unset = localtime (&now)->tm_hour;
10927 if (putenv (TZ_PST8) != 0)
10929 if (localtime (&now)->tm_hour == hour_GMT0)
10932 if (localtime (&now)->tm_hour != hour_unset)
10937 if { (eval echo configure:10938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10939 emacs_cv_localtime_cache=no
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10945 emacs_cv_localtime_cache=yes
10949 # If we lack tzset, report that localtime does not cache TZ,
10950 # since we can't invalidate the cache if we don't have tzset.
10951 emacs_cv_localtime_cache=no
10953 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10954 if test $emacs_cv_localtime_cache = yes; then
10955 { test "$extra_verbose" = "yes" && cat << \EOF
10956 Defining LOCALTIME_CACHE
10958 cat >> confdefs.h <<\EOF
10959 #define LOCALTIME_CACHE 1
10965 if test "$HAVE_TIMEVAL" = "yes"; then
10966 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10967 echo "configure:10968: checking whether gettimeofday accepts one or two arguments" >&5
10968 cat > conftest.$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10972 #ifdef TIME_WITH_SYS_TIME
10973 #include <sys/time.h>
10976 #ifdef HAVE_SYS_TIME_H
10977 #include <sys/time.h>
10985 struct timeval time;
10986 gettimeofday (&time, 0);
10990 if { (eval echo configure:10991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10992 echo "$ac_t""two" 1>&6
10994 echo "configure: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10997 echo "$ac_t""one" 1>&6
10998 { test "$extra_verbose" = "yes" && cat << \EOF
10999 Defining GETTIMEOFDAY_ONE_ARGUMENT
11001 cat >> confdefs.h <<\EOF
11002 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11011 echo $ac_n "checking for inline""... $ac_c" 1>&6
11012 echo "configure:11013: checking for inline" >&5
11015 for ac_kw in inline __inline__ __inline; do
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11024 if { (eval echo configure:11025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11026 ac_cv_c_inline=$ac_kw; break
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11035 echo "$ac_t""$ac_cv_c_inline" 1>&6
11036 case "$ac_cv_c_inline" in
11038 no) { test "$extra_verbose" = "yes" && cat << \EOF
11041 cat >> confdefs.h <<\EOF
11046 *) { test "$extra_verbose" = "yes" && cat << EOF
11047 Defining inline = $ac_cv_c_inline
11049 cat >> confdefs.h <<EOF
11050 #define inline $ac_cv_c_inline
11056 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11057 echo " xemacs will be linked with \"inline.o\""
11061 if test "$__DECC" != "yes"; then
11062 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11063 # for constant arguments. Useless!
11064 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11065 echo "configure:11066: checking for working alloca.h" >&5
11067 cat > conftest.$ac_ext <<EOF
11068 #line 11069 "configure"
11069 #include "confdefs.h"
11070 #include <alloca.h>
11072 char *p = alloca(2 * sizeof(int));
11075 if { (eval echo configure:11076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11077 ac_cv_header_alloca_h=yes
11079 echo "configure: failed program was:" >&5
11080 cat conftest.$ac_ext >&5
11082 ac_cv_header_alloca_h=no
11086 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11087 if test $ac_cv_header_alloca_h = yes; then
11088 { test "$extra_verbose" = "yes" && cat << \EOF
11089 Defining HAVE_ALLOCA_H
11091 cat >> confdefs.h <<\EOF
11092 #define HAVE_ALLOCA_H 1
11098 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11099 echo "configure:11100: checking for alloca" >&5
11101 cat > conftest.$ac_ext <<EOF
11102 #line 11103 "configure"
11103 #include "confdefs.h"
11106 # define alloca __builtin_alloca
11109 # include <malloc.h>
11110 # define alloca _alloca
11113 # include <alloca.h>
11118 # ifndef alloca /* predefined by HP cc +Olibcalls */
11127 char *p = (char *) alloca(1);
11130 if { (eval echo configure:11131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11132 ac_cv_func_alloca_works=yes
11134 echo "configure: failed program was:" >&5
11135 cat conftest.$ac_ext >&5
11137 ac_cv_func_alloca_works=no
11141 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11142 if test $ac_cv_func_alloca_works = yes; then
11143 { test "$extra_verbose" = "yes" && cat << \EOF
11144 Defining HAVE_ALLOCA
11146 cat >> confdefs.h <<\EOF
11147 #define HAVE_ALLOCA 1
11153 if test $ac_cv_func_alloca_works = no; then
11154 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11155 # that cause trouble. Some versions do not even contain alloca or
11156 # contain a buggy version. If you still want to use their alloca,
11157 # use ar to extract alloca.o from them instead of compiling alloca.c.
11158 ALLOCA=alloca.${ac_objext}
11159 { test "$extra_verbose" = "yes" && cat << \EOF
11162 cat >> confdefs.h <<\EOF
11168 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11169 echo "configure:11170: checking whether alloca needs Cray hooks" >&5
11171 cat > conftest.$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11174 #if defined(CRAY) && ! defined(CRAY2)
11181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11182 egrep "webecray" >/dev/null 2>&1; then
11192 echo "$ac_t""$ac_cv_os_cray" 1>&6
11193 if test $ac_cv_os_cray = yes; then
11194 for ac_func in _getb67 GETB67 getb67; do
11195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11196 echo "configure:11197: checking for $ac_func" >&5
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 /* System header to define __stub macros and hopefully few prototypes,
11202 which can conflict with char $ac_func(); below. */
11203 #include <assert.h>
11204 /* Override any gcc2 internal prototype to avoid an error. */
11205 /* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11211 /* The GNU C library defines this for functions which it implements
11212 to always fail with ENOSYS. Some functions are actually named
11213 something starting with __ and the normal name is an alias. */
11214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11224 eval "ac_cv_func_$ac_func=yes"
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11229 eval "ac_cv_func_$ac_func=no"
11233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11234 echo "$ac_t""yes" 1>&6
11235 { test "$extra_verbose" = "yes" && cat << EOF
11236 Defining CRAY_STACKSEG_END = $ac_func
11238 cat >> confdefs.h <<EOF
11239 #define CRAY_STACKSEG_END $ac_func
11245 echo "$ac_t""no" 1>&6
11251 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11252 echo "configure:11253: checking stack direction for C alloca" >&5
11254 cat > conftest.$ac_ext <<EOF
11255 #line 11256 "configure"
11256 #include "confdefs.h"
11257 find_stack_direction ()
11259 static char *addr = 0;
11264 return find_stack_direction ();
11267 return (&dummy > addr) ? 1 : -1;
11271 exit (find_stack_direction() < 0);
11274 if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11276 ac_cv_c_stack_direction=1
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11282 ac_cv_c_stack_direction=-1
11286 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11287 { test "$extra_verbose" = "yes" && cat << EOF
11288 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11290 cat >> confdefs.h <<EOF
11291 #define STACK_DIRECTION $ac_cv_c_stack_direction
11297 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11298 echo " xemacs will be linked with \"$ALLOCA\""
11302 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11303 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11304 echo "configure:11305: checking for vfork.h" >&5
11306 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11312 { (eval echo configure:11313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11314 if test -z "$ac_err"; then
11316 eval "ac_cv_header_$ac_safe=yes"
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11322 eval "ac_cv_header_$ac_safe=no"
11325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11326 echo "$ac_t""yes" 1>&6
11327 { test "$extra_verbose" = "yes" && cat << \EOF
11328 Defining HAVE_VFORK_H
11330 cat >> confdefs.h <<\EOF
11331 #define HAVE_VFORK_H 1
11336 echo "$ac_t""no" 1>&6
11339 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11340 echo "configure:11341: checking for working vfork" >&5
11342 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11345 /* Thanks to Paul Eggert for this test. */
11347 #include <sys/types.h>
11348 #include <sys/stat.h>
11349 #ifdef HAVE_UNISTD_H
11350 #include <unistd.h>
11352 #ifdef HAVE_VFORK_H
11355 /* On some sparc systems, changes by the child to local and incoming
11356 argument registers are propagated back to the parent.
11357 The compiler is told about this with #include <vfork.h>,
11358 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11359 Test for this by using a static variable whose address
11360 is put into a register that is clobbered by the vfork. */
11363 sparc_address_test (int arg)
11365 sparc_address_test (arg) int arg;
11368 static pid_t child;
11383 pid_t parent = getpid ();
11386 sparc_address_test ();
11391 /* Here is another test for sparc vfork register problems.
11392 This test uses lots of local variables, at least
11393 as many local variables as main has allocated so far
11394 including compiler temporaries. 4 locals are enough for
11395 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11396 A buggy compiler should reuse the register of parent
11397 for one of the local variables, since it will think that
11398 parent can't possibly be used any more in this routine.
11399 Assigning to the local variable will thus munge parent
11400 in the parent process. */
11402 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11403 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11404 /* Convince the compiler that p..p7 are live; otherwise, it might
11405 use the same hardware register for all 8 local variables. */
11406 if (p != p1 || p != p2 || p != p3 || p != p4
11407 || p != p5 || p != p6 || p != p7)
11410 /* On some systems (e.g. IRIX 3.3),
11411 vfork doesn't separate parent from child file descriptors.
11412 If the child closes a descriptor before it execs or exits,
11413 this munges the parent's descriptor as well.
11414 Test for this by closing stdout in the child. */
11415 _exit(close(fileno(stdout)) != 0);
11420 while (wait(&status) != child)
11423 /* Was there some problem with vforking? */
11426 /* Did the child fail? (This shouldn't happen.) */
11429 /* Did the vfork/compiler bug occur? */
11430 || parent != getpid()
11432 /* Did the file descriptor bug occur? */
11433 || fstat(fileno(stdout), &st) != 0
11438 if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11440 ac_cv_func_vfork_works=yes
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11446 ac_cv_func_vfork_works=no
11450 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
11451 if test $ac_cv_func_vfork_works = no; then
11452 { test "$extra_verbose" = "yes" && cat << \EOF
11453 Defining vfork = fork
11455 cat >> confdefs.h <<\EOF
11463 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11464 echo "configure:11465: checking for working strcoll" >&5
11466 cat > conftest.$ac_ext <<EOF
11467 #line 11468 "configure"
11468 #include "confdefs.h"
11469 #include <string.h>
11472 exit (strcoll ("abc", "def") >= 0 ||
11473 strcoll ("ABC", "DEF") >= 0 ||
11474 strcoll ("123", "456") >= 0);
11477 if { (eval echo configure:11478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11479 ac_cv_func_strcoll_works=yes
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11485 ac_cv_func_strcoll_works=no
11489 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
11490 if test $ac_cv_func_strcoll_works = yes; then
11491 { test "$extra_verbose" = "yes" && cat << \EOF
11492 Defining HAVE_STRCOLL
11494 cat >> confdefs.h <<\EOF
11495 #define HAVE_STRCOLL 1
11502 for ac_func in getpgrp
11504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11505 echo "configure:11506: checking for $ac_func" >&5
11507 cat > conftest.$ac_ext <<EOF
11508 #line 11509 "configure"
11509 #include "confdefs.h"
11510 /* System header to define __stub macros and hopefully few prototypes,
11511 which can conflict with char $ac_func(); below. */
11512 #include <assert.h>
11513 /* Override any gcc2 internal prototype to avoid an error. */
11514 /* We use char because int might match the return type of a gcc2
11515 builtin and then its argument prototype would still apply. */
11520 /* The GNU C library defines this for functions which it implements
11521 to always fail with ENOSYS. Some functions are actually named
11522 something starting with __ and the normal name is an alias. */
11523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11531 if { (eval echo configure:11532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11533 eval "ac_cv_func_$ac_func=yes"
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11538 eval "ac_cv_func_$ac_func=no"
11542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11543 echo "$ac_t""yes" 1>&6
11544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11545 { test "$extra_verbose" = "yes" && cat << EOF
11546 Defining $ac_tr_func
11548 cat >> confdefs.h <<EOF
11549 #define $ac_tr_func 1
11554 echo "$ac_t""no" 1>&6
11558 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11559 echo "configure:11560: checking whether getpgrp takes no argument" >&5
11561 cat > conftest.$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11566 * If this system has a BSD-style getpgrp(),
11567 * which takes a pid argument, exit unsuccessfully.
11569 * Snarfed from Chet Ramey's bash pgrp.c test program
11572 #include <sys/types.h>
11575 int pg1, pg2, pg3, pg4;
11576 int ng, np, s, child;
11583 pg3 = getpgrp(pid);
11587 * If all of these values are the same, it's pretty sure that
11588 * we're on a system that ignores getpgrp's first argument.
11590 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
11596 else if (child == 0) {
11599 * If this is Sys V, this will not work; pgrp will be
11600 * set to np because setpgrp just changes a pgrp to be
11601 * the same as the pid.
11604 ng = getpgrp(0); /* Same result for Sys V and BSD */
11617 if { (eval echo configure:11618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11619 ac_cv_func_getpgrp_void=yes
11622 echo "configure: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11625 ac_cv_func_getpgrp_void=no
11630 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
11631 if test $ac_cv_func_getpgrp_void = yes; then
11632 { test "$extra_verbose" = "yes" && cat << \EOF
11633 Defining GETPGRP_VOID
11635 cat >> confdefs.h <<\EOF
11636 #define GETPGRP_VOID 1
11643 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11644 echo "configure:11645: checking for working mmap" >&5
11645 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11646 cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11650 #include <unistd.h>
11652 #include <sys/mman.h>
11654 #ifndef MAP_VARIABLE
11655 #define MAP_VARIABLE 0
11659 #define MAP_FAILED -1
11662 int main (int argc, char *argv[])
11666 #ifndef MAP_ANONYMOUS
11667 fd = open ("/dev/zero", O_RDWR);
11670 #define MAP_ANONYMOUS 0
11672 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
11673 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
11674 fd, 0) != (void *) MAP_FAILED)
11676 perror ("conftest: mmap failed");
11680 if { (eval echo configure:11681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11685 echo "configure: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11690 rm -fr conftest* ;;
11692 echo "$ac_t""$have_mmap" 1>&6
11693 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11696 cat >> confdefs.h <<\EOF
11697 #define HAVE_MMAP 1
11702 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11703 if test "$rel_alloc $have_mmap" = "default yes"; then
11704 if test "$doug_lea_malloc" = "yes"; then
11705 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11706 echo "configure:11707: checking for M_MMAP_THRESHOLD" >&5
11707 cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11710 #include <malloc.h>
11713 #ifndef M_MMAP_THRESHOLD
11714 #error No M_MMAP_THRESHOLD :-(
11715 !@+$%^&*_)(_ - unlikely to compile...
11720 if { (eval echo configure:11721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11722 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11724 echo "configure: failed program was:" >&5
11725 cat conftest.$ac_ext >&5
11727 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11734 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11737 cat >> confdefs.h <<\EOF
11738 #define REL_ALLOC 1
11743 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11744 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11745 echo "configure:11746: checking for termios.h" >&5
11747 cat > conftest.$ac_ext <<EOF
11748 #line 11749 "configure"
11749 #include "confdefs.h"
11750 #include <termios.h>
11752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11753 { (eval echo configure:11754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11755 if test -z "$ac_err"; then
11757 eval "ac_cv_header_$ac_safe=yes"
11760 echo "configure: failed program was:" >&5
11761 cat conftest.$ac_ext >&5
11763 eval "ac_cv_header_$ac_safe=no"
11766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11767 echo "$ac_t""yes" 1>&6
11768 { test "$extra_verbose" = "yes" && cat << \EOF
11769 Defining HAVE_TERMIOS
11771 cat >> confdefs.h <<\EOF
11772 #define HAVE_TERMIOS 1
11776 { test "$extra_verbose" = "yes" && cat << \EOF
11777 Defining SIGNALS_VIA_CHARACTERS
11779 cat >> confdefs.h <<\EOF
11780 #define SIGNALS_VIA_CHARACTERS 1
11784 { test "$extra_verbose" = "yes" && cat << \EOF
11787 cat >> confdefs.h <<\EOF
11788 #define NO_TERMIO 1
11793 echo "$ac_t""no" 1>&6
11794 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11795 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11796 echo "configure:11797: checking for termio.h" >&5
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 #include <termio.h>
11803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11804 { (eval echo configure:11805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11806 if test -z "$ac_err"; then
11808 eval "ac_cv_header_$ac_safe=yes"
11811 echo "configure: failed program was:" >&5
11812 cat conftest.$ac_ext >&5
11814 eval "ac_cv_header_$ac_safe=no"
11817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11818 echo "$ac_t""yes" 1>&6
11819 { test "$extra_verbose" = "yes" && cat << \EOF
11820 Defining HAVE_TERMIO
11822 cat >> confdefs.h <<\EOF
11823 #define HAVE_TERMIO 1
11828 echo "$ac_t""no" 1>&6
11835 echo $ac_n "checking for socket""... $ac_c" 1>&6
11836 echo "configure:11837: checking for socket" >&5
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 /* System header to define __stub macros and hopefully few prototypes,
11842 which can conflict with char socket(); below. */
11843 #include <assert.h>
11844 /* Override any gcc2 internal prototype to avoid an error. */
11845 /* We use char because int might match the return type of a gcc2
11846 builtin and then its argument prototype would still apply. */
11851 /* The GNU C library defines this for functions which it implements
11852 to always fail with ENOSYS. Some functions are actually named
11853 something starting with __ and the normal name is an alias. */
11854 #if defined (__stub_socket) || defined (__stub___socket)
11862 if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11864 eval "ac_cv_func_socket=yes"
11866 echo "configure: failed program was:" >&5
11867 cat conftest.$ac_ext >&5
11869 eval "ac_cv_func_socket=no"
11873 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11874 echo "$ac_t""yes" 1>&6
11875 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11876 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11877 echo "configure:11878: checking for netinet/in.h" >&5
11879 cat > conftest.$ac_ext <<EOF
11880 #line 11881 "configure"
11881 #include "confdefs.h"
11882 #include <netinet/in.h>
11884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11885 { (eval echo configure:11886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11887 if test -z "$ac_err"; then
11889 eval "ac_cv_header_$ac_safe=yes"
11892 echo "configure: failed program was:" >&5
11893 cat conftest.$ac_ext >&5
11895 eval "ac_cv_header_$ac_safe=no"
11898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11899 echo "$ac_t""yes" 1>&6
11900 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11901 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11902 echo "configure:11903: checking for arpa/inet.h" >&5
11904 cat > conftest.$ac_ext <<EOF
11905 #line 11906 "configure"
11906 #include "confdefs.h"
11907 #include <arpa/inet.h>
11909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11910 { (eval echo configure:11911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11912 if test -z "$ac_err"; then
11914 eval "ac_cv_header_$ac_safe=yes"
11917 echo "configure: failed program was:" >&5
11918 cat conftest.$ac_ext >&5
11920 eval "ac_cv_header_$ac_safe=no"
11923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11924 echo "$ac_t""yes" 1>&6
11926 { test "$extra_verbose" = "yes" && cat << \EOF
11927 Defining HAVE_SOCKETS
11929 cat >> confdefs.h <<\EOF
11930 #define HAVE_SOCKETS 1
11934 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11935 echo "configure:11936: checking "for sun_len member in struct sockaddr_un"" >&5
11936 cat > conftest.$ac_ext <<EOF
11937 #line 11938 "configure"
11938 #include "confdefs.h"
11940 #include <sys/types.h>
11941 #include <sys/socket.h>
11942 #include <sys/un.h>
11945 static struct sockaddr_un x; x.sun_len = 1;
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11950 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11951 Defining HAVE_SOCKADDR_SUN_LEN
11953 cat >> confdefs.h <<\EOF
11954 #define HAVE_SOCKADDR_SUN_LEN 1
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11962 echo "$ac_t""no" 1>&6
11965 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11966 echo "configure:11967: checking "for ip_mreq struct in netinet/in.h"" >&5
11967 cat > conftest.$ac_ext <<EOF
11968 #line 11969 "configure"
11969 #include "confdefs.h"
11971 #include <sys/types.h>
11972 #include <netinet/in.h>
11975 static struct ip_mreq x;
11978 if { (eval echo configure:11979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11980 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11981 Defining HAVE_MULTICAST
11983 cat >> confdefs.h <<\EOF
11984 #define HAVE_MULTICAST 1
11989 echo "configure: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11992 echo "$ac_t""no" 1>&6
11996 echo "$ac_t""no" 1>&6
12000 echo "$ac_t""no" 1>&6
12004 echo "$ac_t""no" 1>&6
12008 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12009 echo "configure:12010: checking for msgget" >&5
12011 cat > conftest.$ac_ext <<EOF
12012 #line 12013 "configure"
12013 #include "confdefs.h"
12014 /* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char msgget(); below. */
12016 #include <assert.h>
12017 /* Override any gcc2 internal prototype to avoid an error. */
12018 /* We use char because int might match the return type of a gcc2
12019 builtin and then its argument prototype would still apply. */
12024 /* The GNU C library defines this for functions which it implements
12025 to always fail with ENOSYS. Some functions are actually named
12026 something starting with __ and the normal name is an alias. */
12027 #if defined (__stub_msgget) || defined (__stub___msgget)
12035 if { (eval echo configure:12036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12037 eval "ac_cv_func_msgget=yes"
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12042 eval "ac_cv_func_msgget=no"
12046 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12047 echo "$ac_t""yes" 1>&6
12048 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12049 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12050 echo "configure:12051: checking for sys/ipc.h" >&5
12052 cat > conftest.$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12055 #include <sys/ipc.h>
12057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12058 { (eval echo configure:12059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12060 if test -z "$ac_err"; then
12062 eval "ac_cv_header_$ac_safe=yes"
12065 echo "configure: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12068 eval "ac_cv_header_$ac_safe=no"
12071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12072 echo "$ac_t""yes" 1>&6
12073 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12074 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12075 echo "configure:12076: checking for sys/msg.h" >&5
12077 cat > conftest.$ac_ext <<EOF
12078 #line 12079 "configure"
12079 #include "confdefs.h"
12080 #include <sys/msg.h>
12082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12083 { (eval echo configure:12084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12085 if test -z "$ac_err"; then
12087 eval "ac_cv_header_$ac_safe=yes"
12090 echo "configure: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12093 eval "ac_cv_header_$ac_safe=no"
12096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12097 echo "$ac_t""yes" 1>&6
12098 { test "$extra_verbose" = "yes" && cat << \EOF
12099 Defining HAVE_SYSVIPC
12101 cat >> confdefs.h <<\EOF
12102 #define HAVE_SYSVIPC 1
12107 echo "$ac_t""no" 1>&6
12111 echo "$ac_t""no" 1>&6
12115 echo "$ac_t""no" 1>&6
12119 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12120 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12121 echo "configure:12122: checking for dirent.h" >&5
12123 cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure"
12125 #include "confdefs.h"
12126 #include <dirent.h>
12128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12129 { (eval echo configure:12130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12131 if test -z "$ac_err"; then
12133 eval "ac_cv_header_$ac_safe=yes"
12136 echo "configure: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12139 eval "ac_cv_header_$ac_safe=no"
12142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12143 echo "$ac_t""yes" 1>&6
12144 { test "$extra_verbose" = "yes" && cat << \EOF
12145 Defining SYSV_SYSTEM_DIR
12147 cat >> confdefs.h <<\EOF
12148 #define SYSV_SYSTEM_DIR 1
12153 echo "$ac_t""no" 1>&6
12154 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12155 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12156 echo "configure:12157: checking for sys/dir.h" >&5
12158 cat > conftest.$ac_ext <<EOF
12159 #line 12160 "configure"
12160 #include "confdefs.h"
12161 #include <sys/dir.h>
12163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12164 { (eval echo configure:12165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12166 if test -z "$ac_err"; then
12168 eval "ac_cv_header_$ac_safe=yes"
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12174 eval "ac_cv_header_$ac_safe=no"
12177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12178 echo "$ac_t""yes" 1>&6
12181 echo "$ac_t""no" 1>&6
12182 { test "$extra_verbose" = "yes" && cat << \EOF
12183 Defining NONSYSTEM_DIR_LIBRARY
12185 cat >> confdefs.h <<\EOF
12186 #define NONSYSTEM_DIR_LIBRARY 1
12195 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12196 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12197 echo "configure:12198: checking for nlist.h" >&5
12199 cat > conftest.$ac_ext <<EOF
12200 #line 12201 "configure"
12201 #include "confdefs.h"
12204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12205 { (eval echo configure:12206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12207 if test -z "$ac_err"; then
12209 eval "ac_cv_header_$ac_safe=yes"
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12215 eval "ac_cv_header_$ac_safe=no"
12218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12219 echo "$ac_t""yes" 1>&6
12220 { test "$extra_verbose" = "yes" && cat << \EOF
12221 Defining NLIST_STRUCT
12223 cat >> confdefs.h <<\EOF
12224 #define NLIST_STRUCT 1
12229 echo "$ac_t""no" 1>&6
12234 echo "checking "for sound support"" 1>&6
12235 echo "configure:12236: checking "for sound support"" >&5
12236 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12238 if test "$with_native_sound" != "no"; then
12239 if test -n "$native_sound_lib"; then
12240 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12241 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12242 echo "configure:12243: checking for multimedia/audio_device.h" >&5
12244 cat > conftest.$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12247 #include <multimedia/audio_device.h>
12249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12250 { (eval echo configure:12251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12252 if test -z "$ac_err"; then
12254 eval "ac_cv_header_$ac_safe=yes"
12257 echo "configure: failed program was:" >&5
12258 cat conftest.$ac_ext >&5
12260 eval "ac_cv_header_$ac_safe=no"
12263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12264 echo "$ac_t""yes" 1>&6
12265 sound_found=yes sound_cflags=""
12266 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12267 echo " xemacs will be linked with \"sunplay.o\""
12270 echo "$ac_t""no" 1>&6
12275 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12277 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12278 echo " xemacs will be linked with \"sunplay.o\""
12280 if test -d "/usr/demo/SOUND/include"
12281 then sound_cflags="-I/usr/demo/SOUND/include"
12282 else sound_cflags="-I/usr/demo/SOUND"
12284 if test -z "$native_sound_lib" ; then
12285 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12286 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12287 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12292 if test -z "$sound_found"; then
12293 case "$canonical" in
12295 if test -z "$native_sound_lib"; then
12297 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12298 echo "configure:12299: checking for ALopenport in -laudio" >&5
12299 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12301 xe_check_libs=" -laudio "
12302 cat > conftest.$ac_ext <<EOF
12303 #line 12304 "configure"
12304 #include "confdefs.h"
12305 /* Override any gcc2 internal prototype to avoid an error. */
12306 /* We use char because int might match the return type of a gcc2
12307 builtin and then its argument prototype would still apply. */
12314 if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12316 eval "ac_cv_lib_$ac_lib_var=yes"
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12321 eval "ac_cv_lib_$ac_lib_var=no"
12326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12327 echo "$ac_t""yes" 1>&6
12328 native_sound_lib="-laudio"
12330 echo "$ac_t""no" 1>&6
12335 if test -n "$native_sound_lib"; then
12336 sound_found=yes sound_cflags=""
12337 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12338 echo " xemacs will be linked with \"sgiplay.o\""
12342 if test -z "$native_sound_lib"; then
12344 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12345 echo "configure:12346: checking for AOpenAudio in -lAlib" >&5
12346 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12348 xe_check_libs=" -lAlib "
12349 cat > conftest.$ac_ext <<EOF
12350 #line 12351 "configure"
12351 #include "confdefs.h"
12352 /* Override any gcc2 internal prototype to avoid an error. */
12353 /* We use char because int might match the return type of a gcc2
12354 builtin and then its argument prototype would still apply. */
12361 if { (eval echo configure:12362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12363 eval "ac_cv_lib_$ac_lib_var=yes"
12365 echo "configure: failed program was:" >&5
12366 cat conftest.$ac_ext >&5
12368 eval "ac_cv_lib_$ac_lib_var=no"
12373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12374 echo "$ac_t""yes" 1>&6
12375 native_sound_lib="-lAlib"
12377 echo "$ac_t""no" 1>&6
12382 if test -n "$native_sound_lib"; then
12384 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12385 echo " xemacs will be linked with \"hpplay.o\""
12387 if test "$GCC" = "yes" # Kludge city
12388 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12389 else sound_cflags="+e -I/usr/audio/examples"
12395 if test -z "$sound_found"; then
12396 for dir in "machine" "sys" "linux"; do
12397 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12398 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12399 echo "configure:12400: checking for ${dir}/soundcard.h" >&5
12401 cat > conftest.$ac_ext <<EOF
12402 #line 12403 "configure"
12403 #include "confdefs.h"
12404 #include <${dir}/soundcard.h>
12406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12407 { (eval echo configure:12408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12409 if test -z "$ac_err"; then
12411 eval "ac_cv_header_$ac_safe=yes"
12414 echo "configure: failed program was:" >&5
12415 cat conftest.$ac_ext >&5
12417 eval "ac_cv_header_$ac_safe=no"
12420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12421 echo "$ac_t""yes" 1>&6
12424 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
12425 echo " xemacs will be linked with \"linuxplay.o\""
12427 { test "$extra_verbose" = "yes" && cat << EOF
12428 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
12430 cat >> confdefs.h <<EOF
12431 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
12437 echo "$ac_t""no" 1>&6
12443 if test -z "$sound_found"; then
12444 if test "$with_msw" = "yes"; then
12450 test "$sound_found" = "yes" && with_native_sound=yes
12453 if test "$with_native_sound" = "yes"; then
12454 { test "$extra_verbose" = "yes" && cat << \EOF
12455 Defining HAVE_NATIVE_SOUND
12457 cat >> confdefs.h <<\EOF
12458 #define HAVE_NATIVE_SOUND 1
12462 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
12465 if test "$with_nas_sound" != "no"; then
12466 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12467 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12468 echo "configure:12469: checking for audio/audiolib.h" >&5
12470 cat > conftest.$ac_ext <<EOF
12471 #line 12472 "configure"
12472 #include "confdefs.h"
12473 #include <audio/audiolib.h>
12475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12476 { (eval echo configure:12477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12478 if test -z "$ac_err"; then
12480 eval "ac_cv_header_$ac_safe=yes"
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12486 eval "ac_cv_header_$ac_safe=no"
12489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12490 echo "$ac_t""yes" 1>&6
12493 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12494 echo "configure:12495: checking for AuOpenServer in -laudio" >&5
12495 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12497 xe_check_libs=" -laudio "
12498 cat > conftest.$ac_ext <<EOF
12499 #line 12500 "configure"
12500 #include "confdefs.h"
12501 /* Override any gcc2 internal prototype to avoid an error. */
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12504 char AuOpenServer();
12510 if { (eval echo configure:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12512 eval "ac_cv_lib_$ac_lib_var=yes"
12514 echo "configure: failed program was:" >&5
12515 cat conftest.$ac_ext >&5
12517 eval "ac_cv_lib_$ac_lib_var=no"
12522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12523 echo "$ac_t""yes" 1>&6
12526 echo "$ac_t""no" 1>&6
12531 echo "$ac_t""no" 1>&6
12534 if test "$have_nas_sound" = "yes"; then
12536 { test "$extra_verbose" = "yes" && cat << \EOF
12537 Defining HAVE_NAS_SOUND
12539 cat >> confdefs.h <<\EOF
12540 #define HAVE_NAS_SOUND 1
12544 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12545 echo " xemacs will be linked with \"nas.o\""
12547 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12548 cat > conftest.$ac_ext <<EOF
12549 #line 12550 "configure"
12550 #include "confdefs.h"
12551 #include <audio/Xtutil.h>
12553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12554 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12558 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
12559 Defining NAS_NO_ERROR_JUMP
12561 cat >> confdefs.h <<\EOF
12562 #define NAS_NO_ERROR_JUMP 1
12570 test "$with_nas_sound" = "yes" && \
12571 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12576 if test "$with_esd_sound" != "no"; then
12577 # Extract the first word of "esd-config", so it can be a program name with args.
12578 set dummy esd-config; ac_word=$2
12579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12580 echo "configure:12581: checking for $ac_word" >&5
12582 if test -n "$have_esd_config"; then
12583 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12587 for ac_dir in $ac_dummy; do
12588 test -z "$ac_dir" && ac_dir=.
12589 if test -f $ac_dir/$ac_word; then
12590 ac_cv_prog_have_esd_config="yes"
12595 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
12597 have_esd_config="$ac_cv_prog_have_esd_config"
12598 if test -n "$have_esd_config"; then
12599 echo "$ac_t""$have_esd_config" 1>&6
12601 echo "$ac_t""no" 1>&6
12604 if test "$have_esd_config" = "yes"; then
12605 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12606 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
12607 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12608 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12609 echo "configure:12610: checking for esd_play_stream" >&5
12611 cat > conftest.$ac_ext <<EOF
12612 #line 12613 "configure"
12613 #include "confdefs.h"
12614 /* System header to define __stub macros and hopefully few prototypes,
12615 which can conflict with char esd_play_stream(); below. */
12616 #include <assert.h>
12617 /* Override any gcc2 internal prototype to avoid an error. */
12618 /* We use char because int might match the return type of a gcc2
12619 builtin and then its argument prototype would still apply. */
12620 char esd_play_stream();
12624 /* The GNU C library defines this for functions which it implements
12625 to always fail with ENOSYS. Some functions are actually named
12626 something starting with __ and the normal name is an alias. */
12627 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
12635 if { (eval echo configure:12636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12637 eval "ac_cv_func_esd_play_stream=yes"
12639 echo "configure: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12642 eval "ac_cv_func_esd_play_stream=no"
12646 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
12647 echo "$ac_t""yes" 1>&6
12650 echo "$ac_t""no" 1>&6
12651 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
12656 if test "$have_esd_sound" = "yes"; then
12659 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
12660 echo " xemacs will be linked with \"esd.o\""
12662 { test "$extra_verbose" = "yes" && cat << \EOF
12663 Defining HAVE_ESD_SOUND
12665 cat >> confdefs.h <<\EOF
12666 #define HAVE_ESD_SOUND 1
12671 test "$with_esd_sound" = "yes" && \
12672 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12677 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12678 echo " xemacs will be linked with \"miscplay.o\""
12682 test -z "$with_tty" && with_tty=yes
12684 if test "$with_tty" = "yes" ; then
12685 echo "checking for TTY-related features" 1>&6
12686 echo "configure:12687: checking for TTY-related features" >&5
12687 { test "$extra_verbose" = "yes" && cat << \EOF
12690 cat >> confdefs.h <<\EOF
12695 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
12696 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\""
12699 if test -z "$with_ncurses"; then
12701 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12702 echo "configure:12703: checking for tgetent in -lncurses" >&5
12703 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12705 xe_check_libs=" -lncurses "
12706 cat > conftest.$ac_ext <<EOF
12707 #line 12708 "configure"
12708 #include "confdefs.h"
12709 /* Override any gcc2 internal prototype to avoid an error. */
12710 /* We use char because int might match the return type of a gcc2
12711 builtin and then its argument prototype would still apply. */
12718 if { (eval echo configure:12719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12720 eval "ac_cv_lib_$ac_lib_var=yes"
12722 echo "configure: failed program was:" >&5
12723 cat conftest.$ac_ext >&5
12725 eval "ac_cv_lib_$ac_lib_var=no"
12730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12731 echo "$ac_t""yes" 1>&6
12734 echo "$ac_t""no" 1>&6
12740 if test "$with_ncurses" = "yes"; then
12741 { test "$extra_verbose" = "yes" && cat << \EOF
12742 Defining HAVE_NCURSES
12744 cat >> confdefs.h <<\EOF
12745 #define HAVE_NCURSES 1
12749 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12750 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12751 echo "configure:12752: checking for ncurses/curses.h" >&5
12753 cat > conftest.$ac_ext <<EOF
12754 #line 12755 "configure"
12755 #include "confdefs.h"
12756 #include <ncurses/curses.h>
12758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12759 { (eval echo configure:12760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12761 if test -z "$ac_err"; then
12763 eval "ac_cv_header_$ac_safe=yes"
12766 echo "configure: failed program was:" >&5
12767 cat conftest.$ac_ext >&5
12769 eval "ac_cv_header_$ac_safe=no"
12772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12773 echo "$ac_t""yes" 1>&6
12774 curses_h_file=ncurses/curses.h
12776 echo "$ac_t""no" 1>&6
12779 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12780 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12781 echo "configure:12782: checking for ncurses/term.h" >&5
12783 cat > conftest.$ac_ext <<EOF
12784 #line 12785 "configure"
12785 #include "confdefs.h"
12786 #include <ncurses/term.h>
12788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12789 { (eval echo configure:12790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12791 if test -z "$ac_err"; then
12793 eval "ac_cv_header_$ac_safe=yes"
12796 echo "configure: failed program was:" >&5
12797 cat conftest.$ac_ext >&5
12799 eval "ac_cv_header_$ac_safe=no"
12802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12803 echo "$ac_t""yes" 1>&6
12804 term_h_file=ncurses/term.h
12806 echo "$ac_t""no" 1>&6
12809 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12810 echo " xemacs will be linked with \"terminfo.o\""
12812 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12814 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12815 save_c_switch_site="$c_switch_site"
12816 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12817 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12818 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12819 echo "configure:12820: checking for ncurses/curses.h" >&5
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 #include <ncurses/curses.h>
12826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12827 { (eval echo configure:12828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12829 if test -z "$ac_err"; then
12831 eval "ac_cv_header_$ac_safe=yes"
12834 echo "configure: failed program was:" >&5
12835 cat conftest.$ac_ext >&5
12837 eval "ac_cv_header_$ac_safe=no"
12840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12841 echo "$ac_t""yes" 1>&6
12842 curses_h_file=ncurses/curses.h
12844 echo "$ac_t""no" 1>&6
12847 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12848 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12849 else c_switch_site="$save_c_switch_site"
12852 else if test "$have_terminfo" = "yes"; then
12853 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12854 echo " xemacs will be linked with \"terminfo.o\""
12856 if test -n "$libs_termcap"; then
12857 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12859 for lib in curses termlib termcap; do
12861 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12862 echo "configure:12863: checking for tgetent in -l$lib" >&5
12863 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12865 xe_check_libs=" -l$lib "
12866 cat > conftest.$ac_ext <<EOF
12867 #line 12868 "configure"
12868 #include "confdefs.h"
12869 /* Override any gcc2 internal prototype to avoid an error. */
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12878 if { (eval echo configure:12879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12880 eval "ac_cv_lib_$ac_lib_var=yes"
12882 echo "configure: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12885 eval "ac_cv_lib_$ac_lib_var=no"
12890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12891 echo "$ac_t""yes" 1>&6
12892 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12894 echo "$ac_t""no" 1>&6
12900 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12901 echo " xemacs will be linked with \"tparam.o\""
12903 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12904 if test -n "$libs_termcap"; then
12905 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12908 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12909 echo "configure:12910: checking for tgetent in -lcurses" >&5
12910 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12912 xe_check_libs=" -lcurses "
12913 cat > conftest.$ac_ext <<EOF
12914 #line 12915 "configure"
12915 #include "confdefs.h"
12916 /* Override any gcc2 internal prototype to avoid an error. */
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12925 if { (eval echo configure:12926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12927 eval "ac_cv_lib_$ac_lib_var=yes"
12929 echo "configure: failed program was:" >&5
12930 cat conftest.$ac_ext >&5
12932 eval "ac_cv_lib_$ac_lib_var=no"
12937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12938 echo "$ac_t""yes" 1>&6
12939 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12941 echo "$ac_t""no" 1>&6
12942 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12943 echo "configure:12944: checking for tgetent in -ltermcap" >&5
12944 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12946 xe_check_libs=" -ltermcap "
12947 cat > conftest.$ac_ext <<EOF
12948 #line 12949 "configure"
12949 #include "confdefs.h"
12950 /* Override any gcc2 internal prototype to avoid an error. */
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12959 if { (eval echo configure:12960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12961 eval "ac_cv_lib_$ac_lib_var=yes"
12963 echo "configure: failed program was:" >&5
12964 cat conftest.$ac_ext >&5
12966 eval "ac_cv_lib_$ac_lib_var=no"
12971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12972 echo "$ac_t""yes" 1>&6
12973 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12975 echo "$ac_t""no" 1>&6
12976 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12977 echo " xemacs will be linked with \"termcap.o\""
12988 { test "$extra_verbose" = "yes" && cat << EOF
12989 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
12991 cat >> confdefs.h <<EOF
12992 #define CURSES_H_FILE "${curses_h_file-curses.h}"
12996 { test "$extra_verbose" = "yes" && cat << EOF
12997 Defining TERM_H_FILE = "${term_h_file-term.h}"
12999 cat >> confdefs.h <<EOF
13000 #define TERM_H_FILE "${term_h_file-term.h}"
13005 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13006 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13007 echo "configure:13008: checking for gpm.h" >&5
13009 cat > conftest.$ac_ext <<EOF
13010 #line 13011 "configure"
13011 #include "confdefs.h"
13014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13015 { (eval echo configure:13016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13017 if test -z "$ac_err"; then
13019 eval "ac_cv_header_$ac_safe=yes"
13022 echo "configure: failed program was:" >&5
13023 cat conftest.$ac_ext >&5
13025 eval "ac_cv_header_$ac_safe=no"
13028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13029 echo "$ac_t""yes" 1>&6
13032 echo "$ac_t""no" 1>&6
13036 test -z "$with_gpm" && {
13037 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13038 echo "configure:13039: checking for Gpm_Open in -lgpm" >&5
13039 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13041 xe_check_libs=" -lgpm "
13042 cat > conftest.$ac_ext <<EOF
13043 #line 13044 "configure"
13044 #include "confdefs.h"
13045 /* Override any gcc2 internal prototype to avoid an error. */
13046 /* We use char because int might match the return type of a gcc2
13047 builtin and then its argument prototype would still apply. */
13054 if { (eval echo configure:13055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13056 eval "ac_cv_lib_$ac_lib_var=yes"
13058 echo "configure: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13061 eval "ac_cv_lib_$ac_lib_var=no"
13066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13067 echo "$ac_t""yes" 1>&6
13070 echo "$ac_t""no" 1>&6
13075 if test "$with_gpm" = "yes"; then
13076 { test "$extra_verbose" = "yes" && cat << \EOF
13079 cat >> confdefs.h <<\EOF
13084 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13085 echo " xemacs will be linked with \"gpmevent.o\""
13087 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13090 else for feature in ncurses gpm; do
13091 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13092 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13094 eval "with_${feature}=no"
13097 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13098 echo " xemacs will be linked with \"event-unixoid.o\""
13102 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13103 != "no no no" && echo "checking for database support" 1>&6
13104 echo "configure:13105: checking for database support" >&5
13106 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13107 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13108 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13109 echo "configure:13110: checking for ndbm.h" >&5
13111 cat > conftest.$ac_ext <<EOF
13112 #line 13113 "configure"
13113 #include "confdefs.h"
13116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13117 { (eval echo configure:13118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13119 if test -z "$ac_err"; then
13121 eval "ac_cv_header_$ac_safe=yes"
13124 echo "configure: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13127 eval "ac_cv_header_$ac_safe=no"
13130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13131 echo "$ac_t""yes" 1>&6
13134 echo "$ac_t""no" 1>&6
13136 test "$with_database_gdbm" = "yes" -o \
13137 "$with_database_dbm" = "yes" && \
13138 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13139 with_database_gdbm=no with_database_dbm=no
13144 if test "$with_database_gdbm" != "no"; then
13146 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13147 echo "configure:13148: checking for dbm_open in -lgdbm" >&5
13148 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13150 xe_check_libs=" -lgdbm "
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 /* Override any gcc2 internal prototype to avoid an error. */
13155 /* We use char because int might match the return type of a gcc2
13156 builtin and then its argument prototype would still apply. */
13163 if { (eval echo configure:13164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13165 eval "ac_cv_lib_$ac_lib_var=yes"
13167 echo "configure: failed program was:" >&5
13168 cat conftest.$ac_ext >&5
13170 eval "ac_cv_lib_$ac_lib_var=no"
13175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13176 echo "$ac_t""yes" 1>&6
13177 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13179 echo "$ac_t""no" 1>&6
13180 if test "$with_database_gdbm" = "yes"; then
13181 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13183 with_database_gdbm=no
13189 if test "$with_database_dbm" != "no"; then
13190 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13191 echo "configure:13192: checking for dbm_open" >&5
13193 cat > conftest.$ac_ext <<EOF
13194 #line 13195 "configure"
13195 #include "confdefs.h"
13196 /* System header to define __stub macros and hopefully few prototypes,
13197 which can conflict with char dbm_open(); below. */
13198 #include <assert.h>
13199 /* Override any gcc2 internal prototype to avoid an error. */
13200 /* We use char because int might match the return type of a gcc2
13201 builtin and then its argument prototype would still apply. */
13206 /* The GNU C library defines this for functions which it implements
13207 to always fail with ENOSYS. Some functions are actually named
13208 something starting with __ and the normal name is an alias. */
13209 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13217 if { (eval echo configure:13218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13219 eval "ac_cv_func_dbm_open=yes"
13221 echo "configure: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13224 eval "ac_cv_func_dbm_open=no"
13228 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13229 echo "$ac_t""yes" 1>&6
13230 with_database_dbm=yes libdbm=
13232 echo "$ac_t""no" 1>&6
13235 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13236 echo "configure:13237: checking for dbm_open in -ldbm" >&5
13237 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13239 xe_check_libs=" -ldbm "
13240 cat > conftest.$ac_ext <<EOF
13241 #line 13242 "configure"
13242 #include "confdefs.h"
13243 /* Override any gcc2 internal prototype to avoid an error. */
13244 /* We use char because int might match the return type of a gcc2
13245 builtin and then its argument prototype would still apply. */
13252 if { (eval echo configure:13253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13254 eval "ac_cv_lib_$ac_lib_var=yes"
13256 echo "configure: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13259 eval "ac_cv_lib_$ac_lib_var=no"
13264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13265 echo "$ac_t""yes" 1>&6
13266 with_database_dbm=yes libdbm=-ldbm
13268 echo "$ac_t""no" 1>&6
13269 test "$with_database_dbm" = "yes" && \
13270 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13271 with_database_dbm=no
13279 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13280 test "$with_database_gdbm" = "yes" -o \
13281 "$with_database_dbm" = "yes" && \
13282 { test "$extra_verbose" = "yes" && cat << \EOF
13285 cat >> confdefs.h <<\EOF
13291 if test "$with_database_berkdb" != "no"; then
13292 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13293 echo "configure:13294: checking for Berkeley db.h" >&5
13294 for header in "db/db.h" "db.h"; do
13295 cat > conftest.$ac_ext <<EOF
13296 #line 13297 "configure"
13297 #include "confdefs.h"
13299 #include <stdlib.h>
13300 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13301 #ifdef HAVE_INTTYPES_H
13302 #define __BIT_TYPES_DEFINED__
13303 #include <inttypes.h>
13304 typedef uint8_t u_int8_t;
13305 typedef uint16_t u_int16_t;
13306 typedef uint32_t u_int32_t;
13307 #ifdef WE_DONT_NEED_QUADS
13308 typedef uint64_t u_int64_t;
13318 if { (eval echo configure:13319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13320 db_h_file="$header"; break
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13327 if test -z "$db_h_file"
13328 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13329 else echo "$ac_t""$db_h_file" 1>&6
13332 if test "$with_database_berkdb" != "no"; then
13333 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13334 echo "configure:13335: checking for Berkeley DB version" >&5
13335 cat > conftest.$ac_ext <<EOF
13336 #line 13337 "configure"
13337 #include "confdefs.h"
13338 #include <$db_h_file>
13339 #if DB_VERSION_MAJOR > 1
13344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13345 egrep "yes" >/dev/null 2>&1; then
13347 cat > conftest.$ac_ext <<EOF
13348 #line 13349 "configure"
13349 #include "confdefs.h"
13350 #include <$db_h_file>
13351 #if DB_VERSION_MAJOR > 2
13356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13357 egrep "yes" >/dev/null 2>&1; then
13359 echo "$ac_t""3" 1>&6; dbfunc=db_create
13363 echo "$ac_t""2" 1>&6; dbfunc=db_open
13370 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13374 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13375 echo "configure:13376: checking for $dbfunc" >&5
13377 cat > conftest.$ac_ext <<EOF
13378 #line 13379 "configure"
13379 #include "confdefs.h"
13380 /* System header to define __stub macros and hopefully few prototypes,
13381 which can conflict with char $dbfunc(); below. */
13382 #include <assert.h>
13383 /* Override any gcc2 internal prototype to avoid an error. */
13384 /* We use char because int might match the return type of a gcc2
13385 builtin and then its argument prototype would still apply. */
13390 /* The GNU C library defines this for functions which it implements
13391 to always fail with ENOSYS. Some functions are actually named
13392 something starting with __ and the normal name is an alias. */
13393 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13401 if { (eval echo configure:13402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13403 eval "ac_cv_func_$dbfunc=yes"
13405 echo "configure: failed program was:" >&5
13406 cat conftest.$ac_ext >&5
13408 eval "ac_cv_func_$dbfunc=no"
13412 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13413 echo "$ac_t""yes" 1>&6
13414 with_database_berkdb=yes need_libdb=no
13416 echo "$ac_t""no" 1>&6
13419 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13420 echo "configure:13421: checking for $dbfunc in -ldb" >&5
13421 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13423 xe_check_libs=" -ldb "
13424 cat > conftest.$ac_ext <<EOF
13425 #line 13426 "configure"
13426 #include "confdefs.h"
13427 /* Override any gcc2 internal prototype to avoid an error. */
13428 /* We use char because int might match the return type of a gcc2
13429 builtin and then its argument prototype would still apply. */
13436 if { (eval echo configure:13437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13438 eval "ac_cv_lib_$ac_lib_var=yes"
13440 echo "configure: failed program was:" >&5
13441 cat conftest.$ac_ext >&5
13443 eval "ac_cv_lib_$ac_lib_var=no"
13448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13449 echo "$ac_t""yes" 1>&6
13450 with_database_berkdb=yes need_libdb=yes
13452 echo "$ac_t""no" 1>&6
13460 if test "$with_database_berkdb" = "yes"; then
13461 { test "$extra_verbose" = "yes" && cat << EOF
13462 Defining DB_H_FILE = "$db_h_file"
13464 cat >> confdefs.h <<EOF
13465 #define DB_H_FILE "$db_h_file"
13469 { test "$extra_verbose" = "yes" && cat << \EOF
13470 Defining HAVE_BERKELEY_DB
13472 cat >> confdefs.h <<\EOF
13473 #define HAVE_BERKELEY_DB 1
13477 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
13478 else with_database_berkdb=no
13482 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13483 != "no no no"; then
13484 { test "$extra_verbose" = "yes" && cat << \EOF
13485 Defining HAVE_DATABASE
13487 cat >> confdefs.h <<\EOF
13488 #define HAVE_DATABASE 1
13492 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
13493 echo " xemacs will be linked with \"database.o\""
13497 if test "$with_socks" = "yes"; then
13499 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13500 echo "configure:13501: checking for SOCKSinit in -lsocks" >&5
13501 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13503 xe_check_libs=" -lsocks "
13504 cat > conftest.$ac_ext <<EOF
13505 #line 13506 "configure"
13506 #include "confdefs.h"
13507 /* Override any gcc2 internal prototype to avoid an error. */
13508 /* We use char because int might match the return type of a gcc2
13509 builtin and then its argument prototype would still apply. */
13516 if { (eval echo configure:13517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13518 eval "ac_cv_lib_$ac_lib_var=yes"
13520 echo "configure: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13523 eval "ac_cv_lib_$ac_lib_var=no"
13528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13529 echo "$ac_t""yes" 1>&6
13530 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13531 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13532 { test "$extra_verbose" = "yes" && cat << EOF
13533 Defining $ac_tr_lib
13535 cat >> confdefs.h <<EOF
13536 #define $ac_tr_lib 1
13540 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
13543 echo "$ac_t""no" 1>&6
13547 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
13548 Defining HAVE_SOCKS
13550 cat >> confdefs.h <<\EOF
13551 #define HAVE_SOCKS 1
13557 if test "$usage_tracking" = "yes"; then
13558 { test "$extra_verbose" = "yes" && cat << \EOF
13559 Defining USAGE_TRACKING
13561 cat >> confdefs.h <<\EOF
13562 #define USAGE_TRACKING 1
13566 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13569 if test "$with_modules" != "no"; then
13570 echo "checking for module support" 1>&6
13571 echo "configure:13572: checking for module support" >&5
13573 if test "$with_msw" = "yes"; then
13576 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13577 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13578 echo "configure:13579: checking for dlfcn.h" >&5
13580 cat > conftest.$ac_ext <<EOF
13581 #line 13582 "configure"
13582 #include "confdefs.h"
13585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13586 { (eval echo configure:13587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13588 if test -z "$ac_err"; then
13590 eval "ac_cv_header_$ac_safe=yes"
13593 echo "configure: failed program was:" >&5
13594 cat conftest.$ac_ext >&5
13596 eval "ac_cv_header_$ac_safe=no"
13599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13600 echo "$ac_t""yes" 1>&6
13602 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13603 echo "configure:13604: checking for dlopen in -lc" >&5
13604 cat > conftest.$ac_ext <<EOF
13605 #line 13606 "configure"
13606 #include "confdefs.h"
13612 if { (eval echo configure:13613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13616 echo "configure: failed program was:" >&5
13617 cat conftest.$ac_ext >&5
13620 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13621 echo "configure:13622: checking for dlopen in -ldl" >&5
13622 ac_save_LIBS="$LIBS"
13624 cat > conftest.$ac_ext <<EOF
13625 #line 13626 "configure"
13626 #include "confdefs.h"
13632 if { (eval echo configure:13633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13636 echo "configure: failed program was:" >&5
13637 cat conftest.$ac_ext >&5
13639 LIBS="$ac_save_LIBS"
13646 echo "$ac_t""no" 1>&6
13649 if test -n "$have_dl"; then
13650 { test "$extra_verbose" = "yes" && cat << \EOF
13651 Defining HAVE_DLOPEN
13653 cat >> confdefs.h <<\EOF
13654 #define HAVE_DLOPEN 1
13660 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13661 echo "configure:13662: checking for shl_load in -ldld" >&5
13662 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13664 xe_check_libs=" -ldld "
13665 cat > conftest.$ac_ext <<EOF
13666 #line 13667 "configure"
13667 #include "confdefs.h"
13668 /* Override any gcc2 internal prototype to avoid an error. */
13669 /* We use char because int might match the return type of a gcc2
13670 builtin and then its argument prototype would still apply. */
13677 if { (eval echo configure:13678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13679 eval "ac_cv_lib_$ac_lib_var=yes"
13681 echo "configure: failed program was:" >&5
13682 cat conftest.$ac_ext >&5
13684 eval "ac_cv_lib_$ac_lib_var=no"
13689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13690 echo "$ac_t""yes" 1>&6
13691 libdl=dld have_dl=yes;
13692 { test "$extra_verbose" = "yes" && cat << \EOF
13693 Defining HAVE_SHL_LOAD
13695 cat >> confdefs.h <<\EOF
13696 #define HAVE_SHL_LOAD 1
13701 echo "$ac_t""no" 1>&6
13703 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13704 echo "configure:13705: checking for dld_init in -ldld" >&5
13705 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13707 xe_check_libs=" -ldld "
13708 cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure"
13710 #include "confdefs.h"
13711 /* Override any gcc2 internal prototype to avoid an error. */
13712 /* We use char because int might match the return type of a gcc2
13713 builtin and then its argument prototype would still apply. */
13720 if { (eval echo configure:13721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13722 eval "ac_cv_lib_$ac_lib_var=yes"
13724 echo "configure: failed program was:" >&5
13725 cat conftest.$ac_ext >&5
13727 eval "ac_cv_lib_$ac_lib_var=no"
13732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13733 echo "$ac_t""yes" 1>&6
13734 libdl=dld have_dl=yes;
13735 { test "$extra_verbose" = "yes" && cat << \EOF
13736 Defining HAVE_DLD_INIT
13738 cat >> confdefs.h <<\EOF
13739 #define HAVE_DLD_INIT 1
13744 echo "$ac_t""no" 1>&6
13753 if test -n "$have_dl"; then
13760 ld_dynamic_link_flags=
13762 xealias=$internal_configuration
13764 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13765 echo "configure:13766: checking how to build dynamic libraries for ${xehost}" >&5
13766 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13769 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13772 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13773 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13774 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13776 case "$xehost_os" in
13778 # AIX sometimes has problems with the GCC collect2 program. For some
13779 # reason, if we set the COLLECT_NAMES environment variable, the problems
13780 # vanish in a puff of smoke.
13781 if test "${COLLECT_NAMES+set}" != set; then
13783 export COLLECT_NAMES
13788 # Now see if the compiler is really GCC.
13789 if test "$GCC" = "yes"; then
13792 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13793 echo "configure:13794: checking checking whether we are using GNU C" >&5
13794 cat > conftest.$ac_ext <<EOF
13795 #line 13796 "configure"
13796 #include "confdefs.h"
13803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13804 egrep "yes" >/dev/null 2>&1; then
13813 echo "$ac_t""${XEGCC}" 1>&6
13816 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13817 echo "configure:13818: checking how to produce PIC code" >&5
13820 can_build_shared=yes
13821 if test "$XEGCC" = yes; then
13824 case "$xehost_os" in
13825 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13826 # PIC is the default for these OSes.
13829 aix3* | aix4* | os2*)
13830 # We can build DLLs from non-PIC.
13833 # FIXME: we need at least 68020 code to build shared libraries, but
13834 # adding the `-m68020' flag to GCC prevents building anything better,
13836 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13838 *cygwin* | *mingw* )
13839 # PIC is the default
13846 # PORTME Check for PIC flags for the system compiler.
13847 case "$xehost_os" in
13848 hpux9* | hpux1[0-9]*)
13849 # Is there a better link_static_flag that works with the bundled CC?
13856 # PIC (with -KPIC) is the default.
13860 # We can build DLLs from non-PIC.
13864 # All OSF/1 code is PIC.
13869 dll_cflags='-belf -Kpic'
13903 can_build_shared=no
13908 if test -n "$dll_cflags"; then
13909 echo "$ac_t""${dll_cflags}" 1>&6
13911 # Check to make sure the dll_cflags actually works.
13912 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13913 echo "configure:13914: checking if PIC flag ${dll_cflags} really works" >&5
13914 save_CFLAGS="$CFLAGS"
13915 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13916 cat > conftest.$ac_ext <<EOF
13917 #line 13918 "configure"
13918 #include "confdefs.h"
13924 if { (eval echo configure:13925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13927 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13928 # reports no error. So, we need to grep stderr for (Bundled).
13929 if grep '(Bundled)' config.log >/dev/null; then
13930 echo "$ac_t""no" 1>&6
13931 can_build_shared=no
13934 echo "$ac_t""yes" 1>&6
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13940 echo "$ac_t""no" 1>&6
13941 can_build_shared=no
13945 CFLAGS="$save_CFLAGS"
13947 echo "$ac_t""none" 1>&6
13950 if test "$can_build_shared" = "yes"; then
13954 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13955 echo "configure:13956: checking if C compiler can produce shared libraries" >&5
13956 if test "$XEGCC" = yes; then
13959 else # Not using GCC
13960 case "$xehost_os" in
13962 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13963 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
13966 freebsd2* | netbsd* | openbsd*)
13968 xcldf="${wl}-Bshareable"
13977 xcldf="${wl}-b ${wl}+s"
13980 irix5* | irix6* | osf3* | osf4*)
13981 xcldf="${wl}-shared"
13985 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
13991 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
13992 xldf="-assert pure-text -Bstatic"
13995 fi # End if if we are using gcc
13997 if test -n "$xcldf"; then
13998 save_LDFLAGS=$LDFLAGS
14000 save_xe_libs=$xe_libs
14001 LDFLAGS="$xcldf $LDFLAGS"
14004 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14005 cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14013 if { (eval echo configure:14014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14017 echo "configure: failed program was:" >&5
14018 cat conftest.$ac_ext >&5
14023 LDFLAGS=$save_LDFLAGS
14025 xe_libs=$save_xe_libs
14026 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14030 echo "$ac_t""${cc_produces_so}" 1>&6
14033 if test -z "$LTLD"; then
14035 if test "$XEGCC" = yes; then
14036 # Check if gcc -print-prog-name=ld gives a path.
14037 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14038 echo "configure:14039: checking for ld used by GCC" >&5
14039 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14041 # Accept absolute paths.
14043 if test -z "$LTLD"; then
14045 *gcc-lib*) LTLD="$CC"
14053 # If it fails, then pretend we aren't using GCC.
14057 # If it is relative, then search for the first ld in PATH.
14058 with_gnu_ld=unknown
14062 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14063 echo "configure:14064: checking for GNU ld" >&5
14066 if test -z "$LTLD"; then
14067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14068 for ac_dir in $PATH; do
14069 test -z "$ac_dir" && ac_dir=.
14070 if test -f "$ac_dir/$ac_prog"; then
14071 LTLD="$ac_dir/$ac_prog"
14072 # Check to see if the program is GNU ld. I'd rather use --version,
14073 # but apparently some GNU ld's only accept -v.
14074 # Break only if it was the GNU/non-GNU ld that we prefer.
14075 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14085 if test -n "$LTLD"; then
14086 echo "$ac_t""${LTLD}" 1>&6
14088 echo "$ac_t""no" 1>&6
14091 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14092 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14097 ld_dynamic_link_flags=
14099 # Check to see if it really is or isn't GNU ld.
14100 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14101 echo "configure:14102: checking if the linker is GNU ld" >&5
14102 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14103 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14108 echo "$ac_t""${xe_gnu_ld}" 1>&6
14110 case "$xehost_os" in
14111 amigaos* | sunos4*)
14112 # On these operating systems, we should treat GNU ld like the system ld.
14113 gnu_ld_acts_native=yes
14116 gnu_ld_acts_native=no
14120 if test "$cc_produces_so" = "yes"; then
14123 can_build_shared=yes
14126 # OK - only NOW do we futz about with ld.
14127 # See if the linker supports building shared libraries.
14128 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14129 echo "configure:14130: checking whether the linker supports shared libraries" >&5
14131 dll_ldflags=$LDFLAGS
14133 can_build_shared=yes
14134 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14135 # See if GNU ld supports shared libraries.
14136 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14138 dll_ldflags="-shared"
14144 # PORTME fill in a description of your system's linker (not GNU ld)
14145 case "$xehost_os" in
14155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14156 # support. Future versions do this automatically, but an explicit c++rt0.o
14157 # doesn't break anything, and helps significantly (at the cost of a little
14162 dll_post="/usr/lib/c++rt0.o"
14165 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14168 dll_ldflags="-Bshareable"
14171 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14173 dll_ldflags="-shared"
14187 # Tested with NetBSD 1.2 ld
14202 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14203 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14206 *gcc*) dll_ldflags="-shared"
14209 *) dll_ldflags="-G"
14215 if test "$XEGCC" = yes; then
14235 can_build_shared=no
14239 echo "$ac_t""${ld_shlibs}" 1>&6
14240 if test "$ld_shlibs" = "no"; then
14241 can_build_shared=no
14243 fi # End of if cc_produces_so = no
14246 if test "$xe_gnu_ld" = yes; then
14247 if test "$ld_shlibs" = yes; then
14248 ld_dynamic_link_flags="${wl}-export-dynamic"
14252 if test -z "$ld_dynamic_link_flags"; then
14253 case "$xehost_os" in
14255 ld_dynamic_link_flags=
14259 ld_dynamic_link_flags=
14263 ld_dynamic_link_flags=
14267 ld_dynamic_link_flags=
14271 ld_dynamic_link_flags=
14275 ld_dynamic_link_flags="${wl}-E"
14279 ld_dynamic_link_flags=
14283 ld_dynamic_link_flags=
14287 ld_dynamic_link_flags=
14291 ld_dynamic_link_flags=
14294 solaris2* | solaris7*)
14295 ld_dynamic_link_flags=
14298 sco3.2v5* | unixware* | sysv5* | sysv4*)
14299 ld_dynamic_link_flags="${wl}-Bexport"
14303 ld_dynamic_link_flags=
14307 ld_dynamic_link_flags=
14311 ld_dynamic_link_flags=
14315 fi # End of if -z ld_dynamic_link_flags
14316 fi # End of if test "$can_build_shared" = "yes"
14327 if test "$can_build_shared" = "yes"; then
14328 { test "$extra_verbose" = "yes" && cat << \EOF
14329 Defining HAVE_SHLIB
14331 cat >> confdefs.h <<\EOF
14332 #define HAVE_SHLIB 1
14336 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14337 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14339 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14340 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14341 for ac_func in dlerror _dlerror
14343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14344 echo "configure:14345: checking for $ac_func" >&5
14346 cat > conftest.$ac_ext <<EOF
14347 #line 14348 "configure"
14348 #include "confdefs.h"
14349 /* System header to define __stub macros and hopefully few prototypes,
14350 which can conflict with char $ac_func(); below. */
14351 #include <assert.h>
14352 /* Override any gcc2 internal prototype to avoid an error. */
14353 /* We use char because int might match the return type of a gcc2
14354 builtin and then its argument prototype would still apply. */
14359 /* The GNU C library defines this for functions which it implements
14360 to always fail with ENOSYS. Some functions are actually named
14361 something starting with __ and the normal name is an alias. */
14362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14370 if { (eval echo configure:14371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14372 eval "ac_cv_func_$ac_func=yes"
14374 echo "configure: failed program was:" >&5
14375 cat conftest.$ac_ext >&5
14377 eval "ac_cv_func_$ac_func=no"
14381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14382 echo "$ac_t""yes" 1>&6
14383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14384 { test "$extra_verbose" = "yes" && cat << EOF
14385 Defining $ac_tr_func
14387 cat >> confdefs.h <<EOF
14388 #define $ac_tr_func 1
14393 echo "$ac_t""no" 1>&6
14399 if test "$with_modules" = "yes"; then
14400 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14402 echo "configure: warning: "Module support cannot be provided."" 1>&2
14408 cat > conftest.$ac_ext <<EOF
14409 #line 14410 "configure"
14410 #include "confdefs.h"
14411 int main(int c,char *v[]){return 0;}
14413 if { (eval echo configure:14414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14418 echo "configure: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14423 echo "*** PANIC *** The C compiler can no longer build working executables."
14424 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
14425 echo "*** PANIC *** The most likely reason for this problem is that configure"
14426 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
14427 echo "*** PANIC *** found at run time."
14428 echo "*** PANIC ***"
14429 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
14430 echo "*** PANIC *** On other systems, try telling configure where to find the"
14431 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
14432 echo "*** PANIC ***"
14433 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
14434 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
14435 echo "*** PANIC *** on your system. Don't do that."
14440 if test "$win32_processes" = "yes"; then
14441 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
14442 echo " xemacs will be linked with \"process-nt.o\""
14445 { test "$extra_verbose" = "yes" && cat << \EOF
14446 Defining HAVE_UNIX_PROCESSES
14448 cat >> confdefs.h <<\EOF
14449 #define HAVE_UNIX_PROCESSES 1
14453 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
14454 echo " xemacs will be linked with \"process-unix.o\""
14461 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14466 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14471 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
14472 c_switch_general="$T"
14476 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14477 c_switch_window_system="$T"
14481 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14486 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
14487 ld_switch_general="$T"
14491 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14492 ld_switch_window_system="$T"
14496 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14501 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14502 ld_libs_general="$T"
14506 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
14507 ld_libs_window_system="$T"
14511 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14516 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14517 internal_makefile_list="Makefile.in"
14518 SUBDIR_MAKEFILES=''
14519 test -d lock || mkdir lock
14520 for dir in $MAKE_SUBDIR; do
14521 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
14522 test -d "$d" || mkdir "$d"; cd "$d"
14524 * ) test -d "$dir" || mkdir "$dir" ;;
14528 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14529 SUBDIR_MAKEFILES="$T"
14533 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14534 internal_makefile_list="$T"
14541 for dir in src/s src/m; do
14542 if test ! -d "$dir" ; then
14543 echo Making symbolic link to "$srcdir/$dir"
14544 ${LN_S} "$srcdir/$dir" "$dir"
14548 if test "$extra_verbose" = "yes"; then
14550 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
14555 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
14556 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
14557 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
14560 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
14561 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
14562 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
14565 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
14566 test "$extra_verbose" = "yes" && echo "creating TAGS"
14568 $srcdir/TAGS,include" > "TAGS"
14571 if test "$__SUNPRO_C" = "yes"; then
14572 test "$extra_verbose" = "yes" && echo "creating .sbinit"
14573 ( echo "# For use with Sun WorkShop's Source browser."
14574 echo "# See sbquery(1) and sbinit(4) for more information"
14575 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14603 *\$* ) eval "PREFIX=$PREFIX" ;;
14611 EXEC_PREFIX=$exec_prefix
14613 case "$EXEC_PREFIX" in
14614 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
14625 *\$* ) eval "INFODIR=$INFODIR" ;;
14635 case "$INFOPATH" in
14636 *\$* ) eval "INFOPATH=$INFOPATH" ;;
14644 PACKAGE_PATH=$package_path
14646 case "$PACKAGE_PATH" in
14647 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
14658 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14666 MODULEDIR=$moduledir
14668 case "$MODULEDIR" in
14669 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14677 SITELISPDIR=$sitelispdir
14679 case "$SITELISPDIR" in
14680 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14688 SITEMODULEDIR=$sitemoduledir
14690 case "$SITEMODULEDIR" in
14691 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14702 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14713 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14721 ARCHLIBDIR=$archlibdir
14723 case "$ARCHLIBDIR" in
14724 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14748 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14756 : ${XEMACS_CC:=$CC}
14759 if test "$with_prefix" = "yes"; then
14760 { test "$extra_verbose" = "yes" && cat << \EOF
14761 Defining PREFIX_USER_DEFINED
14763 cat >> confdefs.h <<\EOF
14764 #define PREFIX_USER_DEFINED 1
14770 if test "$with_site_lisp" = "no"; then
14771 { test "$extra_verbose" = "yes" && cat << \EOF
14772 Defining INHIBIT_SITE_LISP
14774 cat >> confdefs.h <<\EOF
14775 #define INHIBIT_SITE_LISP 1
14780 if test "$with_site_modules" = "no"; then
14781 { test "$extra_verbose" = "yes" && cat << \EOF
14782 Defining INHIBIT_SITE_MODULES
14784 cat >> confdefs.h <<\EOF
14785 #define INHIBIT_SITE_MODULES 1
14793 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14794 ac_configure_args="$T"
14796 { test "$extra_verbose" = "yes" && cat << EOF
14797 Defining EMACS_CONFIGURATION = "$configuration"
14799 cat >> confdefs.h <<EOF
14800 #define EMACS_CONFIGURATION "$configuration"
14804 { test "$extra_verbose" = "yes" && cat << EOF
14805 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14807 cat >> confdefs.h <<EOF
14808 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14815 { test "$extra_verbose" = "yes" && cat << EOF
14816 Defining LD_SWITCH_X_SITE = $null_string
14818 cat >> confdefs.h <<EOF
14819 #define LD_SWITCH_X_SITE $null_string
14823 { test "$extra_verbose" = "yes" && cat << EOF
14824 Defining LD_SWITCH_X_SITE_AUX = $null_string
14826 cat >> confdefs.h <<EOF
14827 #define LD_SWITCH_X_SITE_AUX $null_string
14831 { test "$extra_verbose" = "yes" && cat << EOF
14832 Defining C_SWITCH_X_SITE = $null_string
14834 cat >> confdefs.h <<EOF
14835 #define C_SWITCH_X_SITE $null_string
14839 { test "$extra_verbose" = "yes" && cat << EOF
14840 Defining LD_SWITCH_SITE = $null_string
14842 cat >> confdefs.h <<EOF
14843 #define LD_SWITCH_SITE $null_string
14847 { test "$extra_verbose" = "yes" && cat << EOF
14848 Defining C_SWITCH_SITE = $null_string
14850 cat >> confdefs.h <<EOF
14851 #define C_SWITCH_SITE $null_string
14857 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14858 Defining GNU_MALLOC
14860 cat >> confdefs.h <<\EOF
14861 #define GNU_MALLOC 1
14865 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14866 Defining USE_SYSTEM_MALLOC
14868 cat >> confdefs.h <<\EOF
14869 #define USE_SYSTEM_MALLOC 1
14873 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14874 Defining USE_DEBUG_MALLOC
14876 cat >> confdefs.h <<\EOF
14877 #define USE_DEBUG_MALLOC 1
14881 { test "$extra_verbose" = "yes" && cat << \EOF
14882 Defining USE_SYSTEM_MALLOC
14884 cat >> confdefs.h <<\EOF
14885 #define USE_SYSTEM_MALLOC 1
14890 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14893 cat >> confdefs.h <<\EOF
14898 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14901 cat >> confdefs.h <<\EOF
14906 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14907 Defining EXTERNAL_WIDGET
14909 cat >> confdefs.h <<\EOF
14910 #define EXTERNAL_WIDGET 1
14914 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14915 Defining QUICK_BUILD
14917 cat >> confdefs.h <<\EOF
14918 #define QUICK_BUILD 1
14922 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14925 cat >> confdefs.h <<\EOF
14930 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14933 cat >> confdefs.h <<\EOF
14938 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14939 Defining MAIL_USE_POP
14941 cat >> confdefs.h <<\EOF
14942 #define MAIL_USE_POP 1
14946 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14949 cat >> confdefs.h <<\EOF
14954 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14957 cat >> confdefs.h <<\EOF
14962 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14963 Defining USE_UNION_TYPE
14965 cat >> confdefs.h <<\EOF
14966 #define USE_UNION_TYPE 1
14970 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14973 cat >> confdefs.h <<\EOF
14981 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
14983 echo "uname -a: `uname -a`"
14986 echo "$0 $quoted_arguments"
14989 if test ! -z ${emacs_beta_version} ; then
14990 if test -z "${emacs_is_beta}" ; then
14991 xemacs_betaname=".${emacs_beta_version}"
14993 xemacs_betaname="-b${emacs_beta_version}"
15002 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15005 Compilation / Installation:"
15006 echo " Source code location: $srcdir"
15007 echo " Installation prefix: $prefix"
15008 if test -n "$site_includes"; then
15009 echo " Additional header files: $site_includes"
15011 if test -n "$site_libraries"; then
15012 echo " Additional libraries: $site_libraries"
15014 if test -n "$site_prefixes"; then
15015 echo " Additional prefixes: $site_prefixes"
15017 if test -n "$runpath"; then
15018 echo " Runtime library search path: $runpath"
15021 if test -n "$opsysfile"
15022 then echo " Operating system description file: \`$opsysfile'"
15023 else echo " Not using any operating system description file"
15025 if test -n "$machfile"
15026 then echo " Machine description file: \`$machfile'"
15027 else echo " Not using any machine description file"
15030 echo " Compiler: $CC $CFLAGS"
15031 echo " Relocating allocator for buffers: $rel_alloc"
15032 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15036 if test "$with_msw" = "yes"; then
15037 echo " Compiling in support for the Microsoft window system."
15039 if test "$with_x11" = "yes"; then
15040 echo " Compiling in support for the X window system:"
15041 echo " - X Windows headers location: $x_includes"
15042 echo " - X Windows libraries location: $x_libraries"
15043 if test "$with_xauth" != yes; then
15044 echo " - Xau (X authority) not available."
15046 if test "$with_xmu" != yes; then
15047 echo " - Xmu library not available; substituting equivalent routines."
15049 if test "$with_wmcommand" != no; then
15050 echo " - Handling WM_COMMAND properly."
15053 if test "$need_athena" = "yes"; then
15054 echo " Compiling in support for the Athena widget set:"
15055 echo " - Athena headers location: $athena_h_path"
15056 echo " - Athena library to link: $athena_lib"
15058 case "$with_menubars" in
15059 lucid ) echo " Using Lucid menubars." ;;
15060 motif ) echo " Using Motif menubars."
15061 echo " *WARNING* The Motif menubar implementation is currently buggy."
15062 echo " We recommend using the Lucid menubar instead."
15063 echo " Re-run configure with --with-menubars='lucid'." ;;
15064 msw ) echo " Using MS-Windows menubars." ;;
15066 case "$with_scrollbars" in
15067 lucid ) echo " Using Lucid scrollbars." ;;
15068 motif ) echo " Using Motif scrollbars." ;;
15069 athena ) echo " Using Athena scrollbars." ;;
15070 msw ) echo " Using MS-Windows scrollbars." ;;
15072 case "$with_dialogs" in
15073 motif ) echo " Using Motif dialog boxes."
15074 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15075 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15076 echo " We recommend using the Athena dialog boxes instead."
15077 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15078 echo " Read the PROBLEMS file for more information."
15080 athena ) echo " Using Athena dialog boxes." ;;
15081 msw ) echo " Using MS-Windows dialog boxes." ;;
15083 case "$with_widgets" in
15084 motif ) echo " Using Motif native widgets." ;;
15085 athena ) echo " Using Athena native widgets." ;;
15086 msw ) echo " Using MS-Windows native widgets." ;;
15088 if test "$with_dragndrop" = yes; then
15089 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15090 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15095 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15096 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15100 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15101 if test "$with_xpm" = yes; then
15102 echo " Compiling in support for XPM images."
15103 elif test "$with_x11" = yes; then
15104 echo " WARNING: -----------------------------------------------------------"
15105 echo " WARNING: Compiling without XPM image support."
15106 if test "$xpm_problem" != ""; then
15107 echo " Reason: $xpm_problem"
15109 echo " WARNING: You should strongly consider installing XPM."
15110 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15111 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15112 echo " WARNING: -----------------------------------------------------------"
15114 if test "$with_png" = yes; then
15115 echo " Compiling in support for PNG images."
15116 elif test "$window_system" != "none"; then
15117 echo " WARNING: -----------------------------------------------------------"
15118 echo " WARNING: Compiling without PNG image support."
15119 if test "$png_problem" != ""; then
15120 echo " Reason: $png_problem"
15122 echo " WARNING: You should strongly consider installing the PNG libraries."
15123 echo " WARNING: Otherwise certain images and glyphs may not display."
15124 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15125 echo " WARNING: -----------------------------------------------------------"
15127 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15128 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15129 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15133 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15134 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15135 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15136 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15140 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15141 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15142 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15143 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15144 if test "$with_postgresql" = yes; then
15145 echo " Compiling in support for PostgreSQL."
15146 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15147 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15151 Internationalization:"
15152 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15153 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15154 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15155 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15156 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15157 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15158 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15159 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15160 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15161 if test "$with_wnn" = yes; then
15162 echo " Compiling in support for the WNN input method on Mule."
15163 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15165 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15169 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15170 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15171 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15172 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15176 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15177 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15178 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15179 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15180 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15181 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15182 test "$pdump" = yes && echo " Using the new portable dumper."
15183 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15184 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15185 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15186 != "no no no no no no"; then
15187 echo " WARNING: ---------------------------------------------------------"
15188 echo " WARNING: Compiling in support for runtime error checking."
15189 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15190 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15191 echo " WARNING: ---------------------------------------------------------"
15194 ) | tee -a Installation
15198 # Remove any trailing slashes in these variables.
15199 test -n "$prefix" &&
15200 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15201 test -n "$exec_prefix" &&
15202 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15205 for file in $internal_makefile_list; do
15206 test "$file" = src/Makefile.in && \
15207 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15208 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15210 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15211 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
15215 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15218 # Let make expand exec_prefix.
15219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15221 # Any assignment to VPATH causes Sun make to only execute
15222 # the first set of double-colon rules, so remove it if not needed.
15223 # If there is a colon in the path, we need to keep it.
15224 if test "x$srcdir" = x.; then
15225 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15228 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15230 DEFS=-DHAVE_CONFIG_H
15232 # Without the "./", some shells look in PATH for config.status.
15233 : ${CONFIG_STATUS=./config.status}
15235 echo creating $CONFIG_STATUS
15236 rm -f $CONFIG_STATUS
15237 cat > $CONFIG_STATUS <<EOF
15239 # Generated automatically by configure.
15240 # Run this file to recreate the current configuration.
15241 # This directory was configured as follows,
15242 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15244 # $0 $ac_configure_args
15246 # Compiler output produced by configure, useful for debugging
15247 # configure, is in ./config.log if it exists.
15249 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15252 case "\$ac_option" in
15253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15254 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15255 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15256 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15257 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15259 -help | --help | --hel | --he | --h)
15260 echo "\$ac_cs_usage"; exit 0 ;;
15261 *) echo "\$ac_cs_usage"; exit 1 ;;
15265 ac_given_srcdir=$srcdir
15266 ac_given_INSTALL="$INSTALL"
15268 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15270 cat >> $CONFIG_STATUS <<EOF
15272 # Protect against being on the right side of a sed subst in config.status.
15273 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15274 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15278 s%@CFLAGS@%$CFLAGS%g
15279 s%@CPPFLAGS@%$CPPFLAGS%g
15280 s%@CXXFLAGS@%$CXXFLAGS%g
15281 s%@FFLAGS@%$FFLAGS%g
15283 s%@LDFLAGS@%$LDFLAGS%g
15285 s%@exec_prefix@%$exec_prefix%g
15286 s%@prefix@%$prefix%g
15287 s%@program_transform_name@%$program_transform_name%g
15288 s%@bindir@%$bindir%g
15289 s%@sbindir@%$sbindir%g
15290 s%@libexecdir@%$libexecdir%g
15291 s%@datadir@%$datadir%g
15292 s%@sysconfdir@%$sysconfdir%g
15293 s%@sharedstatedir@%$sharedstatedir%g
15294 s%@localstatedir@%$localstatedir%g
15295 s%@libdir@%$libdir%g
15296 s%@includedir@%$includedir%g
15297 s%@oldincludedir@%$oldincludedir%g
15298 s%@infodir@%$infodir%g
15299 s%@mandir@%$mandir%g
15301 s%@blddir@%$blddir%g
15304 s%@start_flags@%$start_flags%g
15305 s%@ld_switch_shared@%$ld_switch_shared%g
15306 s%@start_files@%$start_files%g
15308 s%@lib_gcc@%$lib_gcc%g
15309 s%@RANLIB@%$RANLIB%g
15310 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15311 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15312 s%@INSTALL_DATA@%$INSTALL_DATA%g
15314 s%@SET_MAKE@%$SET_MAKE%g
15315 s%@X_CFLAGS@%$X_CFLAGS%g
15316 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15317 s%@X_LIBS@%$X_LIBS%g
15318 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15319 s%@install_pp@%$install_pp%g
15320 s%@libs_xauth@%$libs_xauth%g
15321 s%@dnd_objs@%$dnd_objs%g
15322 s%@lwlib_objs@%$lwlib_objs%g
15323 s%@ALLOCA@%$ALLOCA%g
15324 s%@have_esd_config@%$have_esd_config%g
15325 s%@dll_ld@%$dll_ld%g
15326 s%@dll_cflags@%$dll_cflags%g
15327 s%@dll_ldflags@%$dll_ldflags%g
15328 s%@dll_post@%$dll_post%g
15329 s%@dll_ldo@%$dll_ldo%g
15330 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15331 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15332 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15333 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15334 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15335 s%@PROGNAME@%$PROGNAME%g
15336 s%@version@%$version%g
15337 s%@configuration@%$configuration%g
15338 s%@canonical@%$canonical%g
15339 s%@inststaticdir@%$inststaticdir%g
15340 s%@instvardir@%$instvardir%g
15341 s%@srcdir@%$srcdir%g
15342 s%@pkgdir@%$pkgdir%g
15343 s%@statedir@%$statedir%g
15344 s%@extra_includes@%$extra_includes%g
15345 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15346 s%@PREFIX@%$PREFIX%g
15347 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15348 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15349 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15350 s%@INFODIR@%$INFODIR%g
15351 s%@infopath@%$infopath%g
15352 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15353 s%@INFOPATH@%$INFOPATH%g
15354 s%@package_path@%$package_path%g
15355 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15356 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15357 s%@lispdir@%$lispdir%g
15358 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15359 s%@LISPDIR@%$LISPDIR%g
15360 s%@moduledir@%$moduledir%g
15361 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15362 s%@MODULEDIR@%$MODULEDIR%g
15363 s%@sitelispdir@%$sitelispdir%g
15364 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15365 s%@SITELISPDIR@%$SITELISPDIR%g
15366 s%@sitemoduledir@%$sitemoduledir%g
15367 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15368 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15369 s%@etcdir@%$etcdir%g
15370 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15371 s%@ETCDIR@%$ETCDIR%g
15372 s%@docdir@%$docdir%g
15373 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15374 s%@DOCDIR@%$DOCDIR%g
15375 s%@archlibdir@%$archlibdir%g
15376 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15377 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15378 s%@bitmapdir@%$bitmapdir%g
15379 s%@extra_objs@%$extra_objs%g
15380 s%@machfile@%$machfile%g
15381 s%@opsysfile@%$opsysfile%g
15382 s%@c_switch_general@%$c_switch_general%g
15383 s%@c_switch_window_system@%$c_switch_window_system%g
15384 s%@c_switch_all@%$c_switch_all%g
15385 s%@ld_switch_general@%$ld_switch_general%g
15386 s%@ld_switch_window_system@%$ld_switch_window_system%g
15387 s%@ld_switch_all@%$ld_switch_all%g
15388 s%@ld_libs_general@%$ld_libs_general%g
15389 s%@ld_libs_window_system@%$ld_libs_window_system%g
15390 s%@ld_libs_all@%$ld_libs_all%g
15391 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15392 s%@native_sound_lib@%$native_sound_lib%g
15393 s%@sound_cflags@%$sound_cflags%g
15394 s%@dynodump_arch@%$dynodump_arch%g
15395 s%@XEMACS_CC@%$XEMACS_CC%g
15396 s%@internal_makefile_list@%$internal_makefile_list%g
15401 cat >> $CONFIG_STATUS <<\EOF
15403 # Split the substitutions into bite-sized pieces for seds with
15404 # small command number limits, like on Digital OSF/1 and HP-UX.
15405 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15406 ac_file=1 # Number of current file.
15407 ac_beg=1 # First line for current file.
15408 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15411 while $ac_more_lines; do
15412 if test $ac_beg -gt 1; then
15413 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15415 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15417 if test ! -s conftest.s$ac_file; then
15418 ac_more_lines=false
15419 rm -f conftest.s$ac_file
15421 if test -z "$ac_sed_cmds"; then
15422 ac_sed_cmds="sed -f conftest.s$ac_file"
15424 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15426 ac_file=`expr $ac_file + 1`
15428 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15431 if test -z "$ac_sed_cmds"; then
15436 cat >> $CONFIG_STATUS <<EOF
15438 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
15440 cat >> $CONFIG_STATUS <<\EOF
15441 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15444 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15445 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15446 *) ac_file_in="${ac_file}.in" ;;
15449 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15451 # Remove last slash and all that follows it. Not all systems have dirname.
15452 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15453 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15454 # The file is in a subdirectory.
15455 test ! -d "$ac_dir" && mkdir "$ac_dir"
15456 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15457 # A "../" for each directory in $ac_dir_suffix.
15458 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15460 ac_dir_suffix= ac_dots=
15463 case "$ac_given_srcdir" in
15465 if test -z "$ac_dots"; then top_srcdir=.
15466 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15467 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15468 *) # Relative path.
15469 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15470 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15473 case "$ac_given_INSTALL" in
15474 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15475 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15478 echo creating "$ac_file"
15480 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15482 *Makefile*) ac_comsub="1i\\
15483 # $configure_input" ;;
15487 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15489 s%@configure_input@%$configure_input%g
15490 s%@srcdir@%$srcdir%g
15491 s%@top_srcdir@%$top_srcdir%g
15492 s%@INSTALL@%$INSTALL%g
15493 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15497 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15498 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15500 # ac_d sets the value in "#define NAME VALUE" lines.
15501 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15502 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15505 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15506 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15507 ac_uB='\([ ]\)%\1#\2define\3'
15510 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15511 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15512 ac_eB='$%\1#\2define\3'
15516 if test "${CONFIG_HEADERS+set}" != set; then
15518 cat >> $CONFIG_STATUS <<EOF
15519 CONFIG_HEADERS="src/config.h lwlib/config.h"
15521 cat >> $CONFIG_STATUS <<\EOF
15523 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15526 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15527 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15528 *) ac_file_in="${ac_file}.in" ;;
15531 echo creating $ac_file
15533 rm -f conftest.frag conftest.in conftest.out
15534 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15535 cat $ac_file_inputs > conftest.in
15539 # Transform confdefs.h into a sed script conftest.vals that substitutes
15540 # the proper values into config.h.in to produce config.h. And first:
15541 # Protect against being on the right side of a sed subst in config.status.
15542 # Protect against being in an unquoted here document in config.status.
15543 rm -f conftest.vals
15544 cat > conftest.hdr <<\EOF
15547 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15551 sed -n -f conftest.hdr confdefs.h > conftest.vals
15554 # This sed command replaces #undef with comments. This is necessary, for
15555 # example, in the case of _POSIX_SOURCE, which is predefined and required
15556 # on some systems where configure will not decide to define it.
15557 cat >> conftest.vals <<\EOF
15558 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15561 # Break up conftest.vals because some shells have a limit on
15562 # the size of here documents, and old seds have small limits too.
15564 rm -f conftest.tail
15567 ac_lines=`grep -c . conftest.vals`
15568 # grep -c gives empty output for an empty file on some AIX systems.
15569 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15570 # Write a limited-size here document to conftest.frag.
15571 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15572 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15574 sed -f conftest.frag conftest.in > conftest.out
15576 mv conftest.out conftest.in
15577 ' >> $CONFIG_STATUS
15578 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15579 rm -f conftest.vals
15580 mv conftest.tail conftest.vals
15582 rm -f conftest.vals
15584 cat >> $CONFIG_STATUS <<\EOF
15585 rm -f conftest.frag conftest.h
15586 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15587 cat conftest.in >> conftest.h
15589 if cmp -s $ac_file conftest.h 2>/dev/null; then
15590 echo "$ac_file is unchanged"
15593 # Remove last slash and all that follows it. Not all systems have dirname.
15594 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15595 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15596 # The file is in a subdirectory.
15597 test ! -d "$ac_dir" && mkdir "$ac_dir"
15600 mv conftest.h $ac_file
15605 cat >> $CONFIG_STATUS <<EOF
15607 top_srcdir="$srcdir"
15608 MAKE_SUBDIR="$MAKE_SUBDIR"
15611 cat >> $CONFIG_STATUS <<\EOF
15612 for dir in . $MAKE_SUBDIR; do
15617 sed -e '/^# Generated/d' \
15618 -e 's%/\*\*/#.*%%' \
15633 echo creating $dir/Makefile
15634 $CPP -I. -I${top_srcdir}/src junk.c \
15635 | sed -e 's/^\#.*//' \
15636 -e 's/^[ ][ ]*$//'\
15644 chmod 444 Makefile.new
15645 mv -f Makefile.new Makefile
15647 echo creating $dir/GNUmakefile
15648 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
15649 | sed -e 's/^\#.*//' \
15650 -e 's/^[ ][ ]*$//'\
15658 chmod 444 Makefile.new
15659 mv -f Makefile.new GNUmakefile
15665 sed < config.status >> lib-src/config.values \
15666 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15667 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15668 -e 's/^\([^ ]*\) $/\1 ""/' \
15674 chmod +x $CONFIG_STATUS
15675 rm -fr confdefs* $ac_clean_files
15676 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1