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 | \
368 memory_usage_stats | \
369 with_clash_detection | \
373 y | ye | yes ) val=yes ;;
375 * ) (echo "$progname: Usage error:"
376 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
377 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
379 eval "$opt=\"$val\"" ;;
397 site_runtime_libraries )
398 if test "$valomitted" = "yes" ; then
399 if test "$#" = 0 ; then
400 (echo "$progname: Usage error:"
401 echo " " "The \`--$optname' option requires a value."
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
411 with_debug_malloc | use_debug_malloc | \
412 with_system_malloc | use_system_malloc )
414 y | ye | yes ) val=yes ;;
416 d | de | def | defa | defau | defaul | default ) val=default ;;
417 * ) (echo "$progname: Usage error:"
418 echo " " "The \`--$optname' option requires one of these values:
419 \`yes', \`no', or \`default'."
420 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
422 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
427 with_database_berkdb=no
429 with_database_gdbm=no
430 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
433 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
434 d | db | dbm ) with_database_dbm=yes ;;
435 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
436 * ) (echo "$progname: Usage error:"
437 echo " " "The \`--$optname' option value
438 must be either \`no' or a comma-separated list
439 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
440 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
443 if test "$with_database_dbm" = "yes" -a \
444 "$with_database_gdbm" = "yes"; then
445 (echo "$progname: Usage error:"
446 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
447 with the \`--$optname' option."
448 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
453 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
455 n | no | non | none ) new_sdefault=no ;;
456 a | al | all | both ) new_sdefault=yes ;;
458 native ) with_native_sound=yes ;;
459 nonative ) with_native_sound=no ;;
461 nas ) with_nas_sound=yes ;;
462 nonas ) with_nas_sound=no ;;
464 esd ) with_esd_sound=yes ;;
465 noesd ) with_esd_sound=no ;;
467 * ) bogus_sound=yes ;;
469 if test "$bogus_sound" -o \
470 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
471 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
472 (echo "$progname: Usage error:"
473 echo " " "Valid types for the \`--$optname' option are:
475 Option \`all' or \`none' must be first in the list.
476 The default is to autodetect native and NAS sound support."
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
478 elif test -n "$new_sdefault" ; then
479 with_native_sound=$new_sdefault
480 with_nas_sound=$new_sdefault
481 with_esd_sound=$new_sdefault
482 new_sdefault= # reset this
490 xa | xaw ) val=xaw ;;
491 3 | 3d | xaw3d ) val=3d ;;
492 ne | nex | next | naxtaw) val=next ;;
493 9 | 95 | xaw95 ) val=95 ;;
494 xp | xpm | xawxpm ) val=xpm ;;
495 * ) (echo "$progname: Usage error:"
496 echo " " "The \`--$optname' option must have one of these values:
497 \`xaw', \`3d', \`next', \`95', or \`xpm'."
498 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
505 y | ye | yes ) val=yes ;;
506 n | no | non | none ) val=no ;;
507 x | xl | xli | xlib ) val=xlib ;;
508 m | mo | mot | moti | motif ) val=motif ;;
509 * ) (echo "$progname: Usage error:"
510 echo " " "The \`--$optname' option must have one of these values:
511 \`motif', \`xlib', \`yes', or \`no'."
512 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
521 file | dot ) val=file ;;
522 locking ) val=locking ;;
523 * ) (echo "$progname: Usage error:"
524 echo " " "The \`--$optname' option must have one of these values:
525 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
526 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
533 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
535 n | no | non | none ) new_default=no ;;
536 a | al | all ) new_default=yes ;;
538 extents ) error_check_extents=yes ;;
539 noextents ) error_check_extents=no ;;
541 typecheck ) error_check_typecheck=yes ;;
542 notypecheck ) error_check_typecheck=no ;;
544 bufpos ) error_check_bufpos=yes ;;
545 nobufpos ) error_check_bufpos=no ;;
547 gc ) error_check_gc=yes ;;
548 nogc ) error_check_gc=no ;;
550 malloc ) error_check_malloc=yes ;;
551 nomalloc ) error_check_malloc=no ;;
553 byte_code ) error_check_byte_code=yes ;;
554 nobyte_code ) error_check_byte_code=no ;;
556 glyphs ) error_check_glyphs=yes ;;
557 noglyphs ) error_check_glyphs=no ;;
559 * ) bogus_error_check=yes ;;
561 if test "$bogus_error_check" -o \
562 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
563 if test "$error_check_default" = yes ; then
564 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
566 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
568 (echo "$progname: Usage error:"
569 echo " " "Valid types for the \`--$optname' option are:
571 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
572 elif test -n "$new_default" ; then
573 error_check_extents=$new_default
574 error_check_typecheck=$new_default
575 error_check_bufpos=$new_default
576 error_check_gc=$new_default
577 error_check_malloc=$new_default
578 error_check_byte_code=$new_default
579 error_check_glyphs=$new_default
580 new_default= # reset this
587 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
588 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
589 archlibdir | docdir | package_path | moduledir )
590 if test "$valomitted" = "yes"; then
591 if test "$#" = 0; then
592 (echo "$progname: Usage error:"
593 echo " " "The \`--$optname' option requires a value."
594 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
601 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
602 Defining EXEC_PREFIX_USER_DEFINED
604 cat >> confdefs.h <<\EOF
605 #define EXEC_PREFIX_USER_DEFINED 1
609 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
610 Defining LISPDIR_USER_DEFINED
612 cat >> confdefs.h <<\EOF
613 #define LISPDIR_USER_DEFINED 1
617 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
618 Defining SITELISPDIR_USER_DEFINED
620 cat >> confdefs.h <<\EOF
621 #define SITELISPDIR_USER_DEFINED 1
625 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
626 Defining MODULEDIR_USER_DEFINED
628 cat >> confdefs.h <<\EOF
629 #define MODULEDIR_USER_DEFINED 1
633 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
634 Defining ETCDIR_USER_DEFINED
636 cat >> confdefs.h <<\EOF
637 #define ETCDIR_USER_DEFINED 1
641 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
642 Defining INFODIR_USER_DEFINED
644 cat >> confdefs.h <<\EOF
645 #define INFODIR_USER_DEFINED 1
649 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
650 Defining INFOPATH_USER_DEFINED
652 cat >> confdefs.h <<\EOF
653 #define INFOPATH_USER_DEFINED 1
657 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
658 Defining PACKAGE_PATH_USER_DEFINED
660 cat >> confdefs.h <<\EOF
661 #define PACKAGE_PATH_USER_DEFINED 1
666 { test "$extra_verbose" = "yes" && cat << \EOF
667 Defining INFODIR_USER_DEFINED
669 cat >> confdefs.h <<\EOF
670 #define INFODIR_USER_DEFINED 1
674 { test "$extra_verbose" = "yes" && cat << \EOF
675 Defining LISPDIR_USER_DEFINED
677 cat >> confdefs.h <<\EOF
678 #define LISPDIR_USER_DEFINED 1
682 { test "$extra_verbose" = "yes" && cat << \EOF
683 Defining MODULEDIR_USER_DEFINED
685 cat >> confdefs.h <<\EOF
686 #define MODULEDIR_USER_DEFINED 1
690 { test "$extra_verbose" = "yes" && cat << \EOF
691 Defining ETCDIR_USER_DEFINED
693 cat >> confdefs.h <<\EOF
694 #define ETCDIR_USER_DEFINED 1
698 { test "$extra_verbose" = "yes" && cat << \EOF
699 Defining DOCDIR_USER_DEFINED
701 cat >> confdefs.h <<\EOF
702 #define DOCDIR_USER_DEFINED 1
706 { test "$extra_verbose" = "yes" && cat << \EOF
707 Defining ARCHLIBDIR_USER_DEFINED
709 cat >> confdefs.h <<\EOF
710 #define ARCHLIBDIR_USER_DEFINED 1
714 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
715 Defining DOCDIR_USER_DEFINED
717 cat >> confdefs.h <<\EOF
718 #define DOCDIR_USER_DEFINED 1
722 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
723 Defining ARCHLIBDIR_USER_DEFINED
725 cat >> confdefs.h <<\EOF
726 #define ARCHLIBDIR_USER_DEFINED 1
735 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
738 "with_scrollbars" | \
742 l | lu | luc | luci | lucid ) val=lucid ;;
743 mo | mot | moti | motif ) val=motif ;;
744 a | at | ath | athe | athen | athena ) val=athena ;;
745 n | no | non | none ) val=no ;;
746 y | ye | yes ) val=yes ;;
748 g | gt | gtk ) val=gtk ;;
749 ms | msw ) val=msw ;;
750 * ) (echo "$progname: Usage error:"
751 echo " " "The \`--$optname' option must have one of these values:
752 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
753 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
758 "use_minimal_tagbits" | \
759 "use_indexed_lrecord_implementation" | \
761 "const_is_losing" | \
763 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
766 * ) (echo "$progname: Usage error:"
767 echo " " "Unrecognized option: $arg"
768 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
773 *-*-*) configuration="$arg" ;;
775 *) (echo "$progname: Usage error:"
776 echo " " "Unrecognized argument: $arg"
777 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
783 test -n "$cpp" && CPP="$cpp"
784 test -n "$cppflags" && CPPFLAGS="$cppflags"
785 test -n "$libs" && LIBS="$libs"
786 test -n "$ldflags" && LDFLAGS="$ldflags"
788 eval set x "$quoted_arguments"; shift
790 test "$extra_verbose" = "yes" && verbose=yes
792 test -n "$with_x" && with_x11="$with_x"
794 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
795 test "$with_system_malloc" = "default" && with_system_malloc=yes
800 if test "$with_cde $with_tooltalk" = "yes no"; then
801 (echo "$progname: Usage error:"
802 echo " " "--with-cde requires --with-tooltalk"
803 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
804 elif test "$with_tooltalk" = "no" ; then with_cde=no
805 elif test "$with_cde" = "yes"; then with_tooltalk=yes
812 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
813 if test -f "$dir/src/lisp.h" -a \
814 -f "$dir/lisp/version.el" ; then
819 if test -z "$srcdir" ; then
820 (echo "$progname: Usage error:"
821 echo " " "Neither the current directory nor its parent seem to
822 contain the XEmacs sources. If you do not want to build XEmacs in its
823 source tree, you should run \`$progname' in the directory in which
824 you wish to build XEmacs, using the \`--srcdir' option to say where the
825 sources may be found."
826 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
831 if test ! -f "$srcdir/src/lisp.h" -o \
832 ! -f "$srcdir/lisp/version.el" ; then
833 (echo "$progname: Usage error:"
834 echo " " "The directory specified with the \`--srcdir' option,
835 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
836 either run the \`$progname' script at the top of the XEmacs source
837 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
838 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
843 if test -z "$configuration"; then
844 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
845 if test -z "$configuration"; then
846 (echo "$progname: Usage error:"
847 echo " " "XEmacs has not been ported to this host type.
848 Try explicitly specifying the CONFIGURATION when rerunning configure."
849 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
853 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
854 echo "configure:855: checking whether ln -s works" >&5
857 if ln -s X conftestdata 2>/dev/null
860 ac_cv_prog_LN_S="ln -s"
864 LN_S="$ac_cv_prog_LN_S"
865 if test "$ac_cv_prog_LN_S" = "ln -s"; then
866 echo "$ac_t""yes" 1>&6
868 echo "$ac_t""no" 1>&6
872 for dir in lisp etc man info tests; do
873 if test ! -d "$dir" ; then
874 echo Making symbolic link to "$srcdir/$dir"
875 ${LN_S} "$srcdir/$dir" "$dir"
880 absolute_pwd="`pwd`";
881 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
883 else blddir="$absolute_pwd"; if test -d "/net"; then
884 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
885 blddir=`echo "$blddir" | \
886 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
893 . ) srcdir="$blddir" ;;
894 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
895 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
896 srcdir=`echo "$srcdir" | \
897 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
901 if test `pwd` != `sh -c cd $srcdir && pwd` \
902 && test -f "$srcdir/src/config.h"; then
903 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
904 echo " as a build directory right now; it has been configured in its own"
905 echo " right. To configure in another directory as well, you MUST"
906 echo " use GNU make. If you do not have GNU make, then you must"
907 echo " now do \`make distclean' in $srcdir,"
908 echo " and then run $progname again.") >&2
909 extrasub='/^VPATH[ ]*=/c\
915 vpath %.in $(srcdir)'
918 . "$srcdir/version.sh" || exit 1;
919 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
920 : "${extra_verbose=$beta}"
921 version="${emacs_major_version}.${emacs_minor_version}"
922 { test "$extra_verbose" = "yes" && cat << EOF
923 Defining EMACS_MAJOR_VERSION = $emacs_major_version
925 cat >> confdefs.h <<EOF
926 #define EMACS_MAJOR_VERSION $emacs_major_version
930 { test "$extra_verbose" = "yes" && cat << EOF
931 Defining EMACS_MINOR_VERSION = $emacs_minor_version
933 cat >> confdefs.h <<EOF
934 #define EMACS_MINOR_VERSION $emacs_minor_version
938 if test -n "$emacs_beta_version" ; then
939 if test "$beta" = "yes"; then
940 version="${version}-b${emacs_beta_version}"
941 { test "$extra_verbose" = "yes" && cat << EOF
942 Defining EMACS_BETA_VERSION = $emacs_beta_version
944 cat >> confdefs.h <<EOF
945 #define EMACS_BETA_VERSION $emacs_beta_version
950 version="${version}.${emacs_beta_version}"
951 { test "$extra_verbose" = "yes" && cat << EOF
952 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
954 cat >> confdefs.h <<EOF
955 #define EMACS_PATCH_LEVEL $emacs_beta_version
961 { test "$extra_verbose" = "yes" && cat << EOF
962 Defining XEMACS_CODENAME = "$xemacs_codename"
964 cat >> confdefs.h <<EOF
965 #define XEMACS_CODENAME "$xemacs_codename"
969 { test "$extra_verbose" = "yes" && cat << EOF
970 Defining EMACS_VERSION = "$version"
972 cat >> confdefs.h <<EOF
973 #define EMACS_VERSION "$version"
978 if test "$with_infodock" = "yes"; then
979 if test ! -f ../../ID-INSTALL; then
980 echo "Cannot build InfoDock without InfoDock sources"
985 if test "$with_infodock" = "yes"; then
986 { test "$extra_verbose" = "yes" && cat << EOF
987 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
989 cat >> confdefs.h <<EOF
990 #define INFODOCK_MAJOR_VERSION $infodock_major_version
994 { test "$extra_verbose" = "yes" && cat << EOF
995 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
997 cat >> confdefs.h <<EOF
998 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1002 { test "$extra_verbose" = "yes" && cat << EOF
1003 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1005 cat >> confdefs.h <<EOF
1006 #define INFODOCK_BUILD_VERSION $infodock_build_version
1010 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1012 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1017 { test "$extra_verbose" = "yes" && cat << EOF
1018 Defining EMACS_PROGNAME = "$PROGNAME"
1020 cat >> confdefs.h <<EOF
1021 #define EMACS_PROGNAME "$PROGNAME"
1026 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1027 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1028 Defining ERROR_CHECK_EXTENTS
1030 cat >> confdefs.h <<\EOF
1031 #define ERROR_CHECK_EXTENTS 1
1035 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1036 Defining ERROR_CHECK_TYPECHECK
1038 cat >> confdefs.h <<\EOF
1039 #define ERROR_CHECK_TYPECHECK 1
1043 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1044 Defining ERROR_CHECK_BUFPOS
1046 cat >> confdefs.h <<\EOF
1047 #define ERROR_CHECK_BUFPOS 1
1051 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1052 Defining ERROR_CHECK_GC
1054 cat >> confdefs.h <<\EOF
1055 #define ERROR_CHECK_GC 1
1059 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1060 Defining ERROR_CHECK_MALLOC
1062 cat >> confdefs.h <<\EOF
1063 #define ERROR_CHECK_MALLOC 1
1067 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1068 Defining ERROR_CHECK_BYTE_CODE
1070 cat >> confdefs.h <<\EOF
1071 #define ERROR_CHECK_BYTE_CODE 1
1075 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1076 Defining ERROR_CHECK_GLYPHS
1078 cat >> confdefs.h <<\EOF
1079 #define ERROR_CHECK_GLYPHS 1
1083 if test "${debug:=$beta}" = "yes"; then
1084 use_assertions=yes memory_usage_stats=yes
1085 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1086 echo " xemacs will be linked with \"debug.o\""
1088 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1089 echo " xemacs will be linked with \"tests.o\""
1091 { test "$extra_verbose" = "yes" && cat << \EOF
1092 Defining DEBUG_XEMACS
1094 cat >> confdefs.h <<\EOF
1095 #define DEBUG_XEMACS 1
1100 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1101 Defining USE_ASSERTIONS
1103 cat >> confdefs.h <<\EOF
1104 #define USE_ASSERTIONS 1
1108 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1109 Defining MEMORY_USAGE_STATS
1111 cat >> confdefs.h <<\EOF
1112 #define MEMORY_USAGE_STATS 1
1118 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1119 echo "configure:1120: checking "host system type"" >&5
1120 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1121 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1122 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1123 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1124 echo "$ac_t""$configuration" 1>&6
1132 case "$canonical" in
1133 sparc-*-* ) machine=sparc ;;
1134 alpha*-*-* ) machine=alpha ;;
1135 vax-*-* ) machine=vax ;;
1136 mips-dec-* ) machine=pmax ;;
1137 mips-sgi-irix6* ) machine=iris6d ;;
1138 mips-sgi-* ) machine=iris4d ;;
1139 mips*-linux ) machine=mips ;;
1140 romp-ibm-* ) machine=ibmrt ;;
1141 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1142 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1143 powerpc*-* ) machine=powerpc ;;
1144 hppa-*-* ) machine=hp800 ;;
1145 m88k-dg-* ) machine=aviion ;;
1146 m68*-sony-* ) machine=news ;;
1147 mips-sony-* ) machine=news-risc ;;
1148 clipper-* ) machine=clipper ;;
1149 arm* ) machine=arm ;;
1150 ns32k-* ) machine=ns32000 ;;
1153 case "$canonical" in
1154 *-*-linux* ) opsys=linux ;;
1155 *-*-netbsd* ) opsys=netbsd ;;
1156 *-*-openbsd* ) opsys=openbsd ;;
1157 *-*-nextstep* ) opsys=nextstep ;;
1158 *-*-vms ) opsys=vms ;;
1160 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1161 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1162 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1163 *-dec-osf3* ) opsys=decosf3-1 ;;
1164 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1166 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1167 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1168 *-*-ultrix* ) opsys=ultrix4-3 ;;
1170 *-*-aix3.1* ) opsys=aix3-1 ;;
1171 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1172 *-*-aix3* ) opsys=aix3-2 ;;
1173 *-*-aix4.0* ) opsys=aix4 ;;
1174 *-*-aix4.1* ) opsys=aix4-1 ;;
1175 *-*-aix4* ) opsys=aix4-2 ;;
1177 *-gnu* ) opsys=gnu ;;
1178 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1179 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1180 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1181 *-*-aos4.2 ) opsys=bsd4-2 ;;
1182 *-*-aos* ) opsys=bsd4-3 ;;
1183 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1184 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1185 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1186 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1187 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1188 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1189 if test -z "$NON_GNU_CPP" ; then
1190 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1191 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1195 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1196 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1199 case "$canonical" in
1202 case "$canonical" in
1203 i[3-9]86-*-netbsd*) machine=intel386 ;;
1204 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1205 machine=hp9000s300 ;;
1206 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1207 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1212 case "${canonical}" in
1213 i386-*-openbsd*) machine=intel386 ;;
1214 m68k-*-openbsd*) machine=hp9000s300 ;;
1215 mipsel-*-openbsd*) machine=pmax ;;
1219 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1220 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1222 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1223 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1225 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1227 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1229 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1231 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1233 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1235 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1236 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1237 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1240 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1242 *-convex-bsd* | *-convex-convexos* )
1243 machine=convex opsys=bsd4-3
1244 NON_GNU_CPP="cc -E -P"
1247 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1251 RANLIB="ranlib -c" ;;
1253 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1254 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1255 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1256 m88k-dg-dgux* ) opsys=dgux ;;
1258 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1259 m88k-motorola-sysv4* )
1260 machine=delta88k opsys=usg5-4-2
1262 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1264 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1265 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1267 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1269 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1270 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1271 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1274 case "`uname -r`" in
1275 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1276 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1278 NON_GNU_CPP="/lib/cpp"
1280 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1281 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1283 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1285 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1288 case "$canonical" in
1289 m68* ) machine=hp9000s300 ;;
1290 hppa* ) machine=hp800 ;;
1293 case "$canonical" in
1294 *-hp-hpux7* ) opsys=hpux ;;
1295 *-hp-hpux8* ) opsys=hpux8 ;;
1296 *-hp-hpux9* ) opsys=hpux9 ;;
1297 *-hp-hpux10* ) opsys=hpux10 ;;
1298 *-hp-hpux11* ) opsys=hpux11 ;;
1302 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1303 echo " xemacs will be linked with \"strcat.o\""
1306 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1307 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1308 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1310 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1313 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1314 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1316 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1317 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1318 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1319 romp-ibm-aos* ) opsys=bsd4-3 ;;
1320 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1321 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1323 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1324 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1326 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1328 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1330 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1332 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1334 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1336 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1338 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1340 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1342 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1344 mips-mips-usg* ) machine=mips4 ;;
1347 NON_GNU_CC="cc -systype bsd43"
1348 NON_GNU_CPP="cc -systype bsd43 -E"
1349 case "$canonical" in
1350 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1351 mips-mips-riscos5* ) opsys=riscos5 ;;
1354 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1355 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1357 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1359 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1361 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1362 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1364 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1366 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1368 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1370 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1372 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1373 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1375 mips-siemens-sysv* | mips-sni-sysv*)
1376 machine=mips-siemens opsys=usg5-4
1377 NON_GNU_CC=/usr/ccs/bin/cc
1378 NON_GNU_CPP=/usr/ccs/lib/cpp
1383 NON_GNU_CC=/usr/ccs/bin/cc
1384 NON_GNU_CPP=/usr/ccs/lib/cpp
1387 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1388 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1389 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1390 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1391 mips-sgi-irix6* ) opsys=irix6-0 ;;
1392 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1393 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1394 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1395 mips-sgi-irix* ) opsys=irix5-0 ;;
1397 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1398 *-sony-news* ) opsys=newsos5 ;;
1400 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1402 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1403 case "$canonical" in
1404 m68*-sunos1* ) machine=sun1 ;;
1405 m68*-sunos2* ) machine=sun2 ;;
1406 m68* ) machine=sun3 ;;
1407 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1408 i*86-*-* ) machine=intel386 ;;
1409 rs6000* ) machine=rs6000 ;;
1412 case "$canonical" in *-sunos5*)
1413 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1416 case "$canonical" in
1418 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1421 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1425 case "$canonical" in
1428 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1429 { test "$extra_verbose" = "yes" && cat << EOF
1430 Defining OS_RELEASE = $os_release
1432 cat >> confdefs.h <<EOF
1433 #define OS_RELEASE $os_release
1438 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1439 *-sunos4.0* ) opsys=sunos4-0 ;;
1440 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1441 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1442 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1443 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1444 *-mach* ) opsys=mach-bsd4-3 ;;
1448 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1450 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1453 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1455 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1456 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1458 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1460 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1462 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1463 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1465 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1467 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1470 case "$canonical" in
1471 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1472 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1473 *-mach* ) opsys=mach-bsd4-3 ;;
1477 ns16k-whitechapel-* ) machine=mg1 ;;
1479 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1483 case "$canonical" in
1484 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1485 *-isc2.2* ) opsys=isc2-2 ;;
1486 *-isc4.0* ) opsys=isc4-0 ;;
1487 *-isc4.* ) opsys=isc4-1
1488 GCC_TEST_OPTIONS=-posix
1489 NON_GCC_TEST_OPTIONS=-Xp
1491 *-isc* ) opsys=isc3-0 ;;
1492 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1493 *-esix* ) opsys=esix ;;
1494 *-mach* ) opsys=mach-bsd4-3 ;;
1495 *-xenix* ) opsys=xenix ;;
1496 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1497 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1498 *-bsdi4* ) opsys=bsdos4 ;;
1499 *-bsdi3* ) opsys=bsdos3 ;;
1500 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1501 *-bsdi2* ) opsys=bsdos2 ;;
1502 *-sco3.2v5* ) opsys=sco5 ;;
1503 *-sysv5* ) opsys=sco7 ;;
1504 *-386bsd* ) opsys=386bsd ;;
1505 *-freebsd* ) opsys=freebsd ;;
1506 *-nextstep* ) opsys=nextstep ;;
1507 *-pc-cygwin* ) opsys=cygwin32 ;;
1508 *-pc-mingw* ) opsys=mingw32 ;
1509 test -z "$with_tty" && with_tty="no";;
1513 m68k-*-linux* ) machine=m68k opsys=linux ;;
1517 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1519 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1521 if test -r "${srcdir}/src/m/${machine}.h"; then
1522 machfile="m/${machine}.h"
1523 { test "$extra_verbose" = "yes" && cat << EOF
1524 Defining config_machfile = "$machfile"
1526 cat >> confdefs.h <<EOF
1527 #define config_machfile "$machfile"
1532 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1533 echo "Using configure-time autodetection only."
1536 if test -r "${srcdir}/src/s/${opsys}.h"; then
1537 opsysfile="s/${opsys}.h"
1538 { test "$extra_verbose" = "yes" && cat << EOF
1539 Defining config_opsysfile = "$opsysfile"
1541 cat >> confdefs.h <<EOF
1542 #define config_opsysfile "$opsysfile"
1547 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1548 echo "Using configure-time autodetection only."
1552 if test -z "$pdump"; then
1554 linux* ) pdump=yes ;; *-*-darwin* ) pdump=yes ;; *) pdump=no ;;
1558 if test -z "$dynamic"; then
1560 hpux* | sunos4* ) dynamic=no ;;
1564 if test "$dynamic" = "yes"; then
1566 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1567 decosf* ) ld_call_shared="-call_shared" ;;
1569 else case "$opsys" in
1571 echo "Static linking is not supported on Solaris 2."
1572 echo "Rerun configure without specifying --dynamic=no."
1574 linux ) ld_call_shared="-Bstatic" ;;
1575 decosf* ) ld_call_shared="-non_shared" ;;
1579 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1581 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1582 { test "$extra_verbose" = "yes" && cat << EOF
1583 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1585 cat >> confdefs.h <<EOF
1586 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1592 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1593 if test "$with_workshop $with_tooltalk" = "yes no"; then
1594 (echo "$progname: Usage error:"
1595 echo " " "--with-workshop requires --with-tooltalk"
1596 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1597 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1598 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1601 if test "$with_workshop" = "yes"; then
1602 { test "$extra_verbose" = "yes" && cat << \EOF
1605 cat >> confdefs.h <<\EOF
1610 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1611 echo " xemacs will be linked with \"sunpro.o\""
1615 if test "$with_clash_detection" != "no"; then
1616 { test "$extra_verbose" = "yes" && cat << \EOF
1617 Defining CLASH_DETECTION
1619 cat >> confdefs.h <<\EOF
1620 #define CLASH_DETECTION 1
1624 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1625 echo " xemacs will be linked with \"filelock.o\""
1629 test -n "$compiler" && CC="$compiler"
1630 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1633 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1634 if test "${CFLAGS-unset}" != unset
1635 then cflags_specified=yes;
1636 else cflags_specified=no;
1639 xe_save_CFLAGS="$CFLAGS"
1641 # Extract the first word of "gcc", so it can be a program name with args.
1642 set dummy gcc; ac_word=$2
1643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1644 echo "configure:1645: checking for $ac_word" >&5
1646 if test -n "$CC"; then
1647 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1651 for ac_dir in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir=.
1653 if test -f $ac_dir/$ac_word; then
1661 if test -n "$CC"; then
1662 echo "$ac_t""$CC" 1>&6
1664 echo "$ac_t""no" 1>&6
1667 if test -z "$CC"; then
1668 # Extract the first word of "cc", so it can be a program name with args.
1669 set dummy cc; ac_word=$2
1670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1671 echo "configure:1672: checking for $ac_word" >&5
1673 if test -n "$CC"; then
1674 ac_cv_prog_CC="$CC" # Let the user override the test.
1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1679 for ac_dir in $ac_dummy; do
1680 test -z "$ac_dir" && ac_dir=.
1681 if test -f $ac_dir/$ac_word; then
1682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1683 ac_prog_rejected=yes
1691 if test $ac_prog_rejected = yes; then
1692 # We found a bogon in the path, so make sure we never use it.
1693 set dummy $ac_cv_prog_CC
1695 if test $# -gt 0; then
1696 # We chose a different compiler from the bogus one.
1697 # However, it has the same basename, so the bogon will be chosen
1698 # first if we set CC to just the basename; use the full file name.
1700 set dummy "$ac_dir/$ac_word" "$@"
1707 if test -n "$CC"; then
1708 echo "$ac_t""$CC" 1>&6
1710 echo "$ac_t""no" 1>&6
1713 if test -z "$CC"; then
1714 case "`uname -s`" in
1716 # Extract the first word of "cl", so it can be a program name with args.
1717 set dummy cl; ac_word=$2
1718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1719 echo "configure:1720: checking for $ac_word" >&5
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1726 for ac_dir in $ac_dummy; do
1727 test -z "$ac_dir" && ac_dir=.
1728 if test -f $ac_dir/$ac_word; then
1736 if test -n "$CC"; then
1737 echo "$ac_t""$CC" 1>&6
1739 echo "$ac_t""no" 1>&6
1744 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1751 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1752 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1753 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'
1754 ac_cpp='$CPP '"$xe_cppflags"
1755 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1756 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1759 cat > conftest.$ac_ext << EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1766 if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1767 ac_cv_prog_cc_works=yes
1768 # If we can't run a trivial program, we are probably using a cross compiler.
1769 if (./conftest; exit) 2>/dev/null; then
1770 ac_cv_prog_cc_cross=no
1772 ac_cv_prog_cc_cross=yes
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 ac_cv_prog_cc_works=no
1781 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1782 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1783 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'
1784 ac_cpp='$CPP '"$xe_cppflags"
1785 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1786 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1789 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1790 if test $ac_cv_prog_cc_works = no; then
1791 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1794 echo "configure:1795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1795 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1796 cross_compiling=$ac_cv_prog_cc_cross
1798 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1799 echo "configure:1800: checking whether we are using GNU C" >&5
1801 cat > conftest.c <<EOF
1806 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1812 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1814 if test $ac_cv_prog_gcc = yes; then
1820 ac_test_CFLAGS="${CFLAGS+set}"
1821 ac_save_CFLAGS="$CFLAGS"
1823 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1824 echo "configure:1825: checking whether ${CC-cc} accepts -g" >&5
1826 echo 'void f(){}' > conftest.c
1827 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1835 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1836 if test "$ac_test_CFLAGS" = set; then
1837 CFLAGS="$ac_save_CFLAGS"
1838 elif test $ac_cv_prog_cc_g = yes; then
1839 if test "$GCC" = yes; then
1845 if test "$GCC" = yes; then
1852 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc; ac_word=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1864 for ac_dir in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1874 if test -n "$CC"; then
1875 echo "$ac_t""$CC" 1>&6
1877 echo "$ac_t""no" 1>&6
1880 if test -z "$CC"; then
1881 # Extract the first word of "cc", so it can be a program name with args.
1882 set dummy cc; ac_word=$2
1883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1884 echo "configure:1885: checking for $ac_word" >&5
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1892 for ac_dir in $ac_dummy; do
1893 test -z "$ac_dir" && ac_dir=.
1894 if test -f $ac_dir/$ac_word; then
1895 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1896 ac_prog_rejected=yes
1904 if test $ac_prog_rejected = yes; then
1905 # We found a bogon in the path, so make sure we never use it.
1906 set dummy $ac_cv_prog_CC
1908 if test $# -gt 0; then
1909 # We chose a different compiler from the bogus one.
1910 # However, it has the same basename, so the bogon will be chosen
1911 # first if we set CC to just the basename; use the full file name.
1913 set dummy "$ac_dir/$ac_word" "$@"
1920 if test -n "$CC"; then
1921 echo "$ac_t""$CC" 1>&6
1923 echo "$ac_t""no" 1>&6
1926 if test -z "$CC"; then
1927 case "`uname -s`" in
1929 # Extract the first word of "cl", so it can be a program name with args.
1930 set dummy cl; ac_word=$2
1931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1932 echo "configure:1933: checking for $ac_word" >&5
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1939 for ac_dir in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir=.
1941 if test -f $ac_dir/$ac_word; then
1949 if test -n "$CC"; then
1950 echo "$ac_t""$CC" 1>&6
1952 echo "$ac_t""no" 1>&6
1957 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1960 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1961 echo "configure:1962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1964 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1965 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1966 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'
1967 ac_cpp='$CPP '"$xe_cppflags"
1968 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1969 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1972 cat > conftest.$ac_ext << EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1979 if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1980 ac_cv_prog_cc_works=yes
1981 # If we can't run a trivial program, we are probably using a cross compiler.
1982 if (./conftest; exit) 2>/dev/null; then
1983 ac_cv_prog_cc_cross=no
1985 ac_cv_prog_cc_cross=yes
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 ac_cv_prog_cc_works=no
1994 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1995 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1996 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'
1997 ac_cpp='$CPP '"$xe_cppflags"
1998 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1999 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2002 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2003 if test $ac_cv_prog_cc_works = no; then
2004 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2006 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2007 echo "configure:2008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2008 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2009 cross_compiling=$ac_cv_prog_cc_cross
2011 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether we are using GNU C" >&5
2014 cat > conftest.c <<EOF
2019 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2027 if test $ac_cv_prog_gcc = yes; then
2033 ac_test_CFLAGS="${CFLAGS+set}"
2034 ac_save_CFLAGS="$CFLAGS"
2036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5
2039 echo 'void f(){}' > conftest.c
2040 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2048 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2049 if test "$ac_test_CFLAGS" = set; then
2050 CFLAGS="$ac_save_CFLAGS"
2051 elif test $ac_cv_prog_cc_g = yes; then
2052 if test "$GCC" = yes; then
2058 if test "$GCC" = yes; then
2065 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2067 # Extract the first word of "gcc", so it can be a program name with args.
2068 set dummy gcc; ac_word=$2
2069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2070 echo "configure:2071: checking for $ac_word" >&5
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2077 for ac_dir in $ac_dummy; do
2078 test -z "$ac_dir" && ac_dir=.
2079 if test -f $ac_dir/$ac_word; then
2087 if test -n "$CC"; then
2088 echo "$ac_t""$CC" 1>&6
2090 echo "$ac_t""no" 1>&6
2093 if test -z "$CC"; then
2094 # Extract the first word of "cc", so it can be a program name with args.
2095 set dummy cc; ac_word=$2
2096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_word" >&5
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2105 for ac_dir in $ac_dummy; do
2106 test -z "$ac_dir" && ac_dir=.
2107 if test -f $ac_dir/$ac_word; then
2108 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2109 ac_prog_rejected=yes
2117 if test $ac_prog_rejected = yes; then
2118 # We found a bogon in the path, so make sure we never use it.
2119 set dummy $ac_cv_prog_CC
2121 if test $# -gt 0; then
2122 # We chose a different compiler from the bogus one.
2123 # However, it has the same basename, so the bogon will be chosen
2124 # first if we set CC to just the basename; use the full file name.
2126 set dummy "$ac_dir/$ac_word" "$@"
2133 if test -n "$CC"; then
2134 echo "$ac_t""$CC" 1>&6
2136 echo "$ac_t""no" 1>&6
2139 if test -z "$CC"; then
2140 case "`uname -s`" in
2142 # Extract the first word of "cl", so it can be a program name with args.
2143 set dummy cl; ac_word=$2
2144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2145 echo "configure:2146: checking for $ac_word" >&5
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2152 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 if test -f $ac_dir/$ac_word; then
2162 if test -n "$CC"; then
2163 echo "$ac_t""$CC" 1>&6
2165 echo "$ac_t""no" 1>&6
2170 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2173 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2174 echo "configure:2175: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2177 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2178 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2179 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'
2180 ac_cpp='$CPP '"$xe_cppflags"
2181 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2182 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2185 cat > conftest.$ac_ext << EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2193 ac_cv_prog_cc_works=yes
2194 # If we can't run a trivial program, we are probably using a cross compiler.
2195 if (./conftest; exit) 2>/dev/null; then
2196 ac_cv_prog_cc_cross=no
2198 ac_cv_prog_cc_cross=yes
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2203 ac_cv_prog_cc_works=no
2207 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2208 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2209 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'
2210 ac_cpp='$CPP '"$xe_cppflags"
2211 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2212 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2215 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2216 if test $ac_cv_prog_cc_works = no; then
2217 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2219 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2220 echo "configure:2221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2221 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2222 cross_compiling=$ac_cv_prog_cc_cross
2224 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2225 echo "configure:2226: checking whether we are using GNU C" >&5
2227 cat > conftest.c <<EOF
2232 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2238 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2240 if test $ac_cv_prog_gcc = yes; then
2246 ac_test_CFLAGS="${CFLAGS+set}"
2247 ac_save_CFLAGS="$CFLAGS"
2249 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2250 echo "configure:2251: checking whether ${CC-cc} accepts -g" >&5
2252 echo 'void f(){}' > conftest.c
2253 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2261 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2262 if test "$ac_test_CFLAGS" = set; then
2263 CFLAGS="$ac_save_CFLAGS"
2264 elif test $ac_cv_prog_cc_g = yes; then
2265 if test "$GCC" = yes; then
2271 if test "$GCC" = yes; then
2279 CFLAGS="$xe_save_CFLAGS"
2282 test -n "$CPP" -a -d "$CPP" && CPP=
2284 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2286 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2287 echo "configure:2288: checking how to run the C preprocessor" >&5
2288 # On Suns, sometimes $CPP names a directory.
2289 if test -n "$CPP" && test -d "$CPP"; then
2292 if test -z "$CPP"; then
2294 # This must be in double quotes, not single quotes, because CPP may get
2295 # substituted into the Makefile and "${CC-cc}" will confuse make.
2297 # On the NeXT, cc -E runs the code through the compiler's parser,
2298 # not just through cpp.
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2306 { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2308 if test -z "$ac_err"; then
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2315 CPP="${CC-cc} -E -traditional-cpp"
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2323 { (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2325 if test -z "$ac_err"; then
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 CPP="${CC-cc} -nologo -E"
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2342 if test -z "$ac_err"; then
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2356 ac_cv_prog_CPP="$CPP"
2357 CPP="$ac_cv_prog_CPP"
2359 ac_cv_prog_CPP="$CPP"
2361 echo "$ac_t""$CPP" 1>&6
2365 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2366 echo "configure:2367: checking for AIX" >&5
2367 cat > conftest.$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2376 egrep "yes" >/dev/null 2>&1; then
2378 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2379 Defining _ALL_SOURCE
2381 cat >> confdefs.h <<\EOF
2382 #define _ALL_SOURCE 1
2388 echo "$ac_t""no" 1>&6
2394 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2395 echo "configure:2396: checking for GNU libc" >&5
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 #include <features.h>
2402 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2403 #error Not a GNU libc system :-(
2404 ******* ======= ******** &&&&&&&&
2409 if { (eval echo configure:2410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2419 echo "$ac_t""$have_glibc" 1>&6
2420 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2421 Defining _GNU_SOURCE
2423 cat >> confdefs.h <<\EOF
2424 #define _GNU_SOURCE 1
2431 { test "$extra_verbose" = "yes" && cat << \EOF
2432 Defining __EXTENSIONS__
2434 cat >> confdefs.h <<\EOF
2435 #define __EXTENSIONS__ 1
2439 if test "$os_release" -ge 55; then
2440 { test "$extra_verbose" = "yes" && cat << \EOF
2441 Defining _XOPEN_SOURCE = 500
2443 cat >> confdefs.h <<\EOF
2444 #define _XOPEN_SOURCE 500
2448 { test "$extra_verbose" = "yes" && cat << \EOF
2449 Defining _XOPEN_SOURCE_EXTENDED
2451 cat >> confdefs.h <<\EOF
2452 #define _XOPEN_SOURCE_EXTENDED 1
2458 { test "$extra_verbose" = "yes" && cat << \EOF
2459 Defining _POSIX_C_SOURCE = 199506L
2461 cat >> confdefs.h <<\EOF
2462 #define _POSIX_C_SOURCE 199506L
2466 { test "$extra_verbose" = "yes" && cat << \EOF
2467 Defining _XOPEN_SOURCE = 500
2469 cat >> confdefs.h <<\EOF
2470 #define _XOPEN_SOURCE 500
2474 { test "$extra_verbose" = "yes" && cat << \EOF
2475 Defining _XOPEN_SOURCE_EXTENDED
2477 cat >> confdefs.h <<\EOF
2478 #define _XOPEN_SOURCE_EXTENDED 1
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2489 #if defined __SUNPRO_C
2491 #elif defined __DECC
2493 #elif defined __USLC__ && defined __SCO_VERSION__
2500 if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2508 case "$conftest_rc" in
2509 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2510 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2511 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2519 echo "Extracting information from the machine- and system-dependent headers..."
2521 tempcname="conftest.c"
2525 cat > $tempcname < confdefs.h
2526 cat >> $tempcname <<EOF
2528 #define C_SWITCH_SITE
2529 #define C_SWITCH_X_SITE
2530 #define LD_SWITCH_SITE
2531 #define LD_SWITCH_X_SITE
2532 #define LD_SWITCH_X_SITE_AUX
2533 #define OS_RELEASE $os_release
2535 #ifdef config_opsysfile
2536 #include "$srcdir/src/$opsysfile"
2539 #ifdef config_machfile
2540 #include "$srcdir/src/$machfile"
2543 #ifndef LIBS_MACHINE
2544 #define LIBS_MACHINE
2546 configure___ libs_machine=LIBS_MACHINE
2551 configure___ libs_system=LIBS_SYSTEM
2553 #ifndef LIBS_TERMCAP
2554 #define LIBS_TERMCAP
2556 configure___ libs_termcap=LIBS_TERMCAP
2558 #ifndef LIB_STANDARD
2559 #define LIB_STANDARD
2561 configure___ libs_standard=LIB_STANDARD
2564 #ifndef OBJECTS_MACHINE
2565 #define OBJECTS_MACHINE
2567 configure___ objects_machine=OBJECTS_MACHINE
2569 #ifndef OBJECTS_SYSTEM
2570 #define OBJECTS_SYSTEM
2572 configure___ objects_system=OBJECTS_SYSTEM
2575 #ifndef C_SWITCH_MACHINE
2576 #define C_SWITCH_MACHINE
2578 configure___ c_switch_machine=C_SWITCH_MACHINE
2580 #ifndef C_SWITCH_SYSTEM
2581 #define C_SWITCH_SYSTEM
2583 configure___ c_switch_system=C_SWITCH_SYSTEM
2586 #ifndef LD_SWITCH_MACHINE
2587 #define LD_SWITCH_MACHINE
2589 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2591 #ifndef LD_SWITCH_SYSTEM
2592 #define LD_SWITCH_SYSTEM
2594 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2598 #define UNEXEC "unexec.o"
2600 configure___ unexec=UNEXEC
2603 #ifndef LD_SWITCH_SHARED
2604 #define LD_SWITCH_SHARED "-c"
2606 configure___ ld_switch_shared=LD_SWITCH_SHARED
2609 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2610 configure___ ordinary_ld=ORDINARY_LD
2612 #ifdef ORDINARY_LINK
2613 #define LD ORDINARY_LD
2614 #else /* no ORDINARY LINK */
2615 #ifdef COFF_ENCAPSULATE
2616 #define LD "\$(CC) -nostdlib"
2617 #else /* not COFF_ENCAPSULATE */
2620 #else /* ! defined (LINKER) */
2622 #endif /* ! defined (LINKER) */
2623 #endif /* ! defined (COFF_ENCAPSULATE) */
2624 #endif /* not ORDINARY_LINK */
2630 configure___ lib_gcc=LIB_GCC
2632 #ifndef LD_TEXT_START_ADDR
2633 #define LD_TEXT_START_ADDR
2635 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2638 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2640 #ifdef COFF_ENCAPSULATE
2641 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2642 #else /* ! defined (COFF_ENCAPSULATE) */
2643 #define START_FILES "pre-crt0.o /lib/crt0.o"
2644 #endif /* ! defined (COFF_ENCAPSULATE) */
2645 #else /* ! defined (NO_REMAP) */
2646 #define START_FILES "ecrt0.o"
2647 #endif /* ! defined (NO_REMAP) */
2648 #endif /* no ORDINARY_LINK */
2652 configure___ start_files=START_FILES
2654 #ifdef ORDINARY_LINK
2655 configure___ ordinary_link=yes
2657 configure___ ordinary_link=no
2660 #ifdef SYSTEM_MALLOC
2661 configure___ system_malloc=yes
2663 configure___ system_malloc=no
2667 configure___ have_terminfo=yes
2669 configure___ have_terminfo=no
2672 #ifdef MAIL_USE_FLOCK
2673 configure___ mail_use_flock=yes
2675 configure___ mail_use_flock=no
2678 #ifdef MAIL_USE_LOCKF
2679 configure___ mail_use_lockf=yes
2681 configure___ mail_use_lockf=no
2684 #ifdef MAIL_USE_LOCKING
2685 configure___ mail_use_locking=yes
2687 configure___ mail_use_locking=no
2690 #ifdef HAVE_WIN32_PROCESSES
2691 configure___ win32_processes=yes
2693 configure___ win32_processes=no
2698 CPP=`eval "echo $CPP $CPPFLAGS"`
2699 eval `$CPP -Isrc $tempcname \
2700 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2704 if test "$pdump" = "yes"; then
2713 test "$extra_verbose" = "yes" && \
2714 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 ""
2716 case "$opsys" in mingw* | cygwin*)
2717 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2718 cygwin_include=`eval "dirname $cygwin_include"` ;
2719 cygwin_include="-I$cygwin_include/../include" ;
2720 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2721 case "$opsys" in mingw*)
2722 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2727 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2730 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2732 if test "$__USLC__" = yes; then
2733 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2734 echo "configure:2735: checking for whether the -Kalloca compiler flag is needed" >&5
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2741 void *x = alloca(4);
2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2752 xe_save_c_switch_system="$c_switch_system"
2753 c_switch_system="$c_switch_system -Kalloca"
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2759 void *x = alloca(4);
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2770 c_switch_system="$xe_save_c_switch_system"
2773 echo "$ac_t""$need_kalloca" 1>&6
2774 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
2777 if test "$cflags_specified" = "no"; then
2778 if test "$GCC" = "yes"; then
2779 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2780 CFLAGS="$CFLAGS -Wsign-compare"
2781 if test "$xemacs_compiler" != "g++"; then
2782 CFLAGS="$CFLAGS -Wshadow"
2784 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2785 elif test "$__SUNPRO_C" = "yes"; then
2787 sol2 ) CFLAGS="-v -xO4" ;;
2788 sunos4* ) CFLAGS="-xO2";;
2790 elif test "$__DECC" = "yes"; then
2792 elif test "$CC" = "xlc"; then
2793 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2798 if test "$GCC" = "yes"; then
2799 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2800 echo "configure:2801: checking for buggy gcc versions" >&5
2801 GCC_VERSION=`$CC --version`
2802 case `uname -s`:`uname -m`:$GCC_VERSION in
2803 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2807 *-fno-schedule-insns*) ;;
2809 echo "$ac_t""yes" 1>&6
2810 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2811 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2812 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2818 Linux:alpha:egcs-2.91.*)
2819 echo "$ac_t""yes" 1>&6
2820 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2821 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2822 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2827 case "$GCC_VERSION" in
2830 *-fno-strength-reduce*) ;;
2832 echo "$ac_t""yes" 1>&6
2833 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2834 echo "configure: warning: -fno-strength-reduce." 1>&2
2835 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2841 *-fno-caller-saves*) ;;
2843 echo "$ac_t""yes" 1>&6
2844 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2845 echo "configure: warning: -fno-caller-saves." 1>&2
2846 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2853 echo "$ac_t""no" 1>&6
2856 if test "$pdump" != "yes"; then
2857 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2858 echo "configure:2859: checking for \"-z nocombreloc\" linker flag" >&5
2859 case "`ld --help 2>&1`" in
2860 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2861 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2862 *) echo "$ac_t""no" 1>&6 ;;
2868 if test "$GCC" = "yes"; then
2869 set x $ld_switch_system; shift; ld_switch_system=""
2870 while test -n "$1"; do
2872 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2873 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2875 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2881 if test "$GCC" = "yes"; then
2882 set x $ld_switch_machine; shift; ld_switch_machine=""
2883 while test -n "$1"; do
2885 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2886 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2888 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2894 if test "$GCC" = "yes"; then
2895 set x $ld_switch_site; shift; ld_switch_site=""
2896 while test -n "$1"; do
2898 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2899 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2901 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2907 if test "$GCC" = "yes"; then
2908 set x $LDFLAGS; shift; LDFLAGS=""
2909 while test -n "$1"; do
2911 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2912 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2914 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2920 if test "$GCC" = "yes"; then
2921 set x $ld_call_shared; shift; ld_call_shared=""
2922 while test -n "$1"; do
2924 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2925 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2927 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2933 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2934 echo " xemacs will be linked with \"$objects_machine\""
2936 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2937 echo " xemacs will be linked with \"$objects_system\""
2939 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2940 echo " xemacs will be linked with \"$unexec\""
2942 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2943 echo " xemacs will be linked with \"dumper.o\""
2946 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2947 echo "configure:2948: checking for dynodump" >&5
2948 if test "$unexec" != "unexsol2.o"; then
2949 echo "$ac_t""no" 1>&6
2951 echo "$ac_t""yes" 1>&6
2952 { test "$extra_verbose" = "yes" && cat << \EOF
2955 cat >> confdefs.h <<\EOF
2960 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2961 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2963 sparc ) dynodump_arch=sparc ;;
2964 *86* ) dynodump_arch=i386 ;;
2965 powerpc ) dynodump_arch=ppc ;;
2967 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
2971 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2973 if test "$unexec" = "unexaix.o"; then
2974 if test "$dynamic" = "no"; then
2975 start_flags="-Wl,-bnso,-bnodelcsect"
2976 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2977 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2978 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2980 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2981 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2984 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2985 echo "configure:2986: checking for terminateAndUnload in -lC" >&5
2986 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2988 xe_check_libs=" -lC "
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 /* Override any gcc2 internal prototype to avoid an error. */
2993 /* We use char because int might match the return type of a gcc2
2994 builtin and then its argument prototype would still apply. */
2995 char terminateAndUnload();
2998 terminateAndUnload()
3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3003 eval "ac_cv_lib_$ac_lib_var=yes"
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3008 eval "ac_cv_lib_$ac_lib_var=no"
3013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3014 echo "$ac_t""yes" 1>&6
3015 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
3017 echo "$ac_t""no" 1>&6
3022 elif test -n "$ld_text_start_addr"; then
3023 start_flags="-T $ld_text_start_addr -e __start"
3029 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
3030 test -z "$linker" && linker='$(CC) -nostdlib'
3031 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3033 test "$GCC" != "yes" && lib_gcc=
3039 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3040 if test -n "$site_libraries"; then
3041 for arg in $site_libraries; do
3044 * ) test -d "$arg" || \
3045 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3048 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3052 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3053 if test -n "$site_includes"; then
3054 for arg in $site_includes; do
3057 * ) test -d "$arg" || \
3058 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3061 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3065 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3066 if test -n "$site_prefixes"; then
3067 for dir in $site_prefixes; do
3068 lib_dir="${dir}/lib"
3069 inc_dir="${dir}/include"
3070 if test ! -d "$dir"; then
3071 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3072 elif test ! -d "$lib_dir"; then
3073 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3075 if test -d "$inc_dir"; then
3076 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
3078 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
3084 for dir in "/usr/ccs/lib"; do
3085 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
3088 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3089 if test -n "$site_runtime_libraries"; then
3090 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3098 if test -n "$add_runtime_path"; then :;
3099 elif test "$dynamic" = "no"; then add_runtime_path=no
3100 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3101 else case "$opsys" in
3102 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3103 * ) add_runtime_path=no ;;
3107 if test "$add_runtime_path" = "yes"; then
3108 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3109 echo "configure:3110: checking "for runtime libraries flag"" >&5
3111 sol2 ) dash_r="-R" ;;
3112 decosf* | linux* | irix*) dash_r="-rpath " ;;
3115 for try_dash_r in "-R" "-R " "-rpath "; do
3116 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3118 if test "$GCC" = "yes"; then
3119 set x $xe_check_libs; shift; xe_check_libs=""
3120 while test -n "$1"; do
3122 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3123 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3125 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3138 if { (eval echo configure:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3140 dash_r="$try_dash_r"
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3147 test -n "$dash_r" && break
3150 if test -n "$dash_r";
3151 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3152 else echo "$ac_t""NONE" 1>&6
3156 xe_add_unique_runpath_dir='
3158 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3160 if test "$xe_add_p" = "yes"; then
3161 test -n "$runpath" && runpath="${runpath}:"
3162 runpath="${runpath}${xe_runpath_dir}"
3163 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3169 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3170 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3171 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3173 runpath="" runpath_dirs=""
3174 if test -n "$LD_RUN_PATH"; then
3175 runpath="$LD_RUN_PATH"
3176 elif test "$GCC" = "yes"; then
3177 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3178 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3179 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3180 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3181 case "$arg" in P,* | -L* | -R* )
3182 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3184 xe_runpath_dir="$dir"
3185 test "$xe_runpath_dir" != "/lib" -a \
3186 "$xe_runpath_dir" != "/usr/lib" -a \
3187 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3188 eval "$xe_add_unique_runpath_dir"
3193 ld_switch_run="$ld_switch_run_save"
3196 for arg in $ld_switch_site $ld_switch_x_site; do
3197 case "$arg" in -L*) {
3198 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3199 test "$xe_runpath_dir" != "/lib" -a \
3200 "$xe_runpath_dir" != "/usr/lib" -a \
3201 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3202 eval "$xe_add_unique_runpath_dir"
3205 if test "$opsys $need_motif" = "sol2 yes"; then
3206 xe_runpath_dir="/opt/SUNWdt/lib";
3207 eval "$xe_add_unique_runpath_dir";
3210 if test -n "$runpath"; then
3211 ld_switch_run="${dash_r}${runpath}"
3213 if test "$GCC" = "yes"; then
3214 set x $ld_switch_run; shift; ld_switch_run=""
3215 while test -n "$1"; do
3217 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3218 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3220 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3225 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3232 if test "$with_dlmalloc" != "no"; then
3237 after_morecore_hook_exists=yes
3238 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3239 echo "configure:3240: checking for malloc_set_state" >&5
3241 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3244 /* System header to define __stub macros and hopefully few prototypes,
3245 which can conflict with char malloc_set_state(); below. */
3247 /* Override any gcc2 internal prototype to avoid an error. */
3248 /* We use char because int might match the return type of a gcc2
3249 builtin and then its argument prototype would still apply. */
3250 char malloc_set_state();
3254 /* The GNU C library defines this for functions which it implements
3255 to always fail with ENOSYS. Some functions are actually named
3256 something starting with __ and the normal name is an alias. */
3257 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3265 if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3267 eval "ac_cv_func_malloc_set_state=yes"
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3272 eval "ac_cv_func_malloc_set_state=no"
3276 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3280 echo "$ac_t""no" 1>&6
3284 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3285 echo "configure:3286: checking whether __after_morecore_hook exists" >&5
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 extern void (* __after_morecore_hook)();
3291 __after_morecore_hook = 0
3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3296 echo "$ac_t""yes" 1>&6
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 echo "$ac_t""no" 1>&6
3302 after_morecore_hook_exists=no
3305 if test "$system_malloc" = "yes" ; then
3308 - The GNU allocators don't work with this system configuration."
3309 elif test "$with_system_malloc" = "yes" ; then
3312 - User chose not to use GNU allocators."
3313 elif test "$with_debug_malloc" = "yes" ; then
3316 - User chose to use Debugging Malloc."
3319 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3321 - Using Doug Lea's new malloc from the GNU C Library."
3322 { test "$extra_verbose" = "yes" && cat << \EOF
3323 Defining DOUG_LEA_MALLOC
3325 cat >> confdefs.h <<\EOF
3326 #define DOUG_LEA_MALLOC 1
3330 if test "$after_morecore_hook_exists" = "no" ; then
3332 - Using Doug Lea's new malloc from the Linux C Library."
3333 { test "$extra_verbose" = "yes" && cat << \EOF
3334 Defining _NO_MALLOC_WARNING_
3336 cat >> confdefs.h <<\EOF
3337 #define _NO_MALLOC_WARNING_ 1
3347 # Extract the first word of "ranlib", so it can be a program name with args.
3348 set dummy ranlib; ac_word=$2
3349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_word" >&5
3352 if test -n "$RANLIB"; then
3353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3357 for ac_dir in $ac_dummy; do
3358 test -z "$ac_dir" && ac_dir=.
3359 if test -f $ac_dir/$ac_word; then
3360 ac_cv_prog_RANLIB="ranlib"
3365 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3367 RANLIB="$ac_cv_prog_RANLIB"
3368 if test -n "$RANLIB"; then
3369 echo "$ac_t""$RANLIB" 1>&6
3371 echo "$ac_t""no" 1>&6
3375 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3376 if test -f $ac_dir/install-sh; then
3378 ac_install_sh="$ac_aux_dir/install-sh -c"
3380 elif test -f $ac_dir/install.sh; then
3382 ac_install_sh="$ac_aux_dir/install.sh -c"
3386 if test -z "$ac_aux_dir"; then
3387 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3389 ac_config_guess=$ac_aux_dir/config.guess
3390 ac_config_sub=$ac_aux_dir/config.sub
3391 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3393 # Find a good install program. We prefer a C program (faster),
3394 # so one script is as good as another. But avoid the broken or
3395 # incompatible versions:
3396 # SysV /etc/install, /usr/sbin/install
3397 # SunOS /usr/etc/install
3398 # IRIX /sbin/install
3400 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3401 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3402 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3403 # ./install, which can be erroneously created by make from ./install.sh.
3404 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3405 echo "configure:3406: checking for a BSD compatible install" >&5
3406 if test -z "$INSTALL"; then
3408 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3409 for ac_dir in $PATH; do
3410 # Account for people who put trailing slashes in PATH elements.
3412 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3414 # OSF1 and SCO ODT 3.0 have their own names for install.
3415 # Don't use installbsd from OSF since it installs stuff as root
3417 for ac_prog in ginstall scoinst install; do
3418 if test -f $ac_dir/$ac_prog; then
3419 if test $ac_prog = install &&
3420 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3421 # AIX install. It has an incompatible calling convention.
3424 ac_cv_path_install="$ac_dir/$ac_prog -c"
3434 if test "${ac_cv_path_install+set}" = set; then
3435 INSTALL="$ac_cv_path_install"
3437 # As a last resort, use the slow shell script. We don't cache a
3438 # path for INSTALL within a source directory, because that will
3439 # break other packages using the cache if that directory is
3440 # removed, or if the path is relative.
3441 INSTALL="$ac_install_sh"
3444 echo "$ac_t""$INSTALL" 1>&6
3446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3447 # It thinks the first close brace ends the variable substitution.
3448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3454 for ac_prog in 'bison -y' byacc
3456 # Extract the first word of "$ac_prog", so it can be a program name with args.
3457 set dummy $ac_prog; ac_word=$2
3458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3459 echo "configure:3460: checking for $ac_word" >&5
3461 if test -n "$YACC"; then
3462 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3466 for ac_dir in $ac_dummy; do
3467 test -z "$ac_dir" && ac_dir=.
3468 if test -f $ac_dir/$ac_word; then
3469 ac_cv_prog_YACC="$ac_prog"
3475 YACC="$ac_cv_prog_YACC"
3476 if test -n "$YACC"; then
3477 echo "$ac_t""$YACC" 1>&6
3479 echo "$ac_t""no" 1>&6
3482 test -n "$YACC" && break
3484 test -n "$YACC" || YACC="yacc"
3487 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
3489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3491 echo "configure:3492: checking for $ac_hdr" >&5
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3499 { (eval echo configure:3500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3501 if test -z "$ac_err"; then
3503 eval "ac_cv_header_$ac_safe=yes"
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3509 eval "ac_cv_header_$ac_safe=no"
3512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3515 { test "$extra_verbose" = "yes" && cat << EOF
3518 cat >> confdefs.h <<EOF
3519 #define $ac_tr_hdr 1
3524 echo "$ac_t""no" 1>&6
3528 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3529 echo "configure:3530: checking for sys/wait.h that is POSIX.1 compatible" >&5
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <sys/types.h>
3535 #include <sys/wait.h>
3537 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3540 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3545 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3548 if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 ac_cv_header_sys_wait_h=yes
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3555 ac_cv_header_sys_wait_h=no
3559 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3560 if test $ac_cv_header_sys_wait_h = yes; then
3561 { test "$extra_verbose" = "yes" && cat << \EOF
3562 Defining HAVE_SYS_WAIT_H
3564 cat >> confdefs.h <<\EOF
3565 #define HAVE_SYS_WAIT_H 1
3571 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3572 echo "configure:3573: checking for ANSI C header files" >&5
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3583 { (eval echo configure:3584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3585 if test -z "$ac_err"; then
3587 ac_cv_header_stdc=yes
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3593 ac_cv_header_stdc=no
3597 if test $ac_cv_header_stdc = yes; then
3598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 egrep "memchr" >/dev/null 2>&1; then
3609 ac_cv_header_stdc=no
3615 if test $ac_cv_header_stdc = yes; then
3616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623 egrep "free" >/dev/null 2>&1; then
3627 ac_cv_header_stdc=no
3633 if test $ac_cv_header_stdc = yes; then
3634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3639 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3640 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3642 int main () { int i; for (i = 0; i < 256; i++)
3643 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3652 echo "configure: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3655 ac_cv_header_stdc=no
3660 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3661 if test $ac_cv_header_stdc = yes; then
3662 { test "$extra_verbose" = "yes" && cat << \EOF
3663 Defining STDC_HEADERS
3665 cat >> confdefs.h <<\EOF
3666 #define STDC_HEADERS 1
3672 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3673 echo "configure:3674: checking whether time.h and sys/time.h may both be included" >&5
3675 cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 #include <sys/types.h>
3679 #include <sys/time.h>
3685 if { (eval echo configure:3686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3687 ac_cv_header_time=yes
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 ac_cv_header_time=no
3696 echo "$ac_t""$ac_cv_header_time" 1>&6
3697 if test $ac_cv_header_time = yes; then
3698 { test "$extra_verbose" = "yes" && cat << \EOF
3699 Defining TIME_WITH_SYS_TIME
3701 cat >> confdefs.h <<\EOF
3702 #define TIME_WITH_SYS_TIME 1
3708 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3709 echo "configure:3710: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3711 cat > conftest.$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3714 #include <sys/types.h>
3716 /* NetBSD declares sys_siglist in unistd.h. */
3717 #ifdef HAVE_UNISTD_H
3721 char *msg = *(sys_siglist + 1);
3724 if { (eval echo configure:3725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726 ac_cv_decl_sys_siglist=yes
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3731 ac_cv_decl_sys_siglist=no
3735 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3736 if test $ac_cv_decl_sys_siglist = yes; then
3737 { test "$extra_verbose" = "yes" && cat << \EOF
3738 Defining SYS_SIGLIST_DECLARED
3740 cat >> confdefs.h <<\EOF
3741 #define SYS_SIGLIST_DECLARED 1
3749 echo $ac_n "checking for utime""... $ac_c" 1>&6
3750 echo "configure:3751: checking for utime" >&5
3751 cat > conftest.$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 #include <sys/types.h>
3757 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3760 if { (eval echo configure:3761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3762 echo "$ac_t""yes" 1>&6
3763 { test "$extra_verbose" = "yes" && cat << \EOF
3766 cat >> confdefs.h <<\EOF
3767 #define HAVE_UTIME 1
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3775 echo "$ac_t""no" 1>&6
3776 for ac_func in utimes
3778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3779 echo "configure:3780: checking for $ac_func" >&5
3781 cat > conftest.$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 /* System header to define __stub macros and hopefully few prototypes,
3785 which can conflict with char $ac_func(); below. */
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3794 /* The GNU C library defines this for functions which it implements
3795 to always fail with ENOSYS. Some functions are actually named
3796 something starting with __ and the normal name is an alias. */
3797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3805 if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3807 eval "ac_cv_func_$ac_func=yes"
3809 echo "configure: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3812 eval "ac_cv_func_$ac_func=no"
3816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3819 { test "$extra_verbose" = "yes" && cat << EOF
3820 Defining $ac_tr_func
3822 cat >> confdefs.h <<EOF
3823 #define $ac_tr_func 1
3828 echo "$ac_t""no" 1>&6
3836 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3837 echo "configure:3838: checking return type of signal handlers" >&5
3839 cat > conftest.$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3842 #include <sys/types.h>
3848 extern "C" void (*signal (int, void (*)(int)))(int);
3850 void (*signal ()) ();
3857 if { (eval echo configure:3858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3859 ac_cv_type_signal=void
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3864 ac_cv_type_signal=int
3868 echo "$ac_t""$ac_cv_type_signal" 1>&6
3869 { test "$extra_verbose" = "yes" && cat << EOF
3870 Defining RETSIGTYPE = $ac_cv_type_signal
3872 cat >> confdefs.h <<EOF
3873 #define RETSIGTYPE $ac_cv_type_signal
3878 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3879 echo "configure:3880: checking for size_t" >&5
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3884 #include <sys/types.h>
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3893 ac_cv_type_size_t=yes
3896 ac_cv_type_size_t=no
3900 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3901 if test $ac_cv_type_size_t = no; then
3902 { test "$extra_verbose" = "yes" && cat << \EOF
3903 Defining size_t = unsigned
3905 cat >> confdefs.h <<\EOF
3906 #define size_t unsigned
3912 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3913 echo "configure:3914: checking for pid_t" >&5
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 #include <sys/types.h>
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3927 ac_cv_type_pid_t=yes
3934 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3935 if test $ac_cv_type_pid_t = no; then
3936 { test "$extra_verbose" = "yes" && cat << \EOF
3937 Defining pid_t = int
3939 cat >> confdefs.h <<\EOF
3946 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3947 echo "configure:3948: checking for uid_t in sys/types.h" >&5
3949 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 #include <sys/types.h>
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 egrep "uid_t" >/dev/null 2>&1; then
3957 ac_cv_type_uid_t=yes
3965 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3966 if test $ac_cv_type_uid_t = no; then
3967 { test "$extra_verbose" = "yes" && cat << \EOF
3968 Defining uid_t = int
3970 cat >> confdefs.h <<\EOF
3975 { test "$extra_verbose" = "yes" && cat << \EOF
3976 Defining gid_t = int
3978 cat >> confdefs.h <<\EOF
3985 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3986 echo "configure:3987: checking for mode_t" >&5
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3991 #include <sys/types.h>
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4000 ac_cv_type_mode_t=yes
4003 ac_cv_type_mode_t=no
4007 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4008 if test $ac_cv_type_mode_t = no; then
4009 { test "$extra_verbose" = "yes" && cat << \EOF
4010 Defining mode_t = int
4012 cat >> confdefs.h <<\EOF
4019 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4020 echo "configure:4021: checking for off_t" >&5
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4025 #include <sys/types.h>
4031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4032 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4034 ac_cv_type_off_t=yes
4041 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4042 if test $ac_cv_type_off_t = no; then
4043 { test "$extra_verbose" = "yes" && cat << \EOF
4044 Defining off_t = long
4046 cat >> confdefs.h <<\EOF
4053 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4054 echo "configure:4055: checking for ssize_t" >&5
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4059 #include <sys/types.h>
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4068 ac_cv_type_ssize_t=yes
4071 ac_cv_type_ssize_t=no
4075 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4076 if test $ac_cv_type_ssize_t = no; then
4077 { test "$extra_verbose" = "yes" && cat << \EOF
4078 Defining ssize_t = int
4080 cat >> confdefs.h <<\EOF
4088 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4089 echo "configure:4090: checking for socklen_t" >&5
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 #include <sys/types.h>
4094 #include <sys/socket.h>
4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4103 echo "$ac_t""yes" 1>&6
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4112 #include <sys/types.h>
4113 #include <sys/socket.h>
4114 int accept (int, struct sockaddr *, size_t *);
4120 if { (eval echo configure:4121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 echo "$ac_t""size_t" 1>&6
4124 { test "$extra_verbose" = "yes" && cat << \EOF
4125 Defining socklen_t = size_t
4127 cat >> confdefs.h <<\EOF
4128 #define socklen_t size_t
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4137 echo "$ac_t""int" 1>&6
4138 { test "$extra_verbose" = "yes" && cat << \EOF
4139 Defining socklen_t = int
4141 cat >> confdefs.h <<\EOF
4142 #define socklen_t int
4151 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4152 echo "configure:4153: checking for struct timeval" >&5
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 #ifdef TIME_WITH_SYS_TIME
4157 #include <sys/time.h>
4160 #ifdef HAVE_SYS_TIME_H
4161 #include <sys/time.h>
4167 static struct timeval x; x.tv_sec = x.tv_usec;
4170 if { (eval echo configure:4171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4172 echo "$ac_t""yes" 1>&6
4174 { test "$extra_verbose" = "yes" && cat << \EOF
4175 Defining HAVE_TIMEVAL
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_TIMEVAL 1
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 echo "$ac_t""no" 1>&6
4191 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4192 echo "configure:4193: checking whether struct tm is in sys/time.h or time.h" >&5
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 #include <sys/types.h>
4200 struct tm *tp; tp->tm_sec;
4203 if { (eval echo configure:4204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4205 ac_cv_struct_tm=time.h
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 ac_cv_struct_tm=sys/time.h
4214 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4215 if test $ac_cv_struct_tm = sys/time.h; then
4216 { test "$extra_verbose" = "yes" && cat << \EOF
4217 Defining TM_IN_SYS_TIME
4219 cat >> confdefs.h <<\EOF
4220 #define TM_IN_SYS_TIME 1
4226 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4227 echo "configure:4228: checking for tm_zone in struct tm" >&5
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 #include <sys/types.h>
4233 #include <$ac_cv_struct_tm>
4235 struct tm tm; tm.tm_zone;
4238 if { (eval echo configure:4239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4240 ac_cv_struct_tm_zone=yes
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 ac_cv_struct_tm_zone=no
4249 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4250 if test "$ac_cv_struct_tm_zone" = yes; then
4251 { test "$extra_verbose" = "yes" && cat << \EOF
4252 Defining HAVE_TM_ZONE
4254 cat >> confdefs.h <<\EOF
4255 #define HAVE_TM_ZONE 1
4260 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4261 echo "configure:4262: checking for tzname" >&5
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4267 #ifndef tzname /* For SGI. */
4268 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4276 ac_cv_var_tzname=yes
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4285 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4286 if test $ac_cv_var_tzname = yes; then
4287 { test "$extra_verbose" = "yes" && cat << \EOF
4288 Defining HAVE_TZNAME
4290 cat >> confdefs.h <<\EOF
4291 #define HAVE_TZNAME 1
4299 echo $ac_n "checking for working const""... $ac_c" 1>&6
4300 echo "configure:4301: checking for working const" >&5
4302 cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4308 /* Ultrix mips cc rejects this. */
4309 typedef int charset[2]; const charset x;
4310 /* SunOS 4.1.1 cc rejects this. */
4311 char const *const *ccp;
4313 /* NEC SVR4.0.2 mips cc rejects this. */
4314 struct point {int x, y;};
4315 static struct point const zero = {0,0};
4316 /* AIX XL C 1.02.0.0 rejects this.
4317 It does not let you subtract one const X* pointer from another in an arm
4318 of an if-expression whose if-part is not a constant expression */
4319 const char *g = "string";
4320 ccp = &g + (g ? g-g : 0);
4321 /* HPUX 7.0 cc rejects these. */
4324 ccp = (char const *const *) p;
4325 { /* SCO 3.2v4 cc rejects this. */
4327 char const *s = 0 ? (char *) 0 : (char const *) 0;
4331 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4333 const int *foo = &x[0];
4336 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4337 typedef const int *iptr;
4341 { /* AIX XL C 1.02.0.0 rejects this saying
4342 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4343 struct s { int j; const int *ap[3]; };
4344 struct s *b; b->j = 5;
4346 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4352 if { (eval echo configure:4353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4356 echo "configure: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4363 echo "$ac_t""$ac_cv_c_const" 1>&6
4364 if test $ac_cv_c_const = no; then
4365 { test "$extra_verbose" = "yes" && cat << \EOF
4368 cat >> confdefs.h <<\EOF
4376 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4377 echo "configure:4378: checking whether ${MAKE-make} sets \${MAKE}" >&5
4378 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4380 cat > conftestmake <<\EOF
4382 @echo 'ac_maketemp="${MAKE}"'
4384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4385 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4386 if test -n "$ac_maketemp"; then
4387 eval ac_cv_prog_make_${ac_make}_set=yes
4389 eval ac_cv_prog_make_${ac_make}_set=no
4392 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4396 echo "$ac_t""no" 1>&6
4397 SET_MAKE="MAKE=${MAKE-make}"
4401 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4402 echo "configure:4403: checking whether byte ordering is bigendian" >&5
4404 ac_cv_c_bigendian=unknown
4405 # See if sys/param.h defines the BYTE_ORDER macro.
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 #include <sys/types.h>
4410 #include <sys/param.h>
4413 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4418 if { (eval echo configure:4419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4420 # It does; now see whether it defined to BIG_ENDIAN or not.
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 #include <sys/types.h>
4425 #include <sys/param.h>
4428 #if BYTE_ORDER != BIG_ENDIAN
4433 if { (eval echo configure:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4435 ac_cv_c_bigendian=yes
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4440 ac_cv_c_bigendian=no
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4448 if test $ac_cv_c_bigendian = unknown; then
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4453 /* Are we little or big endian? From Harbison&Steele. */
4457 char c[sizeof (long)];
4460 exit (u.c[sizeof (long) - 1] == 1);
4463 if { (eval echo configure:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4465 ac_cv_c_bigendian=no
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 ac_cv_c_bigendian=yes
4476 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4477 if test $ac_cv_c_bigendian = yes; then
4478 { test "$extra_verbose" = "yes" && cat << \EOF
4479 Defining WORDS_BIGENDIAN
4481 cat >> confdefs.h <<\EOF
4482 #define WORDS_BIGENDIAN 1
4489 echo $ac_n "checking size of short""... $ac_c" 1>&6
4490 echo "configure:4491: checking size of short" >&5
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4496 #include <sys/types.h>
4499 FILE *f=fopen("conftestval", "w");
4501 fprintf(f, "%d\n", sizeof(short));
4505 if { (eval echo configure:4506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4507 ac_cv_sizeof_short=`cat conftestval`
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4513 ac_cv_sizeof_short=0
4516 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4517 { test "$extra_verbose" = "yes" && cat << EOF
4518 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4520 cat >> confdefs.h <<EOF
4521 #define SIZEOF_SHORT $ac_cv_sizeof_short
4526 if test "$ac_cv_sizeof_short" = 0; then
4528 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4529 echo "*** PANIC *** Please examine config.log for compilation errors."
4532 echo $ac_n "checking size of int""... $ac_c" 1>&6
4533 echo "configure:4534: checking size of int" >&5
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4539 #include <sys/types.h>
4542 FILE *f=fopen("conftestval", "w");
4544 fprintf(f, "%d\n", sizeof(int));
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4550 ac_cv_sizeof_int=`cat conftestval`
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4559 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4560 { test "$extra_verbose" = "yes" && cat << EOF
4561 Defining SIZEOF_INT = $ac_cv_sizeof_int
4563 cat >> confdefs.h <<EOF
4564 #define SIZEOF_INT $ac_cv_sizeof_int
4569 echo $ac_n "checking size of long""... $ac_c" 1>&6
4570 echo "configure:4571: checking size of long" >&5
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4576 #include <sys/types.h>
4579 FILE *f=fopen("conftestval", "w");
4581 fprintf(f, "%d\n", sizeof(long));
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4587 ac_cv_sizeof_long=`cat conftestval`
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4596 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4597 { test "$extra_verbose" = "yes" && cat << EOF
4598 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4600 cat >> confdefs.h <<EOF
4601 #define SIZEOF_LONG $ac_cv_sizeof_long
4606 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4607 echo "configure:4608: checking size of long long" >&5
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4613 #include <sys/types.h>
4616 FILE *f=fopen("conftestval", "w");
4618 fprintf(f, "%d\n", sizeof(long long));
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4624 ac_cv_sizeof_long_long=`cat conftestval`
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4630 ac_cv_sizeof_long_long=0
4633 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4634 { test "$extra_verbose" = "yes" && cat << EOF
4635 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4637 cat >> confdefs.h <<EOF
4638 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4643 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4644 echo "configure:4645: checking size of void *" >&5
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4650 #include <sys/types.h>
4653 FILE *f=fopen("conftestval", "w");
4655 fprintf(f, "%d\n", sizeof(void *));
4659 if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4661 ac_cv_sizeof_void_p=`cat conftestval`
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 ac_cv_sizeof_void_p=0
4670 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4671 { test "$extra_verbose" = "yes" && cat << EOF
4672 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4674 cat >> confdefs.h <<EOF
4675 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4681 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4682 echo "configure:4683: checking for long file names" >&5
4684 ac_cv_sys_long_file_names=yes
4685 # Test for long file names in all the places we know might matter:
4686 # . the current directory, where building will happen
4687 # $prefix/lib where we will be installing things
4688 # $exec_prefix/lib likewise
4689 # eval it to expand exec_prefix.
4690 # $TMPDIR if set, where it might want to write temporary files
4691 # if $TMPDIR is not set:
4692 # /tmp where it might want to write temporary files
4695 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4696 ac_tmpdirs="$TMPDIR"
4698 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4700 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4701 test -d $ac_dir || continue
4702 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4703 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4704 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4705 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4706 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4707 ac_cv_sys_long_file_names=no
4708 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4711 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4714 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4715 if test $ac_cv_sys_long_file_names = yes; then
4716 { test "$extra_verbose" = "yes" && cat << \EOF
4717 Defining HAVE_LONG_FILE_NAMES
4719 cat >> confdefs.h <<\EOF
4720 #define HAVE_LONG_FILE_NAMES 1
4727 echo $ac_n "checking for sin""... $ac_c" 1>&6
4728 echo "configure:4729: checking for sin" >&5
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4733 /* System header to define __stub macros and hopefully few prototypes,
4734 which can conflict with char sin(); below. */
4736 /* Override any gcc2 internal prototype to avoid an error. */
4737 /* We use char because int might match the return type of a gcc2
4738 builtin and then its argument prototype would still apply. */
4743 /* The GNU C library defines this for functions which it implements
4744 to always fail with ENOSYS. Some functions are actually named
4745 something starting with __ and the normal name is an alias. */
4746 #if defined (__stub_sin) || defined (__stub___sin)
4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4756 eval "ac_cv_func_sin=yes"
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4761 eval "ac_cv_func_sin=no"
4765 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4766 echo "$ac_t""yes" 1>&6
4769 echo "$ac_t""no" 1>&6
4771 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4772 echo "configure:4773: checking for sin in -lm" >&5
4773 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4775 xe_check_libs=" -lm "
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4790 eval "ac_cv_lib_$ac_lib_var=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 eval "ac_cv_lib_$ac_lib_var=no"
4800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4803 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4804 { test "$extra_verbose" = "yes" && cat << EOF
4807 cat >> confdefs.h <<EOF
4808 #define $ac_tr_lib 1
4812 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4815 echo "$ac_t""no" 1>&6
4822 { test "$extra_verbose" = "yes" && cat << \EOF
4823 Defining LISP_FLOAT_TYPE
4825 cat >> confdefs.h <<\EOF
4826 #define LISP_FLOAT_TYPE 1
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4836 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4841 { test "$extra_verbose" = "yes" && cat << \EOF
4842 Defining HAVE_INVERSE_HYPERBOLIC
4844 cat >> confdefs.h <<\EOF
4845 #define HAVE_INVERSE_HYPERBOLIC 1
4850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4855 echo "checking type of mail spool file locking" 1>&6
4856 echo "configure:4857: checking type of mail spool file locking" >&5
4857 for ac_func in lockf flock
4859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4860 echo "configure:4861: checking for $ac_func" >&5
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4865 /* System header to define __stub macros and hopefully few prototypes,
4866 which can conflict with char $ac_func(); below. */
4868 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4875 /* The GNU C library defines this for functions which it implements
4876 to always fail with ENOSYS. Some functions are actually named
4877 something starting with __ and the normal name is an alias. */
4878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4886 if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4888 eval "ac_cv_func_$ac_func=yes"
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4893 eval "ac_cv_func_$ac_func=no"
4897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4898 echo "$ac_t""yes" 1>&6
4899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4900 { test "$extra_verbose" = "yes" && cat << EOF
4901 Defining $ac_tr_func
4903 cat >> confdefs.h <<EOF
4904 #define $ac_tr_func 1
4909 echo "$ac_t""no" 1>&6
4913 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4914 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4915 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4916 if test -z "$mail_locking"; then
4917 case "$opsys" in cygwin* | mingw*)
4922 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4923 Defining MAIL_LOCK_LOCKF
4925 cat >> confdefs.h <<\EOF
4926 #define MAIL_LOCK_LOCKF 1
4930 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4931 Defining MAIL_LOCK_FLOCK
4933 cat >> confdefs.h <<\EOF
4934 #define MAIL_LOCK_FLOCK 1
4938 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4939 Defining MAIL_LOCK_LOCKING
4941 cat >> confdefs.h <<\EOF
4942 #define MAIL_LOCK_LOCKING 1
4946 elif test "$mail_locking" = "pop"; then
4949 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4950 Defining MAIL_LOCK_DOT
4952 cat >> confdefs.h <<\EOF
4953 #define MAIL_LOCK_DOT 1
4958 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4959 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4960 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4961 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4962 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4963 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4965 case "$opsys" in decosf*)
4967 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4968 echo "configure:4969: checking for cma_open in -lpthreads" >&5
4969 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4971 xe_check_libs=" -lpthreads "
4972 cat > conftest.$ac_ext <<EOF
4973 #line 4974 "configure"
4974 #include "confdefs.h"
4975 /* Override any gcc2 internal prototype to avoid an error. */
4976 /* We use char because int might match the return type of a gcc2
4977 builtin and then its argument prototype would still apply. */
4984 if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4986 eval "ac_cv_lib_$ac_lib_var=yes"
4988 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4991 eval "ac_cv_lib_$ac_lib_var=no"
4996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4997 echo "$ac_t""yes" 1>&6
4998 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5000 { test "$extra_verbose" = "yes" && cat << EOF
5003 cat >> confdefs.h <<EOF
5004 #define $ac_tr_lib 1
5008 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
5011 echo "$ac_t""no" 1>&6
5015 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5016 c_switch_site="$c_switch_site -threads" ;;
5020 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5021 echo "configure:5022: checking whether the -xildoff compiler flag is required" >&5
5022 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5023 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5024 then echo "$ac_t""no" 1>&6;
5025 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
5027 else echo "$ac_t""no" 1>&6
5030 if test "$opsys" = "sol2"; then
5031 if test "$os_release" -ge 56; then
5032 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5033 echo "configure:5034: checking for \"-z ignore\" linker flag" >&5
5034 case "`ld -h 2>&1`" in
5035 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5036 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5037 *) echo "$ac_t""no" 1>&6 ;;
5043 echo "checking "for specified window system"" 1>&6
5044 echo "configure:5045: checking "for specified window system"" >&5
5050 if test "$with_gnome" != "no"; then
5051 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5052 echo "configure:5053: checking for GNOME configuration script" >&5
5053 for possible in gnome-config
5055 possible_version=`${possible} --version 2> /dev/null`
5056 if test "x${possible_version}" != "x"; then
5057 GNOME_CONFIG="${possible}"
5063 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5066 if test "${GNOME_CONFIG}" != "no"; then
5067 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5068 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5069 { test "$extra_verbose" = "yes" && cat << \EOF
5072 cat >> confdefs.h <<\EOF
5073 #define HAVE_GNOME 1
5077 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5078 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5081 if test "$with_gtk" != "no";then
5082 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5083 echo "configure:5084: checking for GTK configuration script" >&5
5084 for possible in gtk12-config gtk14-config gtk-config
5086 possible_version=`${possible} --version 2> /dev/null`
5087 if test "x${possible_version}" != "x"; then
5088 GTK_CONFIG="${possible}"
5090 case "${possible_version}" in
5091 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5092 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5097 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5100 echo "$ac_t""${GTK_CONFIG}" 1>&6
5103 if test "${GTK_CONFIG}" != "no"; then
5104 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5105 echo "configure:5106: checking gtk version" >&5
5106 GTK_VERSION=`${GTK_CONFIG} --version`
5107 echo "$ac_t""${GTK_VERSION}" 1>&6
5109 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5110 echo "configure:5111: checking gtk libs" >&5
5111 GTK_LIBS=`${GTK_CONFIG} --libs`
5112 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5113 echo "$ac_t""${GTK_LIBS}" 1>&6
5115 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5116 echo "configure:5117: checking gtk cflags" >&5
5117 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5118 if test "$GCC" = "yes"; then
5119 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5121 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5122 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5125 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5126 echo "configure:5127: checking for main in -lgdk_imlib" >&5
5127 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5129 xe_check_libs=" -lgdk_imlib "
5130 cat > conftest.$ac_ext <<EOF
5131 #line 5132 "configure"
5132 #include "confdefs.h"
5138 if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5140 eval "ac_cv_lib_$ac_lib_var=yes"
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5145 eval "ac_cv_lib_$ac_lib_var=no"
5150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5151 echo "$ac_t""yes" 1>&6
5152 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5154 echo "$ac_t""no" 1>&6
5159 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5160 echo "configure:5161: checking for Imlib_init in -lImlib" >&5
5161 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5163 xe_check_libs=" -lImlib "
5164 cat > conftest.$ac_ext <<EOF
5165 #line 5166 "configure"
5166 #include "confdefs.h"
5167 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5176 if { (eval echo configure:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5178 eval "ac_cv_lib_$ac_lib_var=yes"
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5183 eval "ac_cv_lib_$ac_lib_var=no"
5188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5189 echo "$ac_t""yes" 1>&6
5190 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5192 echo "$ac_t""no" 1>&6
5196 for ac_func in gdk_imlib_init
5198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5199 echo "configure:5200: checking for $ac_func" >&5
5201 cat > conftest.$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5204 /* System header to define __stub macros and hopefully few prototypes,
5205 which can conflict with char $ac_func(); below. */
5207 /* Override any gcc2 internal prototype to avoid an error. */
5208 /* We use char because int might match the return type of a gcc2
5209 builtin and then its argument prototype would still apply. */
5214 /* The GNU C library defines this for functions which it implements
5215 to always fail with ENOSYS. Some functions are actually named
5216 something starting with __ and the normal name is an alias. */
5217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5225 if { (eval echo configure:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5227 eval "ac_cv_func_$ac_func=yes"
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5232 eval "ac_cv_func_$ac_func=no"
5236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5237 echo "$ac_t""yes" 1>&6
5238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5239 { test "$extra_verbose" = "yes" && cat << EOF
5240 Defining $ac_tr_func
5242 cat >> confdefs.h <<EOF
5243 #define $ac_tr_func 1
5248 echo "$ac_t""no" 1>&6
5253 { test "$extra_verbose" = "yes" && cat << \EOF
5256 cat >> confdefs.h <<\EOF
5261 { test "$extra_verbose" = "yes" && cat << \EOF
5264 cat >> confdefs.h <<\EOF
5275 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5276 test "${with_toolbars}" != no && with_toolbars=gtk
5277 test "${with_menubars}" != "no" && with_menubars=gtk
5278 test "${with_dialogs}" != "no" && with_dialogs=gtk
5279 test "${with_widgets}" != "no" && with_widgets=gtk
5281 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5282 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5284 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5285 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5287 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5288 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5290 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5291 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5294 OLD_CFLAGS="${CFLAGS}"
5295 OLD_CPPFLAGS="${CPPFLAGS}"
5296 OLD_LDFLAGS="${LDFLAGS}"
5297 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5298 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5299 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5300 for ac_hdr in glade/glade.h glade.h
5302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5304 echo "configure:5305: checking for $ac_hdr" >&5
5306 cat > conftest.$ac_ext <<EOF
5307 #line 5308 "configure"
5308 #include "confdefs.h"
5311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5312 { (eval echo configure:5313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5314 if test -z "$ac_err"; then
5316 eval "ac_cv_header_$ac_safe=yes"
5319 echo "configure: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5322 eval "ac_cv_header_$ac_safe=no"
5325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5326 echo "$ac_t""yes" 1>&6
5327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5328 { test "$extra_verbose" = "yes" && cat << EOF
5331 cat >> confdefs.h <<EOF
5332 #define $ac_tr_hdr 1
5337 echo "$ac_t""no" 1>&6
5342 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5343 echo "configure:5344: checking for main in -lxml" >&5
5344 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5346 xe_check_libs=" -lxml "
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5357 eval "ac_cv_lib_$ac_lib_var=yes"
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5362 eval "ac_cv_lib_$ac_lib_var=no"
5367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5368 echo "$ac_t""yes" 1>&6
5369 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5371 echo "$ac_t""no" 1>&6
5376 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5377 echo "configure:5378: checking for main in -lglade" >&5
5378 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5380 xe_check_libs=" -lglade "
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5389 if { (eval echo configure:5390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 eval "ac_cv_lib_$ac_lib_var=yes"
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 eval "ac_cv_lib_$ac_lib_var=no"
5401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5402 echo "$ac_t""yes" 1>&6
5403 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5405 echo "$ac_t""no" 1>&6
5410 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5411 echo "configure:5412: checking for main in -lglade-gnome" >&5
5412 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5414 xe_check_libs=" -lglade-gnome "
5415 cat > conftest.$ac_ext <<EOF
5416 #line 5417 "configure"
5417 #include "confdefs.h"
5423 if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5425 eval "ac_cv_lib_$ac_lib_var=yes"
5427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5430 eval "ac_cv_lib_$ac_lib_var=no"
5435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5436 echo "$ac_t""yes" 1>&6
5437 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5439 echo "$ac_t""no" 1>&6
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 #include <glade/glade-xml.h>
5448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5449 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5451 echo "$ac_t""yes" 1>&6
5452 { test "$extra_verbose" = "yes" && cat << \EOF
5453 Defining LIBGLADE_XML_TXTDOMAIN = 1
5455 cat >> confdefs.h <<\EOF
5456 #define LIBGLADE_XML_TXTDOMAIN 1
5462 echo "$ac_t""no" 1>&6
5466 CFLAGS="${OLD_CFLAGS}"
5467 CPPFLAGS="${OLD_CPPFLAGS}"
5468 LDFLAGS="${OLD_LDFLAGS}"
5472 if test "$with_x11" != "no"; then
5473 test "$x_includes $x_libraries" != "NONE NONE" && \
5474 window_system=x11 with_x11=yes
5477 if test "$x_includes $x_libraries" = "NONE NONE" \
5478 -a -n "$OPENWINHOME" \
5479 -a "$OPENWINHOME" != "/usr/openwin" \
5480 -a -d "$OPENWINHOME"; then
5481 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5482 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5483 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5486 if test "$x_includes" = "NONE"; then
5487 for dir in "/usr/X11" "/usr/X11R6"; do
5488 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5492 if test "$x_libraries" = "NONE"; then
5493 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5494 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5498 # If we find X, set shell vars x_includes and x_libraries to the
5499 # paths, otherwise set no_x=yes.
5500 # Uses ac_ vars as temps to allow command line to override cache and checks.
5501 # --without-x overrides everything else, but does not touch the cache.
5502 echo $ac_n "checking for X""... $ac_c" 1>&6
5503 echo "configure:5504: checking for X" >&5
5505 # Check whether --with-x or --without-x was given.
5506 if test "${with_x+set}" = set; then
5511 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5512 if test "x$with_x" = xno; then
5513 # The user explicitly disabled X.
5516 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5517 # Both variables are already set.
5521 # One or both of the vars are not set, and there is no cached value.
5522 ac_x_includes=NO ac_x_libraries=NO
5524 if mkdir conftestdir; then
5526 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5527 cat > Imakefile <<'EOF'
5529 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5531 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5532 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5533 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5534 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5535 for ac_extension in a so sl; do
5536 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5537 test -f $ac_im_libdir/libX11.$ac_extension; then
5538 ac_im_usrlibdir=$ac_im_libdir; break
5541 # Screen out bogus values from the imake configuration. They are
5542 # bogus both because they are the default anyway, and because
5543 # using them would break gcc on systems where it needs fixed includes.
5544 case "$ac_im_incroot" in
5546 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5548 case "$ac_im_usrlibdir" in
5550 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5557 if test "$ac_x_includes" = NO; then
5558 # Guess where to find include files, by looking for this one X11 .h file.
5559 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5561 # First, try using that file with no special directory specified.
5562 cat > conftest.$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5565 #include <$x_direct_test_include>
5567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5568 { (eval echo configure:5569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5570 if test -z "$ac_err"; then
5572 # We can compile using X headers with no special include directory.
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5579 # Look for the header file in a standard set of common directories.
5580 # Check X11 before X11Rn because it is often a symlink to the current release.
5583 /usr/X11R6/include \
5584 /usr/X11R5/include \
5585 /usr/X11R4/include \
5588 /usr/include/X11R6 \
5589 /usr/include/X11R5 \
5590 /usr/include/X11R4 \
5592 /usr/local/X11/include \
5593 /usr/local/X11R6/include \
5594 /usr/local/X11R5/include \
5595 /usr/local/X11R4/include \
5597 /usr/local/include/X11 \
5598 /usr/local/include/X11R6 \
5599 /usr/local/include/X11R5 \
5600 /usr/local/include/X11R4 \
5604 /usr/XFree86/include/X11 \
5607 /usr/local/include \
5608 /usr/unsupported/include \
5609 /usr/athena/include \
5610 /usr/local/x11r5/include \
5611 /usr/lpp/Xamples/include \
5613 /usr/openwin/include \
5614 /usr/openwin/share/include \
5617 if test -r "$ac_dir/$x_direct_test_include"; then
5618 ac_x_includes=$ac_dir
5624 fi # $ac_x_includes = NO
5626 if test "$ac_x_libraries" = NO; then
5627 # Check for the libraries.
5629 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5630 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5632 # See if we find them without any special options.
5633 # Don't add to $LIBS permanently.
5634 ac_save_LIBS="$LIBS"
5635 LIBS="-l$x_direct_test_library $LIBS"
5636 cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5641 ${x_direct_test_function}()
5644 if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5646 LIBS="$ac_save_LIBS"
5647 # We can link X programs with no special library path.
5650 echo "configure: failed program was:" >&5
5651 cat conftest.$ac_ext >&5
5653 LIBS="$ac_save_LIBS"
5654 # First see if replacing the include by lib works.
5655 # Check X11 before X11Rn because it is often a symlink to the current release.
5656 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5667 /usr/local/X11/lib \
5668 /usr/local/X11R6/lib \
5669 /usr/local/X11R5/lib \
5670 /usr/local/X11R4/lib \
5672 /usr/local/lib/X11 \
5673 /usr/local/lib/X11R6 \
5674 /usr/local/lib/X11R5 \
5675 /usr/local/lib/X11R4 \
5679 /usr/XFree86/lib/X11 \
5683 /usr/unsupported/lib \
5685 /usr/local/x11r5/lib \
5686 /usr/lpp/Xamples/lib \
5690 /usr/openwin/share/lib \
5693 for ac_extension in a so sl; do
5694 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5695 ac_x_libraries=$ac_dir
5702 fi # $ac_x_libraries = NO
5704 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5705 # Didn't find X anywhere. Cache the known absence of X.
5706 ac_cv_have_x="have_x=no"
5708 # Record where we found X for the cache.
5709 ac_cv_have_x="have_x=yes \
5710 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5713 eval "$ac_cv_have_x"
5716 if test "$have_x" != yes; then
5717 echo "$ac_t""$have_x" 1>&6
5720 # If each of the values was on the command line, it overrides each guess.
5721 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5722 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5723 # Update the cache value to reflect the command line values.
5724 ac_cv_have_x="have_x=yes \
5725 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5726 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5729 if test "$no_x" = yes; then
5730 # Not all programs may use this symbol, but it does not hurt to define it.
5731 { test "$extra_verbose" = "yes" && cat << \EOF
5732 Defining X_DISPLAY_MISSING
5734 cat >> confdefs.h <<\EOF
5735 #define X_DISPLAY_MISSING 1
5739 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5741 if test -n "$x_includes"; then
5742 X_CFLAGS="$X_CFLAGS -I$x_includes"
5745 # It would also be nice to do this for all -L options, not just this one.
5746 if test -n "$x_libraries"; then
5747 X_LIBS="$X_LIBS -L$x_libraries"
5748 # For Solaris; some versions of Sun CC require a space after -R and
5749 # others require no space. Words are not sufficient . . . .
5750 case "`(uname -sr) 2>/dev/null`" in
5752 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5753 echo "configure:5754: checking whether -R must be followed by a space" >&5
5754 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5763 if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5773 if test $ac_R_nospace = yes; then
5774 echo "$ac_t""no" 1>&6
5775 X_LIBS="$X_LIBS -R$x_libraries"
5777 LIBS="$ac_xsave_LIBS -R $x_libraries"
5778 cat > conftest.$ac_ext <<EOF
5779 #line 5780 "configure"
5780 #include "confdefs.h"
5786 if { (eval echo configure:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5796 if test $ac_R_space = yes; then
5797 echo "$ac_t""yes" 1>&6
5798 X_LIBS="$X_LIBS -R $x_libraries"
5800 echo "$ac_t""neither works" 1>&6
5803 LIBS="$ac_xsave_LIBS"
5807 # Check for system-dependent libraries X programs must link with.
5808 # Do this before checking for the system-independent R6 libraries
5809 # (-lICE), since we may need -lsocket or whatever for X linking.
5811 if test "$ISC" = yes; then
5812 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5814 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5815 # libraries were built with DECnet support. And karl@cs.umb.edu says
5816 # the Alpha needs dnet_stub (dnet does not exist).
5817 if test "$with_dnet" = "no" ; then
5818 ac_cv_lib_dnet_dnet_ntoa=no
5821 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5822 echo "configure:5823: checking for dnet_ntoa in -ldnet" >&5
5823 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5825 xe_check_libs=" -ldnet "
5826 cat > conftest.$ac_ext <<EOF
5827 #line 5828 "configure"
5828 #include "confdefs.h"
5829 /* Override any gcc2 internal prototype to avoid an error. */
5830 /* We use char because int might match the return type of a gcc2
5831 builtin and then its argument prototype would still apply. */
5838 if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5840 eval "ac_cv_lib_$ac_lib_var=yes"
5842 echo "configure: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5845 eval "ac_cv_lib_$ac_lib_var=no"
5850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5851 echo "$ac_t""yes" 1>&6
5852 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5854 echo "$ac_t""no" 1>&6
5859 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5861 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5862 echo "configure:5863: checking for dnet_ntoa in -ldnet_stub" >&5
5863 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5865 xe_check_libs=" -ldnet_stub "
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5869 /* Override any gcc2 internal prototype to avoid an error. */
5870 /* We use char because int might match the return type of a gcc2
5871 builtin and then its argument prototype would still apply. */
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 eval "ac_cv_lib_$ac_lib_var=yes"
5882 echo "configure: failed program was:" >&5
5883 cat conftest.$ac_ext >&5
5885 eval "ac_cv_lib_$ac_lib_var=no"
5890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5891 echo "$ac_t""yes" 1>&6
5892 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5894 echo "$ac_t""no" 1>&6
5900 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5901 # to get the SysV transport functions.
5902 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5904 # The nsl library prevents programs from opening the X display
5905 # on Irix 5.2, according to dickey@clark.net.
5906 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5907 echo "configure:5908: checking for gethostbyname" >&5
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 /* System header to define __stub macros and hopefully few prototypes,
5913 which can conflict with char gethostbyname(); below. */
5915 /* Override any gcc2 internal prototype to avoid an error. */
5916 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */
5918 char gethostbyname();
5922 /* The GNU C library defines this for functions which it implements
5923 to always fail with ENOSYS. Some functions are actually named
5924 something starting with __ and the normal name is an alias. */
5925 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5933 if { (eval echo configure:5934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5935 eval "ac_cv_func_gethostbyname=yes"
5937 echo "configure: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5940 eval "ac_cv_func_gethostbyname=no"
5944 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5945 echo "$ac_t""yes" 1>&6
5948 echo "$ac_t""no" 1>&6
5951 if test $ac_cv_func_gethostbyname = no; then
5953 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5954 echo "configure:5955: checking for gethostbyname in -lnsl" >&5
5955 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5957 xe_check_libs=" -lnsl "
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5961 /* Override any gcc2 internal prototype to avoid an error. */
5962 /* We use char because int might match the return type of a gcc2
5963 builtin and then its argument prototype would still apply. */
5964 char gethostbyname();
5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5972 eval "ac_cv_lib_$ac_lib_var=yes"
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5977 eval "ac_cv_lib_$ac_lib_var=no"
5982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5983 echo "$ac_t""yes" 1>&6
5984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5986 echo "$ac_t""no" 1>&6
5992 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5993 # socket/setsockopt and other routines are undefined under SCO ODT
5994 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5995 # on later versions), says simon@lia.di.epfl.ch: it contains
5996 # gethostby* variants that don't use the nameserver (or something).
5997 # -lsocket must be given before -lnsl if both are needed.
5998 # We assume that if connect needs -lnsl, so does gethostbyname.
5999 echo $ac_n "checking for connect""... $ac_c" 1>&6
6000 echo "configure:6001: checking for connect" >&5
6002 cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6005 /* System header to define __stub macros and hopefully few prototypes,
6006 which can conflict with char connect(); below. */
6008 /* Override any gcc2 internal prototype to avoid an error. */
6009 /* We use char because int might match the return type of a gcc2
6010 builtin and then its argument prototype would still apply. */
6015 /* The GNU C library defines this for functions which it implements
6016 to always fail with ENOSYS. Some functions are actually named
6017 something starting with __ and the normal name is an alias. */
6018 #if defined (__stub_connect) || defined (__stub___connect)
6026 if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6028 eval "ac_cv_func_connect=yes"
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6033 eval "ac_cv_func_connect=no"
6037 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6038 echo "$ac_t""yes" 1>&6
6041 echo "$ac_t""no" 1>&6
6044 if test $ac_cv_func_connect = no; then
6046 xe_msg_checking="for connect in -lsocket"
6047 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6048 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6049 echo "configure:6050: checking "$xe_msg_checking"" >&5
6050 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6052 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6053 cat > conftest.$ac_ext <<EOF
6054 #line 6055 "configure"
6055 #include "confdefs.h"
6056 /* Override any gcc2 internal prototype to avoid an error. */
6057 /* We use char because int might match the return type of a gcc2
6058 builtin and then its argument prototype would still apply. */
6065 if { (eval echo configure:6066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6067 eval "ac_cv_lib_$ac_lib_var=yes"
6069 echo "configure: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6072 eval "ac_cv_lib_$ac_lib_var=no"
6077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6078 echo "$ac_t""yes" 1>&6
6079 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6081 echo "$ac_t""no" 1>&6
6087 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6088 echo $ac_n "checking for remove""... $ac_c" 1>&6
6089 echo "configure:6090: checking for remove" >&5
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 /* System header to define __stub macros and hopefully few prototypes,
6095 which can conflict with char remove(); below. */
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6104 /* The GNU C library defines this for functions which it implements
6105 to always fail with ENOSYS. Some functions are actually named
6106 something starting with __ and the normal name is an alias. */
6107 #if defined (__stub_remove) || defined (__stub___remove)
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6117 eval "ac_cv_func_remove=yes"
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6122 eval "ac_cv_func_remove=no"
6126 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6130 echo "$ac_t""no" 1>&6
6133 if test $ac_cv_func_remove = no; then
6135 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6136 echo "configure:6137: checking for remove in -lposix" >&5
6137 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6139 xe_check_libs=" -lposix "
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 eval "ac_cv_lib_$ac_lib_var=yes"
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6159 eval "ac_cv_lib_$ac_lib_var=no"
6164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6165 echo "$ac_t""yes" 1>&6
6166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6168 echo "$ac_t""no" 1>&6
6174 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6175 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6176 echo "configure:6177: checking for shmat" >&5
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 /* System header to define __stub macros and hopefully few prototypes,
6182 which can conflict with char shmat(); below. */
6184 /* Override any gcc2 internal prototype to avoid an error. */
6185 /* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6191 /* The GNU C library defines this for functions which it implements
6192 to always fail with ENOSYS. Some functions are actually named
6193 something starting with __ and the normal name is an alias. */
6194 #if defined (__stub_shmat) || defined (__stub___shmat)
6202 if { (eval echo configure:6203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6204 eval "ac_cv_func_shmat=yes"
6206 echo "configure: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6209 eval "ac_cv_func_shmat=no"
6213 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6214 echo "$ac_t""yes" 1>&6
6217 echo "$ac_t""no" 1>&6
6220 if test $ac_cv_func_shmat = no; then
6222 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6223 echo "configure:6224: checking for shmat in -lipc" >&5
6224 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6226 xe_check_libs=" -lipc "
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6239 if { (eval echo configure:6240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6241 eval "ac_cv_lib_$ac_lib_var=yes"
6243 echo "configure: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6246 eval "ac_cv_lib_$ac_lib_var=no"
6251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6252 echo "$ac_t""yes" 1>&6
6253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6255 echo "$ac_t""no" 1>&6
6262 # Check for libraries that X11R6 Xt/Xaw programs need.
6263 ac_save_LDFLAGS="$LDFLAGS"
6264 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6265 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6266 # check for ICE first), but we must link in the order -lSM -lICE or
6267 # we get undefined symbols. So assume we have SM if we have ICE.
6268 # These have to be linked with before -lX11, unlike the other
6269 # libraries we check for below, so use a different variable.
6270 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6272 xe_msg_checking="for IceConnectionNumber in -lICE"
6273 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6274 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6275 echo "configure:6276: checking "$xe_msg_checking"" >&5
6276 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6278 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 /* Override any gcc2 internal prototype to avoid an error. */
6283 /* We use char because int might match the return type of a gcc2
6284 builtin and then its argument prototype would still apply. */
6285 char IceConnectionNumber();
6288 IceConnectionNumber()
6291 if { (eval echo configure:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6293 eval "ac_cv_lib_$ac_lib_var=yes"
6295 echo "configure: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6298 eval "ac_cv_lib_$ac_lib_var=no"
6303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6304 echo "$ac_t""yes" 1>&6
6305 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6307 echo "$ac_t""no" 1>&6
6311 LDFLAGS="$ac_save_LDFLAGS"
6314 # Autoconf claims to find X library and include dirs for us.
6315 if test "$no_x" = "yes"
6316 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6317 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6322 if test "$with_x11" = "yes"; then
6323 { test "$extra_verbose" = "yes" && cat << \EOF
6324 Defining HAVE_X_WINDOWS
6326 cat >> confdefs.h <<\EOF
6327 #define HAVE_X_WINDOWS 1
6331 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6332 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6334 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6335 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6336 if test -d "$lib_dir" -a -d "$inc_dir"; then
6337 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6338 x_libraries="$lib_dir $x_libraries"
6339 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6341 case "$x_includes" in "$inc_dir"* ) ;; *)
6342 x_includes="$inc_dir $x_includes"
6343 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6348 for rel in "X11R6" "X11R5" "X11R4"; do
6349 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6350 if test -d "$lib_dir" -a -d "$inc_dir"; then
6351 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6352 x_libraries="$x_libraries $lib_dir"
6353 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6355 case "$x_includes" in "$inc_dir"* ) ;; *)
6356 x_includes="$x_includes $inc_dir"
6357 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6363 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 ;;
6366 ld_switch_x_site="$X_LIBS"
6369 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6370 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6371 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6373 runpath="" runpath_dirs=""
6374 if test -n "$LD_RUN_PATH"; then
6375 runpath="$LD_RUN_PATH"
6376 elif test "$GCC" = "yes"; then
6377 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6378 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6379 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6380 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6381 case "$arg" in P,* | -L* | -R* )
6382 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6384 xe_runpath_dir="$dir"
6385 test "$xe_runpath_dir" != "/lib" -a \
6386 "$xe_runpath_dir" != "/usr/lib" -a \
6387 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6388 eval "$xe_add_unique_runpath_dir"
6393 ld_switch_run="$ld_switch_run_save"
6396 for arg in $ld_switch_site $ld_switch_x_site; do
6397 case "$arg" in -L*) {
6398 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6399 test "$xe_runpath_dir" != "/lib" -a \
6400 "$xe_runpath_dir" != "/usr/lib" -a \
6401 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6402 eval "$xe_add_unique_runpath_dir"
6405 if test "$opsys $need_motif" = "sol2 yes"; then
6406 xe_runpath_dir="/opt/SUNWdt/lib";
6407 eval "$xe_add_unique_runpath_dir";
6410 if test -n "$runpath"; then
6411 ld_switch_run="${dash_r}${runpath}"
6413 if test "$GCC" = "yes"; then
6414 set x $ld_switch_run; shift; ld_switch_run=""
6415 while test -n "$1"; do
6417 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6418 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6420 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6425 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6430 if test "$extra_verbose" = "yes"; then
6431 echo; echo "X11 compilation variables:"
6432 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6437 if test "$x_includes" != NONE; then
6438 for i in $x_includes; do
6439 if test -d "$i/bitmaps"; then
6440 bitmapdirs="$i/bitmaps:$bitmapdirs"
6442 if test -d "$i/X11/bitmaps"; then
6443 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6446 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6448 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6449 Defining BITMAPDIR = "$bitmapdirs"
6451 cat >> confdefs.h <<EOF
6452 #define BITMAPDIR "$bitmapdirs"
6457 echo "checking for X defines extracted by xmkmf" 1>&6
6458 echo "configure:6459: checking for X defines extracted by xmkmf" >&5
6460 if mkdir conftestdir; then
6462 cat > Imakefile <<'EOF'
6464 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6466 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6467 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6468 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6472 for word in $xmkmf_defines; do
6476 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6478 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6481 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6482 if test "$val" = "1"
6483 then { test "$extra_verbose" = "yes" && cat << EOF
6486 cat >> confdefs.h <<EOF
6491 else { test "$extra_verbose" = "yes" && cat << EOF
6492 Defining $sym = $val
6494 cat >> confdefs.h <<EOF
6505 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6506 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6507 echo "configure:6508: checking for X11/Intrinsic.h" >&5
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 #include <X11/Intrinsic.h>
6514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6515 { (eval echo configure:6516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6517 if test -z "$ac_err"; then
6519 eval "ac_cv_header_$ac_safe=yes"
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6525 eval "ac_cv_header_$ac_safe=no"
6528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6529 echo "$ac_t""yes" 1>&6
6532 echo "$ac_t""no" 1>&6
6533 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6538 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6539 echo "configure:6540: checking for XOpenDisplay in -lX11" >&5
6540 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6542 xe_check_libs=" -lX11 "
6543 cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 /* Override any gcc2 internal prototype to avoid an error. */
6547 /* We use char because int might match the return type of a gcc2
6548 builtin and then its argument prototype would still apply. */
6549 char XOpenDisplay();
6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6557 eval "ac_cv_lib_$ac_lib_var=yes"
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 eval "ac_cv_lib_$ac_lib_var=no"
6567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6568 echo "$ac_t""yes" 1>&6
6571 echo "$ac_t""no" 1>&6
6575 if test "$have_lib_x11" != "yes"; then
6577 xe_msg_checking="for XGetFontProperty in -lX11"
6578 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6579 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6580 echo "configure:6581: checking "$xe_msg_checking"" >&5
6581 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6583 xe_check_libs=" -lX11 -b i486-linuxaout"
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* Override any gcc2 internal prototype to avoid an error. */
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6590 char XGetFontProperty();
6596 if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6598 eval "ac_cv_lib_$ac_lib_var=yes"
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 eval "ac_cv_lib_$ac_lib_var=no"
6608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6609 echo "$ac_t""yes" 1>&6
6610 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6612 echo "$ac_t""no" 1>&6
6613 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6619 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6622 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6623 echo "configure:6624: checking for XShapeSelectInput in -lXext" >&5
6624 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6626 xe_check_libs=" -lXext "
6627 cat > conftest.$ac_ext <<EOF
6628 #line 6629 "configure"
6629 #include "confdefs.h"
6630 /* Override any gcc2 internal prototype to avoid an error. */
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6633 char XShapeSelectInput();
6639 if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6641 eval "ac_cv_lib_$ac_lib_var=yes"
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6646 eval "ac_cv_lib_$ac_lib_var=no"
6651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6652 echo "$ac_t""yes" 1>&6
6653 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6655 echo "$ac_t""no" 1>&6
6661 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6662 echo "configure:6663: checking for XtOpenDisplay in -lXt" >&5
6663 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6665 xe_check_libs=" -lXt "
6666 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6672 char XtOpenDisplay();
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6680 eval "ac_cv_lib_$ac_lib_var=yes"
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 eval "ac_cv_lib_$ac_lib_var=no"
6690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6691 echo "$ac_t""yes" 1>&6
6692 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6694 echo "$ac_t""no" 1>&6
6695 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6700 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6701 echo "configure:6702: checking the version of X11 being used" >&5
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6705 #include <X11/Intrinsic.h>
6706 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6710 ./conftest foobar; x11_release=$?
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6719 echo "$ac_t""R${x11_release}" 1>&6
6720 { test "$extra_verbose" = "yes" && cat << EOF
6721 Defining THIS_IS_X11R${x11_release}
6723 cat >> confdefs.h <<EOF
6724 #define THIS_IS_X11R${x11_release} 1
6729 if test "${x11_release}" = "4"; then
6730 case "$with_widgets" in
6731 "" | "no") with_widgets=no ;;
6732 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6736 for ac_func in XConvertCase
6738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6739 echo "configure:6740: checking for $ac_func" >&5
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 /* System header to define __stub macros and hopefully few prototypes,
6745 which can conflict with char $ac_func(); below. */
6747 /* Override any gcc2 internal prototype to avoid an error. */
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6754 /* The GNU C library defines this for functions which it implements
6755 to always fail with ENOSYS. Some functions are actually named
6756 something starting with __ and the normal name is an alias. */
6757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6767 eval "ac_cv_func_$ac_func=yes"
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 eval "ac_cv_func_$ac_func=no"
6776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6777 echo "$ac_t""yes" 1>&6
6778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6779 { test "$extra_verbose" = "yes" && cat << EOF
6780 Defining $ac_tr_func
6782 cat >> confdefs.h <<EOF
6783 #define $ac_tr_func 1
6788 echo "$ac_t""no" 1>&6
6793 for ac_hdr in X11/Xlocale.h
6795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6797 echo "configure:6798: checking for $ac_hdr" >&5
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6805 { (eval echo configure:6806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6807 if test -z "$ac_err"; then
6809 eval "ac_cv_header_$ac_safe=yes"
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6815 eval "ac_cv_header_$ac_safe=no"
6818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6819 echo "$ac_t""yes" 1>&6
6820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6821 { test "$extra_verbose" = "yes" && cat << EOF
6824 cat >> confdefs.h <<EOF
6825 #define $ac_tr_hdr 1
6830 echo "$ac_t""no" 1>&6
6835 for ac_func in XRegisterIMInstantiateCallback
6837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6838 echo "configure:6839: checking for $ac_func" >&5
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6843 /* System header to define __stub macros and hopefully few prototypes,
6844 which can conflict with char $ac_func(); below. */
6846 /* Override any gcc2 internal prototype to avoid an error. */
6847 /* We use char because int might match the return type of a gcc2
6848 builtin and then its argument prototype would still apply. */
6853 /* The GNU C library defines this for functions which it implements
6854 to always fail with ENOSYS. Some functions are actually named
6855 something starting with __ and the normal name is an alias. */
6856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6866 eval "ac_cv_func_$ac_func=yes"
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6871 eval "ac_cv_func_$ac_func=no"
6875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6876 echo "$ac_t""yes" 1>&6
6877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6878 { test "$extra_verbose" = "yes" && cat << EOF
6879 Defining $ac_tr_func
6881 cat >> confdefs.h <<EOF
6882 #define $ac_tr_func 1
6887 echo "$ac_t""no" 1>&6
6891 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6892 echo "configure:6893: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6897 #define NeedFunctionPrototypes 1
6898 #include <X11/Xlib.h>
6899 extern Bool XRegisterIMInstantiateCallback(
6900 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6906 if { (eval echo configure:6907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6908 echo "$ac_t""yes" 1>&6
6910 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6913 echo "$ac_t""no" 1>&6
6914 { test "$extra_verbose" = "yes" && cat << \EOF
6915 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6917 cat >> confdefs.h <<\EOF
6918 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6925 test -z "$with_xmu" && {
6926 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6927 echo "configure:6928: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6928 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6930 xe_check_libs=" -lXmu "
6931 cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6934 /* Override any gcc2 internal prototype to avoid an error. */
6935 /* We use char because int might match the return type of a gcc2
6936 builtin and then its argument prototype would still apply. */
6937 char XmuReadBitmapDataFromFile();
6940 XmuReadBitmapDataFromFile()
6943 if { (eval echo configure:6944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6945 eval "ac_cv_lib_$ac_lib_var=yes"
6947 echo "configure: failed program was:" >&5
6948 cat conftest.$ac_ext >&5
6950 eval "ac_cv_lib_$ac_lib_var=no"
6955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6956 echo "$ac_t""yes" 1>&6
6959 echo "$ac_t""no" 1>&6
6964 if test "$with_xmu" = "no"; then
6965 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6966 echo " xemacs will be linked with \"xmu.o\""
6969 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6970 { test "$extra_verbose" = "yes" && cat << \EOF
6973 cat >> confdefs.h <<\EOF
6981 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6982 echo "configure:6983: checking for main in -lXbsd" >&5
6983 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6985 xe_check_libs=" -lXbsd "
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6996 eval "ac_cv_lib_$ac_lib_var=yes"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 eval "ac_cv_lib_$ac_lib_var=no"
7006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7007 echo "$ac_t""yes" 1>&6
7008 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
7010 echo "$ac_t""no" 1>&6
7015 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
7016 if test "$GCC" = "yes"; then
7017 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
7018 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
7021 "xlc" ) CC="xlc_r" ;;
7022 "xlC" ) CC="xlC_r" ;;
7029 if test "$with_msw" != "no"; then
7030 echo "checking for MS-Windows" 1>&6
7031 echo "configure:7032: checking for MS-Windows" >&5
7033 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7034 echo "configure:7035: checking for main in -lgdi32" >&5
7035 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7037 xe_check_libs=" -lgdi32 "
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7046 if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7048 eval "ac_cv_lib_$ac_lib_var=yes"
7050 echo "configure: failed program was:" >&5
7051 cat conftest.$ac_ext >&5
7053 eval "ac_cv_lib_$ac_lib_var=no"
7058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7059 echo "$ac_t""yes" 1>&6
7062 echo "$ac_t""no" 1>&6
7066 if test "$with_msw" = "yes"; then
7067 { test "$extra_verbose" = "yes" && cat << \EOF
7068 Defining HAVE_MS_WINDOWS
7070 cat >> confdefs.h <<\EOF
7071 #define HAVE_MS_WINDOWS 1
7076 if test "$with_netinstall" = "yes"; then
7077 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7078 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7079 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7082 install_pp="$blddir/lib-src/installexe.sh"
7083 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
7084 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7085 if test "$window_system" != x11; then
7087 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7088 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7089 echo " xemacs will be linked with \"scrollbar-msw.o\""
7091 test "$with_menubars" != "no" && with_menubars=msw \
7092 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7093 echo " xemacs will be linked with \"menubar-msw.o\""
7095 test "$with_toolbars" != "no" && with_toolbars=msw \
7096 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7097 echo " xemacs will be linked with \"toolbar-msw.o\""
7099 test "$with_dialogs" != "no" && with_dialogs=msw \
7100 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7101 echo " xemacs will be linked with \"dialog-msw.o\""
7103 test "$with_widgets" != "no" && with_widgets=msw
7105 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7106 echo " xemacs will be linked with \"scrollbar-msw.o\""
7108 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7109 echo " xemacs will be linked with \"menubar-msw.o\""
7111 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7112 echo " xemacs will be linked with \"toolbar-msw.o\""
7114 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7115 echo " xemacs will be linked with \"dialog-msw.o\""
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7122 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7126 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7127 Defining HAVE_MSG_SELECT
7129 cat >> confdefs.h <<\EOF
7130 #define HAVE_MSG_SELECT 1
7136 echo "configure: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7140 with_file_coding=yes
7141 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
7142 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\""
7149 test -z "$window_system" && window_system="none"
7151 if test "$window_system" = "none"; then
7152 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7154 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7155 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7157 eval "with_${feature}=no"
7160 test -z "$with_toolbars" && with_toolbars=yes
7163 if test "$with_msw" != "yes"; then
7164 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7166 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7167 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7169 eval "with_${feature}=no"
7175 if test "$with_x11" != "yes"; then
7176 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7178 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7179 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7181 eval "with_${feature}=no"
7185 if test "$with_x11" = "yes"; then
7186 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7187 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7188 echo "configure:7189: checking for X11/extensions/shape.h" >&5
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7193 #include <X11/extensions/shape.h>
7195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7196 { (eval echo configure:7197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7198 if test -z "$ac_err"; then
7200 eval "ac_cv_header_$ac_safe=yes"
7203 echo "configure: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7206 eval "ac_cv_header_$ac_safe=no"
7209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7210 echo "$ac_t""yes" 1>&6
7212 { test "$extra_verbose" = "yes" && cat << \EOF
7213 Defining HAVE_BALLOON_HELP
7215 cat >> confdefs.h <<\EOF
7216 #define HAVE_BALLOON_HELP 1
7220 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7221 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7224 echo "$ac_t""no" 1>&6
7231 case "$window_system" in
7232 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7233 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7236 test "$with_gnome" = "yes" && echo " Using GNOME."
7237 test "$with_gnome" = "no" && echo " Using GTK."
7239 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7242 case "$x_libraries" in *X11R4* )
7243 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7244 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7247 echo "checking for WM_COMMAND option" 1>&6
7248 echo "configure:7249: checking for WM_COMMAND option" >&5;
7249 if test "$with_wmcommand" != "no"; then
7250 { test "$extra_verbose" = "yes" && cat << \EOF
7251 Defining HAVE_WMCOMMAND
7253 cat >> confdefs.h <<\EOF
7254 #define HAVE_WMCOMMAND 1
7260 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7261 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7262 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7263 echo "configure:7264: checking for X11/Xauth.h" >&5
7265 cat > conftest.$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7268 #include <X11/Xauth.h>
7270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7271 { (eval echo configure:7272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7273 if test -z "$ac_err"; then
7275 eval "ac_cv_header_$ac_safe=yes"
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7281 eval "ac_cv_header_$ac_safe=no"
7284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7288 echo "$ac_t""no" 1>&6
7292 test -z "$with_xauth" && {
7293 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7294 echo "configure:7295: checking for XauGetAuthByAddr in -lXau" >&5
7295 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7297 xe_check_libs=" -lXau "
7298 cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 /* Override any gcc2 internal prototype to avoid an error. */
7302 /* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7304 char XauGetAuthByAddr();
7310 if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7312 eval "ac_cv_lib_$ac_lib_var=yes"
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7317 eval "ac_cv_lib_$ac_lib_var=no"
7322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7323 echo "$ac_t""yes" 1>&6
7326 echo "$ac_t""no" 1>&6
7331 test -z "$with_xauth" && with_xauth=yes
7332 if test "$with_xauth" = "yes"; then
7333 { test "$extra_verbose" = "yes" && cat << \EOF
7336 cat >> confdefs.h <<\EOF
7337 #define HAVE_XAUTH 1
7343 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
7351 if test "$with_tooltalk" != "no" ; then
7352 for dir in "" "Tt/" "desktop/" ; do
7353 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7354 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7355 echo "configure:7356: checking for ${dir}tt_c.h" >&5
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 #include <${dir}tt_c.h>
7362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7363 { (eval echo configure:7364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7365 if test -z "$ac_err"; then
7367 eval "ac_cv_header_$ac_safe=yes"
7370 echo "configure: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7373 eval "ac_cv_header_$ac_safe=no"
7376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7377 echo "$ac_t""yes" 1>&6
7378 tt_c_h_file="${dir}tt_c.h"; break
7380 echo "$ac_t""no" 1>&6
7384 if test -z "$tt_c_h_file"; then
7385 if test "$with_tooltalk" = "yes"; then
7386 (echo "$progname: Usage error:"
7387 echo " " "Unable to find required tooltalk header files."
7388 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7393 if test "$with_tooltalk" != "no" ; then
7394 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7396 xe_msg_checking="for tt_message_create in -ltt"
7397 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7398 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7399 echo "configure:7400: checking "$xe_msg_checking"" >&5
7400 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7402 xe_check_libs=" -ltt $extra_libs"
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* Override any gcc2 internal prototype to avoid an error. */
7407 /* We use char because int might match the return type of a gcc2
7408 builtin and then its argument prototype would still apply. */
7409 char tt_message_create();
7415 if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7417 eval "ac_cv_lib_$ac_lib_var=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7422 eval "ac_cv_lib_$ac_lib_var=no"
7427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7428 echo "$ac_t""yes" 1>&6
7429 tt_libs="-ltt $extra_libs"; break
7431 echo "$ac_t""no" 1>&6
7437 if test -z "$tt_libs"; then
7438 if test "$with_tooltalk" = "yes"; then
7439 (echo "$progname: Usage error:"
7440 echo " " "Unable to find required tooltalk libraries."
7441 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7446 test -z "$with_tooltalk" && with_tooltalk=yes
7447 if test "$with_tooltalk" = "yes"; then
7448 { test "$extra_verbose" = "yes" && cat << \EOF
7451 cat >> confdefs.h <<\EOF
7456 { test "$extra_verbose" = "yes" && cat << EOF
7457 Defining TT_C_H_FILE = "$tt_c_h_file"
7459 cat >> confdefs.h <<EOF
7460 #define TT_C_H_FILE "$tt_c_h_file"
7464 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7465 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7466 echo " xemacs will be linked with \"tooltalk.o\""
7470 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7471 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7472 echo "configure:7473: checking for Dt/Dt.h" >&5
7474 cat > conftest.$ac_ext <<EOF
7475 #line 7476 "configure"
7476 #include "confdefs.h"
7479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7480 { (eval echo configure:7481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7482 if test -z "$ac_err"; then
7484 eval "ac_cv_header_$ac_safe=yes"
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7490 eval "ac_cv_header_$ac_safe=no"
7493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7497 echo "$ac_t""no" 1>&6
7501 test -z "$with_cde" && {
7502 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7503 echo "configure:7504: checking for DtDndDragStart in -lDtSvc" >&5
7504 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7506 xe_check_libs=" -lDtSvc "
7507 cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7513 char DtDndDragStart();
7519 if { (eval echo configure:7520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7521 eval "ac_cv_lib_$ac_lib_var=yes"
7523 echo "configure: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7526 eval "ac_cv_lib_$ac_lib_var=no"
7531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7532 echo "$ac_t""yes" 1>&6
7535 echo "$ac_t""no" 1>&6
7540 test -z "$with_cde" && with_cde=yes
7541 if test "$with_dragndrop" = no; then
7542 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7545 if test "$with_cde" = "yes" ; then
7546 { test "$extra_verbose" = "yes" && cat << \EOF
7549 cat >> confdefs.h <<\EOF
7554 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7555 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7556 with_tooltalk=yes # CDE requires Tooltalk
7557 need_motif=yes # CDE requires Motif
7560 test "$window_system" != "x11" && with_offix=no
7561 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7562 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7565 if test "$with_dragndrop" = no; then
7566 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7569 if test "$with_cde" = yes; then
7570 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7573 test -z "$with_offix" && with_offix=no
7574 if test "$with_offix" = "yes"; then
7575 { test "$extra_verbose" = "yes" && cat << \EOF
7576 Defining HAVE_OFFIX_DND
7578 cat >> confdefs.h <<\EOF
7579 #define HAVE_OFFIX_DND 1
7583 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7584 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7586 if test "$with_gtk" = "yes"; then
7587 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7590 if test "$with_dragndrop" != "no" ; then
7591 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7592 echo "configure:7593: checking if drag and drop API is needed" >&5
7593 if test -n "$dragndrop_proto" ; then
7595 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7596 { test "$extra_verbose" = "yes" && cat << \EOF
7597 Defining HAVE_DRAGNDROP
7599 cat >> confdefs.h <<\EOF
7600 #define HAVE_DRAGNDROP 1
7604 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7607 echo "$ac_t""no" 1>&6
7611 echo "checking for LDAP" 1>&6
7612 echo "configure:7613: checking for LDAP" >&5
7613 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7614 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7615 echo "configure:7616: checking for ldap.h" >&5
7617 cat > conftest.$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7623 { (eval echo configure:7624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7625 if test -z "$ac_err"; then
7627 eval "ac_cv_header_$ac_safe=yes"
7630 echo "configure: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7633 eval "ac_cv_header_$ac_safe=no"
7636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7637 echo "$ac_t""yes" 1>&6
7640 echo "$ac_t""no" 1>&6
7644 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7645 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7646 echo "configure:7647: checking for lber.h" >&5
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7654 { (eval echo configure:7655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7656 if test -z "$ac_err"; then
7658 eval "ac_cv_header_$ac_safe=yes"
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 eval "ac_cv_header_$ac_safe=no"
7667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7671 echo "$ac_t""no" 1>&6
7675 if test "$with_ldap" != "no"; then
7677 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7678 echo "configure:7679: checking for ldap_search in -lldap" >&5
7679 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7681 xe_check_libs=" -lldap "
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7685 /* Override any gcc2 internal prototype to avoid an error. */
7686 /* We use char because int might match the return type of a gcc2
7687 builtin and then its argument prototype would still apply. */
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7696 eval "ac_cv_lib_$ac_lib_var=yes"
7698 echo "configure: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7701 eval "ac_cv_lib_$ac_lib_var=no"
7706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7707 echo "$ac_t""yes" 1>&6
7708 with_ldap_nolber=yes
7710 echo "$ac_t""no" 1>&6
7715 test "$with_ldap_nolber" = "no" && {
7716 xe_msg_checking="for ldap_open in -lldap"
7717 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7718 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7719 echo "configure:7720: checking "$xe_msg_checking"" >&5
7720 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7722 xe_check_libs=" -lldap -llber"
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* Override any gcc2 internal prototype to avoid an error. */
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7735 if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7737 eval "ac_cv_lib_$ac_lib_var=yes"
7739 echo "configure: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7742 eval "ac_cv_lib_$ac_lib_var=no"
7747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7748 echo "$ac_t""yes" 1>&6
7751 echo "$ac_t""no" 1>&6
7756 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7757 xe_msg_checking="for ldap_open in -lldap"
7758 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7759 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7760 echo "configure:7761: checking "$xe_msg_checking"" >&5
7761 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7763 xe_check_libs=" -lldap -llber -lkrb"
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7776 if { (eval echo configure:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7778 eval "ac_cv_lib_$ac_lib_var=yes"
7780 echo "configure: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7783 eval "ac_cv_lib_$ac_lib_var=no"
7788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7789 echo "$ac_t""yes" 1>&6
7792 echo "$ac_t""no" 1>&6
7797 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7798 xe_msg_checking="for ldap_open in -lldap"
7799 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7800 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7801 echo "configure:7802: checking "$xe_msg_checking"" >&5
7802 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7804 xe_check_libs=" -lldap -llber -lkrb -ldes"
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7808 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7817 if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7819 eval "ac_cv_lib_$ac_lib_var=yes"
7821 echo "configure: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7824 eval "ac_cv_lib_$ac_lib_var=no"
7829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7830 echo "$ac_t""yes" 1>&6
7831 with_ldap_krbdes=yes
7833 echo "$ac_t""no" 1>&6
7838 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
7840 if test "$with_ldap" = "yes"; then
7841 { test "$extra_verbose" = "yes" && cat << \EOF
7844 cat >> confdefs.h <<\EOF
7849 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7850 echo " xemacs will be linked with \"eldap.o\""
7852 if test "$with_ldap_nolber" = "yes" ; then
7853 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7855 if test "$with_ldap_krb" = "yes" ; then
7856 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7858 if test "$with_ldap_krbdes" = "yes" ; then
7859 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7860 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7862 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7863 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7865 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7868 echo "configure:7869: checking for $ac_func" >&5
7870 cat > conftest.$ac_ext <<EOF
7871 #line 7872 "configure"
7872 #include "confdefs.h"
7873 /* System header to define __stub macros and hopefully few prototypes,
7874 which can conflict with char $ac_func(); below. */
7876 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7894 if { (eval echo configure:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7896 eval "ac_cv_func_$ac_func=yes"
7898 echo "configure: failed program was:" >&5
7899 cat conftest.$ac_ext >&5
7901 eval "ac_cv_func_$ac_func=no"
7905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7906 echo "$ac_t""yes" 1>&6
7907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7908 { test "$extra_verbose" = "yes" && cat << EOF
7909 Defining $ac_tr_func
7911 cat >> confdefs.h <<EOF
7912 #define $ac_tr_func 1
7917 echo "$ac_t""no" 1>&6
7923 if test "$with_postgresql" != "no"; then
7924 echo "checking for PostgreSQL" 1>&6
7925 echo "configure:7926: checking for PostgreSQL" >&5
7927 for header_dir in "" "pgsql/" "postgresql/"; do
7928 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7929 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7930 echo "configure:7931: checking for ${header_dir}libpq-fe.h" >&5
7932 cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935 #include <${header_dir}libpq-fe.h>
7937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7938 { (eval echo configure:7939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7940 if test -z "$ac_err"; then
7942 eval "ac_cv_header_$ac_safe=yes"
7945 echo "configure: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7948 eval "ac_cv_header_$ac_safe=no"
7951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7952 echo "$ac_t""yes" 1>&6
7953 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7955 echo "$ac_t""no" 1>&6
7960 test -n "$libpq_fe_h_file" && {
7961 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7962 echo "configure:7963: checking for PQconnectdb in -lpq" >&5
7963 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7965 xe_check_libs=" -lpq "
7966 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure"
7968 #include "confdefs.h"
7969 /* Override any gcc2 internal prototype to avoid an error. */
7970 /* We use char because int might match the return type of a gcc2
7971 builtin and then its argument prototype would still apply. */
7978 if { (eval echo configure:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7980 eval "ac_cv_lib_$ac_lib_var=yes"
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7985 eval "ac_cv_lib_$ac_lib_var=no"
7990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7991 echo "$ac_t""yes" 1>&6
7994 echo "$ac_t""no" 1>&6
7999 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
8001 { test "$extra_verbose" = "yes" && cat << \EOF
8002 Defining HAVE_POSTGRESQL
8004 cat >> confdefs.h <<\EOF
8005 #define HAVE_POSTGRESQL 1
8010 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8011 echo "configure:8012: checking for PQconnectStart in -lpq" >&5
8012 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8014 xe_check_libs=" -lpq "
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8021 char PQconnectStart();
8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8029 eval "ac_cv_lib_$ac_lib_var=yes"
8031 echo "configure: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8034 eval "ac_cv_lib_$ac_lib_var=no"
8039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8040 echo "$ac_t""yes" 1>&6
8041 with_postgresqlv7=yes;
8042 { test "$extra_verbose" = "yes" && cat << \EOF
8043 Defining HAVE_POSTGRESQLV7
8045 cat >> confdefs.h <<\EOF
8046 #define HAVE_POSTGRESQLV7 1
8051 echo "$ac_t""no" 1>&6
8055 { test "$extra_verbose" = "yes" && cat << EOF
8056 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8058 cat >> confdefs.h <<EOF
8059 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8063 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8064 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8065 echo " xemacs will be linked with \"postgresql.o\""
8067 elif test "$with_postgresql" = "yes"; then
8068 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8073 if test "$window_system" != "none"; then
8074 echo "checking for graphics libraries" 1>&6
8075 echo "configure:8076: checking for graphics libraries" >&5
8081 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8082 cygwin_top=`eval "dirname ${cygwin_top}"`;
8083 cygwin_top="${cygwin_top}/..";
8084 case "$window_system" in
8086 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8087 incpath_xpm="-I${cygwin_top}/include/noX"
8097 if test -z "$with_xpm"; then
8098 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8099 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8100 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8101 echo "configure:8102: checking for Xpm - no older than 3.4f" >&5
8103 cat > conftest.$ac_ext <<EOF
8104 #line 8105 "configure"
8105 #include "confdefs.h"
8107 #include <X11/xpm.h>
8108 int main(int c, char **v) {
8110 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8111 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8113 if { (eval echo configure:8114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8115 ./conftest dummy_arg; xpm_status=$?;
8116 if test "$xpm_status" = "0"; then
8120 if test "$xpm_status" = "1"; then
8121 xpm_problem="Xpm library version and header file version don't match!"
8122 elif test "$xpm_status" = "2"; then
8123 xpm_problem="Xpm library version is too old!"
8125 xpm_problem="Internal xpm detection logic error!"
8128 *** WARNING *** $xpm_problem
8129 I'm not touching that with a 10-foot pole!
8130 If you really want to use the installed version of Xpm, rerun
8131 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8135 echo "configure: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8142 echo "$ac_t""$with_xpm" 1>&6
8144 if test "$with_xpm" = "yes"; then
8145 { test "$extra_verbose" = "yes" && cat << \EOF
8148 cat >> confdefs.h <<\EOF
8153 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8154 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8155 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8156 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8157 echo "configure:8158: checking for \"FOR_MSW\" xpm" >&5
8159 cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8164 XpmCreatePixmapFromData()
8167 if { (eval echo configure:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8171 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8178 echo "$ac_t""$xpm_for_msw" 1>&6
8179 if test "$xpm_for_msw" = "yes"; then
8180 { test "$extra_verbose" = "yes" && cat << \EOF
8183 cat >> confdefs.h <<\EOF
8191 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8192 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8193 echo "configure:8194: checking for compface.h" >&5
8195 cat > conftest.$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8198 #include <compface.h>
8200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8201 { (eval echo configure:8202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8203 if test -z "$ac_err"; then
8205 eval "ac_cv_header_$ac_safe=yes"
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8211 eval "ac_cv_header_$ac_safe=no"
8214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8215 echo "$ac_t""yes" 1>&6
8218 echo "$ac_t""no" 1>&6
8222 test -z "$with_xface" && {
8223 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8224 echo "configure:8225: checking for UnGenFace in -lcompface" >&5
8225 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8227 xe_check_libs=" -lcompface "
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 eval "ac_cv_lib_$ac_lib_var=yes"
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8247 eval "ac_cv_lib_$ac_lib_var=no"
8252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8253 echo "$ac_t""yes" 1>&6
8256 echo "$ac_t""no" 1>&6
8261 test -z "$with_xface" && with_xface=yes
8262 if test "$with_xface" = "yes"; then
8263 { test "$extra_verbose" = "yes" && cat << \EOF
8266 cat >> confdefs.h <<\EOF
8267 #define HAVE_XFACE 1
8271 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8274 if test "$with_gif" != "no"; then
8276 { test "$extra_verbose" = "yes" && cat << \EOF
8279 cat >> confdefs.h <<\EOF
8284 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8285 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8289 if test "$with_png $with_tiff" != "no no"; then
8291 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8292 echo "configure:8293: checking for inflate in -lc" >&5
8293 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8295 xe_check_libs=" -lc "
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8299 /* Override any gcc2 internal prototype to avoid an error. */
8300 /* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8310 eval "ac_cv_lib_$ac_lib_var=yes"
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8315 eval "ac_cv_lib_$ac_lib_var=no"
8320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8321 echo "$ac_t""yes" 1>&6
8324 echo "$ac_t""no" 1>&6
8326 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8327 echo "configure:8328: checking for inflate in -lz" >&5
8328 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8330 xe_check_libs=" -lz "
8331 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure"
8333 #include "confdefs.h"
8334 /* Override any gcc2 internal prototype to avoid an error. */
8335 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */
8343 if { (eval echo configure:8344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8345 eval "ac_cv_lib_$ac_lib_var=yes"
8347 echo "configure: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8350 eval "ac_cv_lib_$ac_lib_var=no"
8355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8356 echo "$ac_t""yes" 1>&6
8357 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8359 echo "$ac_t""no" 1>&6
8361 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8362 echo "configure:8363: checking for inflate in -lgz" >&5
8363 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8365 xe_check_libs=" -lgz "
8366 cat > conftest.$ac_ext <<EOF
8367 #line 8368 "configure"
8368 #include "confdefs.h"
8369 /* Override any gcc2 internal prototype to avoid an error. */
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8378 if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8380 eval "ac_cv_lib_$ac_lib_var=yes"
8382 echo "configure: failed program was:" >&5
8383 cat conftest.$ac_ext >&5
8385 eval "ac_cv_lib_$ac_lib_var=no"
8390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8391 echo "$ac_t""yes" 1>&6
8392 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8394 echo "$ac_t""no" 1>&6
8406 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8407 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8408 echo "configure:8409: checking for jpeglib.h" >&5
8410 cat > conftest.$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8413 #include <jpeglib.h>
8415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8416 { (eval echo configure:8417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8418 if test -z "$ac_err"; then
8420 eval "ac_cv_header_$ac_safe=yes"
8423 echo "configure: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8426 eval "ac_cv_header_$ac_safe=no"
8429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8430 echo "$ac_t""yes" 1>&6
8433 echo "$ac_t""no" 1>&6
8437 test -z "$with_jpeg" && {
8438 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8439 echo "configure:8440: checking for jpeg_destroy_decompress in -ljpeg" >&5
8440 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8442 xe_check_libs=" -ljpeg "
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 /* Override any gcc2 internal prototype to avoid an error. */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8449 char jpeg_destroy_decompress();
8452 jpeg_destroy_decompress()
8455 if { (eval echo configure:8456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8457 eval "ac_cv_lib_$ac_lib_var=yes"
8459 echo "configure: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8462 eval "ac_cv_lib_$ac_lib_var=no"
8467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8468 echo "$ac_t""yes" 1>&6
8471 echo "$ac_t""no" 1>&6
8476 test -z "$with_jpeg" && with_jpeg=yes
8477 if test "$with_jpeg" = "yes"; then
8478 { test "$extra_verbose" = "yes" && cat << \EOF
8481 cat >> confdefs.h <<\EOF
8486 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8490 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8491 echo "configure:8492: checking for pow" >&5
8493 cat > conftest.$ac_ext <<EOF
8494 #line 8495 "configure"
8495 #include "confdefs.h"
8496 /* System header to define __stub macros and hopefully few prototypes,
8497 which can conflict with char pow(); below. */
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 /* We use char because int might match the return type of a gcc2
8501 builtin and then its argument prototype would still apply. */
8506 /* The GNU C library defines this for functions which it implements
8507 to always fail with ENOSYS. Some functions are actually named
8508 something starting with __ and the normal name is an alias. */
8509 #if defined (__stub_pow) || defined (__stub___pow)
8517 if { (eval echo configure:8518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8519 eval "ac_cv_func_pow=yes"
8521 echo "configure: failed program was:" >&5
8522 cat conftest.$ac_ext >&5
8524 eval "ac_cv_func_pow=no"
8528 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8529 echo "$ac_t""yes" 1>&6
8532 echo "$ac_t""no" 1>&6
8536 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8537 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8538 echo "configure:8539: checking for png.h" >&5
8540 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8546 { (eval echo configure:8547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8548 if test -z "$ac_err"; then
8550 eval "ac_cv_header_$ac_safe=yes"
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8556 eval "ac_cv_header_$ac_safe=no"
8559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8560 echo "$ac_t""yes" 1>&6
8563 echo "$ac_t""no" 1>&6
8567 test -z "$with_png" && {
8568 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8569 echo "configure:8570: checking for png_read_image in -lpng" >&5
8570 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8572 xe_check_libs=" -lpng "
8573 cat > conftest.$ac_ext <<EOF
8574 #line 8575 "configure"
8575 #include "confdefs.h"
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8579 char png_read_image();
8585 if { (eval echo configure:8586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8587 eval "ac_cv_lib_$ac_lib_var=yes"
8589 echo "configure: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8592 eval "ac_cv_lib_$ac_lib_var=no"
8597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8598 echo "$ac_t""yes" 1>&6
8601 echo "$ac_t""no" 1>&6
8606 if test -z "$with_png"; then
8607 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8608 echo "configure:8609: checking for workable png version information" >&5
8609 xe_check_libs="-lpng -lz"
8610 cat > conftest.$ac_ext <<EOF
8611 #line 8612 "configure"
8612 #include "confdefs.h"
8614 int main(int c, char **v) {
8615 if (c == 1) return 0;
8616 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8617 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8619 if { (eval echo configure:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8621 ./conftest dummy_arg; png_status=$?;
8622 if test "$png_status" = "0"; then
8626 if test "$png_status" = "1"; then
8627 png_problem="PNG library version and header file don't match!"
8628 elif test "$png_status" = "2"; then
8629 png_problem="PNG library version too old (pre 1.0.2)!"
8632 *** WARNING *** $png_problem
8633 I'm not touching that with a 10-foot pole!
8634 If you really want to use the installed version of libPNG, rerun
8635 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8639 echo "configure: failed program was:" >&5
8640 cat conftest.$ac_ext >&5
8646 echo "$ac_t""$with_png" 1>&6
8648 if test "$with_png" = "yes"; then
8649 { test "$extra_verbose" = "yes" && cat << \EOF
8652 cat >> confdefs.h <<\EOF
8657 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8660 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8661 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8662 echo "configure:8663: checking for tiffio.h" >&5
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8670 { (eval echo configure:8671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8672 if test -z "$ac_err"; then
8674 eval "ac_cv_header_$ac_safe=yes"
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8680 eval "ac_cv_header_$ac_safe=no"
8683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8684 echo "$ac_t""yes" 1>&6
8687 echo "$ac_t""no" 1>&6
8691 test -z "$with_tiff" && {
8692 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8693 echo "configure:8694: checking for TIFFClientOpen in -ltiff" >&5
8694 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8696 xe_check_libs=" -ltiff "
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8703 char TIFFClientOpen();
8709 if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8711 eval "ac_cv_lib_$ac_lib_var=yes"
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8716 eval "ac_cv_lib_$ac_lib_var=no"
8721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8722 echo "$ac_t""yes" 1>&6
8725 echo "$ac_t""no" 1>&6
8730 test -z "$with_tiff" && with_tiff=yes
8731 if test "$with_tiff" = "yes"; then
8732 { test "$extra_verbose" = "yes" && cat << \EOF
8735 cat >> confdefs.h <<\EOF
8740 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8745 if test "$with_gtk" = "yes"; then
8746 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8747 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8748 echo "configure:8749: checking for compface.h" >&5
8750 cat > conftest.$ac_ext <<EOF
8751 #line 8752 "configure"
8752 #include "confdefs.h"
8753 #include <compface.h>
8755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8756 { (eval echo configure:8757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8758 if test -z "$ac_err"; then
8760 eval "ac_cv_header_$ac_safe=yes"
8763 echo "configure: failed program was:" >&5
8764 cat conftest.$ac_ext >&5
8766 eval "ac_cv_header_$ac_safe=no"
8769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8770 echo "$ac_t""yes" 1>&6
8773 echo "$ac_t""no" 1>&6
8777 test -z "$with_xface" && {
8778 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8779 echo "configure:8780: checking for UnGenFace in -lcompface" >&5
8780 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8782 xe_check_libs=" -lcompface "
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8786 /* Override any gcc2 internal prototype to avoid an error. */
8787 /* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
8795 if { (eval echo configure:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8797 eval "ac_cv_lib_$ac_lib_var=yes"
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8802 eval "ac_cv_lib_$ac_lib_var=no"
8807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8808 echo "$ac_t""yes" 1>&6
8811 echo "$ac_t""no" 1>&6
8816 test -z "$with_xface" && with_xface=yes
8817 if test "$with_xface" = "yes"; then
8818 { test "$extra_verbose" = "yes" && cat << \EOF
8821 cat >> confdefs.h <<\EOF
8822 #define HAVE_XFACE 1
8826 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8832 if test "$with_x11" = "yes"; then
8833 echo "checking for X11 graphics libraries" 1>&6
8834 echo "configure:8835: checking for X11 graphics libraries" >&5
8837 case "$with_widgets" in
8838 "yes" | "athena") detect_athena=yes ;;
8839 *) detect_athena=no ;;
8842 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
8843 echo "checking for the Athena widgets" 1>&6
8844 echo "configure:8845: checking for the Athena widgets" >&5
8846 case "$with_athena" in
8847 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8848 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8849 "next") athena_variant=neXtaw athena_3d=yes ;;
8850 "95") athena_variant=Xaw95 athena_3d=yes ;;
8851 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8852 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8855 if test "$athena_3d" = "no"; then
8857 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8858 echo "configure:8859: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8859 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8861 xe_check_libs=" -l$athena_variant "
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 /* Override any gcc2 internal prototype to avoid an error. */
8866 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */
8868 char XawScrollbarSetThumb();
8871 XawScrollbarSetThumb()
8874 if { (eval echo configure:8875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8876 eval "ac_cv_lib_$ac_lib_var=yes"
8878 echo "configure: failed program was:" >&5
8879 cat conftest.$ac_ext >&5
8881 eval "ac_cv_lib_$ac_lib_var=no"
8886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8887 echo "$ac_t""yes" 1>&6
8889 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8890 echo "configure:8891: checking for threeDClassRec in -l$athena_variant" >&5
8891 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8893 xe_check_libs=" -l$athena_variant "
8894 cat > conftest.$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8897 /* Override any gcc2 internal prototype to avoid an error. */
8898 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */
8900 char threeDClassRec();
8906 if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8908 eval "ac_cv_lib_$ac_lib_var=yes"
8910 echo "configure: failed program was:" >&5
8911 cat conftest.$ac_ext >&5
8913 eval "ac_cv_lib_$ac_lib_var=no"
8918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8919 echo "$ac_t""yes" 1>&6
8920 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8922 echo "$ac_t""no" 1>&6
8923 athena_lib=$athena_variant
8929 echo "$ac_t""no" 1>&6
8930 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8936 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8937 echo "configure:8938: checking for threeDClassRec in -l$athena_variant" >&5
8938 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8940 xe_check_libs=" -l$athena_variant "
8941 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8947 char threeDClassRec();
8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8955 eval "ac_cv_lib_$ac_lib_var=yes"
8957 echo "configure: failed program was:" >&5
8958 cat conftest.$ac_ext >&5
8960 eval "ac_cv_lib_$ac_lib_var=no"
8965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8966 echo "$ac_t""yes" 1>&6
8967 athena_lib=$athena_variant
8969 echo "$ac_t""no" 1>&6
8970 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8971 echo "configure:8972: checking for threeDClassRec in -lXaw" >&5
8972 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8974 xe_check_libs=" -lXaw "
8975 cat > conftest.$ac_ext <<EOF
8976 #line 8977 "configure"
8977 #include "confdefs.h"
8978 /* Override any gcc2 internal prototype to avoid an error. */
8979 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */
8981 char threeDClassRec();
8987 if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8989 eval "ac_cv_lib_$ac_lib_var=yes"
8991 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8994 eval "ac_cv_lib_$ac_lib_var=no"
8999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9000 echo "$ac_t""yes" 1>&6
9002 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
9005 echo "$ac_t""no" 1>&6
9006 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
9015 if test "$athena_3d" = "no"; then
9016 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9017 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9018 echo "configure:9019: checking for X11/Xaw/ThreeD.h" >&5
9020 cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure"
9022 #include "confdefs.h"
9023 #include <X11/Xaw/ThreeD.h>
9025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9026 { (eval echo configure:9027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9028 if test -z "$ac_err"; then
9030 eval "ac_cv_header_$ac_safe=yes"
9033 echo "configure: failed program was:" >&5
9034 cat conftest.$ac_ext >&5
9036 eval "ac_cv_header_$ac_safe=no"
9039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9040 echo "$ac_t""yes" 1>&6
9041 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9043 echo "$ac_t""no" 1>&6
9044 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9045 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9046 echo "configure:9047: checking for X11/Xaw/XawInit.h" >&5
9048 cat > conftest.$ac_ext <<EOF
9049 #line 9050 "configure"
9050 #include "confdefs.h"
9051 #include <X11/Xaw/XawInit.h>
9053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9054 { (eval echo configure:9055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9056 if test -z "$ac_err"; then
9058 eval "ac_cv_header_$ac_safe=yes"
9061 echo "configure: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9064 eval "ac_cv_header_$ac_safe=no"
9067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9068 echo "$ac_t""yes" 1>&6
9069 athena_h_path=X11/Xaw
9071 echo "$ac_t""no" 1>&6
9072 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9078 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9079 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9080 echo "configure:9081: checking for X11/$athena_variant/XawInit.h" >&5
9082 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure"
9084 #include "confdefs.h"
9085 #include <X11/$athena_variant/XawInit.h>
9087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9088 { (eval echo configure:9089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9090 if test -z "$ac_err"; then
9092 eval "ac_cv_header_$ac_safe=yes"
9095 echo "configure: failed program was:" >&5
9096 cat conftest.$ac_ext >&5
9098 eval "ac_cv_header_$ac_safe=no"
9101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9102 echo "$ac_t""yes" 1>&6
9103 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9104 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9105 echo "configure:9106: checking for X11/$athena_variant/ThreeD.h" >&5
9107 cat > conftest.$ac_ext <<EOF
9108 #line 9109 "configure"
9109 #include "confdefs.h"
9110 #include <X11/$athena_variant/ThreeD.h>
9112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9113 { (eval echo configure:9114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9115 if test -z "$ac_err"; then
9117 eval "ac_cv_header_$ac_safe=yes"
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9123 eval "ac_cv_header_$ac_safe=no"
9126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9127 echo "$ac_t""yes" 1>&6
9128 athena_h_path=X11/$athena_variant
9130 echo "$ac_t""no" 1>&6
9134 echo "$ac_t""no" 1>&6
9138 if test -z "$athena_h_path"; then
9139 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9140 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9141 echo "configure:9142: checking for $athena_variant/XawInit.h" >&5
9143 cat > conftest.$ac_ext <<EOF
9144 #line 9145 "configure"
9145 #include "confdefs.h"
9146 #include <$athena_variant/XawInit.h>
9148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9149 { (eval echo configure:9150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9151 if test -z "$ac_err"; then
9153 eval "ac_cv_header_$ac_safe=yes"
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9159 eval "ac_cv_header_$ac_safe=no"
9162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9163 echo "$ac_t""yes" 1>&6
9164 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9165 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9166 echo "configure:9167: checking for $athena_variant/ThreeD.h" >&5
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 #include <$athena_variant/ThreeD.h>
9173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9174 { (eval echo configure:9175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9176 if test -z "$ac_err"; then
9178 eval "ac_cv_header_$ac_safe=yes"
9181 echo "configure: failed program was:" >&5
9182 cat conftest.$ac_ext >&5
9184 eval "ac_cv_header_$ac_safe=no"
9187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9188 echo "$ac_t""yes" 1>&6
9189 athena_h_path=$athena_variant
9191 echo "$ac_t""no" 1>&6
9195 echo "$ac_t""no" 1>&6
9200 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9201 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9202 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9203 echo "configure:9204: checking for X11/Xaw3d/XawInit.h" >&5
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 #include <X11/Xaw3d/XawInit.h>
9210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9211 { (eval echo configure:9212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9213 if test -z "$ac_err"; then
9215 eval "ac_cv_header_$ac_safe=yes"
9218 echo "configure: failed program was:" >&5
9219 cat conftest.$ac_ext >&5
9221 eval "ac_cv_header_$ac_safe=no"
9224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9225 echo "$ac_t""yes" 1>&6
9226 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9227 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9228 echo "configure:9229: checking for X11/Xaw3d/ThreeD.h" >&5
9230 cat > conftest.$ac_ext <<EOF
9231 #line 9232 "configure"
9232 #include "confdefs.h"
9233 #include <X11/Xaw3d/ThreeD.h>
9235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9236 { (eval echo configure:9237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9238 if test -z "$ac_err"; then
9240 eval "ac_cv_header_$ac_safe=yes"
9243 echo "configure: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9246 eval "ac_cv_header_$ac_safe=no"
9249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9250 echo "$ac_t""yes" 1>&6
9252 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9253 athena_h_path=X11/Xaw3d
9256 echo "$ac_t""no" 1>&6
9260 echo "$ac_t""no" 1>&6
9265 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9266 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9267 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9268 echo "configure:9269: checking for Xaw3d/XawInit.h" >&5
9270 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9273 #include <Xaw3d/XawInit.h>
9275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9276 { (eval echo configure:9277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9278 if test -z "$ac_err"; then
9280 eval "ac_cv_header_$ac_safe=yes"
9283 echo "configure: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9286 eval "ac_cv_header_$ac_safe=no"
9289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9290 echo "$ac_t""yes" 1>&6
9291 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9292 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9293 echo "configure:9294: checking for Xaw3d/ThreeD.h" >&5
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9298 #include <Xaw3d/ThreeD.h>
9300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9301 { (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9303 if test -z "$ac_err"; then
9305 eval "ac_cv_header_$ac_safe=yes"
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9311 eval "ac_cv_header_$ac_safe=no"
9314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9315 echo "$ac_t""yes" 1>&6
9317 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9321 echo "$ac_t""no" 1>&6
9325 echo "$ac_t""no" 1>&6
9330 if test -z "$athena_h_path"; then
9331 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9332 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9333 echo "configure:9334: checking for X11/Xaw/ThreeD.h" >&5
9335 cat > conftest.$ac_ext <<EOF
9336 #line 9337 "configure"
9337 #include "confdefs.h"
9338 #include <X11/Xaw/ThreeD.h>
9340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9341 { (eval echo configure:9342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9343 if test -z "$ac_err"; then
9345 eval "ac_cv_header_$ac_safe=yes"
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9351 eval "ac_cv_header_$ac_safe=no"
9354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9355 echo "$ac_t""yes" 1>&6
9357 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9358 athena_h_path=X11/Xaw
9361 echo "$ac_t""no" 1>&6
9362 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9368 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9377 if test "$with_x11" = "yes"; then
9378 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9379 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9380 echo "configure:9381: checking for Xm/Xm.h" >&5
9382 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure"
9384 #include "confdefs.h"
9387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9388 { (eval echo configure:9389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9390 if test -z "$ac_err"; then
9392 eval "ac_cv_header_$ac_safe=yes"
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 eval "ac_cv_header_$ac_safe=no"
9401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9402 echo "$ac_t""yes" 1>&6
9404 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9405 echo "configure:9406: checking for XmStringFree in -lXm" >&5
9406 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9408 xe_check_libs=" -lXm "
9409 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure"
9411 #include "confdefs.h"
9412 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9415 char XmStringFree();
9421 if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9423 eval "ac_cv_lib_$ac_lib_var=yes"
9425 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9428 eval "ac_cv_lib_$ac_lib_var=no"
9433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9434 echo "$ac_t""yes" 1>&6
9437 echo "$ac_t""no" 1>&6
9443 echo "$ac_t""no" 1>&6
9448 if test "$have_motif" = "yes"; then
9449 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9450 echo "configure:9451: checking for Lesstif" >&5
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9455 #ifdef LESSTIF_VERSION
9460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461 egrep "yes" >/dev/null 2>&1; then
9470 echo "$ac_t""$have_lesstif" 1>&6
9475 case "$with_menubars" in "" | "yes" | "athena" )
9476 with_menubars="lucid" ;;
9478 case "$with_dialogs" in "" | "yes" | "lucid" )
9479 if test "$have_motif" = "yes"; then with_dialogs="motif"
9480 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9481 else with_dialogs=no
9484 case "$with_scrollbars" in "" | "yes" )
9485 with_scrollbars="lucid" ;;
9487 case "$with_widgets" in "" | "yes" | "lucid")
9488 if test "$have_motif" = "yes"; then with_widgets="motif"
9489 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9490 else with_widgets=no
9494 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9496 case "$all_widgets" in
9498 if test "$have_xaw" != "yes"; then
9499 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9502 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9504 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9506 { test "$extra_verbose" = "yes" && cat << EOF
9507 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9509 cat >> confdefs.h <<EOF
9510 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9514 { test "$extra_verbose" = "yes" && cat << EOF
9515 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9517 cat >> confdefs.h <<EOF
9518 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9522 { test "$extra_verbose" = "yes" && cat << EOF
9523 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9525 cat >> confdefs.h <<EOF
9526 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9530 { test "$extra_verbose" = "yes" && cat << EOF
9531 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9533 cat >> confdefs.h <<EOF
9534 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9538 { test "$extra_verbose" = "yes" && cat << EOF
9539 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9541 cat >> confdefs.h <<EOF
9542 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9546 { test "$extra_verbose" = "yes" && cat << EOF
9547 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9549 cat >> confdefs.h <<EOF
9550 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9554 { test "$extra_verbose" = "yes" && cat << EOF
9555 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9557 cat >> confdefs.h <<EOF
9558 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9562 { test "$extra_verbose" = "yes" && cat << EOF
9563 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9565 cat >> confdefs.h <<EOF
9566 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9570 { test "$extra_verbose" = "yes" && cat << EOF
9571 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9573 cat >> confdefs.h <<EOF
9574 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9578 { test "$extra_verbose" = "yes" && cat << EOF
9579 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9581 cat >> confdefs.h <<EOF
9582 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9587 { test "$extra_verbose" = "yes" && cat << \EOF
9588 Defining LWLIB_USES_ATHENA
9590 cat >> confdefs.h <<\EOF
9591 #define LWLIB_USES_ATHENA 1
9595 { test "$extra_verbose" = "yes" && cat << \EOF
9596 Defining NEED_ATHENA
9598 cat >> confdefs.h <<\EOF
9599 #define NEED_ATHENA 1
9605 if test "$athena_3d" = "yes"; then
9606 { test "$extra_verbose" = "yes" && cat << \EOF
9607 Defining HAVE_ATHENA_3D
9609 cat >> confdefs.h <<\EOF
9610 #define HAVE_ATHENA_3D 1
9618 case "$all_widgets" in *motif* )
9619 { test "$extra_verbose" = "yes" && cat << \EOF
9620 Defining LWLIB_USES_MOTIF
9622 cat >> confdefs.h <<\EOF
9623 #define LWLIB_USES_MOTIF 1
9627 { test "$extra_verbose" = "yes" && cat << \EOF
9630 cat >> confdefs.h <<\EOF
9631 #define NEED_MOTIF 1
9635 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9639 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9640 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9641 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9642 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9643 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9644 case "$with_widgets" in athena* )
9645 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;;
9647 case "$all_widgets" in *lucid* )
9648 { test "$extra_verbose" = "yes" && cat << \EOF
9651 cat >> confdefs.h <<\EOF
9652 #define NEED_LUCID 1
9656 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9661 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9662 Defining LWLIB_SCROLLBARS_ATHENA
9664 cat >> confdefs.h <<\EOF
9665 #define LWLIB_SCROLLBARS_ATHENA 1
9669 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9670 Defining LWLIB_DIALOGS_ATHENA
9672 cat >> confdefs.h <<\EOF
9673 #define LWLIB_DIALOGS_ATHENA 1
9678 if test "$athena_3d" = "yes"; then
9679 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9680 Defining LWLIB_SCROLLBARS_ATHENA3D
9682 cat >> confdefs.h <<\EOF
9683 #define LWLIB_SCROLLBARS_ATHENA3D 1
9687 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9688 Defining LWLIB_DIALOGS_ATHENA3D
9690 cat >> confdefs.h <<\EOF
9691 #define LWLIB_DIALOGS_ATHENA3D 1
9697 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9698 Defining LWLIB_WIDGETS_ATHENA
9700 cat >> confdefs.h <<\EOF
9701 #define LWLIB_WIDGETS_ATHENA 1
9705 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9706 { test "$extra_verbose" = "yes" && cat << \EOF
9707 Defining LWLIB_TABS_LUCID
9709 cat >> confdefs.h <<\EOF
9710 #define LWLIB_TABS_LUCID 1
9715 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9716 Defining HAVE_MENUBARS
9718 cat >> confdefs.h <<\EOF
9719 #define HAVE_MENUBARS 1
9723 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9724 Defining HAVE_SCROLLBARS
9726 cat >> confdefs.h <<\EOF
9727 #define HAVE_SCROLLBARS 1
9731 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9732 Defining HAVE_DIALOGS
9734 cat >> confdefs.h <<\EOF
9735 #define HAVE_DIALOGS 1
9739 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9740 Defining HAVE_TOOLBARS
9742 cat >> confdefs.h <<\EOF
9743 #define HAVE_TOOLBARS 1
9747 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9748 Defining HAVE_WIDGETS
9750 cat >> confdefs.h <<\EOF
9751 #define HAVE_WIDGETS 1
9756 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9757 Defining LWLIB_MENUBARS_LUCID
9759 cat >> confdefs.h <<\EOF
9760 #define LWLIB_MENUBARS_LUCID 1
9764 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9765 Defining LWLIB_SCROLLBARS_LUCID
9767 cat >> confdefs.h <<\EOF
9768 #define LWLIB_SCROLLBARS_LUCID 1
9773 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9774 Defining LWLIB_MENUBARS_MOTIF
9776 cat >> confdefs.h <<\EOF
9777 #define LWLIB_MENUBARS_MOTIF 1
9781 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9782 Defining LWLIB_SCROLLBARS_MOTIF
9784 cat >> confdefs.h <<\EOF
9785 #define LWLIB_SCROLLBARS_MOTIF 1
9789 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9790 Defining LWLIB_DIALOGS_MOTIF
9792 cat >> confdefs.h <<\EOF
9793 #define LWLIB_DIALOGS_MOTIF 1
9797 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9798 Defining LWLIB_WIDGETS_MOTIF
9800 cat >> confdefs.h <<\EOF
9801 #define LWLIB_WIDGETS_MOTIF 1
9806 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9807 echo " xemacs will be linked with \"menubar.o\""
9809 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9810 echo " xemacs will be linked with \"scrollbar.o\""
9812 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9813 echo " xemacs will be linked with \"dialog.o\""
9815 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9816 echo " xemacs will be linked with \"toolbar.o\""
9819 if test "$with_gtk" = "yes"; then
9820 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9821 echo " xemacs will be linked with \"menubar-gtk.o\""
9823 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9824 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9826 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9827 echo " xemacs will be linked with \"dialog-gtk.o\""
9829 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9830 echo " xemacs will be linked with \"toolbar-gtk.o\""
9832 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9833 echo " xemacs will be linked with \"gui-gtk.o\""
9837 if test "$with_x11" = "yes"; then
9838 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9839 echo " xemacs will be linked with \"menubar-x.o\""
9841 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9842 echo " xemacs will be linked with \"scrollbar-x.o\""
9844 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9845 echo " xemacs will be linked with \"dialog-x.o\""
9847 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9848 echo " xemacs will be linked with \"toolbar-x.o\""
9850 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9851 echo " xemacs will be linked with \"gui-x.o\""
9856 test -z "$with_mule" && with_mule=no
9857 test -z "$with_file_coding" && with_file_coding=no
9860 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9861 { test "$extra_verbose" = "yes" && cat << \EOF
9862 Defining FILE_CODING
9864 cat >> confdefs.h <<\EOF
9865 #define FILE_CODING 1
9869 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9870 echo " xemacs will be linked with \"file-coding.o\""
9874 if test "$with_mule" = "yes" ; then
9875 echo "checking for Mule-related features" 1>&6
9876 echo "configure:9877: checking for Mule-related features" >&5
9877 { test "$extra_verbose" = "yes" && cat << \EOF
9880 cat >> confdefs.h <<\EOF
9885 { test "$extra_verbose" = "yes" && cat << \EOF
9886 Defining FILE_CODING
9888 cat >> confdefs.h <<\EOF
9889 #define FILE_CODING 1
9893 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9894 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9896 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9897 { test "$extra_verbose" = "yes" && cat << \EOF
9898 Defining TEXT_CODING
9900 cat >> confdefs.h <<\EOF
9901 #define TEXT_CODING 1
9905 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9906 echo " xemacs will be linked with \"text-coding.o\""
9909 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9910 echo " xemacs will be linked with \"file-coding.o\""
9913 for ac_hdr in libintl.h
9915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9917 echo "configure:9918: checking for $ac_hdr" >&5
9919 cat > conftest.$ac_ext <<EOF
9920 #line 9921 "configure"
9921 #include "confdefs.h"
9924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9925 { (eval echo configure:9926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9927 if test -z "$ac_err"; then
9929 eval "ac_cv_header_$ac_safe=yes"
9932 echo "configure: failed program was:" >&5
9933 cat conftest.$ac_ext >&5
9935 eval "ac_cv_header_$ac_safe=no"
9938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9939 echo "$ac_t""yes" 1>&6
9940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9941 { test "$extra_verbose" = "yes" && cat << EOF
9944 cat >> confdefs.h <<EOF
9945 #define $ac_tr_hdr 1
9950 echo "$ac_t""no" 1>&6
9955 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9956 echo "configure:9957: checking for strerror in -lintl" >&5
9957 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9959 xe_check_libs=" -lintl "
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9963 /* Override any gcc2 internal prototype to avoid an error. */
9964 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9974 eval "ac_cv_lib_$ac_lib_var=yes"
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9979 eval "ac_cv_lib_$ac_lib_var=no"
9984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9985 echo "$ac_t""yes" 1>&6
9986 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9987 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9988 { test "$extra_verbose" = "yes" && cat << EOF
9991 cat >> confdefs.h <<EOF
9992 #define $ac_tr_lib 1
9996 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9999 echo "$ac_t""no" 1>&6
10004 if test "$with_utf_2000" = "yes" ; then
10005 { test "$extra_verbose" = "yes" && cat << \EOF
10006 Defining CHAR_IS_UCS4
10008 cat >> confdefs.h <<\EOF
10009 #define CHAR_IS_UCS4 1
10013 { test "$extra_verbose" = "yes" && cat << \EOF
10016 cat >> confdefs.h <<\EOF
10023 echo "checking for Mule input methods" 1>&6
10024 echo "configure:10025: checking for Mule input methods" >&5
10025 case "$with_xim" in "" | "yes" )
10026 echo "checking for XIM" 1>&6
10027 echo "configure:10028: checking for XIM" >&5
10029 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10030 echo "configure:10031: checking for XOpenIM in -lX11" >&5
10031 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10033 xe_check_libs=" -lX11 "
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10048 eval "ac_cv_lib_$ac_lib_var=yes"
10050 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10053 eval "ac_cv_lib_$ac_lib_var=no"
10058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10059 echo "$ac_t""yes" 1>&6
10062 echo "$ac_t""no" 1>&6
10067 if test "$have_motif $have_lesstif" = "yes no"; then
10069 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10070 echo "configure:10071: checking for XmImMbLookupString in -lXm" >&5
10071 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10073 xe_check_libs=" -lXm "
10074 cat > conftest.$ac_ext <<EOF
10075 #line 10076 "configure"
10076 #include "confdefs.h"
10077 /* Override any gcc2 internal prototype to avoid an error. */
10078 /* We use char because int might match the return type of a gcc2
10079 builtin and then its argument prototype would still apply. */
10080 char XmImMbLookupString();
10083 XmImMbLookupString()
10086 if { (eval echo configure:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10088 eval "ac_cv_lib_$ac_lib_var=yes"
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10093 eval "ac_cv_lib_$ac_lib_var=no"
10098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10099 echo "$ac_t""yes" 1>&6
10102 echo "$ac_t""no" 1>&6
10108 if test "$with_xim" != "no"; then
10109 { test "$extra_verbose" = "yes" && cat << \EOF
10112 cat >> confdefs.h <<\EOF
10117 if test "$with_xim" = "xlib"; then
10118 { test "$extra_verbose" = "yes" && cat << \EOF
10121 cat >> confdefs.h <<\EOF
10126 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10127 echo " xemacs will be linked with \"input-method-xlib.o\""
10130 if test "$with_xim" = "motif"; then
10131 { test "$extra_verbose" = "yes" && cat << \EOF
10134 cat >> confdefs.h <<\EOF
10135 #define XIM_MOTIF 1
10140 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10141 echo " xemacs will be linked with \"input-method-motif.o\""
10144 if test "$with_xim" = "motif"; then
10149 if test "$with_xfs" = "yes" ; then
10150 echo "checking for XFontSet" 1>&6
10151 echo "configure:10152: checking for XFontSet" >&5
10153 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10154 echo "configure:10155: checking for XmbDrawString in -lX11" >&5
10155 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10157 xe_check_libs=" -lX11 "
10158 cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 /* Override any gcc2 internal prototype to avoid an error. */
10162 /* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10164 char XmbDrawString();
10170 if { (eval echo configure:10171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10172 eval "ac_cv_lib_$ac_lib_var=yes"
10174 echo "configure: failed program was:" >&5
10175 cat conftest.$ac_ext >&5
10177 eval "ac_cv_lib_$ac_lib_var=no"
10182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10183 echo "$ac_t""yes" 1>&6
10186 echo "$ac_t""no" 1>&6
10191 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10192 { test "$extra_verbose" = "yes" && cat << \EOF
10193 Defining USE_XFONTSET
10195 cat >> confdefs.h <<\EOF
10196 #define USE_XFONTSET 1
10200 if test "$with_xim" = "no" ; then
10201 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10202 echo " xemacs will be linked with \"input-method-xlib.o\""
10207 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10208 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10209 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10210 echo "configure:10211: checking for wnn/jllib.h" >&5
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 #include <wnn/jllib.h>
10217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10218 { (eval echo configure:10219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10220 if test -z "$ac_err"; then
10222 eval "ac_cv_header_$ac_safe=yes"
10225 echo "configure: failed program was:" >&5
10226 cat conftest.$ac_ext >&5
10228 eval "ac_cv_header_$ac_safe=no"
10231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10232 echo "$ac_t""yes" 1>&6
10235 echo "$ac_t""no" 1>&6
10239 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10240 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10241 echo "configure:10242: checking for wnn/commonhd.h" >&5
10243 cat > conftest.$ac_ext <<EOF
10244 #line 10245 "configure"
10245 #include "confdefs.h"
10246 #include <wnn/commonhd.h>
10248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10249 { (eval echo configure:10250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10251 if test -z "$ac_err"; then
10253 eval "ac_cv_header_$ac_safe=yes"
10256 echo "configure: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10259 eval "ac_cv_header_$ac_safe=no"
10262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10263 echo "$ac_t""yes" 1>&6
10266 echo "$ac_t""no" 1>&6
10270 if test "$with_wnn" != "no"; then
10271 for ac_func in crypt
10273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10274 echo "configure:10275: checking for $ac_func" >&5
10276 cat > conftest.$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10279 /* System header to define __stub macros and hopefully few prototypes,
10280 which can conflict with char $ac_func(); below. */
10281 #include <assert.h>
10282 /* Override any gcc2 internal prototype to avoid an error. */
10283 /* We use char because int might match the return type of a gcc2
10284 builtin and then its argument prototype would still apply. */
10289 /* The GNU C library defines this for functions which it implements
10290 to always fail with ENOSYS. Some functions are actually named
10291 something starting with __ and the normal name is an alias. */
10292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10307 eval "ac_cv_func_$ac_func=no"
10311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10312 echo "$ac_t""yes" 1>&6
10313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10314 { test "$extra_verbose" = "yes" && cat << EOF
10315 Defining $ac_tr_func
10317 cat >> confdefs.h <<EOF
10318 #define $ac_tr_func 1
10323 echo "$ac_t""no" 1>&6
10327 test "$ac_cv_func_crypt" != "yes" && {
10328 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10329 echo "configure:10330: checking for crypt in -lcrypt" >&5
10330 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10332 xe_check_libs=" -lcrypt "
10333 cat > conftest.$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10336 /* Override any gcc2 internal prototype to avoid an error. */
10337 /* We use char because int might match the return type of a gcc2
10338 builtin and then its argument prototype would still apply. */
10345 if { (eval echo configure:10346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10347 eval "ac_cv_lib_$ac_lib_var=yes"
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10352 eval "ac_cv_lib_$ac_lib_var=no"
10357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10358 echo "$ac_t""yes" 1>&6
10359 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10361 { test "$extra_verbose" = "yes" && cat << EOF
10362 Defining $ac_tr_lib
10364 cat >> confdefs.h <<EOF
10365 #define $ac_tr_lib 1
10369 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10372 echo "$ac_t""no" 1>&6
10377 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10379 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10380 echo "configure:10381: checking for jl_dic_list_e in -lwnn" >&5
10381 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10383 xe_check_libs=" -lwnn "
10384 cat > conftest.$ac_ext <<EOF
10385 #line 10386 "configure"
10386 #include "confdefs.h"
10387 /* Override any gcc2 internal prototype to avoid an error. */
10388 /* We use char because int might match the return type of a gcc2
10389 builtin and then its argument prototype would still apply. */
10390 char jl_dic_list_e();
10396 if { (eval echo configure:10397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10398 eval "ac_cv_lib_$ac_lib_var=yes"
10400 echo "configure: failed program was:" >&5
10401 cat conftest.$ac_ext >&5
10403 eval "ac_cv_lib_$ac_lib_var=no"
10408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10409 echo "$ac_t""yes" 1>&6
10412 echo "$ac_t""no" 1>&6
10413 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10414 echo "configure:10415: checking for jl_dic_list_e in -lwnn4" >&5
10415 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10417 xe_check_libs=" -lwnn4 "
10418 cat > conftest.$ac_ext <<EOF
10419 #line 10420 "configure"
10420 #include "confdefs.h"
10421 /* Override any gcc2 internal prototype to avoid an error. */
10422 /* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */
10424 char jl_dic_list_e();
10430 if { (eval echo configure:10431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10432 eval "ac_cv_lib_$ac_lib_var=yes"
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10437 eval "ac_cv_lib_$ac_lib_var=no"
10442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10443 echo "$ac_t""yes" 1>&6
10446 echo "$ac_t""no" 1>&6
10447 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10448 echo "configure:10449: checking for jl_dic_list_e in -lwnn6" >&5
10449 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10451 xe_check_libs=" -lwnn6 "
10452 cat > conftest.$ac_ext <<EOF
10453 #line 10454 "configure"
10454 #include "confdefs.h"
10455 /* Override any gcc2 internal prototype to avoid an error. */
10456 /* We use char because int might match the return type of a gcc2
10457 builtin and then its argument prototype would still apply. */
10458 char jl_dic_list_e();
10464 if { (eval echo configure:10465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10466 eval "ac_cv_lib_$ac_lib_var=yes"
10468 echo "configure: failed program was:" >&5
10469 cat conftest.$ac_ext >&5
10471 eval "ac_cv_lib_$ac_lib_var=no"
10476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10477 echo "$ac_t""yes" 1>&6
10480 echo "$ac_t""no" 1>&6
10481 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10482 echo "configure:10483: checking for dic_list_e in -lwnn6_fromsrc" >&5
10483 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10485 xe_check_libs=" -lwnn6_fromsrc "
10486 cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10489 /* Override any gcc2 internal prototype to avoid an error. */
10490 /* We use char because int might match the return type of a gcc2
10491 builtin and then its argument prototype would still apply. */
10498 if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10500 eval "ac_cv_lib_$ac_lib_var=yes"
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10505 eval "ac_cv_lib_$ac_lib_var=no"
10510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10511 echo "$ac_t""yes" 1>&6
10512 libwnn=wnn6_fromsrc
10514 echo "$ac_t""no" 1>&6
10529 test -z "$with_wnn" && with_wnn=yes
10530 if test "$with_wnn" = "yes"; then
10531 { test "$extra_verbose" = "yes" && cat << \EOF
10534 cat >> confdefs.h <<\EOF
10539 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10540 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10541 echo " xemacs will be linked with \"mule-wnnfns.o\""
10543 if test "$with_wnn6" != "no"; then
10545 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10546 echo "configure:10547: checking for jl_fi_dic_list in -l$libwnn" >&5
10547 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10549 xe_check_libs=" -l$libwnn "
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 /* Override any gcc2 internal prototype to avoid an error. */
10554 /* We use char because int might match the return type of a gcc2
10555 builtin and then its argument prototype would still apply. */
10556 char jl_fi_dic_list();
10562 if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10564 eval "ac_cv_lib_$ac_lib_var=yes"
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 eval "ac_cv_lib_$ac_lib_var=no"
10574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10575 echo "$ac_t""yes" 1>&6
10578 echo "$ac_t""no" 1>&6
10582 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10585 cat >> confdefs.h <<\EOF
10593 canna_includes_found=no
10594 if test "$with_canna" != "no"; then
10595 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10596 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10597 echo "configure:10598: checking for canna/jrkanji.h" >&5
10599 cat > conftest.$ac_ext <<EOF
10600 #line 10601 "configure"
10601 #include "confdefs.h"
10602 #include <canna/jrkanji.h>
10604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10605 { (eval echo configure:10606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10607 if test -z "$ac_err"; then
10609 eval "ac_cv_header_$ac_safe=yes"
10612 echo "configure: failed program was:" >&5
10613 cat conftest.$ac_ext >&5
10615 eval "ac_cv_header_$ac_safe=no"
10618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10619 echo "$ac_t""yes" 1>&6
10620 canna_includes_found=yes
10622 echo "$ac_t""no" 1>&6
10626 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10627 -d "/usr/local/canna/include"; then
10628 save_c_switch_site="$c_switch_site"
10629 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10630 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10631 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10632 echo "configure:10633: checking for canna/jrkanji.h" >&5
10634 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10637 #include <canna/jrkanji.h>
10639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10640 { (eval echo configure:10641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10642 if test -z "$ac_err"; then
10644 eval "ac_cv_header_$ac_safe=yes"
10647 echo "configure: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10650 eval "ac_cv_header_$ac_safe=no"
10653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10654 echo "$ac_t""yes" 1>&6
10655 canna_includes_found=yes
10657 echo "$ac_t""no" 1>&6
10660 if test "$canna_includes_found" != "yes"; then
10661 c_switch_site="$save_c_switch_site"
10666 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10667 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10668 echo "configure:10669: checking for canna/RK.h" >&5
10670 cat > conftest.$ac_ext <<EOF
10671 #line 10672 "configure"
10672 #include "confdefs.h"
10673 #include <canna/RK.h>
10675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10676 { (eval echo configure:10677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10678 if test -z "$ac_err"; then
10680 eval "ac_cv_header_$ac_safe=yes"
10683 echo "configure: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10686 eval "ac_cv_header_$ac_safe=no"
10689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10690 echo "$ac_t""yes" 1>&6
10693 echo "$ac_t""no" 1>&6
10697 test -z "$with_canna" && {
10698 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10699 echo "configure:10700: checking for RkBgnBun in -lRKC" >&5
10700 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10702 xe_check_libs=" -lRKC "
10703 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10706 /* Override any gcc2 internal prototype to avoid an error. */
10707 /* We use char because int might match the return type of a gcc2
10708 builtin and then its argument prototype would still apply. */
10715 if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10717 eval "ac_cv_lib_$ac_lib_var=yes"
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10722 eval "ac_cv_lib_$ac_lib_var=no"
10727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10728 echo "$ac_t""yes" 1>&6
10731 echo "$ac_t""no" 1>&6
10736 test -z "$with_canna" && {
10737 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10738 echo "configure:10739: checking for jrKanjiControl in -lcanna" >&5
10739 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10741 xe_check_libs=" -lcanna "
10742 cat > conftest.$ac_ext <<EOF
10743 #line 10744 "configure"
10744 #include "confdefs.h"
10745 /* Override any gcc2 internal prototype to avoid an error. */
10746 /* We use char because int might match the return type of a gcc2
10747 builtin and then its argument prototype would still apply. */
10748 char jrKanjiControl();
10754 if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10756 eval "ac_cv_lib_$ac_lib_var=yes"
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10761 eval "ac_cv_lib_$ac_lib_var=no"
10766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10767 echo "$ac_t""yes" 1>&6
10770 echo "$ac_t""no" 1>&6
10775 test -z "$with_canna" && with_canna=yes
10776 if test "$with_canna" = "yes"; then
10777 { test "$extra_verbose" = "yes" && cat << \EOF
10778 Defining HAVE_CANNA
10780 cat >> confdefs.h <<\EOF
10781 #define HAVE_CANNA 1
10785 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10786 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10787 echo " xemacs will be linked with \"mule-canna.o\""
10791 else for feature in xim canna wnn; do
10792 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10793 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10795 eval "with_${feature}=no"
10799 if test "$need_motif" = "yes" ; then
10800 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10802 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10803 echo "configure:10804: checking for layout_object_getvalue in -li18n" >&5
10804 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10806 xe_check_libs=" -li18n "
10807 cat > conftest.$ac_ext <<EOF
10808 #line 10809 "configure"
10809 #include "confdefs.h"
10810 /* Override any gcc2 internal prototype to avoid an error. */
10811 /* We use char because int might match the return type of a gcc2
10812 builtin and then its argument prototype would still apply. */
10813 char layout_object_getvalue();
10816 layout_object_getvalue()
10819 if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10821 eval "ac_cv_lib_$ac_lib_var=yes"
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10826 eval "ac_cv_lib_$ac_lib_var=no"
10831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10832 echo "$ac_t""yes" 1>&6
10833 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10835 echo "$ac_t""no" 1>&6
10840 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10841 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10842 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10844 runpath="" runpath_dirs=""
10845 if test -n "$LD_RUN_PATH"; then
10846 runpath="$LD_RUN_PATH"
10847 elif test "$GCC" = "yes"; then
10848 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10849 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10850 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10851 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10852 case "$arg" in P,* | -L* | -R* )
10853 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10855 xe_runpath_dir="$dir"
10856 test "$xe_runpath_dir" != "/lib" -a \
10857 "$xe_runpath_dir" != "/usr/lib" -a \
10858 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10859 eval "$xe_add_unique_runpath_dir"
10864 ld_switch_run="$ld_switch_run_save"
10867 for arg in $ld_switch_site $ld_switch_x_site; do
10868 case "$arg" in -L*) {
10869 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10870 test "$xe_runpath_dir" != "/lib" -a \
10871 "$xe_runpath_dir" != "/usr/lib" -a \
10872 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10873 eval "$xe_add_unique_runpath_dir"
10876 if test "$opsys $need_motif" = "sol2 yes"; then
10877 xe_runpath_dir="/opt/SUNWdt/lib";
10878 eval "$xe_add_unique_runpath_dir";
10881 if test -n "$runpath"; then
10882 ld_switch_run="${dash_r}${runpath}"
10884 if test "$GCC" = "yes"; then
10885 set x $ld_switch_run; shift; ld_switch_run=""
10886 while test -n "$1"; do
10888 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10889 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10891 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10896 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10903 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
10905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10906 echo "configure:10907: checking for $ac_func" >&5
10908 cat > conftest.$ac_ext <<EOF
10909 #line 10910 "configure"
10910 #include "confdefs.h"
10911 /* System header to define __stub macros and hopefully few prototypes,
10912 which can conflict with char $ac_func(); below. */
10913 #include <assert.h>
10914 /* Override any gcc2 internal prototype to avoid an error. */
10915 /* We use char because int might match the return type of a gcc2
10916 builtin and then its argument prototype would still apply. */
10921 /* The GNU C library defines this for functions which it implements
10922 to always fail with ENOSYS. Some functions are actually named
10923 something starting with __ and the normal name is an alias. */
10924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10932 if { (eval echo configure:10933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10934 eval "ac_cv_func_$ac_func=yes"
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10939 eval "ac_cv_func_$ac_func=no"
10943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10946 { test "$extra_verbose" = "yes" && cat << EOF
10947 Defining $ac_tr_func
10949 cat >> confdefs.h <<EOF
10950 #define $ac_tr_func 1
10955 echo "$ac_t""no" 1>&6
10960 if test "$ac_cv_func_getaddrinfo" != "no" ; then
10963 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
10964 ac_cv_func_getaddrinfo=no
10970 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10973 echo "configure:10974: checking for $ac_func" >&5
10975 cat > conftest.$ac_ext <<EOF
10976 #line 10977 "configure"
10977 #include "confdefs.h"
10978 /* System header to define __stub macros and hopefully few prototypes,
10979 which can conflict with char $ac_func(); below. */
10980 #include <assert.h>
10981 /* Override any gcc2 internal prototype to avoid an error. */
10982 /* We use char because int might match the return type of a gcc2
10983 builtin and then its argument prototype would still apply. */
10988 /* The GNU C library defines this for functions which it implements
10989 to always fail with ENOSYS. Some functions are actually named
10990 something starting with __ and the normal name is an alias. */
10991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10999 if { (eval echo configure:11000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11001 eval "ac_cv_func_$ac_func=yes"
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
11006 eval "ac_cv_func_$ac_func=no"
11010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11011 echo "$ac_t""yes" 1>&6
11012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11013 { test "$extra_verbose" = "yes" && cat << EOF
11014 Defining $ac_tr_func
11016 cat >> confdefs.h <<EOF
11017 #define $ac_tr_func 1
11022 echo "$ac_t""no" 1>&6
11027 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11028 echo "configure:11029: checking for openpty" >&5
11030 cat > conftest.$ac_ext <<EOF
11031 #line 11032 "configure"
11032 #include "confdefs.h"
11033 /* System header to define __stub macros and hopefully few prototypes,
11034 which can conflict with char openpty(); below. */
11035 #include <assert.h>
11036 /* Override any gcc2 internal prototype to avoid an error. */
11037 /* We use char because int might match the return type of a gcc2
11038 builtin and then its argument prototype would still apply. */
11043 /* The GNU C library defines this for functions which it implements
11044 to always fail with ENOSYS. Some functions are actually named
11045 something starting with __ and the normal name is an alias. */
11046 #if defined (__stub_openpty) || defined (__stub___openpty)
11054 if { (eval echo configure:11055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11056 eval "ac_cv_func_openpty=yes"
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11061 eval "ac_cv_func_openpty=no"
11065 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11066 echo "$ac_t""yes" 1>&6
11069 echo "$ac_t""no" 1>&6
11072 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11073 echo "configure:11074: checking for openpty in -lutil" >&5
11074 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11076 xe_check_libs=" -lutil "
11077 cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11080 /* Override any gcc2 internal prototype to avoid an error. */
11081 /* We use char because int might match the return type of a gcc2
11082 builtin and then its argument prototype would still apply. */
11089 if { (eval echo configure:11090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11091 eval "ac_cv_lib_$ac_lib_var=yes"
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11096 eval "ac_cv_lib_$ac_lib_var=no"
11101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11102 echo "$ac_t""yes" 1>&6
11103 have_openpty=yes need_libutil=yes
11105 echo "$ac_t""no" 1>&6
11111 if test "$have_openpty" = "yes"; then
11112 { test "$extra_verbose" = "yes" && cat << \EOF
11113 Defining HAVE_OPENPTY
11115 cat >> confdefs.h <<\EOF
11116 #define HAVE_OPENPTY 1
11120 for ac_hdr in pty.h libutil.h util.h
11122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11124 echo "configure:11125: checking for $ac_hdr" >&5
11126 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11132 { (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11134 if test -z "$ac_err"; then
11136 eval "ac_cv_header_$ac_safe=yes"
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11142 eval "ac_cv_header_$ac_safe=no"
11145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11148 { test "$extra_verbose" = "yes" && cat << EOF
11149 Defining $ac_tr_hdr
11151 cat >> confdefs.h <<EOF
11152 #define $ac_tr_hdr 1
11157 echo "$ac_t""no" 1>&6
11161 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11164 for ac_hdr in stropts.h
11166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11168 echo "configure:11169: checking for $ac_hdr" >&5
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11176 { (eval echo configure:11177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11178 if test -z "$ac_err"; then
11180 eval "ac_cv_header_$ac_safe=yes"
11183 echo "configure: failed program was:" >&5
11184 cat conftest.$ac_ext >&5
11186 eval "ac_cv_header_$ac_safe=no"
11189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11190 echo "$ac_t""yes" 1>&6
11191 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11192 { test "$extra_verbose" = "yes" && cat << EOF
11193 Defining $ac_tr_hdr
11195 cat >> confdefs.h <<EOF
11196 #define $ac_tr_hdr 1
11201 echo "$ac_t""no" 1>&6
11205 if test "$ac_cv_header_stropts_h" = "yes"; then
11206 for ac_func in isastream
11208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11209 echo "configure:11210: checking for $ac_func" >&5
11211 cat > conftest.$ac_ext <<EOF
11212 #line 11213 "configure"
11213 #include "confdefs.h"
11214 /* System header to define __stub macros and hopefully few prototypes,
11215 which can conflict with char $ac_func(); below. */
11216 #include <assert.h>
11217 /* Override any gcc2 internal prototype to avoid an error. */
11218 /* We use char because int might match the return type of a gcc2
11219 builtin and then its argument prototype would still apply. */
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11235 if { (eval echo configure:11236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11237 eval "ac_cv_func_$ac_func=yes"
11239 echo "configure: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11242 eval "ac_cv_func_$ac_func=no"
11246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11247 echo "$ac_t""yes" 1>&6
11248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11249 { test "$extra_verbose" = "yes" && cat << EOF
11250 Defining $ac_tr_func
11252 cat >> confdefs.h <<EOF
11253 #define $ac_tr_func 1
11258 echo "$ac_t""no" 1>&6
11262 for ac_hdr in strtio.h
11264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11266 echo "configure:11267: checking for $ac_hdr" >&5
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11274 { (eval echo configure:11275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11276 if test -z "$ac_err"; then
11278 eval "ac_cv_header_$ac_safe=yes"
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11284 eval "ac_cv_header_$ac_safe=no"
11287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11290 { test "$extra_verbose" = "yes" && cat << EOF
11291 Defining $ac_tr_hdr
11293 cat >> confdefs.h <<EOF
11294 #define $ac_tr_hdr 1
11299 echo "$ac_t""no" 1>&6
11304 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11305 echo " xemacs will be linked with \"realpath.o\""
11308 for ac_func in getloadavg
11310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11311 echo "configure:11312: checking for $ac_func" >&5
11313 cat > conftest.$ac_ext <<EOF
11314 #line 11315 "configure"
11315 #include "confdefs.h"
11316 /* System header to define __stub macros and hopefully few prototypes,
11317 which can conflict with char $ac_func(); below. */
11318 #include <assert.h>
11319 /* Override any gcc2 internal prototype to avoid an error. */
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11326 /* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11337 if { (eval echo configure:11338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11339 eval "ac_cv_func_$ac_func=yes"
11341 echo "configure: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11344 eval "ac_cv_func_$ac_func=no"
11348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11349 echo "$ac_t""yes" 1>&6
11350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11351 { test "$extra_verbose" = "yes" && cat << EOF
11352 Defining $ac_tr_func
11354 cat >> confdefs.h <<EOF
11355 #define $ac_tr_func 1
11360 echo "$ac_t""no" 1>&6
11365 if test "$ac_cv_func_getloadavg" = "yes"; then
11366 for ac_hdr in sys/loadavg.h
11368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11370 echo "configure:11371: checking for $ac_hdr" >&5
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11378 { (eval echo configure:11379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11380 if test -z "$ac_err"; then
11382 eval "ac_cv_header_$ac_safe=yes"
11385 echo "configure: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11388 eval "ac_cv_header_$ac_safe=no"
11391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11392 echo "$ac_t""yes" 1>&6
11393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11394 { test "$extra_verbose" = "yes" && cat << EOF
11395 Defining $ac_tr_hdr
11397 cat >> confdefs.h <<EOF
11398 #define $ac_tr_hdr 1
11403 echo "$ac_t""no" 1>&6
11408 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11409 echo " xemacs will be linked with \"getloadavg.o\""
11413 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11414 echo "configure:11415: checking for kstat_open in -lkstat" >&5
11415 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11417 xe_check_libs=" -lkstat "
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11421 /* Override any gcc2 internal prototype to avoid an error. */
11422 /* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */
11430 if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11432 eval "ac_cv_lib_$ac_lib_var=yes"
11434 echo "configure: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11437 eval "ac_cv_lib_$ac_lib_var=no"
11442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11443 echo "$ac_t""yes" 1>&6
11444 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11446 { test "$extra_verbose" = "yes" && cat << EOF
11447 Defining $ac_tr_lib
11449 cat >> confdefs.h <<EOF
11450 #define $ac_tr_lib 1
11454 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11457 echo "$ac_t""no" 1>&6
11461 for ac_hdr in kstat.h
11463 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11465 echo "configure:11466: checking for $ac_hdr" >&5
11467 cat > conftest.$ac_ext <<EOF
11468 #line 11469 "configure"
11469 #include "confdefs.h"
11472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11473 { (eval echo configure:11474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11475 if test -z "$ac_err"; then
11477 eval "ac_cv_header_$ac_safe=yes"
11480 echo "configure: failed program was:" >&5
11481 cat conftest.$ac_ext >&5
11483 eval "ac_cv_header_$ac_safe=no"
11486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11487 echo "$ac_t""yes" 1>&6
11488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11489 { test "$extra_verbose" = "yes" && cat << EOF
11490 Defining $ac_tr_hdr
11492 cat >> confdefs.h <<EOF
11493 #define $ac_tr_hdr 1
11498 echo "$ac_t""no" 1>&6
11504 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11505 echo "configure:11506: checking for kvm_read in -lkvm" >&5
11506 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11508 xe_check_libs=" -lkvm "
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11512 /* Override any gcc2 internal prototype to avoid an error. */
11513 /* We use char because int might match the return type of a gcc2
11514 builtin and then its argument prototype would still apply. */
11521 if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11523 eval "ac_cv_lib_$ac_lib_var=yes"
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11528 eval "ac_cv_lib_$ac_lib_var=no"
11533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11534 echo "$ac_t""yes" 1>&6
11535 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11537 { test "$extra_verbose" = "yes" && cat << EOF
11538 Defining $ac_tr_lib
11540 cat >> confdefs.h <<EOF
11541 #define $ac_tr_lib 1
11545 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11548 echo "$ac_t""no" 1>&6
11554 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11555 echo "configure:11556: checking whether netdb declares h_errno" >&5
11556 cat > conftest.$ac_ext <<EOF
11557 #line 11558 "configure"
11558 #include "confdefs.h"
11564 if { (eval echo configure:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11566 echo "$ac_t""yes" 1>&6
11567 { test "$extra_verbose" = "yes" && cat << \EOF
11568 Defining HAVE_H_ERRNO
11570 cat >> confdefs.h <<\EOF
11571 #define HAVE_H_ERRNO 1
11576 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11579 echo "$ac_t""no" 1>&6
11583 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11584 echo "configure:11585: checking for sigsetjmp" >&5
11585 cat > conftest.$ac_ext <<EOF
11586 #line 11587 "configure"
11587 #include "confdefs.h"
11588 #include <setjmp.h>
11590 sigjmp_buf bar; sigsetjmp (bar, 0);
11593 if { (eval echo configure:11594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11595 echo "$ac_t""yes" 1>&6
11596 { test "$extra_verbose" = "yes" && cat << \EOF
11597 Defining HAVE_SIGSETJMP
11599 cat >> confdefs.h <<\EOF
11600 #define HAVE_SIGSETJMP 1
11605 echo "configure: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11608 echo "$ac_t""no" 1>&6
11612 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11613 echo "configure:11614: checking whether localtime caches TZ" >&5
11615 if test "$ac_cv_func_tzset" = "yes"; then
11616 cat > conftest.$ac_ext <<EOF
11617 #line 11618 "configure"
11618 #include "confdefs.h"
11621 # include <stdlib.h>
11623 extern char **environ;
11627 for (to = from = environ; (*to = *from); from++)
11628 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11631 char TZ_GMT0[] = "TZ=GMT0";
11632 char TZ_PST8[] = "TZ=PST8";
11635 time_t now = time ((time_t *) 0);
11636 int hour_GMT0, hour_unset;
11637 if (putenv (TZ_GMT0) != 0)
11639 hour_GMT0 = localtime (&now)->tm_hour;
11641 hour_unset = localtime (&now)->tm_hour;
11642 if (putenv (TZ_PST8) != 0)
11644 if (localtime (&now)->tm_hour == hour_GMT0)
11647 if (localtime (&now)->tm_hour != hour_unset)
11652 if { (eval echo configure:11653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11654 emacs_cv_localtime_cache=no
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11660 emacs_cv_localtime_cache=yes
11664 # If we lack tzset, report that localtime does not cache TZ,
11665 # since we can't invalidate the cache if we don't have tzset.
11666 emacs_cv_localtime_cache=no
11668 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11669 if test $emacs_cv_localtime_cache = yes; then
11670 { test "$extra_verbose" = "yes" && cat << \EOF
11671 Defining LOCALTIME_CACHE
11673 cat >> confdefs.h <<\EOF
11674 #define LOCALTIME_CACHE 1
11680 if test "$HAVE_TIMEVAL" = "yes"; then
11681 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11682 echo "configure:11683: checking whether gettimeofday accepts one or two arguments" >&5
11683 cat > conftest.$ac_ext <<EOF
11684 #line 11685 "configure"
11685 #include "confdefs.h"
11687 #ifdef TIME_WITH_SYS_TIME
11688 #include <sys/time.h>
11691 #ifdef HAVE_SYS_TIME_H
11692 #include <sys/time.h>
11700 struct timeval time;
11701 gettimeofday (&time, 0);
11705 if { (eval echo configure:11706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11707 echo "$ac_t""two" 1>&6
11709 echo "configure: failed program was:" >&5
11710 cat conftest.$ac_ext >&5
11712 echo "$ac_t""one" 1>&6
11713 { test "$extra_verbose" = "yes" && cat << \EOF
11714 Defining GETTIMEOFDAY_ONE_ARGUMENT
11716 cat >> confdefs.h <<\EOF
11717 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11726 echo $ac_n "checking for inline""... $ac_c" 1>&6
11727 echo "configure:11728: checking for inline" >&5
11730 for ac_kw in inline __inline__ __inline; do
11731 cat > conftest.$ac_ext <<EOF
11732 #line 11733 "configure"
11733 #include "confdefs.h"
11739 if { (eval echo configure:11740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11741 ac_cv_c_inline=$ac_kw; break
11743 echo "configure: failed program was:" >&5
11744 cat conftest.$ac_ext >&5
11750 echo "$ac_t""$ac_cv_c_inline" 1>&6
11751 case "$ac_cv_c_inline" in
11753 no) { test "$extra_verbose" = "yes" && cat << \EOF
11756 cat >> confdefs.h <<\EOF
11761 *) { test "$extra_verbose" = "yes" && cat << EOF
11762 Defining inline = $ac_cv_c_inline
11764 cat >> confdefs.h <<EOF
11765 #define inline $ac_cv_c_inline
11771 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11772 echo " xemacs will be linked with \"inline.o\""
11776 if test "$__DECC" != "yes"; then
11777 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11778 # for constant arguments. Useless!
11779 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11780 echo "configure:11781: checking for working alloca.h" >&5
11782 cat > conftest.$ac_ext <<EOF
11783 #line 11784 "configure"
11784 #include "confdefs.h"
11785 #include <alloca.h>
11787 char *p = alloca(2 * sizeof(int));
11790 if { (eval echo configure:11791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11792 ac_cv_header_alloca_h=yes
11794 echo "configure: failed program was:" >&5
11795 cat conftest.$ac_ext >&5
11797 ac_cv_header_alloca_h=no
11801 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11802 if test $ac_cv_header_alloca_h = yes; then
11803 { test "$extra_verbose" = "yes" && cat << \EOF
11804 Defining HAVE_ALLOCA_H
11806 cat >> confdefs.h <<\EOF
11807 #define HAVE_ALLOCA_H 1
11813 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11814 echo "configure:11815: checking for alloca" >&5
11816 cat > conftest.$ac_ext <<EOF
11817 #line 11818 "configure"
11818 #include "confdefs.h"
11821 # define alloca __builtin_alloca
11824 # include <malloc.h>
11825 # define alloca _alloca
11828 # include <alloca.h>
11833 # ifndef alloca /* predefined by HP cc +Olibcalls */
11842 char *p = (char *) alloca(1);
11845 if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11847 ac_cv_func_alloca_works=yes
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11852 ac_cv_func_alloca_works=no
11856 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11857 if test $ac_cv_func_alloca_works = yes; then
11858 { test "$extra_verbose" = "yes" && cat << \EOF
11859 Defining HAVE_ALLOCA
11861 cat >> confdefs.h <<\EOF
11862 #define HAVE_ALLOCA 1
11868 if test $ac_cv_func_alloca_works = no; then
11869 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11870 # that cause trouble. Some versions do not even contain alloca or
11871 # contain a buggy version. If you still want to use their alloca,
11872 # use ar to extract alloca.o from them instead of compiling alloca.c.
11873 ALLOCA=alloca.${ac_objext}
11874 { test "$extra_verbose" = "yes" && cat << \EOF
11877 cat >> confdefs.h <<\EOF
11883 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11884 echo "configure:11885: checking whether alloca needs Cray hooks" >&5
11886 cat > conftest.$ac_ext <<EOF
11887 #line 11888 "configure"
11888 #include "confdefs.h"
11889 #if defined(CRAY) && ! defined(CRAY2)
11896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11897 egrep "webecray" >/dev/null 2>&1; then
11907 echo "$ac_t""$ac_cv_os_cray" 1>&6
11908 if test $ac_cv_os_cray = yes; then
11909 for ac_func in _getb67 GETB67 getb67; do
11910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11911 echo "configure:11912: checking for $ac_func" >&5
11913 cat > conftest.$ac_ext <<EOF
11914 #line 11915 "configure"
11915 #include "confdefs.h"
11916 /* System header to define __stub macros and hopefully few prototypes,
11917 which can conflict with char $ac_func(); below. */
11918 #include <assert.h>
11919 /* Override any gcc2 internal prototype to avoid an error. */
11920 /* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11926 /* The GNU C library defines this for functions which it implements
11927 to always fail with ENOSYS. Some functions are actually named
11928 something starting with __ and the normal name is an alias. */
11929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11937 if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11939 eval "ac_cv_func_$ac_func=yes"
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11944 eval "ac_cv_func_$ac_func=no"
11948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11949 echo "$ac_t""yes" 1>&6
11950 { test "$extra_verbose" = "yes" && cat << EOF
11951 Defining CRAY_STACKSEG_END = $ac_func
11953 cat >> confdefs.h <<EOF
11954 #define CRAY_STACKSEG_END $ac_func
11960 echo "$ac_t""no" 1>&6
11966 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11967 echo "configure:11968: checking stack direction for C alloca" >&5
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11972 find_stack_direction ()
11974 static char *addr = 0;
11979 return find_stack_direction ();
11982 return (&dummy > addr) ? 1 : -1;
11986 exit (find_stack_direction() < 0);
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11991 ac_cv_c_stack_direction=1
11994 echo "configure: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11997 ac_cv_c_stack_direction=-1
12001 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
12002 { test "$extra_verbose" = "yes" && cat << EOF
12003 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
12005 cat >> confdefs.h <<EOF
12006 #define STACK_DIRECTION $ac_cv_c_stack_direction
12012 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
12013 echo " xemacs will be linked with \"$ALLOCA\""
12017 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12018 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12019 echo "configure:12020: checking for vfork.h" >&5
12021 cat > conftest.$ac_ext <<EOF
12022 #line 12023 "configure"
12023 #include "confdefs.h"
12026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12027 { (eval echo configure:12028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12029 if test -z "$ac_err"; then
12031 eval "ac_cv_header_$ac_safe=yes"
12034 echo "configure: failed program was:" >&5
12035 cat conftest.$ac_ext >&5
12037 eval "ac_cv_header_$ac_safe=no"
12040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12041 echo "$ac_t""yes" 1>&6
12042 { test "$extra_verbose" = "yes" && cat << \EOF
12043 Defining HAVE_VFORK_H
12045 cat >> confdefs.h <<\EOF
12046 #define HAVE_VFORK_H 1
12051 echo "$ac_t""no" 1>&6
12054 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12055 echo "configure:12056: checking for working vfork" >&5
12057 cat > conftest.$ac_ext <<EOF
12058 #line 12059 "configure"
12059 #include "confdefs.h"
12060 /* Thanks to Paul Eggert for this test. */
12062 #include <sys/types.h>
12063 #include <sys/stat.h>
12064 #ifdef HAVE_UNISTD_H
12065 #include <unistd.h>
12067 #ifdef HAVE_VFORK_H
12070 /* On some sparc systems, changes by the child to local and incoming
12071 argument registers are propagated back to the parent.
12072 The compiler is told about this with #include <vfork.h>,
12073 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12074 Test for this by using a static variable whose address
12075 is put into a register that is clobbered by the vfork. */
12078 sparc_address_test (int arg)
12080 sparc_address_test (arg) int arg;
12083 static pid_t child;
12098 pid_t parent = getpid ();
12101 sparc_address_test ();
12106 /* Here is another test for sparc vfork register problems.
12107 This test uses lots of local variables, at least
12108 as many local variables as main has allocated so far
12109 including compiler temporaries. 4 locals are enough for
12110 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12111 A buggy compiler should reuse the register of parent
12112 for one of the local variables, since it will think that
12113 parent can't possibly be used any more in this routine.
12114 Assigning to the local variable will thus munge parent
12115 in the parent process. */
12117 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12118 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12119 /* Convince the compiler that p..p7 are live; otherwise, it might
12120 use the same hardware register for all 8 local variables. */
12121 if (p != p1 || p != p2 || p != p3 || p != p4
12122 || p != p5 || p != p6 || p != p7)
12125 /* On some systems (e.g. IRIX 3.3),
12126 vfork doesn't separate parent from child file descriptors.
12127 If the child closes a descriptor before it execs or exits,
12128 this munges the parent's descriptor as well.
12129 Test for this by closing stdout in the child. */
12130 _exit(close(fileno(stdout)) != 0);
12135 while (wait(&status) != child)
12138 /* Was there some problem with vforking? */
12141 /* Did the child fail? (This shouldn't happen.) */
12144 /* Did the vfork/compiler bug occur? */
12145 || parent != getpid()
12147 /* Did the file descriptor bug occur? */
12148 || fstat(fileno(stdout), &st) != 0
12153 if { (eval echo configure:12154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12155 ac_cv_func_vfork_works=yes
12158 echo "configure: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12161 ac_cv_func_vfork_works=no
12165 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12166 if test $ac_cv_func_vfork_works = no; then
12167 { test "$extra_verbose" = "yes" && cat << \EOF
12168 Defining vfork = fork
12170 cat >> confdefs.h <<\EOF
12178 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12179 echo "configure:12180: checking for working strcoll" >&5
12181 cat > conftest.$ac_ext <<EOF
12182 #line 12183 "configure"
12183 #include "confdefs.h"
12184 #include <string.h>
12187 exit (strcoll ("abc", "def") >= 0 ||
12188 strcoll ("ABC", "DEF") >= 0 ||
12189 strcoll ("123", "456") >= 0);
12192 if { (eval echo configure:12193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12194 ac_cv_func_strcoll_works=yes
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12200 ac_cv_func_strcoll_works=no
12204 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12205 if test $ac_cv_func_strcoll_works = yes; then
12206 { test "$extra_verbose" = "yes" && cat << \EOF
12207 Defining HAVE_STRCOLL
12209 cat >> confdefs.h <<\EOF
12210 #define HAVE_STRCOLL 1
12217 for ac_func in getpgrp
12219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12220 echo "configure:12221: checking for $ac_func" >&5
12222 cat > conftest.$ac_ext <<EOF
12223 #line 12224 "configure"
12224 #include "confdefs.h"
12225 /* System header to define __stub macros and hopefully few prototypes,
12226 which can conflict with char $ac_func(); below. */
12227 #include <assert.h>
12228 /* Override any gcc2 internal prototype to avoid an error. */
12229 /* We use char because int might match the return type of a gcc2
12230 builtin and then its argument prototype would still apply. */
12235 /* The GNU C library defines this for functions which it implements
12236 to always fail with ENOSYS. Some functions are actually named
12237 something starting with __ and the normal name is an alias. */
12238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12248 eval "ac_cv_func_$ac_func=yes"
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12253 eval "ac_cv_func_$ac_func=no"
12257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12258 echo "$ac_t""yes" 1>&6
12259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12260 { test "$extra_verbose" = "yes" && cat << EOF
12261 Defining $ac_tr_func
12263 cat >> confdefs.h <<EOF
12264 #define $ac_tr_func 1
12269 echo "$ac_t""no" 1>&6
12273 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12274 echo "configure:12275: checking whether getpgrp takes no argument" >&5
12276 cat > conftest.$ac_ext <<EOF
12277 #line 12278 "configure"
12278 #include "confdefs.h"
12281 * If this system has a BSD-style getpgrp(),
12282 * which takes a pid argument, exit unsuccessfully.
12284 * Snarfed from Chet Ramey's bash pgrp.c test program
12287 #include <sys/types.h>
12290 int pg1, pg2, pg3, pg4;
12291 int ng, np, s, child;
12298 pg3 = getpgrp(pid);
12302 * If all of these values are the same, it's pretty sure that
12303 * we're on a system that ignores getpgrp's first argument.
12305 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12311 else if (child == 0) {
12314 * If this is Sys V, this will not work; pgrp will be
12315 * set to np because setpgrp just changes a pgrp to be
12316 * the same as the pid.
12319 ng = getpgrp(0); /* Same result for Sys V and BSD */
12332 if { (eval echo configure:12333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12334 ac_cv_func_getpgrp_void=yes
12337 echo "configure: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12340 ac_cv_func_getpgrp_void=no
12345 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12346 if test $ac_cv_func_getpgrp_void = yes; then
12347 { test "$extra_verbose" = "yes" && cat << \EOF
12348 Defining GETPGRP_VOID
12350 cat >> confdefs.h <<\EOF
12351 #define GETPGRP_VOID 1
12358 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12359 echo "configure:12360: checking for working mmap" >&5
12360 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12361 cat > conftest.$ac_ext <<EOF
12362 #line 12363 "configure"
12363 #include "confdefs.h"
12365 #include <unistd.h>
12367 #include <sys/mman.h>
12369 #ifndef MAP_VARIABLE
12370 #define MAP_VARIABLE 0
12374 #define MAP_FAILED -1
12377 int main (int argc, char *argv[])
12381 #ifndef MAP_ANONYMOUS
12382 fd = open ("/dev/zero", O_RDWR);
12385 #define MAP_ANONYMOUS 0
12387 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12388 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12389 fd, 0) != (void *) MAP_FAILED)
12391 perror ("conftest: mmap failed");
12395 if { (eval echo configure:12396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12400 echo "configure: failed program was:" >&5
12401 cat conftest.$ac_ext >&5
12405 rm -fr conftest* ;;
12407 echo "$ac_t""$have_mmap" 1>&6
12408 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12411 cat >> confdefs.h <<\EOF
12412 #define HAVE_MMAP 1
12417 case "$opsys" in cygwin*)
12418 test "$rel_alloc" = "default" && rel_alloc=no ;;
12420 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12421 if test "$rel_alloc $have_mmap" = "default yes"; then
12422 if test "$doug_lea_malloc" = "yes"; then
12423 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12424 echo "configure:12425: checking for M_MMAP_THRESHOLD" >&5
12425 cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12428 #include <malloc.h>
12431 #ifndef M_MMAP_THRESHOLD
12432 #error No M_MMAP_THRESHOLD :-(
12433 !@+$%^&*_)(_ - unlikely to compile...
12438 if { (eval echo configure:12439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12440 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12442 echo "configure: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12445 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12452 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12455 cat >> confdefs.h <<\EOF
12456 #define REL_ALLOC 1
12461 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12462 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12463 echo "configure:12464: checking for termios.h" >&5
12465 cat > conftest.$ac_ext <<EOF
12466 #line 12467 "configure"
12467 #include "confdefs.h"
12468 #include <termios.h>
12470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12471 { (eval echo configure:12472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12473 if test -z "$ac_err"; then
12475 eval "ac_cv_header_$ac_safe=yes"
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12481 eval "ac_cv_header_$ac_safe=no"
12484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12485 echo "$ac_t""yes" 1>&6
12486 { test "$extra_verbose" = "yes" && cat << \EOF
12487 Defining HAVE_TERMIOS
12489 cat >> confdefs.h <<\EOF
12490 #define HAVE_TERMIOS 1
12494 { test "$extra_verbose" = "yes" && cat << \EOF
12495 Defining SIGNALS_VIA_CHARACTERS
12497 cat >> confdefs.h <<\EOF
12498 #define SIGNALS_VIA_CHARACTERS 1
12502 { test "$extra_verbose" = "yes" && cat << \EOF
12505 cat >> confdefs.h <<\EOF
12506 #define NO_TERMIO 1
12511 echo "$ac_t""no" 1>&6
12512 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12513 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12514 echo "configure:12515: checking for termio.h" >&5
12516 cat > conftest.$ac_ext <<EOF
12517 #line 12518 "configure"
12518 #include "confdefs.h"
12519 #include <termio.h>
12521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12522 { (eval echo configure:12523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12524 if test -z "$ac_err"; then
12526 eval "ac_cv_header_$ac_safe=yes"
12529 echo "configure: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12532 eval "ac_cv_header_$ac_safe=no"
12535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12536 echo "$ac_t""yes" 1>&6
12537 { test "$extra_verbose" = "yes" && cat << \EOF
12538 Defining HAVE_TERMIO
12540 cat >> confdefs.h <<\EOF
12541 #define HAVE_TERMIO 1
12546 echo "$ac_t""no" 1>&6
12553 echo $ac_n "checking for socket""... $ac_c" 1>&6
12554 echo "configure:12555: checking for socket" >&5
12556 cat > conftest.$ac_ext <<EOF
12557 #line 12558 "configure"
12558 #include "confdefs.h"
12559 /* System header to define __stub macros and hopefully few prototypes,
12560 which can conflict with char socket(); below. */
12561 #include <assert.h>
12562 /* Override any gcc2 internal prototype to avoid an error. */
12563 /* We use char because int might match the return type of a gcc2
12564 builtin and then its argument prototype would still apply. */
12569 /* The GNU C library defines this for functions which it implements
12570 to always fail with ENOSYS. Some functions are actually named
12571 something starting with __ and the normal name is an alias. */
12572 #if defined (__stub_socket) || defined (__stub___socket)
12580 if { (eval echo configure:12581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12582 eval "ac_cv_func_socket=yes"
12584 echo "configure: failed program was:" >&5
12585 cat conftest.$ac_ext >&5
12587 eval "ac_cv_func_socket=no"
12591 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12592 echo "$ac_t""yes" 1>&6
12593 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12594 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12595 echo "configure:12596: checking for netinet/in.h" >&5
12597 cat > conftest.$ac_ext <<EOF
12598 #line 12599 "configure"
12599 #include "confdefs.h"
12600 #include <netinet/in.h>
12602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12603 { (eval echo configure:12604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12605 if test -z "$ac_err"; then
12607 eval "ac_cv_header_$ac_safe=yes"
12610 echo "configure: failed program was:" >&5
12611 cat conftest.$ac_ext >&5
12613 eval "ac_cv_header_$ac_safe=no"
12616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12617 echo "$ac_t""yes" 1>&6
12618 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12619 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12620 echo "configure:12621: checking for arpa/inet.h" >&5
12622 cat > conftest.$ac_ext <<EOF
12623 #line 12624 "configure"
12624 #include "confdefs.h"
12625 #include <arpa/inet.h>
12627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12628 { (eval echo configure:12629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12630 if test -z "$ac_err"; then
12632 eval "ac_cv_header_$ac_safe=yes"
12635 echo "configure: failed program was:" >&5
12636 cat conftest.$ac_ext >&5
12638 eval "ac_cv_header_$ac_safe=no"
12641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12644 { test "$extra_verbose" = "yes" && cat << \EOF
12645 Defining HAVE_SOCKETS
12647 cat >> confdefs.h <<\EOF
12648 #define HAVE_SOCKETS 1
12652 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12653 echo "configure:12654: checking "for sun_len member in struct sockaddr_un"" >&5
12654 cat > conftest.$ac_ext <<EOF
12655 #line 12656 "configure"
12656 #include "confdefs.h"
12658 #include <sys/types.h>
12659 #include <sys/socket.h>
12660 #include <sys/un.h>
12663 static struct sockaddr_un x; x.sun_len = 1;
12666 if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12668 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12669 Defining HAVE_SOCKADDR_SUN_LEN
12671 cat >> confdefs.h <<\EOF
12672 #define HAVE_SOCKADDR_SUN_LEN 1
12677 echo "configure: failed program was:" >&5
12678 cat conftest.$ac_ext >&5
12680 echo "$ac_t""no" 1>&6
12683 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12684 echo "configure:12685: checking "for ip_mreq struct in netinet/in.h"" >&5
12685 cat > conftest.$ac_ext <<EOF
12686 #line 12687 "configure"
12687 #include "confdefs.h"
12689 #include <sys/types.h>
12690 #include <netinet/in.h>
12693 static struct ip_mreq x;
12696 if { (eval echo configure:12697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12698 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12699 Defining HAVE_MULTICAST
12701 cat >> confdefs.h <<\EOF
12702 #define HAVE_MULTICAST 1
12707 echo "configure: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12710 echo "$ac_t""no" 1>&6
12714 echo "$ac_t""no" 1>&6
12718 echo "$ac_t""no" 1>&6
12722 echo "$ac_t""no" 1>&6
12726 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12727 echo "configure:12728: checking for msgget" >&5
12729 cat > conftest.$ac_ext <<EOF
12730 #line 12731 "configure"
12731 #include "confdefs.h"
12732 /* System header to define __stub macros and hopefully few prototypes,
12733 which can conflict with char msgget(); below. */
12734 #include <assert.h>
12735 /* Override any gcc2 internal prototype to avoid an error. */
12736 /* We use char because int might match the return type of a gcc2
12737 builtin and then its argument prototype would still apply. */
12742 /* The GNU C library defines this for functions which it implements
12743 to always fail with ENOSYS. Some functions are actually named
12744 something starting with __ and the normal name is an alias. */
12745 #if defined (__stub_msgget) || defined (__stub___msgget)
12753 if { (eval echo configure:12754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12755 eval "ac_cv_func_msgget=yes"
12757 echo "configure: failed program was:" >&5
12758 cat conftest.$ac_ext >&5
12760 eval "ac_cv_func_msgget=no"
12764 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12765 echo "$ac_t""yes" 1>&6
12766 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12767 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12768 echo "configure:12769: checking for sys/ipc.h" >&5
12770 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12773 #include <sys/ipc.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 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12792 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12793 echo "configure:12794: checking for sys/msg.h" >&5
12795 cat > conftest.$ac_ext <<EOF
12796 #line 12797 "configure"
12797 #include "confdefs.h"
12798 #include <sys/msg.h>
12800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12801 { (eval echo configure:12802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12803 if test -z "$ac_err"; then
12805 eval "ac_cv_header_$ac_safe=yes"
12808 echo "configure: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12811 eval "ac_cv_header_$ac_safe=no"
12814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12815 echo "$ac_t""yes" 1>&6
12816 { test "$extra_verbose" = "yes" && cat << \EOF
12817 Defining HAVE_SYSVIPC
12819 cat >> confdefs.h <<\EOF
12820 #define HAVE_SYSVIPC 1
12825 echo "$ac_t""no" 1>&6
12829 echo "$ac_t""no" 1>&6
12833 echo "$ac_t""no" 1>&6
12837 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12838 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12839 echo "configure:12840: checking for dirent.h" >&5
12841 cat > conftest.$ac_ext <<EOF
12842 #line 12843 "configure"
12843 #include "confdefs.h"
12844 #include <dirent.h>
12846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12847 { (eval echo configure:12848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12849 if test -z "$ac_err"; then
12851 eval "ac_cv_header_$ac_safe=yes"
12854 echo "configure: failed program was:" >&5
12855 cat conftest.$ac_ext >&5
12857 eval "ac_cv_header_$ac_safe=no"
12860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12861 echo "$ac_t""yes" 1>&6
12862 { test "$extra_verbose" = "yes" && cat << \EOF
12863 Defining SYSV_SYSTEM_DIR
12865 cat >> confdefs.h <<\EOF
12866 #define SYSV_SYSTEM_DIR 1
12871 echo "$ac_t""no" 1>&6
12872 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12873 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12874 echo "configure:12875: checking for sys/dir.h" >&5
12876 cat > conftest.$ac_ext <<EOF
12877 #line 12878 "configure"
12878 #include "confdefs.h"
12879 #include <sys/dir.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
12899 echo "$ac_t""no" 1>&6
12900 { test "$extra_verbose" = "yes" && cat << \EOF
12901 Defining NONSYSTEM_DIR_LIBRARY
12903 cat >> confdefs.h <<\EOF
12904 #define NONSYSTEM_DIR_LIBRARY 1
12913 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12914 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12915 echo "configure:12916: checking for nlist.h" >&5
12917 cat > conftest.$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12923 { (eval echo configure:12924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12925 if test -z "$ac_err"; then
12927 eval "ac_cv_header_$ac_safe=yes"
12930 echo "configure: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12933 eval "ac_cv_header_$ac_safe=no"
12936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12937 echo "$ac_t""yes" 1>&6
12938 { test "$extra_verbose" = "yes" && cat << \EOF
12939 Defining NLIST_STRUCT
12941 cat >> confdefs.h <<\EOF
12942 #define NLIST_STRUCT 1
12947 echo "$ac_t""no" 1>&6
12952 echo "checking "for sound support"" 1>&6
12953 echo "configure:12954: checking "for sound support"" >&5
12954 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12956 if test "$with_native_sound" != "no"; then
12957 if test -n "$native_sound_lib"; then
12958 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12959 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12960 echo "configure:12961: checking for multimedia/audio_device.h" >&5
12962 cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12965 #include <multimedia/audio_device.h>
12967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12968 { (eval echo configure:12969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12970 if test -z "$ac_err"; then
12972 eval "ac_cv_header_$ac_safe=yes"
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12978 eval "ac_cv_header_$ac_safe=no"
12981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12982 echo "$ac_t""yes" 1>&6
12983 sound_found=yes sound_cflags=""
12984 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12985 echo " xemacs will be linked with \"sunplay.o\""
12988 echo "$ac_t""no" 1>&6
12993 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12995 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12996 echo " xemacs will be linked with \"sunplay.o\""
12998 if test -d "/usr/demo/SOUND/include"
12999 then sound_cflags="-I/usr/demo/SOUND/include"
13000 else sound_cflags="-I/usr/demo/SOUND"
13002 if test -z "$native_sound_lib" ; then
13003 if test -r "/usr/demo/SOUND/lib/libaudio.a"
13004 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
13005 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
13010 if test -z "$sound_found"; then
13011 case "$canonical" in
13013 if test -z "$native_sound_lib"; then
13015 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13016 echo "configure:13017: checking for ALopenport in -laudio" >&5
13017 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13019 xe_check_libs=" -laudio "
13020 cat > conftest.$ac_ext <<EOF
13021 #line 13022 "configure"
13022 #include "confdefs.h"
13023 /* Override any gcc2 internal prototype to avoid an error. */
13024 /* We use char because int might match the return type of a gcc2
13025 builtin and then its argument prototype would still apply. */
13032 if { (eval echo configure:13033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13034 eval "ac_cv_lib_$ac_lib_var=yes"
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13039 eval "ac_cv_lib_$ac_lib_var=no"
13044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13045 echo "$ac_t""yes" 1>&6
13046 native_sound_lib="-laudio"
13048 echo "$ac_t""no" 1>&6
13053 if test -n "$native_sound_lib"; then
13054 sound_found=yes sound_cflags=""
13055 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13056 echo " xemacs will be linked with \"sgiplay.o\""
13060 if test -z "$native_sound_lib"; then
13062 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13063 echo "configure:13064: checking for AOpenAudio in -lAlib" >&5
13064 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13066 xe_check_libs=" -lAlib "
13067 cat > conftest.$ac_ext <<EOF
13068 #line 13069 "configure"
13069 #include "confdefs.h"
13070 /* Override any gcc2 internal prototype to avoid an error. */
13071 /* We use char because int might match the return type of a gcc2
13072 builtin and then its argument prototype would still apply. */
13079 if { (eval echo configure:13080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13081 eval "ac_cv_lib_$ac_lib_var=yes"
13083 echo "configure: failed program was:" >&5
13084 cat conftest.$ac_ext >&5
13086 eval "ac_cv_lib_$ac_lib_var=no"
13091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13092 echo "$ac_t""yes" 1>&6
13093 native_sound_lib="-lAlib"
13095 echo "$ac_t""no" 1>&6
13100 if test -n "$native_sound_lib"; then
13102 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13103 echo " xemacs will be linked with \"hpplay.o\""
13105 if test "$GCC" = "yes" # Kludge city
13106 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13107 else sound_cflags="+e -I/usr/audio/examples"
13113 if test -z "$sound_found"; then
13114 if test "$with_msw" = "yes"; then
13120 if test -z "$sound_found"; then
13121 for dir in "machine" "sys" "linux"; do
13122 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13123 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13124 echo "configure:13125: checking for ${dir}/soundcard.h" >&5
13126 cat > conftest.$ac_ext <<EOF
13127 #line 13128 "configure"
13128 #include "confdefs.h"
13129 #include <${dir}/soundcard.h>
13131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13132 { (eval echo configure:13133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13134 if test -z "$ac_err"; then
13136 eval "ac_cv_header_$ac_safe=yes"
13139 echo "configure: failed program was:" >&5
13140 cat conftest.$ac_ext >&5
13142 eval "ac_cv_header_$ac_safe=no"
13145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13146 echo "$ac_t""yes" 1>&6
13149 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13150 echo " xemacs will be linked with \"linuxplay.o\""
13152 { test "$extra_verbose" = "yes" && cat << EOF
13153 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13155 cat >> confdefs.h <<EOF
13156 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13162 echo "$ac_t""no" 1>&6
13168 test "$sound_found" = "yes" && with_native_sound=yes
13171 if test "$with_native_sound" = "yes"; then
13172 { test "$extra_verbose" = "yes" && cat << \EOF
13173 Defining HAVE_NATIVE_SOUND
13175 cat >> confdefs.h <<\EOF
13176 #define HAVE_NATIVE_SOUND 1
13180 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13183 if test "$with_nas_sound" != "no"; then
13184 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13185 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13186 echo "configure:13187: checking for audio/audiolib.h" >&5
13188 cat > conftest.$ac_ext <<EOF
13189 #line 13190 "configure"
13190 #include "confdefs.h"
13191 #include <audio/audiolib.h>
13193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13194 { (eval echo configure:13195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13196 if test -z "$ac_err"; then
13198 eval "ac_cv_header_$ac_safe=yes"
13201 echo "configure: failed program was:" >&5
13202 cat conftest.$ac_ext >&5
13204 eval "ac_cv_header_$ac_safe=no"
13207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13208 echo "$ac_t""yes" 1>&6
13211 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13212 echo "configure:13213: checking for AuOpenServer in -laudio" >&5
13213 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13215 xe_check_libs=" -laudio "
13216 cat > conftest.$ac_ext <<EOF
13217 #line 13218 "configure"
13218 #include "confdefs.h"
13219 /* Override any gcc2 internal prototype to avoid an error. */
13220 /* We use char because int might match the return type of a gcc2
13221 builtin and then its argument prototype would still apply. */
13222 char AuOpenServer();
13228 if { (eval echo configure:13229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13230 eval "ac_cv_lib_$ac_lib_var=yes"
13232 echo "configure: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13235 eval "ac_cv_lib_$ac_lib_var=no"
13240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13241 echo "$ac_t""yes" 1>&6
13244 echo "$ac_t""no" 1>&6
13249 echo "$ac_t""no" 1>&6
13252 if test "$have_nas_sound" = "yes"; then
13254 { test "$extra_verbose" = "yes" && cat << \EOF
13255 Defining HAVE_NAS_SOUND
13257 cat >> confdefs.h <<\EOF
13258 #define HAVE_NAS_SOUND 1
13262 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13263 echo " xemacs will be linked with \"nas.o\""
13265 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13266 cat > conftest.$ac_ext <<EOF
13267 #line 13268 "configure"
13268 #include "confdefs.h"
13269 #include <audio/Xtutil.h>
13271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13272 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13276 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13277 Defining NAS_NO_ERROR_JUMP
13279 cat >> confdefs.h <<\EOF
13280 #define NAS_NO_ERROR_JUMP 1
13288 test "$with_nas_sound" = "yes" && \
13289 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13294 if test "$with_esd_sound" != "no"; then
13295 # Extract the first word of "esd-config", so it can be a program name with args.
13296 set dummy esd-config; ac_word=$2
13297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13298 echo "configure:13299: checking for $ac_word" >&5
13300 if test -n "$have_esd_config"; then
13301 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13305 for ac_dir in $ac_dummy; do
13306 test -z "$ac_dir" && ac_dir=.
13307 if test -f $ac_dir/$ac_word; then
13308 ac_cv_prog_have_esd_config="yes"
13313 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13315 have_esd_config="$ac_cv_prog_have_esd_config"
13316 if test -n "$have_esd_config"; then
13317 echo "$ac_t""$have_esd_config" 1>&6
13319 echo "$ac_t""no" 1>&6
13322 if test "$have_esd_config" = "yes"; then
13323 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13324 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
13325 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13326 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13327 echo "configure:13328: checking for esd_play_stream" >&5
13329 cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 /* System header to define __stub macros and hopefully few prototypes,
13333 which can conflict with char esd_play_stream(); below. */
13334 #include <assert.h>
13335 /* Override any gcc2 internal prototype to avoid an error. */
13336 /* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13338 char esd_play_stream();
13342 /* The GNU C library defines this for functions which it implements
13343 to always fail with ENOSYS. Some functions are actually named
13344 something starting with __ and the normal name is an alias. */
13345 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13353 if { (eval echo configure:13354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13355 eval "ac_cv_func_esd_play_stream=yes"
13357 echo "configure: failed program was:" >&5
13358 cat conftest.$ac_ext >&5
13360 eval "ac_cv_func_esd_play_stream=no"
13364 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13365 echo "$ac_t""yes" 1>&6
13368 echo "$ac_t""no" 1>&6
13369 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13374 if test "$have_esd_sound" = "yes"; then
13377 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13378 echo " xemacs will be linked with \"esd.o\""
13380 { test "$extra_verbose" = "yes" && cat << \EOF
13381 Defining HAVE_ESD_SOUND
13383 cat >> confdefs.h <<\EOF
13384 #define HAVE_ESD_SOUND 1
13389 test "$with_esd_sound" = "yes" && \
13390 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13395 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13396 echo " xemacs will be linked with \"miscplay.o\""
13400 test -z "$with_tty" && with_tty=yes
13402 if test "$with_tty" = "yes" ; then
13403 echo "checking for TTY-related features" 1>&6
13404 echo "configure:13405: checking for TTY-related features" >&5
13405 { test "$extra_verbose" = "yes" && cat << \EOF
13408 cat >> confdefs.h <<\EOF
13413 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
13414 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\""
13417 if test -z "$with_ncurses"; then
13419 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13420 echo "configure:13421: checking for tgetent in -lncurses" >&5
13421 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13423 xe_check_libs=" -lncurses "
13424 cat > conftest.$ac_ext <<EOF
13425 #line 13426 "configure"
13426 #include "confdefs.h"
13427 /* Override any gcc2 internal prototype to avoid an error. */
13428 /* We use char because int might match the return type of a gcc2
13429 builtin and then its argument prototype would still apply. */
13436 if { (eval echo configure:13437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13438 eval "ac_cv_lib_$ac_lib_var=yes"
13440 echo "configure: failed program was:" >&5
13441 cat conftest.$ac_ext >&5
13443 eval "ac_cv_lib_$ac_lib_var=no"
13448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13449 echo "$ac_t""yes" 1>&6
13452 echo "$ac_t""no" 1>&6
13458 if test "$with_ncurses" = "yes"; then
13459 { test "$extra_verbose" = "yes" && cat << \EOF
13460 Defining HAVE_NCURSES
13462 cat >> confdefs.h <<\EOF
13463 #define HAVE_NCURSES 1
13467 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13468 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13469 echo "configure:13470: checking for ncurses/curses.h" >&5
13471 cat > conftest.$ac_ext <<EOF
13472 #line 13473 "configure"
13473 #include "confdefs.h"
13474 #include <ncurses/curses.h>
13476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13477 { (eval echo configure:13478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13479 if test -z "$ac_err"; then
13481 eval "ac_cv_header_$ac_safe=yes"
13484 echo "configure: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13487 eval "ac_cv_header_$ac_safe=no"
13490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13491 echo "$ac_t""yes" 1>&6
13492 curses_h_file=ncurses/curses.h
13494 echo "$ac_t""no" 1>&6
13497 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13498 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13499 echo "configure:13500: checking for ncurses/term.h" >&5
13501 cat > conftest.$ac_ext <<EOF
13502 #line 13503 "configure"
13503 #include "confdefs.h"
13504 #include <ncurses/term.h>
13506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13507 { (eval echo configure:13508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13509 if test -z "$ac_err"; then
13511 eval "ac_cv_header_$ac_safe=yes"
13514 echo "configure: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13517 eval "ac_cv_header_$ac_safe=no"
13520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13521 echo "$ac_t""yes" 1>&6
13522 term_h_file=ncurses/term.h
13524 echo "$ac_t""no" 1>&6
13527 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13528 echo " xemacs will be linked with \"terminfo.o\""
13530 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13532 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13533 save_c_switch_site="$c_switch_site"
13534 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13535 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13536 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13537 echo "configure:13538: checking for ncurses/curses.h" >&5
13539 cat > conftest.$ac_ext <<EOF
13540 #line 13541 "configure"
13541 #include "confdefs.h"
13542 #include <ncurses/curses.h>
13544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13545 { (eval echo configure:13546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13547 if test -z "$ac_err"; then
13549 eval "ac_cv_header_$ac_safe=yes"
13552 echo "configure: failed program was:" >&5
13553 cat conftest.$ac_ext >&5
13555 eval "ac_cv_header_$ac_safe=no"
13558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13559 echo "$ac_t""yes" 1>&6
13560 curses_h_file=ncurses/curses.h
13562 echo "$ac_t""no" 1>&6
13565 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13566 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13567 else c_switch_site="$save_c_switch_site"
13570 else if test "$have_terminfo" = "yes"; then
13571 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13572 echo " xemacs will be linked with \"terminfo.o\""
13574 if test -n "$libs_termcap"; then
13575 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13577 for lib in curses termlib termcap; do
13579 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13580 echo "configure:13581: checking for tgetent in -l$lib" >&5
13581 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13583 xe_check_libs=" -l$lib "
13584 cat > conftest.$ac_ext <<EOF
13585 #line 13586 "configure"
13586 #include "confdefs.h"
13587 /* Override any gcc2 internal prototype to avoid an error. */
13588 /* We use char because int might match the return type of a gcc2
13589 builtin and then its argument prototype would still apply. */
13596 if { (eval echo configure:13597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13598 eval "ac_cv_lib_$ac_lib_var=yes"
13600 echo "configure: failed program was:" >&5
13601 cat conftest.$ac_ext >&5
13603 eval "ac_cv_lib_$ac_lib_var=no"
13608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13609 echo "$ac_t""yes" 1>&6
13610 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13612 echo "$ac_t""no" 1>&6
13618 else if test -n "$libs_termcap" -a "$opsys" = "openbsd"; then
13620 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
13621 echo "configure:13622: checking for tgoto in -ltermcap" >&5
13622 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
13624 xe_check_libs=" -ltermcap "
13625 cat > conftest.$ac_ext <<EOF
13626 #line 13627 "configure"
13627 #include "confdefs.h"
13628 /* Override any gcc2 internal prototype to avoid an error. */
13629 /* We use char because int might match the return type of a gcc2
13630 builtin and then its argument prototype would still apply. */
13637 if { (eval echo configure:13638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13639 eval "ac_cv_lib_$ac_lib_var=yes"
13641 echo "configure: failed program was:" >&5
13642 cat conftest.$ac_ext >&5
13644 eval "ac_cv_lib_$ac_lib_var=no"
13649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13650 echo "$ac_t""yes" 1>&6
13651 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13652 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13653 { test "$extra_verbose" = "yes" && cat << EOF
13654 Defining $ac_tr_lib
13656 cat >> confdefs.h <<EOF
13657 #define $ac_tr_lib 1
13661 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13664 echo "$ac_t""no" 1>&6
13665 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13666 echo " xemacs will be linked with \"tparam.o\""
13672 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13673 echo " xemacs will be linked with \"tparam.o\""
13676 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13677 if test -n "$libs_termcap"; then
13678 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13681 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13682 echo "configure:13683: checking for tgetent in -lcurses" >&5
13683 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13685 xe_check_libs=" -lcurses "
13686 cat > conftest.$ac_ext <<EOF
13687 #line 13688 "configure"
13688 #include "confdefs.h"
13689 /* Override any gcc2 internal prototype to avoid an error. */
13690 /* We use char because int might match the return type of a gcc2
13691 builtin and then its argument prototype would still apply. */
13698 if { (eval echo configure:13699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13700 eval "ac_cv_lib_$ac_lib_var=yes"
13702 echo "configure: failed program was:" >&5
13703 cat conftest.$ac_ext >&5
13705 eval "ac_cv_lib_$ac_lib_var=no"
13710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13711 echo "$ac_t""yes" 1>&6
13712 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13714 echo "$ac_t""no" 1>&6
13715 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13716 echo "configure:13717: checking for tgetent in -ltermcap" >&5
13717 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13719 xe_check_libs=" -ltermcap "
13720 cat > conftest.$ac_ext <<EOF
13721 #line 13722 "configure"
13722 #include "confdefs.h"
13723 /* Override any gcc2 internal prototype to avoid an error. */
13724 /* We use char because int might match the return type of a gcc2
13725 builtin and then its argument prototype would still apply. */
13732 if { (eval echo configure:13733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13734 eval "ac_cv_lib_$ac_lib_var=yes"
13736 echo "configure: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13739 eval "ac_cv_lib_$ac_lib_var=no"
13744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13745 echo "$ac_t""yes" 1>&6
13746 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13748 echo "$ac_t""no" 1>&6
13749 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13750 echo " xemacs will be linked with \"termcap.o\""
13761 { test "$extra_verbose" = "yes" && cat << EOF
13762 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13764 cat >> confdefs.h <<EOF
13765 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13769 { test "$extra_verbose" = "yes" && cat << EOF
13770 Defining TERM_H_FILE = "${term_h_file-term.h}"
13772 cat >> confdefs.h <<EOF
13773 #define TERM_H_FILE "${term_h_file-term.h}"
13778 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13779 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13780 echo "configure:13781: checking for gpm.h" >&5
13782 cat > conftest.$ac_ext <<EOF
13783 #line 13784 "configure"
13784 #include "confdefs.h"
13787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13788 { (eval echo configure:13789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13790 if test -z "$ac_err"; then
13792 eval "ac_cv_header_$ac_safe=yes"
13795 echo "configure: failed program was:" >&5
13796 cat conftest.$ac_ext >&5
13798 eval "ac_cv_header_$ac_safe=no"
13801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13802 echo "$ac_t""yes" 1>&6
13805 echo "$ac_t""no" 1>&6
13809 test -z "$with_gpm" && {
13810 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13811 echo "configure:13812: checking for Gpm_Open in -lgpm" >&5
13812 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13814 xe_check_libs=" -lgpm "
13815 cat > conftest.$ac_ext <<EOF
13816 #line 13817 "configure"
13817 #include "confdefs.h"
13818 /* Override any gcc2 internal prototype to avoid an error. */
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13827 if { (eval echo configure:13828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13829 eval "ac_cv_lib_$ac_lib_var=yes"
13831 echo "configure: failed program was:" >&5
13832 cat conftest.$ac_ext >&5
13834 eval "ac_cv_lib_$ac_lib_var=no"
13839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13840 echo "$ac_t""yes" 1>&6
13843 echo "$ac_t""no" 1>&6
13848 if test "$with_gpm" = "yes"; then
13849 { test "$extra_verbose" = "yes" && cat << \EOF
13852 cat >> confdefs.h <<\EOF
13857 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13858 echo " xemacs will be linked with \"gpmevent.o\""
13860 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13863 else for feature in ncurses gpm; do
13864 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13865 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13867 eval "with_${feature}=no"
13870 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
13871 echo " xemacs will be linked with \"event-unixoid.o\""
13875 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13876 != "no no no" && echo "checking for database support" 1>&6
13877 echo "configure:13878: checking for database support" >&5
13879 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13880 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13881 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13882 echo "configure:13883: checking for ndbm.h" >&5
13884 cat > conftest.$ac_ext <<EOF
13885 #line 13886 "configure"
13886 #include "confdefs.h"
13889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13890 { (eval echo configure:13891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13892 if test -z "$ac_err"; then
13894 eval "ac_cv_header_$ac_safe=yes"
13897 echo "configure: failed program was:" >&5
13898 cat conftest.$ac_ext >&5
13900 eval "ac_cv_header_$ac_safe=no"
13903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13904 echo "$ac_t""yes" 1>&6
13907 echo "$ac_t""no" 1>&6
13909 test "$with_database_gdbm" = "yes" -o \
13910 "$with_database_dbm" = "yes" && \
13911 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13912 with_database_gdbm=no with_database_dbm=no
13917 if test "$with_database_gdbm" != "no"; then
13919 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13920 echo "configure:13921: checking for dbm_open in -lgdbm" >&5
13921 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13923 xe_check_libs=" -lgdbm "
13924 cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure"
13926 #include "confdefs.h"
13927 /* Override any gcc2 internal prototype to avoid an error. */
13928 /* We use char because int might match the return type of a gcc2
13929 builtin and then its argument prototype would still apply. */
13936 if { (eval echo configure:13937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13938 eval "ac_cv_lib_$ac_lib_var=yes"
13940 echo "configure: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13943 eval "ac_cv_lib_$ac_lib_var=no"
13948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13949 echo "$ac_t""yes" 1>&6
13950 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13952 echo "$ac_t""no" 1>&6
13953 if test "$with_database_gdbm" = "yes"; then
13954 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13956 with_database_gdbm=no
13962 if test "$with_database_dbm" != "no"; then
13963 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13964 echo "configure:13965: checking for dbm_open" >&5
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 /* System header to define __stub macros and hopefully few prototypes,
13970 which can conflict with char dbm_open(); below. */
13971 #include <assert.h>
13972 /* Override any gcc2 internal prototype to avoid an error. */
13973 /* We use char because int might match the return type of a gcc2
13974 builtin and then its argument prototype would still apply. */
13979 /* The GNU C library defines this for functions which it implements
13980 to always fail with ENOSYS. Some functions are actually named
13981 something starting with __ and the normal name is an alias. */
13982 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13990 if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13992 eval "ac_cv_func_dbm_open=yes"
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13997 eval "ac_cv_func_dbm_open=no"
14001 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14002 echo "$ac_t""yes" 1>&6
14003 with_database_dbm=yes libdbm=
14005 echo "$ac_t""no" 1>&6
14008 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14009 echo "configure:14010: checking for dbm_open in -ldbm" >&5
14010 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14012 xe_check_libs=" -ldbm "
14013 cat > conftest.$ac_ext <<EOF
14014 #line 14015 "configure"
14015 #include "confdefs.h"
14016 /* Override any gcc2 internal prototype to avoid an error. */
14017 /* We use char because int might match the return type of a gcc2
14018 builtin and then its argument prototype would still apply. */
14025 if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14027 eval "ac_cv_lib_$ac_lib_var=yes"
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14032 eval "ac_cv_lib_$ac_lib_var=no"
14037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14038 echo "$ac_t""yes" 1>&6
14039 with_database_dbm=yes libdbm=-ldbm
14041 echo "$ac_t""no" 1>&6
14042 test "$with_database_dbm" = "yes" && \
14043 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14044 with_database_dbm=no
14052 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
14053 test "$with_database_gdbm" = "yes" -o \
14054 "$with_database_dbm" = "yes" && \
14055 { test "$extra_verbose" = "yes" && cat << \EOF
14058 cat >> confdefs.h <<\EOF
14064 if test "$with_database_berkdb" != "no"; then
14065 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14066 echo "configure:14067: checking for Berkeley db.h" >&5
14067 for header in "db/db.h" "db.h"; do
14068 cat > conftest.$ac_ext <<EOF
14069 #line 14070 "configure"
14070 #include "confdefs.h"
14072 #include <stdlib.h>
14073 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14074 #ifdef HAVE_INTTYPES_H
14075 #define __BIT_TYPES_DEFINED__
14076 #include <inttypes.h>
14077 typedef uint8_t u_int8_t;
14078 typedef uint16_t u_int16_t;
14079 typedef uint32_t u_int32_t;
14080 #ifdef WE_DONT_NEED_QUADS
14081 typedef uint64_t u_int64_t;
14091 if { (eval echo configure:14092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14093 db_h_file="$header"; break
14095 echo "configure: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
14100 if test -z "$db_h_file"
14101 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14102 else echo "$ac_t""$db_h_file" 1>&6
14105 if test "$with_database_berkdb" != "no"; then
14106 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14107 echo "configure:14108: checking for Berkeley DB version" >&5
14108 cat > conftest.$ac_ext <<EOF
14109 #line 14110 "configure"
14110 #include "confdefs.h"
14111 #include <$db_h_file>
14112 #if DB_VERSION_MAJOR > 1
14117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14118 egrep "yes" >/dev/null 2>&1; then
14120 cat > conftest.$ac_ext <<EOF
14121 #line 14122 "configure"
14122 #include "confdefs.h"
14123 #include <$db_h_file>
14124 #if DB_VERSION_MAJOR > 2
14129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14130 egrep "yes" >/dev/null 2>&1; then
14132 echo "$ac_t""3" 1>&6; dbfunc=db_create
14136 echo "$ac_t""2" 1>&6; dbfunc=db_open
14143 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14147 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14148 echo "configure:14149: checking for $dbfunc" >&5
14150 cat > conftest.$ac_ext <<EOF
14151 #line 14152 "configure"
14152 #include "confdefs.h"
14153 /* System header to define __stub macros and hopefully few prototypes,
14154 which can conflict with char $dbfunc(); below. */
14155 #include <assert.h>
14156 /* Override any gcc2 internal prototype to avoid an error. */
14157 /* We use char because int might match the return type of a gcc2
14158 builtin and then its argument prototype would still apply. */
14163 /* The GNU C library defines this for functions which it implements
14164 to always fail with ENOSYS. Some functions are actually named
14165 something starting with __ and the normal name is an alias. */
14166 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14174 if { (eval echo configure:14175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14176 eval "ac_cv_func_$dbfunc=yes"
14178 echo "configure: failed program was:" >&5
14179 cat conftest.$ac_ext >&5
14181 eval "ac_cv_func_$dbfunc=no"
14185 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14186 echo "$ac_t""yes" 1>&6
14187 with_database_berkdb=yes need_libdb=no
14189 echo "$ac_t""no" 1>&6
14192 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14193 echo "configure:14194: checking for $dbfunc in -ldb" >&5
14194 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14196 xe_check_libs=" -ldb "
14197 cat > conftest.$ac_ext <<EOF
14198 #line 14199 "configure"
14199 #include "confdefs.h"
14200 /* Override any gcc2 internal prototype to avoid an error. */
14201 /* We use char because int might match the return type of a gcc2
14202 builtin and then its argument prototype would still apply. */
14209 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14211 eval "ac_cv_lib_$ac_lib_var=yes"
14213 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5
14216 eval "ac_cv_lib_$ac_lib_var=no"
14221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14222 echo "$ac_t""yes" 1>&6
14223 with_database_berkdb=yes need_libdb=yes
14225 echo "$ac_t""no" 1>&6
14233 if test "$with_database_berkdb" = "yes"; then
14234 { test "$extra_verbose" = "yes" && cat << EOF
14235 Defining DB_H_FILE = "$db_h_file"
14237 cat >> confdefs.h <<EOF
14238 #define DB_H_FILE "$db_h_file"
14242 { test "$extra_verbose" = "yes" && cat << \EOF
14243 Defining HAVE_BERKELEY_DB
14245 cat >> confdefs.h <<\EOF
14246 #define HAVE_BERKELEY_DB 1
14250 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14251 else with_database_berkdb=no
14255 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14256 != "no no no"; then
14257 { test "$extra_verbose" = "yes" && cat << \EOF
14258 Defining HAVE_DATABASE
14260 cat >> confdefs.h <<\EOF
14261 #define HAVE_DATABASE 1
14265 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14266 echo " xemacs will be linked with \"database.o\""
14268 if test "$with_utf_2000" = "yes"; then
14269 { test "$extra_verbose" = "yes" && cat << \EOF
14270 Defining HAVE_CHISE_CLIENT
14272 cat >> confdefs.h <<\EOF
14273 #define HAVE_CHISE_CLIENT 1
14280 if test "$with_socks" = "yes"; then
14282 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14283 echo "configure:14284: checking for SOCKSinit in -lsocks" >&5
14284 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14286 xe_check_libs=" -lsocks "
14287 cat > conftest.$ac_ext <<EOF
14288 #line 14289 "configure"
14289 #include "confdefs.h"
14290 /* Override any gcc2 internal prototype to avoid an error. */
14291 /* We use char because int might match the return type of a gcc2
14292 builtin and then its argument prototype would still apply. */
14299 if { (eval echo configure:14300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14301 eval "ac_cv_lib_$ac_lib_var=yes"
14303 echo "configure: failed program was:" >&5
14304 cat conftest.$ac_ext >&5
14306 eval "ac_cv_lib_$ac_lib_var=no"
14311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14312 echo "$ac_t""yes" 1>&6
14313 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14315 { test "$extra_verbose" = "yes" && cat << EOF
14316 Defining $ac_tr_lib
14318 cat >> confdefs.h <<EOF
14319 #define $ac_tr_lib 1
14323 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14326 echo "$ac_t""no" 1>&6
14330 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14331 Defining HAVE_SOCKS
14333 cat >> confdefs.h <<\EOF
14334 #define HAVE_SOCKS 1
14340 if test "$usage_tracking" = "yes"; then
14341 { test "$extra_verbose" = "yes" && cat << \EOF
14342 Defining USAGE_TRACKING
14344 cat >> confdefs.h <<\EOF
14345 #define USAGE_TRACKING 1
14349 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14352 if test "$with_modules" != "no"; then
14353 echo "checking for module support" 1>&6
14354 echo "configure:14355: checking for module support" >&5
14356 if test "$with_msw" = "yes"; then
14359 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14360 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14361 echo "configure:14362: checking for dlfcn.h" >&5
14363 cat > conftest.$ac_ext <<EOF
14364 #line 14365 "configure"
14365 #include "confdefs.h"
14368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14369 { (eval echo configure:14370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14371 if test -z "$ac_err"; then
14373 eval "ac_cv_header_$ac_safe=yes"
14376 echo "configure: failed program was:" >&5
14377 cat conftest.$ac_ext >&5
14379 eval "ac_cv_header_$ac_safe=no"
14382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14383 echo "$ac_t""yes" 1>&6
14385 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14386 echo "configure:14387: checking for dlopen in -lc" >&5
14387 cat > conftest.$ac_ext <<EOF
14388 #line 14389 "configure"
14389 #include "confdefs.h"
14395 if { (eval echo configure:14396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14399 echo "configure: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14403 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14404 echo "configure:14405: checking for dlopen in -ldl" >&5
14405 ac_save_LIBS="$LIBS"
14407 cat > conftest.$ac_ext <<EOF
14408 #line 14409 "configure"
14409 #include "confdefs.h"
14415 if { (eval echo configure:14416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14419 echo "configure: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14422 LIBS="$ac_save_LIBS"
14429 echo "$ac_t""no" 1>&6
14432 if test -n "$have_dl"; then
14433 { test "$extra_verbose" = "yes" && cat << \EOF
14434 Defining HAVE_DLOPEN
14436 cat >> confdefs.h <<\EOF
14437 #define HAVE_DLOPEN 1
14443 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14444 echo "configure:14445: checking for shl_load in -ldld" >&5
14445 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14447 xe_check_libs=" -ldld "
14448 cat > conftest.$ac_ext <<EOF
14449 #line 14450 "configure"
14450 #include "confdefs.h"
14451 /* Override any gcc2 internal prototype to avoid an error. */
14452 /* We use char because int might match the return type of a gcc2
14453 builtin and then its argument prototype would still apply. */
14460 if { (eval echo configure:14461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14462 eval "ac_cv_lib_$ac_lib_var=yes"
14464 echo "configure: failed program was:" >&5
14465 cat conftest.$ac_ext >&5
14467 eval "ac_cv_lib_$ac_lib_var=no"
14472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14473 echo "$ac_t""yes" 1>&6
14474 libdl=dld have_dl=yes;
14475 { test "$extra_verbose" = "yes" && cat << \EOF
14476 Defining HAVE_SHL_LOAD
14478 cat >> confdefs.h <<\EOF
14479 #define HAVE_SHL_LOAD 1
14484 echo "$ac_t""no" 1>&6
14486 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14487 echo "configure:14488: checking for dld_init in -ldld" >&5
14488 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14490 xe_check_libs=" -ldld "
14491 cat > conftest.$ac_ext <<EOF
14492 #line 14493 "configure"
14493 #include "confdefs.h"
14494 /* Override any gcc2 internal prototype to avoid an error. */
14495 /* We use char because int might match the return type of a gcc2
14496 builtin and then its argument prototype would still apply. */
14503 if { (eval echo configure:14504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14505 eval "ac_cv_lib_$ac_lib_var=yes"
14507 echo "configure: failed program was:" >&5
14508 cat conftest.$ac_ext >&5
14510 eval "ac_cv_lib_$ac_lib_var=no"
14515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14516 echo "$ac_t""yes" 1>&6
14517 libdl=dld have_dl=yes;
14518 { test "$extra_verbose" = "yes" && cat << \EOF
14519 Defining HAVE_DLD_INIT
14521 cat >> confdefs.h <<\EOF
14522 #define HAVE_DLD_INIT 1
14527 echo "$ac_t""no" 1>&6
14536 if test -n "$have_dl"; then
14543 ld_dynamic_link_flags=
14545 xealias=$internal_configuration
14547 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14548 echo "configure:14549: checking how to build dynamic libraries for ${xehost}" >&5
14549 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14552 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14555 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14556 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14557 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14559 case "$xehost_os" in
14561 # AIX sometimes has problems with the GCC collect2 program. For some
14562 # reason, if we set the COLLECT_NAMES environment variable, the problems
14563 # vanish in a puff of smoke.
14564 if test "${COLLECT_NAMES+set}" != set; then
14566 export COLLECT_NAMES
14571 # Now see if the compiler is really GCC.
14572 if test "$GCC" = "yes"; then
14575 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14576 echo "configure:14577: checking checking whether we are using GNU C" >&5
14577 cat > conftest.$ac_ext <<EOF
14578 #line 14579 "configure"
14579 #include "confdefs.h"
14586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14587 egrep "yes" >/dev/null 2>&1; then
14596 echo "$ac_t""${XEGCC}" 1>&6
14599 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14600 echo "configure:14601: checking how to produce PIC code" >&5
14603 can_build_shared=yes
14604 if test "$XEGCC" = yes; then
14607 case "$xehost_os" in
14608 aix[3-9]* | irix[5-9]* | osf[3-9])
14609 # PIC is the default for these OSes.
14613 # We can build DLLs from non-PIC.
14616 # FIXME: we need at least 68020 code to build shared libraries, but
14617 # adding the `-m68020' flag to GCC prevents building anything better,
14619 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14621 *cygwin* | *mingw* )
14622 # PIC is the default
14629 # PORTME Check for PIC flags for the system compiler.
14630 case "$xehost_os" in
14631 hpux9* | hpux1[0-9]*)
14632 # Is there a better link_static_flag that works with the bundled CC?
14639 # PIC (with -KPIC) is the default.
14643 # We can build DLLs from non-PIC.
14647 # All OSF/1 code is PIC.
14652 # All AIX code is PIC.
14657 dll_cflags='-belf -Kpic'
14691 can_build_shared=no
14696 if test -n "$dll_cflags"; then
14697 echo "$ac_t""${dll_cflags}" 1>&6
14699 # Check to make sure the dll_cflags actually works.
14700 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14701 echo "configure:14702: checking if PIC flag ${dll_cflags} really works" >&5
14702 save_CFLAGS="$CFLAGS"
14703 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14704 cat > conftest.$ac_ext <<EOF
14705 #line 14706 "configure"
14706 #include "confdefs.h"
14712 if { (eval echo configure:14713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14715 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14716 # reports no error. So, we need to grep stderr for (Bundled).
14717 if grep '(Bundled)' config.log >/dev/null; then
14718 echo "$ac_t""no" 1>&6
14719 can_build_shared=no
14722 echo "$ac_t""yes" 1>&6
14725 echo "configure: failed program was:" >&5
14726 cat conftest.$ac_ext >&5
14728 echo "$ac_t""no" 1>&6
14729 can_build_shared=no
14733 CFLAGS="$save_CFLAGS"
14735 echo "$ac_t""none" 1>&6
14738 if test "$can_build_shared" = "yes"; then
14742 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14743 echo "configure:14744: checking if C compiler can produce shared libraries" >&5
14744 if test "$XEGCC" = yes; then
14747 else # Not using GCC
14748 case "$xehost_os" in
14750 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14751 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14754 freebsd2* | netbsd* | openbsd*)
14756 xcldf="${wl}-Bshareable"
14765 xcldf="${wl}-b ${wl}+s"
14768 irix[5-9]* | osf[3-9]*)
14769 xcldf="${wl}-shared"
14773 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14779 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14780 xldf="-assert pure-text -Bstatic"
14783 fi # End if if we are using gcc
14785 if test -n "$xcldf"; then
14786 save_LDFLAGS=$LDFLAGS
14788 save_xe_libs=$xe_libs
14789 LDFLAGS="$xcldf $LDFLAGS"
14792 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14793 cat > conftest.$ac_ext <<EOF
14794 #line 14795 "configure"
14795 #include "confdefs.h"
14801 if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14805 echo "configure: failed program was:" >&5
14806 cat conftest.$ac_ext >&5
14811 LDFLAGS=$save_LDFLAGS
14813 xe_libs=$save_xe_libs
14814 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14818 echo "$ac_t""${cc_produces_so}" 1>&6
14821 if test -z "$LTLD"; then
14823 if test "$XEGCC" = yes; then
14824 # Check if gcc -print-prog-name=ld gives a path.
14825 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14826 echo "configure:14827: checking for ld used by GCC" >&5
14827 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14829 # Accept absolute paths.
14831 if test -z "$LTLD"; then
14832 # case "$ac_prog" in
14833 # *gcc-lib*) LTLD="$CC"
14842 # If it fails, then pretend we aren't using GCC.
14846 # If it is relative, then search for the first ld in PATH.
14847 with_gnu_ld=unknown
14851 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14852 echo "configure:14853: checking for GNU ld" >&5
14855 if test -z "$LTLD"; then
14856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14857 for ac_dir in $PATH; do
14858 test -z "$ac_dir" && ac_dir=.
14859 if test -f "$ac_dir/$ac_prog"; then
14860 LTLD="$ac_dir/$ac_prog"
14861 # Check to see if the program is GNU ld. I'd rather use --version,
14862 # but apparently some GNU ld's only accept -v.
14863 # Break only if it was the GNU/non-GNU ld that we prefer.
14864 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14874 if test -n "$LTLD"; then
14875 echo "$ac_t""${LTLD}" 1>&6
14877 echo "$ac_t""no" 1>&6
14880 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14881 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14886 ld_dynamic_link_flags=
14888 # Check to see if it really is or isn't GNU ld.
14889 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14890 echo "configure:14891: checking if the linker is GNU ld" >&5
14891 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14892 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14897 echo "$ac_t""${xe_gnu_ld}" 1>&6
14899 case "$xehost_os" in
14900 amigaos* | sunos4*)
14901 # On these operating systems, we should treat GNU ld like the system ld.
14902 gnu_ld_acts_native=yes
14905 gnu_ld_acts_native=no
14909 if test "$cc_produces_so" = "yes"; then
14912 can_build_shared=yes
14915 # OK - only NOW do we futz about with ld.
14916 # See if the linker supports building shared libraries.
14917 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14918 echo "configure:14919: checking whether the linker supports shared libraries" >&5
14920 dll_ldflags=$LDFLAGS
14922 can_build_shared=yes
14923 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14924 # See if GNU ld supports shared libraries.
14925 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14927 dll_ldflags="-shared"
14933 # PORTME fill in a description of your system's linker (not GNU ld)
14934 case "$xehost_os" in
14944 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14945 # support. Future versions do this automatically, but an explicit c++rt0.o
14946 # doesn't break anything, and helps significantly (at the cost of a little
14951 dll_post="/usr/lib/c++rt0.o"
14954 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14957 dll_ldflags="-Bshareable"
14960 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14962 dll_ldflags="-shared"
14976 # Tested with NetBSD 1.2 ld
14991 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14992 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14995 *gcc*) dll_ldflags="-shared"
14998 *) dll_ldflags="-G"
15004 if test "$XEGCC" = yes; then
15024 can_build_shared=no
15028 echo "$ac_t""${ld_shlibs}" 1>&6
15029 if test "$ld_shlibs" = "no"; then
15030 can_build_shared=no
15032 fi # End of if cc_produces_so = no
15035 if test "$xe_gnu_ld" = yes; then
15036 if test "$ld_shlibs" = yes; then
15037 ld_dynamic_link_flags="${wl}-export-dynamic"
15041 if test -z "$ld_dynamic_link_flags"; then
15042 case "$xehost_os" in
15044 ld_dynamic_link_flags=
15048 ld_dynamic_link_flags=
15052 ld_dynamic_link_flags=
15056 ld_dynamic_link_flags=
15060 ld_dynamic_link_flags="${wl}-E"
15064 ld_dynamic_link_flags=
15068 ld_dynamic_link_flags=
15072 ld_dynamic_link_flags=
15076 ld_dynamic_link_flags=
15079 solaris2* | solaris7*)
15080 ld_dynamic_link_flags=
15083 sco3.2v5* | unixware* | sysv5* | sysv4*)
15084 ld_dynamic_link_flags="${wl}-Bexport"
15088 ld_dynamic_link_flags=
15092 ld_dynamic_link_flags=
15096 ld_dynamic_link_flags=
15100 fi # End of if -z ld_dynamic_link_flags
15101 fi # End of if test "$can_build_shared" = "yes"
15112 if test "$can_build_shared" = "yes"; then
15113 { test "$extra_verbose" = "yes" && cat << \EOF
15114 Defining HAVE_SHLIB
15116 cat >> confdefs.h <<\EOF
15117 #define HAVE_SHLIB 1
15121 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15122 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15124 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15125 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15126 for ac_func in dlerror _dlerror
15128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15129 echo "configure:15130: checking for $ac_func" >&5
15131 cat > conftest.$ac_ext <<EOF
15132 #line 15133 "configure"
15133 #include "confdefs.h"
15134 /* System header to define __stub macros and hopefully few prototypes,
15135 which can conflict with char $ac_func(); below. */
15136 #include <assert.h>
15137 /* Override any gcc2 internal prototype to avoid an error. */
15138 /* We use char because int might match the return type of a gcc2
15139 builtin and then its argument prototype would still apply. */
15144 /* The GNU C library defines this for functions which it implements
15145 to always fail with ENOSYS. Some functions are actually named
15146 something starting with __ and the normal name is an alias. */
15147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15155 if { (eval echo configure:15156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15157 eval "ac_cv_func_$ac_func=yes"
15159 echo "configure: failed program was:" >&5
15160 cat conftest.$ac_ext >&5
15162 eval "ac_cv_func_$ac_func=no"
15166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15167 echo "$ac_t""yes" 1>&6
15168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15169 { test "$extra_verbose" = "yes" && cat << EOF
15170 Defining $ac_tr_func
15172 cat >> confdefs.h <<EOF
15173 #define $ac_tr_func 1
15178 echo "$ac_t""no" 1>&6
15184 if test "$with_modules" = "yes"; then
15185 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15187 echo "configure: warning: "Module support cannot be provided."" 1>&2
15193 cat > conftest.$ac_ext <<EOF
15194 #line 15195 "configure"
15195 #include "confdefs.h"
15196 int main(int c,char *v[]){return 0;}
15198 if { (eval echo configure:15199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15203 echo "configure: failed program was:" >&5
15204 cat conftest.$ac_ext >&5
15208 echo "*** PANIC *** configure forgot how to build working executables!"
15210 echo "*** This is most commonly due to an unforeseen environment, causing"
15211 echo "*** configure to incorrectly compute the sequence of libraries to link."
15212 echo "*** Please examine the tail of config.log for runtime errors."
15213 echo "*** Pay special attention to the -l flags, and perhaps -I and -L."
15214 echo "*** Often adding or removing explicit options in the configure"
15215 echo "*** invocation can work around this kind of problem. If so, please"
15216 echo "*** report it as a bug to xemacs-beta@xemacs.org."
15218 echo "*** Other possible causes are inability to write to the file system"
15219 echo "*** (bogus permissions or disk full) or a misconfiguration of the dynamic"
15220 echo "*** linker. On Linux, check /etc/ld.conf and rerun ldconfig if"
15221 echo "*** necessary. On other systems, try telling configure where to find"
15222 echo "*** the shared libraries using the --site-runtime-libraries option."
15224 echo "*** Another way to shoot yourself in the foot is to specify"
15225 echo "*** --with-FEATURE when FEATURE is not actually installed on your"
15226 echo "*** system. Don't do that."
15231 if test "$win32_processes" = "yes"; then
15232 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15233 echo " xemacs will be linked with \"process-nt.o\""
15236 { test "$extra_verbose" = "yes" && cat << \EOF
15237 Defining HAVE_UNIX_PROCESSES
15239 cat >> confdefs.h <<\EOF
15240 #define HAVE_UNIX_PROCESSES 1
15244 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15245 echo " xemacs will be linked with \"process-unix.o\""
15252 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15257 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15262 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
15263 c_switch_general="$T"
15267 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
15268 c_switch_window_system="$T"
15272 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15277 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
15278 ld_switch_general="$T"
15282 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15283 ld_switch_window_system="$T"
15287 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15292 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15293 ld_libs_general="$T"
15297 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
15298 ld_libs_window_system="$T"
15302 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15307 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15308 internal_makefile_list="Makefile.in"
15309 SUBDIR_MAKEFILES=''
15310 test -d lock || mkdir lock
15311 for dir in $MAKE_SUBDIR; do
15312 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15313 test -d "$d" || mkdir "$d"; cd "$d"
15315 * ) test -d "$dir" || mkdir "$dir" ;;
15319 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15320 SUBDIR_MAKEFILES="$T"
15324 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15325 internal_makefile_list="$T"
15332 for dir in src/s src/m; do
15333 if test ! -d "$dir" ; then
15334 echo Making symbolic link to "$srcdir/$dir"
15335 ${LN_S} "$srcdir/$dir" "$dir"
15339 if test "$extra_verbose" = "yes"; then
15341 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
15346 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15347 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15348 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15351 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15352 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15353 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15356 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15357 test "$extra_verbose" = "yes" && echo "creating TAGS"
15359 $srcdir/TAGS,include" > "TAGS"
15362 if test "$__SUNPRO_C" = "yes"; then
15363 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15364 ( echo "# For use with Sun WorkShop's Source browser."
15365 echo "# See sbquery(1) and sbinit(4) for more information"
15366 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15394 *\$* ) eval "PREFIX=$PREFIX" ;;
15402 EXEC_PREFIX=$exec_prefix
15404 case "$EXEC_PREFIX" in
15405 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15416 *\$* ) eval "INFODIR=$INFODIR" ;;
15426 case "$INFOPATH" in
15427 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15435 PACKAGE_PATH=$package_path
15437 case "$PACKAGE_PATH" in
15438 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15449 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15457 MODULEDIR=$moduledir
15459 case "$MODULEDIR" in
15460 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15468 SITELISPDIR=$sitelispdir
15470 case "$SITELISPDIR" in
15471 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15479 SITEMODULEDIR=$sitemoduledir
15481 case "$SITEMODULEDIR" in
15482 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15493 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15504 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15512 ARCHLIBDIR=$archlibdir
15514 case "$ARCHLIBDIR" in
15515 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15539 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15547 : ${XEMACS_CC:=$CC}
15550 if test "$with_prefix" = "yes"; then
15551 { test "$extra_verbose" = "yes" && cat << \EOF
15552 Defining PREFIX_USER_DEFINED
15554 cat >> confdefs.h <<\EOF
15555 #define PREFIX_USER_DEFINED 1
15561 if test "$with_site_lisp" = "no"; then
15562 { test "$extra_verbose" = "yes" && cat << \EOF
15563 Defining INHIBIT_SITE_LISP
15565 cat >> confdefs.h <<\EOF
15566 #define INHIBIT_SITE_LISP 1
15571 if test "$with_site_modules" = "no"; then
15572 { test "$extra_verbose" = "yes" && cat << \EOF
15573 Defining INHIBIT_SITE_MODULES
15575 cat >> confdefs.h <<\EOF
15576 #define INHIBIT_SITE_MODULES 1
15584 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15585 ac_configure_args="$T"
15587 { test "$extra_verbose" = "yes" && cat << EOF
15588 Defining EMACS_CONFIGURATION = "$configuration"
15590 cat >> confdefs.h <<EOF
15591 #define EMACS_CONFIGURATION "$configuration"
15595 { test "$extra_verbose" = "yes" && cat << EOF
15596 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15598 cat >> confdefs.h <<EOF
15599 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15606 { test "$extra_verbose" = "yes" && cat << EOF
15607 Defining LD_SWITCH_X_SITE = $null_string
15609 cat >> confdefs.h <<EOF
15610 #define LD_SWITCH_X_SITE $null_string
15614 { test "$extra_verbose" = "yes" && cat << EOF
15615 Defining LD_SWITCH_X_SITE_AUX = $null_string
15617 cat >> confdefs.h <<EOF
15618 #define LD_SWITCH_X_SITE_AUX $null_string
15622 { test "$extra_verbose" = "yes" && cat << EOF
15623 Defining C_SWITCH_X_SITE = $null_string
15625 cat >> confdefs.h <<EOF
15626 #define C_SWITCH_X_SITE $null_string
15630 { test "$extra_verbose" = "yes" && cat << EOF
15631 Defining LD_SWITCH_SITE = $null_string
15633 cat >> confdefs.h <<EOF
15634 #define LD_SWITCH_SITE $null_string
15638 { test "$extra_verbose" = "yes" && cat << EOF
15639 Defining C_SWITCH_SITE = $null_string
15641 cat >> confdefs.h <<EOF
15642 #define C_SWITCH_SITE $null_string
15648 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15649 Defining GNU_MALLOC
15651 cat >> confdefs.h <<\EOF
15652 #define GNU_MALLOC 1
15656 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15657 Defining USE_SYSTEM_MALLOC
15659 cat >> confdefs.h <<\EOF
15660 #define USE_SYSTEM_MALLOC 1
15664 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15665 Defining USE_DEBUG_MALLOC
15667 cat >> confdefs.h <<\EOF
15668 #define USE_DEBUG_MALLOC 1
15672 { test "$extra_verbose" = "yes" && cat << \EOF
15673 Defining USE_SYSTEM_MALLOC
15675 cat >> confdefs.h <<\EOF
15676 #define USE_SYSTEM_MALLOC 1
15681 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15684 cat >> confdefs.h <<\EOF
15689 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15692 cat >> confdefs.h <<\EOF
15697 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15698 Defining EXTERNAL_WIDGET
15700 cat >> confdefs.h <<\EOF
15701 #define EXTERNAL_WIDGET 1
15705 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15706 Defining QUICK_BUILD
15708 cat >> confdefs.h <<\EOF
15709 #define QUICK_BUILD 1
15713 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15716 cat >> confdefs.h <<\EOF
15721 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15724 cat >> confdefs.h <<\EOF
15729 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15730 Defining MAIL_USE_POP
15732 cat >> confdefs.h <<\EOF
15733 #define MAIL_USE_POP 1
15737 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15740 cat >> confdefs.h <<\EOF
15745 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15748 cat >> confdefs.h <<\EOF
15753 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15754 Defining USE_UNION_TYPE
15756 cat >> confdefs.h <<\EOF
15757 #define USE_UNION_TYPE 1
15761 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15764 cat >> confdefs.h <<\EOF
15769 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15770 Defining IPV6_CANONICALIZE
15772 cat >> confdefs.h <<\EOF
15773 #define IPV6_CANONICALIZE 1
15780 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15782 echo "uname -a: `uname -a`"
15785 echo "$0 $quoted_arguments"
15788 if test ! -z ${emacs_beta_version} ; then
15789 if test -z "${emacs_is_beta}" ; then
15790 xemacs_betaname=".${emacs_beta_version}"
15792 xemacs_betaname="-b${emacs_beta_version}"
15801 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15804 Compilation / Installation:"
15805 echo " Source code location: $srcdir"
15806 echo " Installation prefix: $prefix"
15807 if test -n "$site_includes"; then
15808 echo " Additional header files: $site_includes"
15810 if test -n "$site_libraries"; then
15811 echo " Additional libraries: $site_libraries"
15813 if test -n "$site_prefixes"; then
15814 echo " Additional prefixes: $site_prefixes"
15816 if test -n "$runpath"; then
15817 echo " Runtime library search path: $runpath"
15820 if test -n "$opsysfile"
15821 then echo " Operating system description file: \`$opsysfile'"
15822 else echo " Not using any operating system description file"
15824 if test -n "$machfile"
15825 then echo " Machine description file: \`$machfile'"
15826 else echo " Not using any machine description file"
15829 echo " Compiler: $CC $CFLAGS"
15830 echo " Relocating allocator for buffers: $rel_alloc"
15831 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15832 case "$ld_switch_site" in
15833 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
15834 - Consider configuring with --pdump." ;;
15839 if test "$with_msw" = "yes"; then
15840 echo " Compiling in support for the Microsoft window system."
15842 if test "$with_x11" = "yes"; then
15843 echo " Compiling in support for the X window system:"
15844 echo " - X Windows headers location: $x_includes"
15845 echo " - X Windows libraries location: $x_libraries"
15846 if test "$with_xauth" != yes; then
15847 echo " - Xau (X authority) not available."
15849 if test "$with_xmu" != yes; then
15850 echo " - Xmu library not available; substituting equivalent routines."
15852 if test "$with_wmcommand" != no; then
15853 echo " - Handling WM_COMMAND properly."
15856 if test "$need_athena" = "yes"; then
15857 echo " Compiling in support for the Athena widget set:"
15858 echo " - Athena headers location: $athena_h_path"
15859 echo " - Athena library to link: $athena_lib"
15861 case "$with_menubars" in
15862 gtk ) echo " Using GTK menubars." ;;
15863 lucid ) echo " Using Lucid menubars." ;;
15864 motif ) echo " Using Motif menubars."
15865 echo " *WARNING* The Motif menubar implementation is currently buggy."
15866 echo " We recommend using the Lucid menubar instead."
15867 echo " Re-run configure with --with-menubars='lucid'." ;;
15868 msw ) echo " Using MS-Windows menubars." ;;
15870 case "$with_scrollbars" in
15871 gtk ) echo " Using GTK scrollbars." ;;
15872 lucid ) echo " Using Lucid scrollbars." ;;
15873 motif ) echo " Using Motif scrollbars." ;;
15874 athena ) echo " Using Athena scrollbars." ;;
15875 msw ) echo " Using MS-Windows scrollbars." ;;
15877 case "$with_dialogs" in
15878 gtk ) echo " Using GTK dialog boxes." ;;
15879 motif ) echo " Using Motif dialog boxes."
15880 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15881 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15882 echo " We recommend using the Athena dialog boxes instead."
15883 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15884 echo " Read the PROBLEMS file for more information."
15886 athena ) echo " Using Athena dialog boxes." ;;
15887 msw ) echo " Using MS-Windows dialog boxes." ;;
15889 case "$with_widgets" in
15890 gtk ) echo " Using GTK native widgets." ;;
15891 motif ) echo " Using Motif native widgets." ;;
15892 athena ) echo " Using Athena native widgets." ;;
15893 msw ) echo " Using MS-Windows native widgets." ;;
15895 if test "$with_dragndrop" = yes; then
15896 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15897 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15902 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15903 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15907 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15908 if test "$with_xpm" = yes; then
15909 echo " Compiling in support for XPM images."
15910 elif test "$with_x11" = yes; then
15911 echo " WARNING: -----------------------------------------------------------"
15912 echo " WARNING: Compiling without XPM image support."
15913 if test "$xpm_problem" != ""; then
15914 echo " Reason: $xpm_problem"
15916 echo " WARNING: You should strongly consider installing XPM."
15917 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15918 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15919 echo " WARNING: -----------------------------------------------------------"
15921 if test "$with_png" = yes; then
15922 echo " Compiling in support for PNG images."
15923 elif test "$window_system" != "none"; then
15924 echo " WARNING: -----------------------------------------------------------"
15925 echo " WARNING: Compiling without PNG image support."
15926 if test "$png_problem" != ""; then
15927 echo " Reason: $png_problem"
15929 echo " WARNING: You should strongly consider installing the PNG libraries."
15930 echo " WARNING: Otherwise certain images and glyphs may not display."
15931 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15932 echo " WARNING: -----------------------------------------------------------"
15934 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15935 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15936 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15940 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15941 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15942 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15943 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15947 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15948 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15949 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15950 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15951 if test "$with_postgresql" = yes; then
15952 echo " Compiling in support for PostgreSQL."
15953 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15954 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15958 Internationalization:"
15959 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15960 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15961 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15962 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15963 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15964 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15965 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15966 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15967 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15968 if test "$with_wnn" = yes; then
15969 echo " Compiling in support for the WNN input method on Mule."
15970 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15972 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15976 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15977 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15978 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15979 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15983 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
15984 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15985 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15986 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15987 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15988 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15989 if test "$use_union_type" = yes; then
15990 echo " WARNING: ---------------------------------------------------------"
15991 echo " Using the union type for Lisp_Objects."
15992 echo " Union type has been implicated in hard-to-debug runtime crashes."
15993 echo " Do NOT use this build of XEmacs for ordinary work. See PROBLEMS."
15994 echo " WARNING: ---------------------------------------------------------"
15996 test "$pdump" = yes && echo " Using the new portable dumper."
15997 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15998 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15999 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
16000 != "no no no no no no"; then
16001 echo " WARNING: ---------------------------------------------------------"
16002 echo " WARNING: Compiling in support for runtime error checking."
16003 echo " WARNING: XEmacs will run noticeably more slowly as a result."
16004 echo " WARNING: Error checking is on by default for XEmacs beta releases."
16005 echo " WARNING: ---------------------------------------------------------"
16008 ) | tee -a Installation
16012 # Remove any trailing slashes in these variables.
16013 test -n "$prefix" &&
16014 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16015 test -n "$exec_prefix" &&
16016 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16019 for file in $internal_makefile_list; do
16020 test "$file" = src/Makefile.in && \
16021 file="src/Makefile.in:src/Makefile.in.in:src/depend"
16022 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
16024 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
16025 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
16029 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16031 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16032 # Let make expand exec_prefix.
16033 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16035 # Any assignment to VPATH causes Sun make to only execute
16036 # the first set of double-colon rules, so remove it if not needed.
16037 # If there is a colon in the path, we need to keep it.
16038 if test "x$srcdir" = x.; then
16039 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16042 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16044 DEFS=-DHAVE_CONFIG_H
16046 # Without the "./", some shells look in PATH for config.status.
16047 : ${CONFIG_STATUS=./config.status}
16049 echo creating $CONFIG_STATUS
16050 rm -f $CONFIG_STATUS
16051 cat > $CONFIG_STATUS <<EOF
16053 # Generated automatically by configure.
16054 # Run this file to recreate the current configuration.
16055 # This directory was configured as follows,
16056 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16058 # $0 $ac_configure_args
16060 # Compiler output produced by configure, useful for debugging
16061 # configure, is in ./config.log if it exists.
16063 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16066 case "\$ac_option" in
16067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16068 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16069 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16070 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16071 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16073 -help | --help | --hel | --he | --h)
16074 echo "\$ac_cs_usage"; exit 0 ;;
16075 *) echo "\$ac_cs_usage"; exit 1 ;;
16079 ac_given_srcdir=$srcdir
16080 ac_given_INSTALL="$INSTALL"
16082 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16084 cat >> $CONFIG_STATUS <<EOF
16086 # Protect against being on the right side of a sed subst in config.status.
16087 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16088 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16092 s%@CFLAGS@%$CFLAGS%g
16093 s%@CPPFLAGS@%$CPPFLAGS%g
16094 s%@CXXFLAGS@%$CXXFLAGS%g
16095 s%@FFLAGS@%$FFLAGS%g
16097 s%@LDFLAGS@%$LDFLAGS%g
16099 s%@exec_prefix@%$exec_prefix%g
16100 s%@prefix@%$prefix%g
16101 s%@program_transform_name@%$program_transform_name%g
16102 s%@bindir@%$bindir%g
16103 s%@sbindir@%$sbindir%g
16104 s%@libexecdir@%$libexecdir%g
16105 s%@datadir@%$datadir%g
16106 s%@sysconfdir@%$sysconfdir%g
16107 s%@sharedstatedir@%$sharedstatedir%g
16108 s%@localstatedir@%$localstatedir%g
16109 s%@libdir@%$libdir%g
16110 s%@includedir@%$includedir%g
16111 s%@oldincludedir@%$oldincludedir%g
16112 s%@infodir@%$infodir%g
16113 s%@mandir@%$mandir%g
16115 s%@blddir@%$blddir%g
16118 s%@start_flags@%$start_flags%g
16119 s%@ld_switch_shared@%$ld_switch_shared%g
16120 s%@start_files@%$start_files%g
16122 s%@lib_gcc@%$lib_gcc%g
16123 s%@RANLIB@%$RANLIB%g
16124 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16125 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16126 s%@INSTALL_DATA@%$INSTALL_DATA%g
16128 s%@SET_MAKE@%$SET_MAKE%g
16129 s%@GTK_CONFIG@%$GTK_CONFIG%g
16130 s%@X_CFLAGS@%$X_CFLAGS%g
16131 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16132 s%@X_LIBS@%$X_LIBS%g
16133 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16134 s%@install_pp@%$install_pp%g
16135 s%@libs_xauth@%$libs_xauth%g
16136 s%@dnd_objs@%$dnd_objs%g
16137 s%@lwlib_objs@%$lwlib_objs%g
16138 s%@ALLOCA@%$ALLOCA%g
16139 s%@have_esd_config@%$have_esd_config%g
16140 s%@dll_ld@%$dll_ld%g
16141 s%@dll_cflags@%$dll_cflags%g
16142 s%@dll_ldflags@%$dll_ldflags%g
16143 s%@dll_post@%$dll_post%g
16144 s%@dll_ldo@%$dll_ldo%g
16145 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16146 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16147 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16148 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16149 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16150 s%@PROGNAME@%$PROGNAME%g
16151 s%@version@%$version%g
16152 s%@configuration@%$configuration%g
16153 s%@canonical@%$canonical%g
16154 s%@inststaticdir@%$inststaticdir%g
16155 s%@instvardir@%$instvardir%g
16156 s%@srcdir@%$srcdir%g
16157 s%@pkgdir@%$pkgdir%g
16158 s%@statedir@%$statedir%g
16159 s%@extra_includes@%$extra_includes%g
16160 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16161 s%@PREFIX@%$PREFIX%g
16162 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16163 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16164 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16165 s%@INFODIR@%$INFODIR%g
16166 s%@infopath@%$infopath%g
16167 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16168 s%@INFOPATH@%$INFOPATH%g
16169 s%@package_path@%$package_path%g
16170 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16171 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16172 s%@lispdir@%$lispdir%g
16173 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16174 s%@LISPDIR@%$LISPDIR%g
16175 s%@moduledir@%$moduledir%g
16176 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16177 s%@MODULEDIR@%$MODULEDIR%g
16178 s%@sitelispdir@%$sitelispdir%g
16179 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16180 s%@SITELISPDIR@%$SITELISPDIR%g
16181 s%@sitemoduledir@%$sitemoduledir%g
16182 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16183 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16184 s%@etcdir@%$etcdir%g
16185 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16186 s%@ETCDIR@%$ETCDIR%g
16187 s%@docdir@%$docdir%g
16188 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16189 s%@DOCDIR@%$DOCDIR%g
16190 s%@archlibdir@%$archlibdir%g
16191 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16192 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16193 s%@bitmapdir@%$bitmapdir%g
16194 s%@extra_objs@%$extra_objs%g
16195 s%@machfile@%$machfile%g
16196 s%@opsysfile@%$opsysfile%g
16197 s%@c_switch_general@%$c_switch_general%g
16198 s%@c_switch_window_system@%$c_switch_window_system%g
16199 s%@c_switch_all@%$c_switch_all%g
16200 s%@ld_switch_general@%$ld_switch_general%g
16201 s%@ld_switch_window_system@%$ld_switch_window_system%g
16202 s%@ld_switch_all@%$ld_switch_all%g
16203 s%@ld_libs_general@%$ld_libs_general%g
16204 s%@ld_libs_window_system@%$ld_libs_window_system%g
16205 s%@ld_libs_all@%$ld_libs_all%g
16206 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16207 s%@native_sound_lib@%$native_sound_lib%g
16208 s%@sound_cflags@%$sound_cflags%g
16209 s%@dynodump_arch@%$dynodump_arch%g
16210 s%@XEMACS_CC@%$XEMACS_CC%g
16211 s%@internal_makefile_list@%$internal_makefile_list%g
16216 cat >> $CONFIG_STATUS <<\EOF
16218 # Split the substitutions into bite-sized pieces for seds with
16219 # small command number limits, like on Digital OSF/1 and HP-UX.
16220 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16221 ac_file=1 # Number of current file.
16222 ac_beg=1 # First line for current file.
16223 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16226 while $ac_more_lines; do
16227 if test $ac_beg -gt 1; then
16228 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16230 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16232 if test ! -s conftest.s$ac_file; then
16233 ac_more_lines=false
16234 rm -f conftest.s$ac_file
16236 if test -z "$ac_sed_cmds"; then
16237 ac_sed_cmds="sed -f conftest.s$ac_file"
16239 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16241 ac_file=`expr $ac_file + 1`
16243 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16246 if test -z "$ac_sed_cmds"; then
16251 cat >> $CONFIG_STATUS <<EOF
16253 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16255 cat >> $CONFIG_STATUS <<\EOF
16256 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16257 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16259 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16260 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16261 *) ac_file_in="${ac_file}.in" ;;
16264 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16266 # Remove last slash and all that follows it. Not all systems have dirname.
16267 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16268 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16269 # The file is in a subdirectory.
16270 test ! -d "$ac_dir" && mkdir "$ac_dir"
16271 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16272 # A "../" for each directory in $ac_dir_suffix.
16273 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16275 ac_dir_suffix= ac_dots=
16278 case "$ac_given_srcdir" in
16280 if test -z "$ac_dots"; then top_srcdir=.
16281 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16282 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16283 *) # Relative path.
16284 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16285 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16288 case "$ac_given_INSTALL" in
16289 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16290 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16293 echo creating "$ac_file"
16295 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16297 *Makefile*) ac_comsub="1i\\
16298 # $configure_input" ;;
16302 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16304 s%@configure_input@%$configure_input%g
16305 s%@srcdir@%$srcdir%g
16306 s%@top_srcdir@%$top_srcdir%g
16307 s%@INSTALL@%$INSTALL%g
16308 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16312 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16313 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16315 # ac_d sets the value in "#define NAME VALUE" lines.
16316 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16317 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16320 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16321 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16322 ac_uB='\([ ]\)%\1#\2define\3'
16325 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16326 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16327 ac_eB='$%\1#\2define\3'
16331 if test "${CONFIG_HEADERS+set}" != set; then
16333 cat >> $CONFIG_STATUS <<EOF
16334 CONFIG_HEADERS="src/config.h lwlib/config.h"
16336 cat >> $CONFIG_STATUS <<\EOF
16338 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16341 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16342 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16343 *) ac_file_in="${ac_file}.in" ;;
16346 echo creating $ac_file
16348 rm -f conftest.frag conftest.in conftest.out
16349 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16350 cat $ac_file_inputs > conftest.in
16354 # Transform confdefs.h into a sed script conftest.vals that substitutes
16355 # the proper values into config.h.in to produce config.h. And first:
16356 # Protect against being on the right side of a sed subst in config.status.
16357 # Protect against being in an unquoted here document in config.status.
16358 rm -f conftest.vals
16359 cat > conftest.hdr <<\EOF
16362 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16366 sed -n -f conftest.hdr confdefs.h > conftest.vals
16369 # This sed command replaces #undef with comments. This is necessary, for
16370 # example, in the case of _POSIX_SOURCE, which is predefined and required
16371 # on some systems where configure will not decide to define it.
16372 cat >> conftest.vals <<\EOF
16373 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16376 # Break up conftest.vals because some shells have a limit on
16377 # the size of here documents, and old seds have small limits too.
16379 rm -f conftest.tail
16382 ac_lines=`grep -c . conftest.vals`
16383 # grep -c gives empty output for an empty file on some AIX systems.
16384 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16385 # Write a limited-size here document to conftest.frag.
16386 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16387 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16389 sed -f conftest.frag conftest.in > conftest.out
16391 mv conftest.out conftest.in
16392 ' >> $CONFIG_STATUS
16393 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16394 rm -f conftest.vals
16395 mv conftest.tail conftest.vals
16397 rm -f conftest.vals
16399 cat >> $CONFIG_STATUS <<\EOF
16400 rm -f conftest.frag conftest.h
16401 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16402 cat conftest.in >> conftest.h
16404 if cmp -s $ac_file conftest.h 2>/dev/null; then
16405 echo "$ac_file is unchanged"
16408 # Remove last slash and all that follows it. Not all systems have dirname.
16409 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16410 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16411 # The file is in a subdirectory.
16412 test ! -d "$ac_dir" && mkdir "$ac_dir"
16415 mv conftest.h $ac_file
16420 cat >> $CONFIG_STATUS <<EOF
16422 top_srcdir="$srcdir"
16423 MAKE_SUBDIR="$MAKE_SUBDIR"
16426 cat >> $CONFIG_STATUS <<\EOF
16427 for dir in . $MAKE_SUBDIR; do
16432 sed -e '/^# Generated/d' \
16433 -e 's%/\*\*/#.*%%' \
16448 echo creating $dir/Makefile
16449 $CPP -I. -I${top_srcdir}/src junk.c \
16450 | sed -e 's/^\#.*//' \
16451 -e 's/^[ ][ ]*$//'\
16459 chmod 444 Makefile.new
16460 mv -f Makefile.new Makefile
16462 echo creating $dir/GNUmakefile
16463 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16464 | sed -e 's/^\#.*//' \
16465 -e 's/^[ ][ ]*$//'\
16473 chmod 444 Makefile.new
16474 mv -f Makefile.new GNUmakefile
16480 sed < config.status >> lib-src/config.values \
16481 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16482 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16483 -e 's/^\([^ ]*\) $/\1 ""/' \
16489 chmod +x $CONFIG_STATUS
16490 rm -fr confdefs* $ac_clean_files
16491 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1