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, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 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) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
21 ### This file is part of XEmacs.
23 ### XEmacs is free software; you can redistribute it and/or modify it
24 ### under the terms of the GNU General Public License as published by
25 ### the Free Software Foundation; either version 2, or (at your
26 ### option) any later version.
28 ### XEmacs is distributed in the hope that it will be useful, but
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 ### General Public License for more details.
33 ### You should have received a copy of the GNU General Public License
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
38 ### For usage, run `./configure --help'
39 ### For more detailed information on building and installing XEmacs,
40 ### read the file `INSTALL'.
42 ### If configure succeeds, it leaves its status in config.status.
43 ### A log of configuration tests can be found in config.log.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
48 --with-x use the X Window System"
52 if test -n "$ZSH_VERSION"; then
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
58 elif test -n "$BASH_VERSION"; then
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
73 program_transform_name=s,x,x,
84 SHELL=${CONFIG_SHELL-/bin/sh}
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
89 # File descriptor usage:
92 # 2 errors and warnings
93 # 3 some systems may open it to /dev/tty
94 # 4 used on the Kubota Titan
95 # 6 checking for... messages and results
96 # 5 compiler messages saved in config.log
97 if test "$silent" = yes; then
105 This file contains any messages produced by compilers while
106 running configure, to aid debugging if configure makes a mistake.
109 # Strip out --no-create and --no-recursion so they do not pile up.
110 # Also quote any args containing shell metacharacters.
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116 | --no-cr | --no-c) ;;
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
126 # Only set these to C if already set. These must not be set unconditionally
127 # because not all systems understand e.g. LANG=C (notably SCO).
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
129 # Non-C LC_CTYPE values break the ctype check.
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
136 rm -rf conftest* confdefs.h
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
140 # A filename unique to this package, relative to the directory that
141 # configure is in, which we can look for to find out if srcdir is correct.
142 ac_unique_file=src/lisp.h
144 # Find the source files, if location was not specified.
145 if test -z "$srcdir"; then
146 ac_srcdir_defaulted=yes
147 # Try the directory containing this script, then its parent.
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
152 if test ! -r $srcdir/$ac_unique_file; then
156 ac_srcdir_defaulted=no
158 if test ! -r $srcdir/$ac_unique_file; then
159 if test "$ac_srcdir_defaulted" = yes; then
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
167 # Prefer explicitly selected file to automatically selected ones.
168 if test -z "$CONFIG_SITE"; then
169 if test "x$prefix" != xNONE; then
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
175 for ac_site_file in $CONFIG_SITE; do
176 if test -r "$ac_site_file"; then
177 echo "loading site script $ac_site_file"
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
187 ac_cpp='$CPP '"$xe_cppflags"
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
203 ac_n= ac_c='\c' ac_t=
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
211 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
214 exec_prefix='${prefix}'
215 bindir='${exec_prefix}/bin'
216 datadir='${prefix}/lib'
217 statedir='${prefix}/lib'
218 libdir='${exec_prefix}/lib'
219 mandir='${prefix}/man/man1'
220 inststaticdir='${PROGNAME}'
221 instvardir='${PROGNAME}-${version}'
222 infodir='${datadir}/${instvardir}/info'
225 lispdir='${datadir}/${instvardir}/lisp'
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
229 pkgdir='${datadir}/${instvardir}/lisp'
231 etcdir='${datadir}/${instvardir}/etc'
232 archlibdir='${libdir}/${instvardir}/${configuration}'
233 docdir='${archlibdir}'
237 with_site_modules='yes'
243 cpp='' cppflags='' libs='' ldflags=''
249 with_system_malloc='default'
250 with_dlmalloc='default'
269 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c) ;;
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
278 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
279 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
283 while test $# != 0; do
286 --no-create|--no-recursion) ;;
290 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
291 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
296 val="yes" valomitted=yes
301 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
303 case "${valomitted}-${opt}" in yes-without_* )
304 opt=`echo $opt | sed 's/without/with/'`
305 valomitted="no" val="no" ;;
312 with_site_modules | \
369 memory_usage_stats | \
370 with_clash_detection | \
374 y | ye | yes ) val=yes ;;
376 * ) (echo "$progname: Usage error:"
377 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
378 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
380 eval "$opt=\"$val\"" ;;
398 site_runtime_libraries )
399 if test "$valomitted" = "yes" ; then
400 if test "$#" = 0 ; then
401 (echo "$progname: Usage error:"
402 echo " " "The \`--$optname' option requires a value."
403 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
412 with_debug_malloc | use_debug_malloc | \
413 with_system_malloc | use_system_malloc )
415 y | ye | yes ) val=yes ;;
417 d | de | def | defa | defau | defaul | default ) val=default ;;
418 * ) (echo "$progname: Usage error:"
419 echo " " "The \`--$optname' option requires one of these values:
420 \`yes', \`no', or \`default'."
421 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
423 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
428 with_database_berkdb=no
430 with_database_gdbm=no
431 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
434 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
435 d | db | dbm ) with_database_dbm=yes ;;
436 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
437 * ) (echo "$progname: Usage error:"
438 echo " " "The \`--$optname' option value
439 must be either \`no' or a comma-separated list
440 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
441 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
444 if test "$with_database_dbm" = "yes" -a \
445 "$with_database_gdbm" = "yes"; then
446 (echo "$progname: Usage error:"
447 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
448 with the \`--$optname' option."
449 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
454 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
456 n | no | non | none ) new_sdefault=no ;;
457 a | al | all | both ) new_sdefault=yes ;;
459 native ) with_native_sound=yes ;;
460 nonative ) with_native_sound=no ;;
462 nas ) with_nas_sound=yes ;;
463 nonas ) with_nas_sound=no ;;
465 esd ) with_esd_sound=yes ;;
466 noesd ) with_esd_sound=no ;;
468 * ) bogus_sound=yes ;;
470 if test "$bogus_sound" -o \
471 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
472 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
473 (echo "$progname: Usage error:"
474 echo " " "Valid types for the \`--$optname' option are:
476 Option \`all' or \`none' must be first in the list.
477 The default is to autodetect native and NAS 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 | moduledir )
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 { test "$extra_verbose" = "yes" && cat << \EOF
700 Defining DOCDIR_USER_DEFINED
702 cat >> confdefs.h <<\EOF
703 #define DOCDIR_USER_DEFINED 1
707 { test "$extra_verbose" = "yes" && cat << \EOF
708 Defining ARCHLIBDIR_USER_DEFINED
710 cat >> confdefs.h <<\EOF
711 #define ARCHLIBDIR_USER_DEFINED 1
715 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
716 Defining DOCDIR_USER_DEFINED
718 cat >> confdefs.h <<\EOF
719 #define DOCDIR_USER_DEFINED 1
723 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
724 Defining ARCHLIBDIR_USER_DEFINED
726 cat >> confdefs.h <<\EOF
727 #define ARCHLIBDIR_USER_DEFINED 1
736 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
739 "with_scrollbars" | \
743 l | lu | luc | luci | lucid ) val=lucid ;;
744 mo | mot | moti | motif ) val=motif ;;
745 a | at | ath | athe | athen | athena ) val=athena ;;
746 n | no | non | none ) val=no ;;
747 y | ye | yes ) val=yes ;;
749 g | gt | gtk ) val=gtk ;;
750 ms | msw ) val=msw ;;
751 * ) (echo "$progname: Usage error:"
752 echo " " "The \`--$optname' option must have one of these values:
753 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
754 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
759 "use_minimal_tagbits" | \
760 "use_indexed_lrecord_implementation" | \
762 "const_is_losing" | \
764 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
767 * ) (echo "$progname: Usage error:"
768 echo " " "Unrecognized option: $arg"
769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
774 *-*-*) configuration="$arg" ;;
776 *) (echo "$progname: Usage error:"
777 echo " " "Unrecognized argument: $arg"
778 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
784 test -n "$cpp" && CPP="$cpp"
785 test -n "$cppflags" && CPPFLAGS="$cppflags"
786 test -n "$libs" && LIBS="$libs"
787 test -n "$ldflags" && LDFLAGS="$ldflags"
789 eval set x "$quoted_arguments"; shift
791 test "$extra_verbose" = "yes" && verbose=yes
793 test -n "$with_x" && with_x11="$with_x"
795 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
796 test "$with_system_malloc" = "default" && with_system_malloc=yes
801 if test "$with_cde $with_tooltalk" = "yes no"; then
802 (echo "$progname: Usage error:"
803 echo " " "--with-cde requires --with-tooltalk"
804 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
805 elif test "$with_tooltalk" = "no" ; then with_cde=no
806 elif test "$with_cde" = "yes"; then with_tooltalk=yes
813 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
814 if test -f "$dir/src/lisp.h" -a \
815 -f "$dir/lisp/version.el" ; then
820 if test -z "$srcdir" ; then
821 (echo "$progname: Usage error:"
822 echo " " "Neither the current directory nor its parent seem to
823 contain the XEmacs sources. If you do not want to build XEmacs in its
824 source tree, you should run \`$progname' in the directory in which
825 you wish to build XEmacs, using the \`--srcdir' option to say where the
826 sources may be found."
827 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
832 if test ! -f "$srcdir/src/lisp.h" -o \
833 ! -f "$srcdir/lisp/version.el" ; then
834 (echo "$progname: Usage error:"
835 echo " " "The directory specified with the \`--srcdir' option,
836 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
837 either run the \`$progname' script at the top of the XEmacs source
838 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
839 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
844 if test -z "$configuration"; then
845 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
846 if test -z "$configuration"; then
847 (echo "$progname: Usage error:"
848 echo " " "XEmacs has not been ported to this host type.
849 Try explicitly specifying the CONFIGURATION when rerunning configure."
850 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
854 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
855 echo "configure:856: checking whether ln -s works" >&5
858 if ln -s X conftestdata 2>/dev/null
861 ac_cv_prog_LN_S="ln -s"
865 LN_S="$ac_cv_prog_LN_S"
866 if test "$ac_cv_prog_LN_S" = "ln -s"; then
867 echo "$ac_t""yes" 1>&6
869 echo "$ac_t""no" 1>&6
873 for dir in lisp etc man info tests; do
874 if test ! -d "$dir" ; then
875 echo Making symbolic link to "$srcdir/$dir"
876 ${LN_S} "$srcdir/$dir" "$dir"
881 absolute_pwd="`pwd`";
882 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
884 else blddir="$absolute_pwd"; if test -d "/net"; then
885 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
886 blddir=`echo "$blddir" | \
887 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
894 . ) srcdir="$blddir" ;;
895 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
896 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
897 srcdir=`echo "$srcdir" | \
898 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
902 if test `pwd` != `sh -c cd $srcdir && pwd` \
903 && test -f "$srcdir/src/config.h"; then
904 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
905 echo " as a build directory right now; it has been configured in its own"
906 echo " right. To configure in another directory as well, you MUST"
907 echo " use GNU make. If you do not have GNU make, then you must"
908 echo " now do \`make distclean' in $srcdir,"
909 echo " and then run $progname again.") >&2
910 extrasub='/^VPATH[ ]*=/c\
916 vpath %.in $(srcdir)'
919 . "$srcdir/version.sh" || exit 1;
920 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
921 : "${extra_verbose=$beta}"
922 version="${emacs_major_version}.${emacs_minor_version}"
923 { test "$extra_verbose" = "yes" && cat << EOF
924 Defining EMACS_MAJOR_VERSION = $emacs_major_version
926 cat >> confdefs.h <<EOF
927 #define EMACS_MAJOR_VERSION $emacs_major_version
931 { test "$extra_verbose" = "yes" && cat << EOF
932 Defining EMACS_MINOR_VERSION = $emacs_minor_version
934 cat >> confdefs.h <<EOF
935 #define EMACS_MINOR_VERSION $emacs_minor_version
939 if test -n "$emacs_beta_version" ; then
940 if test "$beta" = "yes"; then
941 version="${version}-b${emacs_beta_version}"
942 { test "$extra_verbose" = "yes" && cat << EOF
943 Defining EMACS_BETA_VERSION = $emacs_beta_version
945 cat >> confdefs.h <<EOF
946 #define EMACS_BETA_VERSION $emacs_beta_version
951 version="${version}.${emacs_beta_version}"
952 { test "$extra_verbose" = "yes" && cat << EOF
953 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
955 cat >> confdefs.h <<EOF
956 #define EMACS_PATCH_LEVEL $emacs_beta_version
962 { test "$extra_verbose" = "yes" && cat << EOF
963 Defining XEMACS_CODENAME = "$xemacs_codename"
965 cat >> confdefs.h <<EOF
966 #define XEMACS_CODENAME "$xemacs_codename"
970 { test "$extra_verbose" = "yes" && cat << EOF
971 Defining EMACS_VERSION = "$version"
973 cat >> confdefs.h <<EOF
974 #define EMACS_VERSION "$version"
979 if test "$with_infodock" = "yes"; then
980 if test ! -f ../../ID-INSTALL; then
981 echo "Cannot build InfoDock without InfoDock sources"
986 if test "$with_infodock" = "yes"; then
987 { test "$extra_verbose" = "yes" && cat << EOF
988 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
990 cat >> confdefs.h <<EOF
991 #define INFODOCK_MAJOR_VERSION $infodock_major_version
995 { test "$extra_verbose" = "yes" && cat << EOF
996 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
998 cat >> confdefs.h <<EOF
999 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1003 { test "$extra_verbose" = "yes" && cat << EOF
1004 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1006 cat >> confdefs.h <<EOF
1007 #define INFODOCK_BUILD_VERSION $infodock_build_version
1011 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1013 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1018 { test "$extra_verbose" = "yes" && cat << EOF
1019 Defining EMACS_PROGNAME = "$PROGNAME"
1021 cat >> confdefs.h <<EOF
1022 #define EMACS_PROGNAME "$PROGNAME"
1027 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1028 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1029 Defining ERROR_CHECK_EXTENTS
1031 cat >> confdefs.h <<\EOF
1032 #define ERROR_CHECK_EXTENTS 1
1036 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1037 Defining ERROR_CHECK_TYPECHECK
1039 cat >> confdefs.h <<\EOF
1040 #define ERROR_CHECK_TYPECHECK 1
1044 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1045 Defining ERROR_CHECK_BUFPOS
1047 cat >> confdefs.h <<\EOF
1048 #define ERROR_CHECK_BUFPOS 1
1052 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1053 Defining ERROR_CHECK_GC
1055 cat >> confdefs.h <<\EOF
1056 #define ERROR_CHECK_GC 1
1060 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1061 Defining ERROR_CHECK_MALLOC
1063 cat >> confdefs.h <<\EOF
1064 #define ERROR_CHECK_MALLOC 1
1068 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1069 Defining ERROR_CHECK_BYTE_CODE
1071 cat >> confdefs.h <<\EOF
1072 #define ERROR_CHECK_BYTE_CODE 1
1076 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1077 Defining ERROR_CHECK_GLYPHS
1079 cat >> confdefs.h <<\EOF
1080 #define ERROR_CHECK_GLYPHS 1
1084 if test "${debug:=$beta}" = "yes"; then
1085 use_assertions=yes memory_usage_stats=yes
1086 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1087 echo " xemacs will be linked with \"debug.o\""
1089 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1090 echo " xemacs will be linked with \"tests.o\""
1092 { test "$extra_verbose" = "yes" && cat << \EOF
1093 Defining DEBUG_XEMACS
1095 cat >> confdefs.h <<\EOF
1096 #define DEBUG_XEMACS 1
1101 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1102 Defining USE_ASSERTIONS
1104 cat >> confdefs.h <<\EOF
1105 #define USE_ASSERTIONS 1
1109 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1110 Defining MEMORY_USAGE_STATS
1112 cat >> confdefs.h <<\EOF
1113 #define MEMORY_USAGE_STATS 1
1119 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1120 echo "configure:1121: checking "host system type"" >&5
1121 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1122 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1123 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1124 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1125 echo "$ac_t""$configuration" 1>&6
1133 case "$canonical" in
1134 sparc-*-* ) machine=sparc ;;
1135 alpha*-*-* ) machine=alpha ;;
1136 vax-*-* ) machine=vax ;;
1137 mips-dec-* ) machine=pmax ;;
1138 mips-sgi-irix6* ) machine=iris6d ;;
1139 mips-sgi-* ) machine=iris4d ;;
1140 mips*-linux ) machine=mips ;;
1141 romp-ibm-* ) machine=ibmrt ;;
1142 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1143 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1144 powerpc*-* ) machine=powerpc ;;
1145 hppa-*-* ) machine=hp800 ;;
1146 m88k-dg-* ) machine=aviion ;;
1147 m68*-sony-* ) machine=news ;;
1148 mips-sony-* ) machine=news-risc ;;
1149 clipper-* ) machine=clipper ;;
1150 arm* ) machine=arm ;;
1151 ns32k-* ) machine=ns32000 ;;
1154 case "$canonical" in
1155 *-*-linux* ) opsys=linux ;;
1156 *-*-netbsd* ) opsys=netbsd ;;
1157 *-*-openbsd* ) opsys=openbsd ;;
1158 *-*-nextstep* ) opsys=nextstep ;;
1159 *-*-vms ) opsys=vms ;;
1161 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1162 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1163 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1164 *-dec-osf3* ) opsys=decosf3-1 ;;
1165 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1167 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1168 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1169 *-*-ultrix* ) opsys=ultrix4-3 ;;
1171 *-*-aix3.1* ) opsys=aix3-1 ;;
1172 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1173 *-*-aix3* ) opsys=aix3-2 ;;
1174 *-*-aix4.0* ) opsys=aix4 ;;
1175 *-*-aix4.1* ) opsys=aix4-1 ;;
1176 *-*-aix[4-9]* ) opsys=aix4-2 ;;
1178 *-gnu* ) opsys=gnu ;;
1179 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1180 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1181 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1182 *-*-aos4.2 ) opsys=bsd4-2 ;;
1183 *-*-aos* ) opsys=bsd4-3 ;;
1184 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1185 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1186 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1187 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1188 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1189 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1190 if test -z "$NON_GNU_CPP" ; then
1191 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1192 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1196 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1197 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1200 case "$canonical" in
1203 case "$canonical" in
1204 i[3-9]86-*-netbsd*) machine=intel386 ;;
1205 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1206 machine=hp9000s300 ;;
1207 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1208 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1213 case "${canonical}" in
1214 i386-*-openbsd*) machine=intel386 ;;
1215 m68k-*-openbsd*) machine=hp9000s300 ;;
1216 mipsel-*-openbsd*) machine=pmax ;;
1220 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1221 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1223 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1224 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1226 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1228 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1230 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1232 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1234 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1236 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1237 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1238 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1241 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1243 *-convex-bsd* | *-convex-convexos* )
1244 machine=convex opsys=bsd4-3
1245 NON_GNU_CPP="cc -E -P"
1248 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1252 RANLIB="ranlib -c" ;;
1254 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1255 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1256 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1257 m88k-dg-dgux* ) opsys=dgux ;;
1259 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1260 m88k-motorola-sysv4* )
1261 machine=delta88k opsys=usg5-4-2
1263 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1265 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1266 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1268 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1270 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1271 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1272 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1275 case "`uname -r`" in
1276 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1277 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1279 NON_GNU_CPP="/lib/cpp"
1281 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1282 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1284 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1286 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1289 case "$canonical" in
1290 m68* ) machine=hp9000s300 ;;
1291 hppa* ) machine=hp800 ;;
1294 case "$canonical" in
1295 *-hp-hpux7* ) opsys=hpux ;;
1296 *-hp-hpux8* ) opsys=hpux8 ;;
1297 *-hp-hpux9* ) opsys=hpux9 ;;
1298 *-hp-hpux10* ) opsys=hpux10 ;;
1299 *-hp-hpux11* ) opsys=hpux11 ;;
1303 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1304 echo " xemacs will be linked with \"strcat.o\""
1307 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1308 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1309 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1311 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1314 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1315 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1317 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1318 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1319 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1320 romp-ibm-aos* ) opsys=bsd4-3 ;;
1321 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1322 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1324 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1325 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1327 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1329 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1331 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1333 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1335 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1337 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1339 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1341 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1343 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1345 mips-mips-usg* ) machine=mips4 ;;
1348 NON_GNU_CC="cc -systype bsd43"
1349 NON_GNU_CPP="cc -systype bsd43 -E"
1350 case "$canonical" in
1351 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1352 mips-mips-riscos5* ) opsys=riscos5 ;;
1355 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1356 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1358 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1360 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1362 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1363 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1365 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1367 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1369 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1371 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1373 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1374 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1376 mips-siemens-sysv* | mips-sni-sysv*)
1377 machine=mips-siemens opsys=usg5-4
1378 NON_GNU_CC=/usr/ccs/bin/cc
1379 NON_GNU_CPP=/usr/ccs/lib/cpp
1384 NON_GNU_CC=/usr/ccs/bin/cc
1385 NON_GNU_CPP=/usr/ccs/lib/cpp
1388 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1389 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1390 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1391 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1392 mips-sgi-irix6* ) opsys=irix6-0 ;;
1393 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1394 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1395 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1396 mips-sgi-irix* ) opsys=irix5-0 ;;
1398 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1399 *-sony-news* ) opsys=newsos5 ;;
1401 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1403 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1404 case "$canonical" in
1405 m68*-sunos1* ) machine=sun1 ;;
1406 m68*-sunos2* ) machine=sun2 ;;
1407 m68* ) machine=sun3 ;;
1408 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1409 i*86-*-* ) machine=intel386 ;;
1410 rs6000* ) machine=rs6000 ;;
1413 case "$canonical" in *-sunos5*)
1414 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1417 case "$canonical" in
1419 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1422 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1426 case "$canonical" in
1429 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1430 { test "$extra_verbose" = "yes" && cat << EOF
1431 Defining OS_RELEASE = $os_release
1433 cat >> confdefs.h <<EOF
1434 #define OS_RELEASE $os_release
1439 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1440 *-sunos4.0* ) opsys=sunos4-0 ;;
1441 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1442 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1443 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1444 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1445 *-mach* ) opsys=mach-bsd4-3 ;;
1449 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1451 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1454 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1456 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1457 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1459 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1461 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1463 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1464 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1466 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1468 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1471 case "$canonical" in
1472 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1473 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1474 *-mach* ) opsys=mach-bsd4-3 ;;
1478 ns16k-whitechapel-* ) machine=mg1 ;;
1480 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1484 case "$canonical" in
1485 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1486 *-isc2.2* ) opsys=isc2-2 ;;
1487 *-isc4.0* ) opsys=isc4-0 ;;
1488 *-isc4.* ) opsys=isc4-1
1489 GCC_TEST_OPTIONS=-posix
1490 NON_GCC_TEST_OPTIONS=-Xp
1492 *-isc* ) opsys=isc3-0 ;;
1493 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1494 *-esix* ) opsys=esix ;;
1495 *-mach* ) opsys=mach-bsd4-3 ;;
1496 *-xenix* ) opsys=xenix ;;
1497 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1498 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1499 *-bsdi4* ) opsys=bsdos4 ;;
1500 *-bsdi3* ) opsys=bsdos3 ;;
1501 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1502 *-bsdi2* ) opsys=bsdos2 ;;
1503 *-sco3.2v5* ) opsys=sco5 ;;
1504 *-sysv5* ) opsys=sco7 ;;
1505 *-386bsd* ) opsys=386bsd ;;
1506 *-freebsd* ) opsys=freebsd ;;
1507 *-nextstep* ) opsys=nextstep ;;
1508 *-pc-cygwin* ) opsys=cygwin32 ;;
1509 *-pc-mingw* ) opsys=mingw32 ;
1510 test -z "$with_tty" && with_tty="no";;
1514 m68k-*-linux* ) machine=m68k opsys=linux ;;
1518 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1520 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1522 if test -r "${srcdir}/src/m/${machine}.h"; then
1523 machfile="m/${machine}.h"
1524 { test "$extra_verbose" = "yes" && cat << EOF
1525 Defining config_machfile = "$machfile"
1527 cat >> confdefs.h <<EOF
1528 #define config_machfile "$machfile"
1533 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1534 echo "Using configure-time autodetection only."
1537 if test -r "${srcdir}/src/s/${opsys}.h"; then
1538 opsysfile="s/${opsys}.h"
1539 { test "$extra_verbose" = "yes" && cat << EOF
1540 Defining config_opsysfile = "$opsysfile"
1542 cat >> confdefs.h <<EOF
1543 #define config_opsysfile "$opsysfile"
1548 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1549 echo "Using configure-time autodetection only."
1553 if test -z "$pdump"; then
1555 linux* ) pdump=yes ;; darwin ) pdump=yes ;; *) pdump=no ;;
1559 if test -z "$dynamic"; then
1561 hpux* | sunos4* ) dynamic=no ;;
1565 if test "$dynamic" = "yes"; then
1567 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1568 decosf* ) ld_call_shared="-call_shared" ;;
1569 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF
1570 Defining DLSYM_NEEDS_UNDERSCORE
1572 cat >> confdefs.h <<\EOF
1573 #define DLSYM_NEEDS_UNDERSCORE 1
1578 else case "$opsys" in
1580 echo "Static linking is not supported on Solaris 2."
1581 echo "Rerun configure without specifying --dynamic=no."
1583 linux ) ld_call_shared="-Bstatic" ;;
1584 decosf* ) ld_call_shared="-non_shared" ;;
1588 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1590 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1591 { test "$extra_verbose" = "yes" && cat << EOF
1592 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1594 cat >> confdefs.h <<EOF
1595 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1601 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1602 if test "$with_workshop $with_tooltalk" = "yes no"; then
1603 (echo "$progname: Usage error:"
1604 echo " " "--with-workshop requires --with-tooltalk"
1605 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1606 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1607 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1610 if test "$with_workshop" = "yes"; then
1611 { test "$extra_verbose" = "yes" && cat << \EOF
1614 cat >> confdefs.h <<\EOF
1619 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1620 echo " xemacs will be linked with \"sunpro.o\""
1624 if test "$with_clash_detection" != "no"; then
1625 { test "$extra_verbose" = "yes" && cat << \EOF
1626 Defining CLASH_DETECTION
1628 cat >> confdefs.h <<\EOF
1629 #define CLASH_DETECTION 1
1633 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1634 echo " xemacs will be linked with \"filelock.o\""
1638 test -n "$compiler" && CC="$compiler"
1639 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1642 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1643 if test "${CFLAGS-unset}" != unset
1644 then cflags_specified=yes;
1645 else cflags_specified=no;
1648 xe_save_CFLAGS="$CFLAGS"
1650 # Extract the first word of "gcc", so it can be a program name with args.
1651 set dummy gcc; ac_word=$2
1652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_word" >&5
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1660 for ac_dir in $ac_dummy; do
1661 test -z "$ac_dir" && ac_dir=.
1662 if test -f $ac_dir/$ac_word; then
1670 if test -n "$CC"; then
1671 echo "$ac_t""$CC" 1>&6
1673 echo "$ac_t""no" 1>&6
1676 if test -z "$CC"; then
1677 # Extract the first word of "cc", so it can be a program name with args.
1678 set dummy cc; ac_word=$2
1679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_word" >&5
1682 if test -n "$CC"; then
1683 ac_cv_prog_CC="$CC" # Let the user override the test.
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1688 for ac_dir in $ac_dummy; do
1689 test -z "$ac_dir" && ac_dir=.
1690 if test -f $ac_dir/$ac_word; then
1691 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1692 ac_prog_rejected=yes
1700 if test $ac_prog_rejected = yes; then
1701 # We found a bogon in the path, so make sure we never use it.
1702 set dummy $ac_cv_prog_CC
1704 if test $# -gt 0; then
1705 # We chose a different compiler from the bogus one.
1706 # However, it has the same basename, so the bogon will be chosen
1707 # first if we set CC to just the basename; use the full file name.
1709 set dummy "$ac_dir/$ac_word" "$@"
1716 if test -n "$CC"; then
1717 echo "$ac_t""$CC" 1>&6
1719 echo "$ac_t""no" 1>&6
1722 if test -z "$CC"; then
1723 case "`uname -s`" in
1725 # Extract the first word of "cl", so it can be a program name with args.
1726 set dummy cl; ac_word=$2
1727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1728 echo "configure:1729: checking for $ac_word" >&5
1730 if test -n "$CC"; then
1731 ac_cv_prog_CC="$CC" # Let the user override the test.
1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1735 for ac_dir in $ac_dummy; do
1736 test -z "$ac_dir" && ac_dir=.
1737 if test -f $ac_dir/$ac_word; then
1745 if test -n "$CC"; then
1746 echo "$ac_t""$CC" 1>&6
1748 echo "$ac_t""no" 1>&6
1753 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1756 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1757 echo "configure:1758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1760 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1761 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1762 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1763 ac_cpp='$CPP '"$xe_cppflags"
1764 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1765 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1768 cat > conftest.$ac_ext << EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1775 if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1776 ac_cv_prog_cc_works=yes
1777 # If we can't run a trivial program, we are probably using a cross compiler.
1778 if (./conftest; exit) 2>/dev/null; then
1779 ac_cv_prog_cc_cross=no
1781 ac_cv_prog_cc_cross=yes
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 ac_cv_prog_cc_works=no
1790 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1791 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1792 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1793 ac_cpp='$CPP '"$xe_cppflags"
1794 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1795 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1798 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1799 if test $ac_cv_prog_cc_works = no; then
1800 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1802 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1804 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1805 cross_compiling=$ac_cv_prog_cc_cross
1807 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1808 echo "configure:1809: checking whether we are using GNU C" >&5
1810 cat > conftest.c <<EOF
1815 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1823 if test $ac_cv_prog_gcc = yes; then
1829 ac_test_CFLAGS="${CFLAGS+set}"
1830 ac_save_CFLAGS="$CFLAGS"
1832 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1833 echo "configure:1834: checking whether ${CC-cc} accepts -g" >&5
1835 echo 'void f(){}' > conftest.c
1836 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1844 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1845 if test "$ac_test_CFLAGS" = set; then
1846 CFLAGS="$ac_save_CFLAGS"
1847 elif test $ac_cv_prog_cc_g = yes; then
1848 if test "$GCC" = yes; then
1854 if test "$GCC" = yes; then
1861 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1863 # Extract the first word of "gcc", so it can be a program name with args.
1864 set dummy gcc; ac_word=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1868 if test -n "$CC"; then
1869 ac_cv_prog_CC="$CC" # Let the user override the test.
1871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1873 for ac_dir in $ac_dummy; do
1874 test -z "$ac_dir" && ac_dir=.
1875 if test -f $ac_dir/$ac_word; then
1883 if test -n "$CC"; then
1884 echo "$ac_t""$CC" 1>&6
1886 echo "$ac_t""no" 1>&6
1889 if test -z "$CC"; then
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1893 echo "configure:1894: checking for $ac_word" >&5
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test.
1898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1901 for ac_dir in $ac_dummy; do
1902 test -z "$ac_dir" && ac_dir=.
1903 if test -f $ac_dir/$ac_word; then
1904 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1905 ac_prog_rejected=yes
1913 if test $ac_prog_rejected = yes; then
1914 # We found a bogon in the path, so make sure we never use it.
1915 set dummy $ac_cv_prog_CC
1917 if test $# -gt 0; then
1918 # We chose a different compiler from the bogus one.
1919 # However, it has the same basename, so the bogon will be chosen
1920 # first if we set CC to just the basename; use the full file name.
1922 set dummy "$ac_dir/$ac_word" "$@"
1929 if test -n "$CC"; then
1930 echo "$ac_t""$CC" 1>&6
1932 echo "$ac_t""no" 1>&6
1935 if test -z "$CC"; then
1936 case "`uname -s`" in
1938 # Extract the first word of "cl", so it can be a program name with args.
1939 set dummy cl; ac_word=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1948 for ac_dir in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir=.
1950 if test -f $ac_dir/$ac_word; then
1958 if test -n "$CC"; then
1959 echo "$ac_t""$CC" 1>&6
1961 echo "$ac_t""no" 1>&6
1966 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1970 echo "configure:1971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1973 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1974 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1975 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1976 ac_cpp='$CPP '"$xe_cppflags"
1977 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1978 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1981 cat > conftest.$ac_ext << EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1988 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1989 ac_cv_prog_cc_works=yes
1990 # If we can't run a trivial program, we are probably using a cross compiler.
1991 if (./conftest; exit) 2>/dev/null; then
1992 ac_cv_prog_cc_cross=no
1994 ac_cv_prog_cc_cross=yes
1997 echo "configure: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
1999 ac_cv_prog_cc_works=no
2003 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2004 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2005 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2006 ac_cpp='$CPP '"$xe_cppflags"
2007 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2008 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2011 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2012 if test $ac_cv_prog_cc_works = no; then
2013 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2015 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2016 echo "configure:2017: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2017 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2018 cross_compiling=$ac_cv_prog_cc_cross
2020 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2021 echo "configure:2022: checking whether we are using GNU C" >&5
2023 cat > conftest.c <<EOF
2028 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2036 if test $ac_cv_prog_gcc = yes; then
2042 ac_test_CFLAGS="${CFLAGS+set}"
2043 ac_save_CFLAGS="$CFLAGS"
2045 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2046 echo "configure:2047: checking whether ${CC-cc} accepts -g" >&5
2048 echo 'void f(){}' > conftest.c
2049 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2057 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS="$ac_save_CFLAGS"
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2067 if test "$GCC" = yes; then
2074 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2076 # Extract the first word of "gcc", so it can be a program name with args.
2077 set dummy gcc; ac_word=$2
2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2079 echo "configure:2080: checking for $ac_word" >&5
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2086 for ac_dir in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir=.
2088 if test -f $ac_dir/$ac_word; then
2096 if test -n "$CC"; then
2097 echo "$ac_t""$CC" 1>&6
2099 echo "$ac_t""no" 1>&6
2102 if test -z "$CC"; then
2103 # Extract the first word of "cc", so it can be a program name with args.
2104 set dummy cc; ac_word=$2
2105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2106 echo "configure:2107: checking for $ac_word" >&5
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2114 for ac_dir in $ac_dummy; do
2115 test -z "$ac_dir" && ac_dir=.
2116 if test -f $ac_dir/$ac_word; then
2117 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2118 ac_prog_rejected=yes
2126 if test $ac_prog_rejected = yes; then
2127 # We found a bogon in the path, so make sure we never use it.
2128 set dummy $ac_cv_prog_CC
2130 if test $# -gt 0; then
2131 # We chose a different compiler from the bogus one.
2132 # However, it has the same basename, so the bogon will be chosen
2133 # first if we set CC to just the basename; use the full file name.
2135 set dummy "$ac_dir/$ac_word" "$@"
2142 if test -n "$CC"; then
2143 echo "$ac_t""$CC" 1>&6
2145 echo "$ac_t""no" 1>&6
2148 if test -z "$CC"; then
2149 case "`uname -s`" in
2151 # Extract the first word of "cl", so it can be a program name with args.
2152 set dummy cl; ac_word=$2
2153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2154 echo "configure:2155: checking for $ac_word" >&5
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2161 for ac_dir in $ac_dummy; do
2162 test -z "$ac_dir" && ac_dir=.
2163 if test -f $ac_dir/$ac_word; then
2171 if test -n "$CC"; then
2172 echo "$ac_t""$CC" 1>&6
2174 echo "$ac_t""no" 1>&6
2179 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2182 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2183 echo "configure:2184: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2186 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2187 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2188 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2189 ac_cpp='$CPP '"$xe_cppflags"
2190 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2191 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2194 cat > conftest.$ac_ext << EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2201 if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2202 ac_cv_prog_cc_works=yes
2203 # If we can't run a trivial program, we are probably using a cross compiler.
2204 if (./conftest; exit) 2>/dev/null; then
2205 ac_cv_prog_cc_cross=no
2207 ac_cv_prog_cc_cross=yes
2210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2212 ac_cv_prog_cc_works=no
2216 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2217 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2218 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2219 ac_cpp='$CPP '"$xe_cppflags"
2220 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2221 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2224 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2225 if test $ac_cv_prog_cc_works = no; then
2226 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2228 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2229 echo "configure:2230: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2230 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2231 cross_compiling=$ac_cv_prog_cc_cross
2233 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2234 echo "configure:2235: checking whether we are using GNU C" >&5
2236 cat > conftest.c <<EOF
2241 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2247 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2249 if test $ac_cv_prog_gcc = yes; then
2255 ac_test_CFLAGS="${CFLAGS+set}"
2256 ac_save_CFLAGS="$CFLAGS"
2258 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2259 echo "configure:2260: checking whether ${CC-cc} accepts -g" >&5
2261 echo 'void f(){}' > conftest.c
2262 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2270 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2271 if test "$ac_test_CFLAGS" = set; then
2272 CFLAGS="$ac_save_CFLAGS"
2273 elif test $ac_cv_prog_cc_g = yes; then
2274 if test "$GCC" = yes; then
2280 if test "$GCC" = yes; then
2288 CFLAGS="$xe_save_CFLAGS"
2291 test -n "$CPP" -a -d "$CPP" && CPP=
2293 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2295 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2296 echo "configure:2297: checking how to run the C preprocessor" >&5
2297 # On Suns, sometimes $CPP names a directory.
2298 if test -n "$CPP" && test -d "$CPP"; then
2301 if test -z "$CPP"; then
2303 # This must be in double quotes, not single quotes, because CPP may get
2304 # substituted into the Makefile and "${CC-cc}" will confuse make.
2306 # On the NeXT, cc -E runs the code through the compiler's parser,
2307 # not just through cpp.
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 CPP="${CC-cc} -E -traditional-cpp"
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2332 { (eval echo configure:2333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2334 if test -z "$ac_err"; then
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 CPP="${CC-cc} -nologo -E"
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2349 { (eval echo configure:2350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2351 if test -z "$ac_err"; then
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2365 ac_cv_prog_CPP="$CPP"
2366 CPP="$ac_cv_prog_CPP"
2368 ac_cv_prog_CPP="$CPP"
2370 echo "$ac_t""$CPP" 1>&6
2374 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2375 echo "configure:2376: checking for AIX" >&5
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2385 egrep "yes" >/dev/null 2>&1; then
2387 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2388 Defining _ALL_SOURCE
2390 cat >> confdefs.h <<\EOF
2391 #define _ALL_SOURCE 1
2397 echo "$ac_t""no" 1>&6
2403 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2404 echo "configure:2405: checking for GNU libc" >&5
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <features.h>
2411 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2412 #error Not a GNU libc system :-(
2413 ******* ======= ******** &&&&&&&&
2418 if { (eval echo configure:2419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2428 echo "$ac_t""$have_glibc" 1>&6
2429 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2430 Defining _GNU_SOURCE
2432 cat >> confdefs.h <<\EOF
2433 #define _GNU_SOURCE 1
2440 { test "$extra_verbose" = "yes" && cat << \EOF
2441 Defining __EXTENSIONS__
2443 cat >> confdefs.h <<\EOF
2444 #define __EXTENSIONS__ 1
2448 if test "$os_release" -ge 55; then
2449 { test "$extra_verbose" = "yes" && cat << \EOF
2450 Defining _XOPEN_SOURCE = 500
2452 cat >> confdefs.h <<\EOF
2453 #define _XOPEN_SOURCE 500
2457 { test "$extra_verbose" = "yes" && cat << \EOF
2458 Defining _XOPEN_SOURCE_EXTENDED
2460 cat >> confdefs.h <<\EOF
2461 #define _XOPEN_SOURCE_EXTENDED 1
2467 { test "$extra_verbose" = "yes" && cat << \EOF
2468 Defining _POSIX_C_SOURCE = 199506L
2470 cat >> confdefs.h <<\EOF
2471 #define _POSIX_C_SOURCE 199506L
2475 { test "$extra_verbose" = "yes" && cat << \EOF
2476 Defining _XOPEN_SOURCE = 500
2478 cat >> confdefs.h <<\EOF
2479 #define _XOPEN_SOURCE 500
2483 { test "$extra_verbose" = "yes" && cat << \EOF
2484 Defining _XOPEN_SOURCE_EXTENDED
2486 cat >> confdefs.h <<\EOF
2487 #define _XOPEN_SOURCE_EXTENDED 1
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2498 #if defined __SUNPRO_C
2500 #elif defined __DECC
2502 #elif defined __USLC__ && defined __SCO_VERSION__
2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2517 case "$conftest_rc" in
2518 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2519 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2520 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2528 echo "Extracting information from the machine- and system-dependent headers..."
2530 tempcname="conftest.c"
2534 cat > $tempcname < confdefs.h
2535 cat >> $tempcname <<EOF
2537 #define C_SWITCH_SITE
2538 #define C_SWITCH_X_SITE
2539 #define LD_SWITCH_SITE
2540 #define LD_SWITCH_X_SITE
2541 #define LD_SWITCH_X_SITE_AUX
2542 #define OS_RELEASE $os_release
2544 #ifdef config_opsysfile
2545 #include "$srcdir/src/$opsysfile"
2548 #ifdef config_machfile
2549 #include "$srcdir/src/$machfile"
2552 #ifndef LIBS_MACHINE
2553 #define LIBS_MACHINE
2555 configure___ libs_machine=LIBS_MACHINE
2560 configure___ libs_system=LIBS_SYSTEM
2562 #ifndef LIBS_TERMCAP
2563 #define LIBS_TERMCAP
2565 configure___ libs_termcap=LIBS_TERMCAP
2567 #ifndef LIB_STANDARD
2568 #define LIB_STANDARD
2570 configure___ libs_standard=LIB_STANDARD
2573 #ifndef OBJECTS_MACHINE
2574 #define OBJECTS_MACHINE
2576 configure___ objects_machine=OBJECTS_MACHINE
2578 #ifndef OBJECTS_SYSTEM
2579 #define OBJECTS_SYSTEM
2581 configure___ objects_system=OBJECTS_SYSTEM
2584 #ifndef C_SWITCH_MACHINE
2585 #define C_SWITCH_MACHINE
2587 configure___ c_switch_machine=C_SWITCH_MACHINE
2589 #ifndef C_SWITCH_SYSTEM
2590 #define C_SWITCH_SYSTEM
2592 configure___ c_switch_system=C_SWITCH_SYSTEM
2595 #ifndef LD_SWITCH_MACHINE
2596 #define LD_SWITCH_MACHINE
2598 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2600 #ifndef LD_SWITCH_SYSTEM
2601 #define LD_SWITCH_SYSTEM
2603 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2607 #define UNEXEC "unexec.o"
2609 configure___ unexec=UNEXEC
2612 #ifndef LD_SWITCH_SHARED
2613 #define LD_SWITCH_SHARED "-c"
2615 configure___ ld_switch_shared=LD_SWITCH_SHARED
2618 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2619 configure___ ordinary_ld=ORDINARY_LD
2621 #ifdef ORDINARY_LINK
2622 #define LD ORDINARY_LD
2623 #else /* no ORDINARY LINK */
2624 #ifdef COFF_ENCAPSULATE
2625 #define LD "\$(CC) -nostdlib"
2626 #else /* not COFF_ENCAPSULATE */
2629 #else /* ! defined (LINKER) */
2631 #endif /* ! defined (LINKER) */
2632 #endif /* ! defined (COFF_ENCAPSULATE) */
2633 #endif /* not ORDINARY_LINK */
2639 configure___ lib_gcc=LIB_GCC
2641 #ifndef LD_TEXT_START_ADDR
2642 #define LD_TEXT_START_ADDR
2644 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2647 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2649 #ifdef COFF_ENCAPSULATE
2650 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2651 #else /* ! defined (COFF_ENCAPSULATE) */
2652 #define START_FILES "pre-crt0.o /lib/crt0.o"
2653 #endif /* ! defined (COFF_ENCAPSULATE) */
2654 #else /* ! defined (NO_REMAP) */
2655 #define START_FILES "ecrt0.o"
2656 #endif /* ! defined (NO_REMAP) */
2657 #endif /* no ORDINARY_LINK */
2661 configure___ start_files=START_FILES
2663 #ifdef ORDINARY_LINK
2664 configure___ ordinary_link=yes
2666 configure___ ordinary_link=no
2669 #ifdef SYSTEM_MALLOC
2670 configure___ system_malloc=yes
2672 configure___ system_malloc=no
2676 configure___ have_terminfo=yes
2678 configure___ have_terminfo=no
2681 #ifdef MAIL_USE_FLOCK
2682 configure___ mail_use_flock=yes
2684 configure___ mail_use_flock=no
2687 #ifdef MAIL_USE_LOCKF
2688 configure___ mail_use_lockf=yes
2690 configure___ mail_use_lockf=no
2693 #ifdef MAIL_USE_LOCKING
2694 configure___ mail_use_locking=yes
2696 configure___ mail_use_locking=no
2699 #ifdef HAVE_WIN32_PROCESSES
2700 configure___ win32_processes=yes
2702 configure___ win32_processes=no
2707 CPP=`eval "echo $CPP $CPPFLAGS"`
2708 eval `$CPP -Isrc $tempcname \
2709 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2713 if test "$pdump" = "yes"; then
2722 test "$extra_verbose" = "yes" && \
2723 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 ""
2725 case "$opsys" in mingw* | cygwin*)
2726 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2727 cygwin_include=`eval "dirname $cygwin_include"` ;
2728 cygwin_include="-I$cygwin_include/../include" ;
2729 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2730 case "$opsys" in mingw*)
2731 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2736 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2739 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2741 if test "$__USLC__" = yes; then
2742 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2743 echo "configure:2744: checking for whether the -Kalloca compiler flag is needed" >&5
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2750 void *x = alloca(4);
2753 if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2761 xe_save_c_switch_system="$c_switch_system"
2762 c_switch_system="$c_switch_system -Kalloca"
2763 cat > conftest.$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2768 void *x = alloca(4);
2771 if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2779 c_switch_system="$xe_save_c_switch_system"
2782 echo "$ac_t""$need_kalloca" 1>&6
2783 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
2786 if test "$cflags_specified" = "no"; then
2787 if test "$GCC" = "yes"; then
2788 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2789 CFLAGS="$CFLAGS -Wsign-compare"
2790 if test "$xemacs_compiler" != "g++"; then
2791 CFLAGS="$CFLAGS -Wshadow"
2793 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2794 elif test "$__SUNPRO_C" = "yes"; then
2796 sol2 ) CFLAGS="-v -xO4" ;;
2797 sunos4* ) CFLAGS="-xO2";;
2799 elif test "$__DECC" = "yes"; then
2801 elif test "$CC" = "xlc"; then
2802 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2807 if test "$GCC" = "yes"; then
2808 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2809 echo "configure:2810: checking for buggy gcc versions" >&5
2810 GCC_VERSION=`$CC --version`
2811 case `uname -s`:`uname -m`:$GCC_VERSION in
2812 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2816 *-fno-schedule-insns*) ;;
2818 echo "$ac_t""yes" 1>&6
2819 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2820 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2821 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2827 Linux:alpha:egcs-2.91.*)
2828 echo "$ac_t""yes" 1>&6
2829 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2830 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2831 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2836 case "$GCC_VERSION" in
2839 *-fno-strength-reduce*) ;;
2841 echo "$ac_t""yes" 1>&6
2842 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2843 echo "configure: warning: -fno-strength-reduce." 1>&2
2844 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2850 *-fno-caller-saves*) ;;
2852 echo "$ac_t""yes" 1>&6
2853 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2854 echo "configure: warning: -fno-caller-saves." 1>&2
2855 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2862 echo "$ac_t""no" 1>&6
2865 if test "$pdump" != "yes"; then
2866 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2867 echo "configure:2868: checking for \"-z nocombreloc\" linker flag" >&5
2868 case "`ld --help 2>&1`" in
2869 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2870 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2871 *) echo "$ac_t""no" 1>&6 ;;
2877 if test "$GCC" = "yes"; then
2878 set x $ld_switch_system; shift; ld_switch_system=""
2879 while test -n "$1"; do
2881 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2882 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2884 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2890 if test "$GCC" = "yes"; then
2891 set x $ld_switch_machine; shift; ld_switch_machine=""
2892 while test -n "$1"; do
2894 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2895 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2897 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2903 if test "$GCC" = "yes"; then
2904 set x $ld_switch_site; shift; ld_switch_site=""
2905 while test -n "$1"; do
2907 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2908 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2910 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2916 if test "$GCC" = "yes"; then
2917 set x $LDFLAGS; shift; LDFLAGS=""
2918 while test -n "$1"; do
2920 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2921 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2923 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2929 if test "$GCC" = "yes"; then
2930 set x $ld_call_shared; shift; ld_call_shared=""
2931 while test -n "$1"; do
2933 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2934 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2936 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2942 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2943 echo " xemacs will be linked with \"$objects_machine\""
2945 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2946 echo " xemacs will be linked with \"$objects_system\""
2948 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2949 echo " xemacs will be linked with \"$unexec\""
2951 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2952 echo " xemacs will be linked with \"dumper.o\""
2955 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2956 echo "configure:2957: checking for dynodump" >&5
2957 if test "$unexec" != "unexsol2.o"; then
2958 echo "$ac_t""no" 1>&6
2960 echo "$ac_t""yes" 1>&6
2961 { test "$extra_verbose" = "yes" && cat << \EOF
2964 cat >> confdefs.h <<\EOF
2969 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2970 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2972 sparc ) dynodump_arch=sparc ;;
2973 *86* ) dynodump_arch=i386 ;;
2974 powerpc ) dynodump_arch=ppc ;;
2976 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
2980 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2982 if test "$unexec" = "unexaix.o"; then
2983 if test "$dynamic" = "no"; then
2984 start_flags="-Wl,-bnso,-bnodelcsect"
2985 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2986 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2987 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2989 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2990 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2993 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2994 echo "configure:2995: checking for terminateAndUnload in -lC" >&5
2995 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2997 xe_check_libs=" -lC "
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 /* Override any gcc2 internal prototype to avoid an error. */
3002 /* We use char because int might match the return type of a gcc2
3003 builtin and then its argument prototype would still apply. */
3004 char terminateAndUnload();
3007 terminateAndUnload()
3010 if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3012 eval "ac_cv_lib_$ac_lib_var=yes"
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3017 eval "ac_cv_lib_$ac_lib_var=no"
3022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3023 echo "$ac_t""yes" 1>&6
3024 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
3026 echo "$ac_t""no" 1>&6
3031 elif test -n "$ld_text_start_addr"; then
3032 start_flags="-T $ld_text_start_addr -e __start"
3038 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
3039 test -z "$linker" && linker='$(CC) -nostdlib'
3040 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3042 test "$GCC" != "yes" && lib_gcc=
3048 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3049 if test -n "$site_libraries"; then
3050 for arg in $site_libraries; do
3053 * ) test -d "$arg" || \
3054 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3057 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3061 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3062 if test -n "$site_includes"; then
3063 for arg in $site_includes; do
3066 * ) test -d "$arg" || \
3067 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3070 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3074 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3075 if test -n "$site_prefixes"; then
3076 for dir in $site_prefixes; do
3077 lib_dir="${dir}/lib"
3078 inc_dir="${dir}/include"
3079 if test ! -d "$dir"; then
3080 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3081 elif test ! -d "$lib_dir"; then
3082 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3084 if test -d "$inc_dir"; then
3085 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
3087 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
3093 for dir in "/usr/ccs/lib"; do
3094 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
3097 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3098 if test -n "$site_runtime_libraries"; then
3099 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3107 if test -n "$add_runtime_path"; then :;
3108 elif test "$dynamic" = "no"; then add_runtime_path=no
3109 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3110 else case "$opsys" in
3111 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3112 * ) add_runtime_path=no ;;
3116 if test "$add_runtime_path" = "yes"; then
3117 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3118 echo "configure:3119: checking "for runtime libraries flag"" >&5
3120 sol2 ) dash_r="-R" ;;
3121 decosf* | linux* | irix*) dash_r="-rpath " ;;
3124 for try_dash_r in "-R" "-R " "-rpath "; do
3125 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3127 if test "$GCC" = "yes"; then
3128 set x $xe_check_libs; shift; xe_check_libs=""
3129 while test -n "$1"; do
3131 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3132 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3134 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3147 if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3149 dash_r="$try_dash_r"
3151 echo "configure: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3156 test -n "$dash_r" && break
3159 if test -n "$dash_r";
3160 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3161 else echo "$ac_t""NONE" 1>&6
3165 xe_add_unique_runpath_dir='
3167 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3169 if test "$xe_add_p" = "yes"; then
3170 test -n "$runpath" && runpath="${runpath}:"
3171 runpath="${runpath}${xe_runpath_dir}"
3172 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3178 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3179 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3180 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3182 runpath="" runpath_dirs=""
3183 if test -n "$LD_RUN_PATH"; then
3184 runpath="$LD_RUN_PATH"
3185 elif test "$GCC" = "yes"; then
3186 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3187 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3188 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3189 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3190 case "$arg" in P,* | -L* | -R* )
3191 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3193 xe_runpath_dir="$dir"
3194 test "$xe_runpath_dir" != "/lib" -a \
3195 "$xe_runpath_dir" != "/usr/lib" -a \
3196 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3197 eval "$xe_add_unique_runpath_dir"
3202 ld_switch_run="$ld_switch_run_save"
3205 for arg in $ld_switch_site $ld_switch_x_site; do
3206 case "$arg" in -L*) {
3207 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3208 test "$xe_runpath_dir" != "/lib" -a \
3209 "$xe_runpath_dir" != "/usr/lib" -a \
3210 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3211 eval "$xe_add_unique_runpath_dir"
3214 if test "$opsys $need_motif" = "sol2 yes"; then
3215 xe_runpath_dir="/opt/SUNWdt/lib";
3216 eval "$xe_add_unique_runpath_dir";
3219 if test -n "$runpath"; then
3220 ld_switch_run="${dash_r}${runpath}"
3222 if test "$GCC" = "yes"; then
3223 set x $ld_switch_run; shift; ld_switch_run=""
3224 while test -n "$1"; do
3226 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3227 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3229 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3234 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3241 if test "$with_dlmalloc" != "no"; then
3246 after_morecore_hook_exists=yes
3247 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3248 echo "configure:3249: checking for malloc_set_state" >&5
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3253 /* System header to define __stub macros and hopefully few prototypes,
3254 which can conflict with char malloc_set_state(); below. */
3256 /* Override any gcc2 internal prototype to avoid an error. */
3257 /* We use char because int might match the return type of a gcc2
3258 builtin and then its argument prototype would still apply. */
3259 char malloc_set_state();
3263 /* The GNU C library defines this for functions which it implements
3264 to always fail with ENOSYS. Some functions are actually named
3265 something starting with __ and the normal name is an alias. */
3266 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3274 if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3276 eval "ac_cv_func_malloc_set_state=yes"
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3281 eval "ac_cv_func_malloc_set_state=no"
3285 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3289 echo "$ac_t""no" 1>&6
3293 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3294 echo "configure:3295: checking whether __after_morecore_hook exists" >&5
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 extern void (* __after_morecore_hook)();
3300 __after_morecore_hook = 0
3303 if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3305 echo "$ac_t""yes" 1>&6
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3310 echo "$ac_t""no" 1>&6
3311 after_morecore_hook_exists=no
3314 if test "$system_malloc" = "yes" ; then
3317 - The GNU allocators don't work with this system configuration."
3318 elif test "$with_system_malloc" = "yes" ; then
3321 - User chose not to use GNU allocators."
3322 elif test "$with_debug_malloc" = "yes" ; then
3325 - User chose to use Debugging Malloc."
3328 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3330 - Using Doug Lea's new malloc from the GNU C Library."
3331 { test "$extra_verbose" = "yes" && cat << \EOF
3332 Defining DOUG_LEA_MALLOC
3334 cat >> confdefs.h <<\EOF
3335 #define DOUG_LEA_MALLOC 1
3339 if test "$after_morecore_hook_exists" = "no" ; then
3341 - Using Doug Lea's new malloc from the Linux C Library."
3342 { test "$extra_verbose" = "yes" && cat << \EOF
3343 Defining _NO_MALLOC_WARNING_
3345 cat >> confdefs.h <<\EOF
3346 #define _NO_MALLOC_WARNING_ 1
3356 # Extract the first word of "ranlib", so it can be a program name with args.
3357 set dummy ranlib; ac_word=$2
3358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3359 echo "configure:3360: checking for $ac_word" >&5
3361 if test -n "$RANLIB"; then
3362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3366 for ac_dir in $ac_dummy; do
3367 test -z "$ac_dir" && ac_dir=.
3368 if test -f $ac_dir/$ac_word; then
3369 ac_cv_prog_RANLIB="ranlib"
3374 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3376 RANLIB="$ac_cv_prog_RANLIB"
3377 if test -n "$RANLIB"; then
3378 echo "$ac_t""$RANLIB" 1>&6
3380 echo "$ac_t""no" 1>&6
3384 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3385 if test -f $ac_dir/install-sh; then
3387 ac_install_sh="$ac_aux_dir/install-sh -c"
3389 elif test -f $ac_dir/install.sh; then
3391 ac_install_sh="$ac_aux_dir/install.sh -c"
3395 if test -z "$ac_aux_dir"; then
3396 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3398 ac_config_guess=$ac_aux_dir/config.guess
3399 ac_config_sub=$ac_aux_dir/config.sub
3400 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3402 # Find a good install program. We prefer a C program (faster),
3403 # so one script is as good as another. But avoid the broken or
3404 # incompatible versions:
3405 # SysV /etc/install, /usr/sbin/install
3406 # SunOS /usr/etc/install
3407 # IRIX /sbin/install
3409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3412 # ./install, which can be erroneously created by make from ./install.sh.
3413 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3414 echo "configure:3415: checking for a BSD compatible install" >&5
3415 if test -z "$INSTALL"; then
3417 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3418 for ac_dir in $PATH; do
3419 # Account for people who put trailing slashes in PATH elements.
3421 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3423 # OSF1 and SCO ODT 3.0 have their own names for install.
3424 # Don't use installbsd from OSF since it installs stuff as root
3426 for ac_prog in ginstall scoinst install; do
3427 if test -f $ac_dir/$ac_prog; then
3428 if test $ac_prog = install &&
3429 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3430 # AIX install. It has an incompatible calling convention.
3433 ac_cv_path_install="$ac_dir/$ac_prog -c"
3443 if test "${ac_cv_path_install+set}" = set; then
3444 INSTALL="$ac_cv_path_install"
3446 # As a last resort, use the slow shell script. We don't cache a
3447 # path for INSTALL within a source directory, because that will
3448 # break other packages using the cache if that directory is
3449 # removed, or if the path is relative.
3450 INSTALL="$ac_install_sh"
3453 echo "$ac_t""$INSTALL" 1>&6
3455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3456 # It thinks the first close brace ends the variable substitution.
3457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3463 for ac_prog in 'bison -y' byacc
3465 # Extract the first word of "$ac_prog", so it can be a program name with args.
3466 set dummy $ac_prog; ac_word=$2
3467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3468 echo "configure:3469: checking for $ac_word" >&5
3470 if test -n "$YACC"; then
3471 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3475 for ac_dir in $ac_dummy; do
3476 test -z "$ac_dir" && ac_dir=.
3477 if test -f $ac_dir/$ac_word; then
3478 ac_cv_prog_YACC="$ac_prog"
3484 YACC="$ac_cv_prog_YACC"
3485 if test -n "$YACC"; then
3486 echo "$ac_t""$YACC" 1>&6
3488 echo "$ac_t""no" 1>&6
3491 test -n "$YACC" && break
3493 test -n "$YACC" || YACC="yacc"
3496 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
3498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3500 echo "configure:3501: checking for $ac_hdr" >&5
3502 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3508 { (eval echo configure:3509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3510 if test -z "$ac_err"; then
3512 eval "ac_cv_header_$ac_safe=yes"
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3518 eval "ac_cv_header_$ac_safe=no"
3521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3522 echo "$ac_t""yes" 1>&6
3523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3524 { test "$extra_verbose" = "yes" && cat << EOF
3527 cat >> confdefs.h <<EOF
3528 #define $ac_tr_hdr 1
3533 echo "$ac_t""no" 1>&6
3537 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3538 echo "configure:3539: checking for sys/wait.h that is POSIX.1 compatible" >&5
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 #include <sys/types.h>
3544 #include <sys/wait.h>
3546 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3549 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3554 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 ac_cv_header_sys_wait_h=yes
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3564 ac_cv_header_sys_wait_h=no
3568 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3569 if test $ac_cv_header_sys_wait_h = yes; then
3570 { test "$extra_verbose" = "yes" && cat << \EOF
3571 Defining HAVE_SYS_WAIT_H
3573 cat >> confdefs.h <<\EOF
3574 #define HAVE_SYS_WAIT_H 1
3580 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3581 echo "configure:3582: checking for ANSI C header files" >&5
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3592 { (eval echo configure:3593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3594 if test -z "$ac_err"; then
3596 ac_cv_header_stdc=yes
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3602 ac_cv_header_stdc=no
3606 if test $ac_cv_header_stdc = yes; then
3607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614 egrep "memchr" >/dev/null 2>&1; then
3618 ac_cv_header_stdc=no
3624 if test $ac_cv_header_stdc = yes; then
3625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632 egrep "free" >/dev/null 2>&1; then
3636 ac_cv_header_stdc=no
3642 if test $ac_cv_header_stdc = yes; then
3643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3648 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3649 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3651 int main () { int i; for (i = 0; i < 256; i++)
3652 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3656 if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3664 ac_cv_header_stdc=no
3669 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3670 if test $ac_cv_header_stdc = yes; then
3671 { test "$extra_verbose" = "yes" && cat << \EOF
3672 Defining STDC_HEADERS
3674 cat >> confdefs.h <<\EOF
3675 #define STDC_HEADERS 1
3681 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3682 echo "configure:3683: checking whether time.h and sys/time.h may both be included" >&5
3684 cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 #include <sys/types.h>
3688 #include <sys/time.h>
3694 if { (eval echo configure:3695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3696 ac_cv_header_time=yes
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3701 ac_cv_header_time=no
3705 echo "$ac_t""$ac_cv_header_time" 1>&6
3706 if test $ac_cv_header_time = yes; then
3707 { test "$extra_verbose" = "yes" && cat << \EOF
3708 Defining TIME_WITH_SYS_TIME
3710 cat >> confdefs.h <<\EOF
3711 #define TIME_WITH_SYS_TIME 1
3717 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3718 echo "configure:3719: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 #include <sys/types.h>
3725 /* NetBSD declares sys_siglist in unistd.h. */
3726 #ifdef HAVE_UNISTD_H
3730 char *msg = *(sys_siglist + 1);
3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3735 ac_cv_decl_sys_siglist=yes
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 ac_cv_decl_sys_siglist=no
3744 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3745 if test $ac_cv_decl_sys_siglist = yes; then
3746 { test "$extra_verbose" = "yes" && cat << \EOF
3747 Defining SYS_SIGLIST_DECLARED
3749 cat >> confdefs.h <<\EOF
3750 #define SYS_SIGLIST_DECLARED 1
3758 echo $ac_n "checking for utime""... $ac_c" 1>&6
3759 echo "configure:3760: checking for utime" >&5
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <sys/types.h>
3766 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3769 if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3771 echo "$ac_t""yes" 1>&6
3772 { test "$extra_verbose" = "yes" && cat << \EOF
3775 cat >> confdefs.h <<\EOF
3776 #define HAVE_UTIME 1
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3784 echo "$ac_t""no" 1>&6
3785 for ac_func in utimes
3787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3788 echo "configure:3789: checking for $ac_func" >&5
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 /* System header to define __stub macros and hopefully few prototypes,
3794 which can conflict with char $ac_func(); below. */
3796 /* Override any gcc2 internal prototype to avoid an error. */
3797 /* We use char because int might match the return type of a gcc2
3798 builtin and then its argument prototype would still apply. */
3803 /* The GNU C library defines this for functions which it implements
3804 to always fail with ENOSYS. Some functions are actually named
3805 something starting with __ and the normal name is an alias. */
3806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3814 if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3816 eval "ac_cv_func_$ac_func=yes"
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 eval "ac_cv_func_$ac_func=no"
3825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3826 echo "$ac_t""yes" 1>&6
3827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3828 { test "$extra_verbose" = "yes" && cat << EOF
3829 Defining $ac_tr_func
3831 cat >> confdefs.h <<EOF
3832 #define $ac_tr_func 1
3837 echo "$ac_t""no" 1>&6
3845 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3846 echo "configure:3847: checking return type of signal handlers" >&5
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 #include <sys/types.h>
3857 extern "C" void (*signal (int, void (*)(int)))(int);
3859 void (*signal ()) ();
3866 if { (eval echo configure:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3868 ac_cv_type_signal=void
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3873 ac_cv_type_signal=int
3877 echo "$ac_t""$ac_cv_type_signal" 1>&6
3878 { test "$extra_verbose" = "yes" && cat << EOF
3879 Defining RETSIGTYPE = $ac_cv_type_signal
3881 cat >> confdefs.h <<EOF
3882 #define RETSIGTYPE $ac_cv_type_signal
3887 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3888 echo "configure:3889: checking for size_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])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3902 ac_cv_type_size_t=yes
3905 ac_cv_type_size_t=no
3909 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3910 if test $ac_cv_type_size_t = no; then
3911 { test "$extra_verbose" = "yes" && cat << \EOF
3912 Defining size_t = unsigned
3914 cat >> confdefs.h <<\EOF
3915 #define size_t unsigned
3921 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3922 echo "configure:3923: checking for pid_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])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3936 ac_cv_type_pid_t=yes
3943 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3944 if test $ac_cv_type_pid_t = no; then
3945 { test "$extra_verbose" = "yes" && cat << \EOF
3946 Defining pid_t = int
3948 cat >> confdefs.h <<\EOF
3955 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3956 echo "configure:3957: checking for uid_t in sys/types.h" >&5
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 #include <sys/types.h>
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 egrep "uid_t" >/dev/null 2>&1; then
3966 ac_cv_type_uid_t=yes
3974 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3975 if test $ac_cv_type_uid_t = no; then
3976 { test "$extra_verbose" = "yes" && cat << \EOF
3977 Defining uid_t = int
3979 cat >> confdefs.h <<\EOF
3984 { test "$extra_verbose" = "yes" && cat << \EOF
3985 Defining gid_t = int
3987 cat >> confdefs.h <<\EOF
3994 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3995 echo "configure:3996: checking for mode_t" >&5
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 #include <sys/types.h>
4006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4007 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4009 ac_cv_type_mode_t=yes
4012 ac_cv_type_mode_t=no
4016 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4017 if test $ac_cv_type_mode_t = no; then
4018 { test "$extra_verbose" = "yes" && cat << \EOF
4019 Defining mode_t = int
4021 cat >> confdefs.h <<\EOF
4028 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4029 echo "configure:4030: checking for off_t" >&5
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 #include <sys/types.h>
4040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4041 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4043 ac_cv_type_off_t=yes
4050 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4051 if test $ac_cv_type_off_t = no; then
4052 { test "$extra_verbose" = "yes" && cat << \EOF
4053 Defining off_t = long
4055 cat >> confdefs.h <<\EOF
4062 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4063 echo "configure:4064: checking for ssize_t" >&5
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 #include <sys/types.h>
4074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4077 ac_cv_type_ssize_t=yes
4080 ac_cv_type_ssize_t=no
4084 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4085 if test $ac_cv_type_ssize_t = no; then
4086 { test "$extra_verbose" = "yes" && cat << \EOF
4087 Defining ssize_t = int
4089 cat >> confdefs.h <<\EOF
4097 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4098 echo "configure:4099: checking for socklen_t" >&5
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 #include <sys/types.h>
4103 #include <sys/socket.h>
4110 if { (eval echo configure:4111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4112 echo "$ac_t""yes" 1>&6
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4118 cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 #include <sys/types.h>
4122 #include <sys/socket.h>
4123 int accept (int, struct sockaddr *, size_t *);
4129 if { (eval echo configure:4130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4132 echo "$ac_t""size_t" 1>&6
4133 { test "$extra_verbose" = "yes" && cat << \EOF
4134 Defining socklen_t = size_t
4136 cat >> confdefs.h <<\EOF
4137 #define socklen_t size_t
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4146 echo "$ac_t""int" 1>&6
4147 { test "$extra_verbose" = "yes" && cat << \EOF
4148 Defining socklen_t = int
4150 cat >> confdefs.h <<\EOF
4151 #define socklen_t int
4160 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4161 echo "configure:4162: checking for struct timeval" >&5
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 #ifdef TIME_WITH_SYS_TIME
4166 #include <sys/time.h>
4169 #ifdef HAVE_SYS_TIME_H
4170 #include <sys/time.h>
4176 static struct timeval x; x.tv_sec = x.tv_usec;
4179 if { (eval echo configure:4180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4181 echo "$ac_t""yes" 1>&6
4183 { test "$extra_verbose" = "yes" && cat << \EOF
4184 Defining HAVE_TIMEVAL
4186 cat >> confdefs.h <<\EOF
4187 #define HAVE_TIMEVAL 1
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4195 echo "$ac_t""no" 1>&6
4200 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4201 echo "configure:4202: checking whether struct tm is in sys/time.h or time.h" >&5
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 #include <sys/types.h>
4209 struct tm *tp; tp->tm_sec;
4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4214 ac_cv_struct_tm=time.h
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4219 ac_cv_struct_tm=sys/time.h
4223 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4224 if test $ac_cv_struct_tm = sys/time.h; then
4225 { test "$extra_verbose" = "yes" && cat << \EOF
4226 Defining TM_IN_SYS_TIME
4228 cat >> confdefs.h <<\EOF
4229 #define TM_IN_SYS_TIME 1
4235 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4236 echo "configure:4237: checking for tm_zone in struct tm" >&5
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241 #include <sys/types.h>
4242 #include <$ac_cv_struct_tm>
4244 struct tm tm; tm.tm_zone;
4247 if { (eval echo configure:4248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4249 ac_cv_struct_tm_zone=yes
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4254 ac_cv_struct_tm_zone=no
4258 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4259 if test "$ac_cv_struct_tm_zone" = yes; then
4260 { test "$extra_verbose" = "yes" && cat << \EOF
4261 Defining HAVE_TM_ZONE
4263 cat >> confdefs.h <<\EOF
4264 #define HAVE_TM_ZONE 1
4269 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4270 echo "configure:4271: checking for tzname" >&5
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4276 #ifndef tzname /* For SGI. */
4277 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4285 ac_cv_var_tzname=yes
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4294 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4295 if test $ac_cv_var_tzname = yes; then
4296 { test "$extra_verbose" = "yes" && cat << \EOF
4297 Defining HAVE_TZNAME
4299 cat >> confdefs.h <<\EOF
4300 #define HAVE_TZNAME 1
4308 echo $ac_n "checking for working const""... $ac_c" 1>&6
4309 echo "configure:4310: checking for working const" >&5
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4317 /* Ultrix mips cc rejects this. */
4318 typedef int charset[2]; const charset x;
4319 /* SunOS 4.1.1 cc rejects this. */
4320 char const *const *ccp;
4322 /* NEC SVR4.0.2 mips cc rejects this. */
4323 struct point {int x, y;};
4324 static struct point const zero = {0,0};
4325 /* AIX XL C 1.02.0.0 rejects this.
4326 It does not let you subtract one const X* pointer from another in an arm
4327 of an if-expression whose if-part is not a constant expression */
4328 const char *g = "string";
4329 ccp = &g + (g ? g-g : 0);
4330 /* HPUX 7.0 cc rejects these. */
4333 ccp = (char const *const *) p;
4334 { /* SCO 3.2v4 cc rejects this. */
4336 char const *s = 0 ? (char *) 0 : (char const *) 0;
4340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4342 const int *foo = &x[0];
4345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4346 typedef const int *iptr;
4350 { /* AIX XL C 1.02.0.0 rejects this saying
4351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4352 struct s { int j; const int *ap[3]; };
4353 struct s *b; b->j = 5;
4355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4361 if { (eval echo configure:4362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4372 echo "$ac_t""$ac_cv_c_const" 1>&6
4373 if test $ac_cv_c_const = no; then
4374 { test "$extra_verbose" = "yes" && cat << \EOF
4377 cat >> confdefs.h <<\EOF
4385 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4386 echo "configure:4387: checking whether ${MAKE-make} sets \${MAKE}" >&5
4387 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4389 cat > conftestmake <<\EOF
4391 @echo 'ac_maketemp="${MAKE}"'
4393 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4394 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4395 if test -n "$ac_maketemp"; then
4396 eval ac_cv_prog_make_${ac_make}_set=yes
4398 eval ac_cv_prog_make_${ac_make}_set=no
4401 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4405 echo "$ac_t""no" 1>&6
4406 SET_MAKE="MAKE=${MAKE-make}"
4410 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4411 echo "configure:4412: checking whether byte ordering is bigendian" >&5
4413 ac_cv_c_bigendian=unknown
4414 # See if sys/param.h defines the BYTE_ORDER macro.
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 #include <sys/types.h>
4419 #include <sys/param.h>
4422 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4427 if { (eval echo configure:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4429 # It does; now see whether it defined to BIG_ENDIAN or not.
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 #include <sys/types.h>
4434 #include <sys/param.h>
4437 #if BYTE_ORDER != BIG_ENDIAN
4442 if { (eval echo configure:4443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4444 ac_cv_c_bigendian=yes
4446 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5
4449 ac_cv_c_bigendian=no
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4457 if test $ac_cv_c_bigendian = unknown; then
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4462 /* Are we little or big endian? From Harbison&Steele. */
4466 char c[sizeof (long)];
4469 exit (u.c[sizeof (long) - 1] == 1);
4472 if { (eval echo configure:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4474 ac_cv_c_bigendian=no
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 ac_cv_c_bigendian=yes
4485 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4486 if test $ac_cv_c_bigendian = yes; then
4487 { test "$extra_verbose" = "yes" && cat << \EOF
4488 Defining WORDS_BIGENDIAN
4490 cat >> confdefs.h <<\EOF
4491 #define WORDS_BIGENDIAN 1
4498 echo $ac_n "checking size of short""... $ac_c" 1>&6
4499 echo "configure:4500: checking size of short" >&5
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4505 #include <sys/types.h>
4508 FILE *f=fopen("conftestval", "w");
4510 fprintf(f, "%d\n", sizeof(short));
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4516 ac_cv_sizeof_short=`cat conftestval`
4519 echo "configure: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4522 ac_cv_sizeof_short=0
4525 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4526 { test "$extra_verbose" = "yes" && cat << EOF
4527 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4529 cat >> confdefs.h <<EOF
4530 #define SIZEOF_SHORT $ac_cv_sizeof_short
4535 if test "$ac_cv_sizeof_short" = 0; then
4537 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4538 echo "*** PANIC *** Please examine config.log for compilation errors."
4541 echo $ac_n "checking size of int""... $ac_c" 1>&6
4542 echo "configure:4543: checking size of int" >&5
4544 cat > conftest.$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4548 #include <sys/types.h>
4551 FILE *f=fopen("conftestval", "w");
4553 fprintf(f, "%d\n", sizeof(int));
4557 if { (eval echo configure:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4559 ac_cv_sizeof_int=`cat conftestval`
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4568 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4569 { test "$extra_verbose" = "yes" && cat << EOF
4570 Defining SIZEOF_INT = $ac_cv_sizeof_int
4572 cat >> confdefs.h <<EOF
4573 #define SIZEOF_INT $ac_cv_sizeof_int
4578 echo $ac_n "checking size of long""... $ac_c" 1>&6
4579 echo "configure:4580: checking size of long" >&5
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4585 #include <sys/types.h>
4588 FILE *f=fopen("conftestval", "w");
4590 fprintf(f, "%d\n", sizeof(long));
4594 if { (eval echo configure:4595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4596 ac_cv_sizeof_long=`cat conftestval`
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4605 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4606 { test "$extra_verbose" = "yes" && cat << EOF
4607 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4609 cat >> confdefs.h <<EOF
4610 #define SIZEOF_LONG $ac_cv_sizeof_long
4615 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4616 echo "configure:4617: checking size of long long" >&5
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4622 #include <sys/types.h>
4625 FILE *f=fopen("conftestval", "w");
4627 fprintf(f, "%d\n", sizeof(long long));
4631 if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4633 ac_cv_sizeof_long_long=`cat conftestval`
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 ac_cv_sizeof_long_long=0
4642 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4643 { test "$extra_verbose" = "yes" && cat << EOF
4644 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4646 cat >> confdefs.h <<EOF
4647 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4652 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4653 echo "configure:4654: checking size of void *" >&5
4655 cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4659 #include <sys/types.h>
4662 FILE *f=fopen("conftestval", "w");
4664 fprintf(f, "%d\n", sizeof(void *));
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4670 ac_cv_sizeof_void_p=`cat conftestval`
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4676 ac_cv_sizeof_void_p=0
4679 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4680 { test "$extra_verbose" = "yes" && cat << EOF
4681 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4683 cat >> confdefs.h <<EOF
4684 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4691 cygwin* ) cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 #include <cygwin/types.h>
4696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4697 egrep "typedef.*intptr_t;" >/dev/null 2>&1; then
4699 echo "$ac_t""yes" 1>&6
4700 { test "$extra_verbose" = "yes" && cat << \EOF
4701 Defining INTPTR_T_IN_CYGWIN_TYPES_H = 1
4703 cat >> confdefs.h <<\EOF
4704 #define INTPTR_T_IN_CYGWIN_TYPES_H 1
4710 echo "$ac_t""no" 1>&6
4716 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4717 echo "configure:4718: checking for long file names" >&5
4719 ac_cv_sys_long_file_names=yes
4720 # Test for long file names in all the places we know might matter:
4721 # . the current directory, where building will happen
4722 # $prefix/lib where we will be installing things
4723 # $exec_prefix/lib likewise
4724 # eval it to expand exec_prefix.
4725 # $TMPDIR if set, where it might want to write temporary files
4726 # if $TMPDIR is not set:
4727 # /tmp where it might want to write temporary files
4730 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4731 ac_tmpdirs="$TMPDIR"
4733 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4735 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4736 test -d $ac_dir || continue
4737 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4738 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4739 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4740 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4741 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4742 ac_cv_sys_long_file_names=no
4743 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4746 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4749 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4750 if test $ac_cv_sys_long_file_names = yes; then
4751 { test "$extra_verbose" = "yes" && cat << \EOF
4752 Defining HAVE_LONG_FILE_NAMES
4754 cat >> confdefs.h <<\EOF
4755 #define HAVE_LONG_FILE_NAMES 1
4762 echo $ac_n "checking for sin""... $ac_c" 1>&6
4763 echo "configure:4764: checking for sin" >&5
4765 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4768 /* System header to define __stub macros and hopefully few prototypes,
4769 which can conflict with char sin(); below. */
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4778 /* The GNU C library defines this for functions which it implements
4779 to always fail with ENOSYS. Some functions are actually named
4780 something starting with __ and the normal name is an alias. */
4781 #if defined (__stub_sin) || defined (__stub___sin)
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 eval "ac_cv_func_sin=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_func_sin=no"
4800 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4804 echo "$ac_t""no" 1>&6
4806 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4807 echo "configure:4808: checking for sin in -lm" >&5
4808 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4810 xe_check_libs=" -lm "
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 /* Override any gcc2 internal prototype to avoid an error. */
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4823 if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4825 eval "ac_cv_lib_$ac_lib_var=yes"
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4830 eval "ac_cv_lib_$ac_lib_var=no"
4835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4836 echo "$ac_t""yes" 1>&6
4837 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4838 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4839 { test "$extra_verbose" = "yes" && cat << EOF
4842 cat >> confdefs.h <<EOF
4843 #define $ac_tr_lib 1
4847 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4850 echo "$ac_t""no" 1>&6
4857 { test "$extra_verbose" = "yes" && cat << \EOF
4858 Defining LISP_FLOAT_TYPE
4860 cat >> confdefs.h <<\EOF
4861 #define LISP_FLOAT_TYPE 1
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4871 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4874 if { (eval echo configure:4875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4876 { test "$extra_verbose" = "yes" && cat << \EOF
4877 Defining HAVE_INVERSE_HYPERBOLIC
4879 cat >> confdefs.h <<\EOF
4880 #define HAVE_INVERSE_HYPERBOLIC 1
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4890 echo "checking type of mail spool file locking" 1>&6
4891 echo "configure:4892: checking type of mail spool file locking" >&5
4892 for ac_func in lockf flock
4894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4895 echo "configure:4896: checking for $ac_func" >&5
4897 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4900 /* System header to define __stub macros and hopefully few prototypes,
4901 which can conflict with char $ac_func(); below. */
4903 /* Override any gcc2 internal prototype to avoid an error. */
4904 /* We use char because int might match the return type of a gcc2
4905 builtin and then its argument prototype would still apply. */
4910 /* The GNU C library defines this for functions which it implements
4911 to always fail with ENOSYS. Some functions are actually named
4912 something starting with __ and the normal name is an alias. */
4913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4923 eval "ac_cv_func_$ac_func=yes"
4925 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4928 eval "ac_cv_func_$ac_func=no"
4932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4935 { test "$extra_verbose" = "yes" && cat << EOF
4936 Defining $ac_tr_func
4938 cat >> confdefs.h <<EOF
4939 #define $ac_tr_func 1
4944 echo "$ac_t""no" 1>&6
4948 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4949 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4950 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4951 if test -z "$mail_locking"; then
4952 case "$opsys" in cygwin* | mingw*)
4957 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4958 Defining MAIL_LOCK_LOCKF
4960 cat >> confdefs.h <<\EOF
4961 #define MAIL_LOCK_LOCKF 1
4965 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4966 Defining MAIL_LOCK_FLOCK
4968 cat >> confdefs.h <<\EOF
4969 #define MAIL_LOCK_FLOCK 1
4973 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4974 Defining MAIL_LOCK_LOCKING
4976 cat >> confdefs.h <<\EOF
4977 #define MAIL_LOCK_LOCKING 1
4981 elif test "$mail_locking" = "pop"; then
4984 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4985 Defining MAIL_LOCK_DOT
4987 cat >> confdefs.h <<\EOF
4988 #define MAIL_LOCK_DOT 1
4993 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4994 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4995 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4996 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4997 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4998 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5000 case "$opsys" in decosf*)
5002 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5003 echo "configure:5004: checking for cma_open in -lpthreads" >&5
5004 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5006 xe_check_libs=" -lpthreads "
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5010 /* Override any gcc2 internal prototype to avoid an error. */
5011 /* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5019 if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5021 eval "ac_cv_lib_$ac_lib_var=yes"
5023 echo "configure: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5026 eval "ac_cv_lib_$ac_lib_var=no"
5031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5032 echo "$ac_t""yes" 1>&6
5033 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5035 { test "$extra_verbose" = "yes" && cat << EOF
5038 cat >> confdefs.h <<EOF
5039 #define $ac_tr_lib 1
5043 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
5046 echo "$ac_t""no" 1>&6
5050 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5051 c_switch_site="$c_switch_site -threads" ;;
5055 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5056 echo "configure:5057: checking whether the -xildoff compiler flag is required" >&5
5057 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5058 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5059 then echo "$ac_t""no" 1>&6;
5060 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
5062 else echo "$ac_t""no" 1>&6
5065 if test "$opsys" = "sol2"; then
5066 if test "$os_release" -ge 56; then
5067 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5068 echo "configure:5069: checking for \"-z ignore\" linker flag" >&5
5069 case "`ld -h 2>&1`" in
5070 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5071 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5072 *) echo "$ac_t""no" 1>&6 ;;
5078 echo "checking "for specified window system"" 1>&6
5079 echo "configure:5080: checking "for specified window system"" >&5
5085 if test "$with_gnome" != "no"; then
5086 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5087 echo "configure:5088: checking for GNOME configuration script" >&5
5088 for possible in gnome-config
5090 possible_version=`${possible} --version 2> /dev/null`
5091 if test "x${possible_version}" != "x"; then
5092 GNOME_CONFIG="${possible}"
5098 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5101 if test "${GNOME_CONFIG}" != "no"; then
5102 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5103 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5104 { test "$extra_verbose" = "yes" && cat << \EOF
5107 cat >> confdefs.h <<\EOF
5108 #define HAVE_GNOME 1
5112 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5113 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5116 if test "$with_gtk" != "no";then
5117 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5118 echo "configure:5119: checking for GTK configuration script" >&5
5119 for possible in gtk12-config gtk14-config gtk-config
5121 possible_version=`${possible} --version 2> /dev/null`
5122 if test "x${possible_version}" != "x"; then
5123 GTK_CONFIG="${possible}"
5125 case "${possible_version}" in
5126 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5127 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5132 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5135 echo "$ac_t""${GTK_CONFIG}" 1>&6
5138 if test "${GTK_CONFIG}" != "no"; then
5139 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5140 echo "configure:5141: checking gtk version" >&5
5141 GTK_VERSION=`${GTK_CONFIG} --version`
5142 echo "$ac_t""${GTK_VERSION}" 1>&6
5144 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5145 echo "configure:5146: checking gtk libs" >&5
5146 GTK_LIBS=`${GTK_CONFIG} --libs`
5147 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5148 echo "$ac_t""${GTK_LIBS}" 1>&6
5150 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5151 echo "configure:5152: checking gtk cflags" >&5
5152 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5153 if test "$GCC" = "yes"; then
5154 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5156 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5157 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5160 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5161 echo "configure:5162: checking for main in -lgdk_imlib" >&5
5162 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5164 xe_check_libs=" -lgdk_imlib "
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 eval "ac_cv_lib_$ac_lib_var=yes"
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5180 eval "ac_cv_lib_$ac_lib_var=no"
5185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5186 echo "$ac_t""yes" 1>&6
5187 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5189 echo "$ac_t""no" 1>&6
5194 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5195 echo "configure:5196: checking for Imlib_init in -lImlib" >&5
5196 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5198 xe_check_libs=" -lImlib "
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5211 if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5213 eval "ac_cv_lib_$ac_lib_var=yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5218 eval "ac_cv_lib_$ac_lib_var=no"
5223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5224 echo "$ac_t""yes" 1>&6
5225 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5227 echo "$ac_t""no" 1>&6
5231 for ac_func in gdk_imlib_init
5233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5234 echo "configure:5235: checking for $ac_func" >&5
5236 cat > conftest.$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5239 /* System header to define __stub macros and hopefully few prototypes,
5240 which can conflict with char $ac_func(); below. */
5242 /* Override any gcc2 internal prototype to avoid an error. */
5243 /* We use char because int might match the return type of a gcc2
5244 builtin and then its argument prototype would still apply. */
5249 /* The GNU C library defines this for functions which it implements
5250 to always fail with ENOSYS. Some functions are actually named
5251 something starting with __ and the normal name is an alias. */
5252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262 eval "ac_cv_func_$ac_func=yes"
5264 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5267 eval "ac_cv_func_$ac_func=no"
5271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5272 echo "$ac_t""yes" 1>&6
5273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5274 { test "$extra_verbose" = "yes" && cat << EOF
5275 Defining $ac_tr_func
5277 cat >> confdefs.h <<EOF
5278 #define $ac_tr_func 1
5283 echo "$ac_t""no" 1>&6
5288 { test "$extra_verbose" = "yes" && cat << \EOF
5291 cat >> confdefs.h <<\EOF
5296 { test "$extra_verbose" = "yes" && cat << \EOF
5299 cat >> confdefs.h <<\EOF
5310 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5311 test "${with_toolbars}" != no && with_toolbars=gtk
5312 test "${with_menubars}" != "no" && with_menubars=gtk
5313 test "${with_dialogs}" != "no" && with_dialogs=gtk
5314 test "${with_widgets}" != "no" && with_widgets=gtk
5316 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5317 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5319 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5320 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5322 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5323 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5325 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5326 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5329 OLD_CFLAGS="${CFLAGS}"
5330 OLD_CPPFLAGS="${CPPFLAGS}"
5331 OLD_LDFLAGS="${LDFLAGS}"
5332 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5333 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5334 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5335 for ac_hdr in glade/glade.h glade.h
5337 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5339 echo "configure:5340: checking for $ac_hdr" >&5
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5347 { (eval echo configure:5348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5349 if test -z "$ac_err"; then
5351 eval "ac_cv_header_$ac_safe=yes"
5354 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5357 eval "ac_cv_header_$ac_safe=no"
5360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5363 { test "$extra_verbose" = "yes" && cat << EOF
5366 cat >> confdefs.h <<EOF
5367 #define $ac_tr_hdr 1
5372 echo "$ac_t""no" 1>&6
5377 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5378 echo "configure:5379: checking for main in -lxml" >&5
5379 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5381 xe_check_libs=" -lxml "
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5392 eval "ac_cv_lib_$ac_lib_var=yes"
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5397 eval "ac_cv_lib_$ac_lib_var=no"
5402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5403 echo "$ac_t""yes" 1>&6
5404 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5406 echo "$ac_t""no" 1>&6
5411 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5412 echo "configure:5413: checking for main in -lglade" >&5
5413 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5415 xe_check_libs=" -lglade "
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5426 eval "ac_cv_lib_$ac_lib_var=yes"
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5431 eval "ac_cv_lib_$ac_lib_var=no"
5436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5437 echo "$ac_t""yes" 1>&6
5438 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5440 echo "$ac_t""no" 1>&6
5445 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5446 echo "configure:5447: checking for main in -lglade-gnome" >&5
5447 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5449 xe_check_libs=" -lglade-gnome "
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5458 if { (eval echo configure:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5460 eval "ac_cv_lib_$ac_lib_var=yes"
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5465 eval "ac_cv_lib_$ac_lib_var=no"
5470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5471 echo "$ac_t""yes" 1>&6
5472 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5474 echo "$ac_t""no" 1>&6
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5481 #include <glade/glade-xml.h>
5483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5486 echo "$ac_t""yes" 1>&6
5487 { test "$extra_verbose" = "yes" && cat << \EOF
5488 Defining LIBGLADE_XML_TXTDOMAIN = 1
5490 cat >> confdefs.h <<\EOF
5491 #define LIBGLADE_XML_TXTDOMAIN 1
5497 echo "$ac_t""no" 1>&6
5501 CFLAGS="${OLD_CFLAGS}"
5502 CPPFLAGS="${OLD_CPPFLAGS}"
5503 LDFLAGS="${OLD_LDFLAGS}"
5507 if test "$with_x11" != "no"; then
5508 test "$x_includes $x_libraries" != "NONE NONE" && \
5509 window_system=x11 with_x11=yes
5512 if test "$x_includes $x_libraries" = "NONE NONE" \
5513 -a -n "$OPENWINHOME" \
5514 -a "$OPENWINHOME" != "/usr/openwin" \
5515 -a -d "$OPENWINHOME"; then
5516 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5517 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5518 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5521 if test "$x_includes" = "NONE"; then
5522 for dir in "/usr/X11" "/usr/X11R6"; do
5523 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5527 if test "$x_libraries" = "NONE"; then
5528 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5529 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5533 # If we find X, set shell vars x_includes and x_libraries to the
5534 # paths, otherwise set no_x=yes.
5535 # Uses ac_ vars as temps to allow command line to override cache and checks.
5536 # --without-x overrides everything else, but does not touch the cache.
5537 echo $ac_n "checking for X""... $ac_c" 1>&6
5538 echo "configure:5539: checking for X" >&5
5540 # Check whether --with-x or --without-x was given.
5541 if test "${with_x+set}" = set; then
5546 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5547 if test "x$with_x" = xno; then
5548 # The user explicitly disabled X.
5551 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5552 # Both variables are already set.
5556 # One or both of the vars are not set, and there is no cached value.
5557 ac_x_includes=NO ac_x_libraries=NO
5559 if mkdir conftestdir; then
5561 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5562 cat > Imakefile <<'EOF'
5564 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5566 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5567 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5568 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5569 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5570 for ac_extension in a so sl; do
5571 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5572 test -f $ac_im_libdir/libX11.$ac_extension; then
5573 ac_im_usrlibdir=$ac_im_libdir; break
5576 # Screen out bogus values from the imake configuration. They are
5577 # bogus both because they are the default anyway, and because
5578 # using them would break gcc on systems where it needs fixed includes.
5579 case "$ac_im_incroot" in
5581 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5583 case "$ac_im_usrlibdir" in
5585 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5592 if test "$ac_x_includes" = NO; then
5593 # Guess where to find include files, by looking for this one X11 .h file.
5594 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5596 # First, try using that file with no special directory specified.
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 #include <$x_direct_test_include>
5602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5603 { (eval echo configure:5604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5605 if test -z "$ac_err"; then
5607 # We can compile using X headers with no special include directory.
5611 echo "configure: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5614 # Look for the header file in a standard set of common directories.
5615 # Check X11 before X11Rn because it is often a symlink to the current release.
5618 /usr/X11R6/include \
5619 /usr/X11R5/include \
5620 /usr/X11R4/include \
5623 /usr/include/X11R6 \
5624 /usr/include/X11R5 \
5625 /usr/include/X11R4 \
5627 /usr/local/X11/include \
5628 /usr/local/X11R6/include \
5629 /usr/local/X11R5/include \
5630 /usr/local/X11R4/include \
5632 /usr/local/include/X11 \
5633 /usr/local/include/X11R6 \
5634 /usr/local/include/X11R5 \
5635 /usr/local/include/X11R4 \
5639 /usr/XFree86/include/X11 \
5642 /usr/local/include \
5643 /usr/unsupported/include \
5644 /usr/athena/include \
5645 /usr/local/x11r5/include \
5646 /usr/lpp/Xamples/include \
5648 /usr/openwin/include \
5649 /usr/openwin/share/include \
5652 if test -r "$ac_dir/$x_direct_test_include"; then
5653 ac_x_includes=$ac_dir
5659 fi # $ac_x_includes = NO
5661 if test "$ac_x_libraries" = NO; then
5662 # Check for the libraries.
5664 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5665 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5667 # See if we find them without any special options.
5668 # Don't add to $LIBS permanently.
5669 ac_save_LIBS="$LIBS"
5670 LIBS="-l$x_direct_test_library $LIBS"
5671 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5676 ${x_direct_test_function}()
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681 LIBS="$ac_save_LIBS"
5682 # We can link X programs with no special library path.
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5688 LIBS="$ac_save_LIBS"
5689 # First see if replacing the include by lib works.
5690 # Check X11 before X11Rn because it is often a symlink to the current release.
5691 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5702 /usr/local/X11/lib \
5703 /usr/local/X11R6/lib \
5704 /usr/local/X11R5/lib \
5705 /usr/local/X11R4/lib \
5707 /usr/local/lib/X11 \
5708 /usr/local/lib/X11R6 \
5709 /usr/local/lib/X11R5 \
5710 /usr/local/lib/X11R4 \
5714 /usr/XFree86/lib/X11 \
5718 /usr/unsupported/lib \
5720 /usr/local/x11r5/lib \
5721 /usr/lpp/Xamples/lib \
5725 /usr/openwin/share/lib \
5728 for ac_extension in a so sl; do
5729 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5730 ac_x_libraries=$ac_dir
5737 fi # $ac_x_libraries = NO
5739 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5740 # Didn't find X anywhere. Cache the known absence of X.
5741 ac_cv_have_x="have_x=no"
5743 # Record where we found X for the cache.
5744 ac_cv_have_x="have_x=yes \
5745 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5748 eval "$ac_cv_have_x"
5751 if test "$have_x" != yes; then
5752 echo "$ac_t""$have_x" 1>&6
5755 # If each of the values was on the command line, it overrides each guess.
5756 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5757 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5758 # Update the cache value to reflect the command line values.
5759 ac_cv_have_x="have_x=yes \
5760 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5761 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5764 if test "$no_x" = yes; then
5765 # Not all programs may use this symbol, but it does not hurt to define it.
5766 { test "$extra_verbose" = "yes" && cat << \EOF
5767 Defining X_DISPLAY_MISSING
5769 cat >> confdefs.h <<\EOF
5770 #define X_DISPLAY_MISSING 1
5774 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5776 if test -n "$x_includes"; then
5777 X_CFLAGS="$X_CFLAGS -I$x_includes"
5780 # It would also be nice to do this for all -L options, not just this one.
5781 if test -n "$x_libraries"; then
5782 X_LIBS="$X_LIBS -L$x_libraries"
5783 # For Solaris; some versions of Sun CC require a space after -R and
5784 # others require no space. Words are not sufficient . . . .
5785 case "`(uname -sr) 2>/dev/null`" in
5787 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5788 echo "configure:5789: checking whether -R must be followed by a space" >&5
5789 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5790 cat > conftest.$ac_ext <<EOF
5791 #line 5792 "configure"
5792 #include "confdefs.h"
5798 if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5808 if test $ac_R_nospace = yes; then
5809 echo "$ac_t""no" 1>&6
5810 X_LIBS="$X_LIBS -R$x_libraries"
5812 LIBS="$ac_xsave_LIBS -R $x_libraries"
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5821 if { (eval echo configure:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5825 echo "configure: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5831 if test $ac_R_space = yes; then
5832 echo "$ac_t""yes" 1>&6
5833 X_LIBS="$X_LIBS -R $x_libraries"
5835 echo "$ac_t""neither works" 1>&6
5838 LIBS="$ac_xsave_LIBS"
5842 # Check for system-dependent libraries X programs must link with.
5843 # Do this before checking for the system-independent R6 libraries
5844 # (-lICE), since we may need -lsocket or whatever for X linking.
5846 if test "$ISC" = yes; then
5847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5849 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5850 # libraries were built with DECnet support. And karl@cs.umb.edu says
5851 # the Alpha needs dnet_stub (dnet does not exist).
5852 if test "$with_dnet" = "no" ; then
5853 ac_cv_lib_dnet_dnet_ntoa=no
5856 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5857 echo "configure:5858: checking for dnet_ntoa in -ldnet" >&5
5858 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5860 xe_check_libs=" -ldnet "
5861 cat > conftest.$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5864 /* Override any gcc2 internal prototype to avoid an error. */
5865 /* We use char because int might match the return type of a gcc2
5866 builtin and then its argument prototype would still apply. */
5873 if { (eval echo configure:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5875 eval "ac_cv_lib_$ac_lib_var=yes"
5877 echo "configure: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5880 eval "ac_cv_lib_$ac_lib_var=no"
5885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5886 echo "$ac_t""yes" 1>&6
5887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5889 echo "$ac_t""no" 1>&6
5894 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5896 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5897 echo "configure:5898: checking for dnet_ntoa in -ldnet_stub" >&5
5898 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5900 xe_check_libs=" -ldnet_stub "
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 /* Override any gcc2 internal prototype to avoid an error. */
5905 /* We use char because int might match the return type of a gcc2
5906 builtin and then its argument prototype would still apply. */
5913 if { (eval echo configure:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5915 eval "ac_cv_lib_$ac_lib_var=yes"
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5920 eval "ac_cv_lib_$ac_lib_var=no"
5925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5926 echo "$ac_t""yes" 1>&6
5927 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5929 echo "$ac_t""no" 1>&6
5935 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5936 # to get the SysV transport functions.
5937 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5939 # The nsl library prevents programs from opening the X display
5940 # on Irix 5.2, according to dickey@clark.net.
5941 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5942 echo "configure:5943: checking for gethostbyname" >&5
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5947 /* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char gethostbyname(); below. */
5950 /* Override any gcc2 internal prototype to avoid an error. */
5951 /* We use char because int might match the return type of a gcc2
5952 builtin and then its argument prototype would still apply. */
5953 char gethostbyname();
5957 /* The GNU C library defines this for functions which it implements
5958 to always fail with ENOSYS. Some functions are actually named
5959 something starting with __ and the normal name is an alias. */
5960 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5968 if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5970 eval "ac_cv_func_gethostbyname=yes"
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5975 eval "ac_cv_func_gethostbyname=no"
5979 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5983 echo "$ac_t""no" 1>&6
5986 if test $ac_cv_func_gethostbyname = no; then
5988 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5989 echo "configure:5990: checking for gethostbyname in -lnsl" >&5
5990 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5992 xe_check_libs=" -lnsl "
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
5999 char gethostbyname();
6005 if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6007 eval "ac_cv_lib_$ac_lib_var=yes"
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6012 eval "ac_cv_lib_$ac_lib_var=no"
6017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6018 echo "$ac_t""yes" 1>&6
6019 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6021 echo "$ac_t""no" 1>&6
6027 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6028 # socket/setsockopt and other routines are undefined under SCO ODT
6029 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6030 # on later versions), says simon@lia.di.epfl.ch: it contains
6031 # gethostby* variants that don't use the nameserver (or something).
6032 # -lsocket must be given before -lnsl if both are needed.
6033 # We assume that if connect needs -lnsl, so does gethostbyname.
6034 echo $ac_n "checking for connect""... $ac_c" 1>&6
6035 echo "configure:6036: checking for connect" >&5
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6040 /* System header to define __stub macros and hopefully few prototypes,
6041 which can conflict with char connect(); below. */
6043 /* Override any gcc2 internal prototype to avoid an error. */
6044 /* We use char because int might match the return type of a gcc2
6045 builtin and then its argument prototype would still apply. */
6050 /* The GNU C library defines this for functions which it implements
6051 to always fail with ENOSYS. Some functions are actually named
6052 something starting with __ and the normal name is an alias. */
6053 #if defined (__stub_connect) || defined (__stub___connect)
6061 if { (eval echo configure:6062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6063 eval "ac_cv_func_connect=yes"
6065 echo "configure: failed program was:" >&5
6066 cat conftest.$ac_ext >&5
6068 eval "ac_cv_func_connect=no"
6072 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6073 echo "$ac_t""yes" 1>&6
6076 echo "$ac_t""no" 1>&6
6079 if test $ac_cv_func_connect = no; then
6081 xe_msg_checking="for connect in -lsocket"
6082 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6083 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6084 echo "configure:6085: checking "$xe_msg_checking"" >&5
6085 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6087 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6088 cat > conftest.$ac_ext <<EOF
6089 #line 6090 "configure"
6090 #include "confdefs.h"
6091 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6102 eval "ac_cv_lib_$ac_lib_var=yes"
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6107 eval "ac_cv_lib_$ac_lib_var=no"
6112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6113 echo "$ac_t""yes" 1>&6
6114 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6116 echo "$ac_t""no" 1>&6
6122 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6123 echo $ac_n "checking for remove""... $ac_c" 1>&6
6124 echo "configure:6125: checking for remove" >&5
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6129 /* System header to define __stub macros and hopefully few prototypes,
6130 which can conflict with char remove(); below. */
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6139 /* The GNU C library defines this for functions which it implements
6140 to always fail with ENOSYS. Some functions are actually named
6141 something starting with __ and the normal name is an alias. */
6142 #if defined (__stub_remove) || defined (__stub___remove)
6150 if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6152 eval "ac_cv_func_remove=yes"
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6157 eval "ac_cv_func_remove=no"
6161 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6162 echo "$ac_t""yes" 1>&6
6165 echo "$ac_t""no" 1>&6
6168 if test $ac_cv_func_remove = no; then
6170 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6171 echo "configure:6172: checking for remove in -lposix" >&5
6172 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6174 xe_check_libs=" -lposix "
6175 cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6187 if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6189 eval "ac_cv_lib_$ac_lib_var=yes"
6191 echo "configure: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6194 eval "ac_cv_lib_$ac_lib_var=no"
6199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6200 echo "$ac_t""yes" 1>&6
6201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6203 echo "$ac_t""no" 1>&6
6209 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6210 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6211 echo "configure:6212: checking for shmat" >&5
6213 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 /* System header to define __stub macros and hopefully few prototypes,
6217 which can conflict with char shmat(); below. */
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6226 /* The GNU C library defines this for functions which it implements
6227 to always fail with ENOSYS. Some functions are actually named
6228 something starting with __ and the normal name is an alias. */
6229 #if defined (__stub_shmat) || defined (__stub___shmat)
6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6239 eval "ac_cv_func_shmat=yes"
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6244 eval "ac_cv_func_shmat=no"
6248 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6252 echo "$ac_t""no" 1>&6
6255 if test $ac_cv_func_shmat = no; then
6257 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6258 echo "configure:6259: checking for shmat in -lipc" >&5
6259 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6261 xe_check_libs=" -lipc "
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6274 if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6276 eval "ac_cv_lib_$ac_lib_var=yes"
6278 echo "configure: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6281 eval "ac_cv_lib_$ac_lib_var=no"
6286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6287 echo "$ac_t""yes" 1>&6
6288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6290 echo "$ac_t""no" 1>&6
6297 # Check for libraries that X11R6 Xt/Xaw programs need.
6298 ac_save_LDFLAGS="$LDFLAGS"
6299 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6300 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6301 # check for ICE first), but we must link in the order -lSM -lICE or
6302 # we get undefined symbols. So assume we have SM if we have ICE.
6303 # These have to be linked with before -lX11, unlike the other
6304 # libraries we check for below, so use a different variable.
6305 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6307 xe_msg_checking="for IceConnectionNumber in -lICE"
6308 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6309 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6310 echo "configure:6311: checking "$xe_msg_checking"" >&5
6311 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6313 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6314 cat > conftest.$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6320 char IceConnectionNumber();
6323 IceConnectionNumber()
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328 eval "ac_cv_lib_$ac_lib_var=yes"
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6333 eval "ac_cv_lib_$ac_lib_var=no"
6338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6339 echo "$ac_t""yes" 1>&6
6340 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6342 echo "$ac_t""no" 1>&6
6346 LDFLAGS="$ac_save_LDFLAGS"
6349 # Autoconf claims to find X library and include dirs for us.
6350 if test "$no_x" = "yes"
6351 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6352 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6357 if test "$with_x11" = "yes"; then
6358 { test "$extra_verbose" = "yes" && cat << \EOF
6359 Defining HAVE_X_WINDOWS
6361 cat >> confdefs.h <<\EOF
6362 #define HAVE_X_WINDOWS 1
6366 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6367 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6370 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6371 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6372 echo "configure:6373: checking for Xm/Xm.h" >&5
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6380 { (eval echo configure:6381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6382 if test -z "$ac_err"; then
6384 eval "ac_cv_header_$ac_safe=yes"
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6390 eval "ac_cv_header_$ac_safe=no"
6393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6396 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6397 echo "configure:6398: checking for XmStringFree in -lXm" >&5
6398 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6400 xe_check_libs=" -lXm "
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 /* Override any gcc2 internal prototype to avoid an error. */
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6407 char XmStringFree();
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6415 eval "ac_cv_lib_$ac_lib_var=yes"
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6420 eval "ac_cv_lib_$ac_lib_var=no"
6425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6426 echo "$ac_t""yes" 1>&6
6429 echo "$ac_t""no" 1>&6
6434 echo "$ac_t""no" 1>&6
6438 if test "$got_motif" != "yes"; then
6439 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
6440 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6441 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6442 if test -d "$lib_dir" -a -d "$inc_dir"; then
6443 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6444 x_libraries="$lib_dir $x_libraries"
6445 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6447 case "$x_includes" in "$inc_dir"* ) ;; *)
6448 x_includes="$inc_dir $x_includes"
6449 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6455 for rel in "X11R6" "X11R5" "X11R4"; do
6456 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6457 if test -d "$lib_dir" -a -d "$inc_dir"; then
6458 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6459 x_libraries="$x_libraries $lib_dir"
6460 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6462 case "$x_includes" in "$inc_dir"* ) ;; *)
6463 x_includes="$x_includes $inc_dir"
6464 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6470 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 ;;
6473 ld_switch_x_site="$X_LIBS"
6476 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6477 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6478 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6480 runpath="" runpath_dirs=""
6481 if test -n "$LD_RUN_PATH"; then
6482 runpath="$LD_RUN_PATH"
6483 elif test "$GCC" = "yes"; then
6484 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6485 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6486 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6487 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6488 case "$arg" in P,* | -L* | -R* )
6489 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6491 xe_runpath_dir="$dir"
6492 test "$xe_runpath_dir" != "/lib" -a \
6493 "$xe_runpath_dir" != "/usr/lib" -a \
6494 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6495 eval "$xe_add_unique_runpath_dir"
6500 ld_switch_run="$ld_switch_run_save"
6503 for arg in $ld_switch_site $ld_switch_x_site; do
6504 case "$arg" in -L*) {
6505 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6506 test "$xe_runpath_dir" != "/lib" -a \
6507 "$xe_runpath_dir" != "/usr/lib" -a \
6508 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6509 eval "$xe_add_unique_runpath_dir"
6512 if test "$opsys $need_motif" = "sol2 yes"; then
6513 xe_runpath_dir="/opt/SUNWdt/lib";
6514 eval "$xe_add_unique_runpath_dir";
6517 if test -n "$runpath"; then
6518 ld_switch_run="${dash_r}${runpath}"
6520 if test "$GCC" = "yes"; then
6521 set x $ld_switch_run; shift; ld_switch_run=""
6522 while test -n "$1"; do
6524 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6525 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6527 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6532 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6537 if test "$extra_verbose" = "yes"; then
6538 echo; echo "X11 compilation variables:"
6539 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6544 if test "$x_includes" != NONE; then
6545 for i in $x_includes; do
6546 if test -d "$i/bitmaps"; then
6547 bitmapdirs="$i/bitmaps:$bitmapdirs"
6549 if test -d "$i/X11/bitmaps"; then
6550 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6553 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6555 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6556 Defining BITMAPDIR = "$bitmapdirs"
6558 cat >> confdefs.h <<EOF
6559 #define BITMAPDIR "$bitmapdirs"
6564 echo "checking for X defines extracted by xmkmf" 1>&6
6565 echo "configure:6566: checking for X defines extracted by xmkmf" >&5
6567 if mkdir conftestdir; then
6569 cat > Imakefile <<'EOF'
6571 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6573 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6575 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6579 for word in $xmkmf_defines; do
6583 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6585 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6588 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6589 if test "$val" = "1"
6590 then { test "$extra_verbose" = "yes" && cat << EOF
6593 cat >> confdefs.h <<EOF
6598 else { test "$extra_verbose" = "yes" && cat << EOF
6599 Defining $sym = $val
6601 cat >> confdefs.h <<EOF
6612 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6613 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6614 echo "configure:6615: checking for X11/Intrinsic.h" >&5
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6619 #include <X11/Intrinsic.h>
6621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6622 { (eval echo configure:6623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6624 if test -z "$ac_err"; then
6626 eval "ac_cv_header_$ac_safe=yes"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6632 eval "ac_cv_header_$ac_safe=no"
6635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6636 echo "$ac_t""yes" 1>&6
6639 echo "$ac_t""no" 1>&6
6640 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6645 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6646 echo "configure:6647: checking for XOpenDisplay in -lX11" >&5
6647 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6649 xe_check_libs=" -lX11 "
6650 cat > conftest.$ac_ext <<EOF
6651 #line 6652 "configure"
6652 #include "confdefs.h"
6653 /* Override any gcc2 internal prototype to avoid an error. */
6654 /* We use char because int might match the return type of a gcc2
6655 builtin and then its argument prototype would still apply. */
6656 char XOpenDisplay();
6662 if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6664 eval "ac_cv_lib_$ac_lib_var=yes"
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6669 eval "ac_cv_lib_$ac_lib_var=no"
6674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6675 echo "$ac_t""yes" 1>&6
6678 echo "$ac_t""no" 1>&6
6682 if test "$have_lib_x11" != "yes"; then
6684 xe_msg_checking="for XGetFontProperty in -lX11"
6685 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6686 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6687 echo "configure:6688: checking "$xe_msg_checking"" >&5
6688 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6690 xe_check_libs=" -lX11 -b i486-linuxaout"
6691 cat > conftest.$ac_ext <<EOF
6692 #line 6693 "configure"
6693 #include "confdefs.h"
6694 /* Override any gcc2 internal prototype to avoid an error. */
6695 /* We use char because int might match the return type of a gcc2
6696 builtin and then its argument prototype would still apply. */
6697 char XGetFontProperty();
6703 if { (eval echo configure:6704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6705 eval "ac_cv_lib_$ac_lib_var=yes"
6707 echo "configure: failed program was:" >&5
6708 cat conftest.$ac_ext >&5
6710 eval "ac_cv_lib_$ac_lib_var=no"
6715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6716 echo "$ac_t""yes" 1>&6
6717 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6719 echo "$ac_t""no" 1>&6
6720 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6726 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6729 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6730 echo "configure:6731: checking for XShapeSelectInput in -lXext" >&5
6731 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6733 xe_check_libs=" -lXext "
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740 char XShapeSelectInput();
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6748 eval "ac_cv_lib_$ac_lib_var=yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 eval "ac_cv_lib_$ac_lib_var=no"
6758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6759 echo "$ac_t""yes" 1>&6
6760 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6762 echo "$ac_t""no" 1>&6
6768 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6769 echo "configure:6770: checking for XtOpenDisplay in -lXt" >&5
6770 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6772 xe_check_libs=" -lXt "
6773 cat > conftest.$ac_ext <<EOF
6774 #line 6775 "configure"
6775 #include "confdefs.h"
6776 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6779 char XtOpenDisplay();
6785 if { (eval echo configure:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6787 eval "ac_cv_lib_$ac_lib_var=yes"
6789 echo "configure: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6792 eval "ac_cv_lib_$ac_lib_var=no"
6797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6798 echo "$ac_t""yes" 1>&6
6799 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6801 echo "$ac_t""no" 1>&6
6802 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6807 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6808 echo "configure:6809: checking the version of X11 being used" >&5
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 #include <X11/Intrinsic.h>
6813 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6815 if { (eval echo configure:6816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6817 ./conftest foobar; x11_release=$?
6820 echo "configure: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6826 echo "$ac_t""R${x11_release}" 1>&6
6827 { test "$extra_verbose" = "yes" && cat << EOF
6828 Defining THIS_IS_X11R${x11_release}
6830 cat >> confdefs.h <<EOF
6831 #define THIS_IS_X11R${x11_release} 1
6836 if test "${x11_release}" = "4"; then
6837 case "$with_widgets" in
6838 "" | "no") with_widgets=no ;;
6839 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6843 for ac_func in XConvertCase
6845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6846 echo "configure:6847: checking for $ac_func" >&5
6848 cat > conftest.$ac_ext <<EOF
6849 #line 6850 "configure"
6850 #include "confdefs.h"
6851 /* System header to define __stub macros and hopefully few prototypes,
6852 which can conflict with char $ac_func(); below. */
6854 /* Override any gcc2 internal prototype to avoid an error. */
6855 /* We use char because int might match the return type of a gcc2
6856 builtin and then its argument prototype would still apply. */
6861 /* The GNU C library defines this for functions which it implements
6862 to always fail with ENOSYS. Some functions are actually named
6863 something starting with __ and the normal name is an alias. */
6864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6872 if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6874 eval "ac_cv_func_$ac_func=yes"
6876 echo "configure: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6879 eval "ac_cv_func_$ac_func=no"
6883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6884 echo "$ac_t""yes" 1>&6
6885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6886 { test "$extra_verbose" = "yes" && cat << EOF
6887 Defining $ac_tr_func
6889 cat >> confdefs.h <<EOF
6890 #define $ac_tr_func 1
6895 echo "$ac_t""no" 1>&6
6900 for ac_hdr in X11/Xlocale.h
6902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6904 echo "configure:6905: checking for $ac_hdr" >&5
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6912 { (eval echo configure:6913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6914 if test -z "$ac_err"; then
6916 eval "ac_cv_header_$ac_safe=yes"
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6922 eval "ac_cv_header_$ac_safe=no"
6925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6926 echo "$ac_t""yes" 1>&6
6927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6928 { test "$extra_verbose" = "yes" && cat << EOF
6931 cat >> confdefs.h <<EOF
6932 #define $ac_tr_hdr 1
6937 echo "$ac_t""no" 1>&6
6942 for ac_func in XRegisterIMInstantiateCallback
6944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6945 echo "configure:6946: checking for $ac_func" >&5
6947 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6950 /* System header to define __stub macros and hopefully few prototypes,
6951 which can conflict with char $ac_func(); below. */
6953 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */
6960 /* The GNU C library defines this for functions which it implements
6961 to always fail with ENOSYS. Some functions are actually named
6962 something starting with __ and the normal name is an alias. */
6963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6971 if { (eval echo configure:6972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6973 eval "ac_cv_func_$ac_func=yes"
6975 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6978 eval "ac_cv_func_$ac_func=no"
6982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6983 echo "$ac_t""yes" 1>&6
6984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6985 { test "$extra_verbose" = "yes" && cat << EOF
6986 Defining $ac_tr_func
6988 cat >> confdefs.h <<EOF
6989 #define $ac_tr_func 1
6994 echo "$ac_t""no" 1>&6
6998 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6999 echo "configure:7000: checking for standard XRegisterIMInstantiateCallback prototype" >&5
7000 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7004 #define NeedFunctionPrototypes 1
7005 #include <X11/Xlib.h>
7006 extern Bool XRegisterIMInstantiateCallback(
7007 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
7013 if { (eval echo configure:7014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7015 echo "$ac_t""yes" 1>&6
7017 echo "configure: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7020 echo "$ac_t""no" 1>&6
7021 { test "$extra_verbose" = "yes" && cat << \EOF
7022 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
7024 cat >> confdefs.h <<\EOF
7025 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
7032 test -z "$with_xmu" && {
7033 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7034 echo "configure:7035: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7035 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7037 xe_check_libs=" -lXmu "
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7041 /* Override any gcc2 internal prototype to avoid an error. */
7042 /* We use char because int might match the return type of a gcc2
7043 builtin and then its argument prototype would still apply. */
7044 char XmuReadBitmapDataFromFile();
7047 XmuReadBitmapDataFromFile()
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 eval "ac_cv_lib_$ac_lib_var=yes"
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 eval "ac_cv_lib_$ac_lib_var=no"
7062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7063 echo "$ac_t""yes" 1>&6
7066 echo "$ac_t""no" 1>&6
7071 if test "$with_xmu" = "no"; then
7072 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
7073 echo " xemacs will be linked with \"xmu.o\""
7076 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
7077 { test "$extra_verbose" = "yes" && cat << \EOF
7080 cat >> confdefs.h <<\EOF
7088 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7089 echo "configure:7090: checking for main in -lXbsd" >&5
7090 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7092 xe_check_libs=" -lXbsd "
7093 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure"
7095 #include "confdefs.h"
7101 if { (eval echo configure:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7103 eval "ac_cv_lib_$ac_lib_var=yes"
7105 echo "configure: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 eval "ac_cv_lib_$ac_lib_var=no"
7113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7114 echo "$ac_t""yes" 1>&6
7115 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
7117 echo "$ac_t""no" 1>&6
7122 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
7123 if test "$GCC" = "yes"; then
7124 echo $ac_n "checking for name of AIX gcc threads option""... $ac_c" 1>&6
7125 echo "configure:7126: checking for name of AIX gcc threads option" >&5
7126 case `$CC -v --help 2>&1` in
7127 *-mthreads*) aix_threads=-mthreads ;;
7128 *) aix_threads=-pthread ;;
7130 echo "$ac_t""$aix_threads" 1>&6
7131 X_CFLAGS="$aix_threads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$X_CFLAGS"; fi
7132 libs_x="$aix_threads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$libs_x"; fi
7134 case "$CC" in *_r) : ;;
7138 echo $ac_n "checking size of short""... $ac_c" 1>&6
7139 echo "configure:7140: checking size of short" >&5
7141 cat > conftest.$ac_ext <<EOF
7142 #line 7143 "configure"
7143 #include "confdefs.h"
7145 #include <sys/types.h>
7148 FILE *f=fopen("conftestval", "w");
7150 fprintf(f, "%d\n", sizeof(short));
7154 if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7156 ac_cv_sizeof_short=`cat conftestval`
7159 echo "configure: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7162 ac_cv_sizeof_short=0
7165 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7166 { test "$extra_verbose" = "yes" && cat << EOF
7167 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
7169 cat >> confdefs.h <<EOF
7170 #define SIZEOF_SHORT $ac_cv_sizeof_short
7175 test "$ac_cv_sizeof_short" = 0 && CC="$xe_save_CC" ;;
7181 if test "$with_msw" != "no"; then
7182 echo "checking for MS-Windows" 1>&6
7183 echo "configure:7184: checking for MS-Windows" >&5
7185 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7186 echo "configure:7187: checking for main in -lgdi32" >&5
7187 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7189 xe_check_libs=" -lgdi32 "
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200 eval "ac_cv_lib_$ac_lib_var=yes"
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7205 eval "ac_cv_lib_$ac_lib_var=no"
7210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7211 echo "$ac_t""yes" 1>&6
7214 echo "$ac_t""no" 1>&6
7218 if test "$with_msw" = "yes"; then
7219 { test "$extra_verbose" = "yes" && cat << \EOF
7220 Defining HAVE_MS_WINDOWS
7222 cat >> confdefs.h <<\EOF
7223 #define HAVE_MS_WINDOWS 1
7228 if test "$with_netinstall" = "yes"; then
7229 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7230 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7231 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7234 install_pp="$blddir/lib-src/installexe.sh"
7235 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lkernel32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lkernel32 -lwinspool\" to \$libs_system"; fi
7236 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7237 if test "$window_system" != x11; then
7239 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7240 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7241 echo " xemacs will be linked with \"scrollbar-msw.o\""
7243 test "$with_menubars" != "no" && with_menubars=msw \
7244 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7245 echo " xemacs will be linked with \"menubar-msw.o\""
7247 test "$with_toolbars" != "no" && with_toolbars=msw \
7248 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7249 echo " xemacs will be linked with \"toolbar-msw.o\""
7251 test "$with_dialogs" != "no" && with_dialogs=msw \
7252 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7253 echo " xemacs will be linked with \"dialog-msw.o\""
7255 test "$with_widgets" != "no" && with_widgets=msw
7257 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7258 echo " xemacs will be linked with \"scrollbar-msw.o\""
7260 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7261 echo " xemacs will be linked with \"menubar-msw.o\""
7263 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7264 echo " xemacs will be linked with \"toolbar-msw.o\""
7266 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7267 echo " xemacs will be linked with \"dialog-msw.o\""
7270 cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7274 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7276 if { (eval echo configure:7277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7278 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7279 Defining HAVE_MSG_SELECT
7281 cat >> confdefs.h <<\EOF
7282 #define HAVE_MSG_SELECT 1
7288 echo "configure: failed program was:" >&5
7289 cat conftest.$ac_ext >&5
7292 with_file_coding=yes
7293 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
7294 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\""
7301 test -z "$window_system" && window_system="none"
7303 if test "$window_system" = "none"; then
7304 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7306 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7307 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7309 eval "with_${feature}=no"
7312 test -z "$with_toolbars" && with_toolbars=yes
7315 if test "$with_msw" != "yes"; then
7316 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7318 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7319 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7321 eval "with_${feature}=no"
7327 if test "$with_x11" != "yes"; then
7328 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7330 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7331 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7333 eval "with_${feature}=no"
7337 if test "$with_x11" = "yes"; then
7338 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7339 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7340 echo "configure:7341: checking for X11/extensions/shape.h" >&5
7342 cat > conftest.$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7345 #include <X11/extensions/shape.h>
7347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7348 { (eval echo configure:7349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7350 if test -z "$ac_err"; then
7352 eval "ac_cv_header_$ac_safe=yes"
7355 echo "configure: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7358 eval "ac_cv_header_$ac_safe=no"
7361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7362 echo "$ac_t""yes" 1>&6
7364 { test "$extra_verbose" = "yes" && cat << \EOF
7365 Defining HAVE_BALLOON_HELP
7367 cat >> confdefs.h <<\EOF
7368 #define HAVE_BALLOON_HELP 1
7372 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7373 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7376 echo "$ac_t""no" 1>&6
7383 case "$window_system" in
7384 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7385 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7388 test "$with_gnome" = "yes" && echo " Using GNOME."
7389 test "$with_gnome" = "no" && echo " Using GTK."
7391 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7394 case "$x_libraries" in *X11R4* )
7395 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7396 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7399 echo "checking for WM_COMMAND option" 1>&6
7400 echo "configure:7401: checking for WM_COMMAND option" >&5;
7401 if test "$with_wmcommand" != "no"; then
7402 { test "$extra_verbose" = "yes" && cat << \EOF
7403 Defining HAVE_WMCOMMAND
7405 cat >> confdefs.h <<\EOF
7406 #define HAVE_WMCOMMAND 1
7412 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7413 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7414 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7415 echo "configure:7416: checking for X11/Xauth.h" >&5
7417 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7420 #include <X11/Xauth.h>
7422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7423 { (eval echo configure:7424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7425 if test -z "$ac_err"; then
7427 eval "ac_cv_header_$ac_safe=yes"
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7433 eval "ac_cv_header_$ac_safe=no"
7436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7437 echo "$ac_t""yes" 1>&6
7440 echo "$ac_t""no" 1>&6
7444 test -z "$with_xauth" && {
7445 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7446 echo "configure:7447: checking for XauGetAuthByAddr in -lXau" >&5
7447 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7449 xe_check_libs=" -lXau "
7450 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7453 /* Override any gcc2 internal prototype to avoid an error. */
7454 /* We use char because int might match the return type of a gcc2
7455 builtin and then its argument prototype would still apply. */
7456 char XauGetAuthByAddr();
7462 if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7464 eval "ac_cv_lib_$ac_lib_var=yes"
7466 echo "configure: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7469 eval "ac_cv_lib_$ac_lib_var=no"
7474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7475 echo "$ac_t""yes" 1>&6
7478 echo "$ac_t""no" 1>&6
7483 test -z "$with_xauth" && with_xauth=yes
7484 if test "$with_xauth" = "yes"; then
7485 { test "$extra_verbose" = "yes" && cat << \EOF
7488 cat >> confdefs.h <<\EOF
7489 #define HAVE_XAUTH 1
7495 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
7503 if test "$with_tooltalk" != "no" ; then
7504 for dir in "" "Tt/" "desktop/" ; do
7505 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7506 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7507 echo "configure:7508: checking for ${dir}tt_c.h" >&5
7509 cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7512 #include <${dir}tt_c.h>
7514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7515 { (eval echo configure:7516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7517 if test -z "$ac_err"; then
7519 eval "ac_cv_header_$ac_safe=yes"
7522 echo "configure: failed program was:" >&5
7523 cat conftest.$ac_ext >&5
7525 eval "ac_cv_header_$ac_safe=no"
7528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7529 echo "$ac_t""yes" 1>&6
7530 tt_c_h_file="${dir}tt_c.h"; break
7532 echo "$ac_t""no" 1>&6
7536 if test -z "$tt_c_h_file"; then
7537 if test "$with_tooltalk" = "yes"; then
7538 (echo "$progname: Usage error:"
7539 echo " " "Unable to find required tooltalk header files."
7540 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7545 if test "$with_tooltalk" != "no" ; then
7546 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7548 xe_msg_checking="for tt_message_create in -ltt"
7549 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7550 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7551 echo "configure:7552: checking "$xe_msg_checking"" >&5
7552 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7554 xe_check_libs=" -ltt $extra_libs"
7555 cat > conftest.$ac_ext <<EOF
7556 #line 7557 "configure"
7557 #include "confdefs.h"
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7561 char tt_message_create();
7567 if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7569 eval "ac_cv_lib_$ac_lib_var=yes"
7571 echo "configure: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7574 eval "ac_cv_lib_$ac_lib_var=no"
7579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7580 echo "$ac_t""yes" 1>&6
7581 tt_libs="-ltt $extra_libs"; break
7583 echo "$ac_t""no" 1>&6
7589 if test -z "$tt_libs"; then
7590 if test "$with_tooltalk" = "yes"; then
7591 (echo "$progname: Usage error:"
7592 echo " " "Unable to find required tooltalk libraries."
7593 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7598 test -z "$with_tooltalk" && with_tooltalk=yes
7599 if test "$with_tooltalk" = "yes"; then
7600 { test "$extra_verbose" = "yes" && cat << \EOF
7603 cat >> confdefs.h <<\EOF
7608 { test "$extra_verbose" = "yes" && cat << EOF
7609 Defining TT_C_H_FILE = "$tt_c_h_file"
7611 cat >> confdefs.h <<EOF
7612 #define TT_C_H_FILE "$tt_c_h_file"
7616 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7617 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7618 echo " xemacs will be linked with \"tooltalk.o\""
7622 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7623 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7624 echo "configure:7625: checking for Dt/Dt.h" >&5
7626 cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7632 { (eval echo configure:7633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7634 if test -z "$ac_err"; then
7636 eval "ac_cv_header_$ac_safe=yes"
7639 echo "configure: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7642 eval "ac_cv_header_$ac_safe=no"
7645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7646 echo "$ac_t""yes" 1>&6
7649 echo "$ac_t""no" 1>&6
7653 test -z "$with_cde" && {
7654 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7655 echo "configure:7656: checking for DtDndDragStart in -lDtSvc" >&5
7656 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7658 xe_check_libs=" -lDtSvc "
7659 cat > conftest.$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7662 /* Override any gcc2 internal prototype to avoid an error. */
7663 /* We use char because int might match the return type of a gcc2
7664 builtin and then its argument prototype would still apply. */
7665 char DtDndDragStart();
7671 if { (eval echo configure:7672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7673 eval "ac_cv_lib_$ac_lib_var=yes"
7675 echo "configure: failed program was:" >&5
7676 cat conftest.$ac_ext >&5
7678 eval "ac_cv_lib_$ac_lib_var=no"
7683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7684 echo "$ac_t""yes" 1>&6
7687 echo "$ac_t""no" 1>&6
7692 test -z "$with_cde" && with_cde=yes
7693 if test "$with_dragndrop" = no; then
7694 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7697 if test "$with_cde" = "yes" ; then
7698 { test "$extra_verbose" = "yes" && cat << \EOF
7701 cat >> confdefs.h <<\EOF
7706 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7707 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7708 with_tooltalk=yes # CDE requires Tooltalk
7709 need_motif=yes # CDE requires Motif
7712 test "$window_system" != "x11" && with_offix=no
7713 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7714 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7717 if test "$with_dragndrop" = no; then
7718 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7721 if test "$with_cde" = yes; then
7722 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7725 test -z "$with_offix" && with_offix=no
7726 if test "$with_offix" = "yes"; then
7727 { test "$extra_verbose" = "yes" && cat << \EOF
7728 Defining HAVE_OFFIX_DND
7730 cat >> confdefs.h <<\EOF
7731 #define HAVE_OFFIX_DND 1
7735 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7736 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7738 if test "$with_gtk" = "yes"; then
7739 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7742 if test "$with_dragndrop" != "no" ; then
7743 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7744 echo "configure:7745: checking if drag and drop API is needed" >&5
7745 if test -n "$dragndrop_proto" ; then
7747 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7748 { test "$extra_verbose" = "yes" && cat << \EOF
7749 Defining HAVE_DRAGNDROP
7751 cat >> confdefs.h <<\EOF
7752 #define HAVE_DRAGNDROP 1
7756 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7759 echo "$ac_t""no" 1>&6
7763 echo "checking for LDAP" 1>&6
7764 echo "configure:7765: checking for LDAP" >&5
7765 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7766 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7767 echo "configure:7768: checking for ldap.h" >&5
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7775 { (eval echo configure:7776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7777 if test -z "$ac_err"; then
7779 eval "ac_cv_header_$ac_safe=yes"
7782 echo "configure: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7785 eval "ac_cv_header_$ac_safe=no"
7788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7789 echo "$ac_t""yes" 1>&6
7792 echo "$ac_t""no" 1>&6
7796 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7797 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7798 echo "configure:7799: checking for lber.h" >&5
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7806 { (eval echo configure:7807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7808 if test -z "$ac_err"; then
7810 eval "ac_cv_header_$ac_safe=yes"
7813 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5
7816 eval "ac_cv_header_$ac_safe=no"
7819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7820 echo "$ac_t""yes" 1>&6
7823 echo "$ac_t""no" 1>&6
7827 if test "$with_ldap" != "no"; then
7829 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7830 echo "configure:7831: checking for ldap_search in -lldap" >&5
7831 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7833 xe_check_libs=" -lldap "
7834 cat > conftest.$ac_ext <<EOF
7835 #line 7836 "configure"
7836 #include "confdefs.h"
7837 /* Override any gcc2 internal prototype to avoid an error. */
7838 /* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */
7846 if { (eval echo configure:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7848 eval "ac_cv_lib_$ac_lib_var=yes"
7850 echo "configure: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7853 eval "ac_cv_lib_$ac_lib_var=no"
7858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7859 echo "$ac_t""yes" 1>&6
7860 with_ldap_nolber=yes
7862 echo "$ac_t""no" 1>&6
7867 test "$with_ldap_nolber" = "no" && {
7868 xe_msg_checking="for ldap_open in -lldap"
7869 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7870 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7871 echo "configure:7872: checking "$xe_msg_checking"" >&5
7872 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7874 xe_check_libs=" -lldap -llber"
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7889 eval "ac_cv_lib_$ac_lib_var=yes"
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7894 eval "ac_cv_lib_$ac_lib_var=no"
7899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7900 echo "$ac_t""yes" 1>&6
7903 echo "$ac_t""no" 1>&6
7908 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7909 xe_msg_checking="for ldap_open in -lldap"
7910 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7911 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7912 echo "configure:7913: checking "$xe_msg_checking"" >&5
7913 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7915 xe_check_libs=" -lldap -llber -lkrb"
7916 cat > conftest.$ac_ext <<EOF
7917 #line 7918 "configure"
7918 #include "confdefs.h"
7919 /* Override any gcc2 internal prototype to avoid an error. */
7920 /* We use char because int might match the return type of a gcc2
7921 builtin and then its argument prototype would still apply. */
7928 if { (eval echo configure:7929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7930 eval "ac_cv_lib_$ac_lib_var=yes"
7932 echo "configure: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7935 eval "ac_cv_lib_$ac_lib_var=no"
7940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7941 echo "$ac_t""yes" 1>&6
7944 echo "$ac_t""no" 1>&6
7949 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7950 xe_msg_checking="for ldap_open in -lldap"
7951 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7952 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7953 echo "configure:7954: checking "$xe_msg_checking"" >&5
7954 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7956 xe_check_libs=" -lldap -llber -lkrb -ldes"
7957 cat > conftest.$ac_ext <<EOF
7958 #line 7959 "configure"
7959 #include "confdefs.h"
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 /* We use char because int might match the return type of a gcc2
7962 builtin and then its argument prototype would still apply. */
7969 if { (eval echo configure:7970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7971 eval "ac_cv_lib_$ac_lib_var=yes"
7973 echo "configure: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7976 eval "ac_cv_lib_$ac_lib_var=no"
7981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7982 echo "$ac_t""yes" 1>&6
7983 with_ldap_krbdes=yes
7985 echo "$ac_t""no" 1>&6
7990 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
7992 if test "$with_ldap" = "yes"; then
7993 { test "$extra_verbose" = "yes" && cat << \EOF
7996 cat >> confdefs.h <<\EOF
8001 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
8002 echo " xemacs will be linked with \"eldap.o\""
8004 if test "$with_ldap_nolber" = "yes" ; then
8005 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
8007 if test "$with_ldap_krb" = "yes" ; then
8008 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
8010 if test "$with_ldap_krbdes" = "yes" ; then
8011 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
8012 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
8014 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
8015 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
8017 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
8019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8020 echo "configure:8021: checking for $ac_func" >&5
8022 cat > conftest.$ac_ext <<EOF
8023 #line 8024 "configure"
8024 #include "confdefs.h"
8025 /* System header to define __stub macros and hopefully few prototypes,
8026 which can conflict with char $ac_func(); below. */
8028 /* Override any gcc2 internal prototype to avoid an error. */
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8035 /* The GNU C library defines this for functions which it implements
8036 to always fail with ENOSYS. Some functions are actually named
8037 something starting with __ and the normal name is an alias. */
8038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8046 if { (eval echo configure:8047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8048 eval "ac_cv_func_$ac_func=yes"
8050 echo "configure: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8053 eval "ac_cv_func_$ac_func=no"
8057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8058 echo "$ac_t""yes" 1>&6
8059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8060 { test "$extra_verbose" = "yes" && cat << EOF
8061 Defining $ac_tr_func
8063 cat >> confdefs.h <<EOF
8064 #define $ac_tr_func 1
8069 echo "$ac_t""no" 1>&6
8075 if test "$with_postgresql" != "no"; then
8076 echo "checking for PostgreSQL" 1>&6
8077 echo "configure:8078: checking for PostgreSQL" >&5
8079 for header_dir in "" "pgsql/" "postgresql/"; do
8080 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
8081 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
8082 echo "configure:8083: checking for ${header_dir}libpq-fe.h" >&5
8084 cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8087 #include <${header_dir}libpq-fe.h>
8089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8090 { (eval echo configure:8091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8092 if test -z "$ac_err"; then
8094 eval "ac_cv_header_$ac_safe=yes"
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8100 eval "ac_cv_header_$ac_safe=no"
8103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8104 echo "$ac_t""yes" 1>&6
8105 libpq_fe_h_file=${header_dir}libpq-fe.h; break
8107 echo "$ac_t""no" 1>&6
8112 test -n "$libpq_fe_h_file" && {
8113 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
8114 echo "configure:8115: checking for PQconnectdb in -lpq" >&5
8115 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
8117 xe_check_libs=" -lpq "
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* Override any gcc2 internal prototype to avoid an error. */
8122 /* We use char because int might match the return type of a gcc2
8123 builtin and then its argument prototype would still apply. */
8130 if { (eval echo configure:8131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8132 eval "ac_cv_lib_$ac_lib_var=yes"
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8137 eval "ac_cv_lib_$ac_lib_var=no"
8142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8143 echo "$ac_t""yes" 1>&6
8146 echo "$ac_t""no" 1>&6
8151 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
8153 { test "$extra_verbose" = "yes" && cat << \EOF
8154 Defining HAVE_POSTGRESQL
8156 cat >> confdefs.h <<\EOF
8157 #define HAVE_POSTGRESQL 1
8162 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8163 echo "configure:8164: checking for PQconnectStart in -lpq" >&5
8164 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8166 xe_check_libs=" -lpq "
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8170 /* Override any gcc2 internal prototype to avoid an error. */
8171 /* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8173 char PQconnectStart();
8179 if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8181 eval "ac_cv_lib_$ac_lib_var=yes"
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8186 eval "ac_cv_lib_$ac_lib_var=no"
8191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8192 echo "$ac_t""yes" 1>&6
8193 with_postgresqlv7=yes;
8194 { test "$extra_verbose" = "yes" && cat << \EOF
8195 Defining HAVE_POSTGRESQLV7
8197 cat >> confdefs.h <<\EOF
8198 #define HAVE_POSTGRESQLV7 1
8203 echo "$ac_t""no" 1>&6
8207 { test "$extra_verbose" = "yes" && cat << EOF
8208 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8210 cat >> confdefs.h <<EOF
8211 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8215 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8216 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8217 echo " xemacs will be linked with \"postgresql.o\""
8219 elif test "$with_postgresql" = "yes"; then
8220 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8225 if test "$window_system" != "none"; then
8226 echo "checking for graphics libraries" 1>&6
8227 echo "configure:8228: checking for graphics libraries" >&5
8233 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8234 cygwin_top=`eval "dirname ${cygwin_top}"`;
8235 cygwin_top="${cygwin_top}/..";
8236 case "$window_system" in
8238 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8239 incpath_xpm="-I${cygwin_top}/include/noX"
8249 if test -z "$with_xpm"; then
8250 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8251 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8252 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8253 echo "configure:8254: checking for Xpm - no older than 3.4f" >&5
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8259 #include <X11/xpm.h>
8260 int main(int c, char **v) {
8262 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8263 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8265 if { (eval echo configure:8266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8267 ./conftest dummy_arg; xpm_status=$?;
8268 if test "$xpm_status" = "0"; then
8272 if test "$xpm_status" = "1"; then
8273 xpm_problem="Xpm library version and header file version don't match!"
8274 elif test "$xpm_status" = "2"; then
8275 xpm_problem="Xpm library version is too old!"
8277 xpm_problem="Internal xpm detection logic error!"
8280 *** WARNING *** $xpm_problem
8281 I'm not touching that with a 10-foot pole!
8282 If you really want to use the installed version of Xpm, rerun
8283 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8294 echo "$ac_t""$with_xpm" 1>&6
8296 if test "$with_xpm" = "yes"; then
8297 { test "$extra_verbose" = "yes" && cat << \EOF
8300 cat >> confdefs.h <<\EOF
8305 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8306 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8307 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8308 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8309 echo "configure:8310: checking for \"FOR_MSW\" xpm" >&5
8311 cat > conftest.$ac_ext <<EOF
8312 #line 8313 "configure"
8313 #include "confdefs.h"
8316 XpmCreatePixmapFromData()
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8330 echo "$ac_t""$xpm_for_msw" 1>&6
8331 if test "$xpm_for_msw" = "yes"; then
8332 { test "$extra_verbose" = "yes" && cat << \EOF
8335 cat >> confdefs.h <<\EOF
8343 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8344 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8345 echo "configure:8346: checking for compface.h" >&5
8347 cat > conftest.$ac_ext <<EOF
8348 #line 8349 "configure"
8349 #include "confdefs.h"
8350 #include <compface.h>
8352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8353 { (eval echo configure:8354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8355 if test -z "$ac_err"; then
8357 eval "ac_cv_header_$ac_safe=yes"
8360 echo "configure: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8363 eval "ac_cv_header_$ac_safe=no"
8366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8367 echo "$ac_t""yes" 1>&6
8370 echo "$ac_t""no" 1>&6
8374 test -z "$with_xface" && {
8375 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8376 echo "configure:8377: checking for UnGenFace in -lcompface" >&5
8377 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8379 xe_check_libs=" -lcompface "
8380 cat > conftest.$ac_ext <<EOF
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383 /* Override any gcc2 internal prototype to avoid an error. */
8384 /* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8392 if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8394 eval "ac_cv_lib_$ac_lib_var=yes"
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8399 eval "ac_cv_lib_$ac_lib_var=no"
8404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8405 echo "$ac_t""yes" 1>&6
8408 echo "$ac_t""no" 1>&6
8413 test -z "$with_xface" && with_xface=yes
8414 if test "$with_xface" = "yes"; then
8415 { test "$extra_verbose" = "yes" && cat << \EOF
8418 cat >> confdefs.h <<\EOF
8419 #define HAVE_XFACE 1
8423 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8426 if test "$with_gif" != "no"; then
8428 { test "$extra_verbose" = "yes" && cat << \EOF
8431 cat >> confdefs.h <<\EOF
8436 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8437 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8441 if test "$with_png $with_tiff" != "no no"; then
8443 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8444 echo "configure:8445: checking for inflate in -lc" >&5
8445 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8447 xe_check_libs=" -lc "
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 /* Override any gcc2 internal prototype to avoid an error. */
8452 /* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8460 if { (eval echo configure:8461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8462 eval "ac_cv_lib_$ac_lib_var=yes"
8464 echo "configure: failed program was:" >&5
8465 cat conftest.$ac_ext >&5
8467 eval "ac_cv_lib_$ac_lib_var=no"
8472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8473 echo "$ac_t""yes" 1>&6
8476 echo "$ac_t""no" 1>&6
8478 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8479 echo "configure:8480: checking for inflate in -lz" >&5
8480 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8482 xe_check_libs=" -lz "
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure"
8485 #include "confdefs.h"
8486 /* Override any gcc2 internal prototype to avoid an error. */
8487 /* We use char because int might match the return type of a gcc2
8488 builtin and then its argument prototype would still apply. */
8495 if { (eval echo configure:8496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8497 eval "ac_cv_lib_$ac_lib_var=yes"
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8502 eval "ac_cv_lib_$ac_lib_var=no"
8507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8508 echo "$ac_t""yes" 1>&6
8509 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8511 echo "$ac_t""no" 1>&6
8513 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8514 echo "configure:8515: checking for inflate in -lgz" >&5
8515 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8517 xe_check_libs=" -lgz "
8518 cat > conftest.$ac_ext <<EOF
8519 #line 8520 "configure"
8520 #include "confdefs.h"
8521 /* Override any gcc2 internal prototype to avoid an error. */
8522 /* We use char because int might match the return type of a gcc2
8523 builtin and then its argument prototype would still apply. */
8530 if { (eval echo configure:8531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8532 eval "ac_cv_lib_$ac_lib_var=yes"
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8537 eval "ac_cv_lib_$ac_lib_var=no"
8542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8543 echo "$ac_t""yes" 1>&6
8544 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8546 echo "$ac_t""no" 1>&6
8558 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8559 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8560 echo "configure:8561: checking for jpeglib.h" >&5
8562 cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure"
8564 #include "confdefs.h"
8565 #include <jpeglib.h>
8567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8568 { (eval echo configure:8569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8570 if test -z "$ac_err"; then
8572 eval "ac_cv_header_$ac_safe=yes"
8575 echo "configure: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8578 eval "ac_cv_header_$ac_safe=no"
8581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8582 echo "$ac_t""yes" 1>&6
8585 echo "$ac_t""no" 1>&6
8589 test -z "$with_jpeg" && {
8590 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8591 echo "configure:8592: checking for jpeg_destroy_decompress in -ljpeg" >&5
8592 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8594 xe_check_libs=" -ljpeg "
8595 cat > conftest.$ac_ext <<EOF
8596 #line 8597 "configure"
8597 #include "confdefs.h"
8598 /* Override any gcc2 internal prototype to avoid an error. */
8599 /* We use char because int might match the return type of a gcc2
8600 builtin and then its argument prototype would still apply. */
8601 char jpeg_destroy_decompress();
8604 jpeg_destroy_decompress()
8607 if { (eval echo configure:8608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8609 eval "ac_cv_lib_$ac_lib_var=yes"
8611 echo "configure: failed program was:" >&5
8612 cat conftest.$ac_ext >&5
8614 eval "ac_cv_lib_$ac_lib_var=no"
8619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8620 echo "$ac_t""yes" 1>&6
8623 echo "$ac_t""no" 1>&6
8628 test -z "$with_jpeg" && with_jpeg=yes
8629 if test "$with_jpeg" = "yes"; then
8630 { test "$extra_verbose" = "yes" && cat << \EOF
8633 cat >> confdefs.h <<\EOF
8638 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8642 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8643 echo "configure:8644: checking for pow" >&5
8645 cat > conftest.$ac_ext <<EOF
8646 #line 8647 "configure"
8647 #include "confdefs.h"
8648 /* System header to define __stub macros and hopefully few prototypes,
8649 which can conflict with char pow(); below. */
8651 /* Override any gcc2 internal prototype to avoid an error. */
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8658 /* The GNU C library defines this for functions which it implements
8659 to always fail with ENOSYS. Some functions are actually named
8660 something starting with __ and the normal name is an alias. */
8661 #if defined (__stub_pow) || defined (__stub___pow)
8669 if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8671 eval "ac_cv_func_pow=yes"
8673 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8676 eval "ac_cv_func_pow=no"
8680 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8681 echo "$ac_t""yes" 1>&6
8684 echo "$ac_t""no" 1>&6
8688 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8689 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8690 echo "configure:8691: checking for png.h" >&5
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8698 { (eval echo configure:8699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8700 if test -z "$ac_err"; then
8702 eval "ac_cv_header_$ac_safe=yes"
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8708 eval "ac_cv_header_$ac_safe=no"
8711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8712 echo "$ac_t""yes" 1>&6
8715 echo "$ac_t""no" 1>&6
8719 test -z "$with_png" && {
8720 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8721 echo "configure:8722: checking for png_read_image in -lpng" >&5
8722 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8724 xe_check_libs=" -lpng "
8725 cat > conftest.$ac_ext <<EOF
8726 #line 8727 "configure"
8727 #include "confdefs.h"
8728 /* Override any gcc2 internal prototype to avoid an error. */
8729 /* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8731 char png_read_image();
8737 if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8739 eval "ac_cv_lib_$ac_lib_var=yes"
8741 echo "configure: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8744 eval "ac_cv_lib_$ac_lib_var=no"
8749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8750 echo "$ac_t""yes" 1>&6
8753 echo "$ac_t""no" 1>&6
8758 if test -z "$with_png"; then
8759 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8760 echo "configure:8761: checking for workable png version information" >&5
8761 xe_check_libs="-lpng -lz"
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8766 int main(int c, char **v) {
8767 if (c == 1) return 0;
8768 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8769 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8771 if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8773 ./conftest dummy_arg; png_status=$?;
8774 if test "$png_status" = "0"; then
8778 if test "$png_status" = "1"; then
8779 png_problem="PNG library version and header file don't match!"
8780 elif test "$png_status" = "2"; then
8781 png_problem="PNG library version too old (pre 1.0.2)!"
8784 *** WARNING *** $png_problem
8785 I'm not touching that with a 10-foot pole!
8786 If you really want to use the installed version of libPNG, rerun
8787 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8798 echo "$ac_t""$with_png" 1>&6
8800 if test "$with_png" = "yes"; then
8801 { test "$extra_verbose" = "yes" && cat << \EOF
8804 cat >> confdefs.h <<\EOF
8809 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8812 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8813 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8814 echo "configure:8815: checking for tiffio.h" >&5
8816 cat > conftest.$ac_ext <<EOF
8817 #line 8818 "configure"
8818 #include "confdefs.h"
8821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8822 { (eval echo configure:8823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8824 if test -z "$ac_err"; then
8826 eval "ac_cv_header_$ac_safe=yes"
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8832 eval "ac_cv_header_$ac_safe=no"
8835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8836 echo "$ac_t""yes" 1>&6
8839 echo "$ac_t""no" 1>&6
8843 test -z "$with_tiff" && {
8844 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8845 echo "configure:8846: checking for TIFFClientOpen in -ltiff" >&5
8846 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8848 xe_check_libs=" -ltiff "
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 /* We use char because int might match the return type of a gcc2
8854 builtin and then its argument prototype would still apply. */
8855 char TIFFClientOpen();
8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8863 eval "ac_cv_lib_$ac_lib_var=yes"
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8868 eval "ac_cv_lib_$ac_lib_var=no"
8873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8874 echo "$ac_t""yes" 1>&6
8877 echo "$ac_t""no" 1>&6
8882 test -z "$with_tiff" && with_tiff=yes
8883 if test "$with_tiff" = "yes"; then
8884 { test "$extra_verbose" = "yes" && cat << \EOF
8887 cat >> confdefs.h <<\EOF
8892 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8897 if test "$with_gtk" = "yes"; then
8898 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8899 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8900 echo "configure:8901: checking for compface.h" >&5
8902 cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure"
8904 #include "confdefs.h"
8905 #include <compface.h>
8907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8908 { (eval echo configure:8909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8910 if test -z "$ac_err"; then
8912 eval "ac_cv_header_$ac_safe=yes"
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8918 eval "ac_cv_header_$ac_safe=no"
8921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8922 echo "$ac_t""yes" 1>&6
8925 echo "$ac_t""no" 1>&6
8929 test -z "$with_xface" && {
8930 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8931 echo "configure:8932: checking for UnGenFace in -lcompface" >&5
8932 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8934 xe_check_libs=" -lcompface "
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 /* Override any gcc2 internal prototype to avoid an error. */
8939 /* We use char because int might match the return type of a gcc2
8940 builtin and then its argument prototype would still apply. */
8947 if { (eval echo configure:8948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8949 eval "ac_cv_lib_$ac_lib_var=yes"
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8954 eval "ac_cv_lib_$ac_lib_var=no"
8959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8960 echo "$ac_t""yes" 1>&6
8963 echo "$ac_t""no" 1>&6
8968 test -z "$with_xface" && with_xface=yes
8969 if test "$with_xface" = "yes"; then
8970 { test "$extra_verbose" = "yes" && cat << \EOF
8973 cat >> confdefs.h <<\EOF
8974 #define HAVE_XFACE 1
8978 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8984 if test "$with_x11" = "yes"; then
8985 echo "checking for X11 graphics libraries" 1>&6
8986 echo "configure:8987: checking for X11 graphics libraries" >&5
8989 if test "$with_x11" = "yes"; then
8990 echo "checking for the Athena widgets" 1>&6
8991 echo "configure:8992: checking for the Athena widgets" >&5
8993 case "$with_athena" in
8994 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8995 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8996 "next") athena_variant=neXtaw athena_3d=yes ;;
8997 "95") athena_variant=Xaw95 athena_3d=yes ;;
8998 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8999 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
9002 athena_3d_function=Xaw3dComputeBottomShadowRGB
9004 if test "$athena_3d" = "no"; then
9006 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
9007 echo "configure:9008: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
9008 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9010 xe_check_libs=" -l$athena_variant "
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 /* Override any gcc2 internal prototype to avoid an error. */
9015 /* We use char because int might match the return type of a gcc2
9016 builtin and then its argument prototype would still apply. */
9017 char XawScrollbarSetThumb();
9020 XawScrollbarSetThumb()
9023 if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9025 eval "ac_cv_lib_$ac_lib_var=yes"
9027 echo "configure: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9030 eval "ac_cv_lib_$ac_lib_var=no"
9035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9036 echo "$ac_t""yes" 1>&6
9038 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9039 echo "configure:9040: checking for $athena_3d_function in -l$athena_variant" >&5
9040 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9042 xe_check_libs=" -l$athena_variant "
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9046 /* Override any gcc2 internal prototype to avoid an error. */
9047 /* We use char because int might match the return type of a gcc2
9048 builtin and then its argument prototype would still apply. */
9049 char $athena_3d_function();
9052 $athena_3d_function()
9055 if { (eval echo configure:9056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9057 eval "ac_cv_lib_$ac_lib_var=yes"
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9062 eval "ac_cv_lib_$ac_lib_var=no"
9067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9068 echo "$ac_t""yes" 1>&6
9069 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
9071 echo "$ac_t""no" 1>&6
9072 athena_lib=$athena_variant
9078 echo "$ac_t""no" 1>&6
9079 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
9085 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9086 echo "configure:9087: checking for $athena_3d_function in -l$athena_variant" >&5
9087 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9089 xe_check_libs=" -l$athena_variant "
9090 cat > conftest.$ac_ext <<EOF
9091 #line 9092 "configure"
9092 #include "confdefs.h"
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 /* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9096 char $athena_3d_function();
9099 $athena_3d_function()
9102 if { (eval echo configure:9103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9104 eval "ac_cv_lib_$ac_lib_var=yes"
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9109 eval "ac_cv_lib_$ac_lib_var=no"
9114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9115 echo "$ac_t""yes" 1>&6
9116 athena_lib=$athena_variant
9118 echo "$ac_t""no" 1>&6
9119 echo $ac_n "checking for $athena_3d_function in -lXaw""... $ac_c" 1>&6
9120 echo "configure:9121: checking for $athena_3d_function in -lXaw" >&5
9121 ac_lib_var=`echo Xaw'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9123 xe_check_libs=" -lXaw "
9124 cat > conftest.$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9127 /* Override any gcc2 internal prototype to avoid an error. */
9128 /* We use char because int might match the return type of a gcc2
9129 builtin and then its argument prototype would still apply. */
9130 char $athena_3d_function();
9133 $athena_3d_function()
9136 if { (eval echo configure:9137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9138 eval "ac_cv_lib_$ac_lib_var=yes"
9140 echo "configure: failed program was:" >&5
9141 cat conftest.$ac_ext >&5
9143 eval "ac_cv_lib_$ac_lib_var=no"
9148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9149 echo "$ac_t""yes" 1>&6
9151 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
9154 echo "$ac_t""no" 1>&6
9155 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
9164 if test "$athena_3d" = "no"; then
9165 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9166 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9167 echo "configure:9168: checking for X11/Xaw/ThreeD.h" >&5
9169 cat > conftest.$ac_ext <<EOF
9170 #line 9171 "configure"
9171 #include "confdefs.h"
9172 #include <X11/Xaw/ThreeD.h>
9174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9175 { (eval echo configure:9176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9177 if test -z "$ac_err"; then
9179 eval "ac_cv_header_$ac_safe=yes"
9182 echo "configure: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9185 eval "ac_cv_header_$ac_safe=no"
9188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9189 echo "$ac_t""yes" 1>&6
9190 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9192 echo "$ac_t""no" 1>&6
9193 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9194 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9195 echo "configure:9196: checking for X11/Xaw/XawInit.h" >&5
9197 cat > conftest.$ac_ext <<EOF
9198 #line 9199 "configure"
9199 #include "confdefs.h"
9200 #include <X11/Xaw/XawInit.h>
9202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9203 { (eval echo configure:9204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9205 if test -z "$ac_err"; then
9207 eval "ac_cv_header_$ac_safe=yes"
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9213 eval "ac_cv_header_$ac_safe=no"
9216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9217 echo "$ac_t""yes" 1>&6
9218 athena_h_path=X11/Xaw
9220 echo "$ac_t""no" 1>&6
9221 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9227 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9228 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9229 echo "configure:9230: checking for X11/$athena_variant/XawInit.h" >&5
9231 cat > conftest.$ac_ext <<EOF
9232 #line 9233 "configure"
9233 #include "confdefs.h"
9234 #include <X11/$athena_variant/XawInit.h>
9236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9237 { (eval echo configure:9238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9239 if test -z "$ac_err"; then
9241 eval "ac_cv_header_$ac_safe=yes"
9244 echo "configure: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9247 eval "ac_cv_header_$ac_safe=no"
9250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9251 echo "$ac_t""yes" 1>&6
9252 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9253 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9254 echo "configure:9255: checking for X11/$athena_variant/ThreeD.h" >&5
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 #include <X11/$athena_variant/ThreeD.h>
9261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9262 { (eval echo configure:9263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9264 if test -z "$ac_err"; then
9266 eval "ac_cv_header_$ac_safe=yes"
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9272 eval "ac_cv_header_$ac_safe=no"
9275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9276 echo "$ac_t""yes" 1>&6
9277 athena_h_path=X11/$athena_variant
9279 echo "$ac_t""no" 1>&6
9283 echo "$ac_t""no" 1>&6
9287 if test -z "$athena_h_path"; then
9288 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9289 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9290 echo "configure:9291: checking for $athena_variant/XawInit.h" >&5
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9295 #include <$athena_variant/XawInit.h>
9297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9298 { (eval echo configure:9299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9300 if test -z "$ac_err"; then
9302 eval "ac_cv_header_$ac_safe=yes"
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9308 eval "ac_cv_header_$ac_safe=no"
9311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9312 echo "$ac_t""yes" 1>&6
9313 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9314 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9315 echo "configure:9316: checking for $athena_variant/ThreeD.h" >&5
9317 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9320 #include <$athena_variant/ThreeD.h>
9322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9323 { (eval echo configure:9324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9325 if test -z "$ac_err"; then
9327 eval "ac_cv_header_$ac_safe=yes"
9330 echo "configure: failed program was:" >&5
9331 cat conftest.$ac_ext >&5
9333 eval "ac_cv_header_$ac_safe=no"
9336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9337 echo "$ac_t""yes" 1>&6
9338 athena_h_path=$athena_variant
9340 echo "$ac_t""no" 1>&6
9344 echo "$ac_t""no" 1>&6
9349 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9350 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9351 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9352 echo "configure:9353: checking for X11/Xaw3d/XawInit.h" >&5
9354 cat > conftest.$ac_ext <<EOF
9355 #line 9356 "configure"
9356 #include "confdefs.h"
9357 #include <X11/Xaw3d/XawInit.h>
9359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9360 { (eval echo configure:9361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9362 if test -z "$ac_err"; then
9364 eval "ac_cv_header_$ac_safe=yes"
9367 echo "configure: failed program was:" >&5
9368 cat conftest.$ac_ext >&5
9370 eval "ac_cv_header_$ac_safe=no"
9373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9374 echo "$ac_t""yes" 1>&6
9375 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9376 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9377 echo "configure:9378: checking for X11/Xaw3d/ThreeD.h" >&5
9379 cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9382 #include <X11/Xaw3d/ThreeD.h>
9384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9385 { (eval echo configure:9386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9387 if test -z "$ac_err"; then
9389 eval "ac_cv_header_$ac_safe=yes"
9392 echo "configure: failed program was:" >&5
9393 cat conftest.$ac_ext >&5
9395 eval "ac_cv_header_$ac_safe=no"
9398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9399 echo "$ac_t""yes" 1>&6
9401 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9402 athena_h_path=X11/Xaw3d
9405 echo "$ac_t""no" 1>&6
9409 echo "$ac_t""no" 1>&6
9414 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9415 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9416 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9417 echo "configure:9418: checking for Xaw3d/XawInit.h" >&5
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 #include <Xaw3d/XawInit.h>
9424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9425 { (eval echo configure:9426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9427 if test -z "$ac_err"; then
9429 eval "ac_cv_header_$ac_safe=yes"
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9435 eval "ac_cv_header_$ac_safe=no"
9438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9439 echo "$ac_t""yes" 1>&6
9440 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9441 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9442 echo "configure:9443: checking for Xaw3d/ThreeD.h" >&5
9444 cat > conftest.$ac_ext <<EOF
9445 #line 9446 "configure"
9446 #include "confdefs.h"
9447 #include <Xaw3d/ThreeD.h>
9449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9450 { (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9452 if test -z "$ac_err"; then
9454 eval "ac_cv_header_$ac_safe=yes"
9457 echo "configure: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9460 eval "ac_cv_header_$ac_safe=no"
9463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9464 echo "$ac_t""yes" 1>&6
9466 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9470 echo "$ac_t""no" 1>&6
9474 echo "$ac_t""no" 1>&6
9479 if test -z "$athena_h_path"; then
9480 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9481 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9482 echo "configure:9483: checking for X11/Xaw/ThreeD.h" >&5
9484 cat > conftest.$ac_ext <<EOF
9485 #line 9486 "configure"
9486 #include "confdefs.h"
9487 #include <X11/Xaw/ThreeD.h>
9489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9490 { (eval echo configure:9491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9492 if test -z "$ac_err"; then
9494 eval "ac_cv_header_$ac_safe=yes"
9497 echo "configure: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9500 eval "ac_cv_header_$ac_safe=no"
9503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9504 echo "$ac_t""yes" 1>&6
9506 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9507 athena_h_path=X11/Xaw
9510 echo "$ac_t""no" 1>&6
9511 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9517 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9526 if test "$with_x11" = "yes"; then
9527 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9528 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9529 echo "configure:9530: checking for Xm/Xm.h" >&5
9531 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9537 { (eval echo configure:9538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9539 if test -z "$ac_err"; then
9541 eval "ac_cv_header_$ac_safe=yes"
9544 echo "configure: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9547 eval "ac_cv_header_$ac_safe=no"
9550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9551 echo "$ac_t""yes" 1>&6
9553 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9554 echo "configure:9555: checking for XmStringFree in -lXm" >&5
9555 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9557 xe_check_libs=" -lXm "
9558 cat > conftest.$ac_ext <<EOF
9559 #line 9560 "configure"
9560 #include "confdefs.h"
9561 /* Override any gcc2 internal prototype to avoid an error. */
9562 /* We use char because int might match the return type of a gcc2
9563 builtin and then its argument prototype would still apply. */
9564 char XmStringFree();
9570 if { (eval echo configure:9571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9572 eval "ac_cv_lib_$ac_lib_var=yes"
9574 echo "configure: failed program was:" >&5
9575 cat conftest.$ac_ext >&5
9577 eval "ac_cv_lib_$ac_lib_var=no"
9582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9583 echo "$ac_t""yes" 1>&6
9586 echo "$ac_t""no" 1>&6
9592 echo "$ac_t""no" 1>&6
9597 if test "$have_motif" = "yes"; then
9598 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9599 echo "configure:9600: checking for Lesstif" >&5
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9604 #ifdef LESSTIF_VERSION
9609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9610 egrep "yes" >/dev/null 2>&1; then
9619 echo "$ac_t""$have_lesstif" 1>&6
9624 case "$with_menubars" in "" | "yes" | "athena" )
9625 with_menubars="lucid" ;;
9627 case "$with_dialogs" in "" | "yes" | "lucid" )
9628 if test "$have_motif" = "yes"; then with_dialogs="motif"
9629 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9630 else with_dialogs=no
9633 case "$with_scrollbars" in "" | "yes" )
9634 with_scrollbars="lucid" ;;
9636 case "$with_widgets" in "" | "yes" | "lucid")
9637 if test "$have_motif" = "yes"; then with_widgets="motif"
9638 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9639 else with_widgets=no
9643 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9645 case "$all_widgets" in
9647 if test "$have_xaw" != "yes"; then
9648 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9651 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9653 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9655 { test "$extra_verbose" = "yes" && cat << EOF
9656 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9658 cat >> confdefs.h <<EOF
9659 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9663 { test "$extra_verbose" = "yes" && cat << EOF
9664 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9666 cat >> confdefs.h <<EOF
9667 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9671 { test "$extra_verbose" = "yes" && cat << EOF
9672 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9674 cat >> confdefs.h <<EOF
9675 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9679 { test "$extra_verbose" = "yes" && cat << EOF
9680 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9682 cat >> confdefs.h <<EOF
9683 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9687 { test "$extra_verbose" = "yes" && cat << EOF
9688 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9690 cat >> confdefs.h <<EOF
9691 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9695 { test "$extra_verbose" = "yes" && cat << EOF
9696 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9698 cat >> confdefs.h <<EOF
9699 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9703 { test "$extra_verbose" = "yes" && cat << EOF
9704 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9706 cat >> confdefs.h <<EOF
9707 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9711 { test "$extra_verbose" = "yes" && cat << EOF
9712 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9714 cat >> confdefs.h <<EOF
9715 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9719 { test "$extra_verbose" = "yes" && cat << EOF
9720 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9722 cat >> confdefs.h <<EOF
9723 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9727 { test "$extra_verbose" = "yes" && cat << EOF
9728 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9730 cat >> confdefs.h <<EOF
9731 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9736 { test "$extra_verbose" = "yes" && cat << \EOF
9737 Defining LWLIB_USES_ATHENA
9739 cat >> confdefs.h <<\EOF
9740 #define LWLIB_USES_ATHENA 1
9744 { test "$extra_verbose" = "yes" && cat << \EOF
9745 Defining NEED_ATHENA
9747 cat >> confdefs.h <<\EOF
9748 #define NEED_ATHENA 1
9754 if test "$athena_3d" = "yes"; then
9755 { test "$extra_verbose" = "yes" && cat << \EOF
9756 Defining HAVE_ATHENA_3D
9758 cat >> confdefs.h <<\EOF
9759 #define HAVE_ATHENA_3D 1
9767 case "$all_widgets" in *motif* )
9768 { test "$extra_verbose" = "yes" && cat << \EOF
9769 Defining LWLIB_USES_MOTIF
9771 cat >> confdefs.h <<\EOF
9772 #define LWLIB_USES_MOTIF 1
9776 { test "$extra_verbose" = "yes" && cat << \EOF
9779 cat >> confdefs.h <<\EOF
9780 #define NEED_MOTIF 1
9784 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9788 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9789 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9790 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9791 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9792 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9793 case "$with_widgets" in athena* )
9794 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;;
9796 case "$all_widgets" in *lucid* )
9797 { test "$extra_verbose" = "yes" && cat << \EOF
9800 cat >> confdefs.h <<\EOF
9801 #define NEED_LUCID 1
9805 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9810 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9811 Defining LWLIB_SCROLLBARS_ATHENA
9813 cat >> confdefs.h <<\EOF
9814 #define LWLIB_SCROLLBARS_ATHENA 1
9818 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9819 Defining LWLIB_DIALOGS_ATHENA
9821 cat >> confdefs.h <<\EOF
9822 #define LWLIB_DIALOGS_ATHENA 1
9827 if test "$athena_3d" = "yes"; then
9828 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9829 Defining LWLIB_SCROLLBARS_ATHENA3D
9831 cat >> confdefs.h <<\EOF
9832 #define LWLIB_SCROLLBARS_ATHENA3D 1
9836 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9837 Defining LWLIB_DIALOGS_ATHENA3D
9839 cat >> confdefs.h <<\EOF
9840 #define LWLIB_DIALOGS_ATHENA3D 1
9846 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9847 Defining LWLIB_WIDGETS_ATHENA
9849 cat >> confdefs.h <<\EOF
9850 #define LWLIB_WIDGETS_ATHENA 1
9854 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9855 { test "$extra_verbose" = "yes" && cat << \EOF
9856 Defining LWLIB_TABS_LUCID
9858 cat >> confdefs.h <<\EOF
9859 #define LWLIB_TABS_LUCID 1
9864 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9865 Defining HAVE_MENUBARS
9867 cat >> confdefs.h <<\EOF
9868 #define HAVE_MENUBARS 1
9872 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9873 Defining HAVE_SCROLLBARS
9875 cat >> confdefs.h <<\EOF
9876 #define HAVE_SCROLLBARS 1
9880 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9881 Defining HAVE_DIALOGS
9883 cat >> confdefs.h <<\EOF
9884 #define HAVE_DIALOGS 1
9888 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9889 Defining HAVE_TOOLBARS
9891 cat >> confdefs.h <<\EOF
9892 #define HAVE_TOOLBARS 1
9896 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9897 Defining HAVE_WIDGETS
9899 cat >> confdefs.h <<\EOF
9900 #define HAVE_WIDGETS 1
9905 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9906 Defining LWLIB_MENUBARS_LUCID
9908 cat >> confdefs.h <<\EOF
9909 #define LWLIB_MENUBARS_LUCID 1
9913 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9914 Defining LWLIB_SCROLLBARS_LUCID
9916 cat >> confdefs.h <<\EOF
9917 #define LWLIB_SCROLLBARS_LUCID 1
9922 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9923 Defining LWLIB_MENUBARS_MOTIF
9925 cat >> confdefs.h <<\EOF
9926 #define LWLIB_MENUBARS_MOTIF 1
9930 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9931 Defining LWLIB_SCROLLBARS_MOTIF
9933 cat >> confdefs.h <<\EOF
9934 #define LWLIB_SCROLLBARS_MOTIF 1
9938 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9939 Defining LWLIB_DIALOGS_MOTIF
9941 cat >> confdefs.h <<\EOF
9942 #define LWLIB_DIALOGS_MOTIF 1
9946 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9947 Defining LWLIB_WIDGETS_MOTIF
9949 cat >> confdefs.h <<\EOF
9950 #define LWLIB_WIDGETS_MOTIF 1
9955 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9956 echo " xemacs will be linked with \"menubar.o\""
9958 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9959 echo " xemacs will be linked with \"scrollbar.o\""
9961 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9962 echo " xemacs will be linked with \"dialog.o\""
9964 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9965 echo " xemacs will be linked with \"toolbar.o\""
9968 if test "$with_gtk" = "yes"; then
9969 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9970 echo " xemacs will be linked with \"menubar-gtk.o\""
9972 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9973 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9975 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9976 echo " xemacs will be linked with \"dialog-gtk.o\""
9978 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9979 echo " xemacs will be linked with \"toolbar-gtk.o\""
9981 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9982 echo " xemacs will be linked with \"gui-gtk.o\""
9986 if test "$with_x11" = "yes"; then
9987 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9988 echo " xemacs will be linked with \"menubar-x.o\""
9990 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9991 echo " xemacs will be linked with \"scrollbar-x.o\""
9993 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9994 echo " xemacs will be linked with \"dialog-x.o\""
9996 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9997 echo " xemacs will be linked with \"toolbar-x.o\""
9999 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
10000 echo " xemacs will be linked with \"gui-x.o\""
10005 test -z "$with_mule" && with_mule=no
10006 test -z "$with_file_coding" && with_file_coding=no
10009 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
10010 { test "$extra_verbose" = "yes" && cat << \EOF
10011 Defining FILE_CODING
10013 cat >> confdefs.h <<\EOF
10014 #define FILE_CODING 1
10018 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
10019 echo " xemacs will be linked with \"file-coding.o\""
10023 test -z "$with_chise" && with_chise=yes
10024 if test "$with_chise" = "yes"; then
10027 with_text_coding=yes
10030 if test "$with_mule" = "yes" ; then
10031 echo "checking for Mule-related features" 1>&6
10032 echo "configure:10033: checking for Mule-related features" >&5
10033 { test "$extra_verbose" = "yes" && cat << \EOF
10036 cat >> confdefs.h <<\EOF
10042 chise_includes_found=no
10043 if test "$with_chise" != "no"; then
10044 ac_safe=`echo "chise.h" | sed 'y%./+-%__p_%'`
10045 echo $ac_n "checking for chise.h""... $ac_c" 1>&6
10046 echo "configure:10047: checking for chise.h" >&5
10048 cat > conftest.$ac_ext <<EOF
10049 #line 10050 "configure"
10050 #include "confdefs.h"
10053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10054 { (eval echo configure:10055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10056 if test -z "$ac_err"; then
10058 eval "ac_cv_header_$ac_safe=yes"
10061 echo "configure: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10064 eval "ac_cv_header_$ac_safe=no"
10067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10068 echo "$ac_t""yes" 1>&6
10071 echo "$ac_t""no" 1>&6
10076 if test "$chise_includes_found" = "no" -a "$with_chise" != "no" -a \
10077 -d "/usr/local/chise/include"; then
10078 save_c_switch_site="$c_switch_site"
10079 c_switch_site="$c_switch_site -I/usr/local/chise/include"
10080 ac_safe=`echo "chise.h" | sed 'y%./+-%__p_%'`
10081 echo $ac_n "checking for chise.h""... $ac_c" 1>&6
10082 echo "configure:10083: checking for chise.h" >&5
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10090 { (eval echo configure:10091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10092 if test -z "$ac_err"; then
10094 eval "ac_cv_header_$ac_safe=yes"
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 eval "ac_cv_header_$ac_safe=no"
10103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10104 echo "$ac_t""yes" 1>&6
10105 chise_includes_found=yes
10107 echo "$ac_t""no" 1>&6
10110 if test "$chise_includes_found" != "yes"; then
10111 c_switch_site="$save_c_switch_site"
10116 test -z "$with_chise" && with_chise=yes
10117 if test "$with_chise" = "yes"; then
10118 { test "$extra_verbose" = "yes" && cat << \EOF
10119 Defining HAVE_CHISE
10121 cat >> confdefs.h <<\EOF
10122 #define HAVE_CHISE 1
10126 { test "$extra_verbose" = "yes" && cat << \EOF
10127 Defining HAVE_LIBCHISE
10129 cat >> confdefs.h <<\EOF
10130 #define HAVE_LIBCHISE 1
10134 libs_x="-lchise $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lchise\" to \$libs_x"; fi
10137 { test "$extra_verbose" = "yes" && cat << \EOF
10138 Defining FILE_CODING
10140 cat >> confdefs.h <<\EOF
10141 #define FILE_CODING 1
10145 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
10146 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
10148 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
10149 { test "$extra_verbose" = "yes" && cat << \EOF
10150 Defining TEXT_CODING
10152 cat >> confdefs.h <<\EOF
10153 #define TEXT_CODING 1
10157 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
10158 echo " xemacs will be linked with \"text-coding.o\""
10161 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
10162 echo " xemacs will be linked with \"file-coding.o\""
10165 for ac_hdr in libintl.h
10167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10169 echo "configure:10170: checking for $ac_hdr" >&5
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10177 { (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10179 if test -z "$ac_err"; then
10181 eval "ac_cv_header_$ac_safe=yes"
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10187 eval "ac_cv_header_$ac_safe=no"
10190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10191 echo "$ac_t""yes" 1>&6
10192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10193 { test "$extra_verbose" = "yes" && cat << EOF
10194 Defining $ac_tr_hdr
10196 cat >> confdefs.h <<EOF
10197 #define $ac_tr_hdr 1
10202 echo "$ac_t""no" 1>&6
10207 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
10208 echo "configure:10209: checking for strerror in -lintl" >&5
10209 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
10211 xe_check_libs=" -lintl "
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 /* Override any gcc2 internal prototype to avoid an error. */
10216 /* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10224 if { (eval echo configure:10225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10226 eval "ac_cv_lib_$ac_lib_var=yes"
10228 echo "configure: failed program was:" >&5
10229 cat conftest.$ac_ext >&5
10231 eval "ac_cv_lib_$ac_lib_var=no"
10236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10237 echo "$ac_t""yes" 1>&6
10238 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10240 { test "$extra_verbose" = "yes" && cat << EOF
10241 Defining $ac_tr_lib
10243 cat >> confdefs.h <<EOF
10244 #define $ac_tr_lib 1
10248 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
10251 echo "$ac_t""no" 1>&6
10256 if test "$with_utf_2000" = "yes" ; then
10257 { test "$extra_verbose" = "yes" && cat << \EOF
10258 Defining CHAR_IS_UCS4
10260 cat >> confdefs.h <<\EOF
10261 #define CHAR_IS_UCS4 1
10265 { test "$extra_verbose" = "yes" && cat << \EOF
10268 cat >> confdefs.h <<\EOF
10277 echo "checking for Mule input methods" 1>&6
10278 echo "configure:10279: checking for Mule input methods" >&5
10279 case "$with_xim" in "" | "yes" )
10280 echo "checking for XIM" 1>&6
10281 echo "configure:10282: checking for XIM" >&5
10283 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10284 echo "configure:10285: checking for XOpenIM in -lX11" >&5
10285 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10287 xe_check_libs=" -lX11 "
10288 cat > conftest.$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10291 /* Override any gcc2 internal prototype to avoid an error. */
10292 /* We use char because int might match the return type of a gcc2
10293 builtin and then its argument prototype would still apply. */
10300 if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10302 eval "ac_cv_lib_$ac_lib_var=yes"
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10307 eval "ac_cv_lib_$ac_lib_var=no"
10312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10313 echo "$ac_t""yes" 1>&6
10316 echo "$ac_t""no" 1>&6
10321 if test "$have_motif $have_lesstif" = "yes no"; then
10323 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10324 echo "configure:10325: checking for XmImMbLookupString in -lXm" >&5
10325 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10327 xe_check_libs=" -lXm "
10328 cat > conftest.$ac_ext <<EOF
10329 #line 10330 "configure"
10330 #include "confdefs.h"
10331 /* Override any gcc2 internal prototype to avoid an error. */
10332 /* We use char because int might match the return type of a gcc2
10333 builtin and then its argument prototype would still apply. */
10334 char XmImMbLookupString();
10337 XmImMbLookupString()
10340 if { (eval echo configure:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10342 eval "ac_cv_lib_$ac_lib_var=yes"
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10347 eval "ac_cv_lib_$ac_lib_var=no"
10352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10353 echo "$ac_t""yes" 1>&6
10356 echo "$ac_t""no" 1>&6
10362 if test "$with_xim" != "no"; then
10363 { test "$extra_verbose" = "yes" && cat << \EOF
10366 cat >> confdefs.h <<\EOF
10371 if test "$with_xim" = "xlib"; then
10372 { test "$extra_verbose" = "yes" && cat << \EOF
10375 cat >> confdefs.h <<\EOF
10380 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10381 echo " xemacs will be linked with \"input-method-xlib.o\""
10384 if test "$with_xim" = "motif"; then
10385 { test "$extra_verbose" = "yes" && cat << \EOF
10388 cat >> confdefs.h <<\EOF
10389 #define XIM_MOTIF 1
10394 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10395 echo " xemacs will be linked with \"input-method-motif.o\""
10398 if test "$with_xim" = "motif"; then
10403 if test "$with_xfs" = "yes" ; then
10404 echo "checking for XFontSet" 1>&6
10405 echo "configure:10406: checking for XFontSet" >&5
10407 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10408 echo "configure:10409: checking for XmbDrawString in -lX11" >&5
10409 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10411 xe_check_libs=" -lX11 "
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure"
10414 #include "confdefs.h"
10415 /* Override any gcc2 internal prototype to avoid an error. */
10416 /* We use char because int might match the return type of a gcc2
10417 builtin and then its argument prototype would still apply. */
10418 char XmbDrawString();
10424 if { (eval echo configure:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10426 eval "ac_cv_lib_$ac_lib_var=yes"
10428 echo "configure: failed program was:" >&5
10429 cat conftest.$ac_ext >&5
10431 eval "ac_cv_lib_$ac_lib_var=no"
10436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10437 echo "$ac_t""yes" 1>&6
10440 echo "$ac_t""no" 1>&6
10445 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10446 { test "$extra_verbose" = "yes" && cat << \EOF
10447 Defining USE_XFONTSET
10449 cat >> confdefs.h <<\EOF
10450 #define USE_XFONTSET 1
10454 if test "$with_xim" = "no" ; then
10455 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10456 echo " xemacs will be linked with \"input-method-xlib.o\""
10461 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10462 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10463 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10464 echo "configure:10465: checking for wnn/jllib.h" >&5
10466 cat > conftest.$ac_ext <<EOF
10467 #line 10468 "configure"
10468 #include "confdefs.h"
10469 #include <wnn/jllib.h>
10471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10472 { (eval echo configure:10473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10474 if test -z "$ac_err"; then
10476 eval "ac_cv_header_$ac_safe=yes"
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10482 eval "ac_cv_header_$ac_safe=no"
10485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10486 echo "$ac_t""yes" 1>&6
10489 echo "$ac_t""no" 1>&6
10493 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10494 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10495 echo "configure:10496: checking for wnn/commonhd.h" >&5
10497 cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure"
10499 #include "confdefs.h"
10500 #include <wnn/commonhd.h>
10502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10503 { (eval echo configure:10504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10505 if test -z "$ac_err"; then
10507 eval "ac_cv_header_$ac_safe=yes"
10510 echo "configure: failed program was:" >&5
10511 cat conftest.$ac_ext >&5
10513 eval "ac_cv_header_$ac_safe=no"
10516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10517 echo "$ac_t""yes" 1>&6
10520 echo "$ac_t""no" 1>&6
10524 if test "$with_wnn" != "no"; then
10525 for ac_func in crypt
10527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10528 echo "configure:10529: checking for $ac_func" >&5
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533 /* System header to define __stub macros and hopefully few prototypes,
10534 which can conflict with char $ac_func(); below. */
10535 #include <assert.h>
10536 /* Override any gcc2 internal prototype to avoid an error. */
10537 /* We use char because int might match the return type of a gcc2
10538 builtin and then its argument prototype would still apply. */
10543 /* The GNU C library defines this for functions which it implements
10544 to always fail with ENOSYS. Some functions are actually named
10545 something starting with __ and the normal name is an alias. */
10546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10554 if { (eval echo configure:10555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10556 eval "ac_cv_func_$ac_func=yes"
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10561 eval "ac_cv_func_$ac_func=no"
10565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10566 echo "$ac_t""yes" 1>&6
10567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10568 { test "$extra_verbose" = "yes" && cat << EOF
10569 Defining $ac_tr_func
10571 cat >> confdefs.h <<EOF
10572 #define $ac_tr_func 1
10577 echo "$ac_t""no" 1>&6
10581 test "$ac_cv_func_crypt" != "yes" && {
10582 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10583 echo "configure:10584: checking for crypt in -lcrypt" >&5
10584 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10586 xe_check_libs=" -lcrypt "
10587 cat > conftest.$ac_ext <<EOF
10588 #line 10589 "configure"
10589 #include "confdefs.h"
10590 /* Override any gcc2 internal prototype to avoid an error. */
10591 /* We use char because int might match the return type of a gcc2
10592 builtin and then its argument prototype would still apply. */
10599 if { (eval echo configure:10600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10601 eval "ac_cv_lib_$ac_lib_var=yes"
10603 echo "configure: failed program was:" >&5
10604 cat conftest.$ac_ext >&5
10606 eval "ac_cv_lib_$ac_lib_var=no"
10611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10612 echo "$ac_t""yes" 1>&6
10613 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10614 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10615 { test "$extra_verbose" = "yes" && cat << EOF
10616 Defining $ac_tr_lib
10618 cat >> confdefs.h <<EOF
10619 #define $ac_tr_lib 1
10623 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10626 echo "$ac_t""no" 1>&6
10631 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10633 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10634 echo "configure:10635: checking for jl_dic_list_e in -lwnn" >&5
10635 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10637 xe_check_libs=" -lwnn "
10638 cat > conftest.$ac_ext <<EOF
10639 #line 10640 "configure"
10640 #include "confdefs.h"
10641 /* Override any gcc2 internal prototype to avoid an error. */
10642 /* We use char because int might match the return type of a gcc2
10643 builtin and then its argument prototype would still apply. */
10644 char jl_dic_list_e();
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10652 eval "ac_cv_lib_$ac_lib_var=yes"
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10657 eval "ac_cv_lib_$ac_lib_var=no"
10662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10663 echo "$ac_t""yes" 1>&6
10666 echo "$ac_t""no" 1>&6
10667 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10668 echo "configure:10669: checking for jl_dic_list_e in -lwnn4" >&5
10669 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10671 xe_check_libs=" -lwnn4 "
10672 cat > conftest.$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10675 /* Override any gcc2 internal prototype to avoid an error. */
10676 /* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10678 char jl_dic_list_e();
10684 if { (eval echo configure:10685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10686 eval "ac_cv_lib_$ac_lib_var=yes"
10688 echo "configure: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10691 eval "ac_cv_lib_$ac_lib_var=no"
10696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10697 echo "$ac_t""yes" 1>&6
10700 echo "$ac_t""no" 1>&6
10701 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10702 echo "configure:10703: checking for jl_dic_list_e in -lwnn6" >&5
10703 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10705 xe_check_libs=" -lwnn6 "
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10709 /* Override any gcc2 internal prototype to avoid an error. */
10710 /* We use char because int might match the return type of a gcc2
10711 builtin and then its argument prototype would still apply. */
10712 char jl_dic_list_e();
10718 if { (eval echo configure:10719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10720 eval "ac_cv_lib_$ac_lib_var=yes"
10722 echo "configure: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10725 eval "ac_cv_lib_$ac_lib_var=no"
10730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10731 echo "$ac_t""yes" 1>&6
10734 echo "$ac_t""no" 1>&6
10735 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10736 echo "configure:10737: checking for dic_list_e in -lwnn6_fromsrc" >&5
10737 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10739 xe_check_libs=" -lwnn6_fromsrc "
10740 cat > conftest.$ac_ext <<EOF
10741 #line 10742 "configure"
10742 #include "confdefs.h"
10743 /* Override any gcc2 internal prototype to avoid an error. */
10744 /* We use char because int might match the return type of a gcc2
10745 builtin and then its argument prototype would still apply. */
10752 if { (eval echo configure:10753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10754 eval "ac_cv_lib_$ac_lib_var=yes"
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 eval "ac_cv_lib_$ac_lib_var=no"
10764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10765 echo "$ac_t""yes" 1>&6
10766 libwnn=wnn6_fromsrc
10768 echo "$ac_t""no" 1>&6
10783 test -z "$with_wnn" && with_wnn=yes
10784 if test "$with_wnn" = "yes"; then
10785 { test "$extra_verbose" = "yes" && cat << \EOF
10788 cat >> confdefs.h <<\EOF
10793 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10794 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10795 echo " xemacs will be linked with \"mule-wnnfns.o\""
10797 if test "$with_wnn6" != "no"; then
10799 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10800 echo "configure:10801: checking for jl_fi_dic_list in -l$libwnn" >&5
10801 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10803 xe_check_libs=" -l$libwnn "
10804 cat > conftest.$ac_ext <<EOF
10805 #line 10806 "configure"
10806 #include "confdefs.h"
10807 /* Override any gcc2 internal prototype to avoid an error. */
10808 /* We use char because int might match the return type of a gcc2
10809 builtin and then its argument prototype would still apply. */
10810 char jl_fi_dic_list();
10816 if { (eval echo configure:10817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10818 eval "ac_cv_lib_$ac_lib_var=yes"
10820 echo "configure: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10823 eval "ac_cv_lib_$ac_lib_var=no"
10828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10829 echo "$ac_t""yes" 1>&6
10832 echo "$ac_t""no" 1>&6
10836 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10839 cat >> confdefs.h <<\EOF
10847 canna_includes_found=no
10848 if test "$with_canna" != "no"; then
10849 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10850 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10851 echo "configure:10852: checking for canna/jrkanji.h" >&5
10853 cat > conftest.$ac_ext <<EOF
10854 #line 10855 "configure"
10855 #include "confdefs.h"
10856 #include <canna/jrkanji.h>
10858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10859 { (eval echo configure:10860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10861 if test -z "$ac_err"; then
10863 eval "ac_cv_header_$ac_safe=yes"
10866 echo "configure: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10869 eval "ac_cv_header_$ac_safe=no"
10872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10873 echo "$ac_t""yes" 1>&6
10874 canna_includes_found=yes
10876 echo "$ac_t""no" 1>&6
10880 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10881 -d "/usr/local/canna/include"; then
10882 save_c_switch_site="$c_switch_site"
10883 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10884 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10885 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10886 echo "configure:10887: checking for canna/jrkanji.h" >&5
10888 cat > conftest.$ac_ext <<EOF
10889 #line 10890 "configure"
10890 #include "confdefs.h"
10891 #include <canna/jrkanji.h>
10893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10894 { (eval echo configure:10895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10896 if test -z "$ac_err"; then
10898 eval "ac_cv_header_$ac_safe=yes"
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10904 eval "ac_cv_header_$ac_safe=no"
10907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10908 echo "$ac_t""yes" 1>&6
10909 canna_includes_found=yes
10911 echo "$ac_t""no" 1>&6
10914 if test "$canna_includes_found" != "yes"; then
10915 c_switch_site="$save_c_switch_site"
10920 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10921 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10922 echo "configure:10923: checking for canna/RK.h" >&5
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 #include <canna/RK.h>
10929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10930 { (eval echo configure:10931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10932 if test -z "$ac_err"; then
10934 eval "ac_cv_header_$ac_safe=yes"
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10940 eval "ac_cv_header_$ac_safe=no"
10943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10947 echo "$ac_t""no" 1>&6
10951 test -z "$with_canna" && {
10952 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10953 echo "configure:10954: checking for RkBgnBun in -lRKC" >&5
10954 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10956 xe_check_libs=" -lRKC "
10957 cat > conftest.$ac_ext <<EOF
10958 #line 10959 "configure"
10959 #include "confdefs.h"
10960 /* Override any gcc2 internal prototype to avoid an error. */
10961 /* We use char because int might match the return type of a gcc2
10962 builtin and then its argument prototype would still apply. */
10969 if { (eval echo configure:10970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10971 eval "ac_cv_lib_$ac_lib_var=yes"
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10976 eval "ac_cv_lib_$ac_lib_var=no"
10981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10982 echo "$ac_t""yes" 1>&6
10985 echo "$ac_t""no" 1>&6
10990 test -z "$with_canna" && {
10991 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10992 echo "configure:10993: checking for jrKanjiControl in -lcanna" >&5
10993 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10995 xe_check_libs=" -lcanna "
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
10999 /* Override any gcc2 internal prototype to avoid an error. */
11000 /* We use char because int might match the return type of a gcc2
11001 builtin and then its argument prototype would still apply. */
11002 char jrKanjiControl();
11008 if { (eval echo configure:11009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11010 eval "ac_cv_lib_$ac_lib_var=yes"
11012 echo "configure: failed program was:" >&5
11013 cat conftest.$ac_ext >&5
11015 eval "ac_cv_lib_$ac_lib_var=no"
11020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11021 echo "$ac_t""yes" 1>&6
11024 echo "$ac_t""no" 1>&6
11029 test -z "$with_canna" && with_canna=yes
11030 if test "$with_canna" = "yes"; then
11031 { test "$extra_verbose" = "yes" && cat << \EOF
11032 Defining HAVE_CANNA
11034 cat >> confdefs.h <<\EOF
11035 #define HAVE_CANNA 1
11039 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
11040 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
11041 echo " xemacs will be linked with \"mule-canna.o\""
11045 else for feature in xim canna wnn; do
11046 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11047 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
11049 eval "with_${feature}=no"
11053 if test "$need_motif" = "yes" ; then
11054 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
11056 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
11057 echo "configure:11058: checking for layout_object_getvalue in -li18n" >&5
11058 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
11060 xe_check_libs=" -li18n "
11061 cat > conftest.$ac_ext <<EOF
11062 #line 11063 "configure"
11063 #include "confdefs.h"
11064 /* Override any gcc2 internal prototype to avoid an error. */
11065 /* We use char because int might match the return type of a gcc2
11066 builtin and then its argument prototype would still apply. */
11067 char layout_object_getvalue();
11070 layout_object_getvalue()
11073 if { (eval echo configure:11074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11075 eval "ac_cv_lib_$ac_lib_var=yes"
11077 echo "configure: failed program was:" >&5
11078 cat conftest.$ac_ext >&5
11080 eval "ac_cv_lib_$ac_lib_var=no"
11085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11086 echo "$ac_t""yes" 1>&6
11087 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
11089 echo "$ac_t""no" 1>&6
11094 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
11095 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
11096 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
11098 runpath="" runpath_dirs=""
11099 if test -n "$LD_RUN_PATH"; then
11100 runpath="$LD_RUN_PATH"
11101 elif test "$GCC" = "yes"; then
11102 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
11103 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
11104 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
11105 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
11106 case "$arg" in P,* | -L* | -R* )
11107 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
11109 xe_runpath_dir="$dir"
11110 test "$xe_runpath_dir" != "/lib" -a \
11111 "$xe_runpath_dir" != "/usr/lib" -a \
11112 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
11113 eval "$xe_add_unique_runpath_dir"
11118 ld_switch_run="$ld_switch_run_save"
11121 for arg in $ld_switch_site $ld_switch_x_site; do
11122 case "$arg" in -L*) {
11123 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
11124 test "$xe_runpath_dir" != "/lib" -a \
11125 "$xe_runpath_dir" != "/usr/lib" -a \
11126 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
11127 eval "$xe_add_unique_runpath_dir"
11130 if test "$opsys $need_motif" = "sol2 yes"; then
11131 xe_runpath_dir="/opt/SUNWdt/lib";
11132 eval "$xe_add_unique_runpath_dir";
11135 if test -n "$runpath"; then
11136 ld_switch_run="${dash_r}${runpath}"
11138 if test "$GCC" = "yes"; then
11139 set x $ld_switch_run; shift; ld_switch_run=""
11140 while test -n "$1"; do
11142 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
11143 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
11145 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
11150 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
11157 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 waitpid vsnprintf fsync ftruncate umask
11159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11160 echo "configure:11161: checking for $ac_func" >&5
11162 cat > conftest.$ac_ext <<EOF
11163 #line 11164 "configure"
11164 #include "confdefs.h"
11165 /* System header to define __stub macros and hopefully few prototypes,
11166 which can conflict with char $ac_func(); below. */
11167 #include <assert.h>
11168 /* Override any gcc2 internal prototype to avoid an error. */
11169 /* We use char because int might match the return type of a gcc2
11170 builtin and then its argument prototype would still apply. */
11175 /* The GNU C library defines this for functions which it implements
11176 to always fail with ENOSYS. Some functions are actually named
11177 something starting with __ and the normal name is an alias. */
11178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11186 if { (eval echo configure:11187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11188 eval "ac_cv_func_$ac_func=yes"
11190 echo "configure: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11193 eval "ac_cv_func_$ac_func=no"
11197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11198 echo "$ac_t""yes" 1>&6
11199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11200 { test "$extra_verbose" = "yes" && cat << EOF
11201 Defining $ac_tr_func
11203 cat >> confdefs.h <<EOF
11204 #define $ac_tr_func 1
11209 echo "$ac_t""no" 1>&6
11214 if test "$ac_cv_func_getaddrinfo" != "no" ; then
11217 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
11218 ac_cv_func_getaddrinfo=no
11224 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
11226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11227 echo "configure:11228: checking for $ac_func" >&5
11229 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure"
11231 #include "confdefs.h"
11232 /* System header to define __stub macros and hopefully few prototypes,
11233 which can conflict with char $ac_func(); below. */
11234 #include <assert.h>
11235 /* Override any gcc2 internal prototype to avoid an error. */
11236 /* We use char because int might match the return type of a gcc2
11237 builtin and then its argument prototype would still apply. */
11242 /* The GNU C library defines this for functions which it implements
11243 to always fail with ENOSYS. Some functions are actually named
11244 something starting with __ and the normal name is an alias. */
11245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11253 if { (eval echo configure:11254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11255 eval "ac_cv_func_$ac_func=yes"
11257 echo "configure: failed program was:" >&5
11258 cat conftest.$ac_ext >&5
11260 eval "ac_cv_func_$ac_func=no"
11264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11265 echo "$ac_t""yes" 1>&6
11266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11267 { test "$extra_verbose" = "yes" && cat << EOF
11268 Defining $ac_tr_func
11270 cat >> confdefs.h <<EOF
11271 #define $ac_tr_func 1
11276 echo "$ac_t""no" 1>&6
11281 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11282 echo "configure:11283: checking for openpty" >&5
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11286 "configure"
11286 #include "confdefs.h"
11287 /* System header to define __stub macros and hopefully few prototypes,
11288 which can conflict with char openpty(); below. */
11289 #include <assert.h>
11290 /* Override any gcc2 internal prototype to avoid an error. */
11291 /* We use char because int might match the return type of a gcc2
11292 builtin and then its argument prototype would still apply. */
11297 /* The GNU C library defines this for functions which it implements
11298 to always fail with ENOSYS. Some functions are actually named
11299 something starting with __ and the normal name is an alias. */
11300 #if defined (__stub_openpty) || defined (__stub___openpty)
11308 if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11310 eval "ac_cv_func_openpty=yes"
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11315 eval "ac_cv_func_openpty=no"
11319 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11320 echo "$ac_t""yes" 1>&6
11323 echo "$ac_t""no" 1>&6
11326 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11327 echo "configure:11328: checking for openpty in -lutil" >&5
11328 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11330 xe_check_libs=" -lutil "
11331 cat > conftest.$ac_ext <<EOF
11332 #line 11333 "configure"
11333 #include "confdefs.h"
11334 /* Override any gcc2 internal prototype to avoid an error. */
11335 /* We use char because int might match the return type of a gcc2
11336 builtin and then its argument prototype would still apply. */
11343 if { (eval echo configure:11344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11345 eval "ac_cv_lib_$ac_lib_var=yes"
11347 echo "configure: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11350 eval "ac_cv_lib_$ac_lib_var=no"
11355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11356 echo "$ac_t""yes" 1>&6
11357 have_openpty=yes need_libutil=yes
11359 echo "$ac_t""no" 1>&6
11365 if test "$have_openpty" = "yes"; then
11366 { test "$extra_verbose" = "yes" && cat << \EOF
11367 Defining HAVE_OPENPTY
11369 cat >> confdefs.h <<\EOF
11370 #define HAVE_OPENPTY 1
11374 for ac_hdr in pty.h libutil.h util.h
11376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11378 echo "configure:11379: checking for $ac_hdr" >&5
11380 cat > conftest.$ac_ext <<EOF
11381 #line 11382 "configure"
11382 #include "confdefs.h"
11385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11386 { (eval echo configure:11387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11388 if test -z "$ac_err"; then
11390 eval "ac_cv_header_$ac_safe=yes"
11393 echo "configure: failed program was:" >&5
11394 cat conftest.$ac_ext >&5
11396 eval "ac_cv_header_$ac_safe=no"
11399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11400 echo "$ac_t""yes" 1>&6
11401 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11402 { test "$extra_verbose" = "yes" && cat << EOF
11403 Defining $ac_tr_hdr
11405 cat >> confdefs.h <<EOF
11406 #define $ac_tr_hdr 1
11411 echo "$ac_t""no" 1>&6
11415 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11418 for ac_hdr in stropts.h
11420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11422 echo "configure:11423: checking for $ac_hdr" >&5
11424 cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11430 { (eval echo configure:11431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11432 if test -z "$ac_err"; then
11434 eval "ac_cv_header_$ac_safe=yes"
11437 echo "configure: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11440 eval "ac_cv_header_$ac_safe=no"
11443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11444 echo "$ac_t""yes" 1>&6
11445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11446 { test "$extra_verbose" = "yes" && cat << EOF
11447 Defining $ac_tr_hdr
11449 cat >> confdefs.h <<EOF
11450 #define $ac_tr_hdr 1
11455 echo "$ac_t""no" 1>&6
11459 if test "$ac_cv_header_stropts_h" = "yes"; then
11460 for ac_func in isastream
11462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11463 echo "configure:11464: checking for $ac_func" >&5
11465 cat > conftest.$ac_ext <<EOF
11466 #line 11467 "configure"
11467 #include "confdefs.h"
11468 /* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char $ac_func(); below. */
11470 #include <assert.h>
11471 /* Override any gcc2 internal prototype to avoid an error. */
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11478 /* The GNU C library defines this for functions which it implements
11479 to always fail with ENOSYS. Some functions are actually named
11480 something starting with __ and the normal name is an alias. */
11481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11489 if { (eval echo configure:11490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11491 eval "ac_cv_func_$ac_func=yes"
11493 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11496 eval "ac_cv_func_$ac_func=no"
11500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11501 echo "$ac_t""yes" 1>&6
11502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11503 { test "$extra_verbose" = "yes" && cat << EOF
11504 Defining $ac_tr_func
11506 cat >> confdefs.h <<EOF
11507 #define $ac_tr_func 1
11512 echo "$ac_t""no" 1>&6
11516 for ac_hdr in strtio.h
11518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11520 echo "configure:11521: checking for $ac_hdr" >&5
11522 cat > conftest.$ac_ext <<EOF
11523 #line 11524 "configure"
11524 #include "confdefs.h"
11527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11528 { (eval echo configure:11529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11530 if test -z "$ac_err"; then
11532 eval "ac_cv_header_$ac_safe=yes"
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11538 eval "ac_cv_header_$ac_safe=no"
11541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11542 echo "$ac_t""yes" 1>&6
11543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11544 { test "$extra_verbose" = "yes" && cat << EOF
11545 Defining $ac_tr_hdr
11547 cat >> confdefs.h <<EOF
11548 #define $ac_tr_hdr 1
11553 echo "$ac_t""no" 1>&6
11558 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11559 echo " xemacs will be linked with \"realpath.o\""
11562 for ac_func in getloadavg
11564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11565 echo "configure:11566: checking for $ac_func" >&5
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 /* System header to define __stub macros and hopefully few prototypes,
11571 which can conflict with char $ac_func(); below. */
11572 #include <assert.h>
11573 /* Override any gcc2 internal prototype to avoid an error. */
11574 /* We use char because int might match the return type of a gcc2
11575 builtin and then its argument prototype would still apply. */
11580 /* The GNU C library defines this for functions which it implements
11581 to always fail with ENOSYS. Some functions are actually named
11582 something starting with __ and the normal name is an alias. */
11583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11591 if { (eval echo configure:11592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11593 eval "ac_cv_func_$ac_func=yes"
11595 echo "configure: failed program was:" >&5
11596 cat conftest.$ac_ext >&5
11598 eval "ac_cv_func_$ac_func=no"
11602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11603 echo "$ac_t""yes" 1>&6
11604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11605 { test "$extra_verbose" = "yes" && cat << EOF
11606 Defining $ac_tr_func
11608 cat >> confdefs.h <<EOF
11609 #define $ac_tr_func 1
11614 echo "$ac_t""no" 1>&6
11619 if test "$ac_cv_func_getloadavg" = "yes"; then
11620 for ac_hdr in sys/loadavg.h
11622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11624 echo "configure:11625: checking for $ac_hdr" >&5
11626 cat > conftest.$ac_ext <<EOF
11627 #line 11628 "configure"
11628 #include "confdefs.h"
11631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11632 { (eval echo configure:11633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11634 if test -z "$ac_err"; then
11636 eval "ac_cv_header_$ac_safe=yes"
11639 echo "configure: failed program was:" >&5
11640 cat conftest.$ac_ext >&5
11642 eval "ac_cv_header_$ac_safe=no"
11645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11646 echo "$ac_t""yes" 1>&6
11647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11648 { test "$extra_verbose" = "yes" && cat << EOF
11649 Defining $ac_tr_hdr
11651 cat >> confdefs.h <<EOF
11652 #define $ac_tr_hdr 1
11657 echo "$ac_t""no" 1>&6
11662 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11663 echo " xemacs will be linked with \"getloadavg.o\""
11667 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11668 echo "configure:11669: checking for kstat_open in -lkstat" >&5
11669 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11671 xe_check_libs=" -lkstat "
11672 cat > conftest.$ac_ext <<EOF
11673 #line 11674 "configure"
11674 #include "confdefs.h"
11675 /* Override any gcc2 internal prototype to avoid an error. */
11676 /* We use char because int might match the return type of a gcc2
11677 builtin and then its argument prototype would still apply. */
11684 if { (eval echo configure:11685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11686 eval "ac_cv_lib_$ac_lib_var=yes"
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11691 eval "ac_cv_lib_$ac_lib_var=no"
11696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11697 echo "$ac_t""yes" 1>&6
11698 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11699 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11700 { test "$extra_verbose" = "yes" && cat << EOF
11701 Defining $ac_tr_lib
11703 cat >> confdefs.h <<EOF
11704 #define $ac_tr_lib 1
11708 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11711 echo "$ac_t""no" 1>&6
11715 for ac_hdr in kstat.h
11717 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11719 echo "configure:11720: checking for $ac_hdr" >&5
11721 cat > conftest.$ac_ext <<EOF
11722 #line 11723 "configure"
11723 #include "confdefs.h"
11726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11727 { (eval echo configure:11728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11729 if test -z "$ac_err"; then
11731 eval "ac_cv_header_$ac_safe=yes"
11734 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11737 eval "ac_cv_header_$ac_safe=no"
11740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11741 echo "$ac_t""yes" 1>&6
11742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11743 { test "$extra_verbose" = "yes" && cat << EOF
11744 Defining $ac_tr_hdr
11746 cat >> confdefs.h <<EOF
11747 #define $ac_tr_hdr 1
11752 echo "$ac_t""no" 1>&6
11758 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11759 echo "configure:11760: checking for kvm_read in -lkvm" >&5
11760 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11762 xe_check_libs=" -lkvm "
11763 cat > conftest.$ac_ext <<EOF
11764 #line 11765 "configure"
11765 #include "confdefs.h"
11766 /* Override any gcc2 internal prototype to avoid an error. */
11767 /* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11775 if { (eval echo configure:11776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11777 eval "ac_cv_lib_$ac_lib_var=yes"
11779 echo "configure: failed program was:" >&5
11780 cat conftest.$ac_ext >&5
11782 eval "ac_cv_lib_$ac_lib_var=no"
11787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11788 echo "$ac_t""yes" 1>&6
11789 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11790 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11791 { test "$extra_verbose" = "yes" && cat << EOF
11792 Defining $ac_tr_lib
11794 cat >> confdefs.h <<EOF
11795 #define $ac_tr_lib 1
11799 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11802 echo "$ac_t""no" 1>&6
11808 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11809 echo "configure:11810: checking whether netdb declares h_errno" >&5
11810 cat > conftest.$ac_ext <<EOF
11811 #line 11812 "configure"
11812 #include "confdefs.h"
11818 if { (eval echo configure:11819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11820 echo "$ac_t""yes" 1>&6
11821 { test "$extra_verbose" = "yes" && cat << \EOF
11822 Defining HAVE_H_ERRNO
11824 cat >> confdefs.h <<\EOF
11825 #define HAVE_H_ERRNO 1
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11833 echo "$ac_t""no" 1>&6
11837 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11838 echo "configure:11839: checking for sigsetjmp" >&5
11839 cat > conftest.$ac_ext <<EOF
11840 #line 11841 "configure"
11841 #include "confdefs.h"
11842 #include <setjmp.h>
11844 sigjmp_buf bar; sigsetjmp (bar, 0);
11847 if { (eval echo configure:11848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11849 echo "$ac_t""yes" 1>&6
11850 { test "$extra_verbose" = "yes" && cat << \EOF
11851 Defining HAVE_SIGSETJMP
11853 cat >> confdefs.h <<\EOF
11854 #define HAVE_SIGSETJMP 1
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11862 echo "$ac_t""no" 1>&6
11866 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11867 echo "configure:11868: checking whether localtime caches TZ" >&5
11869 if test "$ac_cv_func_tzset" = "yes"; then
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11875 # include <stdlib.h>
11877 extern char **environ;
11881 for (to = from = environ; (*to = *from); from++)
11882 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11885 char TZ_GMT0[] = "TZ=GMT0";
11886 char TZ_PST8[] = "TZ=PST8";
11889 time_t now = time ((time_t *) 0);
11890 int hour_GMT0, hour_unset;
11891 if (putenv (TZ_GMT0) != 0)
11893 hour_GMT0 = localtime (&now)->tm_hour;
11895 hour_unset = localtime (&now)->tm_hour;
11896 if (putenv (TZ_PST8) != 0)
11898 if (localtime (&now)->tm_hour == hour_GMT0)
11901 if (localtime (&now)->tm_hour != hour_unset)
11906 if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11908 emacs_cv_localtime_cache=no
11911 echo "configure: failed program was:" >&5
11912 cat conftest.$ac_ext >&5
11914 emacs_cv_localtime_cache=yes
11918 # If we lack tzset, report that localtime does not cache TZ,
11919 # since we can't invalidate the cache if we don't have tzset.
11920 emacs_cv_localtime_cache=no
11922 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11923 if test $emacs_cv_localtime_cache = yes; then
11924 { test "$extra_verbose" = "yes" && cat << \EOF
11925 Defining LOCALTIME_CACHE
11927 cat >> confdefs.h <<\EOF
11928 #define LOCALTIME_CACHE 1
11934 if test "$HAVE_TIMEVAL" = "yes"; then
11935 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11936 echo "configure:11937: checking whether gettimeofday accepts one or two arguments" >&5
11937 cat > conftest.$ac_ext <<EOF
11938 #line 11939 "configure"
11939 #include "confdefs.h"
11941 #ifdef TIME_WITH_SYS_TIME
11942 #include <sys/time.h>
11945 #ifdef HAVE_SYS_TIME_H
11946 #include <sys/time.h>
11954 struct timeval time;
11955 gettimeofday (&time, 0);
11959 if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11961 echo "$ac_t""two" 1>&6
11963 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11966 echo "$ac_t""one" 1>&6
11967 { test "$extra_verbose" = "yes" && cat << \EOF
11968 Defining GETTIMEOFDAY_ONE_ARGUMENT
11970 cat >> confdefs.h <<\EOF
11971 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11980 echo $ac_n "checking for inline""... $ac_c" 1>&6
11981 echo "configure:11982: checking for inline" >&5
11984 for ac_kw in inline __inline__ __inline; do
11985 cat > conftest.$ac_ext <<EOF
11986 #line 11987 "configure"
11987 #include "confdefs.h"
11993 if { (eval echo configure:11994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11995 ac_cv_c_inline=$ac_kw; break
11997 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
12004 echo "$ac_t""$ac_cv_c_inline" 1>&6
12005 case "$ac_cv_c_inline" in
12007 no) { test "$extra_verbose" = "yes" && cat << \EOF
12010 cat >> confdefs.h <<\EOF
12015 *) { test "$extra_verbose" = "yes" && cat << EOF
12016 Defining inline = $ac_cv_c_inline
12018 cat >> confdefs.h <<EOF
12019 #define inline $ac_cv_c_inline
12025 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
12026 echo " xemacs will be linked with \"inline.o\""
12030 if test "$__DECC" != "yes"; then
12031 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12032 # for constant arguments. Useless!
12033 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
12034 echo "configure:12035: checking for working alloca.h" >&5
12036 cat > conftest.$ac_ext <<EOF
12037 #line 12038 "configure"
12038 #include "confdefs.h"
12039 #include <alloca.h>
12041 char *p = alloca(2 * sizeof(int));
12044 if { (eval echo configure:12045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12046 ac_cv_header_alloca_h=yes
12048 echo "configure: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12051 ac_cv_header_alloca_h=no
12055 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
12056 if test $ac_cv_header_alloca_h = yes; then
12057 { test "$extra_verbose" = "yes" && cat << \EOF
12058 Defining HAVE_ALLOCA_H
12060 cat >> confdefs.h <<\EOF
12061 #define HAVE_ALLOCA_H 1
12067 echo $ac_n "checking for alloca""... $ac_c" 1>&6
12068 echo "configure:12069: checking for alloca" >&5
12070 cat > conftest.$ac_ext <<EOF
12071 #line 12072 "configure"
12072 #include "confdefs.h"
12075 # define alloca __builtin_alloca
12078 # include <malloc.h>
12079 # define alloca _alloca
12082 # include <alloca.h>
12087 # ifndef alloca /* predefined by HP cc +Olibcalls */
12096 char *p = (char *) alloca(1);
12099 if { (eval echo configure:12100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12101 ac_cv_func_alloca_works=yes
12103 echo "configure: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12106 ac_cv_func_alloca_works=no
12110 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
12111 if test $ac_cv_func_alloca_works = yes; then
12112 { test "$extra_verbose" = "yes" && cat << \EOF
12113 Defining HAVE_ALLOCA
12115 cat >> confdefs.h <<\EOF
12116 #define HAVE_ALLOCA 1
12122 if test $ac_cv_func_alloca_works = no; then
12123 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12124 # that cause trouble. Some versions do not even contain alloca or
12125 # contain a buggy version. If you still want to use their alloca,
12126 # use ar to extract alloca.o from them instead of compiling alloca.c.
12127 ALLOCA=alloca.${ac_objext}
12128 { test "$extra_verbose" = "yes" && cat << \EOF
12131 cat >> confdefs.h <<\EOF
12137 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
12138 echo "configure:12139: checking whether alloca needs Cray hooks" >&5
12140 cat > conftest.$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12143 #if defined(CRAY) && ! defined(CRAY2)
12150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12151 egrep "webecray" >/dev/null 2>&1; then
12161 echo "$ac_t""$ac_cv_os_cray" 1>&6
12162 if test $ac_cv_os_cray = yes; then
12163 for ac_func in _getb67 GETB67 getb67; do
12164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12165 echo "configure:12166: checking for $ac_func" >&5
12167 cat > conftest.$ac_ext <<EOF
12168 #line 12169 "configure"
12169 #include "confdefs.h"
12170 /* System header to define __stub macros and hopefully few prototypes,
12171 which can conflict with char $ac_func(); below. */
12172 #include <assert.h>
12173 /* Override any gcc2 internal prototype to avoid an error. */
12174 /* We use char because int might match the return type of a gcc2
12175 builtin and then its argument prototype would still apply. */
12180 /* The GNU C library defines this for functions which it implements
12181 to always fail with ENOSYS. Some functions are actually named
12182 something starting with __ and the normal name is an alias. */
12183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12191 if { (eval echo configure:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12193 eval "ac_cv_func_$ac_func=yes"
12195 echo "configure: failed program was:" >&5
12196 cat conftest.$ac_ext >&5
12198 eval "ac_cv_func_$ac_func=no"
12202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12203 echo "$ac_t""yes" 1>&6
12204 { test "$extra_verbose" = "yes" && cat << EOF
12205 Defining CRAY_STACKSEG_END = $ac_func
12207 cat >> confdefs.h <<EOF
12208 #define CRAY_STACKSEG_END $ac_func
12214 echo "$ac_t""no" 1>&6
12220 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12221 echo "configure:12222: checking stack direction for C alloca" >&5
12223 cat > conftest.$ac_ext <<EOF
12224 #line 12225 "configure"
12225 #include "confdefs.h"
12226 find_stack_direction ()
12228 static char *addr = 0;
12233 return find_stack_direction ();
12236 return (&dummy > addr) ? 1 : -1;
12240 exit (find_stack_direction() < 0);
12243 if { (eval echo configure:12244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12245 ac_cv_c_stack_direction=1
12248 echo "configure: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12251 ac_cv_c_stack_direction=-1
12255 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
12256 { test "$extra_verbose" = "yes" && cat << EOF
12257 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
12259 cat >> confdefs.h <<EOF
12260 #define STACK_DIRECTION $ac_cv_c_stack_direction
12266 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
12267 echo " xemacs will be linked with \"$ALLOCA\""
12271 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12272 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12273 echo "configure:12274: checking for vfork.h" >&5
12275 cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12281 { (eval echo configure:12282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12283 if test -z "$ac_err"; then
12285 eval "ac_cv_header_$ac_safe=yes"
12288 echo "configure: failed program was:" >&5
12289 cat conftest.$ac_ext >&5
12291 eval "ac_cv_header_$ac_safe=no"
12294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12295 echo "$ac_t""yes" 1>&6
12296 { test "$extra_verbose" = "yes" && cat << \EOF
12297 Defining HAVE_VFORK_H
12299 cat >> confdefs.h <<\EOF
12300 #define HAVE_VFORK_H 1
12305 echo "$ac_t""no" 1>&6
12308 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12309 echo "configure:12310: checking for working vfork" >&5
12311 cat > conftest.$ac_ext <<EOF
12312 #line 12313 "configure"
12313 #include "confdefs.h"
12314 /* Thanks to Paul Eggert for this test. */
12316 #include <sys/types.h>
12317 #include <sys/stat.h>
12318 #ifdef HAVE_UNISTD_H
12319 #include <unistd.h>
12321 #ifdef HAVE_VFORK_H
12324 /* On some sparc systems, changes by the child to local and incoming
12325 argument registers are propagated back to the parent.
12326 The compiler is told about this with #include <vfork.h>,
12327 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12328 Test for this by using a static variable whose address
12329 is put into a register that is clobbered by the vfork. */
12332 sparc_address_test (int arg)
12334 sparc_address_test (arg) int arg;
12337 static pid_t child;
12352 pid_t parent = getpid ();
12355 sparc_address_test ();
12360 /* Here is another test for sparc vfork register problems.
12361 This test uses lots of local variables, at least
12362 as many local variables as main has allocated so far
12363 including compiler temporaries. 4 locals are enough for
12364 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12365 A buggy compiler should reuse the register of parent
12366 for one of the local variables, since it will think that
12367 parent can't possibly be used any more in this routine.
12368 Assigning to the local variable will thus munge parent
12369 in the parent process. */
12371 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12372 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12373 /* Convince the compiler that p..p7 are live; otherwise, it might
12374 use the same hardware register for all 8 local variables. */
12375 if (p != p1 || p != p2 || p != p3 || p != p4
12376 || p != p5 || p != p6 || p != p7)
12379 /* On some systems (e.g. IRIX 3.3),
12380 vfork doesn't separate parent from child file descriptors.
12381 If the child closes a descriptor before it execs or exits,
12382 this munges the parent's descriptor as well.
12383 Test for this by closing stdout in the child. */
12384 _exit(close(fileno(stdout)) != 0);
12389 while (wait(&status) != child)
12392 /* Was there some problem with vforking? */
12395 /* Did the child fail? (This shouldn't happen.) */
12398 /* Did the vfork/compiler bug occur? */
12399 || parent != getpid()
12401 /* Did the file descriptor bug occur? */
12402 || fstat(fileno(stdout), &st) != 0
12407 if { (eval echo configure:12408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12409 ac_cv_func_vfork_works=yes
12412 echo "configure: failed program was:" >&5
12413 cat conftest.$ac_ext >&5
12415 ac_cv_func_vfork_works=no
12419 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12420 if test $ac_cv_func_vfork_works = no; then
12421 { test "$extra_verbose" = "yes" && cat << \EOF
12422 Defining vfork = fork
12424 cat >> confdefs.h <<\EOF
12432 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12433 echo "configure:12434: checking for working strcoll" >&5
12435 cat > conftest.$ac_ext <<EOF
12436 #line 12437 "configure"
12437 #include "confdefs.h"
12438 #include <string.h>
12441 exit (strcoll ("abc", "def") >= 0 ||
12442 strcoll ("ABC", "DEF") >= 0 ||
12443 strcoll ("123", "456") >= 0);
12446 if { (eval echo configure:12447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12448 ac_cv_func_strcoll_works=yes
12451 echo "configure: failed program was:" >&5
12452 cat conftest.$ac_ext >&5
12454 ac_cv_func_strcoll_works=no
12458 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12459 if test $ac_cv_func_strcoll_works = yes; then
12460 { test "$extra_verbose" = "yes" && cat << \EOF
12461 Defining HAVE_STRCOLL
12463 cat >> confdefs.h <<\EOF
12464 #define HAVE_STRCOLL 1
12471 for ac_func in getpgrp
12473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12474 echo "configure:12475: checking for $ac_func" >&5
12476 cat > conftest.$ac_ext <<EOF
12477 #line 12478 "configure"
12478 #include "confdefs.h"
12479 /* System header to define __stub macros and hopefully few prototypes,
12480 which can conflict with char $ac_func(); below. */
12481 #include <assert.h>
12482 /* Override any gcc2 internal prototype to avoid an error. */
12483 /* We use char because int might match the return type of a gcc2
12484 builtin and then its argument prototype would still apply. */
12489 /* The GNU C library defines this for functions which it implements
12490 to always fail with ENOSYS. Some functions are actually named
12491 something starting with __ and the normal name is an alias. */
12492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12500 if { (eval echo configure:12501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12502 eval "ac_cv_func_$ac_func=yes"
12504 echo "configure: failed program was:" >&5
12505 cat conftest.$ac_ext >&5
12507 eval "ac_cv_func_$ac_func=no"
12511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12512 echo "$ac_t""yes" 1>&6
12513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12514 { test "$extra_verbose" = "yes" && cat << EOF
12515 Defining $ac_tr_func
12517 cat >> confdefs.h <<EOF
12518 #define $ac_tr_func 1
12523 echo "$ac_t""no" 1>&6
12527 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12528 echo "configure:12529: checking whether getpgrp takes no argument" >&5
12530 cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12535 * If this system has a BSD-style getpgrp(),
12536 * which takes a pid argument, exit unsuccessfully.
12538 * Snarfed from Chet Ramey's bash pgrp.c test program
12541 #include <sys/types.h>
12544 int pg1, pg2, pg3, pg4;
12545 int ng, np, s, child;
12552 pg3 = getpgrp(pid);
12556 * If all of these values are the same, it's pretty sure that
12557 * we're on a system that ignores getpgrp's first argument.
12559 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12565 else if (child == 0) {
12568 * If this is Sys V, this will not work; pgrp will be
12569 * set to np because setpgrp just changes a pgrp to be
12570 * the same as the pid.
12573 ng = getpgrp(0); /* Same result for Sys V and BSD */
12586 if { (eval echo configure:12587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12588 ac_cv_func_getpgrp_void=yes
12591 echo "configure: failed program was:" >&5
12592 cat conftest.$ac_ext >&5
12594 ac_cv_func_getpgrp_void=no
12599 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12600 if test $ac_cv_func_getpgrp_void = yes; then
12601 { test "$extra_verbose" = "yes" && cat << \EOF
12602 Defining GETPGRP_VOID
12604 cat >> confdefs.h <<\EOF
12605 #define GETPGRP_VOID 1
12612 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12613 echo "configure:12614: checking for working mmap" >&5
12614 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12615 cat > conftest.$ac_ext <<EOF
12616 #line 12617 "configure"
12617 #include "confdefs.h"
12619 #include <unistd.h>
12621 #include <sys/mman.h>
12623 #ifndef MAP_VARIABLE
12624 #define MAP_VARIABLE 0
12628 #define MAP_FAILED -1
12631 int main (int argc, char *argv[])
12635 #ifndef MAP_ANONYMOUS
12636 fd = open ("/dev/zero", O_RDWR);
12639 #define MAP_ANONYMOUS 0
12641 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12642 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12643 fd, 0) != (void *) MAP_FAILED)
12645 perror ("conftest: mmap failed");
12649 if { (eval echo configure:12650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12654 echo "configure: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12659 rm -fr conftest* ;;
12661 echo "$ac_t""$have_mmap" 1>&6
12662 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12665 cat >> confdefs.h <<\EOF
12666 #define HAVE_MMAP 1
12671 case "$opsys" in cygwin*)
12672 test "$rel_alloc" = "default" && rel_alloc=no ;;
12674 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12675 if test "$rel_alloc $have_mmap" = "default yes"; then
12676 if test "$doug_lea_malloc" = "yes"; then
12677 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12678 echo "configure:12679: checking for M_MMAP_THRESHOLD" >&5
12679 cat > conftest.$ac_ext <<EOF
12680 #line 12681 "configure"
12681 #include "confdefs.h"
12682 #include <malloc.h>
12685 #ifndef M_MMAP_THRESHOLD
12686 #error No M_MMAP_THRESHOLD :-(
12687 !@+$%^&*_)(_ - unlikely to compile...
12692 if { (eval echo configure:12693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12694 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12696 echo "configure: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12699 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12706 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12709 cat >> confdefs.h <<\EOF
12710 #define REL_ALLOC 1
12715 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12716 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12717 echo "configure:12718: checking for termios.h" >&5
12719 cat > conftest.$ac_ext <<EOF
12720 #line 12721 "configure"
12721 #include "confdefs.h"
12722 #include <termios.h>
12724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12725 { (eval echo configure:12726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12727 if test -z "$ac_err"; then
12729 eval "ac_cv_header_$ac_safe=yes"
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12735 eval "ac_cv_header_$ac_safe=no"
12738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12739 echo "$ac_t""yes" 1>&6
12740 { test "$extra_verbose" = "yes" && cat << \EOF
12741 Defining HAVE_TERMIOS
12743 cat >> confdefs.h <<\EOF
12744 #define HAVE_TERMIOS 1
12748 { test "$extra_verbose" = "yes" && cat << \EOF
12749 Defining SIGNALS_VIA_CHARACTERS
12751 cat >> confdefs.h <<\EOF
12752 #define SIGNALS_VIA_CHARACTERS 1
12756 { test "$extra_verbose" = "yes" && cat << \EOF
12759 cat >> confdefs.h <<\EOF
12760 #define NO_TERMIO 1
12765 echo "$ac_t""no" 1>&6
12766 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12767 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12768 echo "configure:12769: checking for termio.h" >&5
12770 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12773 #include <termio.h>
12775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12776 { (eval echo configure:12777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12778 if test -z "$ac_err"; then
12780 eval "ac_cv_header_$ac_safe=yes"
12783 echo "configure: failed program was:" >&5
12784 cat conftest.$ac_ext >&5
12786 eval "ac_cv_header_$ac_safe=no"
12789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12790 echo "$ac_t""yes" 1>&6
12791 { test "$extra_verbose" = "yes" && cat << \EOF
12792 Defining HAVE_TERMIO
12794 cat >> confdefs.h <<\EOF
12795 #define HAVE_TERMIO 1
12800 echo "$ac_t""no" 1>&6
12807 echo $ac_n "checking for socket""... $ac_c" 1>&6
12808 echo "configure:12809: checking for socket" >&5
12810 cat > conftest.$ac_ext <<EOF
12811 #line 12812 "configure"
12812 #include "confdefs.h"
12813 /* System header to define __stub macros and hopefully few prototypes,
12814 which can conflict with char socket(); below. */
12815 #include <assert.h>
12816 /* Override any gcc2 internal prototype to avoid an error. */
12817 /* We use char because int might match the return type of a gcc2
12818 builtin and then its argument prototype would still apply. */
12823 /* The GNU C library defines this for functions which it implements
12824 to always fail with ENOSYS. Some functions are actually named
12825 something starting with __ and the normal name is an alias. */
12826 #if defined (__stub_socket) || defined (__stub___socket)
12834 if { (eval echo configure:12835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12836 eval "ac_cv_func_socket=yes"
12838 echo "configure: failed program was:" >&5
12839 cat conftest.$ac_ext >&5
12841 eval "ac_cv_func_socket=no"
12845 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12846 echo "$ac_t""yes" 1>&6
12847 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12848 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12849 echo "configure:12850: checking for netinet/in.h" >&5
12851 cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854 #include <netinet/in.h>
12856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12857 { (eval echo configure:12858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12859 if test -z "$ac_err"; then
12861 eval "ac_cv_header_$ac_safe=yes"
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12867 eval "ac_cv_header_$ac_safe=no"
12870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12871 echo "$ac_t""yes" 1>&6
12872 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12873 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12874 echo "configure:12875: checking for arpa/inet.h" >&5
12876 cat > conftest.$ac_ext <<EOF
12877 #line 12878 "configure"
12878 #include "confdefs.h"
12879 #include <arpa/inet.h>
12881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12882 { (eval echo configure:12883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12884 if test -z "$ac_err"; then
12886 eval "ac_cv_header_$ac_safe=yes"
12889 echo "configure: failed program was:" >&5
12890 cat conftest.$ac_ext >&5
12892 eval "ac_cv_header_$ac_safe=no"
12895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12896 echo "$ac_t""yes" 1>&6
12898 { test "$extra_verbose" = "yes" && cat << \EOF
12899 Defining HAVE_SOCKETS
12901 cat >> confdefs.h <<\EOF
12902 #define HAVE_SOCKETS 1
12906 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12907 echo "configure:12908: checking "for sun_len member in struct sockaddr_un"" >&5
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12912 #include <sys/types.h>
12913 #include <sys/socket.h>
12914 #include <sys/un.h>
12917 static struct sockaddr_un x; x.sun_len = 1;
12920 if { (eval echo configure:12921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12922 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12923 Defining HAVE_SOCKADDR_SUN_LEN
12925 cat >> confdefs.h <<\EOF
12926 #define HAVE_SOCKADDR_SUN_LEN 1
12931 echo "configure: failed program was:" >&5
12932 cat conftest.$ac_ext >&5
12934 echo "$ac_t""no" 1>&6
12937 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12938 echo "configure:12939: checking "for ip_mreq struct in netinet/in.h"" >&5
12939 cat > conftest.$ac_ext <<EOF
12940 #line 12941 "configure"
12941 #include "confdefs.h"
12943 #include <sys/types.h>
12944 #include <netinet/in.h>
12947 static struct ip_mreq x;
12950 if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12952 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12953 Defining HAVE_MULTICAST
12955 cat >> confdefs.h <<\EOF
12956 #define HAVE_MULTICAST 1
12961 echo "configure: failed program was:" >&5
12962 cat conftest.$ac_ext >&5
12964 echo "$ac_t""no" 1>&6
12968 echo "$ac_t""no" 1>&6
12972 echo "$ac_t""no" 1>&6
12976 echo "$ac_t""no" 1>&6
12980 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12981 echo "configure:12982: checking for msgget" >&5
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 /* System header to define __stub macros and hopefully few prototypes,
12987 which can conflict with char msgget(); below. */
12988 #include <assert.h>
12989 /* Override any gcc2 internal prototype to avoid an error. */
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12996 /* The GNU C library defines this for functions which it implements
12997 to always fail with ENOSYS. Some functions are actually named
12998 something starting with __ and the normal name is an alias. */
12999 #if defined (__stub_msgget) || defined (__stub___msgget)
13007 if { (eval echo configure:13008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13009 eval "ac_cv_func_msgget=yes"
13011 echo "configure: failed program was:" >&5
13012 cat conftest.$ac_ext >&5
13014 eval "ac_cv_func_msgget=no"
13018 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
13019 echo "$ac_t""yes" 1>&6
13020 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
13021 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
13022 echo "configure:13023: checking for sys/ipc.h" >&5
13024 cat > conftest.$ac_ext <<EOF
13025 #line 13026 "configure"
13026 #include "confdefs.h"
13027 #include <sys/ipc.h>
13029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13030 { (eval echo configure:13031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13032 if test -z "$ac_err"; then
13034 eval "ac_cv_header_$ac_safe=yes"
13037 echo "configure: failed program was:" >&5
13038 cat conftest.$ac_ext >&5
13040 eval "ac_cv_header_$ac_safe=no"
13043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13044 echo "$ac_t""yes" 1>&6
13045 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
13046 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
13047 echo "configure:13048: checking for sys/msg.h" >&5
13049 cat > conftest.$ac_ext <<EOF
13050 #line 13051 "configure"
13051 #include "confdefs.h"
13052 #include <sys/msg.h>
13054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13055 { (eval echo configure:13056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13057 if test -z "$ac_err"; then
13059 eval "ac_cv_header_$ac_safe=yes"
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13065 eval "ac_cv_header_$ac_safe=no"
13068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13069 echo "$ac_t""yes" 1>&6
13070 { test "$extra_verbose" = "yes" && cat << \EOF
13071 Defining HAVE_SYSVIPC
13073 cat >> confdefs.h <<\EOF
13074 #define HAVE_SYSVIPC 1
13079 echo "$ac_t""no" 1>&6
13083 echo "$ac_t""no" 1>&6
13087 echo "$ac_t""no" 1>&6
13091 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
13092 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
13093 echo "configure:13094: checking for dirent.h" >&5
13095 cat > conftest.$ac_ext <<EOF
13096 #line 13097 "configure"
13097 #include "confdefs.h"
13098 #include <dirent.h>
13100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13101 { (eval echo configure:13102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13103 if test -z "$ac_err"; then
13105 eval "ac_cv_header_$ac_safe=yes"
13108 echo "configure: failed program was:" >&5
13109 cat conftest.$ac_ext >&5
13111 eval "ac_cv_header_$ac_safe=no"
13114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13115 echo "$ac_t""yes" 1>&6
13116 { test "$extra_verbose" = "yes" && cat << \EOF
13117 Defining SYSV_SYSTEM_DIR
13119 cat >> confdefs.h <<\EOF
13120 #define SYSV_SYSTEM_DIR 1
13125 echo "$ac_t""no" 1>&6
13126 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
13127 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
13128 echo "configure:13129: checking for sys/dir.h" >&5
13130 cat > conftest.$ac_ext <<EOF
13131 #line 13132 "configure"
13132 #include "confdefs.h"
13133 #include <sys/dir.h>
13135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13136 { (eval echo configure:13137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13138 if test -z "$ac_err"; then
13140 eval "ac_cv_header_$ac_safe=yes"
13143 echo "configure: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13146 eval "ac_cv_header_$ac_safe=no"
13149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13150 echo "$ac_t""yes" 1>&6
13153 echo "$ac_t""no" 1>&6
13154 { test "$extra_verbose" = "yes" && cat << \EOF
13155 Defining NONSYSTEM_DIR_LIBRARY
13157 cat >> confdefs.h <<\EOF
13158 #define NONSYSTEM_DIR_LIBRARY 1
13167 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13168 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13169 echo "configure:13170: checking for nlist.h" >&5
13171 cat > conftest.$ac_ext <<EOF
13172 #line 13173 "configure"
13173 #include "confdefs.h"
13176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13177 { (eval echo configure:13178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13179 if test -z "$ac_err"; then
13181 eval "ac_cv_header_$ac_safe=yes"
13184 echo "configure: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13187 eval "ac_cv_header_$ac_safe=no"
13190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13191 echo "$ac_t""yes" 1>&6
13192 { test "$extra_verbose" = "yes" && cat << \EOF
13193 Defining NLIST_STRUCT
13195 cat >> confdefs.h <<\EOF
13196 #define NLIST_STRUCT 1
13201 echo "$ac_t""no" 1>&6
13206 echo "checking "for sound support"" 1>&6
13207 echo "configure:13208: checking "for sound support"" >&5
13208 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13210 if test "$with_native_sound" != "no"; then
13211 if test -n "$native_sound_lib"; then
13212 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13213 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13214 echo "configure:13215: checking for multimedia/audio_device.h" >&5
13216 cat > conftest.$ac_ext <<EOF
13217 #line 13218 "configure"
13218 #include "confdefs.h"
13219 #include <multimedia/audio_device.h>
13221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13222 { (eval echo configure:13223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13224 if test -z "$ac_err"; then
13226 eval "ac_cv_header_$ac_safe=yes"
13229 echo "configure: failed program was:" >&5
13230 cat conftest.$ac_ext >&5
13232 eval "ac_cv_header_$ac_safe=no"
13235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13236 echo "$ac_t""yes" 1>&6
13237 sound_found=yes sound_cflags=""
13238 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13239 echo " xemacs will be linked with \"sunplay.o\""
13242 echo "$ac_t""no" 1>&6
13247 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
13249 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13250 echo " xemacs will be linked with \"sunplay.o\""
13252 if test -d "/usr/demo/SOUND/include"
13253 then sound_cflags="-I/usr/demo/SOUND/include"
13254 else sound_cflags="-I/usr/demo/SOUND"
13256 if test -z "$native_sound_lib" ; then
13257 if test -r "/usr/demo/SOUND/lib/libaudio.a"
13258 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
13259 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
13264 if test -z "$sound_found"; then
13265 case "$canonical" in
13267 if test -z "$native_sound_lib"; then
13269 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13270 echo "configure:13271: checking for ALopenport in -laudio" >&5
13271 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13273 xe_check_libs=" -laudio "
13274 cat > conftest.$ac_ext <<EOF
13275 #line 13276 "configure"
13276 #include "confdefs.h"
13277 /* Override any gcc2 internal prototype to avoid an error. */
13278 /* We use char because int might match the return type of a gcc2
13279 builtin and then its argument prototype would still apply. */
13286 if { (eval echo configure:13287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13288 eval "ac_cv_lib_$ac_lib_var=yes"
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13293 eval "ac_cv_lib_$ac_lib_var=no"
13298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13299 echo "$ac_t""yes" 1>&6
13300 native_sound_lib="-laudio"
13302 echo "$ac_t""no" 1>&6
13307 if test -n "$native_sound_lib"; then
13308 sound_found=yes sound_cflags=""
13309 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13310 echo " xemacs will be linked with \"sgiplay.o\""
13314 if test -z "$native_sound_lib"; then
13316 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13317 echo "configure:13318: checking for AOpenAudio in -lAlib" >&5
13318 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13320 xe_check_libs=" -lAlib "
13321 cat > conftest.$ac_ext <<EOF
13322 #line 13323 "configure"
13323 #include "confdefs.h"
13324 /* Override any gcc2 internal prototype to avoid an error. */
13325 /* We use char because int might match the return type of a gcc2
13326 builtin and then its argument prototype would still apply. */
13333 if { (eval echo configure:13334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13335 eval "ac_cv_lib_$ac_lib_var=yes"
13337 echo "configure: failed program was:" >&5
13338 cat conftest.$ac_ext >&5
13340 eval "ac_cv_lib_$ac_lib_var=no"
13345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13346 echo "$ac_t""yes" 1>&6
13347 native_sound_lib="-lAlib"
13349 echo "$ac_t""no" 1>&6
13354 if test -n "$native_sound_lib"; then
13356 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13357 echo " xemacs will be linked with \"hpplay.o\""
13359 if test "$GCC" = "yes" # Kludge city
13360 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13361 else sound_cflags="+e -I/usr/audio/examples"
13367 if test -z "$sound_found"; then
13368 if test "$with_msw" = "yes"; then
13374 if test -z "$sound_found"; then
13375 for dir in "machine" "sys" "linux"; do
13376 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13377 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13378 echo "configure:13379: checking for ${dir}/soundcard.h" >&5
13380 cat > conftest.$ac_ext <<EOF
13381 #line 13382 "configure"
13382 #include "confdefs.h"
13383 #include <${dir}/soundcard.h>
13385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13386 { (eval echo configure:13387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13388 if test -z "$ac_err"; then
13390 eval "ac_cv_header_$ac_safe=yes"
13393 echo "configure: failed program was:" >&5
13394 cat conftest.$ac_ext >&5
13396 eval "ac_cv_header_$ac_safe=no"
13399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13400 echo "$ac_t""yes" 1>&6
13403 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13404 echo " xemacs will be linked with \"linuxplay.o\""
13406 { test "$extra_verbose" = "yes" && cat << EOF
13407 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13409 cat >> confdefs.h <<EOF
13410 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13416 echo "$ac_t""no" 1>&6
13422 test "$sound_found" = "yes" && with_native_sound=yes
13425 if test "$with_native_sound" = "yes"; then
13426 { test "$extra_verbose" = "yes" && cat << \EOF
13427 Defining HAVE_NATIVE_SOUND
13429 cat >> confdefs.h <<\EOF
13430 #define HAVE_NATIVE_SOUND 1
13434 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13437 if test "$with_nas_sound" != "no"; then
13438 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13439 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13440 echo "configure:13441: checking for audio/audiolib.h" >&5
13442 cat > conftest.$ac_ext <<EOF
13443 #line 13444 "configure"
13444 #include "confdefs.h"
13445 #include <audio/audiolib.h>
13447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13448 { (eval echo configure:13449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13450 if test -z "$ac_err"; then
13452 eval "ac_cv_header_$ac_safe=yes"
13455 echo "configure: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13458 eval "ac_cv_header_$ac_safe=no"
13461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13462 echo "$ac_t""yes" 1>&6
13465 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13466 echo "configure:13467: checking for AuOpenServer in -laudio" >&5
13467 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13469 xe_check_libs=" -laudio "
13470 cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 /* Override any gcc2 internal prototype to avoid an error. */
13474 /* We use char because int might match the return type of a gcc2
13475 builtin and then its argument prototype would still apply. */
13476 char AuOpenServer();
13482 if { (eval echo configure:13483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13484 eval "ac_cv_lib_$ac_lib_var=yes"
13486 echo "configure: failed program was:" >&5
13487 cat conftest.$ac_ext >&5
13489 eval "ac_cv_lib_$ac_lib_var=no"
13494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13495 echo "$ac_t""yes" 1>&6
13498 echo "$ac_t""no" 1>&6
13503 echo "$ac_t""no" 1>&6
13506 if test "$have_nas_sound" = "yes"; then
13508 { test "$extra_verbose" = "yes" && cat << \EOF
13509 Defining HAVE_NAS_SOUND
13511 cat >> confdefs.h <<\EOF
13512 #define HAVE_NAS_SOUND 1
13516 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13517 echo " xemacs will be linked with \"nas.o\""
13519 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13520 cat > conftest.$ac_ext <<EOF
13521 #line 13522 "configure"
13522 #include "confdefs.h"
13523 #include <audio/Xtutil.h>
13525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13526 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13530 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13531 Defining NAS_NO_ERROR_JUMP
13533 cat >> confdefs.h <<\EOF
13534 #define NAS_NO_ERROR_JUMP 1
13542 test "$with_nas_sound" = "yes" && \
13543 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13548 if test "$with_esd_sound" != "no"; then
13549 # Extract the first word of "esd-config", so it can be a program name with args.
13550 set dummy esd-config; ac_word=$2
13551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13552 echo "configure:13553: checking for $ac_word" >&5
13554 if test -n "$have_esd_config"; then
13555 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13559 for ac_dir in $ac_dummy; do
13560 test -z "$ac_dir" && ac_dir=.
13561 if test -f $ac_dir/$ac_word; then
13562 ac_cv_prog_have_esd_config="yes"
13567 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13569 have_esd_config="$ac_cv_prog_have_esd_config"
13570 if test -n "$have_esd_config"; then
13571 echo "$ac_t""$have_esd_config" 1>&6
13573 echo "$ac_t""no" 1>&6
13576 if test "$have_esd_config" = "yes"; then
13577 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13578 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
13579 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13580 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13581 echo "configure:13582: checking for esd_play_stream" >&5
13583 cat > conftest.$ac_ext <<EOF
13584 #line 13585 "configure"
13585 #include "confdefs.h"
13586 /* System header to define __stub macros and hopefully few prototypes,
13587 which can conflict with char esd_play_stream(); below. */
13588 #include <assert.h>
13589 /* Override any gcc2 internal prototype to avoid an error. */
13590 /* We use char because int might match the return type of a gcc2
13591 builtin and then its argument prototype would still apply. */
13592 char esd_play_stream();
13596 /* The GNU C library defines this for functions which it implements
13597 to always fail with ENOSYS. Some functions are actually named
13598 something starting with __ and the normal name is an alias. */
13599 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13607 if { (eval echo configure:13608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13609 eval "ac_cv_func_esd_play_stream=yes"
13611 echo "configure: failed program was:" >&5
13612 cat conftest.$ac_ext >&5
13614 eval "ac_cv_func_esd_play_stream=no"
13618 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13619 echo "$ac_t""yes" 1>&6
13622 echo "$ac_t""no" 1>&6
13623 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13628 if test "$have_esd_sound" = "yes"; then
13631 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13632 echo " xemacs will be linked with \"esd.o\""
13634 { test "$extra_verbose" = "yes" && cat << \EOF
13635 Defining HAVE_ESD_SOUND
13637 cat >> confdefs.h <<\EOF
13638 #define HAVE_ESD_SOUND 1
13643 test "$with_esd_sound" = "yes" && \
13644 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13649 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13650 echo " xemacs will be linked with \"miscplay.o\""
13654 test -z "$with_tty" && with_tty=yes
13656 if test "$with_tty" = "yes" ; then
13657 echo "checking for TTY-related features" 1>&6
13658 echo "configure:13659: checking for TTY-related features" >&5
13659 { test "$extra_verbose" = "yes" && cat << \EOF
13662 cat >> confdefs.h <<\EOF
13667 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
13668 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\""
13671 if test -z "$with_ncurses"; then
13673 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13674 echo "configure:13675: checking for tgetent in -lncurses" >&5
13675 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13677 xe_check_libs=" -lncurses "
13678 cat > conftest.$ac_ext <<EOF
13679 #line 13680 "configure"
13680 #include "confdefs.h"
13681 /* Override any gcc2 internal prototype to avoid an error. */
13682 /* We use char because int might match the return type of a gcc2
13683 builtin and then its argument prototype would still apply. */
13690 if { (eval echo configure:13691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13692 eval "ac_cv_lib_$ac_lib_var=yes"
13694 echo "configure: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13697 eval "ac_cv_lib_$ac_lib_var=no"
13702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13703 echo "$ac_t""yes" 1>&6
13706 echo "$ac_t""no" 1>&6
13712 if test "$with_ncurses" = "yes"; then
13713 { test "$extra_verbose" = "yes" && cat << \EOF
13714 Defining HAVE_NCURSES
13716 cat >> confdefs.h <<\EOF
13717 #define HAVE_NCURSES 1
13721 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13722 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13723 echo "configure:13724: checking for ncurses/curses.h" >&5
13725 cat > conftest.$ac_ext <<EOF
13726 #line 13727 "configure"
13727 #include "confdefs.h"
13728 #include <ncurses/curses.h>
13730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13731 { (eval echo configure:13732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13733 if test -z "$ac_err"; then
13735 eval "ac_cv_header_$ac_safe=yes"
13738 echo "configure: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13741 eval "ac_cv_header_$ac_safe=no"
13744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13745 echo "$ac_t""yes" 1>&6
13746 curses_h_file=ncurses/curses.h
13748 echo "$ac_t""no" 1>&6
13751 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13752 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13753 echo "configure:13754: checking for ncurses/term.h" >&5
13755 cat > conftest.$ac_ext <<EOF
13756 #line 13757 "configure"
13757 #include "confdefs.h"
13758 #include <ncurses/term.h>
13760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13761 { (eval echo configure:13762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13763 if test -z "$ac_err"; then
13765 eval "ac_cv_header_$ac_safe=yes"
13768 echo "configure: failed program was:" >&5
13769 cat conftest.$ac_ext >&5
13771 eval "ac_cv_header_$ac_safe=no"
13774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13775 echo "$ac_t""yes" 1>&6
13776 term_h_file=ncurses/term.h
13778 echo "$ac_t""no" 1>&6
13781 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13782 echo " xemacs will be linked with \"terminfo.o\""
13784 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13786 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13787 save_c_switch_site="$c_switch_site"
13788 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13789 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13790 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13791 echo "configure:13792: checking for ncurses/curses.h" >&5
13793 cat > conftest.$ac_ext <<EOF
13794 #line 13795 "configure"
13795 #include "confdefs.h"
13796 #include <ncurses/curses.h>
13798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13799 { (eval echo configure:13800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13801 if test -z "$ac_err"; then
13803 eval "ac_cv_header_$ac_safe=yes"
13806 echo "configure: failed program was:" >&5
13807 cat conftest.$ac_ext >&5
13809 eval "ac_cv_header_$ac_safe=no"
13812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13813 echo "$ac_t""yes" 1>&6
13814 curses_h_file=ncurses/curses.h
13816 echo "$ac_t""no" 1>&6
13819 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13820 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13821 else c_switch_site="$save_c_switch_site"
13824 else if test "$have_terminfo" = "yes"; then
13825 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13826 echo " xemacs will be linked with \"terminfo.o\""
13828 if test -n "$libs_termcap"; then
13829 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13831 for lib in curses termlib termcap; do
13833 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13834 echo "configure:13835: checking for tgetent in -l$lib" >&5
13835 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13837 xe_check_libs=" -l$lib "
13838 cat > conftest.$ac_ext <<EOF
13839 #line 13840 "configure"
13840 #include "confdefs.h"
13841 /* Override any gcc2 internal prototype to avoid an error. */
13842 /* We use char because int might match the return type of a gcc2
13843 builtin and then its argument prototype would still apply. */
13850 if { (eval echo configure:13851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852 eval "ac_cv_lib_$ac_lib_var=yes"
13854 echo "configure: failed program was:" >&5
13855 cat conftest.$ac_ext >&5
13857 eval "ac_cv_lib_$ac_lib_var=no"
13862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13863 echo "$ac_t""yes" 1>&6
13864 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13866 echo "$ac_t""no" 1>&6
13872 else if test -n "$libs_termcap" -a "$opsys" = "openbsd"; then
13874 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
13875 echo "configure:13876: checking for tgoto in -ltermcap" >&5
13876 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
13878 xe_check_libs=" -ltermcap "
13879 cat > conftest.$ac_ext <<EOF
13880 #line 13881 "configure"
13881 #include "confdefs.h"
13882 /* Override any gcc2 internal prototype to avoid an error. */
13883 /* We use char because int might match the return type of a gcc2
13884 builtin and then its argument prototype would still apply. */
13891 if { (eval echo configure:13892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13893 eval "ac_cv_lib_$ac_lib_var=yes"
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13898 eval "ac_cv_lib_$ac_lib_var=no"
13903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13904 echo "$ac_t""yes" 1>&6
13905 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13906 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13907 { test "$extra_verbose" = "yes" && cat << EOF
13908 Defining $ac_tr_lib
13910 cat >> confdefs.h <<EOF
13911 #define $ac_tr_lib 1
13915 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13918 echo "$ac_t""no" 1>&6
13919 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13920 echo " xemacs will be linked with \"tparam.o\""
13926 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13927 echo " xemacs will be linked with \"tparam.o\""
13930 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13931 if test -n "$libs_termcap"; then
13932 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13935 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13936 echo "configure:13937: checking for tgetent in -lcurses" >&5
13937 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13939 xe_check_libs=" -lcurses "
13940 cat > conftest.$ac_ext <<EOF
13941 #line 13942 "configure"
13942 #include "confdefs.h"
13943 /* Override any gcc2 internal prototype to avoid an error. */
13944 /* We use char because int might match the return type of a gcc2
13945 builtin and then its argument prototype would still apply. */
13952 if { (eval echo configure:13953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13954 eval "ac_cv_lib_$ac_lib_var=yes"
13956 echo "configure: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13959 eval "ac_cv_lib_$ac_lib_var=no"
13964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13965 echo "$ac_t""yes" 1>&6
13966 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13968 echo "$ac_t""no" 1>&6
13969 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13970 echo "configure:13971: checking for tgetent in -ltermcap" >&5
13971 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13973 xe_check_libs=" -ltermcap "
13974 cat > conftest.$ac_ext <<EOF
13975 #line 13976 "configure"
13976 #include "confdefs.h"
13977 /* Override any gcc2 internal prototype to avoid an error. */
13978 /* We use char because int might match the return type of a gcc2
13979 builtin and then its argument prototype would still apply. */
13986 if { (eval echo configure:13987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13988 eval "ac_cv_lib_$ac_lib_var=yes"
13990 echo "configure: failed program was:" >&5
13991 cat conftest.$ac_ext >&5
13993 eval "ac_cv_lib_$ac_lib_var=no"
13998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13999 echo "$ac_t""yes" 1>&6
14000 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
14002 echo "$ac_t""no" 1>&6
14003 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
14004 echo " xemacs will be linked with \"termcap.o\""
14015 { test "$extra_verbose" = "yes" && cat << EOF
14016 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
14018 cat >> confdefs.h <<EOF
14019 #define CURSES_H_FILE "${curses_h_file-curses.h}"
14023 { test "$extra_verbose" = "yes" && cat << EOF
14024 Defining TERM_H_FILE = "${term_h_file-term.h}"
14026 cat >> confdefs.h <<EOF
14027 #define TERM_H_FILE "${term_h_file-term.h}"
14032 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
14033 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
14034 echo "configure:14035: checking for gpm.h" >&5
14036 cat > conftest.$ac_ext <<EOF
14037 #line 14038 "configure"
14038 #include "confdefs.h"
14041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14042 { (eval echo configure:14043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14044 if test -z "$ac_err"; then
14046 eval "ac_cv_header_$ac_safe=yes"
14049 echo "configure: failed program was:" >&5
14050 cat conftest.$ac_ext >&5
14052 eval "ac_cv_header_$ac_safe=no"
14055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14056 echo "$ac_t""yes" 1>&6
14059 echo "$ac_t""no" 1>&6
14063 test -z "$with_gpm" && {
14064 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
14065 echo "configure:14066: checking for Gpm_Open in -lgpm" >&5
14066 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
14068 xe_check_libs=" -lgpm "
14069 cat > conftest.$ac_ext <<EOF
14070 #line 14071 "configure"
14071 #include "confdefs.h"
14072 /* Override any gcc2 internal prototype to avoid an error. */
14073 /* We use char because int might match the return type of a gcc2
14074 builtin and then its argument prototype would still apply. */
14081 if { (eval echo configure:14082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14083 eval "ac_cv_lib_$ac_lib_var=yes"
14085 echo "configure: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14088 eval "ac_cv_lib_$ac_lib_var=no"
14093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14094 echo "$ac_t""yes" 1>&6
14097 echo "$ac_t""no" 1>&6
14102 if test "$with_gpm" = "yes"; then
14103 { test "$extra_verbose" = "yes" && cat << \EOF
14106 cat >> confdefs.h <<\EOF
14111 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
14112 echo " xemacs will be linked with \"gpmevent.o\""
14114 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
14117 else for feature in ncurses gpm; do
14118 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
14119 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
14121 eval "with_${feature}=no"
14124 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
14125 echo " xemacs will be linked with \"event-unixoid.o\""
14129 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14130 != "no no no" && echo "checking for database support" 1>&6
14131 echo "configure:14132: checking for database support" >&5
14133 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
14134 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
14135 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
14136 echo "configure:14137: checking for ndbm.h" >&5
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14144 { (eval echo configure:14145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14146 if test -z "$ac_err"; then
14148 eval "ac_cv_header_$ac_safe=yes"
14151 echo "configure: failed program was:" >&5
14152 cat conftest.$ac_ext >&5
14154 eval "ac_cv_header_$ac_safe=no"
14157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14158 echo "$ac_t""yes" 1>&6
14161 echo "$ac_t""no" 1>&6
14163 test "$with_database_gdbm" = "yes" -o \
14164 "$with_database_dbm" = "yes" && \
14165 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14166 with_database_gdbm=no with_database_dbm=no
14171 if test "$with_database_gdbm" != "no"; then
14173 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14174 echo "configure:14175: checking for dbm_open in -lgdbm" >&5
14175 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14177 xe_check_libs=" -lgdbm "
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14181 /* Override any gcc2 internal prototype to avoid an error. */
14182 /* We use char because int might match the return type of a gcc2
14183 builtin and then its argument prototype would still apply. */
14190 if { (eval echo configure:14191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14192 eval "ac_cv_lib_$ac_lib_var=yes"
14194 echo "configure: failed program was:" >&5
14195 cat conftest.$ac_ext >&5
14197 eval "ac_cv_lib_$ac_lib_var=no"
14202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14203 echo "$ac_t""yes" 1>&6
14204 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
14206 echo "$ac_t""no" 1>&6
14207 if test "$with_database_gdbm" = "yes"; then
14208 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
14210 with_database_gdbm=no
14216 if test "$with_database_dbm" != "no"; then
14217 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14218 echo "configure:14219: checking for dbm_open" >&5
14220 cat > conftest.$ac_ext <<EOF
14221 #line 14222 "configure"
14222 #include "confdefs.h"
14223 /* System header to define __stub macros and hopefully few prototypes,
14224 which can conflict with char dbm_open(); below. */
14225 #include <assert.h>
14226 /* Override any gcc2 internal prototype to avoid an error. */
14227 /* We use char because int might match the return type of a gcc2
14228 builtin and then its argument prototype would still apply. */
14233 /* The GNU C library defines this for functions which it implements
14234 to always fail with ENOSYS. Some functions are actually named
14235 something starting with __ and the normal name is an alias. */
14236 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14244 if { (eval echo configure:14245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14246 eval "ac_cv_func_dbm_open=yes"
14248 echo "configure: failed program was:" >&5
14249 cat conftest.$ac_ext >&5
14251 eval "ac_cv_func_dbm_open=no"
14255 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14256 echo "$ac_t""yes" 1>&6
14257 with_database_dbm=yes libdbm=
14259 echo "$ac_t""no" 1>&6
14262 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14263 echo "configure:14264: checking for dbm_open in -ldbm" >&5
14264 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14266 xe_check_libs=" -ldbm "
14267 cat > conftest.$ac_ext <<EOF
14268 #line 14269 "configure"
14269 #include "confdefs.h"
14270 /* Override any gcc2 internal prototype to avoid an error. */
14271 /* We use char because int might match the return type of a gcc2
14272 builtin and then its argument prototype would still apply. */
14279 if { (eval echo configure:14280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14281 eval "ac_cv_lib_$ac_lib_var=yes"
14283 echo "configure: failed program was:" >&5
14284 cat conftest.$ac_ext >&5
14286 eval "ac_cv_lib_$ac_lib_var=no"
14291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14292 echo "$ac_t""yes" 1>&6
14293 with_database_dbm=yes libdbm=-ldbm
14295 echo "$ac_t""no" 1>&6
14296 test "$with_database_dbm" = "yes" && \
14297 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14298 with_database_dbm=no
14306 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
14307 test "$with_database_gdbm" = "yes" -o \
14308 "$with_database_dbm" = "yes" && \
14309 { test "$extra_verbose" = "yes" && cat << \EOF
14312 cat >> confdefs.h <<\EOF
14318 if test "$with_database_berkdb" != "no"; then
14319 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14320 echo "configure:14321: checking for Berkeley db.h" >&5
14321 for header in "db/db.h" "db.h"; do
14324 cat > conftest.$ac_ext <<EOF
14325 #line 14326 "configure"
14326 #include "confdefs.h"
14328 #include <stdlib.h>
14329 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14330 #ifdef HAVE_INTTYPES_H
14331 #define __BIT_TYPES_DEFINED__
14332 #include <inttypes.h>
14341 if { (eval echo configure:14342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14343 db_h_file="$header"; break
14345 echo "configure: failed program was:" >&5
14346 cat conftest.$ac_ext >&5
14351 cat > conftest.$ac_ext <<EOF
14352 #line 14353 "configure"
14353 #include "confdefs.h"
14355 #include <stdlib.h>
14356 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14357 #ifdef HAVE_INTTYPES_H
14358 #define __BIT_TYPES_DEFINED__
14359 #include <inttypes.h>
14360 typedef uint8_t u_int8_t;
14361 typedef uint16_t u_int16_t;
14362 typedef uint32_t u_int32_t;
14363 #ifdef WE_DONT_NEED_QUADS
14364 typedef uint64_t u_int64_t;
14374 if { (eval echo configure:14375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14376 db_h_file="$header"; break
14378 echo "configure: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14385 if test -z "$db_h_file"
14386 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14387 else echo "$ac_t""$db_h_file" 1>&6
14390 if test "$with_database_berkdb" != "no"; then
14391 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14392 echo "configure:14393: checking for Berkeley DB version" >&5
14393 cat > conftest.$ac_ext <<EOF
14394 #line 14395 "configure"
14395 #include "confdefs.h"
14396 #include <$db_h_file>
14397 #if DB_VERSION_MAJOR > 1
14402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14403 egrep "yes" >/dev/null 2>&1; then
14405 cat > conftest.$ac_ext <<EOF
14406 #line 14407 "configure"
14407 #include "confdefs.h"
14408 #include <$db_h_file>
14409 #if DB_VERSION_MAJOR > 2
14414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14415 egrep "yes" >/dev/null 2>&1; then
14417 echo "$ac_t""3" 1>&6; dbfunc=db_create
14421 echo "$ac_t""2" 1>&6; dbfunc=db_open
14428 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14432 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14433 echo "configure:14434: checking for $dbfunc" >&5
14435 cat > conftest.$ac_ext <<EOF
14436 #line 14437 "configure"
14437 #include "confdefs.h"
14438 /* System header to define __stub macros and hopefully few prototypes,
14439 which can conflict with char $dbfunc(); below. */
14440 #include <assert.h>
14441 /* Override any gcc2 internal prototype to avoid an error. */
14442 /* We use char because int might match the return type of a gcc2
14443 builtin and then its argument prototype would still apply. */
14448 /* The GNU C library defines this for functions which it implements
14449 to always fail with ENOSYS. Some functions are actually named
14450 something starting with __ and the normal name is an alias. */
14451 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14459 if { (eval echo configure:14460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14461 eval "ac_cv_func_$dbfunc=yes"
14463 echo "configure: failed program was:" >&5
14464 cat conftest.$ac_ext >&5
14466 eval "ac_cv_func_$dbfunc=no"
14470 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14471 echo "$ac_t""yes" 1>&6
14472 with_database_berkdb=yes need_libdb=no
14474 echo "$ac_t""no" 1>&6
14477 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14478 echo "configure:14479: checking for $dbfunc in -ldb" >&5
14479 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14481 xe_check_libs=" -ldb "
14482 cat > conftest.$ac_ext <<EOF
14483 #line 14484 "configure"
14484 #include "confdefs.h"
14485 /* Override any gcc2 internal prototype to avoid an error. */
14486 /* We use char because int might match the return type of a gcc2
14487 builtin and then its argument prototype would still apply. */
14494 if { (eval echo configure:14495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14496 eval "ac_cv_lib_$ac_lib_var=yes"
14498 echo "configure: failed program was:" >&5
14499 cat conftest.$ac_ext >&5
14501 eval "ac_cv_lib_$ac_lib_var=no"
14506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14507 echo "$ac_t""yes" 1>&6
14508 with_database_berkdb=yes need_libdb=yes
14510 echo "$ac_t""no" 1>&6
14518 if test "$with_database_berkdb" = "yes"; then
14519 { test "$extra_verbose" = "yes" && cat << EOF
14520 Defining DB_H_FILE = "$db_h_file"
14522 cat >> confdefs.h <<EOF
14523 #define DB_H_FILE "$db_h_file"
14527 { test "$extra_verbose" = "yes" && cat << \EOF
14528 Defining HAVE_BERKELEY_DB
14530 cat >> confdefs.h <<\EOF
14531 #define HAVE_BERKELEY_DB 1
14535 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14536 else with_database_berkdb=no
14540 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14541 != "no no no"; then
14542 { test "$extra_verbose" = "yes" && cat << \EOF
14543 Defining HAVE_DATABASE
14545 cat >> confdefs.h <<\EOF
14546 #define HAVE_DATABASE 1
14550 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14551 echo " xemacs will be linked with \"database.o\""
14553 if test "$with_utf_2000" = "yes" -a "$with_chise" != "yes" ; then
14554 { test "$extra_verbose" = "yes" && cat << \EOF
14555 Defining HAVE_CHISE
14557 cat >> confdefs.h <<\EOF
14558 #define HAVE_CHISE 1
14565 if test "$with_socks" = "yes"; then
14567 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14568 echo "configure:14569: checking for SOCKSinit in -lsocks" >&5
14569 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14571 xe_check_libs=" -lsocks "
14572 cat > conftest.$ac_ext <<EOF
14573 #line 14574 "configure"
14574 #include "confdefs.h"
14575 /* Override any gcc2 internal prototype to avoid an error. */
14576 /* We use char because int might match the return type of a gcc2
14577 builtin and then its argument prototype would still apply. */
14584 if { (eval echo configure:14585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14586 eval "ac_cv_lib_$ac_lib_var=yes"
14588 echo "configure: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14591 eval "ac_cv_lib_$ac_lib_var=no"
14596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14597 echo "$ac_t""yes" 1>&6
14598 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14599 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14600 { test "$extra_verbose" = "yes" && cat << EOF
14601 Defining $ac_tr_lib
14603 cat >> confdefs.h <<EOF
14604 #define $ac_tr_lib 1
14608 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14611 echo "$ac_t""no" 1>&6
14615 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14616 Defining HAVE_SOCKS
14618 cat >> confdefs.h <<\EOF
14619 #define HAVE_SOCKS 1
14625 if test "$usage_tracking" = "yes"; then
14626 { test "$extra_verbose" = "yes" && cat << \EOF
14627 Defining USAGE_TRACKING
14629 cat >> confdefs.h <<\EOF
14630 #define USAGE_TRACKING 1
14634 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14637 if test "$with_modules" != "no"; then
14638 echo "checking for module support" 1>&6
14639 echo "configure:14640: checking for module support" >&5
14641 if test "$with_msw" = "yes"; then
14644 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14645 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14646 echo "configure:14647: checking for dlfcn.h" >&5
14648 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14654 { (eval echo configure:14655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14656 if test -z "$ac_err"; then
14658 eval "ac_cv_header_$ac_safe=yes"
14661 echo "configure: failed program was:" >&5
14662 cat conftest.$ac_ext >&5
14664 eval "ac_cv_header_$ac_safe=no"
14667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14668 echo "$ac_t""yes" 1>&6
14670 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14671 echo "configure:14672: checking for dlopen in -lc" >&5
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14680 if { (eval echo configure:14681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14684 echo "configure: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14688 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14689 echo "configure:14690: checking for dlopen in -ldl" >&5
14690 ac_save_LIBS="$LIBS"
14692 cat > conftest.$ac_ext <<EOF
14693 #line 14694 "configure"
14694 #include "confdefs.h"
14700 if { (eval echo configure:14701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14704 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5
14707 LIBS="$ac_save_LIBS"
14714 echo "$ac_t""no" 1>&6
14717 if test -n "$have_dl"; then
14718 { test "$extra_verbose" = "yes" && cat << \EOF
14719 Defining HAVE_DLOPEN
14721 cat >> confdefs.h <<\EOF
14722 #define HAVE_DLOPEN 1
14728 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14729 echo "configure:14730: checking for shl_load in -ldld" >&5
14730 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14732 xe_check_libs=" -ldld "
14733 cat > conftest.$ac_ext <<EOF
14734 #line 14735 "configure"
14735 #include "confdefs.h"
14736 /* Override any gcc2 internal prototype to avoid an error. */
14737 /* We use char because int might match the return type of a gcc2
14738 builtin and then its argument prototype would still apply. */
14745 if { (eval echo configure:14746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14747 eval "ac_cv_lib_$ac_lib_var=yes"
14749 echo "configure: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14752 eval "ac_cv_lib_$ac_lib_var=no"
14757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14758 echo "$ac_t""yes" 1>&6
14759 libdl=dld have_dl=yes;
14760 { test "$extra_verbose" = "yes" && cat << \EOF
14761 Defining HAVE_SHL_LOAD
14763 cat >> confdefs.h <<\EOF
14764 #define HAVE_SHL_LOAD 1
14769 echo "$ac_t""no" 1>&6
14771 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14772 echo "configure:14773: checking for dld_init in -ldld" >&5
14773 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14775 xe_check_libs=" -ldld "
14776 cat > conftest.$ac_ext <<EOF
14777 #line 14778 "configure"
14778 #include "confdefs.h"
14779 /* Override any gcc2 internal prototype to avoid an error. */
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14788 if { (eval echo configure:14789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14790 eval "ac_cv_lib_$ac_lib_var=yes"
14792 echo "configure: failed program was:" >&5
14793 cat conftest.$ac_ext >&5
14795 eval "ac_cv_lib_$ac_lib_var=no"
14800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14801 echo "$ac_t""yes" 1>&6
14802 libdl=dld have_dl=yes;
14803 { test "$extra_verbose" = "yes" && cat << \EOF
14804 Defining HAVE_DLD_INIT
14806 cat >> confdefs.h <<\EOF
14807 #define HAVE_DLD_INIT 1
14812 echo "$ac_t""no" 1>&6
14821 if test -n "$have_dl"; then
14828 ld_dynamic_link_flags=
14830 xealias=$internal_configuration
14832 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14833 echo "configure:14834: checking how to build dynamic libraries for ${xehost}" >&5
14834 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14837 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14840 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14841 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14842 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14844 case "$xehost_os" in
14846 # AIX sometimes has problems with the GCC collect2 program. For some
14847 # reason, if we set the COLLECT_NAMES environment variable, the problems
14848 # vanish in a puff of smoke.
14849 if test "${COLLECT_NAMES+set}" != set; then
14851 export COLLECT_NAMES
14856 # Now see if the compiler is really GCC.
14857 if test "$GCC" = "yes"; then
14860 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14861 echo "configure:14862: checking checking whether we are using GNU C" >&5
14862 cat > conftest.$ac_ext <<EOF
14863 #line 14864 "configure"
14864 #include "confdefs.h"
14871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14872 egrep "yes" >/dev/null 2>&1; then
14881 echo "$ac_t""${XEGCC}" 1>&6
14884 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14885 echo "configure:14886: checking how to produce PIC code" >&5
14888 can_build_shared=yes
14889 if test "$XEGCC" = yes; then
14892 case "$xehost_os" in
14893 aix[3-9]* | irix[5-9]* | osf[3-9])
14894 # PIC is the default for these OSes.
14898 # We can build DLLs from non-PIC.
14901 # FIXME: we need at least 68020 code to build shared libraries, but
14902 # adding the `-m68020' flag to GCC prevents building anything better,
14904 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14906 *cygwin* | *mingw* )
14907 # PIC is the default
14914 # PORTME Check for PIC flags for the system compiler.
14915 case "$xehost_os" in
14916 hpux9* | hpux1[0-9]*)
14917 # Is there a better link_static_flag that works with the bundled CC?
14924 # PIC (with -KPIC) is the default.
14928 # We can build DLLs from non-PIC.
14932 # All OSF/1 code is PIC.
14937 # All AIX code is PIC.
14942 dll_cflags='-belf -Kpic'
14976 can_build_shared=no
14981 if test -n "$dll_cflags"; then
14982 echo "$ac_t""${dll_cflags}" 1>&6
14984 # Check to make sure the dll_cflags actually works.
14985 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14986 echo "configure:14987: checking if PIC flag ${dll_cflags} really works" >&5
14987 save_CFLAGS="$CFLAGS"
14988 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14989 cat > conftest.$ac_ext <<EOF
14990 #line 14991 "configure"
14991 #include "confdefs.h"
14997 if { (eval echo configure:14998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15000 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
15001 # reports no error. So, we need to grep stderr for (Bundled).
15002 if grep '(Bundled)' config.log >/dev/null; then
15003 echo "$ac_t""no" 1>&6
15004 can_build_shared=no
15007 echo "$ac_t""yes" 1>&6
15010 echo "configure: failed program was:" >&5
15011 cat conftest.$ac_ext >&5
15013 echo "$ac_t""no" 1>&6
15014 can_build_shared=no
15018 CFLAGS="$save_CFLAGS"
15020 echo "$ac_t""none" 1>&6
15023 if test "$can_build_shared" = "yes"; then
15027 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
15028 echo "configure:15029: checking if C compiler can produce shared libraries" >&5
15029 if test "$XEGCC" = yes; then
15032 else # Not using GCC
15033 case "$xehost_os" in
15035 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
15036 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
15039 freebsd2* | netbsd* | openbsd*)
15041 xcldf="${wl}-Bshareable"
15050 xcldf="${wl}-b ${wl}+s"
15053 irix[5-9]* | osf[3-9]*)
15054 xcldf="${wl}-shared"
15058 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
15064 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
15065 xldf="-assert pure-text -Bstatic"
15068 fi # End if if we are using gcc
15070 if test -n "$xcldf"; then
15071 save_LDFLAGS=$LDFLAGS
15073 save_xe_libs=$xe_libs
15074 LDFLAGS="$xcldf $LDFLAGS"
15077 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
15078 cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15086 if { (eval echo configure:15087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15090 echo "configure: failed program was:" >&5
15091 cat conftest.$ac_ext >&5
15096 LDFLAGS=$save_LDFLAGS
15098 xe_libs=$save_xe_libs
15099 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
15103 echo "$ac_t""${cc_produces_so}" 1>&6
15106 if test -z "$LTLD"; then
15108 if test "$XEGCC" = yes; then
15109 # Check if gcc -print-prog-name=ld gives a path.
15110 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
15111 echo "configure:15112: checking for ld used by GCC" >&5
15112 ac_prog=`($CC -print-prog-name=ld) 2>&5`
15114 # Accept absolute paths.
15116 if test -z "$LTLD"; then
15117 # case "$ac_prog" in
15118 # *gcc-lib*) LTLD="$CC"
15127 # If it fails, then pretend we aren't using GCC.
15131 # If it is relative, then search for the first ld in PATH.
15132 with_gnu_ld=unknown
15136 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
15137 echo "configure:15138: checking for GNU ld" >&5
15140 if test -z "$LTLD"; then
15141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15142 for ac_dir in $PATH; do
15143 test -z "$ac_dir" && ac_dir=.
15144 if test -f "$ac_dir/$ac_prog"; then
15145 LTLD="$ac_dir/$ac_prog"
15146 # Check to see if the program is GNU ld. I'd rather use --version,
15147 # but apparently some GNU ld's only accept -v.
15148 # Break only if it was the GNU/non-GNU ld that we prefer.
15149 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15159 if test -n "$LTLD"; then
15160 echo "$ac_t""${LTLD}" 1>&6
15162 echo "$ac_t""no" 1>&6
15165 if test -z "$LTLD" -a "$cc_produces_so" = no; then
15166 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
15171 ld_dynamic_link_flags=
15173 # Check to see if it really is or isn't GNU ld.
15174 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
15175 echo "configure:15176: checking if the linker is GNU ld" >&5
15176 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15177 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15182 echo "$ac_t""${xe_gnu_ld}" 1>&6
15184 case "$xehost_os" in
15185 amigaos* | sunos4*)
15186 # On these operating systems, we should treat GNU ld like the system ld.
15187 gnu_ld_acts_native=yes
15190 gnu_ld_acts_native=no
15194 if test "$cc_produces_so" = "yes"; then
15197 can_build_shared=yes
15200 # OK - only NOW do we futz about with ld.
15201 # See if the linker supports building shared libraries.
15202 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
15203 echo "configure:15204: checking whether the linker supports shared libraries" >&5
15205 dll_ldflags=$LDFLAGS
15207 can_build_shared=yes
15208 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
15209 # See if GNU ld supports shared libraries.
15210 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15212 dll_ldflags="-shared"
15218 # PORTME fill in a description of your system's linker (not GNU ld)
15219 case "$xehost_os" in
15229 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15230 # support. Future versions do this automatically, but an explicit c++rt0.o
15231 # doesn't break anything, and helps significantly (at the cost of a little
15236 dll_post="/usr/lib/c++rt0.o"
15239 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
15242 dll_ldflags="-Bshareable"
15245 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
15247 dll_ldflags="-shared"
15261 # Tested with NetBSD 1.2 ld
15276 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
15277 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
15280 *gcc*) dll_ldflags="-shared"
15283 *) dll_ldflags="-G"
15289 if test "$XEGCC" = yes; then
15309 can_build_shared=no
15313 echo "$ac_t""${ld_shlibs}" 1>&6
15314 if test "$ld_shlibs" = "no"; then
15315 can_build_shared=no
15317 fi # End of if cc_produces_so = no
15320 if test "$xe_gnu_ld" = yes; then
15321 if test "$ld_shlibs" = yes; then
15322 ld_dynamic_link_flags="${wl}-export-dynamic"
15326 if test -z "$ld_dynamic_link_flags"; then
15327 case "$xehost_os" in
15329 ld_dynamic_link_flags=
15333 ld_dynamic_link_flags=
15337 ld_dynamic_link_flags=
15341 ld_dynamic_link_flags=
15345 ld_dynamic_link_flags="${wl}-E"
15349 ld_dynamic_link_flags=
15353 ld_dynamic_link_flags=
15357 ld_dynamic_link_flags=
15361 ld_dynamic_link_flags=
15364 solaris2* | solaris7*)
15365 ld_dynamic_link_flags=
15368 sco3.2v5* | unixware* | sysv5* | sysv4*)
15369 ld_dynamic_link_flags="${wl}-Bexport"
15373 ld_dynamic_link_flags=
15377 ld_dynamic_link_flags=
15381 ld_dynamic_link_flags=
15385 fi # End of if -z ld_dynamic_link_flags
15386 fi # End of if test "$can_build_shared" = "yes"
15397 if test "$can_build_shared" = "yes"; then
15398 { test "$extra_verbose" = "yes" && cat << \EOF
15399 Defining HAVE_SHLIB
15401 cat >> confdefs.h <<\EOF
15402 #define HAVE_SHLIB 1
15406 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15407 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15409 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15410 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15411 for ac_func in dlerror _dlerror
15413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15414 echo "configure:15415: checking for $ac_func" >&5
15416 cat > conftest.$ac_ext <<EOF
15417 #line 15418 "configure"
15418 #include "confdefs.h"
15419 /* System header to define __stub macros and hopefully few prototypes,
15420 which can conflict with char $ac_func(); below. */
15421 #include <assert.h>
15422 /* Override any gcc2 internal prototype to avoid an error. */
15423 /* We use char because int might match the return type of a gcc2
15424 builtin and then its argument prototype would still apply. */
15429 /* The GNU C library defines this for functions which it implements
15430 to always fail with ENOSYS. Some functions are actually named
15431 something starting with __ and the normal name is an alias. */
15432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15440 if { (eval echo configure:15441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15442 eval "ac_cv_func_$ac_func=yes"
15444 echo "configure: failed program was:" >&5
15445 cat conftest.$ac_ext >&5
15447 eval "ac_cv_func_$ac_func=no"
15451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15452 echo "$ac_t""yes" 1>&6
15453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15454 { test "$extra_verbose" = "yes" && cat << EOF
15455 Defining $ac_tr_func
15457 cat >> confdefs.h <<EOF
15458 #define $ac_tr_func 1
15463 echo "$ac_t""no" 1>&6
15469 if test "$with_modules" = "yes"; then
15470 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15472 echo "configure: warning: "Module support cannot be provided."" 1>&2
15478 cat > conftest.$ac_ext <<EOF
15479 #line 15480 "configure"
15480 #include "confdefs.h"
15481 int main(int c,char *v[]){return 0;}
15483 if { (eval echo configure:15484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15488 echo "configure: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15493 echo "*** PANIC *** configure forgot how to build working executables!"
15495 echo "*** This is most commonly due to an unforeseen environment, causing"
15496 echo "*** configure to incorrectly compute the sequence of libraries to link."
15497 echo "*** Please examine the tail of config.log for runtime errors."
15498 echo "*** Pay special attention to the -l flags, and perhaps -I and -L."
15499 echo "*** Often adding or removing explicit options in the configure"
15500 echo "*** invocation can work around this kind of problem. If so, please"
15501 echo "*** report it as a bug to xemacs-beta@xemacs.org."
15503 echo "*** Other possible causes are inability to write to the file system"
15504 echo "*** (bogus permissions or disk full) or a misconfiguration of the dynamic"
15505 echo "*** linker. On Linux, check /etc/ld.conf and rerun ldconfig if"
15506 echo "*** necessary. On other systems, try telling configure where to find"
15507 echo "*** the shared libraries using the --site-runtime-libraries option."
15509 echo "*** Another way to shoot yourself in the foot is to specify"
15510 echo "*** --with-FEATURE when FEATURE is not actually installed on your"
15511 echo "*** system. Don't do that."
15516 if test "$win32_processes" = "yes"; then
15517 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15518 echo " xemacs will be linked with \"process-nt.o\""
15521 { test "$extra_verbose" = "yes" && cat << \EOF
15522 Defining HAVE_UNIX_PROCESSES
15524 cat >> confdefs.h <<\EOF
15525 #define HAVE_UNIX_PROCESSES 1
15529 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15530 echo " xemacs will be linked with \"process-unix.o\""
15537 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15542 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15547 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
15548 c_switch_general="$T"
15552 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15553 c_switch_window_system="$T"
15557 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15562 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
15563 ld_switch_general="$T"
15567 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15568 ld_switch_window_system="$T"
15572 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15577 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15578 ld_libs_general="$T"
15582 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15583 ld_libs_window_system="$T"
15587 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15592 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15593 internal_makefile_list="Makefile.in"
15594 SUBDIR_MAKEFILES=''
15595 test -d lock || mkdir lock
15596 for dir in $MAKE_SUBDIR; do
15597 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15598 test -d "$d" || mkdir "$d"; cd "$d"
15600 * ) test -d "$dir" || mkdir "$dir" ;;
15604 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15605 SUBDIR_MAKEFILES="$T"
15609 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15610 internal_makefile_list="$T"
15617 for dir in src/s src/m; do
15618 if test ! -d "$dir" ; then
15619 echo Making symbolic link to "$srcdir/$dir"
15620 ${LN_S} "$srcdir/$dir" "$dir"
15624 if test "$extra_verbose" = "yes"; then
15626 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
15631 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15632 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15633 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15636 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15637 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15638 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15641 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15642 test "$extra_verbose" = "yes" && echo "creating TAGS"
15644 $srcdir/TAGS,include" > "TAGS"
15647 if test "$__SUNPRO_C" = "yes"; then
15648 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15649 ( echo "# For use with Sun WorkShop's Source browser."
15650 echo "# See sbquery(1) and sbinit(4) for more information"
15651 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15679 *\$* ) eval "PREFIX=$PREFIX" ;;
15687 EXEC_PREFIX=$exec_prefix
15689 case "$EXEC_PREFIX" in
15690 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15701 *\$* ) eval "INFODIR=$INFODIR" ;;
15711 case "$INFOPATH" in
15712 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15720 PACKAGE_PATH=$package_path
15722 case "$PACKAGE_PATH" in
15723 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15734 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15742 MODULEDIR=$moduledir
15744 case "$MODULEDIR" in
15745 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15753 SITELISPDIR=$sitelispdir
15755 case "$SITELISPDIR" in
15756 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15764 SITEMODULEDIR=$sitemoduledir
15766 case "$SITEMODULEDIR" in
15767 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15778 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15789 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15797 ARCHLIBDIR=$archlibdir
15799 case "$ARCHLIBDIR" in
15800 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15824 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15832 : ${XEMACS_CC:=$CC}
15835 if test "$with_prefix" = "yes"; then
15836 { test "$extra_verbose" = "yes" && cat << \EOF
15837 Defining PREFIX_USER_DEFINED
15839 cat >> confdefs.h <<\EOF
15840 #define PREFIX_USER_DEFINED 1
15846 if test "$with_site_lisp" = "no"; then
15847 { test "$extra_verbose" = "yes" && cat << \EOF
15848 Defining INHIBIT_SITE_LISP
15850 cat >> confdefs.h <<\EOF
15851 #define INHIBIT_SITE_LISP 1
15856 if test "$with_site_modules" = "no"; then
15857 { test "$extra_verbose" = "yes" && cat << \EOF
15858 Defining INHIBIT_SITE_MODULES
15860 cat >> confdefs.h <<\EOF
15861 #define INHIBIT_SITE_MODULES 1
15869 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15870 ac_configure_args="$T"
15872 { test "$extra_verbose" = "yes" && cat << EOF
15873 Defining EMACS_CONFIGURATION = "$configuration"
15875 cat >> confdefs.h <<EOF
15876 #define EMACS_CONFIGURATION "$configuration"
15880 { test "$extra_verbose" = "yes" && cat << EOF
15881 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15883 cat >> confdefs.h <<EOF
15884 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15891 { test "$extra_verbose" = "yes" && cat << EOF
15892 Defining LD_SWITCH_X_SITE = $null_string
15894 cat >> confdefs.h <<EOF
15895 #define LD_SWITCH_X_SITE $null_string
15899 { test "$extra_verbose" = "yes" && cat << EOF
15900 Defining LD_SWITCH_X_SITE_AUX = $null_string
15902 cat >> confdefs.h <<EOF
15903 #define LD_SWITCH_X_SITE_AUX $null_string
15907 { test "$extra_verbose" = "yes" && cat << EOF
15908 Defining C_SWITCH_X_SITE = $null_string
15910 cat >> confdefs.h <<EOF
15911 #define C_SWITCH_X_SITE $null_string
15915 { test "$extra_verbose" = "yes" && cat << EOF
15916 Defining LD_SWITCH_SITE = $null_string
15918 cat >> confdefs.h <<EOF
15919 #define LD_SWITCH_SITE $null_string
15923 { test "$extra_verbose" = "yes" && cat << EOF
15924 Defining C_SWITCH_SITE = $null_string
15926 cat >> confdefs.h <<EOF
15927 #define C_SWITCH_SITE $null_string
15933 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15934 Defining GNU_MALLOC
15936 cat >> confdefs.h <<\EOF
15937 #define GNU_MALLOC 1
15941 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15942 Defining USE_SYSTEM_MALLOC
15944 cat >> confdefs.h <<\EOF
15945 #define USE_SYSTEM_MALLOC 1
15949 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15950 Defining USE_DEBUG_MALLOC
15952 cat >> confdefs.h <<\EOF
15953 #define USE_DEBUG_MALLOC 1
15957 { test "$extra_verbose" = "yes" && cat << \EOF
15958 Defining USE_SYSTEM_MALLOC
15960 cat >> confdefs.h <<\EOF
15961 #define USE_SYSTEM_MALLOC 1
15966 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15969 cat >> confdefs.h <<\EOF
15974 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15977 cat >> confdefs.h <<\EOF
15982 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15983 Defining EXTERNAL_WIDGET
15985 cat >> confdefs.h <<\EOF
15986 #define EXTERNAL_WIDGET 1
15990 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15991 Defining QUICK_BUILD
15993 cat >> confdefs.h <<\EOF
15994 #define QUICK_BUILD 1
15998 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16001 cat >> confdefs.h <<\EOF
16006 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16009 cat >> confdefs.h <<\EOF
16014 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16015 Defining MAIL_USE_POP
16017 cat >> confdefs.h <<\EOF
16018 #define MAIL_USE_POP 1
16022 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16025 cat >> confdefs.h <<\EOF
16030 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16033 cat >> confdefs.h <<\EOF
16038 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16039 Defining USE_UNION_TYPE
16041 cat >> confdefs.h <<\EOF
16042 #define USE_UNION_TYPE 1
16046 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16049 cat >> confdefs.h <<\EOF
16054 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16055 Defining IPV6_CANONICALIZE
16057 cat >> confdefs.h <<\EOF
16058 #define IPV6_CANONICALIZE 1
16065 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
16067 echo "uname -a: `uname -a`"
16070 echo "$0 $quoted_arguments"
16073 if test ! -z ${emacs_beta_version} ; then
16074 if test -z "${emacs_is_beta}" ; then
16075 xemacs_betaname=".${emacs_beta_version}"
16077 xemacs_betaname="-b${emacs_beta_version}"
16086 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
16089 Compilation / Installation:"
16090 echo " Source code location: $srcdir"
16091 echo " Installation prefix: $prefix"
16092 if test -n "$site_includes"; then
16093 echo " Additional header files: $site_includes"
16095 if test -n "$site_libraries"; then
16096 echo " Additional libraries: $site_libraries"
16098 if test -n "$site_prefixes"; then
16099 echo " Additional prefixes: $site_prefixes"
16101 if test -n "$runpath"; then
16102 echo " Runtime library search path: $runpath"
16105 if test -n "$opsysfile"
16106 then echo " Operating system description file: \`$opsysfile'"
16107 else echo " Not using any operating system description file"
16109 if test -n "$machfile"
16110 then echo " Machine description file: \`$machfile'"
16111 else echo " Not using any machine description file"
16114 echo " Compiler: $CC $CFLAGS"
16115 echo " Relocating allocator for buffers: $rel_alloc"
16116 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
16117 case "$ld_switch_site" in
16118 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
16119 - Consider configuring with --pdump." ;;
16124 if test "$with_msw" = "yes"; then
16125 echo " Compiling in support for the Microsoft window system."
16127 if test "$with_x11" = "yes"; then
16128 echo " Compiling in support for the X window system:"
16129 echo " - X Windows headers location: $x_includes"
16130 echo " - X Windows libraries location: $x_libraries"
16131 if test "$with_xauth" != yes; then
16132 echo " - Xau (X authority) not available."
16134 if test "$with_xmu" != yes; then
16135 echo " - Xmu library not available; substituting equivalent routines."
16137 if test "$with_wmcommand" != no; then
16138 echo " - Handling WM_COMMAND properly."
16141 if test "$need_athena" = "yes"; then
16142 echo " Compiling in support for the Athena widget set:"
16143 echo " - Athena headers location: $athena_h_path"
16144 echo " - Athena library to link: $athena_lib"
16146 case "$with_menubars" in
16147 gtk ) echo " Using GTK menubars." ;;
16148 lucid ) echo " Using Lucid menubars." ;;
16149 motif ) echo " Using Motif menubars."
16150 echo " *WARNING* The Motif menubar implementation is currently buggy."
16151 echo " We recommend using the Lucid menubar instead."
16152 echo " Re-run configure with --with-menubars='lucid'." ;;
16153 msw ) echo " Using MS-Windows menubars." ;;
16155 case "$with_scrollbars" in
16156 gtk ) echo " Using GTK scrollbars." ;;
16157 lucid ) echo " Using Lucid scrollbars." ;;
16158 motif ) echo " Using Motif scrollbars." ;;
16159 athena ) echo " Using Athena scrollbars." ;;
16160 msw ) echo " Using MS-Windows scrollbars." ;;
16162 case "$with_dialogs" in
16163 gtk ) echo " Using GTK dialog boxes." ;;
16164 motif ) echo " Using Motif dialog boxes."
16165 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
16166 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
16167 echo " We recommend using the Athena dialog boxes instead."
16168 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
16169 echo " Read the PROBLEMS file for more information."
16171 athena ) echo " Using Athena dialog boxes." ;;
16172 msw ) echo " Using MS-Windows dialog boxes." ;;
16174 case "$with_widgets" in
16175 gtk ) echo " Using GTK native widgets." ;;
16176 motif ) echo " Using Motif native widgets." ;;
16177 athena ) echo " Using Athena native widgets." ;;
16178 msw ) echo " Using MS-Windows native widgets." ;;
16180 if test "$with_dragndrop" = yes; then
16181 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
16182 echo " - Drag'n'Drop prototype: $dragndrop_proto."
16187 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
16188 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
16192 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
16193 if test "$with_xpm" = yes; then
16194 echo " Compiling in support for XPM images."
16195 elif test "$with_x11" = yes; then
16196 echo " WARNING: -----------------------------------------------------------"
16197 echo " WARNING: Compiling without XPM image support."
16198 if test "$xpm_problem" != ""; then
16199 echo " Reason: $xpm_problem"
16201 echo " WARNING: You should strongly consider installing XPM."
16202 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
16203 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16204 echo " WARNING: -----------------------------------------------------------"
16206 if test "$with_png" = yes; then
16207 echo " Compiling in support for PNG images."
16208 elif test "$window_system" != "none"; then
16209 echo " WARNING: -----------------------------------------------------------"
16210 echo " WARNING: Compiling without PNG image support."
16211 if test "$png_problem" != ""; then
16212 echo " Reason: $png_problem"
16214 echo " WARNING: You should strongly consider installing the PNG libraries."
16215 echo " WARNING: Otherwise certain images and glyphs may not display."
16216 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16217 echo " WARNING: -----------------------------------------------------------"
16219 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
16220 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
16221 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
16225 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
16226 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
16227 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
16228 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
16232 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
16233 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
16234 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
16235 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
16236 if test "$with_postgresql" = yes; then
16237 echo " Compiling in support for PostgreSQL."
16238 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
16239 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
16243 Multiscriptization / Multilingualization / Internationalization:"
16244 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
16245 test "$with_chise" = yes && echo " Using CHISE (CHaracter Information Service Environment) support."
16246 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
16247 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
16248 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
16249 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
16250 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
16251 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
16252 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
16253 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
16254 if test "$with_wnn" = yes; then
16255 echo " Compiling in support for the WNN input method on Mule."
16256 test "$with_wnn6" = yes && echo " - Using WNN version 6."
16258 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
16262 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
16263 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
16264 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
16265 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
16269 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
16270 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
16271 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
16272 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
16273 test "$with_dnet" = yes && echo " Compiling in support for DNET."
16274 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
16275 if test "$use_union_type" = yes; then
16276 echo " WARNING: ---------------------------------------------------------"
16277 echo " Using the union type for Lisp_Objects."
16278 echo " Union type has been implicated in hard-to-debug runtime crashes."
16279 echo " Do NOT use this build of XEmacs for ordinary work. See PROBLEMS."
16280 echo " WARNING: ---------------------------------------------------------"
16282 test "$pdump" = yes && echo " Using the new portable dumper."
16283 test "$debug" = yes && echo " Compiling in support for extra debugging code."
16284 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
16285 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
16286 != "no no no no no no"; then
16287 echo " WARNING: ---------------------------------------------------------"
16288 echo " WARNING: Compiling in support for runtime error checking."
16289 echo " WARNING: XEmacs will run noticeably more slowly as a result."
16290 echo " WARNING: Error checking is on by default for XEmacs beta releases."
16291 echo " WARNING: ---------------------------------------------------------"
16294 ) | tee -a Installation
16298 # Remove any trailing slashes in these variables.
16299 test -n "$prefix" &&
16300 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16301 test -n "$exec_prefix" &&
16302 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16305 for file in $internal_makefile_list; do
16306 test "$file" = src/Makefile.in && \
16307 file="src/Makefile.in:src/Makefile.in.in:src/depend"
16308 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
16310 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
16311 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
16315 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16317 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16318 # Let make expand exec_prefix.
16319 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16321 # Any assignment to VPATH causes Sun make to only execute
16322 # the first set of double-colon rules, so remove it if not needed.
16323 # If there is a colon in the path, we need to keep it.
16324 if test "x$srcdir" = x.; then
16325 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16328 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16330 DEFS=-DHAVE_CONFIG_H
16332 # Without the "./", some shells look in PATH for config.status.
16333 : ${CONFIG_STATUS=./config.status}
16335 echo creating $CONFIG_STATUS
16336 rm -f $CONFIG_STATUS
16337 cat > $CONFIG_STATUS <<EOF
16339 # Generated automatically by configure.
16340 # Run this file to recreate the current configuration.
16341 # This directory was configured as follows,
16342 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16344 # $0 $ac_configure_args
16346 # Compiler output produced by configure, useful for debugging
16347 # configure, is in ./config.log if it exists.
16349 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16352 case "\$ac_option" in
16353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16354 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16355 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16356 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16357 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16359 -help | --help | --hel | --he | --h)
16360 echo "\$ac_cs_usage"; exit 0 ;;
16361 *) echo "\$ac_cs_usage"; exit 1 ;;
16365 ac_given_srcdir=$srcdir
16366 ac_given_INSTALL="$INSTALL"
16368 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16370 cat >> $CONFIG_STATUS <<EOF
16372 # Protect against being on the right side of a sed subst in config.status.
16373 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16374 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16378 s%@CFLAGS@%$CFLAGS%g
16379 s%@CPPFLAGS@%$CPPFLAGS%g
16380 s%@CXXFLAGS@%$CXXFLAGS%g
16381 s%@FFLAGS@%$FFLAGS%g
16383 s%@LDFLAGS@%$LDFLAGS%g
16385 s%@exec_prefix@%$exec_prefix%g
16386 s%@prefix@%$prefix%g
16387 s%@program_transform_name@%$program_transform_name%g
16388 s%@bindir@%$bindir%g
16389 s%@sbindir@%$sbindir%g
16390 s%@libexecdir@%$libexecdir%g
16391 s%@datadir@%$datadir%g
16392 s%@sysconfdir@%$sysconfdir%g
16393 s%@sharedstatedir@%$sharedstatedir%g
16394 s%@localstatedir@%$localstatedir%g
16395 s%@libdir@%$libdir%g
16396 s%@includedir@%$includedir%g
16397 s%@oldincludedir@%$oldincludedir%g
16398 s%@infodir@%$infodir%g
16399 s%@mandir@%$mandir%g
16401 s%@blddir@%$blddir%g
16404 s%@start_flags@%$start_flags%g
16405 s%@ld_switch_shared@%$ld_switch_shared%g
16406 s%@start_files@%$start_files%g
16408 s%@lib_gcc@%$lib_gcc%g
16409 s%@RANLIB@%$RANLIB%g
16410 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16411 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16412 s%@INSTALL_DATA@%$INSTALL_DATA%g
16414 s%@SET_MAKE@%$SET_MAKE%g
16415 s%@GTK_CONFIG@%$GTK_CONFIG%g
16416 s%@X_CFLAGS@%$X_CFLAGS%g
16417 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16418 s%@X_LIBS@%$X_LIBS%g
16419 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16420 s%@install_pp@%$install_pp%g
16421 s%@libs_xauth@%$libs_xauth%g
16422 s%@dnd_objs@%$dnd_objs%g
16423 s%@lwlib_objs@%$lwlib_objs%g
16424 s%@ALLOCA@%$ALLOCA%g
16425 s%@have_esd_config@%$have_esd_config%g
16426 s%@dll_ld@%$dll_ld%g
16427 s%@dll_cflags@%$dll_cflags%g
16428 s%@dll_ldflags@%$dll_ldflags%g
16429 s%@dll_post@%$dll_post%g
16430 s%@dll_ldo@%$dll_ldo%g
16431 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16432 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16433 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16434 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16435 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16436 s%@PROGNAME@%$PROGNAME%g
16437 s%@version@%$version%g
16438 s%@configuration@%$configuration%g
16439 s%@canonical@%$canonical%g
16440 s%@inststaticdir@%$inststaticdir%g
16441 s%@instvardir@%$instvardir%g
16442 s%@srcdir@%$srcdir%g
16443 s%@pkgdir@%$pkgdir%g
16444 s%@statedir@%$statedir%g
16445 s%@extra_includes@%$extra_includes%g
16446 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16447 s%@PREFIX@%$PREFIX%g
16448 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16449 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16450 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16451 s%@INFODIR@%$INFODIR%g
16452 s%@infopath@%$infopath%g
16453 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16454 s%@INFOPATH@%$INFOPATH%g
16455 s%@package_path@%$package_path%g
16456 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16457 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16458 s%@lispdir@%$lispdir%g
16459 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16460 s%@LISPDIR@%$LISPDIR%g
16461 s%@moduledir@%$moduledir%g
16462 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16463 s%@MODULEDIR@%$MODULEDIR%g
16464 s%@sitelispdir@%$sitelispdir%g
16465 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16466 s%@SITELISPDIR@%$SITELISPDIR%g
16467 s%@sitemoduledir@%$sitemoduledir%g
16468 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16469 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16470 s%@etcdir@%$etcdir%g
16471 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16472 s%@ETCDIR@%$ETCDIR%g
16473 s%@docdir@%$docdir%g
16474 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16475 s%@DOCDIR@%$DOCDIR%g
16476 s%@archlibdir@%$archlibdir%g
16477 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16478 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16479 s%@bitmapdir@%$bitmapdir%g
16480 s%@extra_objs@%$extra_objs%g
16481 s%@machfile@%$machfile%g
16482 s%@opsysfile@%$opsysfile%g
16483 s%@c_switch_general@%$c_switch_general%g
16484 s%@c_switch_window_system@%$c_switch_window_system%g
16485 s%@c_switch_all@%$c_switch_all%g
16486 s%@ld_switch_general@%$ld_switch_general%g
16487 s%@ld_switch_window_system@%$ld_switch_window_system%g
16488 s%@ld_switch_all@%$ld_switch_all%g
16489 s%@ld_libs_general@%$ld_libs_general%g
16490 s%@ld_libs_window_system@%$ld_libs_window_system%g
16491 s%@ld_libs_all@%$ld_libs_all%g
16492 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16493 s%@native_sound_lib@%$native_sound_lib%g
16494 s%@sound_cflags@%$sound_cflags%g
16495 s%@dynodump_arch@%$dynodump_arch%g
16496 s%@XEMACS_CC@%$XEMACS_CC%g
16497 s%@internal_makefile_list@%$internal_makefile_list%g
16502 cat >> $CONFIG_STATUS <<\EOF
16504 # Split the substitutions into bite-sized pieces for seds with
16505 # small command number limits, like on Digital OSF/1 and HP-UX.
16506 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16507 ac_file=1 # Number of current file.
16508 ac_beg=1 # First line for current file.
16509 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16512 while $ac_more_lines; do
16513 if test $ac_beg -gt 1; then
16514 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16516 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16518 if test ! -s conftest.s$ac_file; then
16519 ac_more_lines=false
16520 rm -f conftest.s$ac_file
16522 if test -z "$ac_sed_cmds"; then
16523 ac_sed_cmds="sed -f conftest.s$ac_file"
16525 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16527 ac_file=`expr $ac_file + 1`
16529 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16532 if test -z "$ac_sed_cmds"; then
16537 cat >> $CONFIG_STATUS <<EOF
16539 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16541 cat >> $CONFIG_STATUS <<\EOF
16542 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16545 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16546 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16547 *) ac_file_in="${ac_file}.in" ;;
16550 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16552 # Remove last slash and all that follows it. Not all systems have dirname.
16553 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16554 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16555 # The file is in a subdirectory.
16556 test ! -d "$ac_dir" && mkdir "$ac_dir"
16557 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16558 # A "../" for each directory in $ac_dir_suffix.
16559 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16561 ac_dir_suffix= ac_dots=
16564 case "$ac_given_srcdir" in
16566 if test -z "$ac_dots"; then top_srcdir=.
16567 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16568 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16569 *) # Relative path.
16570 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16571 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16574 case "$ac_given_INSTALL" in
16575 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16576 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16579 echo creating "$ac_file"
16581 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16583 *Makefile*) ac_comsub="1i\\
16584 # $configure_input" ;;
16588 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16590 s%@configure_input@%$configure_input%g
16591 s%@srcdir@%$srcdir%g
16592 s%@top_srcdir@%$top_srcdir%g
16593 s%@INSTALL@%$INSTALL%g
16594 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16598 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16599 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16601 # ac_d sets the value in "#define NAME VALUE" lines.
16602 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16603 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16606 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16607 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16608 ac_uB='\([ ]\)%\1#\2define\3'
16611 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16612 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16613 ac_eB='$%\1#\2define\3'
16617 if test "${CONFIG_HEADERS+set}" != set; then
16619 cat >> $CONFIG_STATUS <<EOF
16620 CONFIG_HEADERS="src/config.h lwlib/config.h"
16622 cat >> $CONFIG_STATUS <<\EOF
16624 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16627 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16628 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16629 *) ac_file_in="${ac_file}.in" ;;
16632 echo creating $ac_file
16634 rm -f conftest.frag conftest.in conftest.out
16635 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16636 cat $ac_file_inputs > conftest.in
16640 # Transform confdefs.h into a sed script conftest.vals that substitutes
16641 # the proper values into config.h.in to produce config.h. And first:
16642 # Protect against being on the right side of a sed subst in config.status.
16643 # Protect against being in an unquoted here document in config.status.
16644 rm -f conftest.vals
16645 cat > conftest.hdr <<\EOF
16648 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16652 sed -n -f conftest.hdr confdefs.h > conftest.vals
16655 # This sed command replaces #undef with comments. This is necessary, for
16656 # example, in the case of _POSIX_SOURCE, which is predefined and required
16657 # on some systems where configure will not decide to define it.
16658 cat >> conftest.vals <<\EOF
16659 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16662 # Break up conftest.vals because some shells have a limit on
16663 # the size of here documents, and old seds have small limits too.
16665 rm -f conftest.tail
16668 ac_lines=`grep -c . conftest.vals`
16669 # grep -c gives empty output for an empty file on some AIX systems.
16670 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16671 # Write a limited-size here document to conftest.frag.
16672 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16673 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16675 sed -f conftest.frag conftest.in > conftest.out
16677 mv conftest.out conftest.in
16678 ' >> $CONFIG_STATUS
16679 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16680 rm -f conftest.vals
16681 mv conftest.tail conftest.vals
16683 rm -f conftest.vals
16685 cat >> $CONFIG_STATUS <<\EOF
16686 rm -f conftest.frag conftest.h
16687 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16688 cat conftest.in >> conftest.h
16690 if cmp -s $ac_file conftest.h 2>/dev/null; then
16691 echo "$ac_file is unchanged"
16694 # Remove last slash and all that follows it. Not all systems have dirname.
16695 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16696 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16697 # The file is in a subdirectory.
16698 test ! -d "$ac_dir" && mkdir "$ac_dir"
16701 mv conftest.h $ac_file
16706 cat >> $CONFIG_STATUS <<EOF
16708 top_srcdir="$srcdir"
16709 MAKE_SUBDIR="$MAKE_SUBDIR"
16712 cat >> $CONFIG_STATUS <<\EOF
16713 for dir in . $MAKE_SUBDIR; do
16718 sed -e '/^# Generated/d' \
16719 -e 's%/\*\*/#.*%%' \
16734 echo creating $dir/Makefile
16735 $CPP -I. -I${top_srcdir}/src junk.c \
16736 | sed -e 's/^\#.*//' \
16737 -e 's/^[ ][ ]*$//'\
16745 chmod 444 Makefile.new
16746 mv -f Makefile.new Makefile
16748 echo creating $dir/GNUmakefile
16749 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16750 | sed -e 's/^\#.*//' \
16751 -e 's/^[ ][ ]*$//'\
16759 chmod 444 Makefile.new
16760 mv -f Makefile.new GNUmakefile
16766 sed < config.status >> lib-src/config.values \
16767 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16768 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16769 -e 's/^\([^ ]*\) $/\1 ""/' \
16775 chmod +x $CONFIG_STATUS
16776 rm -fr confdefs* $ac_clean_files
16777 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1