3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
95 SHELL=${CONFIG_SHELL-/bin/sh}
98 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
100 # File descriptor usage:
103 # 2 errors and warnings
104 # 3 some systems may open it to /dev/tty
105 # 4 used on the Kubota Titan
106 # 6 checking for... messages and results
107 # 5 compiler messages saved in config.log
108 if test "$silent" = yes; then
116 This file contains any messages produced by compilers while
117 running configure, to aid debugging if configure makes a mistake.
120 # Strip out --no-create and --no-recursion so they do not pile up.
121 # Also quote any args containing shell metacharacters.
126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
127 | --no-cr | --no-c) ;;
128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
131 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
132 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
137 # Only set these to C if already set. These must not be set unconditionally
138 # because not all systems understand e.g. LANG=C (notably SCO).
139 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
140 # Non-C LC_CTYPE values break the ctype check.
141 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
142 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
143 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
144 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
147 rm -rf conftest* confdefs.h
148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
151 # A filename unique to this package, relative to the directory that
152 # configure is in, which we can look for to find out if srcdir is correct.
153 ac_unique_file=src/lisp.h
155 # Find the source files, if location was not specified.
156 if test -z "$srcdir"; then
157 ac_srcdir_defaulted=yes
158 # Try the directory containing this script, then its parent.
160 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
161 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
163 if test ! -r $srcdir/$ac_unique_file; then
167 ac_srcdir_defaulted=no
169 if test ! -r $srcdir/$ac_unique_file; then
170 if test "$ac_srcdir_defaulted" = yes; then
171 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
173 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
176 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
178 # Prefer explicitly selected file to automatically selected ones.
179 if test -z "$CONFIG_SITE"; then
180 if test "x$prefix" != xNONE; then
181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
186 for ac_site_file in $CONFIG_SITE; do
187 if test -r "$ac_site_file"; then
188 echo "loading site script $ac_site_file"
195 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
196 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
197 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
198 ac_cpp='$CPP '"$xe_cppflags"
199 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
200 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
205 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
206 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
207 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
214 ac_n= ac_c='\c' ac_t=
218 progname="`echo $0 | sed 's:^\./\./:\./:'`"
221 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
222 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
225 exec_prefix='${prefix}'
226 bindir='${exec_prefix}/bin'
227 datadir='${prefix}/lib'
228 statedir='${prefix}/lib'
229 libdir='${exec_prefix}/lib'
230 mandir='${prefix}/man/man1'
231 inststaticdir='${PROGNAME}'
232 instvardir='${PROGNAME}-${version}'
233 infodir='${datadir}/${instvardir}/info'
236 lispdir='${datadir}/${instvardir}/lisp'
237 moduledir='${datadir}/${instvardir}/${configuration}/modules'
238 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
239 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
240 pkgdir='${datadir}/${instvardir}/lisp'
242 etcdir='${datadir}/${instvardir}/etc'
243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
247 with_site_modules='yes'
253 cpp='' cppflags='' libs='' ldflags=''
258 with_system_malloc='default'
259 with_dlmalloc='default'
274 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
279 | --no-cr | --no-c) ;;
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
283 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
284 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
288 while test $# != 0; do
291 --no-create|--no-recursion) ;;
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
296 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
300 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
301 val="yes" valomitted=yes
306 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
308 case "${valomitted}-${opt}" in yes-without_* )
309 opt=`echo $opt | sed 's/without/with/'`
310 valomitted="no" val="no" ;;
317 with_site_modules | \
369 memory_usage_stats | \
370 with_clash_detection | \
374 y | ye | yes ) val=yes ;;
376 * ) (echo "$progname: Usage error:"
377 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
378 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
380 eval "$opt=\"$val\"" ;;
398 site_runtime_libraries )
399 if test "$valomitted" = "yes" ; then
400 if test "$#" = 0 ; then
401 (echo "$progname: Usage error:"
402 echo " " "The \`--$optname' option requires a value."
403 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
412 with_debug_malloc | use_debug_malloc | \
413 with_system_malloc | use_system_malloc )
415 y | ye | yes ) val=yes ;;
417 d | de | def | defa | defau | defaul | default ) val=default ;;
418 * ) (echo "$progname: Usage error:"
419 echo " " "The \`--$optname' option requires one of these values:
420 \`yes', \`no', or \`default'."
421 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
423 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
428 with_database_berkdb=no
430 with_database_gdbm=no
431 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
434 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
435 d | db | dbm ) with_database_dbm=yes ;;
436 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
437 * ) (echo "$progname: Usage error:"
438 echo " " "The \`--$optname' option value
439 must be either \`no' or a comma-separated list
440 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
441 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
444 if test "$with_database_dbm" = "yes" -a \
445 "$with_database_gdbm" = "yes"; then
446 (echo "$progname: Usage error:"
447 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
448 with the \`--$optname' option."
449 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
454 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
456 n | no | non | none ) new_sdefault=no ;;
457 a | al | all | both ) new_sdefault=yes ;;
459 native ) with_native_sound=yes ;;
460 nonative ) with_native_sound=no ;;
462 nas ) with_nas_sound=yes ;;
463 nonas ) with_nas_sound=no ;;
465 esd ) with_esd_sound=yes ;;
466 noesd ) with_esd_sound=no ;;
468 * ) bogus_sound=yes ;;
470 if test "$bogus_sound" -o \
471 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
472 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
473 (echo "$progname: Usage error:"
474 echo " " "Valid types for the \`--$optname' option are:
476 The default is to autodetect all 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 )
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 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
699 Defining DOCDIR_USER_DEFINED
701 cat >> confdefs.h <<\EOF
702 #define DOCDIR_USER_DEFINED 1
706 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
707 Defining ARCHLIBDIR_USER_DEFINED
709 cat >> confdefs.h <<\EOF
710 #define ARCHLIBDIR_USER_DEFINED 1
719 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
722 "with_scrollbars" | \
726 l | lu | luc | luci | lucid ) val=lucid ;;
727 m | mo | mot | moti | motif ) val=motif ;;
728 a | at | ath | athe | athen | athena ) val=athena ;;
729 n | no | non | none ) val=no ;;
730 y | ye | yes ) val=yes ;;
731 * ) (echo "$progname: Usage error:"
732 echo " " "The \`--$optname' option must have one of these values:
733 \`lucid', \`motif', \`athena', \`yes', or \`no'."
734 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
739 "use_minimal_tagbits" | \
740 "use_indexed_lrecord_implementation" | \
742 "const_is_losing" | \
744 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
747 * ) (echo "$progname: Usage error:"
748 echo " " "Unrecognized option: $arg"
749 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
754 *-*-*) configuration="$arg" ;;
756 *) (echo "$progname: Usage error:"
757 echo " " "Unrecognized argument: $arg"
758 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
764 test -n "$cpp" && CPP="$cpp"
765 test -n "$cppflags" && CPPFLAGS="$cppflags"
766 test -n "$libs" && LIBS="$libs"
767 test -n "$ldflags" && LDFLAGS="$ldflags"
769 eval set x "$quoted_arguments"; shift
771 test "$extra_verbose" = "yes" && verbose=yes
773 test -n "$with_x" && with_x11="$with_x"
775 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
776 test "$with_system_malloc" = "default" && with_system_malloc=yes
781 if test "$with_cde $with_tooltalk" = "yes no"; then
782 (echo "$progname: Usage error:"
783 echo " " "--with-cde requires --with-tooltalk"
784 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
785 elif test "$with_tooltalk" = "no" ; then with_cde=no
786 elif test "$with_cde" = "yes"; then with_tooltalk=yes
793 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
794 if test -f "$dir/src/lisp.h" -a \
795 -f "$dir/lisp/version.el" ; then
800 if test -z "$srcdir" ; then
801 (echo "$progname: Usage error:"
802 echo " " "Neither the current directory nor its parent seem to
803 contain the XEmacs sources. If you do not want to build XEmacs in its
804 source tree, you should run \`$progname' in the directory in which
805 you wish to build XEmacs, using the \`--srcdir' option to say where the
806 sources may be found."
807 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
812 if test ! -f "$srcdir/src/lisp.h" -o \
813 ! -f "$srcdir/lisp/version.el" ; then
814 (echo "$progname: Usage error:"
815 echo " " "The directory specified with the \`--srcdir' option,
816 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
817 either run the \`$progname' script at the top of the XEmacs source
818 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
819 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
824 if test -z "$configuration"; then
825 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
826 if test -z "$configuration"; then
827 (echo "$progname: Usage error:"
828 echo " " "XEmacs has not been ported to this host type.
829 Try explicitly specifying the CONFIGURATION when rerunning configure."
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
834 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
835 echo "configure:836: checking whether ln -s works" >&5
838 if ln -s X conftestdata 2>/dev/null
841 ac_cv_prog_LN_S="ln -s"
845 LN_S="$ac_cv_prog_LN_S"
846 if test "$ac_cv_prog_LN_S" = "ln -s"; then
847 echo "$ac_t""yes" 1>&6
849 echo "$ac_t""no" 1>&6
853 for dir in lisp etc man info tests; do
854 if test ! -d "$dir" ; then
855 echo Making symbolic link to "$srcdir/$dir"
856 ${LN_S} "$srcdir/$dir" "$dir"
861 absolute_pwd="`pwd`";
862 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
864 else blddir="$absolute_pwd"; if test -d "/net"; then
865 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
866 blddir=`echo "$blddir" | \
867 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
874 . ) srcdir="$blddir" ;;
875 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
876 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
877 srcdir=`echo "$srcdir" | \
878 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
882 if test `pwd` != `sh -c cd $srcdir && pwd` \
883 && test -f "$srcdir/src/config.h"; then
884 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
885 echo " as a build directory right now; it has been configured in its own"
886 echo " right. To configure in another directory as well, you MUST"
887 echo " use GNU make. If you do not have GNU make, then you must"
888 echo " now do \`make distclean' in $srcdir,"
889 echo " and then run $progname again.") >&2
890 extrasub='/^VPATH[ ]*=/c\
896 vpath %.in $(srcdir)'
899 . "$srcdir/version.sh" || exit 1;
900 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
901 : "${extra_verbose=$beta}"
902 version="${emacs_major_version}.${emacs_minor_version}"
903 { test "$extra_verbose" = "yes" && cat << EOF
904 Defining EMACS_MAJOR_VERSION = $emacs_major_version
906 cat >> confdefs.h <<EOF
907 #define EMACS_MAJOR_VERSION $emacs_major_version
911 { test "$extra_verbose" = "yes" && cat << EOF
912 Defining EMACS_MINOR_VERSION = $emacs_minor_version
914 cat >> confdefs.h <<EOF
915 #define EMACS_MINOR_VERSION $emacs_minor_version
919 if test -n "$emacs_beta_version" ; then
920 if test "$beta" = "yes"; then
921 version="${version}-b${emacs_beta_version}"
922 { test "$extra_verbose" = "yes" && cat << EOF
923 Defining EMACS_BETA_VERSION = $emacs_beta_version
925 cat >> confdefs.h <<EOF
926 #define EMACS_BETA_VERSION $emacs_beta_version
931 version="${version}.${emacs_beta_version}"
932 { test "$extra_verbose" = "yes" && cat << EOF
933 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
935 cat >> confdefs.h <<EOF
936 #define EMACS_PATCH_LEVEL $emacs_beta_version
942 { test "$extra_verbose" = "yes" && cat << EOF
943 Defining XEMACS_CODENAME = "$xemacs_codename"
945 cat >> confdefs.h <<EOF
946 #define XEMACS_CODENAME "$xemacs_codename"
950 { test "$extra_verbose" = "yes" && cat << EOF
951 Defining EMACS_VERSION = "$version"
953 cat >> confdefs.h <<EOF
954 #define EMACS_VERSION "$version"
959 if test "$with_infodock" = "yes"; then
960 if test ! -f ../../ID-INSTALL; then
961 echo "Cannot build InfoDock without InfoDock sources"
966 if test "$with_infodock" = "yes"; then
967 { test "$extra_verbose" = "yes" && cat << EOF
968 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
970 cat >> confdefs.h <<EOF
971 #define INFODOCK_MAJOR_VERSION $infodock_major_version
975 { test "$extra_verbose" = "yes" && cat << EOF
976 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
978 cat >> confdefs.h <<EOF
979 #define INFODOCK_MINOR_VERSION $infodock_minor_version
983 { test "$extra_verbose" = "yes" && cat << EOF
984 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
986 cat >> confdefs.h <<EOF
987 #define INFODOCK_BUILD_VERSION $infodock_build_version
991 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
993 CPPFLAGS="$CPPFLAGS -DINFODOCK"
998 { test "$extra_verbose" = "yes" && cat << EOF
999 Defining EMACS_PROGNAME = "$PROGNAME"
1001 cat >> confdefs.h <<EOF
1002 #define EMACS_PROGNAME "$PROGNAME"
1007 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1008 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1009 Defining ERROR_CHECK_EXTENTS
1011 cat >> confdefs.h <<\EOF
1012 #define ERROR_CHECK_EXTENTS 1
1016 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1017 Defining ERROR_CHECK_TYPECHECK
1019 cat >> confdefs.h <<\EOF
1020 #define ERROR_CHECK_TYPECHECK 1
1024 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1025 Defining ERROR_CHECK_BUFPOS
1027 cat >> confdefs.h <<\EOF
1028 #define ERROR_CHECK_BUFPOS 1
1032 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1033 Defining ERROR_CHECK_GC
1035 cat >> confdefs.h <<\EOF
1036 #define ERROR_CHECK_GC 1
1040 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1041 Defining ERROR_CHECK_MALLOC
1043 cat >> confdefs.h <<\EOF
1044 #define ERROR_CHECK_MALLOC 1
1048 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1049 Defining ERROR_CHECK_BYTE_CODE
1051 cat >> confdefs.h <<\EOF
1052 #define ERROR_CHECK_BYTE_CODE 1
1056 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1057 Defining ERROR_CHECK_GLYPHS
1059 cat >> confdefs.h <<\EOF
1060 #define ERROR_CHECK_GLYPHS 1
1064 if test "${debug:=$beta}" = "yes"; then
1065 use_assertions=yes memory_usage_stats=yes
1066 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1067 echo " xemacs will be linked with \"debug.o\""
1069 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1070 echo " xemacs will be linked with \"tests.o\""
1072 { test "$extra_verbose" = "yes" && cat << \EOF
1073 Defining DEBUG_XEMACS
1075 cat >> confdefs.h <<\EOF
1076 #define DEBUG_XEMACS 1
1081 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1082 Defining USE_ASSERTIONS
1084 cat >> confdefs.h <<\EOF
1085 #define USE_ASSERTIONS 1
1089 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1090 Defining MEMORY_USAGE_STATS
1092 cat >> confdefs.h <<\EOF
1093 #define MEMORY_USAGE_STATS 1
1099 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1100 echo "configure:1101: checking "host system type"" >&5
1101 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1102 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1103 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1104 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1105 echo "$ac_t""$configuration" 1>&6
1113 case "$canonical" in
1114 sparc-*-* ) machine=sparc ;;
1115 alpha*-*-* ) machine=alpha ;;
1116 vax-*-* ) machine=vax ;;
1117 mips-dec-* ) machine=pmax ;;
1118 mips-sgi-irix6* ) machine=iris6d ;;
1119 mips-sgi-* ) machine=iris4d ;;
1120 mips*-linux ) machine=mips ;;
1121 romp-ibm-* ) machine=ibmrt ;;
1122 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1123 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1124 powerpc*-* ) machine=powerpc ;;
1125 hppa-*-* ) machine=hp800 ;;
1126 m88k-dg-* ) machine=aviion ;;
1127 m68*-sony-* ) machine=news ;;
1128 mips-sony-* ) machine=news-risc ;;
1129 clipper-* ) machine=clipper ;;
1130 arm* ) machine=arm ;;
1131 ns32k-* ) machine=ns32000 ;;
1134 case "$canonical" in
1135 *-*-linux* ) opsys=linux ;;
1136 *-*-netbsd* ) opsys=netbsd ;;
1137 *-*-openbsd* ) opsys=openbsd ;;
1138 *-*-nextstep* ) opsys=nextstep ;;
1139 *-*-vms ) opsys=vms ;;
1141 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1142 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1143 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1144 *-dec-osf3* ) opsys=decosf3-1 ;;
1145 *-dec-osf4* ) opsys=decosf4-0 ;;
1147 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1148 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1149 *-*-ultrix* ) opsys=ultrix4-3 ;;
1151 *-*-aix3.1* ) opsys=aix3-1 ;;
1152 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1153 *-*-aix3* ) opsys=aix3-2 ;;
1154 *-*-aix4.0* ) opsys=aix4 ;;
1155 *-*-aix4.1* ) opsys=aix4-1 ;;
1156 *-*-aix4* ) opsys=aix4-2 ;;
1158 *-gnu* ) opsys=gnu ;;
1159 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1160 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1161 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1162 *-*-aos4.2 ) opsys=bsd4-2 ;;
1163 *-*-aos* ) opsys=bsd4-3 ;;
1164 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1165 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1166 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1167 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1168 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1169 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1170 if test -z "$NON_GNU_CPP" ; then
1171 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1172 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1176 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1177 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1180 case "$canonical" in
1183 case "$canonical" in
1184 i[3-9]86-*-netbsd*) machine=intel386 ;;
1185 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1186 machine=hp9000s300 ;;
1187 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1188 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1193 case "${canonical}" in
1194 i386-*-openbsd*) machine=intel386 ;;
1195 m68k-*-openbsd*) machine=hp9000s300 ;;
1196 mipsel-*-openbsd*) machine=pmax ;;
1200 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1201 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1203 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1204 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1206 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1208 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1210 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1212 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1214 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1216 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1217 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1218 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1221 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1223 *-convex-bsd* | *-convex-convexos* )
1224 machine=convex opsys=bsd4-3
1225 NON_GNU_CPP="cc -E -P"
1228 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1230 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1231 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1232 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1233 m88k-dg-dgux* ) opsys=dgux ;;
1235 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1236 m88k-motorola-sysv4* )
1237 machine=delta88k opsys=usg5-4-2
1239 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1241 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1242 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1244 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1246 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1247 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1248 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1251 case "`uname -r`" in
1252 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1253 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1255 NON_GNU_CPP="/lib/cpp"
1257 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1258 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1260 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1262 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1265 case "$canonical" in
1266 m68* ) machine=hp9000s300 ;;
1267 hppa* ) machine=hp800 ;;
1270 case "$canonical" in
1271 *-hp-hpux7* ) opsys=hpux ;;
1272 *-hp-hpux8* ) opsys=hpux8 ;;
1273 *-hp-hpux9* ) opsys=hpux9 ;;
1274 *-hp-hpux10* ) opsys=hpux10 ;;
1275 *-hp-hpux11* ) opsys=hpux11 ;;
1279 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1280 echo " xemacs will be linked with \"strcat.o\""
1283 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1284 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1285 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1287 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1290 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1291 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1293 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1294 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1295 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1296 romp-ibm-aos* ) opsys=bsd4-3 ;;
1297 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1298 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1300 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1301 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1303 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1305 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1307 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1309 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1311 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1313 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1315 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1317 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1319 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1321 mips-mips-usg* ) machine=mips4 ;;
1324 NON_GNU_CC="cc -systype bsd43"
1325 NON_GNU_CPP="cc -systype bsd43 -E"
1326 case "$canonical" in
1327 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1328 mips-mips-riscos5* ) opsys=riscos5 ;;
1331 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1332 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1334 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1336 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1338 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1339 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1341 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1343 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1345 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1347 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1349 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1350 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1352 mips-siemens-sysv* | mips-sni-sysv*)
1353 machine=mips-siemens opsys=usg5-4
1354 NON_GNU_CC=/usr/ccs/bin/cc
1355 NON_GNU_CPP=/usr/ccs/lib/cpp
1360 NON_GNU_CC=/usr/ccs/bin/cc
1361 NON_GNU_CPP=/usr/ccs/lib/cpp
1364 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1365 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1366 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1367 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1368 mips-sgi-irix6* ) opsys=irix6-0 ;;
1369 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1370 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1371 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1372 mips-sgi-irix* ) opsys=irix5-0 ;;
1374 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1375 *-sony-news* ) opsys=newsos5 ;;
1377 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1379 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1380 case "$canonical" in
1381 m68*-sunos1* ) machine=sun1 ;;
1382 m68*-sunos2* ) machine=sun2 ;;
1383 m68* ) machine=sun3 ;;
1384 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1385 i*86-*-* ) machine=intel386 ;;
1386 rs6000* ) machine=rs6000 ;;
1389 case "$canonical" in *-sunos5*)
1390 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1393 case "$canonical" in
1395 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1398 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1402 case "$canonical" in
1405 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1406 { test "$extra_verbose" = "yes" && cat << EOF
1407 Defining OS_RELEASE = $os_release
1409 cat >> confdefs.h <<EOF
1410 #define OS_RELEASE $os_release
1415 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1416 *-sunos4.0* ) opsys=sunos4-0 ;;
1417 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1418 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1419 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1420 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1421 *-mach* ) opsys=mach-bsd4-3 ;;
1425 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1427 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1430 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1432 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1433 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1435 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1437 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1439 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1440 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1442 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1444 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1447 case "$canonical" in
1448 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1449 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1450 *-mach* ) opsys=mach-bsd4-3 ;;
1454 ns16k-whitechapel-* ) machine=mg1 ;;
1456 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1460 case "$canonical" in
1461 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1462 *-isc2.2* ) opsys=isc2-2 ;;
1463 *-isc4.0* ) opsys=isc4-0 ;;
1464 *-isc4.* ) opsys=isc4-1
1465 GCC_TEST_OPTIONS=-posix
1466 NON_GCC_TEST_OPTIONS=-Xp
1468 *-isc* ) opsys=isc3-0 ;;
1469 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1470 *-esix* ) opsys=esix ;;
1471 *-mach* ) opsys=mach-bsd4-3 ;;
1472 *-xenix* ) opsys=xenix ;;
1473 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1474 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1475 *-bsdi4* ) opsys=bsdos4 ;;
1476 *-bsdi3* ) opsys=bsdos3 ;;
1477 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1478 *-bsdi2* ) opsys=bsdos2 ;;
1479 *-sco3.2v5* ) opsys=sco5 ;
1480 if test "$dynamic" = "yes" ; then
1481 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1483 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1485 *-sysv5* ) opsys=sco7 ;;
1486 *-386bsd* ) opsys=386bsd ;;
1487 *-freebsd* ) opsys=freebsd ;;
1488 *-nextstep* ) opsys=nextstep ;;
1489 *-pc-cygwin* ) opsys=cygwin32 ;;
1490 *-pc-mingw* ) opsys=mingw32 ;
1491 test -z "$with_tty" && with_tty="no";;
1495 m68k-*-linux* ) machine=m68k opsys=linux ;;
1499 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1500 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1502 if test -r "${srcdir}/src/m/${machine}.h"; then
1503 machfile="m/${machine}.h"
1504 { test "$extra_verbose" = "yes" && cat << EOF
1505 Defining config_machfile = "$machfile"
1507 cat >> confdefs.h <<EOF
1508 #define config_machfile "$machfile"
1513 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1514 echo "Using configure-time autodetection only."
1517 if test -r "${srcdir}/src/s/${opsys}.h"; then
1518 opsysfile="s/${opsys}.h"
1519 { test "$extra_verbose" = "yes" && cat << EOF
1520 Defining config_opsysfile = "$opsysfile"
1522 cat >> confdefs.h <<EOF
1523 #define config_opsysfile "$opsysfile"
1528 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1529 echo "Using configure-time autodetection only."
1533 if test -z "$dynamic"; then
1535 hpux* | sunos4* ) dynamic=no ;;
1539 if test "$dynamic" = "yes"; then
1541 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1542 decosf* ) ld_call_shared="-call_shared" ;;
1544 else case "$opsys" in
1546 echo "Static linking is not supported on Solaris 2."
1547 echo "Rerun configure without specifying --dynamic=no."
1549 linux ) ld_call_shared="-Bstatic" ;;
1550 decosf* ) ld_call_shared="-non_shared" ;;
1554 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1556 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1557 { test "$extra_verbose" = "yes" && cat << EOF
1558 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1560 cat >> confdefs.h <<EOF
1561 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1567 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1568 if test "$with_workshop $with_tooltalk" = "yes no"; then
1569 (echo "$progname: Usage error:"
1570 echo " " "--with-workshop requires --with-tooltalk"
1571 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1572 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1573 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1576 if test "$with_workshop" = "yes"; then
1577 { test "$extra_verbose" = "yes" && cat << \EOF
1580 cat >> confdefs.h <<\EOF
1585 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1586 echo " xemacs will be linked with \"sunpro.o\""
1590 if test "$with_clash_detection" != "no"; then
1591 { test "$extra_verbose" = "yes" && cat << \EOF
1592 Defining CLASH_DETECTION
1594 cat >> confdefs.h <<\EOF
1595 #define CLASH_DETECTION 1
1599 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1600 echo " xemacs will be linked with \"filelock.o\""
1604 test -n "$compiler" && CC="$compiler"
1605 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1608 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1609 if test "${CFLAGS-unset}" != unset
1610 then cflags_specified=yes;
1611 else cflags_specified=no;
1614 xe_save_CFLAGS="$CFLAGS"
1616 # Extract the first word of "gcc", so it can be a program name with args.
1617 set dummy gcc; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1626 for ac_dir in $ac_dummy; do
1627 test -z "$ac_dir" && ac_dir=.
1628 if test -f $ac_dir/$ac_word; then
1636 if test -n "$CC"; then
1637 echo "$ac_t""$CC" 1>&6
1639 echo "$ac_t""no" 1>&6
1642 if test -z "$CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_word" >&5
1648 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test.
1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1654 for ac_dir in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1658 ac_prog_rejected=yes
1666 if test $ac_prog_rejected = yes; then
1667 # We found a bogon in the path, so make sure we never use it.
1668 set dummy $ac_cv_prog_CC
1670 if test $# -gt 0; then
1671 # We chose a different compiler from the bogus one.
1672 # However, it has the same basename, so the bogon will be chosen
1673 # first if we set CC to just the basename; use the full file name.
1675 set dummy "$ac_dir/$ac_word" "$@"
1682 if test -n "$CC"; then
1683 echo "$ac_t""$CC" 1>&6
1685 echo "$ac_t""no" 1>&6
1688 if test -z "$CC"; then
1689 case "`uname -s`" in
1691 # Extract the first word of "cl", so it can be a program name with args.
1692 set dummy cl; ac_word=$2
1693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1694 echo "configure:1695: checking for $ac_word" >&5
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1701 for ac_dir in $ac_dummy; do
1702 test -z "$ac_dir" && ac_dir=.
1703 if test -f $ac_dir/$ac_word; then
1711 if test -n "$CC"; then
1712 echo "$ac_t""$CC" 1>&6
1714 echo "$ac_t""no" 1>&6
1719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1726 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1727 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1728 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1729 ac_cpp='$CPP '"$xe_cppflags"
1730 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1731 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1734 cat > conftest.$ac_ext << EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1742 ac_cv_prog_cc_works=yes
1743 # If we can't run a trivial program, we are probably using a cross compiler.
1744 if (./conftest; exit) 2>/dev/null; then
1745 ac_cv_prog_cc_cross=no
1747 ac_cv_prog_cc_cross=yes
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1752 ac_cv_prog_cc_works=no
1756 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1757 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1758 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1759 ac_cpp='$CPP '"$xe_cppflags"
1760 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1761 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1765 if test $ac_cv_prog_cc_works = no; then
1766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1769 echo "configure:1770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1771 cross_compiling=$ac_cv_prog_cc_cross
1773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether we are using GNU C" >&5
1776 cat > conftest.c <<EOF
1781 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1787 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1789 if test $ac_cv_prog_gcc = yes; then
1795 ac_test_CFLAGS="${CFLAGS+set}"
1796 ac_save_CFLAGS="$CFLAGS"
1798 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1799 echo "configure:1800: checking whether ${CC-cc} accepts -g" >&5
1801 echo 'void f(){}' > conftest.c
1802 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1810 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1811 if test "$ac_test_CFLAGS" = set; then
1812 CFLAGS="$ac_save_CFLAGS"
1813 elif test $ac_cv_prog_cc_g = yes; then
1814 if test "$GCC" = yes; then
1820 if test "$GCC" = yes; then
1827 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2
1831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1832 echo "configure:1833: checking for $ac_word" >&5
1834 if test -n "$CC"; then
1835 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1839 for ac_dir in $ac_dummy; do
1840 test -z "$ac_dir" && ac_dir=.
1841 if test -f $ac_dir/$ac_word; then
1849 if test -n "$CC"; then
1850 echo "$ac_t""$CC" 1>&6
1852 echo "$ac_t""no" 1>&6
1855 if test -z "$CC"; then
1856 # Extract the first word of "cc", so it can be a program name with args.
1857 set dummy cc; ac_word=$2
1858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_word" >&5
1861 if test -n "$CC"; then
1862 ac_cv_prog_CC="$CC" # Let the user override the test.
1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1867 for ac_dir in $ac_dummy; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
1870 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1871 ac_prog_rejected=yes
1879 if test $ac_prog_rejected = yes; then
1880 # We found a bogon in the path, so make sure we never use it.
1881 set dummy $ac_cv_prog_CC
1883 if test $# -gt 0; then
1884 # We chose a different compiler from the bogus one.
1885 # However, it has the same basename, so the bogon will be chosen
1886 # first if we set CC to just the basename; use the full file name.
1888 set dummy "$ac_dir/$ac_word" "$@"
1895 if test -n "$CC"; then
1896 echo "$ac_t""$CC" 1>&6
1898 echo "$ac_t""no" 1>&6
1901 if test -z "$CC"; then
1902 case "`uname -s`" in
1904 # Extract the first word of "cl", so it can be a program name with args.
1905 set dummy cl; ac_word=$2
1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_word" >&5
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1914 for ac_dir in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir=.
1916 if test -f $ac_dir/$ac_word; then
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1927 echo "$ac_t""no" 1>&6
1932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1939 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1940 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1941 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1942 ac_cpp='$CPP '"$xe_cppflags"
1943 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1944 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1947 cat > conftest.$ac_ext << EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1955 ac_cv_prog_cc_works=yes
1956 # If we can't run a trivial program, we are probably using a cross compiler.
1957 if (./conftest; exit) 2>/dev/null; then
1958 ac_cv_prog_cc_cross=no
1960 ac_cv_prog_cc_cross=yes
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1965 ac_cv_prog_cc_works=no
1969 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1970 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1971 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1972 ac_cpp='$CPP '"$xe_cppflags"
1973 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1974 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1978 if test $ac_cv_prog_cc_works = no; then
1979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1982 echo "configure:1983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1984 cross_compiling=$ac_cv_prog_cc_cross
1986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether we are using GNU C" >&5
1989 cat > conftest.c <<EOF
1994 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2000 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2002 if test $ac_cv_prog_gcc = yes; then
2008 ac_test_CFLAGS="${CFLAGS+set}"
2009 ac_save_CFLAGS="$CFLAGS"
2011 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether ${CC-cc} accepts -g" >&5
2014 echo 'void f(){}' > conftest.c
2015 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2023 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2024 if test "$ac_test_CFLAGS" = set; then
2025 CFLAGS="$ac_save_CFLAGS"
2026 elif test $ac_cv_prog_cc_g = yes; then
2027 if test "$GCC" = yes; then
2033 if test "$GCC" = yes; then
2040 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2042 # Extract the first word of "gcc", so it can be a program name with args.
2043 set dummy gcc; ac_word=$2
2044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2045 echo "configure:2046: checking for $ac_word" >&5
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2052 for ac_dir in $ac_dummy; do
2053 test -z "$ac_dir" && ac_dir=.
2054 if test -f $ac_dir/$ac_word; then
2062 if test -n "$CC"; then
2063 echo "$ac_t""$CC" 1>&6
2065 echo "$ac_t""no" 1>&6
2068 if test -z "$CC"; then
2069 # Extract the first word of "cc", so it can be a program name with args.
2070 set dummy cc; ac_word=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2080 for ac_dir in $ac_dummy; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2083 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2084 ac_prog_rejected=yes
2092 if test $ac_prog_rejected = yes; then
2093 # We found a bogon in the path, so make sure we never use it.
2094 set dummy $ac_cv_prog_CC
2096 if test $# -gt 0; then
2097 # We chose a different compiler from the bogus one.
2098 # However, it has the same basename, so the bogon will be chosen
2099 # first if we set CC to just the basename; use the full file name.
2101 set dummy "$ac_dir/$ac_word" "$@"
2108 if test -n "$CC"; then
2109 echo "$ac_t""$CC" 1>&6
2111 echo "$ac_t""no" 1>&6
2114 if test -z "$CC"; then
2115 case "`uname -s`" in
2117 # Extract the first word of "cl", so it can be a program name with args.
2118 set dummy cl; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2122 if test -n "$CC"; then
2123 ac_cv_prog_CC="$CC" # Let the user override the test.
2125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2127 for ac_dir in $ac_dummy; do
2128 test -z "$ac_dir" && ac_dir=.
2129 if test -f $ac_dir/$ac_word; then
2137 if test -n "$CC"; then
2138 echo "$ac_t""$CC" 1>&6
2140 echo "$ac_t""no" 1>&6
2145 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2148 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2149 echo "configure:2150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2152 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2153 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2154 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2155 ac_cpp='$CPP '"$xe_cppflags"
2156 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2157 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2160 cat > conftest.$ac_ext << EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2168 ac_cv_prog_cc_works=yes
2169 # If we can't run a trivial program, we are probably using a cross compiler.
2170 if (./conftest; exit) 2>/dev/null; then
2171 ac_cv_prog_cc_cross=no
2173 ac_cv_prog_cc_cross=yes
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2178 ac_cv_prog_cc_works=no
2182 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2183 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2184 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2185 ac_cpp='$CPP '"$xe_cppflags"
2186 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2187 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2190 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2191 if test $ac_cv_prog_cc_works = no; then
2192 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2194 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2195 echo "configure:2196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2196 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2197 cross_compiling=$ac_cv_prog_cc_cross
2199 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether we are using GNU C" >&5
2202 cat > conftest.c <<EOF
2207 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2213 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2215 if test $ac_cv_prog_gcc = yes; then
2221 ac_test_CFLAGS="${CFLAGS+set}"
2222 ac_save_CFLAGS="$CFLAGS"
2224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2225 echo "configure:2226: checking whether ${CC-cc} accepts -g" >&5
2227 echo 'void f(){}' > conftest.c
2228 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2237 if test "$ac_test_CFLAGS" = set; then
2238 CFLAGS="$ac_save_CFLAGS"
2239 elif test $ac_cv_prog_cc_g = yes; then
2240 if test "$GCC" = yes; then
2246 if test "$GCC" = yes; then
2254 CFLAGS="$xe_save_CFLAGS"
2257 test -n "$CPP" -a -d "$CPP" && CPP=
2259 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2261 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2262 echo "configure:2263: checking how to run the C preprocessor" >&5
2263 # On Suns, sometimes $CPP names a directory.
2264 if test -n "$CPP" && test -d "$CPP"; then
2267 if test -z "$CPP"; then
2269 # This must be in double quotes, not single quotes, because CPP may get
2270 # substituted into the Makefile and "${CC-cc}" will confuse make.
2272 # On the NeXT, cc -E runs the code through the compiler's parser,
2273 # not just through cpp.
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2281 { (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283 if test -z "$ac_err"; then
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 CPP="${CC-cc} -E -traditional-cpp"
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2298 { (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2300 if test -z "$ac_err"; then
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2307 CPP="${CC-cc} -nologo -E"
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2331 ac_cv_prog_CPP="$CPP"
2332 CPP="$ac_cv_prog_CPP"
2334 ac_cv_prog_CPP="$CPP"
2336 echo "$ac_t""$CPP" 1>&6
2340 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2341 echo "configure:2342: checking for AIX" >&5
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2351 egrep "yes" >/dev/null 2>&1; then
2353 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2354 Defining _ALL_SOURCE
2356 cat >> confdefs.h <<\EOF
2357 #define _ALL_SOURCE 1
2363 echo "$ac_t""no" 1>&6
2369 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2370 echo "configure:2371: checking for GNU libc" >&5
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <features.h>
2377 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2378 #error Not a GNU libc system :-(
2379 ******* ======= ******** &&&&&&&&
2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2394 echo "$ac_t""$have_glibc" 1>&6
2395 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2396 Defining _GNU_SOURCE
2398 cat >> confdefs.h <<\EOF
2399 #define _GNU_SOURCE 1
2406 { test "$extra_verbose" = "yes" && cat << \EOF
2407 Defining __EXTENSIONS__
2409 cat >> confdefs.h <<\EOF
2410 #define __EXTENSIONS__ 1
2414 if test "$os_release" -ge 55; then
2415 { test "$extra_verbose" = "yes" && cat << \EOF
2416 Defining _XOPEN_SOURCE = 500
2418 cat >> confdefs.h <<\EOF
2419 #define _XOPEN_SOURCE 500
2423 { test "$extra_verbose" = "yes" && cat << \EOF
2424 Defining _XOPEN_SOURCE_EXTENDED
2426 cat >> confdefs.h <<\EOF
2427 #define _XOPEN_SOURCE_EXTENDED 1
2433 { test "$extra_verbose" = "yes" && cat << \EOF
2434 Defining _POSIX_C_SOURCE = 199506L
2436 cat >> confdefs.h <<\EOF
2437 #define _POSIX_C_SOURCE 199506L
2441 { test "$extra_verbose" = "yes" && cat << \EOF
2442 Defining _XOPEN_SOURCE = 500
2444 cat >> confdefs.h <<\EOF
2445 #define _XOPEN_SOURCE 500
2449 { test "$extra_verbose" = "yes" && cat << \EOF
2450 Defining _XOPEN_SOURCE_EXTENDED
2452 cat >> confdefs.h <<\EOF
2453 #define _XOPEN_SOURCE_EXTENDED 1
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2464 #if defined __SUNPRO_C
2466 #elif defined __DECC
2468 #elif defined __USLC__ && defined __SCO_VERSION__
2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2480 echo "configure: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2483 case "$conftest_rc" in
2484 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2485 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2486 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2494 echo "Extracting information from the machine- and system-dependent headers..."
2496 tempcname="conftest.c"
2500 cat > $tempcname < confdefs.h
2501 cat >> $tempcname <<EOF
2503 #define C_SWITCH_SITE
2504 #define C_SWITCH_X_SITE
2505 #define LD_SWITCH_SITE
2506 #define LD_SWITCH_X_SITE
2507 #define LD_SWITCH_X_SITE_AUX
2508 #define OS_RELEASE $os_release
2510 #ifdef config_opsysfile
2511 #include "$srcdir/src/$opsysfile"
2514 #ifdef config_machfile
2515 #include "$srcdir/src/$machfile"
2518 #ifndef LIBS_MACHINE
2519 #define LIBS_MACHINE
2521 configure___ libs_machine=LIBS_MACHINE
2526 configure___ libs_system=LIBS_SYSTEM
2528 #ifndef LIBS_TERMCAP
2529 #define LIBS_TERMCAP
2531 configure___ libs_termcap=LIBS_TERMCAP
2533 #ifndef LIB_STANDARD
2534 #define LIB_STANDARD
2536 configure___ libs_standard=LIB_STANDARD
2539 #ifndef OBJECTS_MACHINE
2540 #define OBJECTS_MACHINE
2542 configure___ objects_machine=OBJECTS_MACHINE
2544 #ifndef OBJECTS_SYSTEM
2545 #define OBJECTS_SYSTEM
2547 configure___ objects_system=OBJECTS_SYSTEM
2550 #ifndef C_SWITCH_MACHINE
2551 #define C_SWITCH_MACHINE
2553 configure___ c_switch_machine=C_SWITCH_MACHINE
2555 #ifndef C_SWITCH_SYSTEM
2556 #define C_SWITCH_SYSTEM
2558 configure___ c_switch_system=C_SWITCH_SYSTEM
2561 #ifndef LD_SWITCH_MACHINE
2562 #define LD_SWITCH_MACHINE
2564 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2566 #ifndef LD_SWITCH_SYSTEM
2567 #define LD_SWITCH_SYSTEM
2569 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2573 #define UNEXEC "unexec.o"
2575 configure___ unexec=UNEXEC
2578 #ifndef LD_SWITCH_SHARED
2579 #define LD_SWITCH_SHARED "-c"
2581 configure___ ld_switch_shared=LD_SWITCH_SHARED
2584 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2585 configure___ ordinary_ld=ORDINARY_LD
2587 #ifdef ORDINARY_LINK
2588 #define LD ORDINARY_LD
2589 #else /* no ORDINARY LINK */
2590 #ifdef COFF_ENCAPSULATE
2591 #define LD "\$(CC) -nostdlib"
2592 #else /* not COFF_ENCAPSULATE */
2595 #else /* ! defined (LINKER) */
2597 #endif /* ! defined (LINKER) */
2598 #endif /* ! defined (COFF_ENCAPSULATE) */
2599 #endif /* not ORDINARY_LINK */
2605 configure___ lib_gcc=LIB_GCC
2607 #ifndef LD_TEXT_START_ADDR
2608 #define LD_TEXT_START_ADDR
2610 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2613 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2615 #ifdef COFF_ENCAPSULATE
2616 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2617 #else /* ! defined (COFF_ENCAPSULATE) */
2618 #define START_FILES "pre-crt0.o /lib/crt0.o"
2619 #endif /* ! defined (COFF_ENCAPSULATE) */
2620 #else /* ! defined (NO_REMAP) */
2621 #define START_FILES "ecrt0.o"
2622 #endif /* ! defined (NO_REMAP) */
2623 #endif /* no ORDINARY_LINK */
2627 configure___ start_files=START_FILES
2629 #ifdef ORDINARY_LINK
2630 configure___ ordinary_link=yes
2632 configure___ ordinary_link=no
2635 #ifdef SYSTEM_MALLOC
2636 configure___ system_malloc=yes
2638 configure___ system_malloc=no
2642 configure___ have_terminfo=yes
2644 configure___ have_terminfo=no
2647 #ifdef MAIL_USE_FLOCK
2648 configure___ mail_use_flock=yes
2650 configure___ mail_use_flock=no
2653 #ifdef MAIL_USE_LOCKF
2654 configure___ mail_use_lockf=yes
2656 configure___ mail_use_lockf=no
2659 #ifdef MAIL_USE_LOCKING
2660 configure___ mail_use_locking=yes
2662 configure___ mail_use_locking=no
2665 #ifdef HAVE_WIN32_PROCESSES
2666 configure___ win32_processes=yes
2668 configure___ win32_processes=no
2673 CPP=`eval "echo $CPP $CPPFLAGS"`
2674 eval `$CPP -Isrc $tempcname \
2675 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2679 if test "$pdump" = "yes"; then
2688 test "$extra_verbose" = "yes" && \
2689 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2691 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2692 mingw_include=`eval "dirname $mingw_include"` ;
2693 mingw_include="-I$mingw_include/../include/mingw32" ;
2694 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2697 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2700 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2702 if test "$__USLC__" = yes; then
2703 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2704 echo "configure:2705: checking for whether the -Kalloca compiler flag is needed" >&5
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2711 void *x = alloca(4);
2714 if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2718 echo "configure: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2722 xe_save_c_switch_system="$c_switch_system"
2723 c_switch_system="$c_switch_system -Kalloca"
2724 cat > conftest.$ac_ext <<EOF
2725 #line 2726 "configure"
2726 #include "confdefs.h"
2729 void *x = alloca(4);
2732 if { (eval echo configure:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2736 echo "configure: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2740 c_switch_system="$xe_save_c_switch_system"
2743 echo "$ac_t""$need_kalloca" 1>&6
2744 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
2747 if test "$cflags_specified" = "no"; then
2748 if test "$GCC" = "yes"; then
2749 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2750 elif test "$__SUNPRO_C" = "yes"; then
2752 sol2 ) CFLAGS="-v -xO4" ;;
2753 sunos4* ) CFLAGS="-xO2";;
2755 elif test "$__DECC" = "yes"; then
2757 elif test "$CC" = "xlc"; then
2758 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2763 if test "$GCC" = "yes"; then
2764 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2765 echo "configure:2766: checking for buggy gcc versions" >&5
2766 GCC_VERSION=`$CC --version`
2767 case `uname -s`:`uname -m`:$GCC_VERSION in
2768 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2772 *-fno-schedule-insns*) ;;
2774 echo "$ac_t""yes" 1>&6
2775 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2776 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2777 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2783 Linux:alpha:egcs-2.91.*)
2784 echo "$ac_t""yes" 1>&6
2785 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2786 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2787 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2790 case "$GCC_VERSION" in
2795 *-fno-strength-reduce*) ;;
2797 echo "$ac_t""yes" 1>&6
2798 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2799 echo "configure: warning: -fno-strength-reduce." 1>&2
2800 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2808 *-fno-caller-saves*) ;;
2810 echo "$ac_t""yes" 1>&6
2811 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2812 echo "configure: warning: -fno-caller-saves." 1>&2
2813 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2818 echo "$ac_t""no" 1>&6
2822 if test "$GCC" = "yes"; then
2823 set x $ld_switch_system; shift; ld_switch_system=""
2824 while test -n "$1"; do
2826 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2827 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2829 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2835 if test "$GCC" = "yes"; then
2836 set x $ld_switch_machine; shift; ld_switch_machine=""
2837 while test -n "$1"; do
2839 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2840 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2842 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2848 if test "$GCC" = "yes"; then
2849 set x $LDFLAGS; shift; LDFLAGS=""
2850 while test -n "$1"; do
2852 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2853 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2855 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2861 if test "$GCC" = "yes"; then
2862 set x $ld_call_shared; shift; ld_call_shared=""
2863 while test -n "$1"; do
2865 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2866 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2868 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2874 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2875 echo " xemacs will be linked with \"$objects_machine\""
2877 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2878 echo " xemacs will be linked with \"$objects_system\""
2880 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2881 echo " xemacs will be linked with \"$unexec\""
2883 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2884 echo " xemacs will be linked with \"dumper.o\""
2887 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2888 echo "configure:2889: checking for dynodump" >&5
2889 if test "$unexec" != "unexsol2.o"; then
2890 echo "$ac_t""no" 1>&6
2892 echo "$ac_t""yes" 1>&6
2893 { test "$extra_verbose" = "yes" && cat << \EOF
2896 cat >> confdefs.h <<\EOF
2901 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2902 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2904 sparc ) dynodump_arch=sparc ;;
2905 *86* ) dynodump_arch=i386 ;;
2906 powerpc ) dynodump_arch=ppc ;;
2908 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
2912 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2914 if test "$unexec" = "unexaix.o"; then
2915 if test "$dynamic" = "no"; then
2916 start_flags="-Wl,-bnso,-bnodelcsect"
2917 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2918 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2919 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2921 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2922 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2925 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2926 echo "configure:2927: checking for terminateAndUnload in -lC" >&5
2927 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2929 xe_check_libs=" -lC "
2930 cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 /* Override any gcc2 internal prototype to avoid an error. */
2934 /* We use char because int might match the return type of a gcc2
2935 builtin and then its argument prototype would still apply. */
2936 char terminateAndUnload();
2939 terminateAndUnload()
2942 if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2944 eval "ac_cv_lib_$ac_lib_var=yes"
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2949 eval "ac_cv_lib_$ac_lib_var=no"
2954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2955 echo "$ac_t""yes" 1>&6
2956 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2958 echo "$ac_t""no" 1>&6
2963 elif test -n "$ld_text_start_addr"; then
2964 start_flags="-T $ld_text_start_addr -e __start"
2970 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2971 test -z "$linker" && linker='$(CC) -nostdlib'
2972 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2974 test "$GCC" != "yes" && lib_gcc=
2980 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2981 if test -n "$site_libraries"; then
2982 for arg in $site_libraries; do
2985 * ) test -d "$arg" || \
2986 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2989 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2993 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2994 if test -n "$site_includes"; then
2995 for arg in $site_includes; do
2998 * ) test -d "$arg" || \
2999 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3002 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3006 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3007 if test -n "$site_prefixes"; then
3008 for dir in $site_prefixes; do
3009 lib_dir="${dir}/lib"
3010 inc_dir="${dir}/include"
3011 if test ! -d "$dir"; then
3012 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3013 elif test ! -d "$lib_dir"; then
3014 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3016 if test -d "$inc_dir"; then
3017 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
3019 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
3025 for dir in "/usr/ccs/lib"; do
3026 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
3029 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3030 if test -n "$site_runtime_libraries"; then
3031 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3039 if test -n "$add_runtime_path"; then :;
3040 elif test "$dynamic" = "no"; then add_runtime_path=no
3041 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3042 else case "$opsys" in
3043 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3044 * ) add_runtime_path=no ;;
3048 if test "$add_runtime_path" = "yes"; then
3049 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3050 echo "configure:3051: checking "for runtime libraries flag"" >&5
3052 sol2 ) dash_r="-R" ;;
3053 decosf* | linux* | irix*) dash_r="-rpath " ;;
3056 for try_dash_r in "-R" "-R " "-rpath "; do
3057 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3059 if test "$GCC" = "yes"; then
3060 set x $xe_check_libs; shift; xe_check_libs=""
3061 while test -n "$1"; do
3063 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3064 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3066 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3081 dash_r="$try_dash_r"
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3088 test -n "$dash_r" && break
3091 if test -n "$dash_r";
3092 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3093 else echo "$ac_t""NONE" 1>&6
3097 xe_add_unique_runpath_dir='
3099 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3101 if test "$xe_add_p" = "yes"; then
3102 test -n "$runpath" && runpath="${runpath}:"
3103 runpath="${runpath}${xe_runpath_dir}"
3104 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3110 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3111 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3112 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3114 runpath="" runpath_dirs=""
3115 if test -n "$LD_RUN_PATH"; then
3116 runpath="$LD_RUN_PATH"
3117 elif test "$GCC" = "yes"; then
3118 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3119 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3120 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3121 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3122 case "$arg" in P,* | -L* | -R* )
3123 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3125 xe_runpath_dir="$dir"
3126 test "$xe_runpath_dir" != "/lib" -a \
3127 "$xe_runpath_dir" != "/usr/lib" -a \
3128 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3129 eval "$xe_add_unique_runpath_dir"
3134 ld_switch_run="$ld_switch_run_save"
3137 for arg in $ld_switch_site $ld_switch_x_site; do
3138 case "$arg" in -L*) {
3139 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3140 test "$xe_runpath_dir" != "/lib" -a \
3141 "$xe_runpath_dir" != "/usr/lib" -a \
3142 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3143 eval "$xe_add_unique_runpath_dir"
3146 if test "$opsys $need_motif" = "sol2 yes"; then
3147 xe_runpath_dir="/opt/SUNWdt/lib";
3148 eval "$xe_add_unique_runpath_dir";
3151 if test -n "$runpath"; then
3152 ld_switch_run="${dash_r}${runpath}"
3154 if test "$GCC" = "yes"; then
3155 set x $ld_switch_run; shift; ld_switch_run=""
3156 while test -n "$1"; do
3158 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3159 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3161 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3166 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3174 if test "$with_dlmalloc" != "no"; then
3179 after_morecore_hook_exists=yes
3180 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3181 echo "configure:3182: checking for malloc_set_state" >&5
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 /* System header to define __stub macros and hopefully few prototypes,
3187 which can conflict with char malloc_set_state(); below. */
3189 /* Override any gcc2 internal prototype to avoid an error. */
3190 /* We use char because int might match the return type of a gcc2
3191 builtin and then its argument prototype would still apply. */
3192 char malloc_set_state();
3196 /* The GNU C library defines this for functions which it implements
3197 to always fail with ENOSYS. Some functions are actually named
3198 something starting with __ and the normal name is an alias. */
3199 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3207 if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3209 eval "ac_cv_func_malloc_set_state=yes"
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 eval "ac_cv_func_malloc_set_state=no"
3218 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3222 echo "$ac_t""no" 1>&6
3226 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3227 echo "configure:3228: checking whether __after_morecore_hook exists" >&5
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 extern void (* __after_morecore_hook)();
3233 __after_morecore_hook = 0
3236 if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3238 echo "$ac_t""yes" 1>&6
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3243 echo "$ac_t""no" 1>&6
3244 after_morecore_hook_exists=no
3247 if test "$system_malloc" = "yes" ; then
3250 - The GNU allocators don't work with this system configuration."
3251 elif test "$with_system_malloc" = "yes" ; then
3254 - User chose not to use GNU allocators."
3255 elif test "$with_debug_malloc" = "yes" ; then
3258 - User chose to use Debugging Malloc."
3261 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3263 - Using Doug Lea's new malloc from the GNU C Library."
3264 { test "$extra_verbose" = "yes" && cat << \EOF
3265 Defining DOUG_LEA_MALLOC
3267 cat >> confdefs.h <<\EOF
3268 #define DOUG_LEA_MALLOC 1
3272 if test "$after_morecore_hook_exists" = "no" ; then
3274 - Using Doug Lea's new malloc from the Linux C Library."
3275 { test "$extra_verbose" = "yes" && cat << \EOF
3276 Defining _NO_MALLOC_WARNING_
3278 cat >> confdefs.h <<\EOF
3279 #define _NO_MALLOC_WARNING_ 1
3289 # Extract the first word of "ranlib", so it can be a program name with args.
3290 set dummy ranlib; ac_word=$2
3291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3292 echo "configure:3293: checking for $ac_word" >&5
3294 if test -n "$RANLIB"; then
3295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3299 for ac_dir in $ac_dummy; do
3300 test -z "$ac_dir" && ac_dir=.
3301 if test -f $ac_dir/$ac_word; then
3302 ac_cv_prog_RANLIB="ranlib"
3307 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3309 RANLIB="$ac_cv_prog_RANLIB"
3310 if test -n "$RANLIB"; then
3311 echo "$ac_t""$RANLIB" 1>&6
3313 echo "$ac_t""no" 1>&6
3317 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3318 if test -f $ac_dir/install-sh; then
3320 ac_install_sh="$ac_aux_dir/install-sh -c"
3322 elif test -f $ac_dir/install.sh; then
3324 ac_install_sh="$ac_aux_dir/install.sh -c"
3328 if test -z "$ac_aux_dir"; then
3329 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3331 ac_config_guess=$ac_aux_dir/config.guess
3332 ac_config_sub=$ac_aux_dir/config.sub
3333 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3335 # Find a good install program. We prefer a C program (faster),
3336 # so one script is as good as another. But avoid the broken or
3337 # incompatible versions:
3338 # SysV /etc/install, /usr/sbin/install
3339 # SunOS /usr/etc/install
3340 # IRIX /sbin/install
3342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3345 # ./install, which can be erroneously created by make from ./install.sh.
3346 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3347 echo "configure:3348: checking for a BSD compatible install" >&5
3348 if test -z "$INSTALL"; then
3350 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3351 for ac_dir in $PATH; do
3352 # Account for people who put trailing slashes in PATH elements.
3354 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3356 # OSF1 and SCO ODT 3.0 have their own names for install.
3357 # Don't use installbsd from OSF since it installs stuff as root
3359 for ac_prog in ginstall scoinst install; do
3360 if test -f $ac_dir/$ac_prog; then
3361 if test $ac_prog = install &&
3362 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3363 # AIX install. It has an incompatible calling convention.
3366 ac_cv_path_install="$ac_dir/$ac_prog -c"
3376 if test "${ac_cv_path_install+set}" = set; then
3377 INSTALL="$ac_cv_path_install"
3379 # As a last resort, use the slow shell script. We don't cache a
3380 # path for INSTALL within a source directory, because that will
3381 # break other packages using the cache if that directory is
3382 # removed, or if the path is relative.
3383 INSTALL="$ac_install_sh"
3386 echo "$ac_t""$INSTALL" 1>&6
3388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3389 # It thinks the first close brace ends the variable substitution.
3390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3396 for ac_prog in 'bison -y' byacc
3398 # Extract the first word of "$ac_prog", so it can be a program name with args.
3399 set dummy $ac_prog; ac_word=$2
3400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_word" >&5
3403 if test -n "$YACC"; then
3404 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3408 for ac_dir in $ac_dummy; do
3409 test -z "$ac_dir" && ac_dir=.
3410 if test -f $ac_dir/$ac_word; then
3411 ac_cv_prog_YACC="$ac_prog"
3417 YACC="$ac_cv_prog_YACC"
3418 if test -n "$YACC"; then
3419 echo "$ac_t""$YACC" 1>&6
3421 echo "$ac_t""no" 1>&6
3424 test -n "$YACC" && break
3426 test -n "$YACC" || YACC="yacc"
3429 for ac_hdr in a.out.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h utime.h
3431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3433 echo "configure:3434: checking for $ac_hdr" >&5
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3441 { (eval echo configure:3442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3443 if test -z "$ac_err"; then
3445 eval "ac_cv_header_$ac_safe=yes"
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3451 eval "ac_cv_header_$ac_safe=no"
3454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3456 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3457 { test "$extra_verbose" = "yes" && cat << EOF
3460 cat >> confdefs.h <<EOF
3461 #define $ac_tr_hdr 1
3466 echo "$ac_t""no" 1>&6
3470 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3471 echo "configure:3472: checking for sys/wait.h that is POSIX.1 compatible" >&5
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 #include <sys/types.h>
3477 #include <sys/wait.h>
3479 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3482 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3487 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3490 if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492 ac_cv_header_sys_wait_h=yes
3494 echo "configure: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3497 ac_cv_header_sys_wait_h=no
3501 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3502 if test $ac_cv_header_sys_wait_h = yes; then
3503 { test "$extra_verbose" = "yes" && cat << \EOF
3504 Defining HAVE_SYS_WAIT_H
3506 cat >> confdefs.h <<\EOF
3507 #define HAVE_SYS_WAIT_H 1
3513 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3514 echo "configure:3515: checking for ANSI C header files" >&5
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3525 { (eval echo configure:3526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3527 if test -z "$ac_err"; then
3529 ac_cv_header_stdc=yes
3532 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3535 ac_cv_header_stdc=no
3539 if test $ac_cv_header_stdc = yes; then
3540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3547 egrep "memchr" >/dev/null 2>&1; then
3551 ac_cv_header_stdc=no
3557 if test $ac_cv_header_stdc = yes; then
3558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 egrep "free" >/dev/null 2>&1; then
3569 ac_cv_header_stdc=no
3575 if test $ac_cv_header_stdc = yes; then
3576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3581 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3582 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3584 int main () { int i; for (i = 0; i < 256; i++)
3585 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3597 ac_cv_header_stdc=no
3602 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3603 if test $ac_cv_header_stdc = yes; then
3604 { test "$extra_verbose" = "yes" && cat << \EOF
3605 Defining STDC_HEADERS
3607 cat >> confdefs.h <<\EOF
3608 #define STDC_HEADERS 1
3614 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3615 echo "configure:3616: checking whether time.h and sys/time.h may both be included" >&5
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <sys/types.h>
3621 #include <sys/time.h>
3627 if { (eval echo configure:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 ac_cv_header_time=yes
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3634 ac_cv_header_time=no
3638 echo "$ac_t""$ac_cv_header_time" 1>&6
3639 if test $ac_cv_header_time = yes; then
3640 { test "$extra_verbose" = "yes" && cat << \EOF
3641 Defining TIME_WITH_SYS_TIME
3643 cat >> confdefs.h <<\EOF
3644 #define TIME_WITH_SYS_TIME 1
3650 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3651 echo "configure:3652: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 #include <sys/types.h>
3658 /* NetBSD declares sys_siglist in unistd.h. */
3659 #ifdef HAVE_UNISTD_H
3663 char *msg = *(sys_siglist + 1);
3666 if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668 ac_cv_decl_sys_siglist=yes
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3673 ac_cv_decl_sys_siglist=no
3677 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3678 if test $ac_cv_decl_sys_siglist = yes; then
3679 { test "$extra_verbose" = "yes" && cat << \EOF
3680 Defining SYS_SIGLIST_DECLARED
3682 cat >> confdefs.h <<\EOF
3683 #define SYS_SIGLIST_DECLARED 1
3690 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3691 echo "configure:3692: checking for struct utimbuf" >&5
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #ifdef TIME_WITH_SYS_TIME
3696 #include <sys/time.h>
3699 #ifdef HAVE_SYS_TIME_H
3700 #include <sys/time.h>
3709 static struct utimbuf x; x.actime = x.modtime;
3712 if { (eval echo configure:3713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3714 echo "$ac_t""yes" 1>&6
3715 { test "$extra_verbose" = "yes" && cat << \EOF
3716 Defining HAVE_STRUCT_UTIMBUF
3718 cat >> confdefs.h <<\EOF
3719 #define HAVE_STRUCT_UTIMBUF 1
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3727 echo "$ac_t""no" 1>&6
3731 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3732 echo "configure:3733: checking return type of signal handlers" >&5
3734 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 #include <sys/types.h>
3743 extern "C" void (*signal (int, void (*)(int)))(int);
3745 void (*signal ()) ();
3752 if { (eval echo configure:3753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3754 ac_cv_type_signal=void
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 ac_cv_type_signal=int
3763 echo "$ac_t""$ac_cv_type_signal" 1>&6
3764 { test "$extra_verbose" = "yes" && cat << EOF
3765 Defining RETSIGTYPE = $ac_cv_type_signal
3767 cat >> confdefs.h <<EOF
3768 #define RETSIGTYPE $ac_cv_type_signal
3773 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3774 echo "configure:3775: checking for size_t" >&5
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 #include <sys/types.h>
3785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3788 ac_cv_type_size_t=yes
3791 ac_cv_type_size_t=no
3795 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3796 if test $ac_cv_type_size_t = no; then
3797 { test "$extra_verbose" = "yes" && cat << \EOF
3798 Defining size_t = unsigned
3800 cat >> confdefs.h <<\EOF
3801 #define size_t unsigned
3807 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3808 echo "configure:3809: checking for pid_t" >&5
3810 cat > conftest.$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 #include <sys/types.h>
3819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3820 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3822 ac_cv_type_pid_t=yes
3829 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3830 if test $ac_cv_type_pid_t = no; then
3831 { test "$extra_verbose" = "yes" && cat << \EOF
3832 Defining pid_t = int
3834 cat >> confdefs.h <<\EOF
3841 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3842 echo "configure:3843: checking for uid_t in sys/types.h" >&5
3844 cat > conftest.$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3847 #include <sys/types.h>
3849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850 egrep "uid_t" >/dev/null 2>&1; then
3852 ac_cv_type_uid_t=yes
3860 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3861 if test $ac_cv_type_uid_t = no; then
3862 { test "$extra_verbose" = "yes" && cat << \EOF
3863 Defining uid_t = int
3865 cat >> confdefs.h <<\EOF
3870 { test "$extra_verbose" = "yes" && cat << \EOF
3871 Defining gid_t = int
3873 cat >> confdefs.h <<\EOF
3880 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3881 echo "configure:3882: checking for mode_t" >&5
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 #include <sys/types.h>
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3895 ac_cv_type_mode_t=yes
3898 ac_cv_type_mode_t=no
3902 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3903 if test $ac_cv_type_mode_t = no; then
3904 { test "$extra_verbose" = "yes" && cat << \EOF
3905 Defining mode_t = int
3907 cat >> confdefs.h <<\EOF
3914 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3915 echo "configure:3916: checking for off_t" >&5
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 #include <sys/types.h>
3926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3929 ac_cv_type_off_t=yes
3936 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3937 if test $ac_cv_type_off_t = no; then
3938 { test "$extra_verbose" = "yes" && cat << \EOF
3939 Defining off_t = long
3941 cat >> confdefs.h <<\EOF
3948 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3949 echo "configure:3950: checking for ssize_t" >&5
3951 cat > conftest.$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3954 #include <sys/types.h>
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3963 ac_cv_type_ssize_t=yes
3966 ac_cv_type_ssize_t=no
3970 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3971 if test $ac_cv_type_ssize_t = no; then
3972 { test "$extra_verbose" = "yes" && cat << \EOF
3973 Defining ssize_t = int
3975 cat >> confdefs.h <<\EOF
3983 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3984 echo "configure:3985: checking for socklen_t" >&5
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 #include <sys/socket.h>
3995 if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3997 echo "$ac_t""yes" 1>&6
3999 echo "configure: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 #include <sys/socket.h>
4007 int accept (int, struct sockaddr *, size_t *);
4013 if { (eval echo configure:4014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4016 echo "$ac_t""size_t" 1>&6
4017 { test "$extra_verbose" = "yes" && cat << \EOF
4018 Defining socklen_t = size_t
4020 cat >> confdefs.h <<\EOF
4021 #define socklen_t size_t
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4030 echo "$ac_t""int" 1>&6
4031 { test "$extra_verbose" = "yes" && cat << \EOF
4032 Defining socklen_t = int
4034 cat >> confdefs.h <<\EOF
4035 #define socklen_t int
4044 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4045 echo "configure:4046: checking for struct timeval" >&5
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4049 #ifdef TIME_WITH_SYS_TIME
4050 #include <sys/time.h>
4053 #ifdef HAVE_SYS_TIME_H
4054 #include <sys/time.h>
4060 static struct timeval x; x.tv_sec = x.tv_usec;
4063 if { (eval echo configure:4064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4065 echo "$ac_t""yes" 1>&6
4067 { test "$extra_verbose" = "yes" && cat << \EOF
4068 Defining HAVE_TIMEVAL
4070 cat >> confdefs.h <<\EOF
4071 #define HAVE_TIMEVAL 1
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 echo "$ac_t""no" 1>&6
4084 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4085 echo "configure:4086: checking whether struct tm is in sys/time.h or time.h" >&5
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 #include <sys/types.h>
4093 struct tm *tp; tp->tm_sec;
4096 if { (eval echo configure:4097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4098 ac_cv_struct_tm=time.h
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4103 ac_cv_struct_tm=sys/time.h
4107 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4108 if test $ac_cv_struct_tm = sys/time.h; then
4109 { test "$extra_verbose" = "yes" && cat << \EOF
4110 Defining TM_IN_SYS_TIME
4112 cat >> confdefs.h <<\EOF
4113 #define TM_IN_SYS_TIME 1
4119 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4120 echo "configure:4121: checking for tm_zone in struct tm" >&5
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 #include <sys/types.h>
4126 #include <$ac_cv_struct_tm>
4128 struct tm tm; tm.tm_zone;
4131 if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4133 ac_cv_struct_tm_zone=yes
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 ac_cv_struct_tm_zone=no
4142 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4143 if test "$ac_cv_struct_tm_zone" = yes; then
4144 { test "$extra_verbose" = "yes" && cat << \EOF
4145 Defining HAVE_TM_ZONE
4147 cat >> confdefs.h <<\EOF
4148 #define HAVE_TM_ZONE 1
4153 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4154 echo "configure:4155: checking for tzname" >&5
4156 cat > conftest.$ac_ext <<EOF
4157 #line 4158 "configure"
4158 #include "confdefs.h"
4160 #ifndef tzname /* For SGI. */
4161 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4167 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4169 ac_cv_var_tzname=yes
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4178 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4179 if test $ac_cv_var_tzname = yes; then
4180 { test "$extra_verbose" = "yes" && cat << \EOF
4181 Defining HAVE_TZNAME
4183 cat >> confdefs.h <<\EOF
4184 #define HAVE_TZNAME 1
4192 echo $ac_n "checking for working const""... $ac_c" 1>&6
4193 echo "configure:4194: checking for working const" >&5
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4201 /* Ultrix mips cc rejects this. */
4202 typedef int charset[2]; const charset x;
4203 /* SunOS 4.1.1 cc rejects this. */
4204 char const *const *ccp;
4206 /* NEC SVR4.0.2 mips cc rejects this. */
4207 struct point {int x, y;};
4208 static struct point const zero = {0,0};
4209 /* AIX XL C 1.02.0.0 rejects this.
4210 It does not let you subtract one const X* pointer from another in an arm
4211 of an if-expression whose if-part is not a constant expression */
4212 const char *g = "string";
4213 ccp = &g + (g ? g-g : 0);
4214 /* HPUX 7.0 cc rejects these. */
4217 ccp = (char const *const *) p;
4218 { /* SCO 3.2v4 cc rejects this. */
4220 char const *s = 0 ? (char *) 0 : (char const *) 0;
4224 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4226 const int *foo = &x[0];
4229 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4230 typedef const int *iptr;
4234 { /* AIX XL C 1.02.0.0 rejects this saying
4235 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4236 struct s { int j; const int *ap[3]; };
4237 struct s *b; b->j = 5;
4239 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4245 if { (eval echo configure:4246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4256 echo "$ac_t""$ac_cv_c_const" 1>&6
4257 if test $ac_cv_c_const = no; then
4258 { test "$extra_verbose" = "yes" && cat << \EOF
4261 cat >> confdefs.h <<\EOF
4269 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4270 echo "configure:4271: checking whether ${MAKE-make} sets \${MAKE}" >&5
4271 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4273 cat > conftestmake <<\EOF
4275 @echo 'ac_maketemp="${MAKE}"'
4277 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4278 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4279 if test -n "$ac_maketemp"; then
4280 eval ac_cv_prog_make_${ac_make}_set=yes
4282 eval ac_cv_prog_make_${ac_make}_set=no
4285 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4289 echo "$ac_t""no" 1>&6
4290 SET_MAKE="MAKE=${MAKE-make}"
4294 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4295 echo "configure:4296: checking whether byte ordering is bigendian" >&5
4297 ac_cv_c_bigendian=unknown
4298 # See if sys/param.h defines the BYTE_ORDER macro.
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 #include <sys/types.h>
4303 #include <sys/param.h>
4306 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4311 if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4313 # It does; now see whether it defined to BIG_ENDIAN or not.
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 #include <sys/types.h>
4318 #include <sys/param.h>
4321 #if BYTE_ORDER != BIG_ENDIAN
4326 if { (eval echo configure:4327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4328 ac_cv_c_bigendian=yes
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4333 ac_cv_c_bigendian=no
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4341 if test $ac_cv_c_bigendian = unknown; then
4342 cat > conftest.$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4346 /* Are we little or big endian? From Harbison&Steele. */
4350 char c[sizeof (long)];
4353 exit (u.c[sizeof (long) - 1] == 1);
4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4358 ac_cv_c_bigendian=no
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4364 ac_cv_c_bigendian=yes
4369 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4370 if test $ac_cv_c_bigendian = yes; then
4371 { test "$extra_verbose" = "yes" && cat << \EOF
4372 Defining WORDS_BIGENDIAN
4374 cat >> confdefs.h <<\EOF
4375 #define WORDS_BIGENDIAN 1
4382 echo $ac_n "checking size of short""... $ac_c" 1>&6
4383 echo "configure:4384: checking size of short" >&5
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4391 FILE *f=fopen("conftestval", "w");
4393 fprintf(f, "%d\n", sizeof(short));
4397 if { (eval echo configure:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4399 ac_cv_sizeof_short=`cat conftestval`
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 ac_cv_sizeof_short=0
4408 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4409 { test "$extra_verbose" = "yes" && cat << EOF
4410 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4412 cat >> confdefs.h <<EOF
4413 #define SIZEOF_SHORT $ac_cv_sizeof_short
4418 if test "$ac_cv_sizeof_short" = 0; then
4420 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4421 echo "*** PANIC *** Please examine config.log for compilation errors."
4424 echo $ac_n "checking size of int""... $ac_c" 1>&6
4425 echo "configure:4426: checking size of int" >&5
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4433 FILE *f=fopen("conftestval", "w");
4435 fprintf(f, "%d\n", sizeof(int));
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4441 ac_cv_sizeof_int=`cat conftestval`
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4450 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4451 { test "$extra_verbose" = "yes" && cat << EOF
4452 Defining SIZEOF_INT = $ac_cv_sizeof_int
4454 cat >> confdefs.h <<EOF
4455 #define SIZEOF_INT $ac_cv_sizeof_int
4460 echo $ac_n "checking size of long""... $ac_c" 1>&6
4461 echo "configure:4462: checking size of long" >&5
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4469 FILE *f=fopen("conftestval", "w");
4471 fprintf(f, "%d\n", sizeof(long));
4475 if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4477 ac_cv_sizeof_long=`cat conftestval`
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4486 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4487 { test "$extra_verbose" = "yes" && cat << EOF
4488 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4490 cat >> confdefs.h <<EOF
4491 #define SIZEOF_LONG $ac_cv_sizeof_long
4496 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4497 echo "configure:4498: checking size of long long" >&5
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4505 FILE *f=fopen("conftestval", "w");
4507 fprintf(f, "%d\n", sizeof(long long));
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4513 ac_cv_sizeof_long_long=`cat conftestval`
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4519 ac_cv_sizeof_long_long=0
4522 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4523 { test "$extra_verbose" = "yes" && cat << EOF
4524 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4526 cat >> confdefs.h <<EOF
4527 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4532 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4533 echo "configure:4534: checking size of void *" >&5
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4541 FILE *f=fopen("conftestval", "w");
4543 fprintf(f, "%d\n", sizeof(void *));
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4549 ac_cv_sizeof_void_p=`cat conftestval`
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 ac_cv_sizeof_void_p=0
4558 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4559 { test "$extra_verbose" = "yes" && cat << EOF
4560 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4562 cat >> confdefs.h <<EOF
4563 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4569 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4570 echo "configure:4571: checking for long file names" >&5
4572 ac_cv_sys_long_file_names=yes
4573 # Test for long file names in all the places we know might matter:
4574 # . the current directory, where building will happen
4575 # $prefix/lib where we will be installing things
4576 # $exec_prefix/lib likewise
4577 # eval it to expand exec_prefix.
4578 # $TMPDIR if set, where it might want to write temporary files
4579 # if $TMPDIR is not set:
4580 # /tmp where it might want to write temporary files
4583 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4584 ac_tmpdirs="$TMPDIR"
4586 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4588 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4589 test -d $ac_dir || continue
4590 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4591 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4592 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4593 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4594 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4595 ac_cv_sys_long_file_names=no
4596 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4599 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4602 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4603 if test $ac_cv_sys_long_file_names = yes; then
4604 { test "$extra_verbose" = "yes" && cat << \EOF
4605 Defining HAVE_LONG_FILE_NAMES
4607 cat >> confdefs.h <<\EOF
4608 #define HAVE_LONG_FILE_NAMES 1
4615 echo $ac_n "checking for sin""... $ac_c" 1>&6
4616 echo "configure:4617: checking for sin" >&5
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4621 /* System header to define __stub macros and hopefully few prototypes,
4622 which can conflict with char sin(); below. */
4624 /* Override any gcc2 internal prototype to avoid an error. */
4625 /* We use char because int might match the return type of a gcc2
4626 builtin and then its argument prototype would still apply. */
4631 /* The GNU C library defines this for functions which it implements
4632 to always fail with ENOSYS. Some functions are actually named
4633 something starting with __ and the normal name is an alias. */
4634 #if defined (__stub_sin) || defined (__stub___sin)
4642 if { (eval echo configure:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4644 eval "ac_cv_func_sin=yes"
4646 echo "configure: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4649 eval "ac_cv_func_sin=no"
4653 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4657 echo "$ac_t""no" 1>&6
4659 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4660 echo "configure:4661: checking for sin in -lm" >&5
4661 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4663 xe_check_libs=" -lm "
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 /* Override any gcc2 internal prototype to avoid an error. */
4668 /* We use char because int might match the return type of a gcc2
4669 builtin and then its argument prototype would still apply. */
4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4678 eval "ac_cv_lib_$ac_lib_var=yes"
4680 echo "configure: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4683 eval "ac_cv_lib_$ac_lib_var=no"
4688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4689 echo "$ac_t""yes" 1>&6
4690 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4691 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4692 { test "$extra_verbose" = "yes" && cat << EOF
4695 cat >> confdefs.h <<EOF
4696 #define $ac_tr_lib 1
4700 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4703 echo "$ac_t""no" 1>&6
4710 { test "$extra_verbose" = "yes" && cat << \EOF
4711 Defining LISP_FLOAT_TYPE
4713 cat >> confdefs.h <<\EOF
4714 #define LISP_FLOAT_TYPE 1
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4724 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 { test "$extra_verbose" = "yes" && cat << \EOF
4730 Defining HAVE_INVERSE_HYPERBOLIC
4732 cat >> confdefs.h <<\EOF
4733 #define HAVE_INVERSE_HYPERBOLIC 1
4738 echo "configure: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4743 echo "checking type of mail spool file locking" 1>&6
4744 echo "configure:4745: checking type of mail spool file locking" >&5
4745 for ac_func in lockf flock
4747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4748 echo "configure:4749: checking for $ac_func" >&5
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 /* System header to define __stub macros and hopefully few prototypes,
4754 which can conflict with char $ac_func(); below. */
4756 /* Override any gcc2 internal prototype to avoid an error. */
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4763 /* The GNU C library defines this for functions which it implements
4764 to always fail with ENOSYS. Some functions are actually named
4765 something starting with __ and the normal name is an alias. */
4766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4774 if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4776 eval "ac_cv_func_$ac_func=yes"
4778 echo "configure: failed program was:" >&5
4779 cat conftest.$ac_ext >&5
4781 eval "ac_cv_func_$ac_func=no"
4785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4786 echo "$ac_t""yes" 1>&6
4787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4788 { test "$extra_verbose" = "yes" && cat << EOF
4789 Defining $ac_tr_func
4791 cat >> confdefs.h <<EOF
4792 #define $ac_tr_func 1
4797 echo "$ac_t""no" 1>&6
4801 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4802 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4803 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4804 if test -z "$mail_locking"; then
4805 case "$opsys" in cygwin* | mingw*)
4810 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4811 Defining MAIL_LOCK_LOCKF
4813 cat >> confdefs.h <<\EOF
4814 #define MAIL_LOCK_LOCKF 1
4818 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4819 Defining MAIL_LOCK_FLOCK
4821 cat >> confdefs.h <<\EOF
4822 #define MAIL_LOCK_FLOCK 1
4826 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4827 Defining MAIL_LOCK_LOCKING
4829 cat >> confdefs.h <<\EOF
4830 #define MAIL_LOCK_LOCKING 1
4834 elif test "$mail_locking" = "pop"; then
4837 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4838 Defining MAIL_LOCK_DOT
4840 cat >> confdefs.h <<\EOF
4841 #define MAIL_LOCK_DOT 1
4846 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4847 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4848 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4849 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4850 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4851 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4853 case "$opsys" in decosf*)
4855 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4856 echo "configure:4857: checking for cma_open in -lpthreads" >&5
4857 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4859 xe_check_libs=" -lpthreads "
4860 cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 /* Override any gcc2 internal prototype to avoid an error. */
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4874 eval "ac_cv_lib_$ac_lib_var=yes"
4876 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4879 eval "ac_cv_lib_$ac_lib_var=no"
4884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4885 echo "$ac_t""yes" 1>&6
4886 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4887 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4888 { test "$extra_verbose" = "yes" && cat << EOF
4891 cat >> confdefs.h <<EOF
4892 #define $ac_tr_lib 1
4896 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4899 echo "$ac_t""no" 1>&6
4903 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4904 c_switch_site="$c_switch_site -threads" ;;
4907 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4908 echo "configure:4909: checking whether the -xildoff compiler flag is required" >&5
4909 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4910 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4911 then echo "$ac_t""no" 1>&6;
4912 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
4914 else echo "$ac_t""no" 1>&6
4917 if test "$opsys" = "sol2"; then
4918 if test "$os_release" -ge 56; then
4919 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4920 echo "configure:4921: checking for \"-z ignore\" linker flag" >&5
4921 case "`ld -h 2>&1`" in
4922 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4923 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4924 *) echo "$ac_t""no" 1>&6 ;;
4930 echo "checking "for specified window system"" 1>&6
4931 echo "configure:4932: checking "for specified window system"" >&5
4933 if test "$with_x11" != "no"; then
4934 test "$x_includes $x_libraries" != "NONE NONE" && \
4935 window_system=x11 with_x11=yes
4938 if test "$x_includes $x_libraries" = "NONE NONE" \
4939 -a -n "$OPENWINHOME" \
4940 -a "$OPENWINHOME" != "/usr/openwin" \
4941 -a -d "$OPENWINHOME"; then
4942 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4943 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4944 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4947 if test "$x_includes" = "NONE"; then
4948 for dir in "/usr/X11" "/usr/X11R6"; do
4949 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4953 if test "$x_libraries" = "NONE"; then
4954 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4955 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4959 # If we find X, set shell vars x_includes and x_libraries to the
4960 # paths, otherwise set no_x=yes.
4961 # Uses ac_ vars as temps to allow command line to override cache and checks.
4962 # --without-x overrides everything else, but does not touch the cache.
4963 echo $ac_n "checking for X""... $ac_c" 1>&6
4964 echo "configure:4965: checking for X" >&5
4966 # Check whether --with-x or --without-x was given.
4967 if test "${with_x+set}" = set; then
4972 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4973 if test "x$with_x" = xno; then
4974 # The user explicitly disabled X.
4977 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4978 # Both variables are already set.
4982 # One or both of the vars are not set, and there is no cached value.
4983 ac_x_includes=NO ac_x_libraries=NO
4985 if mkdir conftestdir; then
4987 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4988 cat > Imakefile <<'EOF'
4990 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4992 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4993 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4994 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4995 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4996 for ac_extension in a so sl; do
4997 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4998 test -f $ac_im_libdir/libX11.$ac_extension; then
4999 ac_im_usrlibdir=$ac_im_libdir; break
5002 # Screen out bogus values from the imake configuration. They are
5003 # bogus both because they are the default anyway, and because
5004 # using them would break gcc on systems where it needs fixed includes.
5005 case "$ac_im_incroot" in
5007 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5009 case "$ac_im_usrlibdir" in
5011 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5018 if test "$ac_x_includes" = NO; then
5019 # Guess where to find include files, by looking for this one X11 .h file.
5020 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5022 # First, try using that file with no special directory specified.
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 #include <$x_direct_test_include>
5028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5029 { (eval echo configure:5030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5031 if test -z "$ac_err"; then
5033 # We can compile using X headers with no special include directory.
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5040 # Look for the header file in a standard set of common directories.
5041 # Check X11 before X11Rn because it is often a symlink to the current release.
5044 /usr/X11R6/include \
5045 /usr/X11R5/include \
5046 /usr/X11R4/include \
5049 /usr/include/X11R6 \
5050 /usr/include/X11R5 \
5051 /usr/include/X11R4 \
5053 /usr/local/X11/include \
5054 /usr/local/X11R6/include \
5055 /usr/local/X11R5/include \
5056 /usr/local/X11R4/include \
5058 /usr/local/include/X11 \
5059 /usr/local/include/X11R6 \
5060 /usr/local/include/X11R5 \
5061 /usr/local/include/X11R4 \
5065 /usr/XFree86/include/X11 \
5068 /usr/local/include \
5069 /usr/unsupported/include \
5070 /usr/athena/include \
5071 /usr/local/x11r5/include \
5072 /usr/lpp/Xamples/include \
5074 /usr/openwin/include \
5075 /usr/openwin/share/include \
5078 if test -r "$ac_dir/$x_direct_test_include"; then
5079 ac_x_includes=$ac_dir
5085 fi # $ac_x_includes = NO
5087 if test "$ac_x_libraries" = NO; then
5088 # Check for the libraries.
5090 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5091 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5093 # See if we find them without any special options.
5094 # Don't add to $LIBS permanently.
5095 ac_save_LIBS="$LIBS"
5096 LIBS="-l$x_direct_test_library $LIBS"
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5102 ${x_direct_test_function}()
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5107 LIBS="$ac_save_LIBS"
5108 # We can link X programs with no special library path.
5111 echo "configure: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5114 LIBS="$ac_save_LIBS"
5115 # First see if replacing the include by lib works.
5116 # Check X11 before X11Rn because it is often a symlink to the current release.
5117 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5128 /usr/local/X11/lib \
5129 /usr/local/X11R6/lib \
5130 /usr/local/X11R5/lib \
5131 /usr/local/X11R4/lib \
5133 /usr/local/lib/X11 \
5134 /usr/local/lib/X11R6 \
5135 /usr/local/lib/X11R5 \
5136 /usr/local/lib/X11R4 \
5140 /usr/XFree86/lib/X11 \
5144 /usr/unsupported/lib \
5146 /usr/local/x11r5/lib \
5147 /usr/lpp/Xamples/lib \
5151 /usr/openwin/share/lib \
5154 for ac_extension in a so sl; do
5155 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5156 ac_x_libraries=$ac_dir
5163 fi # $ac_x_libraries = NO
5165 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5166 # Didn't find X anywhere. Cache the known absence of X.
5167 ac_cv_have_x="have_x=no"
5169 # Record where we found X for the cache.
5170 ac_cv_have_x="have_x=yes \
5171 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5174 eval "$ac_cv_have_x"
5177 if test "$have_x" != yes; then
5178 echo "$ac_t""$have_x" 1>&6
5181 # If each of the values was on the command line, it overrides each guess.
5182 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5183 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5184 # Update the cache value to reflect the command line values.
5185 ac_cv_have_x="have_x=yes \
5186 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5187 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5190 if test "$no_x" = yes; then
5191 # Not all programs may use this symbol, but it does not hurt to define it.
5192 { test "$extra_verbose" = "yes" && cat << \EOF
5193 Defining X_DISPLAY_MISSING
5195 cat >> confdefs.h <<\EOF
5196 #define X_DISPLAY_MISSING 1
5200 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5202 if test -n "$x_includes"; then
5203 X_CFLAGS="$X_CFLAGS -I$x_includes"
5206 # It would also be nice to do this for all -L options, not just this one.
5207 if test -n "$x_libraries"; then
5208 X_LIBS="$X_LIBS -L$x_libraries"
5209 # For Solaris; some versions of Sun CC require a space after -R and
5210 # others require no space. Words are not sufficient . . . .
5211 case "`(uname -sr) 2>/dev/null`" in
5213 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5214 echo "configure:5215: checking whether -R must be followed by a space" >&5
5215 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5224 if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5228 echo "configure: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5234 if test $ac_R_nospace = yes; then
5235 echo "$ac_t""no" 1>&6
5236 X_LIBS="$X_LIBS -R$x_libraries"
5238 LIBS="$ac_xsave_LIBS -R $x_libraries"
5239 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5257 if test $ac_R_space = yes; then
5258 echo "$ac_t""yes" 1>&6
5259 X_LIBS="$X_LIBS -R $x_libraries"
5261 echo "$ac_t""neither works" 1>&6
5264 LIBS="$ac_xsave_LIBS"
5268 # Check for system-dependent libraries X programs must link with.
5269 # Do this before checking for the system-independent R6 libraries
5270 # (-lICE), since we may need -lsocket or whatever for X linking.
5272 if test "$ISC" = yes; then
5273 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5275 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5276 # libraries were built with DECnet support. And karl@cs.umb.edu says
5277 # the Alpha needs dnet_stub (dnet does not exist).
5278 if test "$with_dnet" = "no" ; then
5279 ac_cv_lib_dnet_dnet_ntoa=no
5282 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5283 echo "configure:5284: checking for dnet_ntoa in -ldnet" >&5
5284 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5286 xe_check_libs=" -ldnet "
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290 /* Override any gcc2 internal prototype to avoid an error. */
5291 /* We use char because int might match the return type of a gcc2
5292 builtin and then its argument prototype would still apply. */
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 eval "ac_cv_lib_$ac_lib_var=yes"
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 eval "ac_cv_lib_$ac_lib_var=no"
5311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5312 echo "$ac_t""yes" 1>&6
5313 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5315 echo "$ac_t""no" 1>&6
5320 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5322 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5323 echo "configure:5324: checking for dnet_ntoa in -ldnet_stub" >&5
5324 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5326 xe_check_libs=" -ldnet_stub "
5327 cat > conftest.$ac_ext <<EOF
5328 #line 5329 "configure"
5329 #include "confdefs.h"
5330 /* Override any gcc2 internal prototype to avoid an error. */
5331 /* We use char because int might match the return type of a gcc2
5332 builtin and then its argument prototype would still apply. */
5339 if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5341 eval "ac_cv_lib_$ac_lib_var=yes"
5343 echo "configure: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5346 eval "ac_cv_lib_$ac_lib_var=no"
5351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5352 echo "$ac_t""yes" 1>&6
5353 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5355 echo "$ac_t""no" 1>&6
5361 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5362 # to get the SysV transport functions.
5363 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5365 # The nsl library prevents programs from opening the X display
5366 # on Irix 5.2, according to dickey@clark.net.
5367 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5368 echo "configure:5369: checking for gethostbyname" >&5
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373 /* System header to define __stub macros and hopefully few prototypes,
5374 which can conflict with char gethostbyname(); below. */
5376 /* Override any gcc2 internal prototype to avoid an error. */
5377 /* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5379 char gethostbyname();
5383 /* The GNU C library defines this for functions which it implements
5384 to always fail with ENOSYS. Some functions are actually named
5385 something starting with __ and the normal name is an alias. */
5386 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5394 if { (eval echo configure:5395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5396 eval "ac_cv_func_gethostbyname=yes"
5398 echo "configure: failed program was:" >&5
5399 cat conftest.$ac_ext >&5
5401 eval "ac_cv_func_gethostbyname=no"
5405 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5406 echo "$ac_t""yes" 1>&6
5409 echo "$ac_t""no" 1>&6
5412 if test $ac_cv_func_gethostbyname = no; then
5414 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5415 echo "configure:5416: checking for gethostbyname in -lnsl" >&5
5416 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5418 xe_check_libs=" -lnsl "
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422 /* Override any gcc2 internal prototype to avoid an error. */
5423 /* We use char because int might match the return type of a gcc2
5424 builtin and then its argument prototype would still apply. */
5425 char gethostbyname();
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433 eval "ac_cv_lib_$ac_lib_var=yes"
5435 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5438 eval "ac_cv_lib_$ac_lib_var=no"
5443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5444 echo "$ac_t""yes" 1>&6
5445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5447 echo "$ac_t""no" 1>&6
5453 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5454 # socket/setsockopt and other routines are undefined under SCO ODT
5455 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5456 # on later versions), says simon@lia.di.epfl.ch: it contains
5457 # gethostby* variants that don't use the nameserver (or something).
5458 # -lsocket must be given before -lnsl if both are needed.
5459 # We assume that if connect needs -lnsl, so does gethostbyname.
5460 echo $ac_n "checking for connect""... $ac_c" 1>&6
5461 echo "configure:5462: checking for connect" >&5
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5466 /* System header to define __stub macros and hopefully few prototypes,
5467 which can conflict with char connect(); below. */
5469 /* Override any gcc2 internal prototype to avoid an error. */
5470 /* We use char because int might match the return type of a gcc2
5471 builtin and then its argument prototype would still apply. */
5476 /* The GNU C library defines this for functions which it implements
5477 to always fail with ENOSYS. Some functions are actually named
5478 something starting with __ and the normal name is an alias. */
5479 #if defined (__stub_connect) || defined (__stub___connect)
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5489 eval "ac_cv_func_connect=yes"
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5494 eval "ac_cv_func_connect=no"
5498 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5499 echo "$ac_t""yes" 1>&6
5502 echo "$ac_t""no" 1>&6
5505 if test $ac_cv_func_connect = no; then
5507 xe_msg_checking="for connect in -lsocket"
5508 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5509 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5510 echo "configure:5511: checking "$xe_msg_checking"" >&5
5511 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5513 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5514 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure"
5516 #include "confdefs.h"
5517 /* Override any gcc2 internal prototype to avoid an error. */
5518 /* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5528 eval "ac_cv_lib_$ac_lib_var=yes"
5530 echo "configure: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5533 eval "ac_cv_lib_$ac_lib_var=no"
5538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5539 echo "$ac_t""yes" 1>&6
5540 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5542 echo "$ac_t""no" 1>&6
5548 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5549 echo $ac_n "checking for remove""... $ac_c" 1>&6
5550 echo "configure:5551: checking for remove" >&5
5552 cat > conftest.$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5555 /* System header to define __stub macros and hopefully few prototypes,
5556 which can conflict with char remove(); below. */
5558 /* Override any gcc2 internal prototype to avoid an error. */
5559 /* We use char because int might match the return type of a gcc2
5560 builtin and then its argument prototype would still apply. */
5565 /* The GNU C library defines this for functions which it implements
5566 to always fail with ENOSYS. Some functions are actually named
5567 something starting with __ and the normal name is an alias. */
5568 #if defined (__stub_remove) || defined (__stub___remove)
5576 if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 eval "ac_cv_func_remove=yes"
5580 echo "configure: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5583 eval "ac_cv_func_remove=no"
5587 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5588 echo "$ac_t""yes" 1>&6
5591 echo "$ac_t""no" 1>&6
5594 if test $ac_cv_func_remove = no; then
5596 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5597 echo "configure:5598: checking for remove in -lposix" >&5
5598 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5600 xe_check_libs=" -lposix "
5601 cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5604 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5613 if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5615 eval "ac_cv_lib_$ac_lib_var=yes"
5617 echo "configure: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5620 eval "ac_cv_lib_$ac_lib_var=no"
5625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5626 echo "$ac_t""yes" 1>&6
5627 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5629 echo "$ac_t""no" 1>&6
5635 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5636 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5637 echo "configure:5638: checking for shmat" >&5
5639 cat > conftest.$ac_ext <<EOF
5640 #line 5641 "configure"
5641 #include "confdefs.h"
5642 /* System header to define __stub macros and hopefully few prototypes,
5643 which can conflict with char shmat(); below. */
5645 /* Override any gcc2 internal prototype to avoid an error. */
5646 /* We use char because int might match the return type of a gcc2
5647 builtin and then its argument prototype would still apply. */
5652 /* The GNU C library defines this for functions which it implements
5653 to always fail with ENOSYS. Some functions are actually named
5654 something starting with __ and the normal name is an alias. */
5655 #if defined (__stub_shmat) || defined (__stub___shmat)
5663 if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5665 eval "ac_cv_func_shmat=yes"
5667 echo "configure: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5670 eval "ac_cv_func_shmat=no"
5674 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5675 echo "$ac_t""yes" 1>&6
5678 echo "$ac_t""no" 1>&6
5681 if test $ac_cv_func_shmat = no; then
5683 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5684 echo "configure:5685: checking for shmat in -lipc" >&5
5685 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5687 xe_check_libs=" -lipc "
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5691 /* Override any gcc2 internal prototype to avoid an error. */
5692 /* We use char because int might match the return type of a gcc2
5693 builtin and then its argument prototype would still apply. */
5700 if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5702 eval "ac_cv_lib_$ac_lib_var=yes"
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5707 eval "ac_cv_lib_$ac_lib_var=no"
5712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5713 echo "$ac_t""yes" 1>&6
5714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5716 echo "$ac_t""no" 1>&6
5723 # Check for libraries that X11R6 Xt/Xaw programs need.
5724 ac_save_LDFLAGS="$LDFLAGS"
5725 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5726 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5727 # check for ICE first), but we must link in the order -lSM -lICE or
5728 # we get undefined symbols. So assume we have SM if we have ICE.
5729 # These have to be linked with before -lX11, unlike the other
5730 # libraries we check for below, so use a different variable.
5731 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5733 xe_msg_checking="for IceConnectionNumber in -lICE"
5734 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5735 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5736 echo "configure:5737: checking "$xe_msg_checking"" >&5
5737 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5739 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5740 cat > conftest.$ac_ext <<EOF
5741 #line 5742 "configure"
5742 #include "confdefs.h"
5743 /* Override any gcc2 internal prototype to avoid an error. */
5744 /* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5746 char IceConnectionNumber();
5749 IceConnectionNumber()
5752 if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5754 eval "ac_cv_lib_$ac_lib_var=yes"
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 eval "ac_cv_lib_$ac_lib_var=no"
5764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5765 echo "$ac_t""yes" 1>&6
5766 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5768 echo "$ac_t""no" 1>&6
5772 LDFLAGS="$ac_save_LDFLAGS"
5775 # Autoconf claims to find X library and include dirs for us.
5776 if test "$no_x" = "yes"
5777 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5778 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5783 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5784 no ) window_system=none HAVE_X_WINDOWS=no ;;
5787 if test "$with_x11" = "yes"; then
5788 { test "$extra_verbose" = "yes" && cat << \EOF
5789 Defining HAVE_X_WINDOWS
5791 cat >> confdefs.h <<\EOF
5792 #define HAVE_X_WINDOWS 1
5796 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5797 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5799 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5800 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5801 if test -d "$lib_dir" -a -d "$inc_dir"; then
5802 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5803 x_libraries="$lib_dir $x_libraries"
5804 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5806 case "$x_includes" in "$inc_dir"* ) ;; *)
5807 x_includes="$inc_dir $x_includes"
5808 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5813 for rel in "X11R6" "X11R5" "X11R4"; do
5814 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5815 if test -d "$lib_dir" -a -d "$inc_dir"; then
5816 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5817 x_libraries="$x_libraries $lib_dir"
5818 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5820 case "$x_includes" in "$inc_dir"* ) ;; *)
5821 x_includes="$x_includes $inc_dir"
5822 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5828 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 ;;
5831 ld_switch_x_site="$X_LIBS"
5834 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5835 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5836 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5838 runpath="" runpath_dirs=""
5839 if test -n "$LD_RUN_PATH"; then
5840 runpath="$LD_RUN_PATH"
5841 elif test "$GCC" = "yes"; then
5842 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5843 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5844 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5845 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5846 case "$arg" in P,* | -L* | -R* )
5847 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5849 xe_runpath_dir="$dir"
5850 test "$xe_runpath_dir" != "/lib" -a \
5851 "$xe_runpath_dir" != "/usr/lib" -a \
5852 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5853 eval "$xe_add_unique_runpath_dir"
5858 ld_switch_run="$ld_switch_run_save"
5861 for arg in $ld_switch_site $ld_switch_x_site; do
5862 case "$arg" in -L*) {
5863 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5864 test "$xe_runpath_dir" != "/lib" -a \
5865 "$xe_runpath_dir" != "/usr/lib" -a \
5866 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5867 eval "$xe_add_unique_runpath_dir"
5870 if test "$opsys $need_motif" = "sol2 yes"; then
5871 xe_runpath_dir="/opt/SUNWdt/lib";
5872 eval "$xe_add_unique_runpath_dir";
5875 if test -n "$runpath"; then
5876 ld_switch_run="${dash_r}${runpath}"
5878 if test "$GCC" = "yes"; then
5879 set x $ld_switch_run; shift; ld_switch_run=""
5880 while test -n "$1"; do
5882 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5883 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5885 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5890 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5895 if test "$extra_verbose" = "yes"; then
5896 echo; echo "X11 compilation variables:"
5897 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5902 if test "$x_includes" != NONE; then
5903 for i in $x_includes; do
5904 if test -d "$i/bitmaps"; then
5905 bitmapdirs="$i/bitmaps:$bitmapdirs"
5907 if test -d "$i/X11/bitmaps"; then
5908 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5911 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5913 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5914 Defining BITMAPDIR = "$bitmapdirs"
5916 cat >> confdefs.h <<EOF
5917 #define BITMAPDIR "$bitmapdirs"
5922 echo "checking for X defines extracted by xmkmf" 1>&6
5923 echo "configure:5924: checking for X defines extracted by xmkmf" >&5
5925 if mkdir conftestdir; then
5927 cat > Imakefile <<'EOF'
5929 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5931 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5933 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5937 for word in $xmkmf_defines; do
5938 case "$word" in -D* )
5939 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
5941 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
5944 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5945 if test "$val" = "1"
5946 then { test "$extra_verbose" = "yes" && cat << EOF
5949 cat >> confdefs.h <<EOF
5954 else { test "$extra_verbose" = "yes" && cat << EOF
5955 Defining $sym = $val
5957 cat >> confdefs.h <<EOF
5968 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5969 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5970 echo "configure:5971: checking for X11/Intrinsic.h" >&5
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 #include <X11/Intrinsic.h>
5977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5978 { (eval echo configure:5979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5980 if test -z "$ac_err"; then
5982 eval "ac_cv_header_$ac_safe=yes"
5985 echo "configure: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5988 eval "ac_cv_header_$ac_safe=no"
5991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5992 echo "$ac_t""yes" 1>&6
5995 echo "$ac_t""no" 1>&6
5996 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6001 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6002 echo "configure:6003: checking for XOpenDisplay in -lX11" >&5
6003 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6005 xe_check_libs=" -lX11 "
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6012 char XOpenDisplay();
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020 eval "ac_cv_lib_$ac_lib_var=yes"
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 eval "ac_cv_lib_$ac_lib_var=no"
6030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6031 echo "$ac_t""yes" 1>&6
6034 echo "$ac_t""no" 1>&6
6038 if test "$have_lib_x11" != "yes"; then
6040 xe_msg_checking="for XGetFontProperty in -lX11"
6041 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6042 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6043 echo "configure:6044: checking "$xe_msg_checking"" >&5
6044 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6046 xe_check_libs=" -lX11 -b i486-linuxaout"
6047 cat > conftest.$ac_ext <<EOF
6048 #line 6049 "configure"
6049 #include "confdefs.h"
6050 /* Override any gcc2 internal prototype to avoid an error. */
6051 /* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */
6053 char XGetFontProperty();
6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6061 eval "ac_cv_lib_$ac_lib_var=yes"
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6066 eval "ac_cv_lib_$ac_lib_var=no"
6071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6072 echo "$ac_t""yes" 1>&6
6073 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6075 echo "$ac_t""no" 1>&6
6076 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6082 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6085 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6086 echo "configure:6087: checking for XShapeSelectInput in -lXext" >&5
6087 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6089 xe_check_libs=" -lXext "
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6096 char XShapeSelectInput();
6102 if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6104 eval "ac_cv_lib_$ac_lib_var=yes"
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6109 eval "ac_cv_lib_$ac_lib_var=no"
6114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6115 echo "$ac_t""yes" 1>&6
6116 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6118 echo "$ac_t""no" 1>&6
6124 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6125 echo "configure:6126: checking for XtOpenDisplay in -lXt" >&5
6126 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6128 xe_check_libs=" -lXt "
6129 cat > conftest.$ac_ext <<EOF
6130 #line 6131 "configure"
6131 #include "confdefs.h"
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6135 char XtOpenDisplay();
6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6143 eval "ac_cv_lib_$ac_lib_var=yes"
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6148 eval "ac_cv_lib_$ac_lib_var=no"
6153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6154 echo "$ac_t""yes" 1>&6
6155 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6157 echo "$ac_t""no" 1>&6
6158 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6163 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6164 echo "configure:6165: checking the version of X11 being used" >&5
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 #include <X11/Intrinsic.h>
6169 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6173 ./conftest foobar; x11_release=$?
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6182 echo "$ac_t""R${x11_release}" 1>&6
6183 { test "$extra_verbose" = "yes" && cat << EOF
6184 Defining THIS_IS_X11R${x11_release}
6186 cat >> confdefs.h <<EOF
6187 #define THIS_IS_X11R${x11_release} 1
6192 if test "${x11_release}" = "4"; then
6193 case "$with_widgets" in
6194 "" | "no") with_widgets=no ;;
6195 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6199 for ac_func in XConvertCase
6201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6202 echo "configure:6203: checking for $ac_func" >&5
6204 cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure"
6206 #include "confdefs.h"
6207 /* System header to define __stub macros and hopefully few prototypes,
6208 which can conflict with char $ac_func(); below. */
6210 /* Override any gcc2 internal prototype to avoid an error. */
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6217 /* The GNU C library defines this for functions which it implements
6218 to always fail with ENOSYS. Some functions are actually named
6219 something starting with __ and the normal name is an alias. */
6220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6230 eval "ac_cv_func_$ac_func=yes"
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6235 eval "ac_cv_func_$ac_func=no"
6239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6242 { test "$extra_verbose" = "yes" && cat << EOF
6243 Defining $ac_tr_func
6245 cat >> confdefs.h <<EOF
6246 #define $ac_tr_func 1
6251 echo "$ac_t""no" 1>&6
6256 for ac_hdr in X11/Xlocale.h
6258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6260 echo "configure:6261: checking for $ac_hdr" >&5
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6268 { (eval echo configure:6269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6270 if test -z "$ac_err"; then
6272 eval "ac_cv_header_$ac_safe=yes"
6275 echo "configure: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6278 eval "ac_cv_header_$ac_safe=no"
6281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6282 echo "$ac_t""yes" 1>&6
6283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6284 { test "$extra_verbose" = "yes" && cat << EOF
6287 cat >> confdefs.h <<EOF
6288 #define $ac_tr_hdr 1
6293 echo "$ac_t""no" 1>&6
6298 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6299 echo "configure:6300: checking for XFree86" >&5
6300 if test -d "/usr/X386/include" -o \
6301 -f "/etc/XF86Config" -o \
6302 -f "/etc/X11/XF86Config" -o \
6303 -f "/usr/X11R6/lib/X11/XF86Config"; then
6304 echo "$ac_t""yes" 1>&6
6305 { test "$extra_verbose" = "yes" && cat << \EOF
6306 Defining HAVE_XFREE386
6308 cat >> confdefs.h <<\EOF
6309 #define HAVE_XFREE386 1
6314 echo "$ac_t""no" 1>&6
6317 test -z "$with_xmu" && {
6318 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6319 echo "configure:6320: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6320 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6322 xe_check_libs=" -lXmu "
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6329 char XmuReadBitmapDataFromFile();
6332 XmuReadBitmapDataFromFile()
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 eval "ac_cv_lib_$ac_lib_var=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6342 eval "ac_cv_lib_$ac_lib_var=no"
6347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6348 echo "$ac_t""yes" 1>&6
6351 echo "$ac_t""no" 1>&6
6356 if test "$with_xmu" = "no"; then
6357 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6358 echo " xemacs will be linked with \"xmu.o\""
6361 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6362 { test "$extra_verbose" = "yes" && cat << \EOF
6365 cat >> confdefs.h <<\EOF
6373 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6374 echo "configure:6375: checking for main in -lXbsd" >&5
6375 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6377 xe_check_libs=" -lXbsd "
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388 eval "ac_cv_lib_$ac_lib_var=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 eval "ac_cv_lib_$ac_lib_var=no"
6398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6399 echo "$ac_t""yes" 1>&6
6400 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6402 echo "$ac_t""no" 1>&6
6407 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6408 if test "$GCC" = "yes"; then
6409 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6410 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6413 "xlc" ) CC="xlc_r" ;;
6414 "xlC" ) CC="xlC_r" ;;
6421 if test "$with_msw" != "no"; then
6422 echo "checking for MS-Windows" 1>&6
6423 echo "configure:6424: checking for MS-Windows" >&5
6425 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6426 echo "configure:6427: checking for main in -lgdi32" >&5
6427 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6429 xe_check_libs=" -lgdi32 "
6430 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6438 if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6440 eval "ac_cv_lib_$ac_lib_var=yes"
6442 echo "configure: failed program was:" >&5
6443 cat conftest.$ac_ext >&5
6445 eval "ac_cv_lib_$ac_lib_var=no"
6450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6451 echo "$ac_t""yes" 1>&6
6454 echo "$ac_t""no" 1>&6
6458 if test "$with_msw" = "yes"; then
6459 { test "$extra_verbose" = "yes" && cat << \EOF
6460 Defining HAVE_MS_WINDOWS
6462 cat >> confdefs.h <<\EOF
6463 #define HAVE_MS_WINDOWS 1
6467 install_pp="$blddir/lib-src/installexe.sh"
6468 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
6469 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6470 if test "$window_system" != x11; then
6472 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6473 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6474 echo " xemacs will be linked with \"scrollbar-msw.o\""
6476 test "$with_menubars" != "no" && with_menubars=msw \
6477 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6478 echo " xemacs will be linked with \"menubar-msw.o\""
6480 test "$with_toolbars" != "no" && with_toolbars=msw \
6481 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6482 echo " xemacs will be linked with \"toolbar-msw.o\""
6484 test "$with_dialogs" != "no" && with_dialogs=msw \
6485 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6486 echo " xemacs will be linked with \"dialog-msw.o\""
6488 test "$with_widgets" != "no" && with_widgets=msw
6490 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6491 echo " xemacs will be linked with \"scrollbar-msw.o\""
6493 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6494 echo " xemacs will be linked with \"menubar-msw.o\""
6496 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6497 echo " xemacs will be linked with \"toolbar-msw.o\""
6499 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6500 echo " xemacs will be linked with \"dialog-msw.o\""
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6507 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6509 if { (eval echo configure:6510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6511 { test "$extra_verbose" = "yes" && cat << \EOF
6512 Defining HAVE_MSG_SELECT
6514 cat >> confdefs.h <<\EOF
6515 #define HAVE_MSG_SELECT 1
6521 echo "configure: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6525 with_file_coding=yes
6526 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
6527 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\""
6534 test -z "$window_system" && window_system="none"
6536 if test "$window_system" = "none"; then
6537 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6539 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6540 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6542 eval "with_${feature}=no"
6545 test -z "$with_toolbars" && with_toolbars=yes
6548 if test "$with_msw" != "yes"; then
6549 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6551 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6552 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6554 eval "with_${feature}=no"
6560 if test "$with_x11" != "yes"; then
6561 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6563 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6564 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6566 eval "with_${feature}=no"
6570 if test "$with_x11" = "yes"; then
6571 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6572 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6573 echo "configure:6574: checking for X11/extensions/shape.h" >&5
6575 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 #include <X11/extensions/shape.h>
6580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6581 { (eval echo configure:6582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6583 if test -z "$ac_err"; then
6585 eval "ac_cv_header_$ac_safe=yes"
6588 echo "configure: failed program was:" >&5
6589 cat conftest.$ac_ext >&5
6591 eval "ac_cv_header_$ac_safe=no"
6594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6595 echo "$ac_t""yes" 1>&6
6597 { test "$extra_verbose" = "yes" && cat << \EOF
6598 Defining HAVE_BALLOON_HELP
6600 cat >> confdefs.h <<\EOF
6601 #define HAVE_BALLOON_HELP 1
6605 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
6606 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
6609 echo "$ac_t""no" 1>&6
6616 case "$window_system" in
6617 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6618 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6619 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6622 case "$x_libraries" in *X11R4* )
6623 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6624 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6627 echo "checking for WM_COMMAND option" 1>&6
6628 echo "configure:6629: checking for WM_COMMAND option" >&5;
6629 if test "$with_wmcommand" != "no"; then
6630 { test "$extra_verbose" = "yes" && cat << \EOF
6631 Defining HAVE_WMCOMMAND
6633 cat >> confdefs.h <<\EOF
6634 #define HAVE_WMCOMMAND 1
6640 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6641 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6642 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6643 echo "configure:6644: checking for X11/Xauth.h" >&5
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 #include <X11/Xauth.h>
6650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6651 { (eval echo configure:6652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6653 if test -z "$ac_err"; then
6655 eval "ac_cv_header_$ac_safe=yes"
6658 echo "configure: failed program was:" >&5
6659 cat conftest.$ac_ext >&5
6661 eval "ac_cv_header_$ac_safe=no"
6664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6665 echo "$ac_t""yes" 1>&6
6668 echo "$ac_t""no" 1>&6
6672 test -z "$with_xauth" && {
6673 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6674 echo "configure:6675: checking for XauGetAuthByAddr in -lXau" >&5
6675 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6677 xe_check_libs=" -lXau "
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6684 char XauGetAuthByAddr();
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6692 eval "ac_cv_lib_$ac_lib_var=yes"
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6697 eval "ac_cv_lib_$ac_lib_var=no"
6702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6703 echo "$ac_t""yes" 1>&6
6706 echo "$ac_t""no" 1>&6
6711 test -z "$with_xauth" && with_xauth=yes
6712 if test "$with_xauth" = "yes"; then
6713 { test "$extra_verbose" = "yes" && cat << \EOF
6716 cat >> confdefs.h <<\EOF
6717 #define HAVE_XAUTH 1
6723 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6731 if test "$with_tooltalk" != "no" ; then
6732 for dir in "" "Tt/" "desktop/" ; do
6733 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6734 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6735 echo "configure:6736: checking for ${dir}tt_c.h" >&5
6737 cat > conftest.$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6740 #include <${dir}tt_c.h>
6742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6743 { (eval echo configure:6744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6745 if test -z "$ac_err"; then
6747 eval "ac_cv_header_$ac_safe=yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 eval "ac_cv_header_$ac_safe=no"
6756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6758 tt_c_h_file="${dir}tt_c.h"; break
6760 echo "$ac_t""no" 1>&6
6764 if test -z "$tt_c_h_file"; then
6765 if test "$with_tooltalk" = "yes"; then
6766 (echo "$progname: Usage error:"
6767 echo " " "Unable to find required tooltalk header files."
6768 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6773 if test "$with_tooltalk" != "no" ; then
6774 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6776 xe_msg_checking="for tt_message_create in -ltt"
6777 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6778 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6779 echo "configure:6780: checking "$xe_msg_checking"" >&5
6780 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6782 xe_check_libs=" -ltt $extra_libs"
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6786 /* Override any gcc2 internal prototype to avoid an error. */
6787 /* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */
6789 char tt_message_create();
6795 if { (eval echo configure:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6797 eval "ac_cv_lib_$ac_lib_var=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6802 eval "ac_cv_lib_$ac_lib_var=no"
6807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6808 echo "$ac_t""yes" 1>&6
6809 tt_libs="-ltt $extra_libs"; break
6811 echo "$ac_t""no" 1>&6
6817 if test -z "$tt_libs"; then
6818 if test "$with_tooltalk" = "yes"; then
6819 (echo "$progname: Usage error:"
6820 echo " " "Unable to find required tooltalk libraries."
6821 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6826 test -z "$with_tooltalk" && with_tooltalk=yes
6827 if test "$with_tooltalk" = "yes"; then
6828 { test "$extra_verbose" = "yes" && cat << \EOF
6831 cat >> confdefs.h <<\EOF
6836 { test "$extra_verbose" = "yes" && cat << EOF
6837 Defining TT_C_H_FILE = "$tt_c_h_file"
6839 cat >> confdefs.h <<EOF
6840 #define TT_C_H_FILE "$tt_c_h_file"
6844 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6845 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6846 echo " xemacs will be linked with \"tooltalk.o\""
6850 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6851 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6852 echo "configure:6853: checking for Dt/Dt.h" >&5
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6860 { (eval echo configure:6861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6862 if test -z "$ac_err"; then
6864 eval "ac_cv_header_$ac_safe=yes"
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 eval "ac_cv_header_$ac_safe=no"
6873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6874 echo "$ac_t""yes" 1>&6
6877 echo "$ac_t""no" 1>&6
6881 test -z "$with_cde" && {
6882 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6883 echo "configure:6884: checking for DtDndDragStart in -lDtSvc" >&5
6884 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6886 xe_check_libs=" -lDtSvc "
6887 cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6890 /* Override any gcc2 internal prototype to avoid an error. */
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6893 char DtDndDragStart();
6899 if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6901 eval "ac_cv_lib_$ac_lib_var=yes"
6903 echo "configure: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6906 eval "ac_cv_lib_$ac_lib_var=no"
6911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6912 echo "$ac_t""yes" 1>&6
6915 echo "$ac_t""no" 1>&6
6920 test -z "$with_cde" && with_cde=yes
6921 if test "$with_dragndrop" = no; then
6922 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6925 if test "$with_cde" = "yes" ; then
6926 { test "$extra_verbose" = "yes" && cat << \EOF
6929 cat >> confdefs.h <<\EOF
6934 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6935 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6936 with_tooltalk=yes # CDE requires Tooltalk
6937 need_motif=yes # CDE requires Motif
6940 test "$window_system" != "x11" && with_offix=no
6941 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6942 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6945 if test "$with_dragndrop" = no; then
6946 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6949 if test "$with_cde" = yes; then
6950 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6953 test -z "$with_offix" && with_offix=no
6954 if test "$with_offix" = "yes"; then
6955 { test "$extra_verbose" = "yes" && cat << \EOF
6956 Defining HAVE_OFFIX_DND
6958 cat >> confdefs.h <<\EOF
6959 #define HAVE_OFFIX_DND 1
6963 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6964 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6967 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6968 echo "configure:6969: checking if drag and drop API is needed" >&5
6969 if test "$with_dragndrop" != "no" ; then
6970 if test -n "$dragndrop_proto" ; then
6972 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6973 { test "$extra_verbose" = "yes" && cat << \EOF
6974 Defining HAVE_DRAGNDROP
6976 cat >> confdefs.h <<\EOF
6977 #define HAVE_DRAGNDROP 1
6981 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6984 echo "$ac_t""no" 1>&6
6988 echo "checking for LDAP" 1>&6
6989 echo "configure:6990: checking for LDAP" >&5
6990 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6991 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6992 echo "configure:6993: checking for ldap.h" >&5
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7000 { (eval echo configure:7001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7002 if test -z "$ac_err"; then
7004 eval "ac_cv_header_$ac_safe=yes"
7007 echo "configure: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7010 eval "ac_cv_header_$ac_safe=no"
7013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7014 echo "$ac_t""yes" 1>&6
7017 echo "$ac_t""no" 1>&6
7021 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7022 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7023 echo "configure:7024: checking for lber.h" >&5
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7031 { (eval echo configure:7032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7033 if test -z "$ac_err"; then
7035 eval "ac_cv_header_$ac_safe=yes"
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7041 eval "ac_cv_header_$ac_safe=no"
7044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7045 echo "$ac_t""yes" 1>&6
7048 echo "$ac_t""no" 1>&6
7052 if test "$with_ldap" != "no"; then
7054 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7055 echo "configure:7056: checking for ldap_search in -lldap" >&5
7056 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7058 xe_check_libs=" -lldap "
7059 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7062 /* Override any gcc2 internal prototype to avoid an error. */
7063 /* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7073 eval "ac_cv_lib_$ac_lib_var=yes"
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 eval "ac_cv_lib_$ac_lib_var=no"
7083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7084 echo "$ac_t""yes" 1>&6
7085 with_ldap_nolber=yes
7087 echo "$ac_t""no" 1>&6
7092 test "$with_ldap_nolber" = "no" && {
7093 xe_msg_checking="for ldap_open in -lldap"
7094 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7095 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7096 echo "configure:7097: checking "$xe_msg_checking"" >&5
7097 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7099 xe_check_libs=" -lldap -llber"
7100 cat > conftest.$ac_ext <<EOF
7101 #line 7102 "configure"
7102 #include "confdefs.h"
7103 /* Override any gcc2 internal prototype to avoid an error. */
7104 /* We use char because int might match the return type of a gcc2
7105 builtin and then its argument prototype would still apply. */
7112 if { (eval echo configure:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7114 eval "ac_cv_lib_$ac_lib_var=yes"
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7119 eval "ac_cv_lib_$ac_lib_var=no"
7124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7125 echo "$ac_t""yes" 1>&6
7128 echo "$ac_t""no" 1>&6
7133 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7134 xe_msg_checking="for ldap_open in -lldap"
7135 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7136 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7137 echo "configure:7138: checking "$xe_msg_checking"" >&5
7138 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7140 xe_check_libs=" -lldap -llber -lkrb"
7141 cat > conftest.$ac_ext <<EOF
7142 #line 7143 "configure"
7143 #include "confdefs.h"
7144 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 eval "ac_cv_lib_$ac_lib_var=yes"
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 eval "ac_cv_lib_$ac_lib_var=no"
7165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7166 echo "$ac_t""yes" 1>&6
7169 echo "$ac_t""no" 1>&6
7174 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7175 xe_msg_checking="for ldap_open in -lldap"
7176 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7177 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7178 echo "configure:7179: checking "$xe_msg_checking"" >&5
7179 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7181 xe_check_libs=" -lldap -llber -lkrb -ldes"
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7185 /* Override any gcc2 internal prototype to avoid an error. */
7186 /* We use char because int might match the return type of a gcc2
7187 builtin and then its argument prototype would still apply. */
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196 eval "ac_cv_lib_$ac_lib_var=yes"
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7201 eval "ac_cv_lib_$ac_lib_var=no"
7206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7207 echo "$ac_t""yes" 1>&6
7208 with_ldap_krbdes=yes
7210 echo "$ac_t""no" 1>&6
7215 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
7217 if test "$with_ldap" = "yes"; then
7218 { test "$extra_verbose" = "yes" && cat << \EOF
7221 cat >> confdefs.h <<\EOF
7226 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7227 echo " xemacs will be linked with \"eldap.o\""
7229 if test "$with_ldap_nolber" = "yes" ; then
7230 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7232 if test "$with_ldap_krb" = "yes" ; then
7233 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7235 if test "$with_ldap_krbdes" = "yes" ; then
7236 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7237 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7239 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7240 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7242 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7245 echo "configure:7246: checking for $ac_func" >&5
7247 cat > conftest.$ac_ext <<EOF
7248 #line 7249 "configure"
7249 #include "confdefs.h"
7250 /* System header to define __stub macros and hopefully few prototypes,
7251 which can conflict with char $ac_func(); below. */
7253 /* Override any gcc2 internal prototype to avoid an error. */
7254 /* We use char because int might match the return type of a gcc2
7255 builtin and then its argument prototype would still apply. */
7260 /* The GNU C library defines this for functions which it implements
7261 to always fail with ENOSYS. Some functions are actually named
7262 something starting with __ and the normal name is an alias. */
7263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7271 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7273 eval "ac_cv_func_$ac_func=yes"
7275 echo "configure: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7278 eval "ac_cv_func_$ac_func=no"
7282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7283 echo "$ac_t""yes" 1>&6
7284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7285 { test "$extra_verbose" = "yes" && cat << EOF
7286 Defining $ac_tr_func
7288 cat >> confdefs.h <<EOF
7289 #define $ac_tr_func 1
7294 echo "$ac_t""no" 1>&6
7300 if test "$with_postgresql" != "no"; then
7301 echo "checking for PostgreSQL" 1>&6
7302 echo "configure:7303: checking for PostgreSQL" >&5
7304 for header_dir in "" "pgsql/" "postgresql/"; do
7305 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7306 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7307 echo "configure:7308: checking for ${header_dir}libpq-fe.h" >&5
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7312 #include <${header_dir}libpq-fe.h>
7314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7315 { (eval echo configure:7316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7317 if test -z "$ac_err"; then
7319 eval "ac_cv_header_$ac_safe=yes"
7322 echo "configure: failed program was:" >&5
7323 cat conftest.$ac_ext >&5
7325 eval "ac_cv_header_$ac_safe=no"
7328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7329 echo "$ac_t""yes" 1>&6
7330 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7332 echo "$ac_t""no" 1>&6
7337 test -n "$libpq_fe_h_file" && {
7338 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7339 echo "configure:7340: checking for PQconnectdb in -lpq" >&5
7340 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7342 xe_check_libs=" -lpq "
7343 cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7346 /* Override any gcc2 internal prototype to avoid an error. */
7347 /* We use char because int might match the return type of a gcc2
7348 builtin and then its argument prototype would still apply. */
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7357 eval "ac_cv_lib_$ac_lib_var=yes"
7359 echo "configure: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7362 eval "ac_cv_lib_$ac_lib_var=no"
7367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7368 echo "$ac_t""yes" 1>&6
7371 echo "$ac_t""no" 1>&6
7376 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7378 { test "$extra_verbose" = "yes" && cat << \EOF
7379 Defining HAVE_POSTGRESQL
7381 cat >> confdefs.h <<\EOF
7382 #define HAVE_POSTGRESQL 1
7387 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7388 echo "configure:7389: checking for PQconnectStart in -lpq" >&5
7389 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7391 xe_check_libs=" -lpq "
7392 cat > conftest.$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7395 /* Override any gcc2 internal prototype to avoid an error. */
7396 /* We use char because int might match the return type of a gcc2
7397 builtin and then its argument prototype would still apply. */
7398 char PQconnectStart();
7404 if { (eval echo configure:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7406 eval "ac_cv_lib_$ac_lib_var=yes"
7408 echo "configure: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7411 eval "ac_cv_lib_$ac_lib_var=no"
7416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7417 echo "$ac_t""yes" 1>&6
7418 with_postgresqlv7=yes;
7419 { test "$extra_verbose" = "yes" && cat << \EOF
7420 Defining HAVE_POSTGRESQLV7
7422 cat >> confdefs.h <<\EOF
7423 #define HAVE_POSTGRESQLV7 1
7428 echo "$ac_t""no" 1>&6
7432 { test "$extra_verbose" = "yes" && cat << EOF
7433 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7435 cat >> confdefs.h <<EOF
7436 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7440 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7441 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7442 echo " xemacs will be linked with \"postgresql.o\""
7444 elif test "$with_postgresql" = "yes"; then
7445 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7450 if test "$window_system" != "none"; then
7451 echo "checking for graphics libraries" 1>&6
7452 echo "configure:7453: checking for graphics libraries" >&5
7455 if test -z "$with_xpm"; then
7456 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7457 echo "configure:7458: checking for Xpm - no older than 3.4f" >&5
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7463 #include <X11/xpm.h>
7464 int main(int c, char **v) {
7466 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7467 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7469 if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7471 ./conftest dummy_arg; xpm_status=$?;
7472 if test "$xpm_status" = "0"; then
7476 if test "$xpm_status" = "1"; then
7477 xpm_problem="Xpm library version and header file version don't match!"
7478 elif test "$xpm_status" = "2"; then
7479 xpm_problem="Xpm library version is too old!"
7481 xpm_problem="Internal xpm detection logic error!"
7484 *** WARNING *** $xpm_problem
7485 I'm not touching that with a 10-foot pole!
7486 If you really want to use the installed version of Xpm, rerun
7487 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7491 echo "configure: failed program was:" >&5
7492 cat conftest.$ac_ext >&5
7498 echo "$ac_t""$with_xpm" 1>&6
7500 if test "$with_xpm" = "yes"; then
7501 { test "$extra_verbose" = "yes" && cat << \EOF
7504 cat >> confdefs.h <<\EOF
7509 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7510 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7511 echo "configure:7512: checking for \"FOR_MSW\" xpm" >&5
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7518 XpmCreatePixmapFromData()
7521 if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7525 echo "configure: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7532 echo "$ac_t""$xpm_for_msw" 1>&6
7533 if test "$xpm_for_msw" = "yes"; then
7534 { test "$extra_verbose" = "yes" && cat << \EOF
7537 cat >> confdefs.h <<\EOF
7545 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7546 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7547 echo "configure:7548: checking for compface.h" >&5
7549 cat > conftest.$ac_ext <<EOF
7550 #line 7551 "configure"
7551 #include "confdefs.h"
7552 #include <compface.h>
7554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7555 { (eval echo configure:7556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7557 if test -z "$ac_err"; then
7559 eval "ac_cv_header_$ac_safe=yes"
7562 echo "configure: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7565 eval "ac_cv_header_$ac_safe=no"
7568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7569 echo "$ac_t""yes" 1>&6
7572 echo "$ac_t""no" 1>&6
7576 test -z "$with_xface" && {
7577 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7578 echo "configure:7579: checking for UnGenFace in -lcompface" >&5
7579 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7581 xe_check_libs=" -lcompface "
7582 cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7585 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7594 if { (eval echo configure:7595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7596 eval "ac_cv_lib_$ac_lib_var=yes"
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7601 eval "ac_cv_lib_$ac_lib_var=no"
7606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7607 echo "$ac_t""yes" 1>&6
7610 echo "$ac_t""no" 1>&6
7615 test -z "$with_xface" && with_xface=yes
7616 if test "$with_xface" = "yes"; then
7617 { test "$extra_verbose" = "yes" && cat << \EOF
7620 cat >> confdefs.h <<\EOF
7621 #define HAVE_XFACE 1
7625 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7628 if test "$with_gif" != "no"; then
7630 { test "$extra_verbose" = "yes" && cat << \EOF
7633 cat >> confdefs.h <<\EOF
7638 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7639 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7643 if test "$with_png $with_tiff" != "no no"; then
7645 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7646 echo "configure:7647: checking for inflate in -lc" >&5
7647 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7649 xe_check_libs=" -lc "
7650 cat > conftest.$ac_ext <<EOF
7651 #line 7652 "configure"
7652 #include "confdefs.h"
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7662 if { (eval echo configure:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7664 eval "ac_cv_lib_$ac_lib_var=yes"
7666 echo "configure: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7669 eval "ac_cv_lib_$ac_lib_var=no"
7674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7675 echo "$ac_t""yes" 1>&6
7678 echo "$ac_t""no" 1>&6
7680 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7681 echo "configure:7682: checking for inflate in -lz" >&5
7682 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7684 xe_check_libs=" -lz "
7685 cat > conftest.$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7688 /* Override any gcc2 internal prototype to avoid an error. */
7689 /* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7697 if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7699 eval "ac_cv_lib_$ac_lib_var=yes"
7701 echo "configure: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7704 eval "ac_cv_lib_$ac_lib_var=no"
7709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7710 echo "$ac_t""yes" 1>&6
7711 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7713 echo "$ac_t""no" 1>&6
7715 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7716 echo "configure:7717: checking for inflate in -lgz" >&5
7717 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7719 xe_check_libs=" -lgz "
7720 cat > conftest.$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7723 /* Override any gcc2 internal prototype to avoid an error. */
7724 /* We use char because int might match the return type of a gcc2
7725 builtin and then its argument prototype would still apply. */
7732 if { (eval echo configure:7733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7734 eval "ac_cv_lib_$ac_lib_var=yes"
7736 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7739 eval "ac_cv_lib_$ac_lib_var=no"
7744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7745 echo "$ac_t""yes" 1>&6
7746 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7748 echo "$ac_t""no" 1>&6
7760 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7761 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7762 echo "configure:7763: checking for jpeglib.h" >&5
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7767 #include <jpeglib.h>
7769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7770 { (eval echo configure:7771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7772 if test -z "$ac_err"; then
7774 eval "ac_cv_header_$ac_safe=yes"
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7780 eval "ac_cv_header_$ac_safe=no"
7783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7784 echo "$ac_t""yes" 1>&6
7787 echo "$ac_t""no" 1>&6
7791 test -z "$with_jpeg" && {
7792 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7793 echo "configure:7794: checking for jpeg_destroy_decompress in -ljpeg" >&5
7794 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7796 xe_check_libs=" -ljpeg "
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7803 char jpeg_destroy_decompress();
7806 jpeg_destroy_decompress()
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7811 eval "ac_cv_lib_$ac_lib_var=yes"
7813 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5
7816 eval "ac_cv_lib_$ac_lib_var=no"
7821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7822 echo "$ac_t""yes" 1>&6
7825 echo "$ac_t""no" 1>&6
7830 test -z "$with_jpeg" && with_jpeg=yes
7831 if test "$with_jpeg" = "yes"; then
7832 { test "$extra_verbose" = "yes" && cat << \EOF
7835 cat >> confdefs.h <<\EOF
7840 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7844 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7845 echo "configure:7846: checking for pow" >&5
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7850 /* System header to define __stub macros and hopefully few prototypes,
7851 which can conflict with char pow(); below. */
7853 /* Override any gcc2 internal prototype to avoid an error. */
7854 /* We use char because int might match the return type of a gcc2
7855 builtin and then its argument prototype would still apply. */
7860 /* The GNU C library defines this for functions which it implements
7861 to always fail with ENOSYS. Some functions are actually named
7862 something starting with __ and the normal name is an alias. */
7863 #if defined (__stub_pow) || defined (__stub___pow)
7871 if { (eval echo configure:7872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7873 eval "ac_cv_func_pow=yes"
7875 echo "configure: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7878 eval "ac_cv_func_pow=no"
7882 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7883 echo "$ac_t""yes" 1>&6
7886 echo "$ac_t""no" 1>&6
7890 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7891 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7892 echo "configure:7893: checking for png.h" >&5
7894 cat > conftest.$ac_ext <<EOF
7895 #line 7896 "configure"
7896 #include "confdefs.h"
7899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7900 { (eval echo configure:7901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7902 if test -z "$ac_err"; then
7904 eval "ac_cv_header_$ac_safe=yes"
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7910 eval "ac_cv_header_$ac_safe=no"
7913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7914 echo "$ac_t""yes" 1>&6
7917 echo "$ac_t""no" 1>&6
7921 test -z "$with_png" && {
7922 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7923 echo "configure:7924: checking for png_read_image in -lpng" >&5
7924 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7926 xe_check_libs=" -lpng "
7927 cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure"
7929 #include "confdefs.h"
7930 /* Override any gcc2 internal prototype to avoid an error. */
7931 /* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7933 char png_read_image();
7939 if { (eval echo configure:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7941 eval "ac_cv_lib_$ac_lib_var=yes"
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7946 eval "ac_cv_lib_$ac_lib_var=no"
7951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7952 echo "$ac_t""yes" 1>&6
7955 echo "$ac_t""no" 1>&6
7960 if test -z "$with_png"; then
7961 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7962 echo "configure:7963: checking for workable png version information" >&5
7963 xe_check_libs="-lpng -lz"
7964 cat > conftest.$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7968 int main(int c, char **v) {
7969 if (c == 1) return 0;
7970 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7971 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7975 ./conftest dummy_arg; png_status=$?;
7976 if test "$png_status" = "0"; then
7980 if test "$png_status" = "1"; then
7981 png_problem="PNG library version and header file don't match!"
7982 elif test "$png_status" = "2"; then
7983 png_problem="PNG library version too old (pre 1.0.2)!"
7986 *** WARNING *** $png_problem
7987 I'm not touching that with a 10-foot pole!
7988 If you really want to use the installed version of libPNG, rerun
7989 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7993 echo "configure: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
8000 echo "$ac_t""$with_png" 1>&6
8002 if test "$with_png" = "yes"; then
8003 { test "$extra_verbose" = "yes" && cat << \EOF
8006 cat >> confdefs.h <<\EOF
8011 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8014 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8015 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8016 echo "configure:8017: checking for tiffio.h" >&5
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8024 { (eval echo configure:8025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8026 if test -z "$ac_err"; then
8028 eval "ac_cv_header_$ac_safe=yes"
8031 echo "configure: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8034 eval "ac_cv_header_$ac_safe=no"
8037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8038 echo "$ac_t""yes" 1>&6
8041 echo "$ac_t""no" 1>&6
8045 test -z "$with_tiff" && {
8046 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8047 echo "configure:8048: checking for TIFFClientOpen in -ltiff" >&5
8048 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8050 xe_check_libs=" -ltiff "
8051 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8054 /* Override any gcc2 internal prototype to avoid an error. */
8055 /* We use char because int might match the return type of a gcc2
8056 builtin and then its argument prototype would still apply. */
8057 char TIFFClientOpen();
8063 if { (eval echo configure:8064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8065 eval "ac_cv_lib_$ac_lib_var=yes"
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8070 eval "ac_cv_lib_$ac_lib_var=no"
8075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8076 echo "$ac_t""yes" 1>&6
8079 echo "$ac_t""no" 1>&6
8084 test -z "$with_tiff" && with_tiff=yes
8085 if test "$with_tiff" = "yes"; then
8086 { test "$extra_verbose" = "yes" && cat << \EOF
8089 cat >> confdefs.h <<\EOF
8094 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8099 if test "$with_x11" = "yes"; then
8101 echo "checking for X11 graphics libraries" 1>&6
8102 echo "configure:8103: checking for X11 graphics libraries" >&5
8104 echo "checking for the Athena widgets" 1>&6
8105 echo "configure:8106: checking for the Athena widgets" >&5
8107 case "$with_athena" in
8108 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8109 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8110 "next") athena_variant=neXtaw athena_3d=yes ;;
8111 "95") athena_variant=Xaw95 athena_3d=yes ;;
8112 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8113 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8116 if test "$athena_3d" = "no"; then
8118 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8119 echo "configure:8120: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8120 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8122 xe_check_libs=" -l$athena_variant "
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8126 /* Override any gcc2 internal prototype to avoid an error. */
8127 /* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */
8129 char XawScrollbarSetThumb();
8132 XawScrollbarSetThumb()
8135 if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8137 eval "ac_cv_lib_$ac_lib_var=yes"
8139 echo "configure: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8142 eval "ac_cv_lib_$ac_lib_var=no"
8147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8148 echo "$ac_t""yes" 1>&6
8150 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8151 echo "configure:8152: checking for threeDClassRec in -l$athena_variant" >&5
8152 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8154 xe_check_libs=" -l$athena_variant "
8155 cat > conftest.$ac_ext <<EOF
8156 #line 8157 "configure"
8157 #include "confdefs.h"
8158 /* Override any gcc2 internal prototype to avoid an error. */
8159 /* We use char because int might match the return type of a gcc2
8160 builtin and then its argument prototype would still apply. */
8161 char threeDClassRec();
8167 if { (eval echo configure:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8169 eval "ac_cv_lib_$ac_lib_var=yes"
8171 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8174 eval "ac_cv_lib_$ac_lib_var=no"
8179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8180 echo "$ac_t""yes" 1>&6
8181 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8183 echo "$ac_t""no" 1>&6
8184 athena_lib=$athena_variant
8190 echo "$ac_t""no" 1>&6
8191 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8197 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8198 echo "configure:8199: checking for threeDClassRec in -l$athena_variant" >&5
8199 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8201 xe_check_libs=" -l$athena_variant "
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8208 char threeDClassRec();
8214 if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8216 eval "ac_cv_lib_$ac_lib_var=yes"
8218 echo "configure: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8221 eval "ac_cv_lib_$ac_lib_var=no"
8226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8227 echo "$ac_t""yes" 1>&6
8228 athena_lib=$athena_variant
8230 echo "$ac_t""no" 1>&6
8231 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8232 echo "configure:8233: checking for threeDClassRec in -lXaw" >&5
8233 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8235 xe_check_libs=" -lXaw "
8236 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8239 /* Override any gcc2 internal prototype to avoid an error. */
8240 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8242 char threeDClassRec();
8248 if { (eval echo configure:8249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8250 eval "ac_cv_lib_$ac_lib_var=yes"
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8255 eval "ac_cv_lib_$ac_lib_var=no"
8260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8261 echo "$ac_t""yes" 1>&6
8263 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8266 echo "$ac_t""no" 1>&6
8267 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8276 if test "$athena_3d" = "no"; then
8277 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8278 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8279 echo "configure:8280: checking for X11/Xaw/ThreeD.h" >&5
8281 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 #include <X11/Xaw/ThreeD.h>
8286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8287 { (eval echo configure:8288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8289 if test -z "$ac_err"; then
8291 eval "ac_cv_header_$ac_safe=yes"
8294 echo "configure: failed program was:" >&5
8295 cat conftest.$ac_ext >&5
8297 eval "ac_cv_header_$ac_safe=no"
8300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8301 echo "$ac_t""yes" 1>&6
8302 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8304 echo "$ac_t""no" 1>&6
8305 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8306 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8307 echo "configure:8308: checking for X11/Xaw/XawInit.h" >&5
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8312 #include <X11/Xaw/XawInit.h>
8314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8315 { (eval echo configure:8316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8317 if test -z "$ac_err"; then
8319 eval "ac_cv_header_$ac_safe=yes"
8322 echo "configure: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8325 eval "ac_cv_header_$ac_safe=no"
8328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8329 echo "$ac_t""yes" 1>&6
8330 athena_h_path=X11/Xaw
8332 echo "$ac_t""no" 1>&6
8333 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8339 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8340 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8341 echo "configure:8342: checking for X11/$athena_variant/XawInit.h" >&5
8343 cat > conftest.$ac_ext <<EOF
8344 #line 8345 "configure"
8345 #include "confdefs.h"
8346 #include <X11/$athena_variant/XawInit.h>
8348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8349 { (eval echo configure:8350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8351 if test -z "$ac_err"; then
8353 eval "ac_cv_header_$ac_safe=yes"
8356 echo "configure: failed program was:" >&5
8357 cat conftest.$ac_ext >&5
8359 eval "ac_cv_header_$ac_safe=no"
8362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8363 echo "$ac_t""yes" 1>&6
8364 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8365 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8366 echo "configure:8367: checking for X11/$athena_variant/ThreeD.h" >&5
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 #include <X11/$athena_variant/ThreeD.h>
8373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8374 { (eval echo configure:8375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8376 if test -z "$ac_err"; then
8378 eval "ac_cv_header_$ac_safe=yes"
8381 echo "configure: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8384 eval "ac_cv_header_$ac_safe=no"
8387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8388 echo "$ac_t""yes" 1>&6
8389 athena_h_path=X11/$athena_variant
8391 echo "$ac_t""no" 1>&6
8395 echo "$ac_t""no" 1>&6
8399 if test -z "$athena_h_path"; then
8400 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8401 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8402 echo "configure:8403: checking for $athena_variant/XawInit.h" >&5
8404 cat > conftest.$ac_ext <<EOF
8405 #line 8406 "configure"
8406 #include "confdefs.h"
8407 #include <$athena_variant/XawInit.h>
8409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8410 { (eval echo configure:8411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8412 if test -z "$ac_err"; then
8414 eval "ac_cv_header_$ac_safe=yes"
8417 echo "configure: failed program was:" >&5
8418 cat conftest.$ac_ext >&5
8420 eval "ac_cv_header_$ac_safe=no"
8423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8424 echo "$ac_t""yes" 1>&6
8425 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8426 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8427 echo "configure:8428: checking for $athena_variant/ThreeD.h" >&5
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 #include <$athena_variant/ThreeD.h>
8434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8435 { (eval echo configure:8436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8437 if test -z "$ac_err"; then
8439 eval "ac_cv_header_$ac_safe=yes"
8442 echo "configure: failed program was:" >&5
8443 cat conftest.$ac_ext >&5
8445 eval "ac_cv_header_$ac_safe=no"
8448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8449 echo "$ac_t""yes" 1>&6
8450 athena_h_path=$athena_variant
8452 echo "$ac_t""no" 1>&6
8456 echo "$ac_t""no" 1>&6
8461 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8462 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8463 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8464 echo "configure:8465: checking for X11/Xaw3d/XawInit.h" >&5
8466 cat > conftest.$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8469 #include <X11/Xaw3d/XawInit.h>
8471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8472 { (eval echo configure:8473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8474 if test -z "$ac_err"; then
8476 eval "ac_cv_header_$ac_safe=yes"
8479 echo "configure: failed program was:" >&5
8480 cat conftest.$ac_ext >&5
8482 eval "ac_cv_header_$ac_safe=no"
8485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8486 echo "$ac_t""yes" 1>&6
8487 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8488 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8489 echo "configure:8490: checking for X11/Xaw3d/ThreeD.h" >&5
8491 cat > conftest.$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8494 #include <X11/Xaw3d/ThreeD.h>
8496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8497 { (eval echo configure:8498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8499 if test -z "$ac_err"; then
8501 eval "ac_cv_header_$ac_safe=yes"
8504 echo "configure: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8507 eval "ac_cv_header_$ac_safe=no"
8510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8511 echo "$ac_t""yes" 1>&6
8513 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8514 athena_h_path=X11/Xaw3d
8517 echo "$ac_t""no" 1>&6
8521 echo "$ac_t""no" 1>&6
8526 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8527 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8528 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8529 echo "configure:8530: checking for Xaw3d/XawInit.h" >&5
8531 cat > conftest.$ac_ext <<EOF
8532 #line 8533 "configure"
8533 #include "confdefs.h"
8534 #include <Xaw3d/XawInit.h>
8536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8537 { (eval echo configure:8538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8539 if test -z "$ac_err"; then
8541 eval "ac_cv_header_$ac_safe=yes"
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8547 eval "ac_cv_header_$ac_safe=no"
8550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8551 echo "$ac_t""yes" 1>&6
8552 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8553 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8554 echo "configure:8555: checking for Xaw3d/ThreeD.h" >&5
8556 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 #include <Xaw3d/ThreeD.h>
8561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8562 { (eval echo configure:8563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8564 if test -z "$ac_err"; then
8566 eval "ac_cv_header_$ac_safe=yes"
8569 echo "configure: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8572 eval "ac_cv_header_$ac_safe=no"
8575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8576 echo "$ac_t""yes" 1>&6
8578 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8582 echo "$ac_t""no" 1>&6
8586 echo "$ac_t""no" 1>&6
8591 if test -z "$athena_h_path"; then
8592 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8593 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8594 echo "configure:8595: checking for X11/Xaw/ThreeD.h" >&5
8596 cat > conftest.$ac_ext <<EOF
8597 #line 8598 "configure"
8598 #include "confdefs.h"
8599 #include <X11/Xaw/ThreeD.h>
8601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8602 { (eval echo configure:8603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8604 if test -z "$ac_err"; then
8606 eval "ac_cv_header_$ac_safe=yes"
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8612 eval "ac_cv_header_$ac_safe=no"
8615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8616 echo "$ac_t""yes" 1>&6
8618 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8619 athena_h_path=X11/Xaw
8622 echo "$ac_t""no" 1>&6
8623 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8629 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8635 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8636 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8637 echo "configure:8638: checking for Xm/Xm.h" >&5
8639 cat > conftest.$ac_ext <<EOF
8640 #line 8641 "configure"
8641 #include "confdefs.h"
8644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8645 { (eval echo configure:8646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8647 if test -z "$ac_err"; then
8649 eval "ac_cv_header_$ac_safe=yes"
8652 echo "configure: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8655 eval "ac_cv_header_$ac_safe=no"
8658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8659 echo "$ac_t""yes" 1>&6
8661 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8662 echo "configure:8663: checking for XmStringFree in -lXm" >&5
8663 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8665 xe_check_libs=" -lXm "
8666 cat > conftest.$ac_ext <<EOF
8667 #line 8668 "configure"
8668 #include "confdefs.h"
8669 /* Override any gcc2 internal prototype to avoid an error. */
8670 /* We use char because int might match the return type of a gcc2
8671 builtin and then its argument prototype would still apply. */
8672 char XmStringFree();
8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8680 eval "ac_cv_lib_$ac_lib_var=yes"
8682 echo "configure: failed program was:" >&5
8683 cat conftest.$ac_ext >&5
8685 eval "ac_cv_lib_$ac_lib_var=no"
8690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8691 echo "$ac_t""yes" 1>&6
8694 echo "$ac_t""no" 1>&6
8700 echo "$ac_t""no" 1>&6
8705 if test "$have_motif" = "yes"; then
8706 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8707 echo "configure:8708: checking for Lesstif" >&5
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8712 #ifdef LESSTIF_VERSION
8717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8718 egrep "yes" >/dev/null 2>&1; then
8727 echo "$ac_t""$have_lesstif" 1>&6
8732 case "$with_menubars" in "" | "yes" | "athena" )
8733 with_menubars="lucid" ;;
8735 case "$with_dialogs" in "" | "yes" | "lucid" )
8736 if test "$have_motif" = "yes"; then with_dialogs="motif"
8737 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8738 else with_dialogs=no
8741 case "$with_scrollbars" in "" | "yes" )
8742 with_scrollbars="lucid" ;;
8744 case "$with_widgets" in "" | "yes" | "lucid")
8745 if test "$have_motif" = "yes"; then with_widgets="motif"
8746 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8747 else with_widgets=no
8751 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8753 case "$all_widgets" in
8755 if test "$have_xaw" != "yes"; then
8756 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8759 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8761 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8763 { test "$extra_verbose" = "yes" && cat << EOF
8764 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8766 cat >> confdefs.h <<EOF
8767 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8771 { test "$extra_verbose" = "yes" && cat << EOF
8772 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8774 cat >> confdefs.h <<EOF
8775 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8779 { test "$extra_verbose" = "yes" && cat << EOF
8780 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8782 cat >> confdefs.h <<EOF
8783 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8787 { test "$extra_verbose" = "yes" && cat << EOF
8788 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8790 cat >> confdefs.h <<EOF
8791 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8795 { test "$extra_verbose" = "yes" && cat << EOF
8796 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8798 cat >> confdefs.h <<EOF
8799 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8803 { test "$extra_verbose" = "yes" && cat << EOF
8804 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8806 cat >> confdefs.h <<EOF
8807 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8811 { test "$extra_verbose" = "yes" && cat << EOF
8812 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8814 cat >> confdefs.h <<EOF
8815 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8819 { test "$extra_verbose" = "yes" && cat << EOF
8820 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8822 cat >> confdefs.h <<EOF
8823 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8827 { test "$extra_verbose" = "yes" && cat << EOF
8828 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8830 cat >> confdefs.h <<EOF
8831 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8835 { test "$extra_verbose" = "yes" && cat << EOF
8836 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8838 cat >> confdefs.h <<EOF
8839 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8844 { test "$extra_verbose" = "yes" && cat << \EOF
8845 Defining LWLIB_USES_ATHENA
8847 cat >> confdefs.h <<\EOF
8848 #define LWLIB_USES_ATHENA 1
8852 { test "$extra_verbose" = "yes" && cat << \EOF
8853 Defining NEED_ATHENA
8855 cat >> confdefs.h <<\EOF
8856 #define NEED_ATHENA 1
8862 if test "$athena_3d" = "yes"; then
8863 { test "$extra_verbose" = "yes" && cat << \EOF
8864 Defining HAVE_ATHENA_3D
8866 cat >> confdefs.h <<\EOF
8867 #define HAVE_ATHENA_3D 1
8875 case "$all_widgets" in *motif* )
8876 { test "$extra_verbose" = "yes" && cat << \EOF
8877 Defining LWLIB_USES_MOTIF
8879 cat >> confdefs.h <<\EOF
8880 #define LWLIB_USES_MOTIF 1
8884 { test "$extra_verbose" = "yes" && cat << \EOF
8887 cat >> confdefs.h <<\EOF
8888 #define NEED_MOTIF 1
8892 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8896 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8897 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8898 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8899 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8900 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8901 case "$with_widgets" in athena* )
8902 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;;
8904 case "$all_widgets" in *lucid* )
8905 { test "$extra_verbose" = "yes" && cat << \EOF
8908 cat >> confdefs.h <<\EOF
8909 #define NEED_LUCID 1
8913 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8918 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8919 Defining LWLIB_SCROLLBARS_ATHENA
8921 cat >> confdefs.h <<\EOF
8922 #define LWLIB_SCROLLBARS_ATHENA 1
8926 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8927 Defining LWLIB_DIALOGS_ATHENA
8929 cat >> confdefs.h <<\EOF
8930 #define LWLIB_DIALOGS_ATHENA 1
8935 if test "$athena_3d" = "yes"; then
8936 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8937 Defining LWLIB_SCROLLBARS_ATHENA3D
8939 cat >> confdefs.h <<\EOF
8940 #define LWLIB_SCROLLBARS_ATHENA3D 1
8944 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8945 Defining LWLIB_DIALOGS_ATHENA3D
8947 cat >> confdefs.h <<\EOF
8948 #define LWLIB_DIALOGS_ATHENA3D 1
8954 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8955 Defining LWLIB_WIDGETS_ATHENA
8957 cat >> confdefs.h <<\EOF
8958 #define LWLIB_WIDGETS_ATHENA 1
8962 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8963 { test "$extra_verbose" = "yes" && cat << \EOF
8964 Defining LWLIB_TABS_LUCID
8966 cat >> confdefs.h <<\EOF
8967 #define LWLIB_TABS_LUCID 1
8972 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8973 Defining HAVE_MENUBARS
8975 cat >> confdefs.h <<\EOF
8976 #define HAVE_MENUBARS 1
8980 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8981 Defining HAVE_SCROLLBARS
8983 cat >> confdefs.h <<\EOF
8984 #define HAVE_SCROLLBARS 1
8988 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8989 Defining HAVE_DIALOGS
8991 cat >> confdefs.h <<\EOF
8992 #define HAVE_DIALOGS 1
8996 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8997 Defining HAVE_TOOLBARS
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_TOOLBARS 1
9004 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9005 Defining HAVE_WIDGETS
9007 cat >> confdefs.h <<\EOF
9008 #define HAVE_WIDGETS 1
9013 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9014 Defining LWLIB_MENUBARS_LUCID
9016 cat >> confdefs.h <<\EOF
9017 #define LWLIB_MENUBARS_LUCID 1
9021 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9022 Defining LWLIB_SCROLLBARS_LUCID
9024 cat >> confdefs.h <<\EOF
9025 #define LWLIB_SCROLLBARS_LUCID 1
9030 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9031 Defining LWLIB_MENUBARS_MOTIF
9033 cat >> confdefs.h <<\EOF
9034 #define LWLIB_MENUBARS_MOTIF 1
9038 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9039 Defining LWLIB_SCROLLBARS_MOTIF
9041 cat >> confdefs.h <<\EOF
9042 #define LWLIB_SCROLLBARS_MOTIF 1
9046 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9047 Defining LWLIB_DIALOGS_MOTIF
9049 cat >> confdefs.h <<\EOF
9050 #define LWLIB_DIALOGS_MOTIF 1
9054 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9055 Defining LWLIB_WIDGETS_MOTIF
9057 cat >> confdefs.h <<\EOF
9058 #define LWLIB_WIDGETS_MOTIF 1
9063 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9064 echo " xemacs will be linked with \"menubar.o\""
9066 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9067 echo " xemacs will be linked with \"scrollbar.o\""
9069 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9070 echo " xemacs will be linked with \"dialog.o\""
9072 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9073 echo " xemacs will be linked with \"toolbar.o\""
9076 if test "$with_x11" = "yes"; then
9077 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9078 echo " xemacs will be linked with \"menubar-x.o\""
9080 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9081 echo " xemacs will be linked with \"scrollbar-x.o\""
9083 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9084 echo " xemacs will be linked with \"dialog-x.o\""
9086 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9087 echo " xemacs will be linked with \"toolbar-x.o\""
9089 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9090 echo " xemacs will be linked with \"gui-x.o\""
9095 test -z "$with_mule" && with_mule=no
9096 test -z "$with_file_coding" && with_file_coding=no
9099 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9100 { test "$extra_verbose" = "yes" && cat << \EOF
9101 Defining FILE_CODING
9103 cat >> confdefs.h <<\EOF
9104 #define FILE_CODING 1
9108 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9109 echo " xemacs will be linked with \"file-coding.o\""
9113 if test "$with_mule" = "yes" ; then
9114 echo "checking for Mule-related features" 1>&6
9115 echo "configure:9116: checking for Mule-related features" >&5
9116 { test "$extra_verbose" = "yes" && cat << \EOF
9119 cat >> confdefs.h <<\EOF
9124 { test "$extra_verbose" = "yes" && cat << \EOF
9125 Defining FILE_CODING
9127 cat >> confdefs.h <<\EOF
9128 #define FILE_CODING 1
9132 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9133 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9135 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9136 { test "$extra_verbose" = "yes" && cat << \EOF
9137 Defining TEXT_CODING
9139 cat >> confdefs.h <<\EOF
9140 #define TEXT_CODING 1
9144 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9145 echo " xemacs will be linked with \"text-coding.o\""
9148 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9149 echo " xemacs will be linked with \"file-coding.o\""
9152 for ac_hdr in libintl.h
9154 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9155 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9156 echo "configure:9157: checking for $ac_hdr" >&5
9158 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9164 { (eval echo configure:9165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9166 if test -z "$ac_err"; then
9168 eval "ac_cv_header_$ac_safe=yes"
9171 echo "configure: failed program was:" >&5
9172 cat conftest.$ac_ext >&5
9174 eval "ac_cv_header_$ac_safe=no"
9177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9178 echo "$ac_t""yes" 1>&6
9179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9180 { test "$extra_verbose" = "yes" && cat << EOF
9183 cat >> confdefs.h <<EOF
9184 #define $ac_tr_hdr 1
9189 echo "$ac_t""no" 1>&6
9194 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9195 echo "configure:9196: checking for strerror in -lintl" >&5
9196 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9198 xe_check_libs=" -lintl "
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9202 /* Override any gcc2 internal prototype to avoid an error. */
9203 /* We use char because int might match the return type of a gcc2
9204 builtin and then its argument prototype would still apply. */
9211 if { (eval echo configure:9212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9213 eval "ac_cv_lib_$ac_lib_var=yes"
9215 echo "configure: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9218 eval "ac_cv_lib_$ac_lib_var=no"
9223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9224 echo "$ac_t""yes" 1>&6
9225 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9226 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9227 { test "$extra_verbose" = "yes" && cat << EOF
9230 cat >> confdefs.h <<EOF
9231 #define $ac_tr_lib 1
9235 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9238 echo "$ac_t""no" 1>&6
9243 if test "$with_utf_2000" = "yes" ; then
9244 { test "$extra_verbose" = "yes" && cat << \EOF
9245 Defining CHAR_IS_UCS4
9247 cat >> confdefs.h <<\EOF
9248 #define CHAR_IS_UCS4 1
9252 { test "$extra_verbose" = "yes" && cat << \EOF
9255 cat >> confdefs.h <<\EOF
9260 { test "$extra_verbose" = "yes" && cat << \EOF
9263 cat >> confdefs.h <<\EOF
9270 echo "checking for Mule input methods" 1>&6
9271 echo "configure:9272: checking for Mule input methods" >&5
9272 case "$with_xim" in "" | "yes" )
9273 echo "checking for XIM" 1>&6
9274 echo "configure:9275: checking for XIM" >&5
9276 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9277 echo "configure:9278: checking for XOpenIM in -lX11" >&5
9278 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9280 xe_check_libs=" -lX11 "
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9284 /* Override any gcc2 internal prototype to avoid an error. */
9285 /* We use char because int might match the return type of a gcc2
9286 builtin and then its argument prototype would still apply. */
9293 if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9295 eval "ac_cv_lib_$ac_lib_var=yes"
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9300 eval "ac_cv_lib_$ac_lib_var=no"
9305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9306 echo "$ac_t""yes" 1>&6
9309 echo "$ac_t""no" 1>&6
9314 if test "$have_motif $have_lesstif" = "yes no"; then
9316 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9317 echo "configure:9318: checking for XmImMbLookupString in -lXm" >&5
9318 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9320 xe_check_libs=" -lXm "
9321 cat > conftest.$ac_ext <<EOF
9322 #line 9323 "configure"
9323 #include "confdefs.h"
9324 /* Override any gcc2 internal prototype to avoid an error. */
9325 /* We use char because int might match the return type of a gcc2
9326 builtin and then its argument prototype would still apply. */
9327 char XmImMbLookupString();
9330 XmImMbLookupString()
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9335 eval "ac_cv_lib_$ac_lib_var=yes"
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9340 eval "ac_cv_lib_$ac_lib_var=no"
9345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9346 echo "$ac_t""yes" 1>&6
9349 echo "$ac_t""no" 1>&6
9355 if test "$with_xim" != "no"; then
9356 { test "$extra_verbose" = "yes" && cat << \EOF
9359 cat >> confdefs.h <<\EOF
9364 if test "$with_xim" = "xlib"; then
9365 { test "$extra_verbose" = "yes" && cat << \EOF
9368 cat >> confdefs.h <<\EOF
9373 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9374 echo " xemacs will be linked with \"input-method-xlib.o\""
9377 if test "$with_xim" = "motif"; then
9378 { test "$extra_verbose" = "yes" && cat << \EOF
9381 cat >> confdefs.h <<\EOF
9387 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9388 echo " xemacs will be linked with \"input-method-motif.o\""
9391 if test "$with_xim" = "motif"; then
9396 if test "$with_xfs" = "yes" ; then
9397 echo "checking for XFontSet" 1>&6
9398 echo "configure:9399: checking for XFontSet" >&5
9400 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9401 echo "configure:9402: checking for XmbDrawString in -lX11" >&5
9402 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9404 xe_check_libs=" -lX11 "
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 /* Override any gcc2 internal prototype to avoid an error. */
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411 char XmbDrawString();
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9419 eval "ac_cv_lib_$ac_lib_var=yes"
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9424 eval "ac_cv_lib_$ac_lib_var=no"
9429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9430 echo "$ac_t""yes" 1>&6
9433 echo "$ac_t""no" 1>&6
9438 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9439 { test "$extra_verbose" = "yes" && cat << \EOF
9440 Defining USE_XFONTSET
9442 cat >> confdefs.h <<\EOF
9443 #define USE_XFONTSET 1
9447 if test "$with_xim" = "no" ; then
9448 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
9449 echo " xemacs will be linked with \"input-method-xfs.o\""
9454 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9455 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9456 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9457 echo "configure:9458: checking for wnn/jllib.h" >&5
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462 #include <wnn/jllib.h>
9464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9465 { (eval echo configure:9466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9467 if test -z "$ac_err"; then
9469 eval "ac_cv_header_$ac_safe=yes"
9472 echo "configure: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9475 eval "ac_cv_header_$ac_safe=no"
9478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9479 echo "$ac_t""yes" 1>&6
9482 echo "$ac_t""no" 1>&6
9486 if test "$with_wnn" != "no"; then
9487 for ac_func in crypt
9489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9490 echo "configure:9491: checking for $ac_func" >&5
9492 cat > conftest.$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 /* System header to define __stub macros and hopefully few prototypes,
9496 which can conflict with char $ac_func(); below. */
9498 /* Override any gcc2 internal prototype to avoid an error. */
9499 /* We use char because int might match the return type of a gcc2
9500 builtin and then its argument prototype would still apply. */
9505 /* The GNU C library defines this for functions which it implements
9506 to always fail with ENOSYS. Some functions are actually named
9507 something starting with __ and the normal name is an alias. */
9508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9518 eval "ac_cv_func_$ac_func=yes"
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9523 eval "ac_cv_func_$ac_func=no"
9527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9528 echo "$ac_t""yes" 1>&6
9529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9530 { test "$extra_verbose" = "yes" && cat << EOF
9531 Defining $ac_tr_func
9533 cat >> confdefs.h <<EOF
9534 #define $ac_tr_func 1
9539 echo "$ac_t""no" 1>&6
9543 test "$ac_cv_func_crypt" != "yes" && {
9544 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9545 echo "configure:9546: checking for crypt in -lcrypt" >&5
9546 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9548 xe_check_libs=" -lcrypt "
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 /* Override any gcc2 internal prototype to avoid an error. */
9553 /* We use char because int might match the return type of a gcc2
9554 builtin and then its argument prototype would still apply. */
9561 if { (eval echo configure:9562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9563 eval "ac_cv_lib_$ac_lib_var=yes"
9565 echo "configure: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9568 eval "ac_cv_lib_$ac_lib_var=no"
9573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9574 echo "$ac_t""yes" 1>&6
9575 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9576 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9577 { test "$extra_verbose" = "yes" && cat << EOF
9580 cat >> confdefs.h <<EOF
9581 #define $ac_tr_lib 1
9585 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9588 echo "$ac_t""no" 1>&6
9593 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9595 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9596 echo "configure:9597: checking for jl_dic_list_e in -lwnn" >&5
9597 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9599 xe_check_libs=" -lwnn "
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 /* Override any gcc2 internal prototype to avoid an error. */
9604 /* We use char because int might match the return type of a gcc2
9605 builtin and then its argument prototype would still apply. */
9606 char jl_dic_list_e();
9612 if { (eval echo configure:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9614 eval "ac_cv_lib_$ac_lib_var=yes"
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9619 eval "ac_cv_lib_$ac_lib_var=no"
9624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9625 echo "$ac_t""yes" 1>&6
9628 echo "$ac_t""no" 1>&6
9629 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9630 echo "configure:9631: checking for jl_dic_list_e in -lwnn4" >&5
9631 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9633 xe_check_libs=" -lwnn4 "
9634 cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9637 /* Override any gcc2 internal prototype to avoid an error. */
9638 /* We use char because int might match the return type of a gcc2
9639 builtin and then its argument prototype would still apply. */
9640 char jl_dic_list_e();
9646 if { (eval echo configure:9647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9648 eval "ac_cv_lib_$ac_lib_var=yes"
9650 echo "configure: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9653 eval "ac_cv_lib_$ac_lib_var=no"
9658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9659 echo "$ac_t""yes" 1>&6
9662 echo "$ac_t""no" 1>&6
9663 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9664 echo "configure:9665: checking for jl_dic_list_e in -lwnn6" >&5
9665 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9667 xe_check_libs=" -lwnn6 "
9668 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9671 /* Override any gcc2 internal prototype to avoid an error. */
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9674 char jl_dic_list_e();
9680 if { (eval echo configure:9681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9682 eval "ac_cv_lib_$ac_lib_var=yes"
9684 echo "configure: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9687 eval "ac_cv_lib_$ac_lib_var=no"
9692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9693 echo "$ac_t""yes" 1>&6
9696 echo "$ac_t""no" 1>&6
9697 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9698 echo "configure:9699: checking for dic_list_e in -lwnn6_fromsrc" >&5
9699 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9701 xe_check_libs=" -lwnn6_fromsrc "
9702 cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure"
9704 #include "confdefs.h"
9705 /* Override any gcc2 internal prototype to avoid an error. */
9706 /* We use char because int might match the return type of a gcc2
9707 builtin and then its argument prototype would still apply. */
9714 if { (eval echo configure:9715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9716 eval "ac_cv_lib_$ac_lib_var=yes"
9718 echo "configure: failed program was:" >&5
9719 cat conftest.$ac_ext >&5
9721 eval "ac_cv_lib_$ac_lib_var=no"
9726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9727 echo "$ac_t""yes" 1>&6
9730 echo "$ac_t""no" 1>&6
9745 test -z "$with_wnn" && with_wnn=yes
9746 if test "$with_wnn" = "yes"; then
9747 { test "$extra_verbose" = "yes" && cat << \EOF
9750 cat >> confdefs.h <<\EOF
9755 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9756 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9757 echo " xemacs will be linked with \"mule-wnnfns.o\""
9759 if test "$with_wnn6" != "no"; then
9761 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9762 echo "configure:9763: checking for jl_fi_dic_list in -l$libwnn" >&5
9763 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9765 xe_check_libs=" -l$libwnn "
9766 cat > conftest.$ac_ext <<EOF
9767 #line 9768 "configure"
9768 #include "confdefs.h"
9769 /* Override any gcc2 internal prototype to avoid an error. */
9770 /* We use char because int might match the return type of a gcc2
9771 builtin and then its argument prototype would still apply. */
9772 char jl_fi_dic_list();
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9780 eval "ac_cv_lib_$ac_lib_var=yes"
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9785 eval "ac_cv_lib_$ac_lib_var=no"
9790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9791 echo "$ac_t""yes" 1>&6
9794 echo "$ac_t""no" 1>&6
9798 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9801 cat >> confdefs.h <<\EOF
9809 canna_includes_found=no
9810 if test "$with_canna" != "no"; then
9811 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9812 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9813 echo "configure:9814: checking for canna/jrkanji.h" >&5
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 #include <canna/jrkanji.h>
9820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9821 { (eval echo configure:9822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9823 if test -z "$ac_err"; then
9825 eval "ac_cv_header_$ac_safe=yes"
9828 echo "configure: failed program was:" >&5
9829 cat conftest.$ac_ext >&5
9831 eval "ac_cv_header_$ac_safe=no"
9834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9835 echo "$ac_t""yes" 1>&6
9836 canna_includes_found=yes
9838 echo "$ac_t""no" 1>&6
9842 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9843 -d "/usr/local/canna/include"; then
9844 save_c_switch_site="$c_switch_site"
9845 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9846 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9847 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9848 echo "configure:9849: checking for canna/jrkanji.h" >&5
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 #include <canna/jrkanji.h>
9855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9856 { (eval echo configure:9857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9858 if test -z "$ac_err"; then
9860 eval "ac_cv_header_$ac_safe=yes"
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9866 eval "ac_cv_header_$ac_safe=no"
9869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9870 echo "$ac_t""yes" 1>&6
9871 canna_includes_found=yes
9873 echo "$ac_t""no" 1>&6
9876 if test "$canna_includes_found" != "yes"; then
9877 c_switch_site="$save_c_switch_site"
9882 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9883 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9884 echo "configure:9885: checking for canna/RK.h" >&5
9886 cat > conftest.$ac_ext <<EOF
9887 #line 9888 "configure"
9888 #include "confdefs.h"
9889 #include <canna/RK.h>
9891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9892 { (eval echo configure:9893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9894 if test -z "$ac_err"; then
9896 eval "ac_cv_header_$ac_safe=yes"
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9902 eval "ac_cv_header_$ac_safe=no"
9905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9906 echo "$ac_t""yes" 1>&6
9909 echo "$ac_t""no" 1>&6
9913 test -z "$with_canna" && {
9914 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9915 echo "configure:9916: checking for RkBgnBun in -lRKC" >&5
9916 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9918 xe_check_libs=" -lRKC "
9919 cat > conftest.$ac_ext <<EOF
9920 #line 9921 "configure"
9921 #include "confdefs.h"
9922 /* Override any gcc2 internal prototype to avoid an error. */
9923 /* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9931 if { (eval echo configure:9932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9933 eval "ac_cv_lib_$ac_lib_var=yes"
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9938 eval "ac_cv_lib_$ac_lib_var=no"
9943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9944 echo "$ac_t""yes" 1>&6
9947 echo "$ac_t""no" 1>&6
9952 test -z "$with_canna" && {
9953 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9954 echo "configure:9955: checking for jrKanjiControl in -lcanna" >&5
9955 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9957 xe_check_libs=" -lcanna "
9958 cat > conftest.$ac_ext <<EOF
9959 #line 9960 "configure"
9960 #include "confdefs.h"
9961 /* Override any gcc2 internal prototype to avoid an error. */
9962 /* We use char because int might match the return type of a gcc2
9963 builtin and then its argument prototype would still apply. */
9964 char jrKanjiControl();
9970 if { (eval echo configure:9971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9972 eval "ac_cv_lib_$ac_lib_var=yes"
9974 echo "configure: failed program was:" >&5
9975 cat conftest.$ac_ext >&5
9977 eval "ac_cv_lib_$ac_lib_var=no"
9982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9983 echo "$ac_t""yes" 1>&6
9986 echo "$ac_t""no" 1>&6
9991 test -z "$with_canna" && with_canna=yes
9992 if test "$with_canna" = "yes"; then
9993 { test "$extra_verbose" = "yes" && cat << \EOF
9996 cat >> confdefs.h <<\EOF
9997 #define HAVE_CANNA 1
10001 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10002 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10003 echo " xemacs will be linked with \"mule-canna.o\""
10007 else for feature in xim canna wnn; do
10008 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10009 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10011 eval "with_${feature}=no"
10015 if test "$need_motif" = "yes" ; then
10016 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10018 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10019 echo "configure:10020: checking for layout_object_getvalue in -li18n" >&5
10020 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10022 xe_check_libs=" -li18n "
10023 cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10026 /* Override any gcc2 internal prototype to avoid an error. */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10029 char layout_object_getvalue();
10032 layout_object_getvalue()
10035 if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037 eval "ac_cv_lib_$ac_lib_var=yes"
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10042 eval "ac_cv_lib_$ac_lib_var=no"
10047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10048 echo "$ac_t""yes" 1>&6
10049 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10051 echo "$ac_t""no" 1>&6
10056 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10057 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10058 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10060 runpath="" runpath_dirs=""
10061 if test -n "$LD_RUN_PATH"; then
10062 runpath="$LD_RUN_PATH"
10063 elif test "$GCC" = "yes"; then
10064 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10065 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10066 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10067 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10068 case "$arg" in P,* | -L* | -R* )
10069 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10071 xe_runpath_dir="$dir"
10072 test "$xe_runpath_dir" != "/lib" -a \
10073 "$xe_runpath_dir" != "/usr/lib" -a \
10074 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10075 eval "$xe_add_unique_runpath_dir"
10080 ld_switch_run="$ld_switch_run_save"
10083 for arg in $ld_switch_site $ld_switch_x_site; do
10084 case "$arg" in -L*) {
10085 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10086 test "$xe_runpath_dir" != "/lib" -a \
10087 "$xe_runpath_dir" != "/usr/lib" -a \
10088 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10089 eval "$xe_add_unique_runpath_dir"
10092 if test "$opsys $need_motif" = "sol2 yes"; then
10093 xe_runpath_dir="/opt/SUNWdt/lib";
10094 eval "$xe_add_unique_runpath_dir";
10097 if test -n "$runpath"; then
10098 ld_switch_run="${dash_r}${runpath}"
10100 if test "$GCC" = "yes"; then
10101 set x $ld_switch_run; shift; ld_switch_run=""
10102 while test -n "$1"; do
10104 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10105 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10107 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10112 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10118 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
10120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10121 echo "configure:10122: checking for $ac_func" >&5
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 /* System header to define __stub macros and hopefully few prototypes,
10127 which can conflict with char $ac_func(); below. */
10128 #include <assert.h>
10129 /* Override any gcc2 internal prototype to avoid an error. */
10130 /* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10136 /* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10147 if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10149 eval "ac_cv_func_$ac_func=yes"
10151 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10154 eval "ac_cv_func_$ac_func=no"
10158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10161 { test "$extra_verbose" = "yes" && cat << EOF
10162 Defining $ac_tr_func
10164 cat >> confdefs.h <<EOF
10165 #define $ac_tr_func 1
10170 echo "$ac_t""no" 1>&6
10175 for ac_func in getpt _getpt grantpt unlockpt ptsname killpg tcgetpgrp
10177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10178 echo "configure:10179: checking for $ac_func" >&5
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 /* System header to define __stub macros and hopefully few prototypes,
10184 which can conflict with char $ac_func(); below. */
10185 #include <assert.h>
10186 /* Override any gcc2 internal prototype to avoid an error. */
10187 /* We use char because int might match the return type of a gcc2
10188 builtin and then its argument prototype would still apply. */
10193 /* The GNU C library defines this for functions which it implements
10194 to always fail with ENOSYS. Some functions are actually named
10195 something starting with __ and the normal name is an alias. */
10196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10206 eval "ac_cv_func_$ac_func=yes"
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10211 eval "ac_cv_func_$ac_func=no"
10215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10216 echo "$ac_t""yes" 1>&6
10217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10218 { test "$extra_verbose" = "yes" && cat << EOF
10219 Defining $ac_tr_func
10221 cat >> confdefs.h <<EOF
10222 #define $ac_tr_func 1
10227 echo "$ac_t""no" 1>&6
10232 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10233 echo "configure:10234: checking for openpty" >&5
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 /* System header to define __stub macros and hopefully few prototypes,
10239 which can conflict with char openpty(); below. */
10240 #include <assert.h>
10241 /* Override any gcc2 internal prototype to avoid an error. */
10242 /* We use char because int might match the return type of a gcc2
10243 builtin and then its argument prototype would still apply. */
10248 /* The GNU C library defines this for functions which it implements
10249 to always fail with ENOSYS. Some functions are actually named
10250 something starting with __ and the normal name is an alias. */
10251 #if defined (__stub_openpty) || defined (__stub___openpty)
10259 if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261 eval "ac_cv_func_openpty=yes"
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10266 eval "ac_cv_func_openpty=no"
10270 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10271 echo "$ac_t""yes" 1>&6
10274 echo "$ac_t""no" 1>&6
10277 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10278 echo "configure:10279: checking for openpty in -lutil" >&5
10279 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10281 xe_check_libs=" -lutil "
10282 cat > conftest.$ac_ext <<EOF
10283 #line 10284 "configure"
10284 #include "confdefs.h"
10285 /* Override any gcc2 internal prototype to avoid an error. */
10286 /* We use char because int might match the return type of a gcc2
10287 builtin and then its argument prototype would still apply. */
10294 if { (eval echo configure:10295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10296 eval "ac_cv_lib_$ac_lib_var=yes"
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10301 eval "ac_cv_lib_$ac_lib_var=no"
10306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10307 echo "$ac_t""yes" 1>&6
10308 have_openpty=yes need_libutil=yes
10310 echo "$ac_t""no" 1>&6
10316 if test "$have_openpty" = "yes"; then
10317 { test "$extra_verbose" = "yes" && cat << \EOF
10318 Defining HAVE_OPENPTY
10320 cat >> confdefs.h <<\EOF
10321 #define HAVE_OPENPTY 1
10325 for ac_hdr in pty.h libutil.h
10327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10329 echo "configure:10330: checking for $ac_hdr" >&5
10331 cat > conftest.$ac_ext <<EOF
10332 #line 10333 "configure"
10333 #include "confdefs.h"
10336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10337 { (eval echo configure:10338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10339 if test -z "$ac_err"; then
10341 eval "ac_cv_header_$ac_safe=yes"
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10347 eval "ac_cv_header_$ac_safe=no"
10350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10351 echo "$ac_t""yes" 1>&6
10352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10353 { test "$extra_verbose" = "yes" && cat << EOF
10354 Defining $ac_tr_hdr
10356 cat >> confdefs.h <<EOF
10357 #define $ac_tr_hdr 1
10362 echo "$ac_t""no" 1>&6
10366 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
10369 for ac_hdr in sys/stropts.h
10371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10373 echo "configure:10374: checking for $ac_hdr" >&5
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10381 { (eval echo configure:10382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10383 if test -z "$ac_err"; then
10385 eval "ac_cv_header_$ac_safe=yes"
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10391 eval "ac_cv_header_$ac_safe=no"
10394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10395 echo "$ac_t""yes" 1>&6
10396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10397 { test "$extra_verbose" = "yes" && cat << EOF
10398 Defining $ac_tr_hdr
10400 cat >> confdefs.h <<EOF
10401 #define $ac_tr_hdr 1
10406 echo "$ac_t""no" 1>&6
10410 if test "$ac_cv_header_sys_stropts_h" = "yes"; then
10411 for ac_func in isastream
10413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10414 echo "configure:10415: checking for $ac_func" >&5
10416 cat > conftest.$ac_ext <<EOF
10417 #line 10418 "configure"
10418 #include "confdefs.h"
10419 /* System header to define __stub macros and hopefully few prototypes,
10420 which can conflict with char $ac_func(); below. */
10421 #include <assert.h>
10422 /* Override any gcc2 internal prototype to avoid an error. */
10423 /* We use char because int might match the return type of a gcc2
10424 builtin and then its argument prototype would still apply. */
10429 /* The GNU C library defines this for functions which it implements
10430 to always fail with ENOSYS. Some functions are actually named
10431 something starting with __ and the normal name is an alias. */
10432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10440 if { (eval echo configure:10441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10442 eval "ac_cv_func_$ac_func=yes"
10444 echo "configure: failed program was:" >&5
10445 cat conftest.$ac_ext >&5
10447 eval "ac_cv_func_$ac_func=no"
10451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10452 echo "$ac_t""yes" 1>&6
10453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10454 { test "$extra_verbose" = "yes" && cat << EOF
10455 Defining $ac_tr_func
10457 cat >> confdefs.h <<EOF
10458 #define $ac_tr_func 1
10463 echo "$ac_t""no" 1>&6
10467 for ac_hdr in sys/strtio.h
10469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10471 echo "configure:10472: checking for $ac_hdr" >&5
10473 cat > conftest.$ac_ext <<EOF
10474 #line 10475 "configure"
10475 #include "confdefs.h"
10478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10479 { (eval echo configure:10480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10481 if test -z "$ac_err"; then
10483 eval "ac_cv_header_$ac_safe=yes"
10486 echo "configure: failed program was:" >&5
10487 cat conftest.$ac_ext >&5
10489 eval "ac_cv_header_$ac_safe=no"
10492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10493 echo "$ac_t""yes" 1>&6
10494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10495 { test "$extra_verbose" = "yes" && cat << EOF
10496 Defining $ac_tr_hdr
10498 cat >> confdefs.h <<EOF
10499 #define $ac_tr_hdr 1
10504 echo "$ac_t""no" 1>&6
10509 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
10510 echo " xemacs will be linked with \"realpath.o\""
10513 for ac_func in getloadavg
10515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10516 echo "configure:10517: checking for $ac_func" >&5
10518 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10521 /* System header to define __stub macros and hopefully few prototypes,
10522 which can conflict with char $ac_func(); below. */
10523 #include <assert.h>
10524 /* Override any gcc2 internal prototype to avoid an error. */
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10531 /* The GNU C library defines this for functions which it implements
10532 to always fail with ENOSYS. Some functions are actually named
10533 something starting with __ and the normal name is an alias. */
10534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10542 if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10544 eval "ac_cv_func_$ac_func=yes"
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10549 eval "ac_cv_func_$ac_func=no"
10553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10554 echo "$ac_t""yes" 1>&6
10555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10556 { test "$extra_verbose" = "yes" && cat << EOF
10557 Defining $ac_tr_func
10559 cat >> confdefs.h <<EOF
10560 #define $ac_tr_func 1
10565 echo "$ac_t""no" 1>&6
10570 if test "$ac_cv_func_getloadavg" = "yes"; then
10571 for ac_hdr in sys/loadavg.h
10573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10575 echo "configure:10576: checking for $ac_hdr" >&5
10577 cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10583 { (eval echo configure:10584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10585 if test -z "$ac_err"; then
10587 eval "ac_cv_header_$ac_safe=yes"
10590 echo "configure: failed program was:" >&5
10591 cat conftest.$ac_ext >&5
10593 eval "ac_cv_header_$ac_safe=no"
10596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10597 echo "$ac_t""yes" 1>&6
10598 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10599 { test "$extra_verbose" = "yes" && cat << EOF
10600 Defining $ac_tr_hdr
10602 cat >> confdefs.h <<EOF
10603 #define $ac_tr_hdr 1
10608 echo "$ac_t""no" 1>&6
10613 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10614 echo " xemacs will be linked with \"getloadavg.o\""
10618 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10619 echo "configure:10620: checking for kstat_open in -lkstat" >&5
10620 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10622 xe_check_libs=" -lkstat "
10623 cat > conftest.$ac_ext <<EOF
10624 #line 10625 "configure"
10625 #include "confdefs.h"
10626 /* Override any gcc2 internal prototype to avoid an error. */
10627 /* We use char because int might match the return type of a gcc2
10628 builtin and then its argument prototype would still apply. */
10635 if { (eval echo configure:10636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10637 eval "ac_cv_lib_$ac_lib_var=yes"
10639 echo "configure: failed program was:" >&5
10640 cat conftest.$ac_ext >&5
10642 eval "ac_cv_lib_$ac_lib_var=no"
10647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10648 echo "$ac_t""yes" 1>&6
10649 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10650 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10651 { test "$extra_verbose" = "yes" && cat << EOF
10652 Defining $ac_tr_lib
10654 cat >> confdefs.h <<EOF
10655 #define $ac_tr_lib 1
10659 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10662 echo "$ac_t""no" 1>&6
10666 for ac_hdr in kstat.h
10668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10670 echo "configure:10671: checking for $ac_hdr" >&5
10672 cat > conftest.$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10678 { (eval echo configure:10679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10680 if test -z "$ac_err"; then
10682 eval "ac_cv_header_$ac_safe=yes"
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10688 eval "ac_cv_header_$ac_safe=no"
10691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10692 echo "$ac_t""yes" 1>&6
10693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10694 { test "$extra_verbose" = "yes" && cat << EOF
10695 Defining $ac_tr_hdr
10697 cat >> confdefs.h <<EOF
10698 #define $ac_tr_hdr 1
10703 echo "$ac_t""no" 1>&6
10709 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10710 echo "configure:10711: checking for kvm_read in -lkvm" >&5
10711 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10713 xe_check_libs=" -lkvm "
10714 cat > conftest.$ac_ext <<EOF
10715 #line 10716 "configure"
10716 #include "confdefs.h"
10717 /* Override any gcc2 internal prototype to avoid an error. */
10718 /* We use char because int might match the return type of a gcc2
10719 builtin and then its argument prototype would still apply. */
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728 eval "ac_cv_lib_$ac_lib_var=yes"
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 eval "ac_cv_lib_$ac_lib_var=no"
10738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10739 echo "$ac_t""yes" 1>&6
10740 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10742 { test "$extra_verbose" = "yes" && cat << EOF
10743 Defining $ac_tr_lib
10745 cat >> confdefs.h <<EOF
10746 #define $ac_tr_lib 1
10750 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10753 echo "$ac_t""no" 1>&6
10759 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10760 echo "configure:10761: checking whether netdb declares h_errno" >&5
10761 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10769 if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10771 echo "$ac_t""yes" 1>&6
10772 { test "$extra_verbose" = "yes" && cat << \EOF
10773 Defining HAVE_H_ERRNO
10775 cat >> confdefs.h <<\EOF
10776 #define HAVE_H_ERRNO 1
10781 echo "configure: failed program was:" >&5
10782 cat conftest.$ac_ext >&5
10784 echo "$ac_t""no" 1>&6
10788 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10789 echo "configure:10790: checking for sigsetjmp" >&5
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10793 #include <setjmp.h>
10795 sigjmp_buf bar; sigsetjmp (bar, 0);
10798 if { (eval echo configure:10799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10800 echo "$ac_t""yes" 1>&6
10801 { test "$extra_verbose" = "yes" && cat << \EOF
10802 Defining HAVE_SIGSETJMP
10804 cat >> confdefs.h <<\EOF
10805 #define HAVE_SIGSETJMP 1
10810 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10813 echo "$ac_t""no" 1>&6
10817 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10818 echo "configure:10819: checking whether localtime caches TZ" >&5
10820 if test "$ac_cv_func_tzset" = "yes"; then
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10826 # include <stdlib.h>
10828 extern char **environ;
10832 for (to = from = environ; (*to = *from); from++)
10833 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10836 char TZ_GMT0[] = "TZ=GMT0";
10837 char TZ_PST8[] = "TZ=PST8";
10840 time_t now = time ((time_t *) 0);
10841 int hour_GMT0, hour_unset;
10842 if (putenv (TZ_GMT0) != 0)
10844 hour_GMT0 = localtime (&now)->tm_hour;
10846 hour_unset = localtime (&now)->tm_hour;
10847 if (putenv (TZ_PST8) != 0)
10849 if (localtime (&now)->tm_hour == hour_GMT0)
10852 if (localtime (&now)->tm_hour != hour_unset)
10857 if { (eval echo configure:10858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10859 emacs_cv_localtime_cache=no
10862 echo "configure: failed program was:" >&5
10863 cat conftest.$ac_ext >&5
10865 emacs_cv_localtime_cache=yes
10869 # If we lack tzset, report that localtime does not cache TZ,
10870 # since we can't invalidate the cache if we don't have tzset.
10871 emacs_cv_localtime_cache=no
10873 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10874 if test $emacs_cv_localtime_cache = yes; then
10875 { test "$extra_verbose" = "yes" && cat << \EOF
10876 Defining LOCALTIME_CACHE
10878 cat >> confdefs.h <<\EOF
10879 #define LOCALTIME_CACHE 1
10885 if test "$HAVE_TIMEVAL" = "yes"; then
10886 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10887 echo "configure:10888: checking whether gettimeofday accepts one or two arguments" >&5
10888 cat > conftest.$ac_ext <<EOF
10889 #line 10890 "configure"
10890 #include "confdefs.h"
10892 #ifdef TIME_WITH_SYS_TIME
10893 #include <sys/time.h>
10896 #ifdef HAVE_SYS_TIME_H
10897 #include <sys/time.h>
10905 struct timeval time;
10906 gettimeofday (&time, 0);
10910 if { (eval echo configure:10911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10912 echo "$ac_t""two" 1>&6
10914 echo "configure: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10917 echo "$ac_t""one" 1>&6
10918 { test "$extra_verbose" = "yes" && cat << \EOF
10919 Defining GETTIMEOFDAY_ONE_ARGUMENT
10921 cat >> confdefs.h <<\EOF
10922 #define GETTIMEOFDAY_ONE_ARGUMENT 1
10931 echo $ac_n "checking for inline""... $ac_c" 1>&6
10932 echo "configure:10933: checking for inline" >&5
10935 for ac_kw in inline __inline__ __inline; do
10936 cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure"
10938 #include "confdefs.h"
10944 if { (eval echo configure:10945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10946 ac_cv_c_inline=$ac_kw; break
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10955 echo "$ac_t""$ac_cv_c_inline" 1>&6
10956 case "$ac_cv_c_inline" in
10958 no) { test "$extra_verbose" = "yes" && cat << \EOF
10961 cat >> confdefs.h <<\EOF
10966 *) { test "$extra_verbose" = "yes" && cat << EOF
10967 Defining inline = $ac_cv_c_inline
10969 cat >> confdefs.h <<EOF
10970 #define inline $ac_cv_c_inline
10976 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
10977 echo " xemacs will be linked with \"inline.o\""
10981 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10982 # for constant arguments. Useless!
10983 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
10984 echo "configure:10985: checking for working alloca.h" >&5
10986 cat > conftest.$ac_ext <<EOF
10987 #line 10988 "configure"
10988 #include "confdefs.h"
10989 #include <alloca.h>
10991 char *p = alloca(2 * sizeof(int));
10994 if { (eval echo configure:10995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10996 ac_cv_header_alloca_h=yes
10998 echo "configure: failed program was:" >&5
10999 cat conftest.$ac_ext >&5
11001 ac_cv_header_alloca_h=no
11005 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11006 if test $ac_cv_header_alloca_h = yes; then
11007 { test "$extra_verbose" = "yes" && cat << \EOF
11008 Defining HAVE_ALLOCA_H
11010 cat >> confdefs.h <<\EOF
11011 #define HAVE_ALLOCA_H 1
11017 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11018 echo "configure:11019: checking for alloca" >&5
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11025 # define alloca __builtin_alloca
11028 # include <malloc.h>
11029 # define alloca _alloca
11032 # include <alloca.h>
11037 # ifndef alloca /* predefined by HP cc +Olibcalls */
11046 char *p = (char *) alloca(1);
11049 if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11051 ac_cv_func_alloca_works=yes
11053 echo "configure: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11056 ac_cv_func_alloca_works=no
11060 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11061 if test $ac_cv_func_alloca_works = yes; then
11062 { test "$extra_verbose" = "yes" && cat << \EOF
11063 Defining HAVE_ALLOCA
11065 cat >> confdefs.h <<\EOF
11066 #define HAVE_ALLOCA 1
11072 if test $ac_cv_func_alloca_works = no; then
11073 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11074 # that cause trouble. Some versions do not even contain alloca or
11075 # contain a buggy version. If you still want to use their alloca,
11076 # use ar to extract alloca.o from them instead of compiling alloca.c.
11077 ALLOCA=alloca.${ac_objext}
11078 { test "$extra_verbose" = "yes" && cat << \EOF
11081 cat >> confdefs.h <<\EOF
11087 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11088 echo "configure:11089: checking whether alloca needs Cray hooks" >&5
11090 cat > conftest.$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 #if defined(CRAY) && ! defined(CRAY2)
11100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11101 egrep "webecray" >/dev/null 2>&1; then
11111 echo "$ac_t""$ac_cv_os_cray" 1>&6
11112 if test $ac_cv_os_cray = yes; then
11113 for ac_func in _getb67 GETB67 getb67; do
11114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11115 echo "configure:11116: checking for $ac_func" >&5
11117 cat > conftest.$ac_ext <<EOF
11118 #line 11119 "configure"
11119 #include "confdefs.h"
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char $ac_func(); below. */
11122 #include <assert.h>
11123 /* Override any gcc2 internal prototype to avoid an error. */
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11130 /* The GNU C library defines this for functions which it implements
11131 to always fail with ENOSYS. Some functions are actually named
11132 something starting with __ and the normal name is an alias. */
11133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143 eval "ac_cv_func_$ac_func=yes"
11145 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11148 eval "ac_cv_func_$ac_func=no"
11152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11153 echo "$ac_t""yes" 1>&6
11154 { test "$extra_verbose" = "yes" && cat << EOF
11155 Defining CRAY_STACKSEG_END = $ac_func
11157 cat >> confdefs.h <<EOF
11158 #define CRAY_STACKSEG_END $ac_func
11164 echo "$ac_t""no" 1>&6
11170 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11171 echo "configure:11172: checking stack direction for C alloca" >&5
11173 cat > conftest.$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11176 find_stack_direction ()
11178 static char *addr = 0;
11183 return find_stack_direction ();
11186 return (&dummy > addr) ? 1 : -1;
11190 exit (find_stack_direction() < 0);
11193 if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11195 ac_cv_c_stack_direction=1
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11201 ac_cv_c_stack_direction=-1
11205 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11206 { test "$extra_verbose" = "yes" && cat << EOF
11207 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11209 cat >> confdefs.h <<EOF
11210 #define STACK_DIRECTION $ac_cv_c_stack_direction
11216 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11217 echo " xemacs will be linked with \"$ALLOCA\""
11220 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11221 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11222 echo "configure:11223: checking for vfork.h" >&5
11224 cat > conftest.$ac_ext <<EOF
11225 #line 11226 "configure"
11226 #include "confdefs.h"
11229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11230 { (eval echo configure:11231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11232 if test -z "$ac_err"; then
11234 eval "ac_cv_header_$ac_safe=yes"
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11240 eval "ac_cv_header_$ac_safe=no"
11243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11244 echo "$ac_t""yes" 1>&6
11245 { test "$extra_verbose" = "yes" && cat << \EOF
11246 Defining HAVE_VFORK_H
11248 cat >> confdefs.h <<\EOF
11249 #define HAVE_VFORK_H 1
11254 echo "$ac_t""no" 1>&6
11257 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11258 echo "configure:11259: checking for working vfork" >&5
11260 cat > conftest.$ac_ext <<EOF
11261 #line 11262 "configure"
11262 #include "confdefs.h"
11263 /* Thanks to Paul Eggert for this test. */
11265 #include <sys/types.h>
11266 #include <sys/stat.h>
11267 #ifdef HAVE_UNISTD_H
11268 #include <unistd.h>
11270 #ifdef HAVE_VFORK_H
11273 /* On some sparc systems, changes by the child to local and incoming
11274 argument registers are propagated back to the parent.
11275 The compiler is told about this with #include <vfork.h>,
11276 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11277 Test for this by using a static variable whose address
11278 is put into a register that is clobbered by the vfork. */
11281 sparc_address_test (int arg)
11283 sparc_address_test (arg) int arg;
11286 static pid_t child;
11301 pid_t parent = getpid ();
11304 sparc_address_test ();
11309 /* Here is another test for sparc vfork register problems.
11310 This test uses lots of local variables, at least
11311 as many local variables as main has allocated so far
11312 including compiler temporaries. 4 locals are enough for
11313 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11314 A buggy compiler should reuse the register of parent
11315 for one of the local variables, since it will think that
11316 parent can't possibly be used any more in this routine.
11317 Assigning to the local variable will thus munge parent
11318 in the parent process. */
11320 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11321 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11322 /* Convince the compiler that p..p7 are live; otherwise, it might
11323 use the same hardware register for all 8 local variables. */
11324 if (p != p1 || p != p2 || p != p3 || p != p4
11325 || p != p5 || p != p6 || p != p7)
11328 /* On some systems (e.g. IRIX 3.3),
11329 vfork doesn't separate parent from child file descriptors.
11330 If the child closes a descriptor before it execs or exits,
11331 this munges the parent's descriptor as well.
11332 Test for this by closing stdout in the child. */
11333 _exit(close(fileno(stdout)) != 0);
11338 while (wait(&status) != child)
11341 /* Was there some problem with vforking? */
11344 /* Did the child fail? (This shouldn't happen.) */
11347 /* Did the vfork/compiler bug occur? */
11348 || parent != getpid()
11350 /* Did the file descriptor bug occur? */
11351 || fstat(fileno(stdout), &st) != 0
11356 if { (eval echo configure:11357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11358 ac_cv_func_vfork_works=yes
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11364 ac_cv_func_vfork_works=no
11368 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
11369 if test $ac_cv_func_vfork_works = no; then
11370 { test "$extra_verbose" = "yes" && cat << \EOF
11371 Defining vfork = fork
11373 cat >> confdefs.h <<\EOF
11381 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11382 echo "configure:11383: checking for working strcoll" >&5
11384 cat > conftest.$ac_ext <<EOF
11385 #line 11386 "configure"
11386 #include "confdefs.h"
11387 #include <string.h>
11390 exit (strcoll ("abc", "def") >= 0 ||
11391 strcoll ("ABC", "DEF") >= 0 ||
11392 strcoll ("123", "456") >= 0);
11395 if { (eval echo configure:11396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11397 ac_cv_func_strcoll_works=yes
11400 echo "configure: failed program was:" >&5
11401 cat conftest.$ac_ext >&5
11403 ac_cv_func_strcoll_works=no
11407 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
11408 if test $ac_cv_func_strcoll_works = yes; then
11409 { test "$extra_verbose" = "yes" && cat << \EOF
11410 Defining HAVE_STRCOLL
11412 cat >> confdefs.h <<\EOF
11413 #define HAVE_STRCOLL 1
11420 for ac_func in getpgrp
11422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11423 echo "configure:11424: checking for $ac_func" >&5
11425 cat > conftest.$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11428 /* System header to define __stub macros and hopefully few prototypes,
11429 which can conflict with char $ac_func(); below. */
11430 #include <assert.h>
11431 /* Override any gcc2 internal prototype to avoid an error. */
11432 /* We use char because int might match the return type of a gcc2
11433 builtin and then its argument prototype would still apply. */
11438 /* The GNU C library defines this for functions which it implements
11439 to always fail with ENOSYS. Some functions are actually named
11440 something starting with __ and the normal name is an alias. */
11441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11449 if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11451 eval "ac_cv_func_$ac_func=yes"
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11456 eval "ac_cv_func_$ac_func=no"
11460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11461 echo "$ac_t""yes" 1>&6
11462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11463 { test "$extra_verbose" = "yes" && cat << EOF
11464 Defining $ac_tr_func
11466 cat >> confdefs.h <<EOF
11467 #define $ac_tr_func 1
11472 echo "$ac_t""no" 1>&6
11476 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11477 echo "configure:11478: checking whether getpgrp takes no argument" >&5
11479 cat > conftest.$ac_ext <<EOF
11480 #line 11481 "configure"
11481 #include "confdefs.h"
11484 * If this system has a BSD-style getpgrp(),
11485 * which takes a pid argument, exit unsuccessfully.
11487 * Snarfed from Chet Ramey's bash pgrp.c test program
11490 #include <sys/types.h>
11493 int pg1, pg2, pg3, pg4;
11494 int ng, np, s, child;
11501 pg3 = getpgrp(pid);
11505 * If all of these values are the same, it's pretty sure that
11506 * we're on a system that ignores getpgrp's first argument.
11508 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
11514 else if (child == 0) {
11517 * If this is Sys V, this will not work; pgrp will be
11518 * set to np because setpgrp just changes a pgrp to be
11519 * the same as the pid.
11522 ng = getpgrp(0); /* Same result for Sys V and BSD */
11535 if { (eval echo configure:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11537 ac_cv_func_getpgrp_void=yes
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11543 ac_cv_func_getpgrp_void=no
11548 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
11549 if test $ac_cv_func_getpgrp_void = yes; then
11550 { test "$extra_verbose" = "yes" && cat << \EOF
11551 Defining GETPGRP_VOID
11553 cat >> confdefs.h <<\EOF
11554 #define GETPGRP_VOID 1
11561 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11562 echo "configure:11563: checking for working mmap" >&5
11563 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11564 cat > conftest.$ac_ext <<EOF
11565 #line 11566 "configure"
11566 #include "confdefs.h"
11568 #include <unistd.h>
11570 #include <sys/mman.h>
11572 #ifndef MAP_VARIABLE
11573 #define MAP_VARIABLE 0
11577 #define MAP_FAILED -1
11580 int main (int argc, char *argv[])
11584 #ifndef MAP_ANONYMOUS
11585 fd = open ("/dev/zero", O_RDWR);
11588 #define MAP_ANONYMOUS 0
11590 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
11591 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
11592 fd, 0) != (void *) MAP_FAILED)
11594 perror ("conftest: mmap failed");
11598 if { (eval echo configure:11599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11608 rm -fr conftest* ;;
11610 echo "$ac_t""$have_mmap" 1>&6
11611 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11614 cat >> confdefs.h <<\EOF
11615 #define HAVE_MMAP 1
11620 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11621 if test "$rel_alloc $have_mmap" = "default yes"; then
11622 if test "$doug_lea_malloc" = "yes"; then
11623 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11624 echo "configure:11625: checking for M_MMAP_THRESHOLD" >&5
11625 cat > conftest.$ac_ext <<EOF
11626 #line 11627 "configure"
11627 #include "confdefs.h"
11628 #include <malloc.h>
11631 #ifndef M_MMAP_THRESHOLD
11632 #error No M_MMAP_THRESHOLD :-(
11633 !@+$%^&*_)(_ - unlikely to compile...
11638 if { (eval echo configure:11639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11640 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11645 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11652 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11655 cat >> confdefs.h <<\EOF
11656 #define REL_ALLOC 1
11661 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11662 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11663 echo "configure:11664: checking for termios.h" >&5
11665 cat > conftest.$ac_ext <<EOF
11666 #line 11667 "configure"
11667 #include "confdefs.h"
11668 #include <termios.h>
11670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11671 { (eval echo configure:11672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11673 if test -z "$ac_err"; then
11675 eval "ac_cv_header_$ac_safe=yes"
11678 echo "configure: failed program was:" >&5
11679 cat conftest.$ac_ext >&5
11681 eval "ac_cv_header_$ac_safe=no"
11684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11685 echo "$ac_t""yes" 1>&6
11686 { test "$extra_verbose" = "yes" && cat << \EOF
11687 Defining HAVE_TERMIOS
11689 cat >> confdefs.h <<\EOF
11690 #define HAVE_TERMIOS 1
11694 { test "$extra_verbose" = "yes" && cat << \EOF
11695 Defining SIGNALS_VIA_CHARACTERS
11697 cat >> confdefs.h <<\EOF
11698 #define SIGNALS_VIA_CHARACTERS 1
11702 { test "$extra_verbose" = "yes" && cat << \EOF
11705 cat >> confdefs.h <<\EOF
11706 #define NO_TERMIO 1
11711 echo "$ac_t""no" 1>&6
11712 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11713 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11714 echo "configure:11715: checking for termio.h" >&5
11716 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11719 #include <termio.h>
11721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11722 { (eval echo configure:11723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11724 if test -z "$ac_err"; then
11726 eval "ac_cv_header_$ac_safe=yes"
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11732 eval "ac_cv_header_$ac_safe=no"
11735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11736 echo "$ac_t""yes" 1>&6
11737 { test "$extra_verbose" = "yes" && cat << \EOF
11738 Defining HAVE_TERMIO
11740 cat >> confdefs.h <<\EOF
11741 #define HAVE_TERMIO 1
11746 echo "$ac_t""no" 1>&6
11753 echo $ac_n "checking for socket""... $ac_c" 1>&6
11754 echo "configure:11755: checking for socket" >&5
11756 cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure"
11758 #include "confdefs.h"
11759 /* System header to define __stub macros and hopefully few prototypes,
11760 which can conflict with char socket(); below. */
11761 #include <assert.h>
11762 /* Override any gcc2 internal prototype to avoid an error. */
11763 /* We use char because int might match the return type of a gcc2
11764 builtin and then its argument prototype would still apply. */
11769 /* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
11772 #if defined (__stub_socket) || defined (__stub___socket)
11780 if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11782 eval "ac_cv_func_socket=yes"
11784 echo "configure: failed program was:" >&5
11785 cat conftest.$ac_ext >&5
11787 eval "ac_cv_func_socket=no"
11791 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11792 echo "$ac_t""yes" 1>&6
11793 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11794 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11795 echo "configure:11796: checking for netinet/in.h" >&5
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11800 #include <netinet/in.h>
11802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11803 { (eval echo configure:11804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11805 if test -z "$ac_err"; then
11807 eval "ac_cv_header_$ac_safe=yes"
11810 echo "configure: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11813 eval "ac_cv_header_$ac_safe=no"
11816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11817 echo "$ac_t""yes" 1>&6
11818 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11819 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11820 echo "configure:11821: checking for arpa/inet.h" >&5
11822 cat > conftest.$ac_ext <<EOF
11823 #line 11824 "configure"
11824 #include "confdefs.h"
11825 #include <arpa/inet.h>
11827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11828 { (eval echo configure:11829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11830 if test -z "$ac_err"; then
11832 eval "ac_cv_header_$ac_safe=yes"
11835 echo "configure: failed program was:" >&5
11836 cat conftest.$ac_ext >&5
11838 eval "ac_cv_header_$ac_safe=no"
11841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11842 echo "$ac_t""yes" 1>&6
11844 { test "$extra_verbose" = "yes" && cat << \EOF
11845 Defining HAVE_SOCKETS
11847 cat >> confdefs.h <<\EOF
11848 #define HAVE_SOCKETS 1
11852 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11853 echo "configure:11854: checking "for sun_len member in struct sockaddr_un"" >&5
11854 cat > conftest.$ac_ext <<EOF
11855 #line 11856 "configure"
11856 #include "confdefs.h"
11858 #include <sys/types.h>
11859 #include <sys/socket.h>
11860 #include <sys/un.h>
11863 static struct sockaddr_un x; x.sun_len = 1;
11866 if { (eval echo configure:11867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11868 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11869 Defining HAVE_SOCKADDR_SUN_LEN
11871 cat >> confdefs.h <<\EOF
11872 #define HAVE_SOCKADDR_SUN_LEN 1
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11880 echo "$ac_t""no" 1>&6
11883 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11884 echo "configure:11885: checking "for ip_mreq struct in netinet/in.h"" >&5
11885 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11889 #include <sys/types.h>
11890 #include <netinet/in.h>
11893 static struct ip_mreq x;
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11898 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11899 Defining HAVE_MULTICAST
11901 cat >> confdefs.h <<\EOF
11902 #define HAVE_MULTICAST 1
11907 echo "configure: failed program was:" >&5
11908 cat conftest.$ac_ext >&5
11910 echo "$ac_t""no" 1>&6
11914 echo "$ac_t""no" 1>&6
11918 echo "$ac_t""no" 1>&6
11922 echo "$ac_t""no" 1>&6
11926 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11927 echo "configure:11928: checking for msgget" >&5
11929 cat > conftest.$ac_ext <<EOF
11930 #line 11931 "configure"
11931 #include "confdefs.h"
11932 /* System header to define __stub macros and hopefully few prototypes,
11933 which can conflict with char msgget(); below. */
11934 #include <assert.h>
11935 /* Override any gcc2 internal prototype to avoid an error. */
11936 /* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11942 /* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945 #if defined (__stub_msgget) || defined (__stub___msgget)
11953 if { (eval echo configure:11954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11955 eval "ac_cv_func_msgget=yes"
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11960 eval "ac_cv_func_msgget=no"
11964 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11965 echo "$ac_t""yes" 1>&6
11966 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
11967 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
11968 echo "configure:11969: checking for sys/ipc.h" >&5
11970 cat > conftest.$ac_ext <<EOF
11971 #line 11972 "configure"
11972 #include "confdefs.h"
11973 #include <sys/ipc.h>
11975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11976 { (eval echo configure:11977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11978 if test -z "$ac_err"; then
11980 eval "ac_cv_header_$ac_safe=yes"
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11986 eval "ac_cv_header_$ac_safe=no"
11989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11990 echo "$ac_t""yes" 1>&6
11991 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
11992 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
11993 echo "configure:11994: checking for sys/msg.h" >&5
11995 cat > conftest.$ac_ext <<EOF
11996 #line 11997 "configure"
11997 #include "confdefs.h"
11998 #include <sys/msg.h>
12000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12001 { (eval echo configure:12002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12003 if test -z "$ac_err"; then
12005 eval "ac_cv_header_$ac_safe=yes"
12008 echo "configure: failed program was:" >&5
12009 cat conftest.$ac_ext >&5
12011 eval "ac_cv_header_$ac_safe=no"
12014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12015 echo "$ac_t""yes" 1>&6
12016 { test "$extra_verbose" = "yes" && cat << \EOF
12017 Defining HAVE_SYSVIPC
12019 cat >> confdefs.h <<\EOF
12020 #define HAVE_SYSVIPC 1
12025 echo "$ac_t""no" 1>&6
12029 echo "$ac_t""no" 1>&6
12033 echo "$ac_t""no" 1>&6
12037 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12038 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12039 echo "configure:12040: checking for dirent.h" >&5
12041 cat > conftest.$ac_ext <<EOF
12042 #line 12043 "configure"
12043 #include "confdefs.h"
12044 #include <dirent.h>
12046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12047 { (eval echo configure:12048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12049 if test -z "$ac_err"; then
12051 eval "ac_cv_header_$ac_safe=yes"
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12057 eval "ac_cv_header_$ac_safe=no"
12060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12061 echo "$ac_t""yes" 1>&6
12062 { test "$extra_verbose" = "yes" && cat << \EOF
12063 Defining SYSV_SYSTEM_DIR
12065 cat >> confdefs.h <<\EOF
12066 #define SYSV_SYSTEM_DIR 1
12071 echo "$ac_t""no" 1>&6
12072 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12073 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12074 echo "configure:12075: checking for sys/dir.h" >&5
12076 cat > conftest.$ac_ext <<EOF
12077 #line 12078 "configure"
12078 #include "confdefs.h"
12079 #include <sys/dir.h>
12081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12082 { (eval echo configure:12083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12084 if test -z "$ac_err"; then
12086 eval "ac_cv_header_$ac_safe=yes"
12089 echo "configure: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12092 eval "ac_cv_header_$ac_safe=no"
12095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12096 echo "$ac_t""yes" 1>&6
12099 echo "$ac_t""no" 1>&6
12100 { test "$extra_verbose" = "yes" && cat << \EOF
12101 Defining NONSYSTEM_DIR_LIBRARY
12103 cat >> confdefs.h <<\EOF
12104 #define NONSYSTEM_DIR_LIBRARY 1
12113 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12114 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12115 echo "configure:12116: checking for nlist.h" >&5
12117 cat > conftest.$ac_ext <<EOF
12118 #line 12119 "configure"
12119 #include "confdefs.h"
12122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12123 { (eval echo configure:12124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12125 if test -z "$ac_err"; then
12127 eval "ac_cv_header_$ac_safe=yes"
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12133 eval "ac_cv_header_$ac_safe=no"
12136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12137 echo "$ac_t""yes" 1>&6
12138 { test "$extra_verbose" = "yes" && cat << \EOF
12139 Defining NLIST_STRUCT
12141 cat >> confdefs.h <<\EOF
12142 #define NLIST_STRUCT 1
12147 echo "$ac_t""no" 1>&6
12152 echo "checking "for sound support"" 1>&6
12153 echo "configure:12154: checking "for sound support"" >&5
12154 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12156 if test "$with_native_sound" != "no"; then
12157 if test -n "$native_sound_lib"; then
12158 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12159 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12160 echo "configure:12161: checking for multimedia/audio_device.h" >&5
12162 cat > conftest.$ac_ext <<EOF
12163 #line 12164 "configure"
12164 #include "confdefs.h"
12165 #include <multimedia/audio_device.h>
12167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12168 { (eval echo configure:12169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12170 if test -z "$ac_err"; then
12172 eval "ac_cv_header_$ac_safe=yes"
12175 echo "configure: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12178 eval "ac_cv_header_$ac_safe=no"
12181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12182 echo "$ac_t""yes" 1>&6
12183 sound_found=yes sound_cflags=""
12184 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12185 echo " xemacs will be linked with \"sunplay.o\""
12188 echo "$ac_t""no" 1>&6
12193 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12195 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12196 echo " xemacs will be linked with \"sunplay.o\""
12198 if test -d "/usr/demo/SOUND/include"
12199 then sound_cflags="-I/usr/demo/SOUND/include"
12200 else sound_cflags="-I/usr/demo/SOUND"
12202 if test -z "$native_sound_lib" ; then
12203 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12204 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12205 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12210 if test -z "$sound_found"; then
12211 case "$canonical" in
12213 if test -z "$native_sound_lib"; then
12215 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12216 echo "configure:12217: checking for ALopenport in -laudio" >&5
12217 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12219 xe_check_libs=" -laudio "
12220 cat > conftest.$ac_ext <<EOF
12221 #line 12222 "configure"
12222 #include "confdefs.h"
12223 /* Override any gcc2 internal prototype to avoid an error. */
12224 /* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12232 if { (eval echo configure:12233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12234 eval "ac_cv_lib_$ac_lib_var=yes"
12236 echo "configure: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12239 eval "ac_cv_lib_$ac_lib_var=no"
12244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12245 echo "$ac_t""yes" 1>&6
12246 native_sound_lib="-laudio"
12248 echo "$ac_t""no" 1>&6
12253 if test -n "$native_sound_lib"; then
12254 sound_found=yes sound_cflags=""
12255 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12256 echo " xemacs will be linked with \"sgiplay.o\""
12260 if test -z "$native_sound_lib"; then
12262 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12263 echo "configure:12264: checking for AOpenAudio in -lAlib" >&5
12264 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12266 xe_check_libs=" -lAlib "
12267 cat > conftest.$ac_ext <<EOF
12268 #line 12269 "configure"
12269 #include "confdefs.h"
12270 /* Override any gcc2 internal prototype to avoid an error. */
12271 /* We use char because int might match the return type of a gcc2
12272 builtin and then its argument prototype would still apply. */
12279 if { (eval echo configure:12280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12281 eval "ac_cv_lib_$ac_lib_var=yes"
12283 echo "configure: failed program was:" >&5
12284 cat conftest.$ac_ext >&5
12286 eval "ac_cv_lib_$ac_lib_var=no"
12291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12292 echo "$ac_t""yes" 1>&6
12293 native_sound_lib="-lAlib"
12295 echo "$ac_t""no" 1>&6
12300 if test -n "$native_sound_lib"; then
12302 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12303 echo " xemacs will be linked with \"hpplay.o\""
12305 if test "$GCC" = "yes" # Kludge city
12306 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12307 else sound_cflags="+e -I/usr/audio/examples"
12313 if test -z "$sound_found"; then
12314 for dir in "machine" "sys" "linux"; do
12315 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12316 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12317 echo "configure:12318: checking for ${dir}/soundcard.h" >&5
12319 cat > conftest.$ac_ext <<EOF
12320 #line 12321 "configure"
12321 #include "confdefs.h"
12322 #include <${dir}/soundcard.h>
12324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12325 { (eval echo configure:12326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12327 if test -z "$ac_err"; then
12329 eval "ac_cv_header_$ac_safe=yes"
12332 echo "configure: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12335 eval "ac_cv_header_$ac_safe=no"
12338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12339 echo "$ac_t""yes" 1>&6
12342 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
12343 echo " xemacs will be linked with \"linuxplay.o\""
12345 { test "$extra_verbose" = "yes" && cat << EOF
12346 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
12348 cat >> confdefs.h <<EOF
12349 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
12355 echo "$ac_t""no" 1>&6
12361 if test -z "$sound_found"; then
12362 if test "$with_msw" = "yes"; then
12368 test "$sound_found" = "yes" && with_native_sound=yes
12371 if test "$with_native_sound" = "yes"; then
12372 { test "$extra_verbose" = "yes" && cat << \EOF
12373 Defining HAVE_NATIVE_SOUND
12375 cat >> confdefs.h <<\EOF
12376 #define HAVE_NATIVE_SOUND 1
12380 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
12383 if test "$with_nas_sound" != "no"; then
12384 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12385 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12386 echo "configure:12387: checking for audio/audiolib.h" >&5
12388 cat > conftest.$ac_ext <<EOF
12389 #line 12390 "configure"
12390 #include "confdefs.h"
12391 #include <audio/audiolib.h>
12393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12394 { (eval echo configure:12395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12396 if test -z "$ac_err"; then
12398 eval "ac_cv_header_$ac_safe=yes"
12401 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5
12404 eval "ac_cv_header_$ac_safe=no"
12407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12408 echo "$ac_t""yes" 1>&6
12411 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12412 echo "configure:12413: checking for AuOpenServer in -laudio" >&5
12413 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12415 xe_check_libs=" -laudio "
12416 cat > conftest.$ac_ext <<EOF
12417 #line 12418 "configure"
12418 #include "confdefs.h"
12419 /* Override any gcc2 internal prototype to avoid an error. */
12420 /* We use char because int might match the return type of a gcc2
12421 builtin and then its argument prototype would still apply. */
12422 char AuOpenServer();
12428 if { (eval echo configure:12429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12430 eval "ac_cv_lib_$ac_lib_var=yes"
12432 echo "configure: failed program was:" >&5
12433 cat conftest.$ac_ext >&5
12435 eval "ac_cv_lib_$ac_lib_var=no"
12440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12441 echo "$ac_t""yes" 1>&6
12444 echo "$ac_t""no" 1>&6
12449 echo "$ac_t""no" 1>&6
12452 if test "$have_nas_sound" = "yes"; then
12454 { test "$extra_verbose" = "yes" && cat << \EOF
12455 Defining HAVE_NAS_SOUND
12457 cat >> confdefs.h <<\EOF
12458 #define HAVE_NAS_SOUND 1
12462 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12463 echo " xemacs will be linked with \"nas.o\""
12465 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12466 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure"
12468 #include "confdefs.h"
12469 #include <audio/Xtutil.h>
12471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12472 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12476 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
12477 Defining NAS_NO_ERROR_JUMP
12479 cat >> confdefs.h <<\EOF
12480 #define NAS_NO_ERROR_JUMP 1
12488 test "$with_nas_sound" = "yes" && \
12489 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12494 if test "$with_esd_sound" != "no"; then
12495 # Extract the first word of "esd-config", so it can be a program name with args.
12496 set dummy esd-config; ac_word=$2
12497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12498 echo "configure:12499: checking for $ac_word" >&5
12500 if test -n "$have_esd_config"; then
12501 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12505 for ac_dir in $ac_dummy; do
12506 test -z "$ac_dir" && ac_dir=.
12507 if test -f $ac_dir/$ac_word; then
12508 ac_cv_prog_have_esd_config="yes"
12513 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
12515 have_esd_config="$ac_cv_prog_have_esd_config"
12516 if test -n "$have_esd_config"; then
12517 echo "$ac_t""$have_esd_config" 1>&6
12519 echo "$ac_t""no" 1>&6
12522 if test "$have_esd_config" = "yes"; then
12523 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12524 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
12525 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12526 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12527 echo "configure:12528: checking for esd_play_stream" >&5
12529 cat > conftest.$ac_ext <<EOF
12530 #line 12531 "configure"
12531 #include "confdefs.h"
12532 /* System header to define __stub macros and hopefully few prototypes,
12533 which can conflict with char esd_play_stream(); below. */
12534 #include <assert.h>
12535 /* Override any gcc2 internal prototype to avoid an error. */
12536 /* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12538 char esd_play_stream();
12542 /* The GNU C library defines this for functions which it implements
12543 to always fail with ENOSYS. Some functions are actually named
12544 something starting with __ and the normal name is an alias. */
12545 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
12553 if { (eval echo configure:12554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12555 eval "ac_cv_func_esd_play_stream=yes"
12557 echo "configure: failed program was:" >&5
12558 cat conftest.$ac_ext >&5
12560 eval "ac_cv_func_esd_play_stream=no"
12564 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
12565 echo "$ac_t""yes" 1>&6
12568 echo "$ac_t""no" 1>&6
12569 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
12574 if test "$have_esd_sound" = "yes"; then
12577 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
12578 echo " xemacs will be linked with \"esd.o\""
12580 { test "$extra_verbose" = "yes" && cat << \EOF
12581 Defining HAVE_ESD_SOUND
12583 cat >> confdefs.h <<\EOF
12584 #define HAVE_ESD_SOUND 1
12589 test "$with_esd_sound" = "yes" && \
12590 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12595 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12596 echo " xemacs will be linked with \"miscplay.o\""
12600 test -z "$with_tty" && with_tty=yes
12602 if test "$with_tty" = "yes" ; then
12603 echo "checking for TTY-related features" 1>&6
12604 echo "configure:12605: checking for TTY-related features" >&5
12605 { test "$extra_verbose" = "yes" && cat << \EOF
12608 cat >> confdefs.h <<\EOF
12613 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
12614 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\""
12617 if test -z "$with_ncurses"; then
12619 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12620 echo "configure:12621: checking for tgetent in -lncurses" >&5
12621 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12623 xe_check_libs=" -lncurses "
12624 cat > conftest.$ac_ext <<EOF
12625 #line 12626 "configure"
12626 #include "confdefs.h"
12627 /* Override any gcc2 internal prototype to avoid an error. */
12628 /* We use char because int might match the return type of a gcc2
12629 builtin and then its argument prototype would still apply. */
12636 if { (eval echo configure:12637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12638 eval "ac_cv_lib_$ac_lib_var=yes"
12640 echo "configure: failed program was:" >&5
12641 cat conftest.$ac_ext >&5
12643 eval "ac_cv_lib_$ac_lib_var=no"
12648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12649 echo "$ac_t""yes" 1>&6
12652 echo "$ac_t""no" 1>&6
12658 if test "$with_ncurses" = "yes"; then
12659 { test "$extra_verbose" = "yes" && cat << \EOF
12660 Defining HAVE_NCURSES
12662 cat >> confdefs.h <<\EOF
12663 #define HAVE_NCURSES 1
12667 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12668 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12669 echo "configure:12670: checking for ncurses/curses.h" >&5
12671 cat > conftest.$ac_ext <<EOF
12672 #line 12673 "configure"
12673 #include "confdefs.h"
12674 #include <ncurses/curses.h>
12676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12677 { (eval echo configure:12678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12679 if test -z "$ac_err"; then
12681 eval "ac_cv_header_$ac_safe=yes"
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12687 eval "ac_cv_header_$ac_safe=no"
12690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12691 echo "$ac_t""yes" 1>&6
12692 curses_h_file=ncurses/curses.h
12694 echo "$ac_t""no" 1>&6
12697 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12698 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12699 echo "configure:12700: checking for ncurses/term.h" >&5
12701 cat > conftest.$ac_ext <<EOF
12702 #line 12703 "configure"
12703 #include "confdefs.h"
12704 #include <ncurses/term.h>
12706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12707 { (eval echo configure:12708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12709 if test -z "$ac_err"; then
12711 eval "ac_cv_header_$ac_safe=yes"
12714 echo "configure: failed program was:" >&5
12715 cat conftest.$ac_ext >&5
12717 eval "ac_cv_header_$ac_safe=no"
12720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12721 echo "$ac_t""yes" 1>&6
12722 term_h_file=ncurses/term.h
12724 echo "$ac_t""no" 1>&6
12727 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12728 echo " xemacs will be linked with \"terminfo.o\""
12730 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12732 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12733 save_c_switch_site="$c_switch_site"
12734 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12735 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12736 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12737 echo "configure:12738: checking for ncurses/curses.h" >&5
12739 cat > conftest.$ac_ext <<EOF
12740 #line 12741 "configure"
12741 #include "confdefs.h"
12742 #include <ncurses/curses.h>
12744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12745 { (eval echo configure:12746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12747 if test -z "$ac_err"; then
12749 eval "ac_cv_header_$ac_safe=yes"
12752 echo "configure: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12755 eval "ac_cv_header_$ac_safe=no"
12758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12759 echo "$ac_t""yes" 1>&6
12760 curses_h_file=ncurses/curses.h
12762 echo "$ac_t""no" 1>&6
12765 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12766 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12767 else c_switch_site="$save_c_switch_site"
12770 else if test "$have_terminfo" = "yes"; then
12771 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12772 echo " xemacs will be linked with \"terminfo.o\""
12774 if test -n "$libs_termcap"; then
12775 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12777 for lib in curses termlib termcap; do
12779 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12780 echo "configure:12781: checking for tgetent in -l$lib" >&5
12781 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12783 xe_check_libs=" -l$lib "
12784 cat > conftest.$ac_ext <<EOF
12785 #line 12786 "configure"
12786 #include "confdefs.h"
12787 /* Override any gcc2 internal prototype to avoid an error. */
12788 /* We use char because int might match the return type of a gcc2
12789 builtin and then its argument prototype would still apply. */
12796 if { (eval echo configure:12797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12798 eval "ac_cv_lib_$ac_lib_var=yes"
12800 echo "configure: failed program was:" >&5
12801 cat conftest.$ac_ext >&5
12803 eval "ac_cv_lib_$ac_lib_var=no"
12808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12809 echo "$ac_t""yes" 1>&6
12810 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12812 echo "$ac_t""no" 1>&6
12818 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12819 echo " xemacs will be linked with \"tparam.o\""
12821 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12822 if test -n "$libs_termcap"; then
12823 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12826 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12827 echo "configure:12828: checking for tgetent in -lcurses" >&5
12828 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12830 xe_check_libs=" -lcurses "
12831 cat > conftest.$ac_ext <<EOF
12832 #line 12833 "configure"
12833 #include "confdefs.h"
12834 /* Override any gcc2 internal prototype to avoid an error. */
12835 /* We use char because int might match the return type of a gcc2
12836 builtin and then its argument prototype would still apply. */
12843 if { (eval echo configure:12844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12845 eval "ac_cv_lib_$ac_lib_var=yes"
12847 echo "configure: failed program was:" >&5
12848 cat conftest.$ac_ext >&5
12850 eval "ac_cv_lib_$ac_lib_var=no"
12855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12856 echo "$ac_t""yes" 1>&6
12857 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12859 echo "$ac_t""no" 1>&6
12860 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12861 echo "configure:12862: checking for tgetent in -ltermcap" >&5
12862 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12864 xe_check_libs=" -ltermcap "
12865 cat > conftest.$ac_ext <<EOF
12866 #line 12867 "configure"
12867 #include "confdefs.h"
12868 /* Override any gcc2 internal prototype to avoid an error. */
12869 /* We use char because int might match the return type of a gcc2
12870 builtin and then its argument prototype would still apply. */
12877 if { (eval echo configure:12878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12879 eval "ac_cv_lib_$ac_lib_var=yes"
12881 echo "configure: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12884 eval "ac_cv_lib_$ac_lib_var=no"
12889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12890 echo "$ac_t""yes" 1>&6
12891 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12893 echo "$ac_t""no" 1>&6
12894 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12895 echo " xemacs will be linked with \"termcap.o\""
12906 { test "$extra_verbose" = "yes" && cat << EOF
12907 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
12909 cat >> confdefs.h <<EOF
12910 #define CURSES_H_FILE "${curses_h_file-curses.h}"
12914 { test "$extra_verbose" = "yes" && cat << EOF
12915 Defining TERM_H_FILE = "${term_h_file-term.h}"
12917 cat >> confdefs.h <<EOF
12918 #define TERM_H_FILE "${term_h_file-term.h}"
12923 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12924 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12925 echo "configure:12926: checking for gpm.h" >&5
12927 cat > conftest.$ac_ext <<EOF
12928 #line 12929 "configure"
12929 #include "confdefs.h"
12932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12933 { (eval echo configure:12934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12935 if test -z "$ac_err"; then
12937 eval "ac_cv_header_$ac_safe=yes"
12940 echo "configure: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12943 eval "ac_cv_header_$ac_safe=no"
12946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12947 echo "$ac_t""yes" 1>&6
12950 echo "$ac_t""no" 1>&6
12954 test -z "$with_gpm" && {
12955 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12956 echo "configure:12957: checking for Gpm_Open in -lgpm" >&5
12957 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12959 xe_check_libs=" -lgpm "
12960 cat > conftest.$ac_ext <<EOF
12961 #line 12962 "configure"
12962 #include "confdefs.h"
12963 /* Override any gcc2 internal prototype to avoid an error. */
12964 /* We use char because int might match the return type of a gcc2
12965 builtin and then its argument prototype would still apply. */
12972 if { (eval echo configure:12973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12974 eval "ac_cv_lib_$ac_lib_var=yes"
12976 echo "configure: failed program was:" >&5
12977 cat conftest.$ac_ext >&5
12979 eval "ac_cv_lib_$ac_lib_var=no"
12984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12985 echo "$ac_t""yes" 1>&6
12988 echo "$ac_t""no" 1>&6
12993 if test "$with_gpm" = "yes"; then
12994 { test "$extra_verbose" = "yes" && cat << \EOF
12997 cat >> confdefs.h <<\EOF
13002 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13003 echo " xemacs will be linked with \"gpmevent.o\""
13005 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13008 else for feature in ncurses gpm; do
13009 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13010 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13012 eval "with_${feature}=no"
13015 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13016 echo " xemacs will be linked with \"event-unixoid.o\""
13020 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13021 != "no no no" && echo "checking for database support" 1>&6
13022 echo "configure:13023: checking for database support" >&5
13024 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13025 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13026 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13027 echo "configure:13028: checking for ndbm.h" >&5
13029 cat > conftest.$ac_ext <<EOF
13030 #line 13031 "configure"
13031 #include "confdefs.h"
13034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13035 { (eval echo configure:13036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13037 if test -z "$ac_err"; then
13039 eval "ac_cv_header_$ac_safe=yes"
13042 echo "configure: failed program was:" >&5
13043 cat conftest.$ac_ext >&5
13045 eval "ac_cv_header_$ac_safe=no"
13048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13049 echo "$ac_t""yes" 1>&6
13052 echo "$ac_t""no" 1>&6
13054 test "$with_database_gdbm" = "yes" -o \
13055 "$with_database_dbm" = "yes" && \
13056 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13057 with_database_gdbm=no with_database_dbm=no
13062 if test "$with_database_gdbm" != "no"; then
13064 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13065 echo "configure:13066: checking for dbm_open in -lgdbm" >&5
13066 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13068 xe_check_libs=" -lgdbm "
13069 cat > conftest.$ac_ext <<EOF
13070 #line 13071 "configure"
13071 #include "confdefs.h"
13072 /* Override any gcc2 internal prototype to avoid an error. */
13073 /* We use char because int might match the return type of a gcc2
13074 builtin and then its argument prototype would still apply. */
13081 if { (eval echo configure:13082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13083 eval "ac_cv_lib_$ac_lib_var=yes"
13085 echo "configure: failed program was:" >&5
13086 cat conftest.$ac_ext >&5
13088 eval "ac_cv_lib_$ac_lib_var=no"
13093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13094 echo "$ac_t""yes" 1>&6
13095 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13097 echo "$ac_t""no" 1>&6
13098 if test "$with_database_gdbm" = "yes"; then
13099 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13101 with_database_gdbm=no
13107 if test "$with_database_dbm" != "no"; then
13108 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13109 echo "configure:13110: checking for dbm_open" >&5
13111 cat > conftest.$ac_ext <<EOF
13112 #line 13113 "configure"
13113 #include "confdefs.h"
13114 /* System header to define __stub macros and hopefully few prototypes,
13115 which can conflict with char dbm_open(); below. */
13116 #include <assert.h>
13117 /* Override any gcc2 internal prototype to avoid an error. */
13118 /* We use char because int might match the return type of a gcc2
13119 builtin and then its argument prototype would still apply. */
13124 /* The GNU C library defines this for functions which it implements
13125 to always fail with ENOSYS. Some functions are actually named
13126 something starting with __ and the normal name is an alias. */
13127 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13135 if { (eval echo configure:13136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13137 eval "ac_cv_func_dbm_open=yes"
13139 echo "configure: failed program was:" >&5
13140 cat conftest.$ac_ext >&5
13142 eval "ac_cv_func_dbm_open=no"
13146 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13147 echo "$ac_t""yes" 1>&6
13148 with_database_dbm=yes libdbm=
13150 echo "$ac_t""no" 1>&6
13153 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13154 echo "configure:13155: checking for dbm_open in -ldbm" >&5
13155 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13157 xe_check_libs=" -ldbm "
13158 cat > conftest.$ac_ext <<EOF
13159 #line 13160 "configure"
13160 #include "confdefs.h"
13161 /* Override any gcc2 internal prototype to avoid an error. */
13162 /* We use char because int might match the return type of a gcc2
13163 builtin and then its argument prototype would still apply. */
13170 if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13172 eval "ac_cv_lib_$ac_lib_var=yes"
13174 echo "configure: failed program was:" >&5
13175 cat conftest.$ac_ext >&5
13177 eval "ac_cv_lib_$ac_lib_var=no"
13182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13183 echo "$ac_t""yes" 1>&6
13184 with_database_dbm=yes libdbm=-ldbm
13186 echo "$ac_t""no" 1>&6
13187 test "$with_database_dbm" = "yes" && \
13188 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13189 with_database_dbm=no
13197 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13198 test "$with_database_gdbm" = "yes" -o \
13199 "$with_database_dbm" = "yes" && \
13200 { test "$extra_verbose" = "yes" && cat << \EOF
13203 cat >> confdefs.h <<\EOF
13209 if test "$with_database_berkdb" != "no"; then
13210 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13211 echo "configure:13212: checking for Berkeley db.h" >&5
13212 for header in "db/db.h" "db.h"; do
13213 cat > conftest.$ac_ext <<EOF
13214 #line 13215 "configure"
13215 #include "confdefs.h"
13217 #include <stdlib.h>
13218 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13219 #ifdef HAVE_INTTYPES_H
13220 #define __BIT_TYPES_DEFINED__
13221 #include <inttypes.h>
13222 typedef uint8_t u_int8_t;
13223 typedef uint16_t u_int16_t;
13224 typedef uint32_t u_int32_t;
13225 #ifdef WE_DONT_NEED_QUADS
13226 typedef uint64_t u_int64_t;
13236 if { (eval echo configure:13237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13238 db_h_file="$header"; break
13240 echo "configure: failed program was:" >&5
13241 cat conftest.$ac_ext >&5
13245 if test -z "$db_h_file"
13246 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13247 else echo "$ac_t""$db_h_file" 1>&6
13250 if test "$with_database_berkdb" != "no"; then
13251 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13252 echo "configure:13253: checking for Berkeley DB version" >&5
13253 cat > conftest.$ac_ext <<EOF
13254 #line 13255 "configure"
13255 #include "confdefs.h"
13256 #include <$db_h_file>
13257 #if DB_VERSION_MAJOR > 1
13262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13263 egrep "yes" >/dev/null 2>&1; then
13265 echo "$ac_t""2" 1>&6; dbfunc=db_open
13268 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13272 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13273 echo "configure:13274: checking for $dbfunc" >&5
13275 cat > conftest.$ac_ext <<EOF
13276 #line 13277 "configure"
13277 #include "confdefs.h"
13278 /* System header to define __stub macros and hopefully few prototypes,
13279 which can conflict with char $dbfunc(); below. */
13280 #include <assert.h>
13281 /* Override any gcc2 internal prototype to avoid an error. */
13282 /* We use char because int might match the return type of a gcc2
13283 builtin and then its argument prototype would still apply. */
13288 /* The GNU C library defines this for functions which it implements
13289 to always fail with ENOSYS. Some functions are actually named
13290 something starting with __ and the normal name is an alias. */
13291 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13299 if { (eval echo configure:13300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13301 eval "ac_cv_func_$dbfunc=yes"
13303 echo "configure: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13306 eval "ac_cv_func_$dbfunc=no"
13310 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13311 echo "$ac_t""yes" 1>&6
13312 with_database_berkdb=yes need_libdb=no
13314 echo "$ac_t""no" 1>&6
13317 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13318 echo "configure:13319: checking for $dbfunc in -ldb" >&5
13319 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13321 xe_check_libs=" -ldb "
13322 cat > conftest.$ac_ext <<EOF
13323 #line 13324 "configure"
13324 #include "confdefs.h"
13325 /* Override any gcc2 internal prototype to avoid an error. */
13326 /* We use char because int might match the return type of a gcc2
13327 builtin and then its argument prototype would still apply. */
13334 if { (eval echo configure:13335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13336 eval "ac_cv_lib_$ac_lib_var=yes"
13338 echo "configure: failed program was:" >&5
13339 cat conftest.$ac_ext >&5
13341 eval "ac_cv_lib_$ac_lib_var=no"
13346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13347 echo "$ac_t""yes" 1>&6
13348 with_database_berkdb=yes need_libdb=yes
13350 echo "$ac_t""no" 1>&6
13358 if test "$with_database_berkdb" = "yes"; then
13359 { test "$extra_verbose" = "yes" && cat << EOF
13360 Defining DB_H_FILE = "$db_h_file"
13362 cat >> confdefs.h <<EOF
13363 #define DB_H_FILE "$db_h_file"
13367 { test "$extra_verbose" = "yes" && cat << \EOF
13368 Defining HAVE_BERKELEY_DB
13370 cat >> confdefs.h <<\EOF
13371 #define HAVE_BERKELEY_DB 1
13375 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
13376 else with_database_berkdb=no
13380 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13381 != "no no no"; then
13382 { test "$extra_verbose" = "yes" && cat << \EOF
13383 Defining HAVE_DATABASE
13385 cat >> confdefs.h <<\EOF
13386 #define HAVE_DATABASE 1
13390 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
13391 echo " xemacs will be linked with \"database.o\""
13395 if test "$with_socks" = "yes"; then
13397 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13398 echo "configure:13399: checking for SOCKSinit in -lsocks" >&5
13399 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13401 xe_check_libs=" -lsocks "
13402 cat > conftest.$ac_ext <<EOF
13403 #line 13404 "configure"
13404 #include "confdefs.h"
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13414 if { (eval echo configure:13415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13416 eval "ac_cv_lib_$ac_lib_var=yes"
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13421 eval "ac_cv_lib_$ac_lib_var=no"
13426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13427 echo "$ac_t""yes" 1>&6
13428 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13430 { test "$extra_verbose" = "yes" && cat << EOF
13431 Defining $ac_tr_lib
13433 cat >> confdefs.h <<EOF
13434 #define $ac_tr_lib 1
13438 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
13441 echo "$ac_t""no" 1>&6
13445 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
13446 Defining HAVE_SOCKS
13448 cat >> confdefs.h <<\EOF
13449 #define HAVE_SOCKS 1
13455 if test "$usage_tracking" = "yes"; then
13456 { test "$extra_verbose" = "yes" && cat << \EOF
13457 Defining USAGE_TRACKING
13459 cat >> confdefs.h <<\EOF
13460 #define USAGE_TRACKING 1
13464 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13467 if test "$with_modules" != "no"; then
13468 echo "checking for module support" 1>&6
13469 echo "configure:13470: checking for module support" >&5
13471 if test "$with_msw" = "yes"; then
13474 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13475 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13476 echo "configure:13477: checking for dlfcn.h" >&5
13478 cat > conftest.$ac_ext <<EOF
13479 #line 13480 "configure"
13480 #include "confdefs.h"
13483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13484 { (eval echo configure:13485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13486 if test -z "$ac_err"; then
13488 eval "ac_cv_header_$ac_safe=yes"
13491 echo "configure: failed program was:" >&5
13492 cat conftest.$ac_ext >&5
13494 eval "ac_cv_header_$ac_safe=no"
13497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13498 echo "$ac_t""yes" 1>&6
13501 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13502 echo "configure:13503: checking for dlopen in -ldl" >&5
13503 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
13505 xe_check_libs=" -ldl "
13506 cat > conftest.$ac_ext <<EOF
13507 #line 13508 "configure"
13508 #include "confdefs.h"
13509 /* Override any gcc2 internal prototype to avoid an error. */
13510 /* We use char because int might match the return type of a gcc2
13511 builtin and then its argument prototype would still apply. */
13518 if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13520 eval "ac_cv_lib_$ac_lib_var=yes"
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13525 eval "ac_cv_lib_$ac_lib_var=no"
13530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13531 echo "$ac_t""yes" 1>&6
13532 have_dl=yes libdl=dl
13534 echo "$ac_t""no" 1>&6
13536 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13537 echo "configure:13538: checking for dlopen in -lc" >&5
13538 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
13540 xe_check_libs=" -lc "
13541 cat > conftest.$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13544 /* Override any gcc2 internal prototype to avoid an error. */
13545 /* We use char because int might match the return type of a gcc2
13546 builtin and then its argument prototype would still apply. */
13553 if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13555 eval "ac_cv_lib_$ac_lib_var=yes"
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13560 eval "ac_cv_lib_$ac_lib_var=no"
13565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13566 echo "$ac_t""yes" 1>&6
13569 echo "$ac_t""no" 1>&6
13577 echo "$ac_t""no" 1>&6
13580 if test -n "$have_dl"; then
13581 { test "$extra_verbose" = "yes" && cat << \EOF
13582 Defining HAVE_DLOPEN
13584 cat >> confdefs.h <<\EOF
13585 #define HAVE_DLOPEN 1
13591 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13592 echo "configure:13593: checking for shl_load in -ldld" >&5
13593 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13595 xe_check_libs=" -ldld "
13596 cat > conftest.$ac_ext <<EOF
13597 #line 13598 "configure"
13598 #include "confdefs.h"
13599 /* Override any gcc2 internal prototype to avoid an error. */
13600 /* We use char because int might match the return type of a gcc2
13601 builtin and then its argument prototype would still apply. */
13608 if { (eval echo configure:13609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13610 eval "ac_cv_lib_$ac_lib_var=yes"
13612 echo "configure: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13615 eval "ac_cv_lib_$ac_lib_var=no"
13620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13621 echo "$ac_t""yes" 1>&6
13622 libdl=dld have_dl=yes;
13623 { test "$extra_verbose" = "yes" && cat << \EOF
13624 Defining HAVE_SHL_LOAD
13626 cat >> confdefs.h <<\EOF
13627 #define HAVE_SHL_LOAD 1
13632 echo "$ac_t""no" 1>&6
13634 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13635 echo "configure:13636: checking for dld_init in -ldld" >&5
13636 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13638 xe_check_libs=" -ldld "
13639 cat > conftest.$ac_ext <<EOF
13640 #line 13641 "configure"
13641 #include "confdefs.h"
13642 /* Override any gcc2 internal prototype to avoid an error. */
13643 /* We use char because int might match the return type of a gcc2
13644 builtin and then its argument prototype would still apply. */
13651 if { (eval echo configure:13652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13653 eval "ac_cv_lib_$ac_lib_var=yes"
13655 echo "configure: failed program was:" >&5
13656 cat conftest.$ac_ext >&5
13658 eval "ac_cv_lib_$ac_lib_var=no"
13663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13664 echo "$ac_t""yes" 1>&6
13665 libdl=dld have_dl=yes;
13666 { test "$extra_verbose" = "yes" && cat << \EOF
13667 Defining HAVE_DLD_INIT
13669 cat >> confdefs.h <<\EOF
13670 #define HAVE_DLD_INIT 1
13675 echo "$ac_t""no" 1>&6
13684 if test -n "$have_dl"; then
13691 ld_dynamic_link_flags=
13693 xealias=$internal_configuration
13695 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13696 echo "configure:13697: checking how to build dynamic libraries for ${xehost}" >&5
13697 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13700 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13703 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13704 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13705 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13707 case "$xehost_os" in
13709 # AIX sometimes has problems with the GCC collect2 program. For some
13710 # reason, if we set the COLLECT_NAMES environment variable, the problems
13711 # vanish in a puff of smoke.
13712 if test "${COLLECT_NAMES+set}" != set; then
13714 export COLLECT_NAMES
13719 # Now see if the compiler is really GCC.
13720 if test "$GCC" = "yes"; then
13723 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13724 echo "configure:13725: checking checking whether we are using GNU C" >&5
13725 cat > conftest.$ac_ext <<EOF
13726 #line 13727 "configure"
13727 #include "confdefs.h"
13734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13735 egrep "yes" >/dev/null 2>&1; then
13744 echo "$ac_t""${XEGCC}" 1>&6
13747 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13748 echo "configure:13749: checking how to produce PIC code" >&5
13751 can_build_shared=yes
13752 if test "$XEGCC" = yes; then
13755 case "$xehost_os" in
13756 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13757 # PIC is the default for these OSes.
13760 aix3* | aix4* | os2*)
13761 # We can build DLLs from non-PIC.
13764 # FIXME: we need at least 68020 code to build shared libraries, but
13765 # adding the `-m68020' flag to GCC prevents building anything better,
13767 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13769 *cygwin* | *mingw* )
13770 # PIC is the default
13777 # PORTME Check for PIC flags for the system compiler.
13778 case "$xehost_os" in
13779 hpux9* | hpux1[0-9]*)
13780 # Is there a better link_static_flag that works with the bundled CC?
13787 # PIC (with -KPIC) is the default.
13791 # We can build DLLs from non-PIC.
13795 # All OSF/1 code is PIC.
13800 dll_cflags='-belf -Kpic'
13834 can_build_shared=no
13839 if test -n "$dll_cflags"; then
13840 echo "$ac_t""${dll_cflags}" 1>&6
13842 # Check to make sure the dll_cflags actually works.
13843 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13844 echo "configure:13845: checking if PIC flag ${dll_cflags} really works" >&5
13845 save_CFLAGS="$CFLAGS"
13846 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13847 cat > conftest.$ac_ext <<EOF
13848 #line 13849 "configure"
13849 #include "confdefs.h"
13855 if { (eval echo configure:13856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13858 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13859 # reports no error. So, we need to grep stderr for (Bundled).
13860 if grep '(Bundled)' config.log >/dev/null; then
13861 echo "$ac_t""no" 1>&6
13862 can_build_shared=no
13865 echo "$ac_t""yes" 1>&6
13868 echo "configure: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13871 echo "$ac_t""no" 1>&6
13872 can_build_shared=no
13876 CFLAGS="$save_CFLAGS"
13878 echo "$ac_t""none" 1>&6
13881 if test "$can_build_shared" = "yes"; then
13885 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13886 echo "configure:13887: checking if C compiler can produce shared libraries" >&5
13887 if test "$XEGCC" = yes; then
13890 else # Not using GCC
13891 case "$xehost_os" in
13893 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13894 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
13897 freebsd2* | netbsd* | openbsd*)
13899 xcldf="${wl}-Bshareable"
13908 xcldf="${wl}-b ${wl}+s"
13911 irix5* | irix6* | osf3* | osf4*)
13912 xcldf="${wl}-shared"
13916 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
13922 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
13923 xldf="-assert pure-text -Bstatic"
13926 fi # End if if we are using gcc
13928 if test -n "$xcldf"; then
13929 save_LDFLAGS=$LDFLAGS
13931 save_xe_libs=$xe_libs
13932 LDFLAGS="$xcldf $LDFLAGS"
13935 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13936 cat > conftest.$ac_ext <<EOF
13937 #line 13938 "configure"
13938 #include "confdefs.h"
13944 if { (eval echo configure:13945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13954 LDFLAGS=$save_LDFLAGS
13956 xe_libs=$save_xe_libs
13957 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13961 echo "$ac_t""${cc_produces_so}" 1>&6
13964 if test -z "$LTLD"; then
13966 if test "$XEGCC" = yes; then
13967 # Check if gcc -print-prog-name=ld gives a path.
13968 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13969 echo "configure:13970: checking for ld used by GCC" >&5
13970 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13972 # Accept absolute paths.
13974 if test -z "$LTLD"; then
13976 *gcc-lib*) LTLD="$CC"
13984 # If it fails, then pretend we aren't using GCC.
13988 # If it is relative, then search for the first ld in PATH.
13989 with_gnu_ld=unknown
13993 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
13994 echo "configure:13995: checking for GNU ld" >&5
13997 if test -z "$LTLD"; then
13998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13999 for ac_dir in $PATH; do
14000 test -z "$ac_dir" && ac_dir=.
14001 if test -f "$ac_dir/$ac_prog"; then
14002 LTLD="$ac_dir/$ac_prog"
14003 # Check to see if the program is GNU ld. I'd rather use --version,
14004 # but apparently some GNU ld's only accept -v.
14005 # Break only if it was the GNU/non-GNU ld that we prefer.
14006 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14016 if test -n "$LTLD"; then
14017 echo "$ac_t""${LTLD}" 1>&6
14019 echo "$ac_t""no" 1>&6
14022 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14023 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14028 ld_dynamic_link_flags=
14030 # Check to see if it really is or isn't GNU ld.
14031 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14032 echo "configure:14033: checking if the linker is GNU ld" >&5
14033 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14034 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14039 echo "$ac_t""${xe_gnu_ld}" 1>&6
14041 case "$xehost_os" in
14042 amigaos* | sunos4*)
14043 # On these operating systems, we should treat GNU ld like the system ld.
14044 gnu_ld_acts_native=yes
14047 gnu_ld_acts_native=no
14051 if test "$cc_produces_so" = "yes"; then
14054 can_build_shared=yes
14057 # OK - only NOW do we futz about with ld.
14058 # See if the linker supports building shared libraries.
14059 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14060 echo "configure:14061: checking whether the linker supports shared libraries" >&5
14062 dll_ldflags=$LDFLAGS
14064 can_build_shared=yes
14065 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14066 # See if GNU ld supports shared libraries.
14067 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14069 dll_ldflags="-shared"
14075 # PORTME fill in a description of your system's linker (not GNU ld)
14076 case "$xehost_os" in
14086 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14087 # support. Future versions do this automatically, but an explicit c++rt0.o
14088 # doesn't break anything, and helps significantly (at the cost of a little
14093 dll_post="/usr/lib/c++rt0.o"
14096 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14099 dll_ldflags="-Bshareable"
14102 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14104 dll_ldflags="-shared"
14118 # Tested with NetBSD 1.2 ld
14133 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14134 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14137 *gcc*) dll_ldflags="-shared"
14140 *) dll_ldflags="-G"
14146 if test "$XEGCC" = yes; then
14166 can_build_shared=no
14170 echo "$ac_t""${ld_shlibs}" 1>&6
14171 if test "$ld_shlibs" = "no"; then
14172 can_build_shared=no
14174 fi # End of if cc_produces_so = no
14177 if test "$xe_gnu_ld" = yes; then
14178 if test "$ld_shlibs" = yes; then
14179 ld_dynamic_link_flags="${wl}-export-dynamic"
14183 if test -z "$ld_dynamic_link_flags"; then
14184 case "$xehost_os" in
14186 ld_dynamic_link_flags=
14190 ld_dynamic_link_flags=
14194 ld_dynamic_link_flags=
14198 ld_dynamic_link_flags=
14202 ld_dynamic_link_flags=
14206 ld_dynamic_link_flags="${wl}-E"
14210 ld_dynamic_link_flags=
14214 ld_dynamic_link_flags=
14218 ld_dynamic_link_flags=
14222 ld_dynamic_link_flags=
14225 solaris2* | solaris7*)
14226 ld_dynamic_link_flags=
14229 sco3.2v5* | unixware* | sysv5* | sysv4*)
14230 ld_dynamic_link_flags="${wl}-Bexport"
14234 ld_dynamic_link_flags=
14238 ld_dynamic_link_flags=
14242 ld_dynamic_link_flags=
14246 fi # End of if -z ld_dynamic_link_flags
14247 fi # End of if test "$can_build_shared" = "yes"
14258 if test "$can_build_shared" = "yes"; then
14259 { test "$extra_verbose" = "yes" && cat << \EOF
14260 Defining HAVE_SHLIB
14262 cat >> confdefs.h <<\EOF
14263 #define HAVE_SHLIB 1
14267 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14268 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14270 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14271 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14272 for ac_func in dlerror _dlerror
14274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14275 echo "configure:14276: checking for $ac_func" >&5
14277 cat > conftest.$ac_ext <<EOF
14278 #line 14279 "configure"
14279 #include "confdefs.h"
14280 /* System header to define __stub macros and hopefully few prototypes,
14281 which can conflict with char $ac_func(); below. */
14282 #include <assert.h>
14283 /* Override any gcc2 internal prototype to avoid an error. */
14284 /* We use char because int might match the return type of a gcc2
14285 builtin and then its argument prototype would still apply. */
14290 /* The GNU C library defines this for functions which it implements
14291 to always fail with ENOSYS. Some functions are actually named
14292 something starting with __ and the normal name is an alias. */
14293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14301 if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14303 eval "ac_cv_func_$ac_func=yes"
14305 echo "configure: failed program was:" >&5
14306 cat conftest.$ac_ext >&5
14308 eval "ac_cv_func_$ac_func=no"
14312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14313 echo "$ac_t""yes" 1>&6
14314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14315 { test "$extra_verbose" = "yes" && cat << EOF
14316 Defining $ac_tr_func
14318 cat >> confdefs.h <<EOF
14319 #define $ac_tr_func 1
14324 echo "$ac_t""no" 1>&6
14330 if test "$with_modules" = "yes"; then
14331 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14333 echo "configure: warning: "Module support cannot be provided."" 1>&2
14339 cat > conftest.$ac_ext <<EOF
14340 #line 14341 "configure"
14341 #include "confdefs.h"
14342 int main(int c,char *v[]){return 0;}
14344 if { (eval echo configure:14345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14354 echo "*** PANIC *** The C compiler can no longer build working executables."
14355 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
14356 echo "*** PANIC *** The most likely reason for this problem is that configure"
14357 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
14358 echo "*** PANIC *** found at run time."
14359 echo "*** PANIC ***"
14360 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
14361 echo "*** PANIC *** On other systems, try telling configure where to find the"
14362 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
14363 echo "*** PANIC ***"
14364 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
14365 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
14366 echo "*** PANIC *** on your system. Don't do that."
14371 if test "$win32_processes" = "yes"; then
14372 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
14373 echo " xemacs will be linked with \"process-nt.o\""
14376 { test "$extra_verbose" = "yes" && cat << \EOF
14377 Defining HAVE_UNIX_PROCESSES
14379 cat >> confdefs.h <<\EOF
14380 #define HAVE_UNIX_PROCESSES 1
14384 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
14385 echo " xemacs will be linked with \"process-unix.o\""
14392 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14397 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14402 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
14403 c_switch_general="$T"
14407 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14408 c_switch_window_system="$T"
14412 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14417 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
14418 ld_switch_general="$T"
14422 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14423 ld_switch_window_system="$T"
14427 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14432 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14433 ld_libs_general="$T"
14437 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14438 ld_libs_window_system="$T"
14442 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14447 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14448 internal_makefile_list="Makefile.in"
14449 SUBDIR_MAKEFILES=''
14450 test -d lock || mkdir lock
14451 for dir in $MAKE_SUBDIR; do
14452 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
14453 test -d "$d" || mkdir "$d"; cd "$d"
14455 * ) test -d "$dir" || mkdir "$dir" ;;
14459 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14460 SUBDIR_MAKEFILES="$T"
14464 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14465 internal_makefile_list="$T"
14472 for dir in src/s src/m; do
14473 if test ! -d "$dir" ; then
14474 echo Making symbolic link to "$srcdir/$dir"
14475 ${LN_S} "$srcdir/$dir" "$dir"
14479 if test "$extra_verbose" = "yes"; then
14481 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
14486 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
14487 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
14488 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
14491 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
14492 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
14493 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
14496 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
14497 test "$extra_verbose" = "yes" && echo "creating TAGS"
14499 $srcdir/TAGS,include" > "TAGS"
14502 if test "$__SUNPRO_C" = "yes"; then
14503 test "$extra_verbose" = "yes" && echo "creating .sbinit"
14504 ( echo "# For use with Sun WorkShop's Source browser."
14505 echo "# See sbquery(1) and sbinit(4) for more information"
14506 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14533 *\$* ) eval "PREFIX=$PREFIX" ;;
14541 EXEC_PREFIX=$exec_prefix
14543 case "$EXEC_PREFIX" in
14544 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
14555 *\$* ) eval "INFODIR=$INFODIR" ;;
14565 case "$INFOPATH" in
14566 *\$* ) eval "INFOPATH=$INFOPATH" ;;
14574 PACKAGE_PATH=$package_path
14576 case "$PACKAGE_PATH" in
14577 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
14588 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14596 MODULEDIR=$moduledir
14598 case "$MODULEDIR" in
14599 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14607 SITELISPDIR=$sitelispdir
14609 case "$SITELISPDIR" in
14610 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14618 SITEMODULEDIR=$sitemoduledir
14620 case "$SITEMODULEDIR" in
14621 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14632 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14643 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14651 ARCHLIBDIR=$archlibdir
14653 case "$ARCHLIBDIR" in
14654 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14678 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14686 : ${XEMACS_CC:=$CC}
14689 if test "$with_prefix" = "yes"; then
14690 { test "$extra_verbose" = "yes" && cat << \EOF
14691 Defining PREFIX_USER_DEFINED
14693 cat >> confdefs.h <<\EOF
14694 #define PREFIX_USER_DEFINED 1
14700 if test "$with_site_lisp" = "no"; then
14701 { test "$extra_verbose" = "yes" && cat << \EOF
14702 Defining INHIBIT_SITE_LISP
14704 cat >> confdefs.h <<\EOF
14705 #define INHIBIT_SITE_LISP 1
14710 if test "$with_site_modules" = "no"; then
14711 { test "$extra_verbose" = "yes" && cat << \EOF
14712 Defining INHIBIT_SITE_MODULES
14714 cat >> confdefs.h <<\EOF
14715 #define INHIBIT_SITE_MODULES 1
14723 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14724 ac_configure_args="$T"
14726 { test "$extra_verbose" = "yes" && cat << EOF
14727 Defining EMACS_CONFIGURATION = "$configuration"
14729 cat >> confdefs.h <<EOF
14730 #define EMACS_CONFIGURATION "$configuration"
14734 { test "$extra_verbose" = "yes" && cat << EOF
14735 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14737 cat >> confdefs.h <<EOF
14738 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14745 { test "$extra_verbose" = "yes" && cat << EOF
14746 Defining LD_SWITCH_X_SITE = $null_string
14748 cat >> confdefs.h <<EOF
14749 #define LD_SWITCH_X_SITE $null_string
14753 { test "$extra_verbose" = "yes" && cat << EOF
14754 Defining LD_SWITCH_X_SITE_AUX = $null_string
14756 cat >> confdefs.h <<EOF
14757 #define LD_SWITCH_X_SITE_AUX $null_string
14761 { test "$extra_verbose" = "yes" && cat << EOF
14762 Defining C_SWITCH_X_SITE = $null_string
14764 cat >> confdefs.h <<EOF
14765 #define C_SWITCH_X_SITE $null_string
14769 { test "$extra_verbose" = "yes" && cat << EOF
14770 Defining LD_SWITCH_SITE = $null_string
14772 cat >> confdefs.h <<EOF
14773 #define LD_SWITCH_SITE $null_string
14777 { test "$extra_verbose" = "yes" && cat << EOF
14778 Defining C_SWITCH_SITE = $null_string
14780 cat >> confdefs.h <<EOF
14781 #define C_SWITCH_SITE $null_string
14787 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14788 Defining GNU_MALLOC
14790 cat >> confdefs.h <<\EOF
14791 #define GNU_MALLOC 1
14795 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14796 Defining USE_SYSTEM_MALLOC
14798 cat >> confdefs.h <<\EOF
14799 #define USE_SYSTEM_MALLOC 1
14803 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14804 Defining USE_DEBUG_MALLOC
14806 cat >> confdefs.h <<\EOF
14807 #define USE_DEBUG_MALLOC 1
14811 { test "$extra_verbose" = "yes" && cat << \EOF
14812 Defining USE_SYSTEM_MALLOC
14814 cat >> confdefs.h <<\EOF
14815 #define USE_SYSTEM_MALLOC 1
14820 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14823 cat >> confdefs.h <<\EOF
14828 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14831 cat >> confdefs.h <<\EOF
14836 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14837 Defining EXTERNAL_WIDGET
14839 cat >> confdefs.h <<\EOF
14840 #define EXTERNAL_WIDGET 1
14844 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14845 Defining QUICK_BUILD
14847 cat >> confdefs.h <<\EOF
14848 #define QUICK_BUILD 1
14852 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14855 cat >> confdefs.h <<\EOF
14860 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14863 cat >> confdefs.h <<\EOF
14868 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14869 Defining MAIL_USE_POP
14871 cat >> confdefs.h <<\EOF
14872 #define MAIL_USE_POP 1
14876 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14879 cat >> confdefs.h <<\EOF
14884 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14887 cat >> confdefs.h <<\EOF
14892 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14893 Defining USE_UNION_TYPE
14895 cat >> confdefs.h <<\EOF
14896 #define USE_UNION_TYPE 1
14900 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14903 cat >> confdefs.h <<\EOF
14911 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
14913 echo "uname -a: `uname -a`"
14916 echo "$0 $quoted_arguments"
14919 if test ! -z ${emacs_beta_version} ; then
14920 if test -z "${emacs_is_beta}" ; then
14921 xemacs_betaname=".${emacs_beta_version}"
14923 xemacs_betaname="-b${emacs_beta_version}"
14932 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
14935 Compilation / Installation:"
14936 echo " Source code location: $srcdir"
14937 echo " Installation prefix: $prefix"
14938 if test -n "$site_includes"; then
14939 echo " Additional header files: $site_includes"
14941 if test -n "$site_libraries"; then
14942 echo " Additional libraries: $site_libraries"
14944 if test -n "$site_prefixes"; then
14945 echo " Additional prefixes: $site_prefixes"
14947 if test -n "$runpath"; then
14948 echo " Runtime library search path: $runpath"
14951 if test -n "$opsysfile"
14952 then echo " Operating system description file: \`$opsysfile'"
14953 else echo " Not using any operating system description file"
14955 if test -n "$machfile"
14956 then echo " Machine description file: \`$machfile'"
14957 else echo " Not using any machine description file"
14960 echo " Compiler: $CC $CFLAGS"
14961 echo " Relocating allocator for buffers: $rel_alloc"
14962 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
14966 if test "$with_msw" = "yes"; then
14967 echo " Compiling in support for the Microsoft window system."
14969 if test "$with_x11" = "yes"; then
14970 echo " Compiling in support for the X window system:"
14971 echo " - X Windows headers location: $x_includes"
14972 echo " - X Windows libraries location: $x_libraries"
14973 if test "$with_xauth" != yes; then
14974 echo " - Xau (X authority) not available."
14976 if test "$with_xmu" != yes; then
14977 echo " - Xmu library not available; substituting equivalent routines."
14979 if test "$with_wmcommand" != no; then
14980 echo " - Handling WM_COMMAND properly."
14983 if test "$need_athena" = "yes"; then
14984 echo " Compiling in support for the Athena widget set:"
14985 echo " - Athena headers location: $athena_h_path"
14986 echo " - Athena library to link: $athena_lib"
14988 case "$with_menubars" in
14989 lucid ) echo " Using Lucid menubars." ;;
14990 motif ) echo " Using Motif menubars."
14991 echo " *WARNING* The Motif menubar implementation is currently buggy."
14992 echo " We recommend using the Lucid menubar instead."
14993 echo " Re-run configure with --with-menubars='lucid'." ;;
14994 msw ) echo " Using MS-Windows menubars." ;;
14996 case "$with_scrollbars" in
14997 lucid ) echo " Using Lucid scrollbars." ;;
14998 motif ) echo " Using Motif scrollbars." ;;
14999 athena ) echo " Using Athena scrollbars." ;;
15000 msw ) echo " Using MS-Windows scrollbars." ;;
15002 case "$with_dialogs" in
15003 motif ) echo " Using Motif dialog boxes."
15004 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15005 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15006 echo " We recommend using the Athena dialog boxes instead."
15007 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15008 echo " Read the PROBLEMS file for more information."
15010 athena ) echo " Using Athena dialog boxes." ;;
15011 msw ) echo " Using MS-Windows dialog boxes." ;;
15013 case "$with_widgets" in
15014 motif ) echo " Using Motif native widgets." ;;
15015 athena ) echo " Using Athena native widgets." ;;
15016 msw ) echo " Using MS-Windows native widgets." ;;
15018 if test "$with_dragndrop" = yes; then
15019 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15020 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15025 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15026 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15030 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15031 if test "$with_xpm" = yes; then
15032 echo " Compiling in support for XPM images."
15033 elif test "$with_x11" = yes; then
15034 echo " WARNING: -----------------------------------------------------------"
15035 echo " WARNING: Compiling without XPM image support."
15036 if test "$xpm_problem" != ""; then
15037 echo " Reason: $xpm_problem"
15039 echo " WARNING: You should strongly consider installing XPM."
15040 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15041 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15042 echo " WARNING: -----------------------------------------------------------"
15044 if test "$with_png" = yes; then
15045 echo " Compiling in support for PNG images."
15046 elif test "$window_system" != "none"; then
15047 echo " WARNING: -----------------------------------------------------------"
15048 echo " WARNING: Compiling without PNG image support."
15049 if test "$png_problem" != ""; then
15050 echo " Reason: $png_problem"
15052 echo " WARNING: You should strongly consider installing the PNG libraries."
15053 echo " WARNING: Otherwise certain images and glyphs may not display."
15054 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15055 echo " WARNING: -----------------------------------------------------------"
15057 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15058 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15059 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15063 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15064 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15065 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15066 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15070 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15071 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15072 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15073 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15074 if test "$with_postgresql" = yes; then
15075 echo " Compiling in support for PostgreSQL."
15076 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15077 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15081 Internationalization:"
15082 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15083 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15084 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15085 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15086 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15087 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15088 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15089 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15090 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15091 if test "$with_wnn" = yes; then
15092 echo " Compiling in support for the WNN input method on Mule."
15093 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15095 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15099 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15100 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15101 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15102 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15106 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15107 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15108 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15109 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15110 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15111 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15112 test "$pdump" = yes && echo " Using the new portable dumper."
15113 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15114 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15115 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15116 != "no no no no no no"; then
15117 echo " WARNING: ---------------------------------------------------------"
15118 echo " WARNING: Compiling in support for runtime error checking."
15119 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15120 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15121 echo " WARNING: ---------------------------------------------------------"
15124 ) | tee -a Installation
15128 # Remove any trailing slashes in these variables.
15129 test -n "$prefix" &&
15130 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15131 test -n "$exec_prefix" &&
15132 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15135 for file in $internal_makefile_list; do
15136 test "$file" = src/Makefile.in && \
15137 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15138 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15140 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15141 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
15145 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15148 # Let make expand exec_prefix.
15149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15151 # Any assignment to VPATH causes Sun make to only execute
15152 # the first set of double-colon rules, so remove it if not needed.
15153 # If there is a colon in the path, we need to keep it.
15154 if test "x$srcdir" = x.; then
15155 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15158 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15160 DEFS=-DHAVE_CONFIG_H
15162 # Without the "./", some shells look in PATH for config.status.
15163 : ${CONFIG_STATUS=./config.status}
15165 echo creating $CONFIG_STATUS
15166 rm -f $CONFIG_STATUS
15167 cat > $CONFIG_STATUS <<EOF
15169 # Generated automatically by configure.
15170 # Run this file to recreate the current configuration.
15171 # This directory was configured as follows,
15172 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15174 # $0 $ac_configure_args
15176 # Compiler output produced by configure, useful for debugging
15177 # configure, is in ./config.log if it exists.
15179 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15182 case "\$ac_option" in
15183 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15184 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15185 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15186 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15187 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15189 -help | --help | --hel | --he | --h)
15190 echo "\$ac_cs_usage"; exit 0 ;;
15191 *) echo "\$ac_cs_usage"; exit 1 ;;
15195 ac_given_srcdir=$srcdir
15196 ac_given_INSTALL="$INSTALL"
15198 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15200 cat >> $CONFIG_STATUS <<EOF
15202 # Protect against being on the right side of a sed subst in config.status.
15203 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15204 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15208 s%@CFLAGS@%$CFLAGS%g
15209 s%@CPPFLAGS@%$CPPFLAGS%g
15210 s%@CXXFLAGS@%$CXXFLAGS%g
15211 s%@FFLAGS@%$FFLAGS%g
15213 s%@LDFLAGS@%$LDFLAGS%g
15215 s%@exec_prefix@%$exec_prefix%g
15216 s%@prefix@%$prefix%g
15217 s%@program_transform_name@%$program_transform_name%g
15218 s%@bindir@%$bindir%g
15219 s%@sbindir@%$sbindir%g
15220 s%@libexecdir@%$libexecdir%g
15221 s%@datadir@%$datadir%g
15222 s%@sysconfdir@%$sysconfdir%g
15223 s%@sharedstatedir@%$sharedstatedir%g
15224 s%@localstatedir@%$localstatedir%g
15225 s%@libdir@%$libdir%g
15226 s%@includedir@%$includedir%g
15227 s%@oldincludedir@%$oldincludedir%g
15228 s%@infodir@%$infodir%g
15229 s%@mandir@%$mandir%g
15231 s%@blddir@%$blddir%g
15234 s%@start_flags@%$start_flags%g
15235 s%@ld_switch_shared@%$ld_switch_shared%g
15236 s%@start_files@%$start_files%g
15238 s%@lib_gcc@%$lib_gcc%g
15239 s%@RANLIB@%$RANLIB%g
15240 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15241 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15242 s%@INSTALL_DATA@%$INSTALL_DATA%g
15244 s%@SET_MAKE@%$SET_MAKE%g
15245 s%@X_CFLAGS@%$X_CFLAGS%g
15246 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15247 s%@X_LIBS@%$X_LIBS%g
15248 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15249 s%@install_pp@%$install_pp%g
15250 s%@libs_xauth@%$libs_xauth%g
15251 s%@dnd_objs@%$dnd_objs%g
15252 s%@lwlib_objs@%$lwlib_objs%g
15253 s%@ALLOCA@%$ALLOCA%g
15254 s%@have_esd_config@%$have_esd_config%g
15255 s%@dll_ld@%$dll_ld%g
15256 s%@dll_cflags@%$dll_cflags%g
15257 s%@dll_ldflags@%$dll_ldflags%g
15258 s%@dll_post@%$dll_post%g
15259 s%@dll_ldo@%$dll_ldo%g
15260 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15261 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15262 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15263 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15264 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15265 s%@PROGNAME@%$PROGNAME%g
15266 s%@version@%$version%g
15267 s%@configuration@%$configuration%g
15268 s%@canonical@%$canonical%g
15269 s%@inststaticdir@%$inststaticdir%g
15270 s%@instvardir@%$instvardir%g
15271 s%@srcdir@%$srcdir%g
15272 s%@pkgdir@%$pkgdir%g
15273 s%@statedir@%$statedir%g
15274 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15275 s%@PREFIX@%$PREFIX%g
15276 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15277 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15278 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15279 s%@INFODIR@%$INFODIR%g
15280 s%@infopath@%$infopath%g
15281 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15282 s%@INFOPATH@%$INFOPATH%g
15283 s%@package_path@%$package_path%g
15284 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15285 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15286 s%@lispdir@%$lispdir%g
15287 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15288 s%@LISPDIR@%$LISPDIR%g
15289 s%@moduledir@%$moduledir%g
15290 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15291 s%@MODULEDIR@%$MODULEDIR%g
15292 s%@sitelispdir@%$sitelispdir%g
15293 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15294 s%@SITELISPDIR@%$SITELISPDIR%g
15295 s%@sitemoduledir@%$sitemoduledir%g
15296 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15297 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15298 s%@etcdir@%$etcdir%g
15299 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15300 s%@ETCDIR@%$ETCDIR%g
15301 s%@docdir@%$docdir%g
15302 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15303 s%@DOCDIR@%$DOCDIR%g
15304 s%@archlibdir@%$archlibdir%g
15305 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15306 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15307 s%@bitmapdir@%$bitmapdir%g
15308 s%@extra_objs@%$extra_objs%g
15309 s%@machfile@%$machfile%g
15310 s%@opsysfile@%$opsysfile%g
15311 s%@c_switch_general@%$c_switch_general%g
15312 s%@c_switch_window_system@%$c_switch_window_system%g
15313 s%@c_switch_all@%$c_switch_all%g
15314 s%@ld_switch_general@%$ld_switch_general%g
15315 s%@ld_switch_window_system@%$ld_switch_window_system%g
15316 s%@ld_switch_all@%$ld_switch_all%g
15317 s%@ld_libs_general@%$ld_libs_general%g
15318 s%@ld_libs_window_system@%$ld_libs_window_system%g
15319 s%@ld_libs_all@%$ld_libs_all%g
15320 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15321 s%@native_sound_lib@%$native_sound_lib%g
15322 s%@sound_cflags@%$sound_cflags%g
15323 s%@dynodump_arch@%$dynodump_arch%g
15324 s%@XEMACS_CC@%$XEMACS_CC%g
15325 s%@internal_makefile_list@%$internal_makefile_list%g
15330 cat >> $CONFIG_STATUS <<\EOF
15332 # Split the substitutions into bite-sized pieces for seds with
15333 # small command number limits, like on Digital OSF/1 and HP-UX.
15334 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15335 ac_file=1 # Number of current file.
15336 ac_beg=1 # First line for current file.
15337 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15340 while $ac_more_lines; do
15341 if test $ac_beg -gt 1; then
15342 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15344 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15346 if test ! -s conftest.s$ac_file; then
15347 ac_more_lines=false
15348 rm -f conftest.s$ac_file
15350 if test -z "$ac_sed_cmds"; then
15351 ac_sed_cmds="sed -f conftest.s$ac_file"
15353 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15355 ac_file=`expr $ac_file + 1`
15357 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15360 if test -z "$ac_sed_cmds"; then
15365 cat >> $CONFIG_STATUS <<EOF
15367 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
15369 cat >> $CONFIG_STATUS <<\EOF
15370 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15373 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15374 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15375 *) ac_file_in="${ac_file}.in" ;;
15378 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15380 # Remove last slash and all that follows it. Not all systems have dirname.
15381 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15382 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15383 # The file is in a subdirectory.
15384 test ! -d "$ac_dir" && mkdir "$ac_dir"
15385 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15386 # A "../" for each directory in $ac_dir_suffix.
15387 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15389 ac_dir_suffix= ac_dots=
15392 case "$ac_given_srcdir" in
15394 if test -z "$ac_dots"; then top_srcdir=.
15395 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15396 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15397 *) # Relative path.
15398 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15399 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15402 case "$ac_given_INSTALL" in
15403 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15404 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15407 echo creating "$ac_file"
15409 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15411 *Makefile*) ac_comsub="1i\\
15412 # $configure_input" ;;
15416 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15418 s%@configure_input@%$configure_input%g
15419 s%@srcdir@%$srcdir%g
15420 s%@top_srcdir@%$top_srcdir%g
15421 s%@INSTALL@%$INSTALL%g
15422 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15426 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15427 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15429 # ac_d sets the value in "#define NAME VALUE" lines.
15430 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15431 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15434 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15435 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15436 ac_uB='\([ ]\)%\1#\2define\3'
15439 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15440 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15441 ac_eB='$%\1#\2define\3'
15445 if test "${CONFIG_HEADERS+set}" != set; then
15447 cat >> $CONFIG_STATUS <<EOF
15448 CONFIG_HEADERS="src/config.h lwlib/config.h"
15450 cat >> $CONFIG_STATUS <<\EOF
15452 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15455 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15456 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15457 *) ac_file_in="${ac_file}.in" ;;
15460 echo creating $ac_file
15462 rm -f conftest.frag conftest.in conftest.out
15463 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15464 cat $ac_file_inputs > conftest.in
15468 # Transform confdefs.h into a sed script conftest.vals that substitutes
15469 # the proper values into config.h.in to produce config.h. And first:
15470 # Protect against being on the right side of a sed subst in config.status.
15471 # Protect against being in an unquoted here document in config.status.
15472 rm -f conftest.vals
15473 cat > conftest.hdr <<\EOF
15476 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15480 sed -n -f conftest.hdr confdefs.h > conftest.vals
15483 # This sed command replaces #undef with comments. This is necessary, for
15484 # example, in the case of _POSIX_SOURCE, which is predefined and required
15485 # on some systems where configure will not decide to define it.
15486 cat >> conftest.vals <<\EOF
15487 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15490 # Break up conftest.vals because some shells have a limit on
15491 # the size of here documents, and old seds have small limits too.
15493 rm -f conftest.tail
15496 ac_lines=`grep -c . conftest.vals`
15497 # grep -c gives empty output for an empty file on some AIX systems.
15498 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15499 # Write a limited-size here document to conftest.frag.
15500 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15501 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15503 sed -f conftest.frag conftest.in > conftest.out
15505 mv conftest.out conftest.in
15506 ' >> $CONFIG_STATUS
15507 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15508 rm -f conftest.vals
15509 mv conftest.tail conftest.vals
15511 rm -f conftest.vals
15513 cat >> $CONFIG_STATUS <<\EOF
15514 rm -f conftest.frag conftest.h
15515 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15516 cat conftest.in >> conftest.h
15518 if cmp -s $ac_file conftest.h 2>/dev/null; then
15519 echo "$ac_file is unchanged"
15522 # Remove last slash and all that follows it. Not all systems have dirname.
15523 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15524 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15525 # The file is in a subdirectory.
15526 test ! -d "$ac_dir" && mkdir "$ac_dir"
15529 mv conftest.h $ac_file
15534 cat >> $CONFIG_STATUS <<EOF
15536 top_srcdir="$srcdir"
15537 MAKE_SUBDIR="$MAKE_SUBDIR"
15540 cat >> $CONFIG_STATUS <<\EOF
15541 for dir in . $MAKE_SUBDIR; do
15546 sed -e '/^# Generated/d' \
15547 -e 's%/\*\*/#.*%%' \
15562 echo creating $dir/Makefile
15563 $CPP -I. -I${top_srcdir}/src junk.c \
15564 | sed -e 's/^\#.*//' \
15565 -e 's/^[ ][ ]*$//'\
15573 chmod 444 Makefile.new
15574 mv -f Makefile.new Makefile
15576 echo creating $dir/GNUmakefile
15577 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
15578 | sed -e 's/^\#.*//' \
15579 -e 's/^[ ][ ]*$//'\
15587 chmod 444 Makefile.new
15588 mv -f Makefile.new GNUmakefile
15594 sed < config.status >> lib-src/config.values \
15595 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15596 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15597 -e 's/^\([^ ]*\) $/\1 ""/' \
15603 chmod +x $CONFIG_STATUS
15604 rm -fr confdefs* $ac_clean_files
15605 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1