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-osf[4-9]* ) opsys=decosf4-0 ;;
1147 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1148 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1149 *-*-ultrix* ) opsys=ultrix4-3 ;;
1151 *-*-aix3.1* ) opsys=aix3-1 ;;
1152 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1153 *-*-aix3* ) opsys=aix3-2 ;;
1154 *-*-aix4.0* ) opsys=aix4 ;;
1155 *-*-aix4.1* ) opsys=aix4-1 ;;
1156 *-*-aix4* ) opsys=aix4-2 ;;
1158 *-gnu* ) opsys=gnu ;;
1159 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1160 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1161 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1162 *-*-aos4.2 ) opsys=bsd4-2 ;;
1163 *-*-aos* ) opsys=bsd4-3 ;;
1164 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1165 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1166 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1167 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1168 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1169 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1170 if test -z "$NON_GNU_CPP" ; then
1171 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1172 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1176 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1177 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1180 case "$canonical" in
1183 case "$canonical" in
1184 i[3-9]86-*-netbsd*) machine=intel386 ;;
1185 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1186 machine=hp9000s300 ;;
1187 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1188 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1193 case "${canonical}" in
1194 i386-*-openbsd*) machine=intel386 ;;
1195 m68k-*-openbsd*) machine=hp9000s300 ;;
1196 mipsel-*-openbsd*) machine=pmax ;;
1200 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1201 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1203 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1204 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1206 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1208 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1210 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1212 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1214 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1216 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1217 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1218 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1221 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1223 *-convex-bsd* | *-convex-convexos* )
1224 machine=convex opsys=bsd4-3
1225 NON_GNU_CPP="cc -E -P"
1228 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1230 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1231 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1232 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1233 m88k-dg-dgux* ) opsys=dgux ;;
1235 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1236 m88k-motorola-sysv4* )
1237 machine=delta88k opsys=usg5-4-2
1239 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1241 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1242 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1244 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1246 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1247 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1248 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1251 case "`uname -r`" in
1252 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1253 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1255 NON_GNU_CPP="/lib/cpp"
1257 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1258 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1260 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1262 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1265 case "$canonical" in
1266 m68* ) machine=hp9000s300 ;;
1267 hppa* ) machine=hp800 ;;
1270 case "$canonical" in
1271 *-hp-hpux7* ) opsys=hpux ;;
1272 *-hp-hpux8* ) opsys=hpux8 ;;
1273 *-hp-hpux9* ) opsys=hpux9 ;;
1274 *-hp-hpux10* ) opsys=hpux10 ;;
1275 *-hp-hpux11* ) opsys=hpux11 ;;
1279 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1280 echo " xemacs will be linked with \"strcat.o\""
1283 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1284 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1285 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1287 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1290 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1291 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1293 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1294 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1295 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1296 romp-ibm-aos* ) opsys=bsd4-3 ;;
1297 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1298 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1300 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1301 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1303 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1305 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1307 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1309 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1311 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1313 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1315 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1317 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1319 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1321 mips-mips-usg* ) machine=mips4 ;;
1324 NON_GNU_CC="cc -systype bsd43"
1325 NON_GNU_CPP="cc -systype bsd43 -E"
1326 case "$canonical" in
1327 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1328 mips-mips-riscos5* ) opsys=riscos5 ;;
1331 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1332 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1334 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1336 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1338 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1339 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1341 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1343 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1345 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1347 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1349 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1350 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1352 mips-siemens-sysv* | mips-sni-sysv*)
1353 machine=mips-siemens opsys=usg5-4
1354 NON_GNU_CC=/usr/ccs/bin/cc
1355 NON_GNU_CPP=/usr/ccs/lib/cpp
1360 NON_GNU_CC=/usr/ccs/bin/cc
1361 NON_GNU_CPP=/usr/ccs/lib/cpp
1364 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1365 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1366 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1367 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1368 mips-sgi-irix6* ) opsys=irix6-0 ;;
1369 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1370 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1371 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1372 mips-sgi-irix* ) opsys=irix5-0 ;;
1374 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1375 *-sony-news* ) opsys=newsos5 ;;
1377 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1379 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1380 case "$canonical" in
1381 m68*-sunos1* ) machine=sun1 ;;
1382 m68*-sunos2* ) machine=sun2 ;;
1383 m68* ) machine=sun3 ;;
1384 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1385 i*86-*-* ) machine=intel386 ;;
1386 rs6000* ) machine=rs6000 ;;
1389 case "$canonical" in *-sunos5*)
1390 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1393 case "$canonical" in
1395 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1398 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1402 case "$canonical" in
1405 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1406 { test "$extra_verbose" = "yes" && cat << EOF
1407 Defining OS_RELEASE = $os_release
1409 cat >> confdefs.h <<EOF
1410 #define OS_RELEASE $os_release
1415 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1416 *-sunos4.0* ) opsys=sunos4-0 ;;
1417 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1418 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1419 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1420 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1421 *-mach* ) opsys=mach-bsd4-3 ;;
1425 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1427 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1430 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1432 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1433 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1435 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1437 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1439 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1440 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1442 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1444 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1447 case "$canonical" in
1448 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1449 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1450 *-mach* ) opsys=mach-bsd4-3 ;;
1454 ns16k-whitechapel-* ) machine=mg1 ;;
1456 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1460 case "$canonical" in
1461 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1462 *-isc2.2* ) opsys=isc2-2 ;;
1463 *-isc4.0* ) opsys=isc4-0 ;;
1464 *-isc4.* ) opsys=isc4-1
1465 GCC_TEST_OPTIONS=-posix
1466 NON_GCC_TEST_OPTIONS=-Xp
1468 *-isc* ) opsys=isc3-0 ;;
1469 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1470 *-esix* ) opsys=esix ;;
1471 *-mach* ) opsys=mach-bsd4-3 ;;
1472 *-xenix* ) opsys=xenix ;;
1473 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1474 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1475 *-bsdi4* ) opsys=bsdos4 ;;
1476 *-bsdi3* ) opsys=bsdos3 ;;
1477 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1478 *-bsdi2* ) opsys=bsdos2 ;;
1479 *-sco3.2v5* ) opsys=sco5 ;
1480 if test "$dynamic" = "yes" ; then
1481 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1483 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1485 *-sysv5* ) opsys=sco7 ;;
1486 *-386bsd* ) opsys=386bsd ;;
1487 *-freebsd* ) opsys=freebsd ;;
1488 *-nextstep* ) opsys=nextstep ;;
1489 *-pc-cygwin* ) opsys=cygwin32 ;;
1490 *-pc-mingw* ) opsys=mingw32 ;
1491 test -z "$with_tty" && with_tty="no";;
1495 m68k-*-linux* ) machine=m68k opsys=linux ;;
1499 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1500 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1502 if test -r "${srcdir}/src/m/${machine}.h"; then
1503 machfile="m/${machine}.h"
1504 { test "$extra_verbose" = "yes" && cat << EOF
1505 Defining config_machfile = "$machfile"
1507 cat >> confdefs.h <<EOF
1508 #define config_machfile "$machfile"
1513 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1514 echo "Using configure-time autodetection only."
1517 if test -r "${srcdir}/src/s/${opsys}.h"; then
1518 opsysfile="s/${opsys}.h"
1519 { test "$extra_verbose" = "yes" && cat << EOF
1520 Defining config_opsysfile = "$opsysfile"
1522 cat >> confdefs.h <<EOF
1523 #define config_opsysfile "$opsysfile"
1528 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1529 echo "Using configure-time autodetection only."
1533 if test -z "$dynamic"; then
1535 hpux* | sunos4* ) dynamic=no ;;
1539 if test "$dynamic" = "yes"; then
1541 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1542 decosf* ) ld_call_shared="-call_shared" ;;
1544 else case "$opsys" in
1546 echo "Static linking is not supported on Solaris 2."
1547 echo "Rerun configure without specifying --dynamic=no."
1549 linux ) ld_call_shared="-Bstatic" ;;
1550 decosf* ) ld_call_shared="-non_shared" ;;
1554 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1556 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1557 { test "$extra_verbose" = "yes" && cat << EOF
1558 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1560 cat >> confdefs.h <<EOF
1561 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1567 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1568 if test "$with_workshop $with_tooltalk" = "yes no"; then
1569 (echo "$progname: Usage error:"
1570 echo " " "--with-workshop requires --with-tooltalk"
1571 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1572 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1573 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1576 if test "$with_workshop" = "yes"; then
1577 { test "$extra_verbose" = "yes" && cat << \EOF
1580 cat >> confdefs.h <<\EOF
1585 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1586 echo " xemacs will be linked with \"sunpro.o\""
1590 if test "$with_clash_detection" != "no"; then
1591 { test "$extra_verbose" = "yes" && cat << \EOF
1592 Defining CLASH_DETECTION
1594 cat >> confdefs.h <<\EOF
1595 #define CLASH_DETECTION 1
1599 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1600 echo " xemacs will be linked with \"filelock.o\""
1604 test -n "$compiler" && CC="$compiler"
1605 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1608 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1609 if test "${CFLAGS-unset}" != unset
1610 then cflags_specified=yes;
1611 else cflags_specified=no;
1614 xe_save_CFLAGS="$CFLAGS"
1616 # Extract the first word of "gcc", so it can be a program name with args.
1617 set dummy gcc; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1626 for ac_dir in $ac_dummy; do
1627 test -z "$ac_dir" && ac_dir=.
1628 if test -f $ac_dir/$ac_word; then
1636 if test -n "$CC"; then
1637 echo "$ac_t""$CC" 1>&6
1639 echo "$ac_t""no" 1>&6
1642 if test -z "$CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_word" >&5
1648 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test.
1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1654 for ac_dir in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1658 ac_prog_rejected=yes
1666 if test $ac_prog_rejected = yes; then
1667 # We found a bogon in the path, so make sure we never use it.
1668 set dummy $ac_cv_prog_CC
1670 if test $# -gt 0; then
1671 # We chose a different compiler from the bogus one.
1672 # However, it has the same basename, so the bogon will be chosen
1673 # first if we set CC to just the basename; use the full file name.
1675 set dummy "$ac_dir/$ac_word" "$@"
1682 if test -n "$CC"; then
1683 echo "$ac_t""$CC" 1>&6
1685 echo "$ac_t""no" 1>&6
1688 if test -z "$CC"; then
1689 case "`uname -s`" in
1691 # Extract the first word of "cl", so it can be a program name with args.
1692 set dummy cl; ac_word=$2
1693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1694 echo "configure:1695: checking for $ac_word" >&5
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1701 for ac_dir in $ac_dummy; do
1702 test -z "$ac_dir" && ac_dir=.
1703 if test -f $ac_dir/$ac_word; then
1711 if test -n "$CC"; then
1712 echo "$ac_t""$CC" 1>&6
1714 echo "$ac_t""no" 1>&6
1719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1726 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1727 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1728 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1729 ac_cpp='$CPP '"$xe_cppflags"
1730 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1731 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1734 cat > conftest.$ac_ext << EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1742 ac_cv_prog_cc_works=yes
1743 # If we can't run a trivial program, we are probably using a cross compiler.
1744 if (./conftest; exit) 2>/dev/null; then
1745 ac_cv_prog_cc_cross=no
1747 ac_cv_prog_cc_cross=yes
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1752 ac_cv_prog_cc_works=no
1756 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1757 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1758 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1759 ac_cpp='$CPP '"$xe_cppflags"
1760 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1761 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1765 if test $ac_cv_prog_cc_works = no; then
1766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1769 echo "configure:1770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1771 cross_compiling=$ac_cv_prog_cc_cross
1773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether we are using GNU C" >&5
1776 cat > conftest.c <<EOF
1781 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1787 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1789 if test $ac_cv_prog_gcc = yes; then
1795 ac_test_CFLAGS="${CFLAGS+set}"
1796 ac_save_CFLAGS="$CFLAGS"
1798 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1799 echo "configure:1800: checking whether ${CC-cc} accepts -g" >&5
1801 echo 'void f(){}' > conftest.c
1802 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1810 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1811 if test "$ac_test_CFLAGS" = set; then
1812 CFLAGS="$ac_save_CFLAGS"
1813 elif test $ac_cv_prog_cc_g = yes; then
1814 if test "$GCC" = yes; then
1820 if test "$GCC" = yes; then
1827 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2
1831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1832 echo "configure:1833: checking for $ac_word" >&5
1834 if test -n "$CC"; then
1835 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1839 for ac_dir in $ac_dummy; do
1840 test -z "$ac_dir" && ac_dir=.
1841 if test -f $ac_dir/$ac_word; then
1849 if test -n "$CC"; then
1850 echo "$ac_t""$CC" 1>&6
1852 echo "$ac_t""no" 1>&6
1855 if test -z "$CC"; then
1856 # Extract the first word of "cc", so it can be a program name with args.
1857 set dummy cc; ac_word=$2
1858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_word" >&5
1861 if test -n "$CC"; then
1862 ac_cv_prog_CC="$CC" # Let the user override the test.
1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1867 for ac_dir in $ac_dummy; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
1870 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1871 ac_prog_rejected=yes
1879 if test $ac_prog_rejected = yes; then
1880 # We found a bogon in the path, so make sure we never use it.
1881 set dummy $ac_cv_prog_CC
1883 if test $# -gt 0; then
1884 # We chose a different compiler from the bogus one.
1885 # However, it has the same basename, so the bogon will be chosen
1886 # first if we set CC to just the basename; use the full file name.
1888 set dummy "$ac_dir/$ac_word" "$@"
1895 if test -n "$CC"; then
1896 echo "$ac_t""$CC" 1>&6
1898 echo "$ac_t""no" 1>&6
1901 if test -z "$CC"; then
1902 case "`uname -s`" in
1904 # Extract the first word of "cl", so it can be a program name with args.
1905 set dummy cl; ac_word=$2
1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_word" >&5
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1914 for ac_dir in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir=.
1916 if test -f $ac_dir/$ac_word; then
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1927 echo "$ac_t""no" 1>&6
1932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1939 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1940 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1941 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1942 ac_cpp='$CPP '"$xe_cppflags"
1943 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1944 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1947 cat > conftest.$ac_ext << EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1955 ac_cv_prog_cc_works=yes
1956 # If we can't run a trivial program, we are probably using a cross compiler.
1957 if (./conftest; exit) 2>/dev/null; then
1958 ac_cv_prog_cc_cross=no
1960 ac_cv_prog_cc_cross=yes
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1965 ac_cv_prog_cc_works=no
1969 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1970 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1971 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1972 ac_cpp='$CPP '"$xe_cppflags"
1973 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1974 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1978 if test $ac_cv_prog_cc_works = no; then
1979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1982 echo "configure:1983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1984 cross_compiling=$ac_cv_prog_cc_cross
1986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether we are using GNU C" >&5
1989 cat > conftest.c <<EOF
1994 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2000 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2002 if test $ac_cv_prog_gcc = yes; then
2008 ac_test_CFLAGS="${CFLAGS+set}"
2009 ac_save_CFLAGS="$CFLAGS"
2011 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether ${CC-cc} accepts -g" >&5
2014 echo 'void f(){}' > conftest.c
2015 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2023 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2024 if test "$ac_test_CFLAGS" = set; then
2025 CFLAGS="$ac_save_CFLAGS"
2026 elif test $ac_cv_prog_cc_g = yes; then
2027 if test "$GCC" = yes; then
2033 if test "$GCC" = yes; then
2040 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2042 # Extract the first word of "gcc", so it can be a program name with args.
2043 set dummy gcc; ac_word=$2
2044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2045 echo "configure:2046: checking for $ac_word" >&5
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2052 for ac_dir in $ac_dummy; do
2053 test -z "$ac_dir" && ac_dir=.
2054 if test -f $ac_dir/$ac_word; then
2062 if test -n "$CC"; then
2063 echo "$ac_t""$CC" 1>&6
2065 echo "$ac_t""no" 1>&6
2068 if test -z "$CC"; then
2069 # Extract the first word of "cc", so it can be a program name with args.
2070 set dummy cc; ac_word=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2080 for ac_dir in $ac_dummy; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2083 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2084 ac_prog_rejected=yes
2092 if test $ac_prog_rejected = yes; then
2093 # We found a bogon in the path, so make sure we never use it.
2094 set dummy $ac_cv_prog_CC
2096 if test $# -gt 0; then
2097 # We chose a different compiler from the bogus one.
2098 # However, it has the same basename, so the bogon will be chosen
2099 # first if we set CC to just the basename; use the full file name.
2101 set dummy "$ac_dir/$ac_word" "$@"
2108 if test -n "$CC"; then
2109 echo "$ac_t""$CC" 1>&6
2111 echo "$ac_t""no" 1>&6
2114 if test -z "$CC"; then
2115 case "`uname -s`" in
2117 # Extract the first word of "cl", so it can be a program name with args.
2118 set dummy cl; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2122 if test -n "$CC"; then
2123 ac_cv_prog_CC="$CC" # Let the user override the test.
2125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2127 for ac_dir in $ac_dummy; do
2128 test -z "$ac_dir" && ac_dir=.
2129 if test -f $ac_dir/$ac_word; then
2137 if test -n "$CC"; then
2138 echo "$ac_t""$CC" 1>&6
2140 echo "$ac_t""no" 1>&6
2145 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2148 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2149 echo "configure:2150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2152 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2153 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2154 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2155 ac_cpp='$CPP '"$xe_cppflags"
2156 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2157 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2160 cat > conftest.$ac_ext << EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2168 ac_cv_prog_cc_works=yes
2169 # If we can't run a trivial program, we are probably using a cross compiler.
2170 if (./conftest; exit) 2>/dev/null; then
2171 ac_cv_prog_cc_cross=no
2173 ac_cv_prog_cc_cross=yes
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2178 ac_cv_prog_cc_works=no
2182 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2183 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2184 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2185 ac_cpp='$CPP '"$xe_cppflags"
2186 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2187 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2190 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2191 if test $ac_cv_prog_cc_works = no; then
2192 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2194 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2195 echo "configure:2196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2196 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2197 cross_compiling=$ac_cv_prog_cc_cross
2199 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether we are using GNU C" >&5
2202 cat > conftest.c <<EOF
2207 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2213 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2215 if test $ac_cv_prog_gcc = yes; then
2221 ac_test_CFLAGS="${CFLAGS+set}"
2222 ac_save_CFLAGS="$CFLAGS"
2224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2225 echo "configure:2226: checking whether ${CC-cc} accepts -g" >&5
2227 echo 'void f(){}' > conftest.c
2228 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2237 if test "$ac_test_CFLAGS" = set; then
2238 CFLAGS="$ac_save_CFLAGS"
2239 elif test $ac_cv_prog_cc_g = yes; then
2240 if test "$GCC" = yes; then
2246 if test "$GCC" = yes; then
2254 CFLAGS="$xe_save_CFLAGS"
2257 test -n "$CPP" -a -d "$CPP" && CPP=
2259 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2261 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2262 echo "configure:2263: checking how to run the C preprocessor" >&5
2263 # On Suns, sometimes $CPP names a directory.
2264 if test -n "$CPP" && test -d "$CPP"; then
2267 if test -z "$CPP"; then
2269 # This must be in double quotes, not single quotes, because CPP may get
2270 # substituted into the Makefile and "${CC-cc}" will confuse make.
2272 # On the NeXT, cc -E runs the code through the compiler's parser,
2273 # not just through cpp.
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2281 { (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283 if test -z "$ac_err"; then
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 CPP="${CC-cc} -E -traditional-cpp"
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2298 { (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2300 if test -z "$ac_err"; then
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2307 CPP="${CC-cc} -nologo -E"
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2331 ac_cv_prog_CPP="$CPP"
2332 CPP="$ac_cv_prog_CPP"
2334 ac_cv_prog_CPP="$CPP"
2336 echo "$ac_t""$CPP" 1>&6
2340 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2341 echo "configure:2342: checking for AIX" >&5
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2351 egrep "yes" >/dev/null 2>&1; then
2353 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2354 Defining _ALL_SOURCE
2356 cat >> confdefs.h <<\EOF
2357 #define _ALL_SOURCE 1
2363 echo "$ac_t""no" 1>&6
2369 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2370 echo "configure:2371: checking for GNU libc" >&5
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <features.h>
2377 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2378 #error Not a GNU libc system :-(
2379 ******* ======= ******** &&&&&&&&
2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2394 echo "$ac_t""$have_glibc" 1>&6
2395 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2396 Defining _GNU_SOURCE
2398 cat >> confdefs.h <<\EOF
2399 #define _GNU_SOURCE 1
2406 { test "$extra_verbose" = "yes" && cat << \EOF
2407 Defining __EXTENSIONS__
2409 cat >> confdefs.h <<\EOF
2410 #define __EXTENSIONS__ 1
2414 if test "$os_release" -ge 55; then
2415 { test "$extra_verbose" = "yes" && cat << \EOF
2416 Defining _XOPEN_SOURCE = 500
2418 cat >> confdefs.h <<\EOF
2419 #define _XOPEN_SOURCE 500
2423 { test "$extra_verbose" = "yes" && cat << \EOF
2424 Defining _XOPEN_SOURCE_EXTENDED
2426 cat >> confdefs.h <<\EOF
2427 #define _XOPEN_SOURCE_EXTENDED 1
2433 { test "$extra_verbose" = "yes" && cat << \EOF
2434 Defining _POSIX_C_SOURCE = 199506L
2436 cat >> confdefs.h <<\EOF
2437 #define _POSIX_C_SOURCE 199506L
2441 { test "$extra_verbose" = "yes" && cat << \EOF
2442 Defining _XOPEN_SOURCE = 500
2444 cat >> confdefs.h <<\EOF
2445 #define _XOPEN_SOURCE 500
2449 { test "$extra_verbose" = "yes" && cat << \EOF
2450 Defining _XOPEN_SOURCE_EXTENDED
2452 cat >> confdefs.h <<\EOF
2453 #define _XOPEN_SOURCE_EXTENDED 1
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2464 #if defined __SUNPRO_C
2466 #elif defined __DECC
2468 #elif defined __USLC__ && defined __SCO_VERSION__
2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2480 echo "configure: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2483 case "$conftest_rc" in
2484 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2485 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2486 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2494 echo "Extracting information from the machine- and system-dependent headers..."
2496 tempcname="conftest.c"
2500 cat > $tempcname < confdefs.h
2501 cat >> $tempcname <<EOF
2503 #define C_SWITCH_SITE
2504 #define C_SWITCH_X_SITE
2505 #define LD_SWITCH_SITE
2506 #define LD_SWITCH_X_SITE
2507 #define LD_SWITCH_X_SITE_AUX
2508 #define OS_RELEASE $os_release
2510 #ifdef config_opsysfile
2511 #include "$srcdir/src/$opsysfile"
2514 #ifdef config_machfile
2515 #include "$srcdir/src/$machfile"
2518 #ifndef LIBS_MACHINE
2519 #define LIBS_MACHINE
2521 configure___ libs_machine=LIBS_MACHINE
2526 configure___ libs_system=LIBS_SYSTEM
2528 #ifndef LIBS_TERMCAP
2529 #define LIBS_TERMCAP
2531 configure___ libs_termcap=LIBS_TERMCAP
2533 #ifndef LIB_STANDARD
2534 #define LIB_STANDARD
2536 configure___ libs_standard=LIB_STANDARD
2539 #ifndef OBJECTS_MACHINE
2540 #define OBJECTS_MACHINE
2542 configure___ objects_machine=OBJECTS_MACHINE
2544 #ifndef OBJECTS_SYSTEM
2545 #define OBJECTS_SYSTEM
2547 configure___ objects_system=OBJECTS_SYSTEM
2550 #ifndef C_SWITCH_MACHINE
2551 #define C_SWITCH_MACHINE
2553 configure___ c_switch_machine=C_SWITCH_MACHINE
2555 #ifndef C_SWITCH_SYSTEM
2556 #define C_SWITCH_SYSTEM
2558 configure___ c_switch_system=C_SWITCH_SYSTEM
2561 #ifndef LD_SWITCH_MACHINE
2562 #define LD_SWITCH_MACHINE
2564 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2566 #ifndef LD_SWITCH_SYSTEM
2567 #define LD_SWITCH_SYSTEM
2569 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2573 #define UNEXEC "unexec.o"
2575 configure___ unexec=UNEXEC
2578 #ifndef LD_SWITCH_SHARED
2579 #define LD_SWITCH_SHARED "-c"
2581 configure___ ld_switch_shared=LD_SWITCH_SHARED
2584 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2585 configure___ ordinary_ld=ORDINARY_LD
2587 #ifdef ORDINARY_LINK
2588 #define LD ORDINARY_LD
2589 #else /* no ORDINARY LINK */
2590 #ifdef COFF_ENCAPSULATE
2591 #define LD "\$(CC) -nostdlib"
2592 #else /* not COFF_ENCAPSULATE */
2595 #else /* ! defined (LINKER) */
2597 #endif /* ! defined (LINKER) */
2598 #endif /* ! defined (COFF_ENCAPSULATE) */
2599 #endif /* not ORDINARY_LINK */
2605 configure___ lib_gcc=LIB_GCC
2607 #ifndef LD_TEXT_START_ADDR
2608 #define LD_TEXT_START_ADDR
2610 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2613 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2615 #ifdef COFF_ENCAPSULATE
2616 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2617 #else /* ! defined (COFF_ENCAPSULATE) */
2618 #define START_FILES "pre-crt0.o /lib/crt0.o"
2619 #endif /* ! defined (COFF_ENCAPSULATE) */
2620 #else /* ! defined (NO_REMAP) */
2621 #define START_FILES "ecrt0.o"
2622 #endif /* ! defined (NO_REMAP) */
2623 #endif /* no ORDINARY_LINK */
2627 configure___ start_files=START_FILES
2629 #ifdef ORDINARY_LINK
2630 configure___ ordinary_link=yes
2632 configure___ ordinary_link=no
2635 #ifdef SYSTEM_MALLOC
2636 configure___ system_malloc=yes
2638 configure___ system_malloc=no
2642 configure___ have_terminfo=yes
2644 configure___ have_terminfo=no
2647 #ifdef MAIL_USE_FLOCK
2648 configure___ mail_use_flock=yes
2650 configure___ mail_use_flock=no
2653 #ifdef MAIL_USE_LOCKF
2654 configure___ mail_use_lockf=yes
2656 configure___ mail_use_lockf=no
2659 #ifdef MAIL_USE_LOCKING
2660 configure___ mail_use_locking=yes
2662 configure___ mail_use_locking=no
2665 #ifdef HAVE_WIN32_PROCESSES
2666 configure___ win32_processes=yes
2668 configure___ win32_processes=no
2673 CPP=`eval "echo $CPP $CPPFLAGS"`
2674 eval `$CPP -Isrc $tempcname \
2675 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2679 if test "$pdump" = "yes"; then
2688 test "$extra_verbose" = "yes" && \
2689 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2691 case "$opsys" in mingw*) 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; }
2792 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; }
2806 *-fno-caller-saves*) ;;
2808 echo "$ac_t""yes" 1>&6
2809 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2810 echo "configure: warning: -fno-caller-saves." 1>&2
2811 { 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 elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h utime.h
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"
4389 #include <sys/types.h>
4392 FILE *f=fopen("conftestval", "w");
4394 fprintf(f, "%d\n", sizeof(short));
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4400 ac_cv_sizeof_short=`cat conftestval`
4403 echo "configure: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4406 ac_cv_sizeof_short=0
4409 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4410 { test "$extra_verbose" = "yes" && cat << EOF
4411 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4413 cat >> confdefs.h <<EOF
4414 #define SIZEOF_SHORT $ac_cv_sizeof_short
4419 if test "$ac_cv_sizeof_short" = 0; then
4421 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4422 echo "*** PANIC *** Please examine config.log for compilation errors."
4425 echo $ac_n "checking size of int""... $ac_c" 1>&6
4426 echo "configure:4427: checking size of int" >&5
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4432 #include <sys/types.h>
4435 FILE *f=fopen("conftestval", "w");
4437 fprintf(f, "%d\n", sizeof(int));
4441 if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4443 ac_cv_sizeof_int=`cat conftestval`
4446 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5
4452 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4453 { test "$extra_verbose" = "yes" && cat << EOF
4454 Defining SIZEOF_INT = $ac_cv_sizeof_int
4456 cat >> confdefs.h <<EOF
4457 #define SIZEOF_INT $ac_cv_sizeof_int
4462 echo $ac_n "checking size of long""... $ac_c" 1>&6
4463 echo "configure:4464: checking size of long" >&5
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4469 #include <sys/types.h>
4472 FILE *f=fopen("conftestval", "w");
4474 fprintf(f, "%d\n", sizeof(long));
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4480 ac_cv_sizeof_long=`cat conftestval`
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4489 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4490 { test "$extra_verbose" = "yes" && cat << EOF
4491 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4493 cat >> confdefs.h <<EOF
4494 #define SIZEOF_LONG $ac_cv_sizeof_long
4499 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4500 echo "configure:4501: checking size of long long" >&5
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4506 #include <sys/types.h>
4509 FILE *f=fopen("conftestval", "w");
4511 fprintf(f, "%d\n", sizeof(long long));
4515 if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4517 ac_cv_sizeof_long_long=`cat conftestval`
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 ac_cv_sizeof_long_long=0
4526 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4527 { test "$extra_verbose" = "yes" && cat << EOF
4528 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4530 cat >> confdefs.h <<EOF
4531 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4536 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4537 echo "configure:4538: checking size of void *" >&5
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4543 #include <sys/types.h>
4546 FILE *f=fopen("conftestval", "w");
4548 fprintf(f, "%d\n", sizeof(void *));
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4554 ac_cv_sizeof_void_p=`cat conftestval`
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4560 ac_cv_sizeof_void_p=0
4563 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4564 { test "$extra_verbose" = "yes" && cat << EOF
4565 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4567 cat >> confdefs.h <<EOF
4568 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4574 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4575 echo "configure:4576: checking for long file names" >&5
4577 ac_cv_sys_long_file_names=yes
4578 # Test for long file names in all the places we know might matter:
4579 # . the current directory, where building will happen
4580 # $prefix/lib where we will be installing things
4581 # $exec_prefix/lib likewise
4582 # eval it to expand exec_prefix.
4583 # $TMPDIR if set, where it might want to write temporary files
4584 # if $TMPDIR is not set:
4585 # /tmp where it might want to write temporary files
4588 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4589 ac_tmpdirs="$TMPDIR"
4591 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4593 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4594 test -d $ac_dir || continue
4595 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4596 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4597 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4598 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4599 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4600 ac_cv_sys_long_file_names=no
4601 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4604 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4607 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4608 if test $ac_cv_sys_long_file_names = yes; then
4609 { test "$extra_verbose" = "yes" && cat << \EOF
4610 Defining HAVE_LONG_FILE_NAMES
4612 cat >> confdefs.h <<\EOF
4613 #define HAVE_LONG_FILE_NAMES 1
4620 echo $ac_n "checking for sin""... $ac_c" 1>&6
4621 echo "configure:4622: checking for sin" >&5
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 /* System header to define __stub macros and hopefully few prototypes,
4627 which can conflict with char sin(); below. */
4629 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4636 /* The GNU C library defines this for functions which it implements
4637 to always fail with ENOSYS. Some functions are actually named
4638 something starting with __ and the normal name is an alias. */
4639 #if defined (__stub_sin) || defined (__stub___sin)
4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4649 eval "ac_cv_func_sin=yes"
4651 echo "configure: failed program was:" >&5
4652 cat conftest.$ac_ext >&5
4654 eval "ac_cv_func_sin=no"
4658 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4662 echo "$ac_t""no" 1>&6
4664 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4665 echo "configure:4666: checking for sin in -lm" >&5
4666 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4668 xe_check_libs=" -lm "
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 eval "ac_cv_lib_$ac_lib_var=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_lib_$ac_lib_var=no"
4693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4694 echo "$ac_t""yes" 1>&6
4695 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4697 { test "$extra_verbose" = "yes" && cat << EOF
4700 cat >> confdefs.h <<EOF
4701 #define $ac_tr_lib 1
4705 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4708 echo "$ac_t""no" 1>&6
4715 { test "$extra_verbose" = "yes" && cat << \EOF
4716 Defining LISP_FLOAT_TYPE
4718 cat >> confdefs.h <<\EOF
4719 #define LISP_FLOAT_TYPE 1
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4729 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4734 { test "$extra_verbose" = "yes" && cat << \EOF
4735 Defining HAVE_INVERSE_HYPERBOLIC
4737 cat >> confdefs.h <<\EOF
4738 #define HAVE_INVERSE_HYPERBOLIC 1
4743 echo "configure: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4748 echo "checking type of mail spool file locking" 1>&6
4749 echo "configure:4750: checking type of mail spool file locking" >&5
4750 for ac_func in lockf flock
4752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_func" >&5
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781 eval "ac_cv_func_$ac_func=yes"
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4786 eval "ac_cv_func_$ac_func=no"
4790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4791 echo "$ac_t""yes" 1>&6
4792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4793 { test "$extra_verbose" = "yes" && cat << EOF
4794 Defining $ac_tr_func
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_func 1
4802 echo "$ac_t""no" 1>&6
4806 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4807 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4808 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4809 if test -z "$mail_locking"; then
4810 case "$opsys" in cygwin* | mingw*)
4815 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4816 Defining MAIL_LOCK_LOCKF
4818 cat >> confdefs.h <<\EOF
4819 #define MAIL_LOCK_LOCKF 1
4823 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4824 Defining MAIL_LOCK_FLOCK
4826 cat >> confdefs.h <<\EOF
4827 #define MAIL_LOCK_FLOCK 1
4831 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4832 Defining MAIL_LOCK_LOCKING
4834 cat >> confdefs.h <<\EOF
4835 #define MAIL_LOCK_LOCKING 1
4839 elif test "$mail_locking" = "pop"; then
4842 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4843 Defining MAIL_LOCK_DOT
4845 cat >> confdefs.h <<\EOF
4846 #define MAIL_LOCK_DOT 1
4851 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4852 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4853 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4854 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4855 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4856 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4858 case "$opsys" in decosf*)
4860 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4861 echo "configure:4862: checking for cma_open in -lpthreads" >&5
4862 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4864 xe_check_libs=" -lpthreads "
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4879 eval "ac_cv_lib_$ac_lib_var=yes"
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4884 eval "ac_cv_lib_$ac_lib_var=no"
4889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4893 { test "$extra_verbose" = "yes" && cat << EOF
4896 cat >> confdefs.h <<EOF
4897 #define $ac_tr_lib 1
4901 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4904 echo "$ac_t""no" 1>&6
4908 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4909 c_switch_site="$c_switch_site -threads" ;;
4912 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4913 echo "configure:4914: checking whether the -xildoff compiler flag is required" >&5
4914 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4915 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4916 then echo "$ac_t""no" 1>&6;
4917 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
4919 else echo "$ac_t""no" 1>&6
4922 if test "$opsys" = "sol2"; then
4923 if test "$os_release" -ge 56; then
4924 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4925 echo "configure:4926: checking for \"-z ignore\" linker flag" >&5
4926 case "`ld -h 2>&1`" in
4927 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4928 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4929 *) echo "$ac_t""no" 1>&6 ;;
4935 echo "checking "for specified window system"" 1>&6
4936 echo "configure:4937: checking "for specified window system"" >&5
4938 if test "$with_x11" != "no"; then
4939 test "$x_includes $x_libraries" != "NONE NONE" && \
4940 window_system=x11 with_x11=yes
4943 if test "$x_includes $x_libraries" = "NONE NONE" \
4944 -a -n "$OPENWINHOME" \
4945 -a "$OPENWINHOME" != "/usr/openwin" \
4946 -a -d "$OPENWINHOME"; then
4947 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4948 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4949 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4952 if test "$x_includes" = "NONE"; then
4953 for dir in "/usr/X11" "/usr/X11R6"; do
4954 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4958 if test "$x_libraries" = "NONE"; then
4959 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4960 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4964 # If we find X, set shell vars x_includes and x_libraries to the
4965 # paths, otherwise set no_x=yes.
4966 # Uses ac_ vars as temps to allow command line to override cache and checks.
4967 # --without-x overrides everything else, but does not touch the cache.
4968 echo $ac_n "checking for X""... $ac_c" 1>&6
4969 echo "configure:4970: checking for X" >&5
4971 # Check whether --with-x or --without-x was given.
4972 if test "${with_x+set}" = set; then
4977 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4978 if test "x$with_x" = xno; then
4979 # The user explicitly disabled X.
4982 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4983 # Both variables are already set.
4987 # One or both of the vars are not set, and there is no cached value.
4988 ac_x_includes=NO ac_x_libraries=NO
4990 if mkdir conftestdir; then
4992 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4993 cat > Imakefile <<'EOF'
4995 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4997 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4999 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5000 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5001 for ac_extension in a so sl; do
5002 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5003 test -f $ac_im_libdir/libX11.$ac_extension; then
5004 ac_im_usrlibdir=$ac_im_libdir; break
5007 # Screen out bogus values from the imake configuration. They are
5008 # bogus both because they are the default anyway, and because
5009 # using them would break gcc on systems where it needs fixed includes.
5010 case "$ac_im_incroot" in
5012 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5014 case "$ac_im_usrlibdir" in
5016 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5023 if test "$ac_x_includes" = NO; then
5024 # Guess where to find include files, by looking for this one X11 .h file.
5025 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5027 # First, try using that file with no special directory specified.
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5031 #include <$x_direct_test_include>
5033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5034 { (eval echo configure:5035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5036 if test -z "$ac_err"; then
5038 # We can compile using X headers with no special include directory.
5042 echo "configure: failed program was:" >&5
5043 cat conftest.$ac_ext >&5
5045 # Look for the header file in a standard set of common directories.
5046 # Check X11 before X11Rn because it is often a symlink to the current release.
5049 /usr/X11R6/include \
5050 /usr/X11R5/include \
5051 /usr/X11R4/include \
5054 /usr/include/X11R6 \
5055 /usr/include/X11R5 \
5056 /usr/include/X11R4 \
5058 /usr/local/X11/include \
5059 /usr/local/X11R6/include \
5060 /usr/local/X11R5/include \
5061 /usr/local/X11R4/include \
5063 /usr/local/include/X11 \
5064 /usr/local/include/X11R6 \
5065 /usr/local/include/X11R5 \
5066 /usr/local/include/X11R4 \
5070 /usr/XFree86/include/X11 \
5073 /usr/local/include \
5074 /usr/unsupported/include \
5075 /usr/athena/include \
5076 /usr/local/x11r5/include \
5077 /usr/lpp/Xamples/include \
5079 /usr/openwin/include \
5080 /usr/openwin/share/include \
5083 if test -r "$ac_dir/$x_direct_test_include"; then
5084 ac_x_includes=$ac_dir
5090 fi # $ac_x_includes = NO
5092 if test "$ac_x_libraries" = NO; then
5093 # Check for the libraries.
5095 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5096 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5098 # See if we find them without any special options.
5099 # Don't add to $LIBS permanently.
5100 ac_save_LIBS="$LIBS"
5101 LIBS="-l$x_direct_test_library $LIBS"
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5107 ${x_direct_test_function}()
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5112 LIBS="$ac_save_LIBS"
5113 # We can link X programs with no special library path.
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5119 LIBS="$ac_save_LIBS"
5120 # First see if replacing the include by lib works.
5121 # Check X11 before X11Rn because it is often a symlink to the current release.
5122 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5133 /usr/local/X11/lib \
5134 /usr/local/X11R6/lib \
5135 /usr/local/X11R5/lib \
5136 /usr/local/X11R4/lib \
5138 /usr/local/lib/X11 \
5139 /usr/local/lib/X11R6 \
5140 /usr/local/lib/X11R5 \
5141 /usr/local/lib/X11R4 \
5145 /usr/XFree86/lib/X11 \
5149 /usr/unsupported/lib \
5151 /usr/local/x11r5/lib \
5152 /usr/lpp/Xamples/lib \
5156 /usr/openwin/share/lib \
5159 for ac_extension in a so sl; do
5160 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5161 ac_x_libraries=$ac_dir
5168 fi # $ac_x_libraries = NO
5170 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5171 # Didn't find X anywhere. Cache the known absence of X.
5172 ac_cv_have_x="have_x=no"
5174 # Record where we found X for the cache.
5175 ac_cv_have_x="have_x=yes \
5176 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5179 eval "$ac_cv_have_x"
5182 if test "$have_x" != yes; then
5183 echo "$ac_t""$have_x" 1>&6
5186 # If each of the values was on the command line, it overrides each guess.
5187 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5188 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5189 # Update the cache value to reflect the command line values.
5190 ac_cv_have_x="have_x=yes \
5191 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5192 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5195 if test "$no_x" = yes; then
5196 # Not all programs may use this symbol, but it does not hurt to define it.
5197 { test "$extra_verbose" = "yes" && cat << \EOF
5198 Defining X_DISPLAY_MISSING
5200 cat >> confdefs.h <<\EOF
5201 #define X_DISPLAY_MISSING 1
5205 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5207 if test -n "$x_includes"; then
5208 X_CFLAGS="$X_CFLAGS -I$x_includes"
5211 # It would also be nice to do this for all -L options, not just this one.
5212 if test -n "$x_libraries"; then
5213 X_LIBS="$X_LIBS -L$x_libraries"
5214 # For Solaris; some versions of Sun CC require a space after -R and
5215 # others require no space. Words are not sufficient . . . .
5216 case "`(uname -sr) 2>/dev/null`" in
5218 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5219 echo "configure:5220: checking whether -R must be followed by a space" >&5
5220 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5239 if test $ac_R_nospace = yes; then
5240 echo "$ac_t""no" 1>&6
5241 X_LIBS="$X_LIBS -R$x_libraries"
5243 LIBS="$ac_xsave_LIBS -R $x_libraries"
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5252 if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5262 if test $ac_R_space = yes; then
5263 echo "$ac_t""yes" 1>&6
5264 X_LIBS="$X_LIBS -R $x_libraries"
5266 echo "$ac_t""neither works" 1>&6
5269 LIBS="$ac_xsave_LIBS"
5273 # Check for system-dependent libraries X programs must link with.
5274 # Do this before checking for the system-independent R6 libraries
5275 # (-lICE), since we may need -lsocket or whatever for X linking.
5277 if test "$ISC" = yes; then
5278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5280 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5281 # libraries were built with DECnet support. And karl@cs.umb.edu says
5282 # the Alpha needs dnet_stub (dnet does not exist).
5283 if test "$with_dnet" = "no" ; then
5284 ac_cv_lib_dnet_dnet_ntoa=no
5287 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5288 echo "configure:5289: checking for dnet_ntoa in -ldnet" >&5
5289 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5291 xe_check_libs=" -ldnet "
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5295 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 eval "ac_cv_lib_$ac_lib_var=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5311 eval "ac_cv_lib_$ac_lib_var=no"
5316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5317 echo "$ac_t""yes" 1>&6
5318 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5320 echo "$ac_t""no" 1>&6
5325 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5327 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5328 echo "configure:5329: checking for dnet_ntoa in -ldnet_stub" >&5
5329 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5331 xe_check_libs=" -ldnet_stub "
5332 cat > conftest.$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5335 /* Override any gcc2 internal prototype to avoid an error. */
5336 /* We use char because int might match the return type of a gcc2
5337 builtin and then its argument prototype would still apply. */
5344 if { (eval echo configure:5345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5346 eval "ac_cv_lib_$ac_lib_var=yes"
5348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5351 eval "ac_cv_lib_$ac_lib_var=no"
5356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5357 echo "$ac_t""yes" 1>&6
5358 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5360 echo "$ac_t""no" 1>&6
5366 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5367 # to get the SysV transport functions.
5368 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5370 # The nsl library prevents programs from opening the X display
5371 # on Irix 5.2, according to dickey@clark.net.
5372 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5373 echo "configure:5374: checking for gethostbyname" >&5
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 /* System header to define __stub macros and hopefully few prototypes,
5379 which can conflict with char gethostbyname(); below. */
5381 /* Override any gcc2 internal prototype to avoid an error. */
5382 /* We use char because int might match the return type of a gcc2
5383 builtin and then its argument prototype would still apply. */
5384 char gethostbyname();
5388 /* The GNU C library defines this for functions which it implements
5389 to always fail with ENOSYS. Some functions are actually named
5390 something starting with __ and the normal name is an alias. */
5391 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401 eval "ac_cv_func_gethostbyname=yes"
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5406 eval "ac_cv_func_gethostbyname=no"
5410 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5411 echo "$ac_t""yes" 1>&6
5414 echo "$ac_t""no" 1>&6
5417 if test $ac_cv_func_gethostbyname = no; then
5419 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5420 echo "configure:5421: checking for gethostbyname in -lnsl" >&5
5421 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5423 xe_check_libs=" -lnsl "
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */
5430 char gethostbyname();
5436 if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5438 eval "ac_cv_lib_$ac_lib_var=yes"
5440 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5443 eval "ac_cv_lib_$ac_lib_var=no"
5448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5449 echo "$ac_t""yes" 1>&6
5450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5452 echo "$ac_t""no" 1>&6
5458 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5459 # socket/setsockopt and other routines are undefined under SCO ODT
5460 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5461 # on later versions), says simon@lia.di.epfl.ch: it contains
5462 # gethostby* variants that don't use the nameserver (or something).
5463 # -lsocket must be given before -lnsl if both are needed.
5464 # We assume that if connect needs -lnsl, so does gethostbyname.
5465 echo $ac_n "checking for connect""... $ac_c" 1>&6
5466 echo "configure:5467: checking for connect" >&5
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 /* System header to define __stub macros and hopefully few prototypes,
5472 which can conflict with char connect(); below. */
5474 /* Override any gcc2 internal prototype to avoid an error. */
5475 /* We use char because int might match the return type of a gcc2
5476 builtin and then its argument prototype would still apply. */
5481 /* The GNU C library defines this for functions which it implements
5482 to always fail with ENOSYS. Some functions are actually named
5483 something starting with __ and the normal name is an alias. */
5484 #if defined (__stub_connect) || defined (__stub___connect)
5492 if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5494 eval "ac_cv_func_connect=yes"
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5499 eval "ac_cv_func_connect=no"
5503 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5504 echo "$ac_t""yes" 1>&6
5507 echo "$ac_t""no" 1>&6
5510 if test $ac_cv_func_connect = no; then
5512 xe_msg_checking="for connect in -lsocket"
5513 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5514 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5515 echo "configure:5516: checking "$xe_msg_checking"" >&5
5516 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5518 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5519 cat > conftest.$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5522 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5533 eval "ac_cv_lib_$ac_lib_var=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5538 eval "ac_cv_lib_$ac_lib_var=no"
5543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5544 echo "$ac_t""yes" 1>&6
5545 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5547 echo "$ac_t""no" 1>&6
5553 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5554 echo $ac_n "checking for remove""... $ac_c" 1>&6
5555 echo "configure:5556: checking for remove" >&5
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char remove(); below. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5570 /* The GNU C library defines this for functions which it implements
5571 to always fail with ENOSYS. Some functions are actually named
5572 something starting with __ and the normal name is an alias. */
5573 #if defined (__stub_remove) || defined (__stub___remove)
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5583 eval "ac_cv_func_remove=yes"
5585 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5588 eval "ac_cv_func_remove=no"
5592 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5593 echo "$ac_t""yes" 1>&6
5596 echo "$ac_t""no" 1>&6
5599 if test $ac_cv_func_remove = no; then
5601 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5602 echo "configure:5603: checking for remove in -lposix" >&5
5603 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5605 xe_check_libs=" -lposix "
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5609 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5620 eval "ac_cv_lib_$ac_lib_var=yes"
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 eval "ac_cv_lib_$ac_lib_var=no"
5630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5631 echo "$ac_t""yes" 1>&6
5632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5634 echo "$ac_t""no" 1>&6
5640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5641 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5642 echo "configure:5643: checking for shmat" >&5
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5647 /* System header to define __stub macros and hopefully few prototypes,
5648 which can conflict with char shmat(); below. */
5650 /* Override any gcc2 internal prototype to avoid an error. */
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5657 /* The GNU C library defines this for functions which it implements
5658 to always fail with ENOSYS. Some functions are actually named
5659 something starting with __ and the normal name is an alias. */
5660 #if defined (__stub_shmat) || defined (__stub___shmat)
5668 if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5670 eval "ac_cv_func_shmat=yes"
5672 echo "configure: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5675 eval "ac_cv_func_shmat=no"
5679 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5680 echo "$ac_t""yes" 1>&6
5683 echo "$ac_t""no" 1>&6
5686 if test $ac_cv_func_shmat = no; then
5688 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5689 echo "configure:5690: checking for shmat in -lipc" >&5
5690 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5692 xe_check_libs=" -lipc "
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5696 /* Override any gcc2 internal prototype to avoid an error. */
5697 /* We use char because int might match the return type of a gcc2
5698 builtin and then its argument prototype would still apply. */
5705 if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707 eval "ac_cv_lib_$ac_lib_var=yes"
5709 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5712 eval "ac_cv_lib_$ac_lib_var=no"
5717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5718 echo "$ac_t""yes" 1>&6
5719 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5721 echo "$ac_t""no" 1>&6
5728 # Check for libraries that X11R6 Xt/Xaw programs need.
5729 ac_save_LDFLAGS="$LDFLAGS"
5730 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5731 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5732 # check for ICE first), but we must link in the order -lSM -lICE or
5733 # we get undefined symbols. So assume we have SM if we have ICE.
5734 # These have to be linked with before -lX11, unlike the other
5735 # libraries we check for below, so use a different variable.
5736 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5738 xe_msg_checking="for IceConnectionNumber in -lICE"
5739 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5740 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5741 echo "configure:5742: checking "$xe_msg_checking"" >&5
5742 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5744 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5745 cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 /* Override any gcc2 internal prototype to avoid an error. */
5749 /* We use char because int might match the return type of a gcc2
5750 builtin and then its argument prototype would still apply. */
5751 char IceConnectionNumber();
5754 IceConnectionNumber()
5757 if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5759 eval "ac_cv_lib_$ac_lib_var=yes"
5761 echo "configure: failed program was:" >&5
5762 cat conftest.$ac_ext >&5
5764 eval "ac_cv_lib_$ac_lib_var=no"
5769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5770 echo "$ac_t""yes" 1>&6
5771 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5773 echo "$ac_t""no" 1>&6
5777 LDFLAGS="$ac_save_LDFLAGS"
5780 # Autoconf claims to find X library and include dirs for us.
5781 if test "$no_x" = "yes"
5782 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5783 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5788 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5789 no ) window_system=none HAVE_X_WINDOWS=no ;;
5792 if test "$with_x11" = "yes"; then
5793 { test "$extra_verbose" = "yes" && cat << \EOF
5794 Defining HAVE_X_WINDOWS
5796 cat >> confdefs.h <<\EOF
5797 #define HAVE_X_WINDOWS 1
5801 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5802 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5804 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5805 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5806 if test -d "$lib_dir" -a -d "$inc_dir"; then
5807 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5808 x_libraries="$lib_dir $x_libraries"
5809 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5811 case "$x_includes" in "$inc_dir"* ) ;; *)
5812 x_includes="$inc_dir $x_includes"
5813 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5818 for rel in "X11R6" "X11R5" "X11R4"; do
5819 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5820 if test -d "$lib_dir" -a -d "$inc_dir"; then
5821 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5822 x_libraries="$x_libraries $lib_dir"
5823 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5825 case "$x_includes" in "$inc_dir"* ) ;; *)
5826 x_includes="$x_includes $inc_dir"
5827 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5833 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
5836 ld_switch_x_site="$X_LIBS"
5839 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5840 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5841 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5843 runpath="" runpath_dirs=""
5844 if test -n "$LD_RUN_PATH"; then
5845 runpath="$LD_RUN_PATH"
5846 elif test "$GCC" = "yes"; then
5847 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5848 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5849 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5850 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5851 case "$arg" in P,* | -L* | -R* )
5852 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5854 xe_runpath_dir="$dir"
5855 test "$xe_runpath_dir" != "/lib" -a \
5856 "$xe_runpath_dir" != "/usr/lib" -a \
5857 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5858 eval "$xe_add_unique_runpath_dir"
5863 ld_switch_run="$ld_switch_run_save"
5866 for arg in $ld_switch_site $ld_switch_x_site; do
5867 case "$arg" in -L*) {
5868 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5869 test "$xe_runpath_dir" != "/lib" -a \
5870 "$xe_runpath_dir" != "/usr/lib" -a \
5871 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5872 eval "$xe_add_unique_runpath_dir"
5875 if test "$opsys $need_motif" = "sol2 yes"; then
5876 xe_runpath_dir="/opt/SUNWdt/lib";
5877 eval "$xe_add_unique_runpath_dir";
5880 if test -n "$runpath"; then
5881 ld_switch_run="${dash_r}${runpath}"
5883 if test "$GCC" = "yes"; then
5884 set x $ld_switch_run; shift; ld_switch_run=""
5885 while test -n "$1"; do
5887 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5888 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5890 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5895 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5900 if test "$extra_verbose" = "yes"; then
5901 echo; echo "X11 compilation variables:"
5902 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5907 if test "$x_includes" != NONE; then
5908 for i in $x_includes; do
5909 if test -d "$i/bitmaps"; then
5910 bitmapdirs="$i/bitmaps:$bitmapdirs"
5912 if test -d "$i/X11/bitmaps"; then
5913 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5916 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5918 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5919 Defining BITMAPDIR = "$bitmapdirs"
5921 cat >> confdefs.h <<EOF
5922 #define BITMAPDIR "$bitmapdirs"
5927 echo "checking for X defines extracted by xmkmf" 1>&6
5928 echo "configure:5929: checking for X defines extracted by xmkmf" >&5
5930 if mkdir conftestdir; then
5932 cat > Imakefile <<'EOF'
5934 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5936 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5937 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5938 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5942 for word in $xmkmf_defines; do
5943 case "$word" in -D* )
5944 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
5946 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
5949 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5950 if test "$val" = "1"
5951 then { test "$extra_verbose" = "yes" && cat << EOF
5954 cat >> confdefs.h <<EOF
5959 else { test "$extra_verbose" = "yes" && cat << EOF
5960 Defining $sym = $val
5962 cat >> confdefs.h <<EOF
5973 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5974 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5975 echo "configure:5976: checking for X11/Intrinsic.h" >&5
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 #include <X11/Intrinsic.h>
5982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5983 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5985 if test -z "$ac_err"; then
5987 eval "ac_cv_header_$ac_safe=yes"
5990 echo "configure: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5993 eval "ac_cv_header_$ac_safe=no"
5996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5997 echo "$ac_t""yes" 1>&6
6000 echo "$ac_t""no" 1>&6
6001 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6006 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6007 echo "configure:6008: checking for XOpenDisplay in -lX11" >&5
6008 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6010 xe_check_libs=" -lX11 "
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 /* Override any gcc2 internal prototype to avoid an error. */
6015 /* We use char because int might match the return type of a gcc2
6016 builtin and then its argument prototype would still apply. */
6017 char XOpenDisplay();
6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025 eval "ac_cv_lib_$ac_lib_var=yes"
6027 echo "configure: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6030 eval "ac_cv_lib_$ac_lib_var=no"
6035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6036 echo "$ac_t""yes" 1>&6
6039 echo "$ac_t""no" 1>&6
6043 if test "$have_lib_x11" != "yes"; then
6045 xe_msg_checking="for XGetFontProperty in -lX11"
6046 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6047 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6048 echo "configure:6049: checking "$xe_msg_checking"" >&5
6049 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6051 xe_check_libs=" -lX11 -b i486-linuxaout"
6052 cat > conftest.$ac_ext <<EOF
6053 #line 6054 "configure"
6054 #include "confdefs.h"
6055 /* Override any gcc2 internal prototype to avoid an error. */
6056 /* We use char because int might match the return type of a gcc2
6057 builtin and then its argument prototype would still apply. */
6058 char XGetFontProperty();
6064 if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6066 eval "ac_cv_lib_$ac_lib_var=yes"
6068 echo "configure: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6071 eval "ac_cv_lib_$ac_lib_var=no"
6076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6077 echo "$ac_t""yes" 1>&6
6078 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6080 echo "$ac_t""no" 1>&6
6081 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6087 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6090 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6091 echo "configure:6092: checking for XShapeSelectInput in -lXext" >&5
6092 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6094 xe_check_libs=" -lXext "
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6098 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6101 char XShapeSelectInput();
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 eval "ac_cv_lib_$ac_lib_var=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_lib_$ac_lib_var=no"
6119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6120 echo "$ac_t""yes" 1>&6
6121 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6123 echo "$ac_t""no" 1>&6
6129 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6130 echo "configure:6131: checking for XtOpenDisplay in -lXt" >&5
6131 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6133 xe_check_libs=" -lXt "
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6140 char XtOpenDisplay();
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 eval "ac_cv_lib_$ac_lib_var=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_lib_$ac_lib_var=no"
6158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6159 echo "$ac_t""yes" 1>&6
6160 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6162 echo "$ac_t""no" 1>&6
6163 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6168 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6169 echo "configure:6170: checking the version of X11 being used" >&5
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 #include <X11/Intrinsic.h>
6174 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6178 ./conftest foobar; x11_release=$?
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6187 echo "$ac_t""R${x11_release}" 1>&6
6188 { test "$extra_verbose" = "yes" && cat << EOF
6189 Defining THIS_IS_X11R${x11_release}
6191 cat >> confdefs.h <<EOF
6192 #define THIS_IS_X11R${x11_release} 1
6197 if test "${x11_release}" = "4"; then
6198 case "$with_widgets" in
6199 "" | "no") with_widgets=no ;;
6200 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6204 for ac_func in XConvertCase
6206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6207 echo "configure:6208: checking for $ac_func" >&5
6209 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure"
6211 #include "confdefs.h"
6212 /* System header to define __stub macros and hopefully few prototypes,
6213 which can conflict with char $ac_func(); below. */
6215 /* Override any gcc2 internal prototype to avoid an error. */
6216 /* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6222 /* The GNU C library defines this for functions which it implements
6223 to always fail with ENOSYS. Some functions are actually named
6224 something starting with __ and the normal name is an alias. */
6225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6235 eval "ac_cv_func_$ac_func=yes"
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6240 eval "ac_cv_func_$ac_func=no"
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 { test "$extra_verbose" = "yes" && cat << EOF
6248 Defining $ac_tr_func
6250 cat >> confdefs.h <<EOF
6251 #define $ac_tr_func 1
6256 echo "$ac_t""no" 1>&6
6261 for ac_hdr in X11/Xlocale.h
6263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6265 echo "configure:6266: checking for $ac_hdr" >&5
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6273 { (eval echo configure:6274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6275 if test -z "$ac_err"; then
6277 eval "ac_cv_header_$ac_safe=yes"
6280 echo "configure: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6283 eval "ac_cv_header_$ac_safe=no"
6286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6289 { test "$extra_verbose" = "yes" && cat << EOF
6292 cat >> confdefs.h <<EOF
6293 #define $ac_tr_hdr 1
6298 echo "$ac_t""no" 1>&6
6303 for ac_func in XRegisterIMInstantiateCallback
6305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6306 echo "configure:6307: checking for $ac_func" >&5
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6311 /* System header to define __stub macros and hopefully few prototypes,
6312 which can conflict with char $ac_func(); below. */
6314 /* Override any gcc2 internal prototype to avoid an error. */
6315 /* We use char because int might match the return type of a gcc2
6316 builtin and then its argument prototype would still apply. */
6321 /* The GNU C library defines this for functions which it implements
6322 to always fail with ENOSYS. Some functions are actually named
6323 something starting with __ and the normal name is an alias. */
6324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6334 eval "ac_cv_func_$ac_func=yes"
6336 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6339 eval "ac_cv_func_$ac_func=no"
6343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6344 echo "$ac_t""yes" 1>&6
6345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6346 { test "$extra_verbose" = "yes" && cat << EOF
6347 Defining $ac_tr_func
6349 cat >> confdefs.h <<EOF
6350 #define $ac_tr_func 1
6355 echo "$ac_t""no" 1>&6
6359 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6360 echo "configure:6361: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6365 #define NeedFunctionPrototypes 1
6366 #include <X11/Xlib.h>
6367 extern Bool XRegisterIMInstantiateCallback(
6368 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6374 if { (eval echo configure:6375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6376 echo "$ac_t""yes" 1>&6
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6381 echo "$ac_t""no" 1>&6
6382 { test "$extra_verbose" = "yes" && cat << \EOF
6383 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6385 cat >> confdefs.h <<\EOF
6386 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6393 test -z "$with_xmu" && {
6394 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6395 echo "configure:6396: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6396 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6398 xe_check_libs=" -lXmu "
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6405 char XmuReadBitmapDataFromFile();
6408 XmuReadBitmapDataFromFile()
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 eval "ac_cv_lib_$ac_lib_var=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 eval "ac_cv_lib_$ac_lib_var=no"
6423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6424 echo "$ac_t""yes" 1>&6
6427 echo "$ac_t""no" 1>&6
6432 if test "$with_xmu" = "no"; then
6433 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6434 echo " xemacs will be linked with \"xmu.o\""
6437 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6438 { test "$extra_verbose" = "yes" && cat << \EOF
6441 cat >> confdefs.h <<\EOF
6449 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6450 echo "configure:6451: checking for main in -lXbsd" >&5
6451 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6453 xe_check_libs=" -lXbsd "
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6462 if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6464 eval "ac_cv_lib_$ac_lib_var=yes"
6466 echo "configure: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6469 eval "ac_cv_lib_$ac_lib_var=no"
6474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6475 echo "$ac_t""yes" 1>&6
6476 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6478 echo "$ac_t""no" 1>&6
6483 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6484 if test "$GCC" = "yes"; then
6485 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6486 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6489 "xlc" ) CC="xlc_r" ;;
6490 "xlC" ) CC="xlC_r" ;;
6497 if test "$with_msw" != "no"; then
6498 echo "checking for MS-Windows" 1>&6
6499 echo "configure:6500: checking for MS-Windows" >&5
6501 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6502 echo "configure:6503: checking for main in -lgdi32" >&5
6503 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6505 xe_check_libs=" -lgdi32 "
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6516 eval "ac_cv_lib_$ac_lib_var=yes"
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 eval "ac_cv_lib_$ac_lib_var=no"
6526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6527 echo "$ac_t""yes" 1>&6
6530 echo "$ac_t""no" 1>&6
6534 if test "$with_msw" = "yes"; then
6535 { test "$extra_verbose" = "yes" && cat << \EOF
6536 Defining HAVE_MS_WINDOWS
6538 cat >> confdefs.h <<\EOF
6539 #define HAVE_MS_WINDOWS 1
6544 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
6545 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
6546 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
6548 install_pp="$blddir/lib-src/installexe.sh"
6549 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6550 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6551 if test "$window_system" != x11; then
6553 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6554 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6555 echo " xemacs will be linked with \"scrollbar-msw.o\""
6557 test "$with_menubars" != "no" && with_menubars=msw \
6558 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6559 echo " xemacs will be linked with \"menubar-msw.o\""
6561 test "$with_toolbars" != "no" && with_toolbars=msw \
6562 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6563 echo " xemacs will be linked with \"toolbar-msw.o\""
6565 test "$with_dialogs" != "no" && with_dialogs=msw \
6566 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6567 echo " xemacs will be linked with \"dialog-msw.o\""
6569 test "$with_widgets" != "no" && with_widgets=msw
6571 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6572 echo " xemacs will be linked with \"scrollbar-msw.o\""
6574 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6575 echo " xemacs will be linked with \"menubar-msw.o\""
6577 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6578 echo " xemacs will be linked with \"toolbar-msw.o\""
6580 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6581 echo " xemacs will be linked with \"dialog-msw.o\""
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6588 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6590 if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6592 { test "$extra_verbose" = "yes" && cat << \EOF
6593 Defining HAVE_MSG_SELECT
6595 cat >> confdefs.h <<\EOF
6596 #define HAVE_MSG_SELECT 1
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6606 with_file_coding=yes
6607 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then
6608 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\""
6615 test -z "$window_system" && window_system="none"
6617 if test "$window_system" = "none"; then
6618 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6620 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6621 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6623 eval "with_${feature}=no"
6626 test -z "$with_toolbars" && with_toolbars=yes
6629 if test "$with_msw" != "yes"; then
6630 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6632 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6633 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6635 eval "with_${feature}=no"
6641 if test "$with_x11" != "yes"; then
6642 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6644 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6645 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6647 eval "with_${feature}=no"
6651 if test "$with_x11" = "yes"; then
6652 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6653 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6654 echo "configure:6655: checking for X11/extensions/shape.h" >&5
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6659 #include <X11/extensions/shape.h>
6661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6662 { (eval echo configure:6663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6664 if test -z "$ac_err"; then
6666 eval "ac_cv_header_$ac_safe=yes"
6669 echo "configure: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6672 eval "ac_cv_header_$ac_safe=no"
6675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6678 { test "$extra_verbose" = "yes" && cat << \EOF
6679 Defining HAVE_BALLOON_HELP
6681 cat >> confdefs.h <<\EOF
6682 #define HAVE_BALLOON_HELP 1
6686 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
6687 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
6690 echo "$ac_t""no" 1>&6
6697 case "$window_system" in
6698 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6699 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6700 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6703 case "$x_libraries" in *X11R4* )
6704 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6705 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6708 echo "checking for WM_COMMAND option" 1>&6
6709 echo "configure:6710: checking for WM_COMMAND option" >&5;
6710 if test "$with_wmcommand" != "no"; then
6711 { test "$extra_verbose" = "yes" && cat << \EOF
6712 Defining HAVE_WMCOMMAND
6714 cat >> confdefs.h <<\EOF
6715 #define HAVE_WMCOMMAND 1
6721 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6722 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6723 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6724 echo "configure:6725: checking for X11/Xauth.h" >&5
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 #include <X11/Xauth.h>
6731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6732 { (eval echo configure:6733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6734 if test -z "$ac_err"; then
6736 eval "ac_cv_header_$ac_safe=yes"
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 eval "ac_cv_header_$ac_safe=no"
6745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6746 echo "$ac_t""yes" 1>&6
6749 echo "$ac_t""no" 1>&6
6753 test -z "$with_xauth" && {
6754 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6755 echo "configure:6756: checking for XauGetAuthByAddr in -lXau" >&5
6756 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6758 xe_check_libs=" -lXau "
6759 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6762 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */
6765 char XauGetAuthByAddr();
6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6773 eval "ac_cv_lib_$ac_lib_var=yes"
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6778 eval "ac_cv_lib_$ac_lib_var=no"
6783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6784 echo "$ac_t""yes" 1>&6
6787 echo "$ac_t""no" 1>&6
6792 test -z "$with_xauth" && with_xauth=yes
6793 if test "$with_xauth" = "yes"; then
6794 { test "$extra_verbose" = "yes" && cat << \EOF
6797 cat >> confdefs.h <<\EOF
6798 #define HAVE_XAUTH 1
6804 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6812 if test "$with_tooltalk" != "no" ; then
6813 for dir in "" "Tt/" "desktop/" ; do
6814 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6815 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6816 echo "configure:6817: checking for ${dir}tt_c.h" >&5
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6821 #include <${dir}tt_c.h>
6823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6824 { (eval echo configure:6825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6826 if test -z "$ac_err"; then
6828 eval "ac_cv_header_$ac_safe=yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 eval "ac_cv_header_$ac_safe=no"
6837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6839 tt_c_h_file="${dir}tt_c.h"; break
6841 echo "$ac_t""no" 1>&6
6845 if test -z "$tt_c_h_file"; then
6846 if test "$with_tooltalk" = "yes"; then
6847 (echo "$progname: Usage error:"
6848 echo " " "Unable to find required tooltalk header files."
6849 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6854 if test "$with_tooltalk" != "no" ; then
6855 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6857 xe_msg_checking="for tt_message_create in -ltt"
6858 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6859 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6860 echo "configure:6861: checking "$xe_msg_checking"" >&5
6861 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6863 xe_check_libs=" -ltt $extra_libs"
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */
6870 char tt_message_create();
6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6878 eval "ac_cv_lib_$ac_lib_var=yes"
6880 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6883 eval "ac_cv_lib_$ac_lib_var=no"
6888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6889 echo "$ac_t""yes" 1>&6
6890 tt_libs="-ltt $extra_libs"; break
6892 echo "$ac_t""no" 1>&6
6898 if test -z "$tt_libs"; then
6899 if test "$with_tooltalk" = "yes"; then
6900 (echo "$progname: Usage error:"
6901 echo " " "Unable to find required tooltalk libraries."
6902 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6907 test -z "$with_tooltalk" && with_tooltalk=yes
6908 if test "$with_tooltalk" = "yes"; then
6909 { test "$extra_verbose" = "yes" && cat << \EOF
6912 cat >> confdefs.h <<\EOF
6917 { test "$extra_verbose" = "yes" && cat << EOF
6918 Defining TT_C_H_FILE = "$tt_c_h_file"
6920 cat >> confdefs.h <<EOF
6921 #define TT_C_H_FILE "$tt_c_h_file"
6925 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6926 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6927 echo " xemacs will be linked with \"tooltalk.o\""
6931 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6932 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6933 echo "configure:6934: checking for Dt/Dt.h" >&5
6935 cat > conftest.$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6941 { (eval echo configure:6942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6943 if test -z "$ac_err"; then
6945 eval "ac_cv_header_$ac_safe=yes"
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 eval "ac_cv_header_$ac_safe=no"
6954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6955 echo "$ac_t""yes" 1>&6
6958 echo "$ac_t""no" 1>&6
6962 test -z "$with_cde" && {
6963 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6964 echo "configure:6965: checking for DtDndDragStart in -lDtSvc" >&5
6965 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6967 xe_check_libs=" -lDtSvc "
6968 cat > conftest.$ac_ext <<EOF
6969 #line 6970 "configure"
6970 #include "confdefs.h"
6971 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6974 char DtDndDragStart();
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6982 eval "ac_cv_lib_$ac_lib_var=yes"
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6987 eval "ac_cv_lib_$ac_lib_var=no"
6992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6993 echo "$ac_t""yes" 1>&6
6996 echo "$ac_t""no" 1>&6
7001 test -z "$with_cde" && with_cde=yes
7002 if test "$with_dragndrop" = no; then
7003 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7006 if test "$with_cde" = "yes" ; then
7007 { test "$extra_verbose" = "yes" && cat << \EOF
7010 cat >> confdefs.h <<\EOF
7015 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7016 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7017 with_tooltalk=yes # CDE requires Tooltalk
7018 need_motif=yes # CDE requires Motif
7021 test "$window_system" != "x11" && with_offix=no
7022 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7023 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7026 if test "$with_dragndrop" = no; then
7027 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7030 if test "$with_cde" = yes; then
7031 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7034 test -z "$with_offix" && with_offix=no
7035 if test "$with_offix" = "yes"; then
7036 { test "$extra_verbose" = "yes" && cat << \EOF
7037 Defining HAVE_OFFIX_DND
7039 cat >> confdefs.h <<\EOF
7040 #define HAVE_OFFIX_DND 1
7044 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7045 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7048 if test "$with_dragndrop" != "no" ; then
7049 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7050 echo "configure:7051: checking if drag and drop API is needed" >&5
7051 if test -n "$dragndrop_proto" ; then
7053 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7054 { test "$extra_verbose" = "yes" && cat << \EOF
7055 Defining HAVE_DRAGNDROP
7057 cat >> confdefs.h <<\EOF
7058 #define HAVE_DRAGNDROP 1
7062 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7065 echo "$ac_t""no" 1>&6
7069 echo "checking for LDAP" 1>&6
7070 echo "configure:7071: checking for LDAP" >&5
7071 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7072 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7073 echo "configure:7074: checking for ldap.h" >&5
7075 cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7081 { (eval echo configure:7082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7083 if test -z "$ac_err"; then
7085 eval "ac_cv_header_$ac_safe=yes"
7088 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7091 eval "ac_cv_header_$ac_safe=no"
7094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7095 echo "$ac_t""yes" 1>&6
7098 echo "$ac_t""no" 1>&6
7102 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7103 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7104 echo "configure:7105: checking for lber.h" >&5
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7112 { (eval echo configure:7113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7114 if test -z "$ac_err"; then
7116 eval "ac_cv_header_$ac_safe=yes"
7119 echo "configure: failed program was:" >&5
7120 cat conftest.$ac_ext >&5
7122 eval "ac_cv_header_$ac_safe=no"
7125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7129 echo "$ac_t""no" 1>&6
7133 if test "$with_ldap" != "no"; then
7135 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7136 echo "configure:7137: checking for ldap_search in -lldap" >&5
7137 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7139 xe_check_libs=" -lldap "
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7154 eval "ac_cv_lib_$ac_lib_var=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7159 eval "ac_cv_lib_$ac_lib_var=no"
7164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7165 echo "$ac_t""yes" 1>&6
7166 with_ldap_nolber=yes
7168 echo "$ac_t""no" 1>&6
7173 test "$with_ldap_nolber" = "no" && {
7174 xe_msg_checking="for ldap_open in -lldap"
7175 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7176 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7177 echo "configure:7178: checking "$xe_msg_checking"" >&5
7178 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7180 xe_check_libs=" -lldap -llber"
7181 cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7184 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7195 eval "ac_cv_lib_$ac_lib_var=yes"
7197 echo "configure: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7200 eval "ac_cv_lib_$ac_lib_var=no"
7205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7206 echo "$ac_t""yes" 1>&6
7209 echo "$ac_t""no" 1>&6
7214 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7215 xe_msg_checking="for ldap_open in -lldap"
7216 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7217 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7218 echo "configure:7219: checking "$xe_msg_checking"" >&5
7219 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7221 xe_check_libs=" -lldap -llber -lkrb"
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 /* Override any gcc2 internal prototype to avoid an error. */
7226 /* We use char because int might match the return type of a gcc2
7227 builtin and then its argument prototype would still apply. */
7234 if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7236 eval "ac_cv_lib_$ac_lib_var=yes"
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7241 eval "ac_cv_lib_$ac_lib_var=no"
7246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7247 echo "$ac_t""yes" 1>&6
7250 echo "$ac_t""no" 1>&6
7255 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7256 xe_msg_checking="for ldap_open in -lldap"
7257 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7258 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7259 echo "configure:7260: checking "$xe_msg_checking"" >&5
7260 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7262 xe_check_libs=" -lldap -llber -lkrb -ldes"
7263 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 /* Override any gcc2 internal prototype to avoid an error. */
7267 /* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */
7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7277 eval "ac_cv_lib_$ac_lib_var=yes"
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7282 eval "ac_cv_lib_$ac_lib_var=no"
7287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7288 echo "$ac_t""yes" 1>&6
7289 with_ldap_krbdes=yes
7291 echo "$ac_t""no" 1>&6
7296 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
7298 if test "$with_ldap" = "yes"; then
7299 { test "$extra_verbose" = "yes" && cat << \EOF
7302 cat >> confdefs.h <<\EOF
7307 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7308 echo " xemacs will be linked with \"eldap.o\""
7310 if test "$with_ldap_nolber" = "yes" ; then
7311 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7313 if test "$with_ldap_krb" = "yes" ; then
7314 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7316 if test "$with_ldap_krbdes" = "yes" ; then
7317 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7318 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7320 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7321 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7323 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7326 echo "configure:7327: checking for $ac_func" >&5
7328 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7331 /* System header to define __stub macros and hopefully few prototypes,
7332 which can conflict with char $ac_func(); below. */
7334 /* Override any gcc2 internal prototype to avoid an error. */
7335 /* We use char because int might match the return type of a gcc2
7336 builtin and then its argument prototype would still apply. */
7341 /* The GNU C library defines this for functions which it implements
7342 to always fail with ENOSYS. Some functions are actually named
7343 something starting with __ and the normal name is an alias. */
7344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7354 eval "ac_cv_func_$ac_func=yes"
7356 echo "configure: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7359 eval "ac_cv_func_$ac_func=no"
7363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7364 echo "$ac_t""yes" 1>&6
7365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7366 { test "$extra_verbose" = "yes" && cat << EOF
7367 Defining $ac_tr_func
7369 cat >> confdefs.h <<EOF
7370 #define $ac_tr_func 1
7375 echo "$ac_t""no" 1>&6
7381 if test "$with_postgresql" != "no"; then
7382 echo "checking for PostgreSQL" 1>&6
7383 echo "configure:7384: checking for PostgreSQL" >&5
7385 for header_dir in "" "pgsql/" "postgresql/"; do
7386 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7387 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7388 echo "configure:7389: checking for ${header_dir}libpq-fe.h" >&5
7390 cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 #include <${header_dir}libpq-fe.h>
7395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7396 { (eval echo configure:7397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7398 if test -z "$ac_err"; then
7400 eval "ac_cv_header_$ac_safe=yes"
7403 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7406 eval "ac_cv_header_$ac_safe=no"
7409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7410 echo "$ac_t""yes" 1>&6
7411 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7413 echo "$ac_t""no" 1>&6
7418 test -n "$libpq_fe_h_file" && {
7419 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7420 echo "configure:7421: checking for PQconnectdb in -lpq" >&5
7421 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7423 xe_check_libs=" -lpq "
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* Override any gcc2 internal prototype to avoid an error. */
7428 /* We use char because int might match the return type of a gcc2
7429 builtin and then its argument prototype would still apply. */
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7438 eval "ac_cv_lib_$ac_lib_var=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 eval "ac_cv_lib_$ac_lib_var=no"
7448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7449 echo "$ac_t""yes" 1>&6
7452 echo "$ac_t""no" 1>&6
7457 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7459 { test "$extra_verbose" = "yes" && cat << \EOF
7460 Defining HAVE_POSTGRESQL
7462 cat >> confdefs.h <<\EOF
7463 #define HAVE_POSTGRESQL 1
7468 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7469 echo "configure:7470: checking for PQconnectStart in -lpq" >&5
7470 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7472 xe_check_libs=" -lpq "
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7479 char PQconnectStart();
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7487 eval "ac_cv_lib_$ac_lib_var=yes"
7489 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7492 eval "ac_cv_lib_$ac_lib_var=no"
7497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7498 echo "$ac_t""yes" 1>&6
7499 with_postgresqlv7=yes;
7500 { test "$extra_verbose" = "yes" && cat << \EOF
7501 Defining HAVE_POSTGRESQLV7
7503 cat >> confdefs.h <<\EOF
7504 #define HAVE_POSTGRESQLV7 1
7509 echo "$ac_t""no" 1>&6
7513 { test "$extra_verbose" = "yes" && cat << EOF
7514 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7516 cat >> confdefs.h <<EOF
7517 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7521 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7522 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7523 echo " xemacs will be linked with \"postgresql.o\""
7525 elif test "$with_postgresql" = "yes"; then
7526 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7531 if test "$window_system" != "none"; then
7532 echo "checking for graphics libraries" 1>&6
7533 echo "configure:7534: checking for graphics libraries" >&5
7536 if test -z "$with_xpm"; then
7537 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7538 echo "configure:7539: checking for Xpm - no older than 3.4f" >&5
7540 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7544 #include <X11/xpm.h>
7545 int main(int c, char **v) {
7547 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7548 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7552 ./conftest dummy_arg; xpm_status=$?;
7553 if test "$xpm_status" = "0"; then
7557 if test "$xpm_status" = "1"; then
7558 xpm_problem="Xpm library version and header file version don't match!"
7559 elif test "$xpm_status" = "2"; then
7560 xpm_problem="Xpm library version is too old!"
7562 xpm_problem="Internal xpm detection logic error!"
7565 *** WARNING *** $xpm_problem
7566 I'm not touching that with a 10-foot pole!
7567 If you really want to use the installed version of Xpm, rerun
7568 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7572 echo "configure: failed program was:" >&5
7573 cat conftest.$ac_ext >&5
7579 echo "$ac_t""$with_xpm" 1>&6
7581 if test "$with_xpm" = "yes"; then
7582 { test "$extra_verbose" = "yes" && cat << \EOF
7585 cat >> confdefs.h <<\EOF
7590 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7591 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7592 echo "configure:7593: checking for \"FOR_MSW\" xpm" >&5
7594 cat > conftest.$ac_ext <<EOF
7595 #line 7596 "configure"
7596 #include "confdefs.h"
7599 XpmCreatePixmapFromData()
7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7606 echo "configure: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7613 echo "$ac_t""$xpm_for_msw" 1>&6
7614 if test "$xpm_for_msw" = "yes"; then
7615 { test "$extra_verbose" = "yes" && cat << \EOF
7618 cat >> confdefs.h <<\EOF
7626 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7627 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7628 echo "configure:7629: checking for compface.h" >&5
7630 cat > conftest.$ac_ext <<EOF
7631 #line 7632 "configure"
7632 #include "confdefs.h"
7633 #include <compface.h>
7635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7636 { (eval echo configure:7637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7638 if test -z "$ac_err"; then
7640 eval "ac_cv_header_$ac_safe=yes"
7643 echo "configure: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7646 eval "ac_cv_header_$ac_safe=no"
7649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7653 echo "$ac_t""no" 1>&6
7657 test -z "$with_xface" && {
7658 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7659 echo "configure:7660: checking for UnGenFace in -lcompface" >&5
7660 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7662 xe_check_libs=" -lcompface "
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7675 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7677 eval "ac_cv_lib_$ac_lib_var=yes"
7679 echo "configure: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7682 eval "ac_cv_lib_$ac_lib_var=no"
7687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7688 echo "$ac_t""yes" 1>&6
7691 echo "$ac_t""no" 1>&6
7696 test -z "$with_xface" && with_xface=yes
7697 if test "$with_xface" = "yes"; then
7698 { test "$extra_verbose" = "yes" && cat << \EOF
7701 cat >> confdefs.h <<\EOF
7702 #define HAVE_XFACE 1
7706 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7709 if test "$with_gif" != "no"; then
7711 { test "$extra_verbose" = "yes" && cat << \EOF
7714 cat >> confdefs.h <<\EOF
7719 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7720 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7724 if test "$with_png $with_tiff" != "no no"; then
7726 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7727 echo "configure:7728: checking for inflate in -lc" >&5
7728 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7730 xe_check_libs=" -lc "
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7745 eval "ac_cv_lib_$ac_lib_var=yes"
7747 echo "configure: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7750 eval "ac_cv_lib_$ac_lib_var=no"
7755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7756 echo "$ac_t""yes" 1>&6
7759 echo "$ac_t""no" 1>&6
7761 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7762 echo "configure:7763: checking for inflate in -lz" >&5
7763 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7765 xe_check_libs=" -lz "
7766 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7769 /* Override any gcc2 internal prototype to avoid an error. */
7770 /* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7778 if { (eval echo configure:7779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7780 eval "ac_cv_lib_$ac_lib_var=yes"
7782 echo "configure: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7785 eval "ac_cv_lib_$ac_lib_var=no"
7790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7791 echo "$ac_t""yes" 1>&6
7792 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7794 echo "$ac_t""no" 1>&6
7796 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7797 echo "configure:7798: checking for inflate in -lgz" >&5
7798 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7800 xe_check_libs=" -lgz "
7801 cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 /* Override any gcc2 internal prototype to avoid an error. */
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7813 if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7815 eval "ac_cv_lib_$ac_lib_var=yes"
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7820 eval "ac_cv_lib_$ac_lib_var=no"
7825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7826 echo "$ac_t""yes" 1>&6
7827 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7829 echo "$ac_t""no" 1>&6
7841 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7842 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7843 echo "configure:7844: checking for jpeglib.h" >&5
7845 cat > conftest.$ac_ext <<EOF
7846 #line 7847 "configure"
7847 #include "confdefs.h"
7848 #include <jpeglib.h>
7850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7851 { (eval echo configure:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7853 if test -z "$ac_err"; then
7855 eval "ac_cv_header_$ac_safe=yes"
7858 echo "configure: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7861 eval "ac_cv_header_$ac_safe=no"
7864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7868 echo "$ac_t""no" 1>&6
7872 test -z "$with_jpeg" && {
7873 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7874 echo "configure:7875: checking for jpeg_destroy_decompress in -ljpeg" >&5
7875 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7877 xe_check_libs=" -ljpeg "
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7884 char jpeg_destroy_decompress();
7887 jpeg_destroy_decompress()
7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7892 eval "ac_cv_lib_$ac_lib_var=yes"
7894 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7897 eval "ac_cv_lib_$ac_lib_var=no"
7902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7903 echo "$ac_t""yes" 1>&6
7906 echo "$ac_t""no" 1>&6
7911 test -z "$with_jpeg" && with_jpeg=yes
7912 if test "$with_jpeg" = "yes"; then
7913 { test "$extra_verbose" = "yes" && cat << \EOF
7916 cat >> confdefs.h <<\EOF
7921 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7925 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7926 echo "configure:7927: checking for pow" >&5
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 /* System header to define __stub macros and hopefully few prototypes,
7932 which can conflict with char pow(); below. */
7934 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7941 /* The GNU C library defines this for functions which it implements
7942 to always fail with ENOSYS. Some functions are actually named
7943 something starting with __ and the normal name is an alias. */
7944 #if defined (__stub_pow) || defined (__stub___pow)
7952 if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7954 eval "ac_cv_func_pow=yes"
7956 echo "configure: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7959 eval "ac_cv_func_pow=no"
7963 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7964 echo "$ac_t""yes" 1>&6
7967 echo "$ac_t""no" 1>&6
7971 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7972 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7973 echo "configure:7974: checking for png.h" >&5
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7981 { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7983 if test -z "$ac_err"; then
7985 eval "ac_cv_header_$ac_safe=yes"
7988 echo "configure: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7991 eval "ac_cv_header_$ac_safe=no"
7994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7995 echo "$ac_t""yes" 1>&6
7998 echo "$ac_t""no" 1>&6
8002 test -z "$with_png" && {
8003 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8004 echo "configure:8005: checking for png_read_image in -lpng" >&5
8005 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8007 xe_check_libs=" -lpng "
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014 char png_read_image();
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8022 eval "ac_cv_lib_$ac_lib_var=yes"
8024 echo "configure: failed program was:" >&5
8025 cat conftest.$ac_ext >&5
8027 eval "ac_cv_lib_$ac_lib_var=no"
8032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8033 echo "$ac_t""yes" 1>&6
8036 echo "$ac_t""no" 1>&6
8041 if test -z "$with_png"; then
8042 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8043 echo "configure:8044: checking for workable png version information" >&5
8044 xe_check_libs="-lpng -lz"
8045 cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8049 int main(int c, char **v) {
8050 if (c == 1) return 0;
8051 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8052 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8056 ./conftest dummy_arg; png_status=$?;
8057 if test "$png_status" = "0"; then
8061 if test "$png_status" = "1"; then
8062 png_problem="PNG library version and header file don't match!"
8063 elif test "$png_status" = "2"; then
8064 png_problem="PNG library version too old (pre 1.0.2)!"
8067 *** WARNING *** $png_problem
8068 I'm not touching that with a 10-foot pole!
8069 If you really want to use the installed version of libPNG, rerun
8070 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8081 echo "$ac_t""$with_png" 1>&6
8083 if test "$with_png" = "yes"; then
8084 { test "$extra_verbose" = "yes" && cat << \EOF
8087 cat >> confdefs.h <<\EOF
8092 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8095 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8096 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8097 echo "configure:8098: checking for tiffio.h" >&5
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8105 { (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8107 if test -z "$ac_err"; then
8109 eval "ac_cv_header_$ac_safe=yes"
8112 echo "configure: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8115 eval "ac_cv_header_$ac_safe=no"
8118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8119 echo "$ac_t""yes" 1>&6
8122 echo "$ac_t""no" 1>&6
8126 test -z "$with_tiff" && {
8127 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8128 echo "configure:8129: checking for TIFFClientOpen in -ltiff" >&5
8129 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8131 xe_check_libs=" -ltiff "
8132 cat > conftest.$ac_ext <<EOF
8133 #line 8134 "configure"
8134 #include "confdefs.h"
8135 /* Override any gcc2 internal prototype to avoid an error. */
8136 /* We use char because int might match the return type of a gcc2
8137 builtin and then its argument prototype would still apply. */
8138 char TIFFClientOpen();
8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8146 eval "ac_cv_lib_$ac_lib_var=yes"
8148 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8151 eval "ac_cv_lib_$ac_lib_var=no"
8156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8157 echo "$ac_t""yes" 1>&6
8160 echo "$ac_t""no" 1>&6
8165 test -z "$with_tiff" && with_tiff=yes
8166 if test "$with_tiff" = "yes"; then
8167 { test "$extra_verbose" = "yes" && cat << \EOF
8170 cat >> confdefs.h <<\EOF
8175 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8180 if test "$with_x11" = "yes"; then
8182 echo "checking for X11 graphics libraries" 1>&6
8183 echo "configure:8184: checking for X11 graphics libraries" >&5
8185 echo "checking for the Athena widgets" 1>&6
8186 echo "configure:8187: checking for the Athena widgets" >&5
8188 case "$with_athena" in
8189 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8190 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8191 "next") athena_variant=neXtaw athena_3d=yes ;;
8192 "95") athena_variant=Xaw95 athena_3d=yes ;;
8193 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8194 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8197 if test "$athena_3d" = "no"; then
8199 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8200 echo "configure:8201: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8201 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8203 xe_check_libs=" -l$athena_variant "
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 /* Override any gcc2 internal prototype to avoid an error. */
8208 /* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */
8210 char XawScrollbarSetThumb();
8213 XawScrollbarSetThumb()
8216 if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8218 eval "ac_cv_lib_$ac_lib_var=yes"
8220 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8223 eval "ac_cv_lib_$ac_lib_var=no"
8228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8229 echo "$ac_t""yes" 1>&6
8231 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8232 echo "configure:8233: checking for threeDClassRec in -l$athena_variant" >&5
8233 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8235 xe_check_libs=" -l$athena_variant "
8236 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8239 /* Override any gcc2 internal prototype to avoid an error. */
8240 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8242 char threeDClassRec();
8248 if { (eval echo configure:8249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8250 eval "ac_cv_lib_$ac_lib_var=yes"
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8255 eval "ac_cv_lib_$ac_lib_var=no"
8260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8261 echo "$ac_t""yes" 1>&6
8262 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8264 echo "$ac_t""no" 1>&6
8265 athena_lib=$athena_variant
8271 echo "$ac_t""no" 1>&6
8272 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8278 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8279 echo "configure:8280: checking for threeDClassRec in -l$athena_variant" >&5
8280 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8282 xe_check_libs=" -l$athena_variant "
8283 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8286 /* Override any gcc2 internal prototype to avoid an error. */
8287 /* We use char because int might match the return type of a gcc2
8288 builtin and then its argument prototype would still apply. */
8289 char threeDClassRec();
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8297 eval "ac_cv_lib_$ac_lib_var=yes"
8299 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8302 eval "ac_cv_lib_$ac_lib_var=no"
8307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8308 echo "$ac_t""yes" 1>&6
8309 athena_lib=$athena_variant
8311 echo "$ac_t""no" 1>&6
8312 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8313 echo "configure:8314: checking for threeDClassRec in -lXaw" >&5
8314 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8316 xe_check_libs=" -lXaw "
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8323 char threeDClassRec();
8329 if { (eval echo configure:8330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8331 eval "ac_cv_lib_$ac_lib_var=yes"
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8336 eval "ac_cv_lib_$ac_lib_var=no"
8341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8342 echo "$ac_t""yes" 1>&6
8344 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8347 echo "$ac_t""no" 1>&6
8348 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8357 if test "$athena_3d" = "no"; then
8358 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8359 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8360 echo "configure:8361: checking for X11/Xaw/ThreeD.h" >&5
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8365 #include <X11/Xaw/ThreeD.h>
8367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8368 { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8370 if test -z "$ac_err"; then
8372 eval "ac_cv_header_$ac_safe=yes"
8375 echo "configure: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8378 eval "ac_cv_header_$ac_safe=no"
8381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8382 echo "$ac_t""yes" 1>&6
8383 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8385 echo "$ac_t""no" 1>&6
8386 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8387 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8388 echo "configure:8389: checking for X11/Xaw/XawInit.h" >&5
8390 cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8393 #include <X11/Xaw/XawInit.h>
8395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8396 { (eval echo configure:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8398 if test -z "$ac_err"; then
8400 eval "ac_cv_header_$ac_safe=yes"
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8406 eval "ac_cv_header_$ac_safe=no"
8409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8410 echo "$ac_t""yes" 1>&6
8411 athena_h_path=X11/Xaw
8413 echo "$ac_t""no" 1>&6
8414 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8420 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8421 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8422 echo "configure:8423: checking for X11/$athena_variant/XawInit.h" >&5
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8427 #include <X11/$athena_variant/XawInit.h>
8429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8430 { (eval echo configure:8431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8432 if test -z "$ac_err"; then
8434 eval "ac_cv_header_$ac_safe=yes"
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 eval "ac_cv_header_$ac_safe=no"
8443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8444 echo "$ac_t""yes" 1>&6
8445 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8446 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8447 echo "configure:8448: checking for X11/$athena_variant/ThreeD.h" >&5
8449 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure"
8451 #include "confdefs.h"
8452 #include <X11/$athena_variant/ThreeD.h>
8454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8455 { (eval echo configure:8456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8457 if test -z "$ac_err"; then
8459 eval "ac_cv_header_$ac_safe=yes"
8462 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8465 eval "ac_cv_header_$ac_safe=no"
8468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8469 echo "$ac_t""yes" 1>&6
8470 athena_h_path=X11/$athena_variant
8472 echo "$ac_t""no" 1>&6
8476 echo "$ac_t""no" 1>&6
8480 if test -z "$athena_h_path"; then
8481 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8482 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8483 echo "configure:8484: checking for $athena_variant/XawInit.h" >&5
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 #include <$athena_variant/XawInit.h>
8490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8491 { (eval echo configure:8492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8493 if test -z "$ac_err"; then
8495 eval "ac_cv_header_$ac_safe=yes"
8498 echo "configure: failed program was:" >&5
8499 cat conftest.$ac_ext >&5
8501 eval "ac_cv_header_$ac_safe=no"
8504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8506 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8507 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8508 echo "configure:8509: checking for $athena_variant/ThreeD.h" >&5
8510 cat > conftest.$ac_ext <<EOF
8511 #line 8512 "configure"
8512 #include "confdefs.h"
8513 #include <$athena_variant/ThreeD.h>
8515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8516 { (eval echo configure:8517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8518 if test -z "$ac_err"; then
8520 eval "ac_cv_header_$ac_safe=yes"
8523 echo "configure: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8526 eval "ac_cv_header_$ac_safe=no"
8529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8530 echo "$ac_t""yes" 1>&6
8531 athena_h_path=$athena_variant
8533 echo "$ac_t""no" 1>&6
8537 echo "$ac_t""no" 1>&6
8542 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8543 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8544 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8545 echo "configure:8546: checking for X11/Xaw3d/XawInit.h" >&5
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8550 #include <X11/Xaw3d/XawInit.h>
8552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8553 { (eval echo configure:8554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8555 if test -z "$ac_err"; then
8557 eval "ac_cv_header_$ac_safe=yes"
8560 echo "configure: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8563 eval "ac_cv_header_$ac_safe=no"
8566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8568 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8569 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8570 echo "configure:8571: checking for X11/Xaw3d/ThreeD.h" >&5
8572 cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure"
8574 #include "confdefs.h"
8575 #include <X11/Xaw3d/ThreeD.h>
8577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8578 { (eval echo configure:8579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8580 if test -z "$ac_err"; then
8582 eval "ac_cv_header_$ac_safe=yes"
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 eval "ac_cv_header_$ac_safe=no"
8591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8592 echo "$ac_t""yes" 1>&6
8594 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8595 athena_h_path=X11/Xaw3d
8598 echo "$ac_t""no" 1>&6
8602 echo "$ac_t""no" 1>&6
8607 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8608 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8609 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8610 echo "configure:8611: checking for Xaw3d/XawInit.h" >&5
8612 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8615 #include <Xaw3d/XawInit.h>
8617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8618 { (eval echo configure:8619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8620 if test -z "$ac_err"; then
8622 eval "ac_cv_header_$ac_safe=yes"
8625 echo "configure: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8628 eval "ac_cv_header_$ac_safe=no"
8631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8632 echo "$ac_t""yes" 1>&6
8633 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8634 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8635 echo "configure:8636: checking for Xaw3d/ThreeD.h" >&5
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 #include <Xaw3d/ThreeD.h>
8642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8643 { (eval echo configure:8644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8645 if test -z "$ac_err"; then
8647 eval "ac_cv_header_$ac_safe=yes"
8650 echo "configure: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8653 eval "ac_cv_header_$ac_safe=no"
8656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8657 echo "$ac_t""yes" 1>&6
8659 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8663 echo "$ac_t""no" 1>&6
8667 echo "$ac_t""no" 1>&6
8672 if test -z "$athena_h_path"; then
8673 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8674 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8675 echo "configure:8676: checking for X11/Xaw/ThreeD.h" >&5
8677 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure"
8679 #include "confdefs.h"
8680 #include <X11/Xaw/ThreeD.h>
8682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8683 { (eval echo configure:8684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8685 if test -z "$ac_err"; then
8687 eval "ac_cv_header_$ac_safe=yes"
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8693 eval "ac_cv_header_$ac_safe=no"
8696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8697 echo "$ac_t""yes" 1>&6
8699 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8700 athena_h_path=X11/Xaw
8703 echo "$ac_t""no" 1>&6
8704 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8710 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8716 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8717 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8718 echo "configure:8719: checking for Xm/Xm.h" >&5
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8726 { (eval echo configure:8727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8728 if test -z "$ac_err"; then
8730 eval "ac_cv_header_$ac_safe=yes"
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 eval "ac_cv_header_$ac_safe=no"
8739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8740 echo "$ac_t""yes" 1>&6
8742 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8743 echo "configure:8744: checking for XmStringFree in -lXm" >&5
8744 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8746 xe_check_libs=" -lXm "
8747 cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8750 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8753 char XmStringFree();
8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8761 eval "ac_cv_lib_$ac_lib_var=yes"
8763 echo "configure: failed program was:" >&5
8764 cat conftest.$ac_ext >&5
8766 eval "ac_cv_lib_$ac_lib_var=no"
8771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8772 echo "$ac_t""yes" 1>&6
8775 echo "$ac_t""no" 1>&6
8781 echo "$ac_t""no" 1>&6
8786 if test "$have_motif" = "yes"; then
8787 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8788 echo "configure:8789: checking for Lesstif" >&5
8789 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8793 #ifdef LESSTIF_VERSION
8798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8799 egrep "yes" >/dev/null 2>&1; then
8808 echo "$ac_t""$have_lesstif" 1>&6
8813 case "$with_menubars" in "" | "yes" | "athena" )
8814 with_menubars="lucid" ;;
8816 case "$with_dialogs" in "" | "yes" | "lucid" )
8817 if test "$have_motif" = "yes"; then with_dialogs="motif"
8818 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8819 else with_dialogs=no
8822 case "$with_scrollbars" in "" | "yes" )
8823 with_scrollbars="lucid" ;;
8825 case "$with_widgets" in "" | "yes" | "lucid")
8826 if test "$have_motif" = "yes"; then with_widgets="motif"
8827 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8828 else with_widgets=no
8832 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8834 case "$all_widgets" in
8836 if test "$have_xaw" != "yes"; then
8837 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8840 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8842 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8844 { test "$extra_verbose" = "yes" && cat << EOF
8845 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8847 cat >> confdefs.h <<EOF
8848 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8852 { test "$extra_verbose" = "yes" && cat << EOF
8853 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8855 cat >> confdefs.h <<EOF
8856 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8860 { test "$extra_verbose" = "yes" && cat << EOF
8861 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8863 cat >> confdefs.h <<EOF
8864 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8868 { test "$extra_verbose" = "yes" && cat << EOF
8869 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8871 cat >> confdefs.h <<EOF
8872 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8876 { test "$extra_verbose" = "yes" && cat << EOF
8877 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8879 cat >> confdefs.h <<EOF
8880 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8884 { test "$extra_verbose" = "yes" && cat << EOF
8885 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8887 cat >> confdefs.h <<EOF
8888 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8892 { test "$extra_verbose" = "yes" && cat << EOF
8893 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8895 cat >> confdefs.h <<EOF
8896 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8900 { test "$extra_verbose" = "yes" && cat << EOF
8901 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8903 cat >> confdefs.h <<EOF
8904 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8908 { test "$extra_verbose" = "yes" && cat << EOF
8909 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8911 cat >> confdefs.h <<EOF
8912 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8916 { test "$extra_verbose" = "yes" && cat << EOF
8917 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8919 cat >> confdefs.h <<EOF
8920 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8925 { test "$extra_verbose" = "yes" && cat << \EOF
8926 Defining LWLIB_USES_ATHENA
8928 cat >> confdefs.h <<\EOF
8929 #define LWLIB_USES_ATHENA 1
8933 { test "$extra_verbose" = "yes" && cat << \EOF
8934 Defining NEED_ATHENA
8936 cat >> confdefs.h <<\EOF
8937 #define NEED_ATHENA 1
8943 if test "$athena_3d" = "yes"; then
8944 { test "$extra_verbose" = "yes" && cat << \EOF
8945 Defining HAVE_ATHENA_3D
8947 cat >> confdefs.h <<\EOF
8948 #define HAVE_ATHENA_3D 1
8956 case "$all_widgets" in *motif* )
8957 { test "$extra_verbose" = "yes" && cat << \EOF
8958 Defining LWLIB_USES_MOTIF
8960 cat >> confdefs.h <<\EOF
8961 #define LWLIB_USES_MOTIF 1
8965 { test "$extra_verbose" = "yes" && cat << \EOF
8968 cat >> confdefs.h <<\EOF
8969 #define NEED_MOTIF 1
8973 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8977 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8978 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8979 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8980 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8981 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8982 case "$with_widgets" in athena* )
8983 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
8985 case "$all_widgets" in *lucid* )
8986 { test "$extra_verbose" = "yes" && cat << \EOF
8989 cat >> confdefs.h <<\EOF
8990 #define NEED_LUCID 1
8994 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8999 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9000 Defining LWLIB_SCROLLBARS_ATHENA
9002 cat >> confdefs.h <<\EOF
9003 #define LWLIB_SCROLLBARS_ATHENA 1
9007 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9008 Defining LWLIB_DIALOGS_ATHENA
9010 cat >> confdefs.h <<\EOF
9011 #define LWLIB_DIALOGS_ATHENA 1
9016 if test "$athena_3d" = "yes"; then
9017 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9018 Defining LWLIB_SCROLLBARS_ATHENA3D
9020 cat >> confdefs.h <<\EOF
9021 #define LWLIB_SCROLLBARS_ATHENA3D 1
9025 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9026 Defining LWLIB_DIALOGS_ATHENA3D
9028 cat >> confdefs.h <<\EOF
9029 #define LWLIB_DIALOGS_ATHENA3D 1
9035 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9036 Defining LWLIB_WIDGETS_ATHENA
9038 cat >> confdefs.h <<\EOF
9039 #define LWLIB_WIDGETS_ATHENA 1
9043 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9044 { test "$extra_verbose" = "yes" && cat << \EOF
9045 Defining LWLIB_TABS_LUCID
9047 cat >> confdefs.h <<\EOF
9048 #define LWLIB_TABS_LUCID 1
9053 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9054 Defining HAVE_MENUBARS
9056 cat >> confdefs.h <<\EOF
9057 #define HAVE_MENUBARS 1
9061 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9062 Defining HAVE_SCROLLBARS
9064 cat >> confdefs.h <<\EOF
9065 #define HAVE_SCROLLBARS 1
9069 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9070 Defining HAVE_DIALOGS
9072 cat >> confdefs.h <<\EOF
9073 #define HAVE_DIALOGS 1
9077 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9078 Defining HAVE_TOOLBARS
9080 cat >> confdefs.h <<\EOF
9081 #define HAVE_TOOLBARS 1
9085 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9086 Defining HAVE_WIDGETS
9088 cat >> confdefs.h <<\EOF
9089 #define HAVE_WIDGETS 1
9094 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9095 Defining LWLIB_MENUBARS_LUCID
9097 cat >> confdefs.h <<\EOF
9098 #define LWLIB_MENUBARS_LUCID 1
9102 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9103 Defining LWLIB_SCROLLBARS_LUCID
9105 cat >> confdefs.h <<\EOF
9106 #define LWLIB_SCROLLBARS_LUCID 1
9111 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9112 Defining LWLIB_MENUBARS_MOTIF
9114 cat >> confdefs.h <<\EOF
9115 #define LWLIB_MENUBARS_MOTIF 1
9119 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9120 Defining LWLIB_SCROLLBARS_MOTIF
9122 cat >> confdefs.h <<\EOF
9123 #define LWLIB_SCROLLBARS_MOTIF 1
9127 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9128 Defining LWLIB_DIALOGS_MOTIF
9130 cat >> confdefs.h <<\EOF
9131 #define LWLIB_DIALOGS_MOTIF 1
9135 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9136 Defining LWLIB_WIDGETS_MOTIF
9138 cat >> confdefs.h <<\EOF
9139 #define LWLIB_WIDGETS_MOTIF 1
9144 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9145 echo " xemacs will be linked with \"menubar.o\""
9147 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9148 echo " xemacs will be linked with \"scrollbar.o\""
9150 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9151 echo " xemacs will be linked with \"dialog.o\""
9153 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9154 echo " xemacs will be linked with \"toolbar.o\""
9157 if test "$with_x11" = "yes"; then
9158 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9159 echo " xemacs will be linked with \"menubar-x.o\""
9161 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9162 echo " xemacs will be linked with \"scrollbar-x.o\""
9164 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9165 echo " xemacs will be linked with \"dialog-x.o\""
9167 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9168 echo " xemacs will be linked with \"toolbar-x.o\""
9170 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9171 echo " xemacs will be linked with \"gui-x.o\""
9176 test -z "$with_mule" && with_mule=no
9177 test -z "$with_file_coding" && with_file_coding=no
9180 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9181 { test "$extra_verbose" = "yes" && cat << \EOF
9182 Defining FILE_CODING
9184 cat >> confdefs.h <<\EOF
9185 #define FILE_CODING 1
9189 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9190 echo " xemacs will be linked with \"file-coding.o\""
9194 if test "$with_mule" = "yes" ; then
9195 echo "checking for Mule-related features" 1>&6
9196 echo "configure:9197: checking for Mule-related features" >&5
9197 { test "$extra_verbose" = "yes" && cat << \EOF
9200 cat >> confdefs.h <<\EOF
9205 { test "$extra_verbose" = "yes" && cat << \EOF
9206 Defining FILE_CODING
9208 cat >> confdefs.h <<\EOF
9209 #define FILE_CODING 1
9213 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9214 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9216 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9217 { test "$extra_verbose" = "yes" && cat << \EOF
9218 Defining TEXT_CODING
9220 cat >> confdefs.h <<\EOF
9221 #define TEXT_CODING 1
9225 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9226 echo " xemacs will be linked with \"text-coding.o\""
9229 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9230 echo " xemacs will be linked with \"file-coding.o\""
9233 for ac_hdr in libintl.h
9235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9237 echo "configure:9238: checking for $ac_hdr" >&5
9239 cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9245 { (eval echo configure:9246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9247 if test -z "$ac_err"; then
9249 eval "ac_cv_header_$ac_safe=yes"
9252 echo "configure: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9255 eval "ac_cv_header_$ac_safe=no"
9258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9259 echo "$ac_t""yes" 1>&6
9260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9261 { test "$extra_verbose" = "yes" && cat << EOF
9264 cat >> confdefs.h <<EOF
9265 #define $ac_tr_hdr 1
9270 echo "$ac_t""no" 1>&6
9275 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9276 echo "configure:9277: checking for strerror in -lintl" >&5
9277 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9279 xe_check_libs=" -lintl "
9280 cat > conftest.$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9283 /* Override any gcc2 internal prototype to avoid an error. */
9284 /* We use char because int might match the return type of a gcc2
9285 builtin and then its argument prototype would still apply. */
9292 if { (eval echo configure:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9294 eval "ac_cv_lib_$ac_lib_var=yes"
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9299 eval "ac_cv_lib_$ac_lib_var=no"
9304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9305 echo "$ac_t""yes" 1>&6
9306 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9307 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9308 { test "$extra_verbose" = "yes" && cat << EOF
9311 cat >> confdefs.h <<EOF
9312 #define $ac_tr_lib 1
9316 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9319 echo "$ac_t""no" 1>&6
9324 if test "$with_utf_2000" = "yes" ; then
9325 { test "$extra_verbose" = "yes" && cat << \EOF
9326 Defining CHAR_IS_UCS4
9328 cat >> confdefs.h <<\EOF
9329 #define CHAR_IS_UCS4 1
9333 { test "$extra_verbose" = "yes" && cat << \EOF
9336 cat >> confdefs.h <<\EOF
9341 { test "$extra_verbose" = "yes" && cat << \EOF
9344 cat >> confdefs.h <<\EOF
9351 echo "checking for Mule input methods" 1>&6
9352 echo "configure:9353: checking for Mule input methods" >&5
9353 case "$with_xim" in "" | "yes" )
9354 echo "checking for XIM" 1>&6
9355 echo "configure:9356: checking for XIM" >&5
9357 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9358 echo "configure:9359: checking for XOpenIM in -lX11" >&5
9359 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9361 xe_check_libs=" -lX11 "
9362 cat > conftest.$ac_ext <<EOF
9363 #line 9364 "configure"
9364 #include "confdefs.h"
9365 /* Override any gcc2 internal prototype to avoid an error. */
9366 /* We use char because int might match the return type of a gcc2
9367 builtin and then its argument prototype would still apply. */
9374 if { (eval echo configure:9375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9376 eval "ac_cv_lib_$ac_lib_var=yes"
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9381 eval "ac_cv_lib_$ac_lib_var=no"
9386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9387 echo "$ac_t""yes" 1>&6
9390 echo "$ac_t""no" 1>&6
9395 if test "$have_motif $have_lesstif" = "yes no"; then
9397 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9398 echo "configure:9399: checking for XmImMbLookupString in -lXm" >&5
9399 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9401 xe_check_libs=" -lXm "
9402 cat > conftest.$ac_ext <<EOF
9403 #line 9404 "configure"
9404 #include "confdefs.h"
9405 /* Override any gcc2 internal prototype to avoid an error. */
9406 /* We use char because int might match the return type of a gcc2
9407 builtin and then its argument prototype would still apply. */
9408 char XmImMbLookupString();
9411 XmImMbLookupString()
9414 if { (eval echo configure:9415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9416 eval "ac_cv_lib_$ac_lib_var=yes"
9418 echo "configure: failed program was:" >&5
9419 cat conftest.$ac_ext >&5
9421 eval "ac_cv_lib_$ac_lib_var=no"
9426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9427 echo "$ac_t""yes" 1>&6
9430 echo "$ac_t""no" 1>&6
9436 if test "$with_xim" != "no"; then
9437 { test "$extra_verbose" = "yes" && cat << \EOF
9440 cat >> confdefs.h <<\EOF
9445 if test "$with_xim" = "xlib"; then
9446 { test "$extra_verbose" = "yes" && cat << \EOF
9449 cat >> confdefs.h <<\EOF
9454 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9455 echo " xemacs will be linked with \"input-method-xlib.o\""
9458 if test "$with_xim" = "motif"; then
9459 { test "$extra_verbose" = "yes" && cat << \EOF
9462 cat >> confdefs.h <<\EOF
9468 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9469 echo " xemacs will be linked with \"input-method-motif.o\""
9472 if test "$with_xim" = "motif"; then
9477 if test "$with_xfs" = "yes" ; then
9478 echo "checking for XFontSet" 1>&6
9479 echo "configure:9480: checking for XFontSet" >&5
9481 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9482 echo "configure:9483: checking for XmbDrawString in -lX11" >&5
9483 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9485 xe_check_libs=" -lX11 "
9486 cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9489 /* Override any gcc2 internal prototype to avoid an error. */
9490 /* We use char because int might match the return type of a gcc2
9491 builtin and then its argument prototype would still apply. */
9492 char XmbDrawString();
9498 if { (eval echo configure:9499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9500 eval "ac_cv_lib_$ac_lib_var=yes"
9502 echo "configure: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9505 eval "ac_cv_lib_$ac_lib_var=no"
9510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9511 echo "$ac_t""yes" 1>&6
9514 echo "$ac_t""no" 1>&6
9519 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9520 { test "$extra_verbose" = "yes" && cat << \EOF
9521 Defining USE_XFONTSET
9523 cat >> confdefs.h <<\EOF
9524 #define USE_XFONTSET 1
9528 if test "$with_xim" = "no" ; then
9529 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
9530 echo " xemacs will be linked with \"input-method-xfs.o\""
9535 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9536 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9537 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9538 echo "configure:9539: checking for wnn/jllib.h" >&5
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 #include <wnn/jllib.h>
9545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9546 { (eval echo configure:9547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9548 if test -z "$ac_err"; then
9550 eval "ac_cv_header_$ac_safe=yes"
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9556 eval "ac_cv_header_$ac_safe=no"
9559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9560 echo "$ac_t""yes" 1>&6
9563 echo "$ac_t""no" 1>&6
9567 if test "$with_wnn" != "no"; then
9568 for ac_func in crypt
9570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9571 echo "configure:9572: checking for $ac_func" >&5
9573 cat > conftest.$ac_ext <<EOF
9574 #line 9575 "configure"
9575 #include "confdefs.h"
9576 /* System header to define __stub macros and hopefully few prototypes,
9577 which can conflict with char $ac_func(); below. */
9579 /* Override any gcc2 internal prototype to avoid an error. */
9580 /* We use char because int might match the return type of a gcc2
9581 builtin and then its argument prototype would still apply. */
9586 /* The GNU C library defines this for functions which it implements
9587 to always fail with ENOSYS. Some functions are actually named
9588 something starting with __ and the normal name is an alias. */
9589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9597 if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9599 eval "ac_cv_func_$ac_func=yes"
9601 echo "configure: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9604 eval "ac_cv_func_$ac_func=no"
9608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9611 { test "$extra_verbose" = "yes" && cat << EOF
9612 Defining $ac_tr_func
9614 cat >> confdefs.h <<EOF
9615 #define $ac_tr_func 1
9620 echo "$ac_t""no" 1>&6
9624 test "$ac_cv_func_crypt" != "yes" && {
9625 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9626 echo "configure:9627: checking for crypt in -lcrypt" >&5
9627 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9629 xe_check_libs=" -lcrypt "
9630 cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 /* Override any gcc2 internal prototype to avoid an error. */
9634 /* We use char because int might match the return type of a gcc2
9635 builtin and then its argument prototype would still apply. */
9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9644 eval "ac_cv_lib_$ac_lib_var=yes"
9646 echo "configure: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9649 eval "ac_cv_lib_$ac_lib_var=no"
9654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9655 echo "$ac_t""yes" 1>&6
9656 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9658 { test "$extra_verbose" = "yes" && cat << EOF
9661 cat >> confdefs.h <<EOF
9662 #define $ac_tr_lib 1
9666 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9669 echo "$ac_t""no" 1>&6
9674 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9676 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9677 echo "configure:9678: checking for jl_dic_list_e in -lwnn" >&5
9678 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9680 xe_check_libs=" -lwnn "
9681 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9684 /* Override any gcc2 internal prototype to avoid an error. */
9685 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687 char jl_dic_list_e();
9693 if { (eval echo configure:9694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9695 eval "ac_cv_lib_$ac_lib_var=yes"
9697 echo "configure: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9700 eval "ac_cv_lib_$ac_lib_var=no"
9705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9706 echo "$ac_t""yes" 1>&6
9709 echo "$ac_t""no" 1>&6
9710 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9711 echo "configure:9712: checking for jl_dic_list_e in -lwnn4" >&5
9712 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9714 xe_check_libs=" -lwnn4 "
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9718 /* Override any gcc2 internal prototype to avoid an error. */
9719 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721 char jl_dic_list_e();
9727 if { (eval echo configure:9728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9729 eval "ac_cv_lib_$ac_lib_var=yes"
9731 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9734 eval "ac_cv_lib_$ac_lib_var=no"
9739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9740 echo "$ac_t""yes" 1>&6
9743 echo "$ac_t""no" 1>&6
9744 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9745 echo "configure:9746: checking for jl_dic_list_e in -lwnn6" >&5
9746 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9748 xe_check_libs=" -lwnn6 "
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9752 /* Override any gcc2 internal prototype to avoid an error. */
9753 /* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755 char jl_dic_list_e();
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9763 eval "ac_cv_lib_$ac_lib_var=yes"
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9768 eval "ac_cv_lib_$ac_lib_var=no"
9773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9774 echo "$ac_t""yes" 1>&6
9777 echo "$ac_t""no" 1>&6
9778 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9779 echo "configure:9780: checking for dic_list_e in -lwnn6_fromsrc" >&5
9780 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9782 xe_check_libs=" -lwnn6_fromsrc "
9783 cat > conftest.$ac_ext <<EOF
9784 #line 9785 "configure"
9785 #include "confdefs.h"
9786 /* Override any gcc2 internal prototype to avoid an error. */
9787 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9795 if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9797 eval "ac_cv_lib_$ac_lib_var=yes"
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9802 eval "ac_cv_lib_$ac_lib_var=no"
9807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9808 echo "$ac_t""yes" 1>&6
9811 echo "$ac_t""no" 1>&6
9826 test -z "$with_wnn" && with_wnn=yes
9827 if test "$with_wnn" = "yes"; then
9828 { test "$extra_verbose" = "yes" && cat << \EOF
9831 cat >> confdefs.h <<\EOF
9836 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9837 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9838 echo " xemacs will be linked with \"mule-wnnfns.o\""
9840 if test "$with_wnn6" != "no"; then
9842 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9843 echo "configure:9844: checking for jl_fi_dic_list in -l$libwnn" >&5
9844 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9846 xe_check_libs=" -l$libwnn "
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 /* Override any gcc2 internal prototype to avoid an error. */
9851 /* We use char because int might match the return type of a gcc2
9852 builtin and then its argument prototype would still apply. */
9853 char jl_fi_dic_list();
9859 if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9861 eval "ac_cv_lib_$ac_lib_var=yes"
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9866 eval "ac_cv_lib_$ac_lib_var=no"
9871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9872 echo "$ac_t""yes" 1>&6
9875 echo "$ac_t""no" 1>&6
9879 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9882 cat >> confdefs.h <<\EOF
9890 canna_includes_found=no
9891 if test "$with_canna" != "no"; then
9892 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9893 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9894 echo "configure:9895: checking for canna/jrkanji.h" >&5
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 #include <canna/jrkanji.h>
9901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9902 { (eval echo configure:9903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9904 if test -z "$ac_err"; then
9906 eval "ac_cv_header_$ac_safe=yes"
9909 echo "configure: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9912 eval "ac_cv_header_$ac_safe=no"
9915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9916 echo "$ac_t""yes" 1>&6
9917 canna_includes_found=yes
9919 echo "$ac_t""no" 1>&6
9923 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9924 -d "/usr/local/canna/include"; then
9925 save_c_switch_site="$c_switch_site"
9926 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9927 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9928 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9929 echo "configure:9930: checking for canna/jrkanji.h" >&5
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 #include <canna/jrkanji.h>
9936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9937 { (eval echo configure:9938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9939 if test -z "$ac_err"; then
9941 eval "ac_cv_header_$ac_safe=yes"
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9947 eval "ac_cv_header_$ac_safe=no"
9950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9951 echo "$ac_t""yes" 1>&6
9952 canna_includes_found=yes
9954 echo "$ac_t""no" 1>&6
9957 if test "$canna_includes_found" != "yes"; then
9958 c_switch_site="$save_c_switch_site"
9963 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9964 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9965 echo "configure:9966: checking for canna/RK.h" >&5
9967 cat > conftest.$ac_ext <<EOF
9968 #line 9969 "configure"
9969 #include "confdefs.h"
9970 #include <canna/RK.h>
9972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9973 { (eval echo configure:9974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9975 if test -z "$ac_err"; then
9977 eval "ac_cv_header_$ac_safe=yes"
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9983 eval "ac_cv_header_$ac_safe=no"
9986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9987 echo "$ac_t""yes" 1>&6
9990 echo "$ac_t""no" 1>&6
9994 test -z "$with_canna" && {
9995 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9996 echo "configure:9997: checking for RkBgnBun in -lRKC" >&5
9997 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9999 xe_check_libs=" -lRKC "
10000 cat > conftest.$ac_ext <<EOF
10001 #line 10002 "configure"
10002 #include "confdefs.h"
10003 /* Override any gcc2 internal prototype to avoid an error. */
10004 /* We use char because int might match the return type of a gcc2
10005 builtin and then its argument prototype would still apply. */
10012 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10014 eval "ac_cv_lib_$ac_lib_var=yes"
10016 echo "configure: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10019 eval "ac_cv_lib_$ac_lib_var=no"
10024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10025 echo "$ac_t""yes" 1>&6
10028 echo "$ac_t""no" 1>&6
10033 test -z "$with_canna" && {
10034 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10035 echo "configure:10036: checking for jrKanjiControl in -lcanna" >&5
10036 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10038 xe_check_libs=" -lcanna "
10039 cat > conftest.$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 /* Override any gcc2 internal prototype to avoid an error. */
10043 /* We use char because int might match the return type of a gcc2
10044 builtin and then its argument prototype would still apply. */
10045 char jrKanjiControl();
10051 if { (eval echo configure:10052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10053 eval "ac_cv_lib_$ac_lib_var=yes"
10055 echo "configure: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10058 eval "ac_cv_lib_$ac_lib_var=no"
10063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10064 echo "$ac_t""yes" 1>&6
10067 echo "$ac_t""no" 1>&6
10072 test -z "$with_canna" && with_canna=yes
10073 if test "$with_canna" = "yes"; then
10074 { test "$extra_verbose" = "yes" && cat << \EOF
10075 Defining HAVE_CANNA
10077 cat >> confdefs.h <<\EOF
10078 #define HAVE_CANNA 1
10082 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10083 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10084 echo " xemacs will be linked with \"mule-canna.o\""
10088 else for feature in xim canna wnn; do
10089 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10090 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10092 eval "with_${feature}=no"
10096 if test "$need_motif" = "yes" ; then
10097 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10099 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10100 echo "configure:10101: checking for layout_object_getvalue in -li18n" >&5
10101 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10103 xe_check_libs=" -li18n "
10104 cat > conftest.$ac_ext <<EOF
10105 #line 10106 "configure"
10106 #include "confdefs.h"
10107 /* Override any gcc2 internal prototype to avoid an error. */
10108 /* We use char because int might match the return type of a gcc2
10109 builtin and then its argument prototype would still apply. */
10110 char layout_object_getvalue();
10113 layout_object_getvalue()
10116 if { (eval echo configure:10117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10118 eval "ac_cv_lib_$ac_lib_var=yes"
10120 echo "configure: failed program was:" >&5
10121 cat conftest.$ac_ext >&5
10123 eval "ac_cv_lib_$ac_lib_var=no"
10128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10129 echo "$ac_t""yes" 1>&6
10130 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10132 echo "$ac_t""no" 1>&6
10137 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10138 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10139 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10141 runpath="" runpath_dirs=""
10142 if test -n "$LD_RUN_PATH"; then
10143 runpath="$LD_RUN_PATH"
10144 elif test "$GCC" = "yes"; then
10145 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10146 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10147 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10148 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10149 case "$arg" in P,* | -L* | -R* )
10150 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10152 xe_runpath_dir="$dir"
10153 test "$xe_runpath_dir" != "/lib" -a \
10154 "$xe_runpath_dir" != "/usr/lib" -a \
10155 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10156 eval "$xe_add_unique_runpath_dir"
10161 ld_switch_run="$ld_switch_run_save"
10164 for arg in $ld_switch_site $ld_switch_x_site; do
10165 case "$arg" in -L*) {
10166 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10167 test "$xe_runpath_dir" != "/lib" -a \
10168 "$xe_runpath_dir" != "/usr/lib" -a \
10169 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10170 eval "$xe_add_unique_runpath_dir"
10173 if test "$opsys $need_motif" = "sol2 yes"; then
10174 xe_runpath_dir="/opt/SUNWdt/lib";
10175 eval "$xe_add_unique_runpath_dir";
10178 if test -n "$runpath"; then
10179 ld_switch_run="${dash_r}${runpath}"
10181 if test "$GCC" = "yes"; then
10182 set x $ld_switch_run; shift; ld_switch_run=""
10183 while test -n "$1"; do
10185 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10186 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10188 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10193 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10199 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
10201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10202 echo "configure:10203: checking for $ac_func" >&5
10204 cat > conftest.$ac_ext <<EOF
10205 #line 10206 "configure"
10206 #include "confdefs.h"
10207 /* System header to define __stub macros and hopefully few prototypes,
10208 which can conflict with char $ac_func(); below. */
10209 #include <assert.h>
10210 /* Override any gcc2 internal prototype to avoid an error. */
10211 /* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
10217 /* The GNU C library defines this for functions which it implements
10218 to always fail with ENOSYS. Some functions are actually named
10219 something starting with __ and the normal name is an alias. */
10220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10228 if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10230 eval "ac_cv_func_$ac_func=yes"
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10235 eval "ac_cv_func_$ac_func=no"
10239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10240 echo "$ac_t""yes" 1>&6
10241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10242 { test "$extra_verbose" = "yes" && cat << EOF
10243 Defining $ac_tr_func
10245 cat >> confdefs.h <<EOF
10246 #define $ac_tr_func 1
10251 echo "$ac_t""no" 1>&6
10256 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10259 echo "configure:10260: checking for $ac_func" >&5
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 /* System header to define __stub macros and hopefully few prototypes,
10265 which can conflict with char $ac_func(); below. */
10266 #include <assert.h>
10267 /* Override any gcc2 internal prototype to avoid an error. */
10268 /* We use char because int might match the return type of a gcc2
10269 builtin and then its argument prototype would still apply. */
10274 /* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10285 if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10287 eval "ac_cv_func_$ac_func=yes"
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10292 eval "ac_cv_func_$ac_func=no"
10296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10299 { test "$extra_verbose" = "yes" && cat << EOF
10300 Defining $ac_tr_func
10302 cat >> confdefs.h <<EOF
10303 #define $ac_tr_func 1
10308 echo "$ac_t""no" 1>&6
10313 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10314 echo "configure:10315: checking for openpty" >&5
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10319 /* System header to define __stub macros and hopefully few prototypes,
10320 which can conflict with char openpty(); below. */
10321 #include <assert.h>
10322 /* Override any gcc2 internal prototype to avoid an error. */
10323 /* We use char because int might match the return type of a gcc2
10324 builtin and then its argument prototype would still apply. */
10329 /* The GNU C library defines this for functions which it implements
10330 to always fail with ENOSYS. Some functions are actually named
10331 something starting with __ and the normal name is an alias. */
10332 #if defined (__stub_openpty) || defined (__stub___openpty)
10340 if { (eval echo configure:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10342 eval "ac_cv_func_openpty=yes"
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10347 eval "ac_cv_func_openpty=no"
10351 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10352 echo "$ac_t""yes" 1>&6
10355 echo "$ac_t""no" 1>&6
10358 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10359 echo "configure:10360: checking for openpty in -lutil" >&5
10360 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10362 xe_check_libs=" -lutil "
10363 cat > conftest.$ac_ext <<EOF
10364 #line 10365 "configure"
10365 #include "confdefs.h"
10366 /* Override any gcc2 internal prototype to avoid an error. */
10367 /* We use char because int might match the return type of a gcc2
10368 builtin and then its argument prototype would still apply. */
10375 if { (eval echo configure:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10377 eval "ac_cv_lib_$ac_lib_var=yes"
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10382 eval "ac_cv_lib_$ac_lib_var=no"
10387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10388 echo "$ac_t""yes" 1>&6
10389 have_openpty=yes need_libutil=yes
10391 echo "$ac_t""no" 1>&6
10397 if test "$have_openpty" = "yes"; then
10398 { test "$extra_verbose" = "yes" && cat << \EOF
10399 Defining HAVE_OPENPTY
10401 cat >> confdefs.h <<\EOF
10402 #define HAVE_OPENPTY 1
10406 for ac_hdr in pty.h libutil.h
10408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10410 echo "configure:10411: checking for $ac_hdr" >&5
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure"
10414 #include "confdefs.h"
10417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10418 { (eval echo configure:10419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10420 if test -z "$ac_err"; then
10422 eval "ac_cv_header_$ac_safe=yes"
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10428 eval "ac_cv_header_$ac_safe=no"
10431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10432 echo "$ac_t""yes" 1>&6
10433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10434 { test "$extra_verbose" = "yes" && cat << EOF
10435 Defining $ac_tr_hdr
10437 cat >> confdefs.h <<EOF
10438 #define $ac_tr_hdr 1
10443 echo "$ac_t""no" 1>&6
10447 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
10450 for ac_hdr in stropts.h
10452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10454 echo "configure:10455: checking for $ac_hdr" >&5
10456 cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10462 { (eval echo configure:10463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10464 if test -z "$ac_err"; then
10466 eval "ac_cv_header_$ac_safe=yes"
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10472 eval "ac_cv_header_$ac_safe=no"
10475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10476 echo "$ac_t""yes" 1>&6
10477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10478 { test "$extra_verbose" = "yes" && cat << EOF
10479 Defining $ac_tr_hdr
10481 cat >> confdefs.h <<EOF
10482 #define $ac_tr_hdr 1
10487 echo "$ac_t""no" 1>&6
10491 if test "$ac_cv_header_stropts_h" = "yes"; then
10492 for ac_func in isastream
10494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10495 echo "configure:10496: checking for $ac_func" >&5
10497 cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure"
10499 #include "confdefs.h"
10500 /* System header to define __stub macros and hopefully few prototypes,
10501 which can conflict with char $ac_func(); below. */
10502 #include <assert.h>
10503 /* Override any gcc2 internal prototype to avoid an error. */
10504 /* We use char because int might match the return type of a gcc2
10505 builtin and then its argument prototype would still apply. */
10510 /* The GNU C library defines this for functions which it implements
10511 to always fail with ENOSYS. Some functions are actually named
10512 something starting with __ and the normal name is an alias. */
10513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10521 if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10523 eval "ac_cv_func_$ac_func=yes"
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10528 eval "ac_cv_func_$ac_func=no"
10532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10533 echo "$ac_t""yes" 1>&6
10534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10535 { test "$extra_verbose" = "yes" && cat << EOF
10536 Defining $ac_tr_func
10538 cat >> confdefs.h <<EOF
10539 #define $ac_tr_func 1
10544 echo "$ac_t""no" 1>&6
10548 for ac_hdr in strtio.h
10550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10552 echo "configure:10553: checking for $ac_hdr" >&5
10554 cat > conftest.$ac_ext <<EOF
10555 #line 10556 "configure"
10556 #include "confdefs.h"
10559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10560 { (eval echo configure:10561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10562 if test -z "$ac_err"; then
10564 eval "ac_cv_header_$ac_safe=yes"
10567 echo "configure: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10570 eval "ac_cv_header_$ac_safe=no"
10573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10574 echo "$ac_t""yes" 1>&6
10575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10576 { test "$extra_verbose" = "yes" && cat << EOF
10577 Defining $ac_tr_hdr
10579 cat >> confdefs.h <<EOF
10580 #define $ac_tr_hdr 1
10585 echo "$ac_t""no" 1>&6
10590 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
10591 echo " xemacs will be linked with \"realpath.o\""
10594 for ac_func in getloadavg
10596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10597 echo "configure:10598: checking for $ac_func" >&5
10599 cat > conftest.$ac_ext <<EOF
10600 #line 10601 "configure"
10601 #include "confdefs.h"
10602 /* System header to define __stub macros and hopefully few prototypes,
10603 which can conflict with char $ac_func(); below. */
10604 #include <assert.h>
10605 /* Override any gcc2 internal prototype to avoid an error. */
10606 /* We use char because int might match the return type of a gcc2
10607 builtin and then its argument prototype would still apply. */
10612 /* The GNU C library defines this for functions which it implements
10613 to always fail with ENOSYS. Some functions are actually named
10614 something starting with __ and the normal name is an alias. */
10615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10625 eval "ac_cv_func_$ac_func=yes"
10627 echo "configure: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10630 eval "ac_cv_func_$ac_func=no"
10634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10635 echo "$ac_t""yes" 1>&6
10636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10637 { test "$extra_verbose" = "yes" && cat << EOF
10638 Defining $ac_tr_func
10640 cat >> confdefs.h <<EOF
10641 #define $ac_tr_func 1
10646 echo "$ac_t""no" 1>&6
10651 if test "$ac_cv_func_getloadavg" = "yes"; then
10652 for ac_hdr in sys/loadavg.h
10654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10656 echo "configure:10657: checking for $ac_hdr" >&5
10658 cat > conftest.$ac_ext <<EOF
10659 #line 10660 "configure"
10660 #include "confdefs.h"
10663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10664 { (eval echo configure:10665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10666 if test -z "$ac_err"; then
10668 eval "ac_cv_header_$ac_safe=yes"
10671 echo "configure: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10674 eval "ac_cv_header_$ac_safe=no"
10677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10678 echo "$ac_t""yes" 1>&6
10679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10680 { test "$extra_verbose" = "yes" && cat << EOF
10681 Defining $ac_tr_hdr
10683 cat >> confdefs.h <<EOF
10684 #define $ac_tr_hdr 1
10689 echo "$ac_t""no" 1>&6
10694 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10695 echo " xemacs will be linked with \"getloadavg.o\""
10699 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10700 echo "configure:10701: checking for kstat_open in -lkstat" >&5
10701 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10703 xe_check_libs=" -lkstat "
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 /* Override any gcc2 internal prototype to avoid an error. */
10708 /* We use char because int might match the return type of a gcc2
10709 builtin and then its argument prototype would still apply. */
10716 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10718 eval "ac_cv_lib_$ac_lib_var=yes"
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10723 eval "ac_cv_lib_$ac_lib_var=no"
10728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10729 echo "$ac_t""yes" 1>&6
10730 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10731 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10732 { test "$extra_verbose" = "yes" && cat << EOF
10733 Defining $ac_tr_lib
10735 cat >> confdefs.h <<EOF
10736 #define $ac_tr_lib 1
10740 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10743 echo "$ac_t""no" 1>&6
10747 for ac_hdr in kstat.h
10749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10751 echo "configure:10752: checking for $ac_hdr" >&5
10753 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10759 { (eval echo configure:10760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10761 if test -z "$ac_err"; then
10763 eval "ac_cv_header_$ac_safe=yes"
10766 echo "configure: failed program was:" >&5
10767 cat conftest.$ac_ext >&5
10769 eval "ac_cv_header_$ac_safe=no"
10772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10773 echo "$ac_t""yes" 1>&6
10774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10775 { test "$extra_verbose" = "yes" && cat << EOF
10776 Defining $ac_tr_hdr
10778 cat >> confdefs.h <<EOF
10779 #define $ac_tr_hdr 1
10784 echo "$ac_t""no" 1>&6
10790 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10791 echo "configure:10792: checking for kvm_read in -lkvm" >&5
10792 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10794 xe_check_libs=" -lkvm "
10795 cat > conftest.$ac_ext <<EOF
10796 #line 10797 "configure"
10797 #include "confdefs.h"
10798 /* Override any gcc2 internal prototype to avoid an error. */
10799 /* We use char because int might match the return type of a gcc2
10800 builtin and then its argument prototype would still apply. */
10807 if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10809 eval "ac_cv_lib_$ac_lib_var=yes"
10811 echo "configure: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10814 eval "ac_cv_lib_$ac_lib_var=no"
10819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10820 echo "$ac_t""yes" 1>&6
10821 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10822 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10823 { test "$extra_verbose" = "yes" && cat << EOF
10824 Defining $ac_tr_lib
10826 cat >> confdefs.h <<EOF
10827 #define $ac_tr_lib 1
10831 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10834 echo "$ac_t""no" 1>&6
10840 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10841 echo "configure:10842: checking whether netdb declares h_errno" >&5
10842 cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure"
10844 #include "confdefs.h"
10850 if { (eval echo configure:10851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10852 echo "$ac_t""yes" 1>&6
10853 { test "$extra_verbose" = "yes" && cat << \EOF
10854 Defining HAVE_H_ERRNO
10856 cat >> confdefs.h <<\EOF
10857 #define HAVE_H_ERRNO 1
10862 echo "configure: failed program was:" >&5
10863 cat conftest.$ac_ext >&5
10865 echo "$ac_t""no" 1>&6
10869 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10870 echo "configure:10871: checking for sigsetjmp" >&5
10871 cat > conftest.$ac_ext <<EOF
10872 #line 10873 "configure"
10873 #include "confdefs.h"
10874 #include <setjmp.h>
10876 sigjmp_buf bar; sigsetjmp (bar, 0);
10879 if { (eval echo configure:10880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10881 echo "$ac_t""yes" 1>&6
10882 { test "$extra_verbose" = "yes" && cat << \EOF
10883 Defining HAVE_SIGSETJMP
10885 cat >> confdefs.h <<\EOF
10886 #define HAVE_SIGSETJMP 1
10891 echo "configure: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10894 echo "$ac_t""no" 1>&6
10898 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10899 echo "configure:10900: checking whether localtime caches TZ" >&5
10901 if test "$ac_cv_func_tzset" = "yes"; then
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10907 # include <stdlib.h>
10909 extern char **environ;
10913 for (to = from = environ; (*to = *from); from++)
10914 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10917 char TZ_GMT0[] = "TZ=GMT0";
10918 char TZ_PST8[] = "TZ=PST8";
10921 time_t now = time ((time_t *) 0);
10922 int hour_GMT0, hour_unset;
10923 if (putenv (TZ_GMT0) != 0)
10925 hour_GMT0 = localtime (&now)->tm_hour;
10927 hour_unset = localtime (&now)->tm_hour;
10928 if (putenv (TZ_PST8) != 0)
10930 if (localtime (&now)->tm_hour == hour_GMT0)
10933 if (localtime (&now)->tm_hour != hour_unset)
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10940 emacs_cv_localtime_cache=no
10943 echo "configure: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10946 emacs_cv_localtime_cache=yes
10950 # If we lack tzset, report that localtime does not cache TZ,
10951 # since we can't invalidate the cache if we don't have tzset.
10952 emacs_cv_localtime_cache=no
10954 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10955 if test $emacs_cv_localtime_cache = yes; then
10956 { test "$extra_verbose" = "yes" && cat << \EOF
10957 Defining LOCALTIME_CACHE
10959 cat >> confdefs.h <<\EOF
10960 #define LOCALTIME_CACHE 1
10966 if test "$HAVE_TIMEVAL" = "yes"; then
10967 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10968 echo "configure:10969: checking whether gettimeofday accepts one or two arguments" >&5
10969 cat > conftest.$ac_ext <<EOF
10970 #line 10971 "configure"
10971 #include "confdefs.h"
10973 #ifdef TIME_WITH_SYS_TIME
10974 #include <sys/time.h>
10977 #ifdef HAVE_SYS_TIME_H
10978 #include <sys/time.h>
10986 struct timeval time;
10987 gettimeofday (&time, 0);
10991 if { (eval echo configure:10992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10993 echo "$ac_t""two" 1>&6
10995 echo "configure: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10998 echo "$ac_t""one" 1>&6
10999 { test "$extra_verbose" = "yes" && cat << \EOF
11000 Defining GETTIMEOFDAY_ONE_ARGUMENT
11002 cat >> confdefs.h <<\EOF
11003 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11012 echo $ac_n "checking for inline""... $ac_c" 1>&6
11013 echo "configure:11014: checking for inline" >&5
11016 for ac_kw in inline __inline__ __inline; do
11017 cat > conftest.$ac_ext <<EOF
11018 #line 11019 "configure"
11019 #include "confdefs.h"
11025 if { (eval echo configure:11026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11027 ac_cv_c_inline=$ac_kw; break
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11036 echo "$ac_t""$ac_cv_c_inline" 1>&6
11037 case "$ac_cv_c_inline" in
11039 no) { test "$extra_verbose" = "yes" && cat << \EOF
11042 cat >> confdefs.h <<\EOF
11047 *) { test "$extra_verbose" = "yes" && cat << EOF
11048 Defining inline = $ac_cv_c_inline
11050 cat >> confdefs.h <<EOF
11051 #define inline $ac_cv_c_inline
11057 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11058 echo " xemacs will be linked with \"inline.o\""
11062 if test "$__DECC" != "yes"; then
11063 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11064 # for constant arguments. Useless!
11065 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11066 echo "configure:11067: checking for working alloca.h" >&5
11068 cat > conftest.$ac_ext <<EOF
11069 #line 11070 "configure"
11070 #include "confdefs.h"
11071 #include <alloca.h>
11073 char *p = alloca(2 * sizeof(int));
11076 if { (eval echo configure:11077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11078 ac_cv_header_alloca_h=yes
11080 echo "configure: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11083 ac_cv_header_alloca_h=no
11087 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11088 if test $ac_cv_header_alloca_h = yes; then
11089 { test "$extra_verbose" = "yes" && cat << \EOF
11090 Defining HAVE_ALLOCA_H
11092 cat >> confdefs.h <<\EOF
11093 #define HAVE_ALLOCA_H 1
11099 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11100 echo "configure:11101: checking for alloca" >&5
11102 cat > conftest.$ac_ext <<EOF
11103 #line 11104 "configure"
11104 #include "confdefs.h"
11107 # define alloca __builtin_alloca
11110 # include <malloc.h>
11111 # define alloca _alloca
11114 # include <alloca.h>
11119 # ifndef alloca /* predefined by HP cc +Olibcalls */
11128 char *p = (char *) alloca(1);
11131 if { (eval echo configure:11132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11133 ac_cv_func_alloca_works=yes
11135 echo "configure: failed program was:" >&5
11136 cat conftest.$ac_ext >&5
11138 ac_cv_func_alloca_works=no
11142 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11143 if test $ac_cv_func_alloca_works = yes; then
11144 { test "$extra_verbose" = "yes" && cat << \EOF
11145 Defining HAVE_ALLOCA
11147 cat >> confdefs.h <<\EOF
11148 #define HAVE_ALLOCA 1
11154 if test $ac_cv_func_alloca_works = no; then
11155 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11156 # that cause trouble. Some versions do not even contain alloca or
11157 # contain a buggy version. If you still want to use their alloca,
11158 # use ar to extract alloca.o from them instead of compiling alloca.c.
11159 ALLOCA=alloca.${ac_objext}
11160 { test "$extra_verbose" = "yes" && cat << \EOF
11163 cat >> confdefs.h <<\EOF
11169 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11170 echo "configure:11171: checking whether alloca needs Cray hooks" >&5
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11175 #if defined(CRAY) && ! defined(CRAY2)
11182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11183 egrep "webecray" >/dev/null 2>&1; then
11193 echo "$ac_t""$ac_cv_os_cray" 1>&6
11194 if test $ac_cv_os_cray = yes; then
11195 for ac_func in _getb67 GETB67 getb67; do
11196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11197 echo "configure:11198: checking for $ac_func" >&5
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11202 /* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char $ac_func(); below. */
11204 #include <assert.h>
11205 /* Override any gcc2 internal prototype to avoid an error. */
11206 /* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
11212 /* The GNU C library defines this for functions which it implements
11213 to always fail with ENOSYS. Some functions are actually named
11214 something starting with __ and the normal name is an alias. */
11215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223 if { (eval echo configure:11224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11225 eval "ac_cv_func_$ac_func=yes"
11227 echo "configure: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11230 eval "ac_cv_func_$ac_func=no"
11234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11235 echo "$ac_t""yes" 1>&6
11236 { test "$extra_verbose" = "yes" && cat << EOF
11237 Defining CRAY_STACKSEG_END = $ac_func
11239 cat >> confdefs.h <<EOF
11240 #define CRAY_STACKSEG_END $ac_func
11246 echo "$ac_t""no" 1>&6
11252 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11253 echo "configure:11254: checking stack direction for C alloca" >&5
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11258 find_stack_direction ()
11260 static char *addr = 0;
11265 return find_stack_direction ();
11268 return (&dummy > addr) ? 1 : -1;
11272 exit (find_stack_direction() < 0);
11275 if { (eval echo configure:11276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11277 ac_cv_c_stack_direction=1
11280 echo "configure: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11283 ac_cv_c_stack_direction=-1
11287 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11288 { test "$extra_verbose" = "yes" && cat << EOF
11289 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11291 cat >> confdefs.h <<EOF
11292 #define STACK_DIRECTION $ac_cv_c_stack_direction
11298 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11299 echo " xemacs will be linked with \"$ALLOCA\""
11303 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11304 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11305 echo "configure:11306: checking for vfork.h" >&5
11307 cat > conftest.$ac_ext <<EOF
11308 #line 11309 "configure"
11309 #include "confdefs.h"
11312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11313 { (eval echo configure:11314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11315 if test -z "$ac_err"; then
11317 eval "ac_cv_header_$ac_safe=yes"
11320 echo "configure: failed program was:" >&5
11321 cat conftest.$ac_ext >&5
11323 eval "ac_cv_header_$ac_safe=no"
11326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11327 echo "$ac_t""yes" 1>&6
11328 { test "$extra_verbose" = "yes" && cat << \EOF
11329 Defining HAVE_VFORK_H
11331 cat >> confdefs.h <<\EOF
11332 #define HAVE_VFORK_H 1
11337 echo "$ac_t""no" 1>&6
11340 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11341 echo "configure:11342: checking for working vfork" >&5
11343 cat > conftest.$ac_ext <<EOF
11344 #line 11345 "configure"
11345 #include "confdefs.h"
11346 /* Thanks to Paul Eggert for this test. */
11348 #include <sys/types.h>
11349 #include <sys/stat.h>
11350 #ifdef HAVE_UNISTD_H
11351 #include <unistd.h>
11353 #ifdef HAVE_VFORK_H
11356 /* On some sparc systems, changes by the child to local and incoming
11357 argument registers are propagated back to the parent.
11358 The compiler is told about this with #include <vfork.h>,
11359 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11360 Test for this by using a static variable whose address
11361 is put into a register that is clobbered by the vfork. */
11364 sparc_address_test (int arg)
11366 sparc_address_test (arg) int arg;
11369 static pid_t child;
11384 pid_t parent = getpid ();
11387 sparc_address_test ();
11392 /* Here is another test for sparc vfork register problems.
11393 This test uses lots of local variables, at least
11394 as many local variables as main has allocated so far
11395 including compiler temporaries. 4 locals are enough for
11396 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11397 A buggy compiler should reuse the register of parent
11398 for one of the local variables, since it will think that
11399 parent can't possibly be used any more in this routine.
11400 Assigning to the local variable will thus munge parent
11401 in the parent process. */
11403 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11404 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11405 /* Convince the compiler that p..p7 are live; otherwise, it might
11406 use the same hardware register for all 8 local variables. */
11407 if (p != p1 || p != p2 || p != p3 || p != p4
11408 || p != p5 || p != p6 || p != p7)
11411 /* On some systems (e.g. IRIX 3.3),
11412 vfork doesn't separate parent from child file descriptors.
11413 If the child closes a descriptor before it execs or exits,
11414 this munges the parent's descriptor as well.
11415 Test for this by closing stdout in the child. */
11416 _exit(close(fileno(stdout)) != 0);
11421 while (wait(&status) != child)
11424 /* Was there some problem with vforking? */
11427 /* Did the child fail? (This shouldn't happen.) */
11430 /* Did the vfork/compiler bug occur? */
11431 || parent != getpid()
11433 /* Did the file descriptor bug occur? */
11434 || fstat(fileno(stdout), &st) != 0
11439 if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11441 ac_cv_func_vfork_works=yes
11444 echo "configure: failed program was:" >&5
11445 cat conftest.$ac_ext >&5
11447 ac_cv_func_vfork_works=no
11451 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
11452 if test $ac_cv_func_vfork_works = no; then
11453 { test "$extra_verbose" = "yes" && cat << \EOF
11454 Defining vfork = fork
11456 cat >> confdefs.h <<\EOF
11464 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11465 echo "configure:11466: checking for working strcoll" >&5
11467 cat > conftest.$ac_ext <<EOF
11468 #line 11469 "configure"
11469 #include "confdefs.h"
11470 #include <string.h>
11473 exit (strcoll ("abc", "def") >= 0 ||
11474 strcoll ("ABC", "DEF") >= 0 ||
11475 strcoll ("123", "456") >= 0);
11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11480 ac_cv_func_strcoll_works=yes
11483 echo "configure: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11486 ac_cv_func_strcoll_works=no
11490 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
11491 if test $ac_cv_func_strcoll_works = yes; then
11492 { test "$extra_verbose" = "yes" && cat << \EOF
11493 Defining HAVE_STRCOLL
11495 cat >> confdefs.h <<\EOF
11496 #define HAVE_STRCOLL 1
11503 for ac_func in getpgrp
11505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11506 echo "configure:11507: checking for $ac_func" >&5
11508 cat > conftest.$ac_ext <<EOF
11509 #line 11510 "configure"
11510 #include "confdefs.h"
11511 /* System header to define __stub macros and hopefully few prototypes,
11512 which can conflict with char $ac_func(); below. */
11513 #include <assert.h>
11514 /* Override any gcc2 internal prototype to avoid an error. */
11515 /* We use char because int might match the return type of a gcc2
11516 builtin and then its argument prototype would still apply. */
11521 /* The GNU C library defines this for functions which it implements
11522 to always fail with ENOSYS. Some functions are actually named
11523 something starting with __ and the normal name is an alias. */
11524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11532 if { (eval echo configure:11533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11534 eval "ac_cv_func_$ac_func=yes"
11536 echo "configure: failed program was:" >&5
11537 cat conftest.$ac_ext >&5
11539 eval "ac_cv_func_$ac_func=no"
11543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11544 echo "$ac_t""yes" 1>&6
11545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11546 { test "$extra_verbose" = "yes" && cat << EOF
11547 Defining $ac_tr_func
11549 cat >> confdefs.h <<EOF
11550 #define $ac_tr_func 1
11555 echo "$ac_t""no" 1>&6
11559 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11560 echo "configure:11561: checking whether getpgrp takes no argument" >&5
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11567 * If this system has a BSD-style getpgrp(),
11568 * which takes a pid argument, exit unsuccessfully.
11570 * Snarfed from Chet Ramey's bash pgrp.c test program
11573 #include <sys/types.h>
11576 int pg1, pg2, pg3, pg4;
11577 int ng, np, s, child;
11584 pg3 = getpgrp(pid);
11588 * If all of these values are the same, it's pretty sure that
11589 * we're on a system that ignores getpgrp's first argument.
11591 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
11597 else if (child == 0) {
11600 * If this is Sys V, this will not work; pgrp will be
11601 * set to np because setpgrp just changes a pgrp to be
11602 * the same as the pid.
11605 ng = getpgrp(0); /* Same result for Sys V and BSD */
11618 if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11620 ac_cv_func_getpgrp_void=yes
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11626 ac_cv_func_getpgrp_void=no
11631 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
11632 if test $ac_cv_func_getpgrp_void = yes; then
11633 { test "$extra_verbose" = "yes" && cat << \EOF
11634 Defining GETPGRP_VOID
11636 cat >> confdefs.h <<\EOF
11637 #define GETPGRP_VOID 1
11644 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11645 echo "configure:11646: checking for working mmap" >&5
11646 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11651 #include <unistd.h>
11653 #include <sys/mman.h>
11655 #ifndef MAP_VARIABLE
11656 #define MAP_VARIABLE 0
11660 #define MAP_FAILED -1
11663 int main (int argc, char *argv[])
11667 #ifndef MAP_ANONYMOUS
11668 fd = open ("/dev/zero", O_RDWR);
11671 #define MAP_ANONYMOUS 0
11673 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
11674 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
11675 fd, 0) != (void *) MAP_FAILED)
11677 perror ("conftest: mmap failed");
11681 if { (eval echo configure:11682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11686 echo "configure: failed program was:" >&5
11687 cat conftest.$ac_ext >&5
11691 rm -fr conftest* ;;
11693 echo "$ac_t""$have_mmap" 1>&6
11694 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11697 cat >> confdefs.h <<\EOF
11698 #define HAVE_MMAP 1
11703 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11704 if test "$rel_alloc $have_mmap" = "default yes"; then
11705 if test "$doug_lea_malloc" = "yes"; then
11706 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11707 echo "configure:11708: checking for M_MMAP_THRESHOLD" >&5
11708 cat > conftest.$ac_ext <<EOF
11709 #line 11710 "configure"
11710 #include "confdefs.h"
11711 #include <malloc.h>
11714 #ifndef M_MMAP_THRESHOLD
11715 #error No M_MMAP_THRESHOLD :-(
11716 !@+$%^&*_)(_ - unlikely to compile...
11721 if { (eval echo configure:11722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11723 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11725 echo "configure: failed program was:" >&5
11726 cat conftest.$ac_ext >&5
11728 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11735 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11738 cat >> confdefs.h <<\EOF
11739 #define REL_ALLOC 1
11744 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11745 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11746 echo "configure:11747: checking for termios.h" >&5
11748 cat > conftest.$ac_ext <<EOF
11749 #line 11750 "configure"
11750 #include "confdefs.h"
11751 #include <termios.h>
11753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11754 { (eval echo configure:11755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11756 if test -z "$ac_err"; then
11758 eval "ac_cv_header_$ac_safe=yes"
11761 echo "configure: failed program was:" >&5
11762 cat conftest.$ac_ext >&5
11764 eval "ac_cv_header_$ac_safe=no"
11767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11768 echo "$ac_t""yes" 1>&6
11769 { test "$extra_verbose" = "yes" && cat << \EOF
11770 Defining HAVE_TERMIOS
11772 cat >> confdefs.h <<\EOF
11773 #define HAVE_TERMIOS 1
11777 { test "$extra_verbose" = "yes" && cat << \EOF
11778 Defining SIGNALS_VIA_CHARACTERS
11780 cat >> confdefs.h <<\EOF
11781 #define SIGNALS_VIA_CHARACTERS 1
11785 { test "$extra_verbose" = "yes" && cat << \EOF
11788 cat >> confdefs.h <<\EOF
11789 #define NO_TERMIO 1
11794 echo "$ac_t""no" 1>&6
11795 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11796 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11797 echo "configure:11798: checking for termio.h" >&5
11799 cat > conftest.$ac_ext <<EOF
11800 #line 11801 "configure"
11801 #include "confdefs.h"
11802 #include <termio.h>
11804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11805 { (eval echo configure:11806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11807 if test -z "$ac_err"; then
11809 eval "ac_cv_header_$ac_safe=yes"
11812 echo "configure: failed program was:" >&5
11813 cat conftest.$ac_ext >&5
11815 eval "ac_cv_header_$ac_safe=no"
11818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11819 echo "$ac_t""yes" 1>&6
11820 { test "$extra_verbose" = "yes" && cat << \EOF
11821 Defining HAVE_TERMIO
11823 cat >> confdefs.h <<\EOF
11824 #define HAVE_TERMIO 1
11829 echo "$ac_t""no" 1>&6
11836 echo $ac_n "checking for socket""... $ac_c" 1>&6
11837 echo "configure:11838: checking for socket" >&5
11839 cat > conftest.$ac_ext <<EOF
11840 #line 11841 "configure"
11841 #include "confdefs.h"
11842 /* System header to define __stub macros and hopefully few prototypes,
11843 which can conflict with char socket(); below. */
11844 #include <assert.h>
11845 /* Override any gcc2 internal prototype to avoid an error. */
11846 /* We use char because int might match the return type of a gcc2
11847 builtin and then its argument prototype would still apply. */
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined (__stub_socket) || defined (__stub___socket)
11863 if { (eval echo configure:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11865 eval "ac_cv_func_socket=yes"
11867 echo "configure: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11870 eval "ac_cv_func_socket=no"
11874 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11875 echo "$ac_t""yes" 1>&6
11876 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11877 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11878 echo "configure:11879: checking for netinet/in.h" >&5
11880 cat > conftest.$ac_ext <<EOF
11881 #line 11882 "configure"
11882 #include "confdefs.h"
11883 #include <netinet/in.h>
11885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11886 { (eval echo configure:11887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11888 if test -z "$ac_err"; then
11890 eval "ac_cv_header_$ac_safe=yes"
11893 echo "configure: failed program was:" >&5
11894 cat conftest.$ac_ext >&5
11896 eval "ac_cv_header_$ac_safe=no"
11899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11900 echo "$ac_t""yes" 1>&6
11901 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11902 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11903 echo "configure:11904: checking for arpa/inet.h" >&5
11905 cat > conftest.$ac_ext <<EOF
11906 #line 11907 "configure"
11907 #include "confdefs.h"
11908 #include <arpa/inet.h>
11910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11911 { (eval echo configure:11912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11913 if test -z "$ac_err"; then
11915 eval "ac_cv_header_$ac_safe=yes"
11918 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11921 eval "ac_cv_header_$ac_safe=no"
11924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11925 echo "$ac_t""yes" 1>&6
11927 { test "$extra_verbose" = "yes" && cat << \EOF
11928 Defining HAVE_SOCKETS
11930 cat >> confdefs.h <<\EOF
11931 #define HAVE_SOCKETS 1
11935 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11936 echo "configure:11937: checking "for sun_len member in struct sockaddr_un"" >&5
11937 cat > conftest.$ac_ext <<EOF
11938 #line 11939 "configure"
11939 #include "confdefs.h"
11941 #include <sys/types.h>
11942 #include <sys/socket.h>
11943 #include <sys/un.h>
11946 static struct sockaddr_un x; x.sun_len = 1;
11949 if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11951 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11952 Defining HAVE_SOCKADDR_SUN_LEN
11954 cat >> confdefs.h <<\EOF
11955 #define HAVE_SOCKADDR_SUN_LEN 1
11960 echo "configure: failed program was:" >&5
11961 cat conftest.$ac_ext >&5
11963 echo "$ac_t""no" 1>&6
11966 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11967 echo "configure:11968: checking "for ip_mreq struct in netinet/in.h"" >&5
11968 cat > conftest.$ac_ext <<EOF
11969 #line 11970 "configure"
11970 #include "confdefs.h"
11972 #include <sys/types.h>
11973 #include <netinet/in.h>
11976 static struct ip_mreq x;
11979 if { (eval echo configure:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11981 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11982 Defining HAVE_MULTICAST
11984 cat >> confdefs.h <<\EOF
11985 #define HAVE_MULTICAST 1
11990 echo "configure: failed program was:" >&5
11991 cat conftest.$ac_ext >&5
11993 echo "$ac_t""no" 1>&6
11997 echo "$ac_t""no" 1>&6
12001 echo "$ac_t""no" 1>&6
12005 echo "$ac_t""no" 1>&6
12009 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12010 echo "configure:12011: checking for msgget" >&5
12012 cat > conftest.$ac_ext <<EOF
12013 #line 12014 "configure"
12014 #include "confdefs.h"
12015 /* System header to define __stub macros and hopefully few prototypes,
12016 which can conflict with char msgget(); below. */
12017 #include <assert.h>
12018 /* Override any gcc2 internal prototype to avoid an error. */
12019 /* We use char because int might match the return type of a gcc2
12020 builtin and then its argument prototype would still apply. */
12025 /* The GNU C library defines this for functions which it implements
12026 to always fail with ENOSYS. Some functions are actually named
12027 something starting with __ and the normal name is an alias. */
12028 #if defined (__stub_msgget) || defined (__stub___msgget)
12036 if { (eval echo configure:12037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12038 eval "ac_cv_func_msgget=yes"
12040 echo "configure: failed program was:" >&5
12041 cat conftest.$ac_ext >&5
12043 eval "ac_cv_func_msgget=no"
12047 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12048 echo "$ac_t""yes" 1>&6
12049 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12050 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12051 echo "configure:12052: checking for sys/ipc.h" >&5
12053 cat > conftest.$ac_ext <<EOF
12054 #line 12055 "configure"
12055 #include "confdefs.h"
12056 #include <sys/ipc.h>
12058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12059 { (eval echo configure:12060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12061 if test -z "$ac_err"; then
12063 eval "ac_cv_header_$ac_safe=yes"
12066 echo "configure: failed program was:" >&5
12067 cat conftest.$ac_ext >&5
12069 eval "ac_cv_header_$ac_safe=no"
12072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12073 echo "$ac_t""yes" 1>&6
12074 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12075 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12076 echo "configure:12077: checking for sys/msg.h" >&5
12078 cat > conftest.$ac_ext <<EOF
12079 #line 12080 "configure"
12080 #include "confdefs.h"
12081 #include <sys/msg.h>
12083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12084 { (eval echo configure:12085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12086 if test -z "$ac_err"; then
12088 eval "ac_cv_header_$ac_safe=yes"
12091 echo "configure: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12094 eval "ac_cv_header_$ac_safe=no"
12097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12098 echo "$ac_t""yes" 1>&6
12099 { test "$extra_verbose" = "yes" && cat << \EOF
12100 Defining HAVE_SYSVIPC
12102 cat >> confdefs.h <<\EOF
12103 #define HAVE_SYSVIPC 1
12108 echo "$ac_t""no" 1>&6
12112 echo "$ac_t""no" 1>&6
12116 echo "$ac_t""no" 1>&6
12120 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12121 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12122 echo "configure:12123: checking for dirent.h" >&5
12124 cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12127 #include <dirent.h>
12129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12130 { (eval echo configure:12131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12132 if test -z "$ac_err"; then
12134 eval "ac_cv_header_$ac_safe=yes"
12137 echo "configure: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12140 eval "ac_cv_header_$ac_safe=no"
12143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12144 echo "$ac_t""yes" 1>&6
12145 { test "$extra_verbose" = "yes" && cat << \EOF
12146 Defining SYSV_SYSTEM_DIR
12148 cat >> confdefs.h <<\EOF
12149 #define SYSV_SYSTEM_DIR 1
12154 echo "$ac_t""no" 1>&6
12155 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12156 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12157 echo "configure:12158: checking for sys/dir.h" >&5
12159 cat > conftest.$ac_ext <<EOF
12160 #line 12161 "configure"
12161 #include "confdefs.h"
12162 #include <sys/dir.h>
12164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12165 { (eval echo configure:12166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12167 if test -z "$ac_err"; then
12169 eval "ac_cv_header_$ac_safe=yes"
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12175 eval "ac_cv_header_$ac_safe=no"
12178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12179 echo "$ac_t""yes" 1>&6
12182 echo "$ac_t""no" 1>&6
12183 { test "$extra_verbose" = "yes" && cat << \EOF
12184 Defining NONSYSTEM_DIR_LIBRARY
12186 cat >> confdefs.h <<\EOF
12187 #define NONSYSTEM_DIR_LIBRARY 1
12196 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12197 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12198 echo "configure:12199: checking for nlist.h" >&5
12200 cat > conftest.$ac_ext <<EOF
12201 #line 12202 "configure"
12202 #include "confdefs.h"
12205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12206 { (eval echo configure:12207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12208 if test -z "$ac_err"; then
12210 eval "ac_cv_header_$ac_safe=yes"
12213 echo "configure: failed program was:" >&5
12214 cat conftest.$ac_ext >&5
12216 eval "ac_cv_header_$ac_safe=no"
12219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12220 echo "$ac_t""yes" 1>&6
12221 { test "$extra_verbose" = "yes" && cat << \EOF
12222 Defining NLIST_STRUCT
12224 cat >> confdefs.h <<\EOF
12225 #define NLIST_STRUCT 1
12230 echo "$ac_t""no" 1>&6
12235 echo "checking "for sound support"" 1>&6
12236 echo "configure:12237: checking "for sound support"" >&5
12237 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12239 if test "$with_native_sound" != "no"; then
12240 if test -n "$native_sound_lib"; then
12241 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12242 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12243 echo "configure:12244: checking for multimedia/audio_device.h" >&5
12245 cat > conftest.$ac_ext <<EOF
12246 #line 12247 "configure"
12247 #include "confdefs.h"
12248 #include <multimedia/audio_device.h>
12250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12251 { (eval echo configure:12252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12253 if test -z "$ac_err"; then
12255 eval "ac_cv_header_$ac_safe=yes"
12258 echo "configure: failed program was:" >&5
12259 cat conftest.$ac_ext >&5
12261 eval "ac_cv_header_$ac_safe=no"
12264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12265 echo "$ac_t""yes" 1>&6
12266 sound_found=yes sound_cflags=""
12267 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12268 echo " xemacs will be linked with \"sunplay.o\""
12271 echo "$ac_t""no" 1>&6
12276 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12278 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12279 echo " xemacs will be linked with \"sunplay.o\""
12281 if test -d "/usr/demo/SOUND/include"
12282 then sound_cflags="-I/usr/demo/SOUND/include"
12283 else sound_cflags="-I/usr/demo/SOUND"
12285 if test -z "$native_sound_lib" ; then
12286 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12287 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12288 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12293 if test -z "$sound_found"; then
12294 case "$canonical" in
12296 if test -z "$native_sound_lib"; then
12298 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12299 echo "configure:12300: checking for ALopenport in -laudio" >&5
12300 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12302 xe_check_libs=" -laudio "
12303 cat > conftest.$ac_ext <<EOF
12304 #line 12305 "configure"
12305 #include "confdefs.h"
12306 /* Override any gcc2 internal prototype to avoid an error. */
12307 /* We use char because int might match the return type of a gcc2
12308 builtin and then its argument prototype would still apply. */
12315 if { (eval echo configure:12316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12317 eval "ac_cv_lib_$ac_lib_var=yes"
12319 echo "configure: failed program was:" >&5
12320 cat conftest.$ac_ext >&5
12322 eval "ac_cv_lib_$ac_lib_var=no"
12327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12328 echo "$ac_t""yes" 1>&6
12329 native_sound_lib="-laudio"
12331 echo "$ac_t""no" 1>&6
12336 if test -n "$native_sound_lib"; then
12337 sound_found=yes sound_cflags=""
12338 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12339 echo " xemacs will be linked with \"sgiplay.o\""
12343 if test -z "$native_sound_lib"; then
12345 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12346 echo "configure:12347: checking for AOpenAudio in -lAlib" >&5
12347 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12349 xe_check_libs=" -lAlib "
12350 cat > conftest.$ac_ext <<EOF
12351 #line 12352 "configure"
12352 #include "confdefs.h"
12353 /* Override any gcc2 internal prototype to avoid an error. */
12354 /* We use char because int might match the return type of a gcc2
12355 builtin and then its argument prototype would still apply. */
12362 if { (eval echo configure:12363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12364 eval "ac_cv_lib_$ac_lib_var=yes"
12366 echo "configure: failed program was:" >&5
12367 cat conftest.$ac_ext >&5
12369 eval "ac_cv_lib_$ac_lib_var=no"
12374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12375 echo "$ac_t""yes" 1>&6
12376 native_sound_lib="-lAlib"
12378 echo "$ac_t""no" 1>&6
12383 if test -n "$native_sound_lib"; then
12385 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12386 echo " xemacs will be linked with \"hpplay.o\""
12388 if test "$GCC" = "yes" # Kludge city
12389 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12390 else sound_cflags="+e -I/usr/audio/examples"
12396 if test -z "$sound_found"; then
12397 for dir in "machine" "sys" "linux"; do
12398 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12399 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12400 echo "configure:12401: checking for ${dir}/soundcard.h" >&5
12402 cat > conftest.$ac_ext <<EOF
12403 #line 12404 "configure"
12404 #include "confdefs.h"
12405 #include <${dir}/soundcard.h>
12407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12408 { (eval echo configure:12409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12410 if test -z "$ac_err"; then
12412 eval "ac_cv_header_$ac_safe=yes"
12415 echo "configure: failed program was:" >&5
12416 cat conftest.$ac_ext >&5
12418 eval "ac_cv_header_$ac_safe=no"
12421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12422 echo "$ac_t""yes" 1>&6
12425 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
12426 echo " xemacs will be linked with \"linuxplay.o\""
12428 { test "$extra_verbose" = "yes" && cat << EOF
12429 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
12431 cat >> confdefs.h <<EOF
12432 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
12438 echo "$ac_t""no" 1>&6
12444 if test -z "$sound_found"; then
12445 if test "$with_msw" = "yes"; then
12451 test "$sound_found" = "yes" && with_native_sound=yes
12454 if test "$with_native_sound" = "yes"; then
12455 { test "$extra_verbose" = "yes" && cat << \EOF
12456 Defining HAVE_NATIVE_SOUND
12458 cat >> confdefs.h <<\EOF
12459 #define HAVE_NATIVE_SOUND 1
12463 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
12466 if test "$with_nas_sound" != "no"; then
12467 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12468 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12469 echo "configure:12470: checking for audio/audiolib.h" >&5
12471 cat > conftest.$ac_ext <<EOF
12472 #line 12473 "configure"
12473 #include "confdefs.h"
12474 #include <audio/audiolib.h>
12476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12477 { (eval echo configure:12478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12479 if test -z "$ac_err"; then
12481 eval "ac_cv_header_$ac_safe=yes"
12484 echo "configure: failed program was:" >&5
12485 cat conftest.$ac_ext >&5
12487 eval "ac_cv_header_$ac_safe=no"
12490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12491 echo "$ac_t""yes" 1>&6
12494 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12495 echo "configure:12496: checking for AuOpenServer in -laudio" >&5
12496 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12498 xe_check_libs=" -laudio "
12499 cat > conftest.$ac_ext <<EOF
12500 #line 12501 "configure"
12501 #include "confdefs.h"
12502 /* Override any gcc2 internal prototype to avoid an error. */
12503 /* We use char because int might match the return type of a gcc2
12504 builtin and then its argument prototype would still apply. */
12505 char AuOpenServer();
12511 if { (eval echo configure:12512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12513 eval "ac_cv_lib_$ac_lib_var=yes"
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12518 eval "ac_cv_lib_$ac_lib_var=no"
12523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12524 echo "$ac_t""yes" 1>&6
12527 echo "$ac_t""no" 1>&6
12532 echo "$ac_t""no" 1>&6
12535 if test "$have_nas_sound" = "yes"; then
12537 { test "$extra_verbose" = "yes" && cat << \EOF
12538 Defining HAVE_NAS_SOUND
12540 cat >> confdefs.h <<\EOF
12541 #define HAVE_NAS_SOUND 1
12545 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12546 echo " xemacs will be linked with \"nas.o\""
12548 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12549 cat > conftest.$ac_ext <<EOF
12550 #line 12551 "configure"
12551 #include "confdefs.h"
12552 #include <audio/Xtutil.h>
12554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12555 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12559 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
12560 Defining NAS_NO_ERROR_JUMP
12562 cat >> confdefs.h <<\EOF
12563 #define NAS_NO_ERROR_JUMP 1
12571 test "$with_nas_sound" = "yes" && \
12572 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12577 if test "$with_esd_sound" != "no"; then
12578 # Extract the first word of "esd-config", so it can be a program name with args.
12579 set dummy esd-config; ac_word=$2
12580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12581 echo "configure:12582: checking for $ac_word" >&5
12583 if test -n "$have_esd_config"; then
12584 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12588 for ac_dir in $ac_dummy; do
12589 test -z "$ac_dir" && ac_dir=.
12590 if test -f $ac_dir/$ac_word; then
12591 ac_cv_prog_have_esd_config="yes"
12596 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
12598 have_esd_config="$ac_cv_prog_have_esd_config"
12599 if test -n "$have_esd_config"; then
12600 echo "$ac_t""$have_esd_config" 1>&6
12602 echo "$ac_t""no" 1>&6
12605 if test "$have_esd_config" = "yes"; then
12606 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12607 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
12608 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12609 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12610 echo "configure:12611: checking for esd_play_stream" >&5
12612 cat > conftest.$ac_ext <<EOF
12613 #line 12614 "configure"
12614 #include "confdefs.h"
12615 /* System header to define __stub macros and hopefully few prototypes,
12616 which can conflict with char esd_play_stream(); below. */
12617 #include <assert.h>
12618 /* Override any gcc2 internal prototype to avoid an error. */
12619 /* We use char because int might match the return type of a gcc2
12620 builtin and then its argument prototype would still apply. */
12621 char esd_play_stream();
12625 /* The GNU C library defines this for functions which it implements
12626 to always fail with ENOSYS. Some functions are actually named
12627 something starting with __ and the normal name is an alias. */
12628 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
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_func_esd_play_stream=yes"
12640 echo "configure: failed program was:" >&5
12641 cat conftest.$ac_ext >&5
12643 eval "ac_cv_func_esd_play_stream=no"
12647 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
12648 echo "$ac_t""yes" 1>&6
12651 echo "$ac_t""no" 1>&6
12652 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
12657 if test "$have_esd_sound" = "yes"; then
12660 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
12661 echo " xemacs will be linked with \"esd.o\""
12663 { test "$extra_verbose" = "yes" && cat << \EOF
12664 Defining HAVE_ESD_SOUND
12666 cat >> confdefs.h <<\EOF
12667 #define HAVE_ESD_SOUND 1
12672 test "$with_esd_sound" = "yes" && \
12673 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12678 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12679 echo " xemacs will be linked with \"miscplay.o\""
12683 test -z "$with_tty" && with_tty=yes
12685 if test "$with_tty" = "yes" ; then
12686 echo "checking for TTY-related features" 1>&6
12687 echo "configure:12688: checking for TTY-related features" >&5
12688 { test "$extra_verbose" = "yes" && cat << \EOF
12691 cat >> confdefs.h <<\EOF
12696 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
12697 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\""
12700 if test -z "$with_ncurses"; then
12702 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12703 echo "configure:12704: checking for tgetent in -lncurses" >&5
12704 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12706 xe_check_libs=" -lncurses "
12707 cat > conftest.$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12710 /* Override any gcc2 internal prototype to avoid an error. */
12711 /* We use char because int might match the return type of a gcc2
12712 builtin and then its argument prototype would still apply. */
12719 if { (eval echo configure:12720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12721 eval "ac_cv_lib_$ac_lib_var=yes"
12723 echo "configure: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12726 eval "ac_cv_lib_$ac_lib_var=no"
12731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12732 echo "$ac_t""yes" 1>&6
12735 echo "$ac_t""no" 1>&6
12741 if test "$with_ncurses" = "yes"; then
12742 { test "$extra_verbose" = "yes" && cat << \EOF
12743 Defining HAVE_NCURSES
12745 cat >> confdefs.h <<\EOF
12746 #define HAVE_NCURSES 1
12750 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12751 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12752 echo "configure:12753: checking for ncurses/curses.h" >&5
12754 cat > conftest.$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12757 #include <ncurses/curses.h>
12759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12760 { (eval echo configure:12761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12762 if test -z "$ac_err"; then
12764 eval "ac_cv_header_$ac_safe=yes"
12767 echo "configure: failed program was:" >&5
12768 cat conftest.$ac_ext >&5
12770 eval "ac_cv_header_$ac_safe=no"
12773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12774 echo "$ac_t""yes" 1>&6
12775 curses_h_file=ncurses/curses.h
12777 echo "$ac_t""no" 1>&6
12780 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12781 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12782 echo "configure:12783: checking for ncurses/term.h" >&5
12784 cat > conftest.$ac_ext <<EOF
12785 #line 12786 "configure"
12786 #include "confdefs.h"
12787 #include <ncurses/term.h>
12789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12790 { (eval echo configure:12791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12792 if test -z "$ac_err"; then
12794 eval "ac_cv_header_$ac_safe=yes"
12797 echo "configure: failed program was:" >&5
12798 cat conftest.$ac_ext >&5
12800 eval "ac_cv_header_$ac_safe=no"
12803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12804 echo "$ac_t""yes" 1>&6
12805 term_h_file=ncurses/term.h
12807 echo "$ac_t""no" 1>&6
12810 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12811 echo " xemacs will be linked with \"terminfo.o\""
12813 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12815 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12816 save_c_switch_site="$c_switch_site"
12817 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12818 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12819 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12820 echo "configure:12821: checking for ncurses/curses.h" >&5
12822 cat > conftest.$ac_ext <<EOF
12823 #line 12824 "configure"
12824 #include "confdefs.h"
12825 #include <ncurses/curses.h>
12827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12828 { (eval echo configure:12829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12830 if test -z "$ac_err"; then
12832 eval "ac_cv_header_$ac_safe=yes"
12835 echo "configure: failed program was:" >&5
12836 cat conftest.$ac_ext >&5
12838 eval "ac_cv_header_$ac_safe=no"
12841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12842 echo "$ac_t""yes" 1>&6
12843 curses_h_file=ncurses/curses.h
12845 echo "$ac_t""no" 1>&6
12848 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12849 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12850 else c_switch_site="$save_c_switch_site"
12853 else if test "$have_terminfo" = "yes"; then
12854 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12855 echo " xemacs will be linked with \"terminfo.o\""
12857 if test -n "$libs_termcap"; then
12858 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12860 for lib in curses termlib termcap; do
12862 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12863 echo "configure:12864: checking for tgetent in -l$lib" >&5
12864 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12866 xe_check_libs=" -l$lib "
12867 cat > conftest.$ac_ext <<EOF
12868 #line 12869 "configure"
12869 #include "confdefs.h"
12870 /* Override any gcc2 internal prototype to avoid an error. */
12871 /* We use char because int might match the return type of a gcc2
12872 builtin and then its argument prototype would still apply. */
12879 if { (eval echo configure:12880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12881 eval "ac_cv_lib_$ac_lib_var=yes"
12883 echo "configure: failed program was:" >&5
12884 cat conftest.$ac_ext >&5
12886 eval "ac_cv_lib_$ac_lib_var=no"
12891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12892 echo "$ac_t""yes" 1>&6
12893 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12895 echo "$ac_t""no" 1>&6
12901 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12902 echo " xemacs will be linked with \"tparam.o\""
12904 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12905 if test -n "$libs_termcap"; then
12906 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12909 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12910 echo "configure:12911: checking for tgetent in -lcurses" >&5
12911 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12913 xe_check_libs=" -lcurses "
12914 cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure"
12916 #include "confdefs.h"
12917 /* Override any gcc2 internal prototype to avoid an error. */
12918 /* We use char because int might match the return type of a gcc2
12919 builtin and then its argument prototype would still apply. */
12926 if { (eval echo configure:12927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12928 eval "ac_cv_lib_$ac_lib_var=yes"
12930 echo "configure: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12933 eval "ac_cv_lib_$ac_lib_var=no"
12938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12939 echo "$ac_t""yes" 1>&6
12940 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12942 echo "$ac_t""no" 1>&6
12943 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12944 echo "configure:12945: checking for tgetent in -ltermcap" >&5
12945 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12947 xe_check_libs=" -ltermcap "
12948 cat > conftest.$ac_ext <<EOF
12949 #line 12950 "configure"
12950 #include "confdefs.h"
12951 /* Override any gcc2 internal prototype to avoid an error. */
12952 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12960 if { (eval echo configure:12961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12962 eval "ac_cv_lib_$ac_lib_var=yes"
12964 echo "configure: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12967 eval "ac_cv_lib_$ac_lib_var=no"
12972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12973 echo "$ac_t""yes" 1>&6
12974 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12976 echo "$ac_t""no" 1>&6
12977 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12978 echo " xemacs will be linked with \"termcap.o\""
12989 { test "$extra_verbose" = "yes" && cat << EOF
12990 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
12992 cat >> confdefs.h <<EOF
12993 #define CURSES_H_FILE "${curses_h_file-curses.h}"
12997 { test "$extra_verbose" = "yes" && cat << EOF
12998 Defining TERM_H_FILE = "${term_h_file-term.h}"
13000 cat >> confdefs.h <<EOF
13001 #define TERM_H_FILE "${term_h_file-term.h}"
13006 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13007 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13008 echo "configure:13009: checking for gpm.h" >&5
13010 cat > conftest.$ac_ext <<EOF
13011 #line 13012 "configure"
13012 #include "confdefs.h"
13015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13016 { (eval echo configure:13017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13018 if test -z "$ac_err"; then
13020 eval "ac_cv_header_$ac_safe=yes"
13023 echo "configure: failed program was:" >&5
13024 cat conftest.$ac_ext >&5
13026 eval "ac_cv_header_$ac_safe=no"
13029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13030 echo "$ac_t""yes" 1>&6
13033 echo "$ac_t""no" 1>&6
13037 test -z "$with_gpm" && {
13038 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13039 echo "configure:13040: checking for Gpm_Open in -lgpm" >&5
13040 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13042 xe_check_libs=" -lgpm "
13043 cat > conftest.$ac_ext <<EOF
13044 #line 13045 "configure"
13045 #include "confdefs.h"
13046 /* Override any gcc2 internal prototype to avoid an error. */
13047 /* We use char because int might match the return type of a gcc2
13048 builtin and then its argument prototype would still apply. */
13055 if { (eval echo configure:13056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13057 eval "ac_cv_lib_$ac_lib_var=yes"
13059 echo "configure: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13062 eval "ac_cv_lib_$ac_lib_var=no"
13067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13068 echo "$ac_t""yes" 1>&6
13071 echo "$ac_t""no" 1>&6
13076 if test "$with_gpm" = "yes"; then
13077 { test "$extra_verbose" = "yes" && cat << \EOF
13080 cat >> confdefs.h <<\EOF
13085 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13086 echo " xemacs will be linked with \"gpmevent.o\""
13088 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13091 else for feature in ncurses gpm; do
13092 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13093 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13095 eval "with_${feature}=no"
13098 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13099 echo " xemacs will be linked with \"event-unixoid.o\""
13103 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13104 != "no no no" && echo "checking for database support" 1>&6
13105 echo "configure:13106: checking for database support" >&5
13107 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13108 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13109 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13110 echo "configure:13111: checking for ndbm.h" >&5
13112 cat > conftest.$ac_ext <<EOF
13113 #line 13114 "configure"
13114 #include "confdefs.h"
13117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13118 { (eval echo configure:13119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13120 if test -z "$ac_err"; then
13122 eval "ac_cv_header_$ac_safe=yes"
13125 echo "configure: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13128 eval "ac_cv_header_$ac_safe=no"
13131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13132 echo "$ac_t""yes" 1>&6
13135 echo "$ac_t""no" 1>&6
13137 test "$with_database_gdbm" = "yes" -o \
13138 "$with_database_dbm" = "yes" && \
13139 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13140 with_database_gdbm=no with_database_dbm=no
13145 if test "$with_database_gdbm" != "no"; then
13147 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13148 echo "configure:13149: checking for dbm_open in -lgdbm" >&5
13149 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13151 xe_check_libs=" -lgdbm "
13152 cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 /* Override any gcc2 internal prototype to avoid an error. */
13156 /* We use char because int might match the return type of a gcc2
13157 builtin and then its argument prototype would still apply. */
13164 if { (eval echo configure:13165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13166 eval "ac_cv_lib_$ac_lib_var=yes"
13168 echo "configure: failed program was:" >&5
13169 cat conftest.$ac_ext >&5
13171 eval "ac_cv_lib_$ac_lib_var=no"
13176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13177 echo "$ac_t""yes" 1>&6
13178 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13180 echo "$ac_t""no" 1>&6
13181 if test "$with_database_gdbm" = "yes"; then
13182 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13184 with_database_gdbm=no
13190 if test "$with_database_dbm" != "no"; then
13191 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13192 echo "configure:13193: checking for dbm_open" >&5
13194 cat > conftest.$ac_ext <<EOF
13195 #line 13196 "configure"
13196 #include "confdefs.h"
13197 /* System header to define __stub macros and hopefully few prototypes,
13198 which can conflict with char dbm_open(); below. */
13199 #include <assert.h>
13200 /* Override any gcc2 internal prototype to avoid an error. */
13201 /* We use char because int might match the return type of a gcc2
13202 builtin and then its argument prototype would still apply. */
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13218 if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13220 eval "ac_cv_func_dbm_open=yes"
13222 echo "configure: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13225 eval "ac_cv_func_dbm_open=no"
13229 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13230 echo "$ac_t""yes" 1>&6
13231 with_database_dbm=yes libdbm=
13233 echo "$ac_t""no" 1>&6
13236 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13237 echo "configure:13238: checking for dbm_open in -ldbm" >&5
13238 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13240 xe_check_libs=" -ldbm "
13241 cat > conftest.$ac_ext <<EOF
13242 #line 13243 "configure"
13243 #include "confdefs.h"
13244 /* Override any gcc2 internal prototype to avoid an error. */
13245 /* We use char because int might match the return type of a gcc2
13246 builtin and then its argument prototype would still apply. */
13253 if { (eval echo configure:13254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13255 eval "ac_cv_lib_$ac_lib_var=yes"
13257 echo "configure: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13260 eval "ac_cv_lib_$ac_lib_var=no"
13265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13266 echo "$ac_t""yes" 1>&6
13267 with_database_dbm=yes libdbm=-ldbm
13269 echo "$ac_t""no" 1>&6
13270 test "$with_database_dbm" = "yes" && \
13271 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13272 with_database_dbm=no
13280 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13281 test "$with_database_gdbm" = "yes" -o \
13282 "$with_database_dbm" = "yes" && \
13283 { test "$extra_verbose" = "yes" && cat << \EOF
13286 cat >> confdefs.h <<\EOF
13292 if test "$with_database_berkdb" != "no"; then
13293 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13294 echo "configure:13295: checking for Berkeley db.h" >&5
13295 for header in "db/db.h" "db.h"; do
13296 cat > conftest.$ac_ext <<EOF
13297 #line 13298 "configure"
13298 #include "confdefs.h"
13300 #include <stdlib.h>
13301 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13302 #ifdef HAVE_INTTYPES_H
13303 #define __BIT_TYPES_DEFINED__
13304 #include <inttypes.h>
13305 typedef uint8_t u_int8_t;
13306 typedef uint16_t u_int16_t;
13307 typedef uint32_t u_int32_t;
13308 #ifdef WE_DONT_NEED_QUADS
13309 typedef uint64_t u_int64_t;
13319 if { (eval echo configure:13320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13321 db_h_file="$header"; break
13323 echo "configure: failed program was:" >&5
13324 cat conftest.$ac_ext >&5
13328 if test -z "$db_h_file"
13329 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13330 else echo "$ac_t""$db_h_file" 1>&6
13333 if test "$with_database_berkdb" != "no"; then
13334 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13335 echo "configure:13336: checking for Berkeley DB version" >&5
13336 cat > conftest.$ac_ext <<EOF
13337 #line 13338 "configure"
13338 #include "confdefs.h"
13339 #include <$db_h_file>
13340 #if DB_VERSION_MAJOR > 1
13345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13346 egrep "yes" >/dev/null 2>&1; then
13348 cat > conftest.$ac_ext <<EOF
13349 #line 13350 "configure"
13350 #include "confdefs.h"
13351 #include <$db_h_file>
13352 #if DB_VERSION_MAJOR > 2
13357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13358 egrep "yes" >/dev/null 2>&1; then
13360 echo "$ac_t""3" 1>&6; dbfunc=db_create
13364 echo "$ac_t""2" 1>&6; dbfunc=db_open
13371 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13375 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13376 echo "configure:13377: checking for $dbfunc" >&5
13378 cat > conftest.$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13381 /* System header to define __stub macros and hopefully few prototypes,
13382 which can conflict with char $dbfunc(); below. */
13383 #include <assert.h>
13384 /* Override any gcc2 internal prototype to avoid an error. */
13385 /* We use char because int might match the return type of a gcc2
13386 builtin and then its argument prototype would still apply. */
13391 /* The GNU C library defines this for functions which it implements
13392 to always fail with ENOSYS. Some functions are actually named
13393 something starting with __ and the normal name is an alias. */
13394 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13402 if { (eval echo configure:13403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13404 eval "ac_cv_func_$dbfunc=yes"
13406 echo "configure: failed program was:" >&5
13407 cat conftest.$ac_ext >&5
13409 eval "ac_cv_func_$dbfunc=no"
13413 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13414 echo "$ac_t""yes" 1>&6
13415 with_database_berkdb=yes need_libdb=no
13417 echo "$ac_t""no" 1>&6
13420 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13421 echo "configure:13422: checking for $dbfunc in -ldb" >&5
13422 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13424 xe_check_libs=" -ldb "
13425 cat > conftest.$ac_ext <<EOF
13426 #line 13427 "configure"
13427 #include "confdefs.h"
13428 /* Override any gcc2 internal prototype to avoid an error. */
13429 /* We use char because int might match the return type of a gcc2
13430 builtin and then its argument prototype would still apply. */
13437 if { (eval echo configure:13438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13439 eval "ac_cv_lib_$ac_lib_var=yes"
13441 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13444 eval "ac_cv_lib_$ac_lib_var=no"
13449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13450 echo "$ac_t""yes" 1>&6
13451 with_database_berkdb=yes need_libdb=yes
13453 echo "$ac_t""no" 1>&6
13461 if test "$with_database_berkdb" = "yes"; then
13462 { test "$extra_verbose" = "yes" && cat << EOF
13463 Defining DB_H_FILE = "$db_h_file"
13465 cat >> confdefs.h <<EOF
13466 #define DB_H_FILE "$db_h_file"
13470 { test "$extra_verbose" = "yes" && cat << \EOF
13471 Defining HAVE_BERKELEY_DB
13473 cat >> confdefs.h <<\EOF
13474 #define HAVE_BERKELEY_DB 1
13478 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
13479 else with_database_berkdb=no
13483 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13484 != "no no no"; then
13485 { test "$extra_verbose" = "yes" && cat << \EOF
13486 Defining HAVE_DATABASE
13488 cat >> confdefs.h <<\EOF
13489 #define HAVE_DATABASE 1
13493 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
13494 echo " xemacs will be linked with \"database.o\""
13498 if test "$with_socks" = "yes"; then
13500 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13501 echo "configure:13502: checking for SOCKSinit in -lsocks" >&5
13502 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13504 xe_check_libs=" -lsocks "
13505 cat > conftest.$ac_ext <<EOF
13506 #line 13507 "configure"
13507 #include "confdefs.h"
13508 /* Override any gcc2 internal prototype to avoid an error. */
13509 /* We use char because int might match the return type of a gcc2
13510 builtin and then its argument prototype would still apply. */
13517 if { (eval echo configure:13518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13519 eval "ac_cv_lib_$ac_lib_var=yes"
13521 echo "configure: failed program was:" >&5
13522 cat conftest.$ac_ext >&5
13524 eval "ac_cv_lib_$ac_lib_var=no"
13529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13530 echo "$ac_t""yes" 1>&6
13531 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13533 { test "$extra_verbose" = "yes" && cat << EOF
13534 Defining $ac_tr_lib
13536 cat >> confdefs.h <<EOF
13537 #define $ac_tr_lib 1
13541 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
13544 echo "$ac_t""no" 1>&6
13548 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
13549 Defining HAVE_SOCKS
13551 cat >> confdefs.h <<\EOF
13552 #define HAVE_SOCKS 1
13558 if test "$usage_tracking" = "yes"; then
13559 { test "$extra_verbose" = "yes" && cat << \EOF
13560 Defining USAGE_TRACKING
13562 cat >> confdefs.h <<\EOF
13563 #define USAGE_TRACKING 1
13567 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13570 if test "$with_modules" != "no"; then
13571 echo "checking for module support" 1>&6
13572 echo "configure:13573: checking for module support" >&5
13574 if test "$with_msw" = "yes"; then
13577 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13578 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13579 echo "configure:13580: checking for dlfcn.h" >&5
13581 cat > conftest.$ac_ext <<EOF
13582 #line 13583 "configure"
13583 #include "confdefs.h"
13586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13587 { (eval echo configure:13588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13589 if test -z "$ac_err"; then
13591 eval "ac_cv_header_$ac_safe=yes"
13594 echo "configure: failed program was:" >&5
13595 cat conftest.$ac_ext >&5
13597 eval "ac_cv_header_$ac_safe=no"
13600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13601 echo "$ac_t""yes" 1>&6
13604 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13605 echo "configure:13606: checking for dlopen in -ldl" >&5
13606 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
13608 xe_check_libs=" -ldl "
13609 cat > conftest.$ac_ext <<EOF
13610 #line 13611 "configure"
13611 #include "confdefs.h"
13612 /* Override any gcc2 internal prototype to avoid an error. */
13613 /* We use char because int might match the return type of a gcc2
13614 builtin and then its argument prototype would still apply. */
13621 if { (eval echo configure:13622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13623 eval "ac_cv_lib_$ac_lib_var=yes"
13625 echo "configure: failed program was:" >&5
13626 cat conftest.$ac_ext >&5
13628 eval "ac_cv_lib_$ac_lib_var=no"
13633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13634 echo "$ac_t""yes" 1>&6
13635 have_dl=yes libdl=dl
13637 echo "$ac_t""no" 1>&6
13639 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13640 echo "configure:13641: checking for dlopen in -lc" >&5
13641 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
13643 xe_check_libs=" -lc "
13644 cat > conftest.$ac_ext <<EOF
13645 #line 13646 "configure"
13646 #include "confdefs.h"
13647 /* Override any gcc2 internal prototype to avoid an error. */
13648 /* We use char because int might match the return type of a gcc2
13649 builtin and then its argument prototype would still apply. */
13656 if { (eval echo configure:13657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13658 eval "ac_cv_lib_$ac_lib_var=yes"
13660 echo "configure: failed program was:" >&5
13661 cat conftest.$ac_ext >&5
13663 eval "ac_cv_lib_$ac_lib_var=no"
13668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13669 echo "$ac_t""yes" 1>&6
13672 echo "$ac_t""no" 1>&6
13680 echo "$ac_t""no" 1>&6
13683 if test -n "$have_dl"; then
13684 { test "$extra_verbose" = "yes" && cat << \EOF
13685 Defining HAVE_DLOPEN
13687 cat >> confdefs.h <<\EOF
13688 #define HAVE_DLOPEN 1
13694 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13695 echo "configure:13696: checking for shl_load in -ldld" >&5
13696 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13698 xe_check_libs=" -ldld "
13699 cat > conftest.$ac_ext <<EOF
13700 #line 13701 "configure"
13701 #include "confdefs.h"
13702 /* Override any gcc2 internal prototype to avoid an error. */
13703 /* We use char because int might match the return type of a gcc2
13704 builtin and then its argument prototype would still apply. */
13711 if { (eval echo configure:13712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13713 eval "ac_cv_lib_$ac_lib_var=yes"
13715 echo "configure: failed program was:" >&5
13716 cat conftest.$ac_ext >&5
13718 eval "ac_cv_lib_$ac_lib_var=no"
13723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13724 echo "$ac_t""yes" 1>&6
13725 libdl=dld have_dl=yes;
13726 { test "$extra_verbose" = "yes" && cat << \EOF
13727 Defining HAVE_SHL_LOAD
13729 cat >> confdefs.h <<\EOF
13730 #define HAVE_SHL_LOAD 1
13735 echo "$ac_t""no" 1>&6
13737 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13738 echo "configure:13739: checking for dld_init in -ldld" >&5
13739 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13741 xe_check_libs=" -ldld "
13742 cat > conftest.$ac_ext <<EOF
13743 #line 13744 "configure"
13744 #include "confdefs.h"
13745 /* Override any gcc2 internal prototype to avoid an error. */
13746 /* We use char because int might match the return type of a gcc2
13747 builtin and then its argument prototype would still apply. */
13754 if { (eval echo configure:13755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13756 eval "ac_cv_lib_$ac_lib_var=yes"
13758 echo "configure: failed program was:" >&5
13759 cat conftest.$ac_ext >&5
13761 eval "ac_cv_lib_$ac_lib_var=no"
13766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13767 echo "$ac_t""yes" 1>&6
13768 libdl=dld have_dl=yes;
13769 { test "$extra_verbose" = "yes" && cat << \EOF
13770 Defining HAVE_DLD_INIT
13772 cat >> confdefs.h <<\EOF
13773 #define HAVE_DLD_INIT 1
13778 echo "$ac_t""no" 1>&6
13787 if test -n "$have_dl"; then
13794 ld_dynamic_link_flags=
13796 xealias=$internal_configuration
13798 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13799 echo "configure:13800: checking how to build dynamic libraries for ${xehost}" >&5
13800 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13803 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13806 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13807 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13808 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13810 case "$xehost_os" in
13812 # AIX sometimes has problems with the GCC collect2 program. For some
13813 # reason, if we set the COLLECT_NAMES environment variable, the problems
13814 # vanish in a puff of smoke.
13815 if test "${COLLECT_NAMES+set}" != set; then
13817 export COLLECT_NAMES
13822 # Now see if the compiler is really GCC.
13823 if test "$GCC" = "yes"; then
13826 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13827 echo "configure:13828: checking checking whether we are using GNU C" >&5
13828 cat > conftest.$ac_ext <<EOF
13829 #line 13830 "configure"
13830 #include "confdefs.h"
13837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13838 egrep "yes" >/dev/null 2>&1; then
13847 echo "$ac_t""${XEGCC}" 1>&6
13850 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13851 echo "configure:13852: checking how to produce PIC code" >&5
13854 can_build_shared=yes
13855 if test "$XEGCC" = yes; then
13858 case "$xehost_os" in
13859 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13860 # PIC is the default for these OSes.
13863 aix3* | aix4* | os2*)
13864 # We can build DLLs from non-PIC.
13867 # FIXME: we need at least 68020 code to build shared libraries, but
13868 # adding the `-m68020' flag to GCC prevents building anything better,
13870 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13872 *cygwin* | *mingw* )
13873 # PIC is the default
13880 # PORTME Check for PIC flags for the system compiler.
13881 case "$xehost_os" in
13882 hpux9* | hpux1[0-9]*)
13883 # Is there a better link_static_flag that works with the bundled CC?
13890 # PIC (with -KPIC) is the default.
13894 # We can build DLLs from non-PIC.
13898 # All OSF/1 code is PIC.
13903 dll_cflags='-belf -Kpic'
13937 can_build_shared=no
13942 if test -n "$dll_cflags"; then
13943 echo "$ac_t""${dll_cflags}" 1>&6
13945 # Check to make sure the dll_cflags actually works.
13946 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13947 echo "configure:13948: checking if PIC flag ${dll_cflags} really works" >&5
13948 save_CFLAGS="$CFLAGS"
13949 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13950 cat > conftest.$ac_ext <<EOF
13951 #line 13952 "configure"
13952 #include "confdefs.h"
13958 if { (eval echo configure:13959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13961 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13962 # reports no error. So, we need to grep stderr for (Bundled).
13963 if grep '(Bundled)' config.log >/dev/null; then
13964 echo "$ac_t""no" 1>&6
13965 can_build_shared=no
13968 echo "$ac_t""yes" 1>&6
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13974 echo "$ac_t""no" 1>&6
13975 can_build_shared=no
13979 CFLAGS="$save_CFLAGS"
13981 echo "$ac_t""none" 1>&6
13984 if test "$can_build_shared" = "yes"; then
13988 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13989 echo "configure:13990: checking if C compiler can produce shared libraries" >&5
13990 if test "$XEGCC" = yes; then
13993 else # Not using GCC
13994 case "$xehost_os" in
13996 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13997 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14000 freebsd2* | netbsd* | openbsd*)
14002 xcldf="${wl}-Bshareable"
14011 xcldf="${wl}-b ${wl}+s"
14014 irix5* | irix6* | osf3* | osf4*)
14015 xcldf="${wl}-shared"
14019 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14025 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14026 xldf="-assert pure-text -Bstatic"
14029 fi # End if if we are using gcc
14031 if test -n "$xcldf"; then
14032 save_LDFLAGS=$LDFLAGS
14034 save_xe_libs=$xe_libs
14035 LDFLAGS="$xcldf $LDFLAGS"
14038 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14039 cat > conftest.$ac_ext <<EOF
14040 #line 14041 "configure"
14041 #include "confdefs.h"
14047 if { (eval echo configure:14048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14051 echo "configure: failed program was:" >&5
14052 cat conftest.$ac_ext >&5
14057 LDFLAGS=$save_LDFLAGS
14059 xe_libs=$save_xe_libs
14060 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14064 echo "$ac_t""${cc_produces_so}" 1>&6
14067 if test -z "$LTLD"; then
14069 if test "$XEGCC" = yes; then
14070 # Check if gcc -print-prog-name=ld gives a path.
14071 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14072 echo "configure:14073: checking for ld used by GCC" >&5
14073 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14075 # Accept absolute paths.
14077 if test -z "$LTLD"; then
14079 *gcc-lib*) LTLD="$CC"
14087 # If it fails, then pretend we aren't using GCC.
14091 # If it is relative, then search for the first ld in PATH.
14092 with_gnu_ld=unknown
14096 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14097 echo "configure:14098: checking for GNU ld" >&5
14100 if test -z "$LTLD"; then
14101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14102 for ac_dir in $PATH; do
14103 test -z "$ac_dir" && ac_dir=.
14104 if test -f "$ac_dir/$ac_prog"; then
14105 LTLD="$ac_dir/$ac_prog"
14106 # Check to see if the program is GNU ld. I'd rather use --version,
14107 # but apparently some GNU ld's only accept -v.
14108 # Break only if it was the GNU/non-GNU ld that we prefer.
14109 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14119 if test -n "$LTLD"; then
14120 echo "$ac_t""${LTLD}" 1>&6
14122 echo "$ac_t""no" 1>&6
14125 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14126 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14131 ld_dynamic_link_flags=
14133 # Check to see if it really is or isn't GNU ld.
14134 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14135 echo "configure:14136: checking if the linker is GNU ld" >&5
14136 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14137 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14142 echo "$ac_t""${xe_gnu_ld}" 1>&6
14144 case "$xehost_os" in
14145 amigaos* | sunos4*)
14146 # On these operating systems, we should treat GNU ld like the system ld.
14147 gnu_ld_acts_native=yes
14150 gnu_ld_acts_native=no
14154 if test "$cc_produces_so" = "yes"; then
14157 can_build_shared=yes
14160 # OK - only NOW do we futz about with ld.
14161 # See if the linker supports building shared libraries.
14162 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14163 echo "configure:14164: checking whether the linker supports shared libraries" >&5
14165 dll_ldflags=$LDFLAGS
14167 can_build_shared=yes
14168 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14169 # See if GNU ld supports shared libraries.
14170 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14172 dll_ldflags="-shared"
14178 # PORTME fill in a description of your system's linker (not GNU ld)
14179 case "$xehost_os" in
14189 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14190 # support. Future versions do this automatically, but an explicit c++rt0.o
14191 # doesn't break anything, and helps significantly (at the cost of a little
14196 dll_post="/usr/lib/c++rt0.o"
14199 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14202 dll_ldflags="-Bshareable"
14205 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14207 dll_ldflags="-shared"
14221 # Tested with NetBSD 1.2 ld
14236 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14237 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14240 *gcc*) dll_ldflags="-shared"
14243 *) dll_ldflags="-G"
14249 if test "$XEGCC" = yes; then
14269 can_build_shared=no
14273 echo "$ac_t""${ld_shlibs}" 1>&6
14274 if test "$ld_shlibs" = "no"; then
14275 can_build_shared=no
14277 fi # End of if cc_produces_so = no
14280 if test "$xe_gnu_ld" = yes; then
14281 if test "$ld_shlibs" = yes; then
14282 ld_dynamic_link_flags="${wl}-export-dynamic"
14286 if test -z "$ld_dynamic_link_flags"; then
14287 case "$xehost_os" in
14289 ld_dynamic_link_flags=
14293 ld_dynamic_link_flags=
14297 ld_dynamic_link_flags=
14301 ld_dynamic_link_flags=
14305 ld_dynamic_link_flags=
14309 ld_dynamic_link_flags="${wl}-E"
14313 ld_dynamic_link_flags=
14317 ld_dynamic_link_flags=
14321 ld_dynamic_link_flags=
14325 ld_dynamic_link_flags=
14328 solaris2* | solaris7*)
14329 ld_dynamic_link_flags=
14332 sco3.2v5* | unixware* | sysv5* | sysv4*)
14333 ld_dynamic_link_flags="${wl}-Bexport"
14337 ld_dynamic_link_flags=
14341 ld_dynamic_link_flags=
14345 ld_dynamic_link_flags=
14349 fi # End of if -z ld_dynamic_link_flags
14350 fi # End of if test "$can_build_shared" = "yes"
14361 if test "$can_build_shared" = "yes"; then
14362 { test "$extra_verbose" = "yes" && cat << \EOF
14363 Defining HAVE_SHLIB
14365 cat >> confdefs.h <<\EOF
14366 #define HAVE_SHLIB 1
14370 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14371 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14373 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14374 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14375 for ac_func in dlerror _dlerror
14377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14378 echo "configure:14379: checking for $ac_func" >&5
14380 cat > conftest.$ac_ext <<EOF
14381 #line 14382 "configure"
14382 #include "confdefs.h"
14383 /* System header to define __stub macros and hopefully few prototypes,
14384 which can conflict with char $ac_func(); below. */
14385 #include <assert.h>
14386 /* Override any gcc2 internal prototype to avoid an error. */
14387 /* We use char because int might match the return type of a gcc2
14388 builtin and then its argument prototype would still apply. */
14393 /* The GNU C library defines this for functions which it implements
14394 to always fail with ENOSYS. Some functions are actually named
14395 something starting with __ and the normal name is an alias. */
14396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14404 if { (eval echo configure:14405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14406 eval "ac_cv_func_$ac_func=yes"
14408 echo "configure: failed program was:" >&5
14409 cat conftest.$ac_ext >&5
14411 eval "ac_cv_func_$ac_func=no"
14415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14416 echo "$ac_t""yes" 1>&6
14417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14418 { test "$extra_verbose" = "yes" && cat << EOF
14419 Defining $ac_tr_func
14421 cat >> confdefs.h <<EOF
14422 #define $ac_tr_func 1
14427 echo "$ac_t""no" 1>&6
14433 if test "$with_modules" = "yes"; then
14434 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14436 echo "configure: warning: "Module support cannot be provided."" 1>&2
14442 cat > conftest.$ac_ext <<EOF
14443 #line 14444 "configure"
14444 #include "confdefs.h"
14445 int main(int c,char *v[]){return 0;}
14447 if { (eval echo configure:14448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14452 echo "configure: failed program was:" >&5
14453 cat conftest.$ac_ext >&5
14457 echo "*** PANIC *** The C compiler can no longer build working executables."
14458 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
14459 echo "*** PANIC *** The most likely reason for this problem is that configure"
14460 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
14461 echo "*** PANIC *** found at run time."
14462 echo "*** PANIC ***"
14463 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
14464 echo "*** PANIC *** On other systems, try telling configure where to find the"
14465 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
14466 echo "*** PANIC ***"
14467 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
14468 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
14469 echo "*** PANIC *** on your system. Don't do that."
14474 if test "$win32_processes" = "yes"; then
14475 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
14476 echo " xemacs will be linked with \"process-nt.o\""
14479 { test "$extra_verbose" = "yes" && cat << \EOF
14480 Defining HAVE_UNIX_PROCESSES
14482 cat >> confdefs.h <<\EOF
14483 #define HAVE_UNIX_PROCESSES 1
14487 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
14488 echo " xemacs will be linked with \"process-unix.o\""
14495 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14500 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14505 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
14506 c_switch_general="$T"
14510 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14511 c_switch_window_system="$T"
14515 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14520 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
14521 ld_switch_general="$T"
14525 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14526 ld_switch_window_system="$T"
14530 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14535 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14536 ld_libs_general="$T"
14540 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
14541 ld_libs_window_system="$T"
14545 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14550 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14551 internal_makefile_list="Makefile.in"
14552 SUBDIR_MAKEFILES=''
14553 test -d lock || mkdir lock
14554 for dir in $MAKE_SUBDIR; do
14555 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
14556 test -d "$d" || mkdir "$d"; cd "$d"
14558 * ) test -d "$dir" || mkdir "$dir" ;;
14562 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14563 SUBDIR_MAKEFILES="$T"
14567 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14568 internal_makefile_list="$T"
14575 for dir in src/s src/m; do
14576 if test ! -d "$dir" ; then
14577 echo Making symbolic link to "$srcdir/$dir"
14578 ${LN_S} "$srcdir/$dir" "$dir"
14582 if test "$extra_verbose" = "yes"; then
14584 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
14589 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
14590 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
14591 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
14594 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
14595 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
14596 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
14599 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
14600 test "$extra_verbose" = "yes" && echo "creating TAGS"
14602 $srcdir/TAGS,include" > "TAGS"
14605 if test "$__SUNPRO_C" = "yes"; then
14606 test "$extra_verbose" = "yes" && echo "creating .sbinit"
14607 ( echo "# For use with Sun WorkShop's Source browser."
14608 echo "# See sbquery(1) and sbinit(4) for more information"
14609 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14636 *\$* ) eval "PREFIX=$PREFIX" ;;
14644 EXEC_PREFIX=$exec_prefix
14646 case "$EXEC_PREFIX" in
14647 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
14658 *\$* ) eval "INFODIR=$INFODIR" ;;
14668 case "$INFOPATH" in
14669 *\$* ) eval "INFOPATH=$INFOPATH" ;;
14677 PACKAGE_PATH=$package_path
14679 case "$PACKAGE_PATH" in
14680 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
14691 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14699 MODULEDIR=$moduledir
14701 case "$MODULEDIR" in
14702 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14710 SITELISPDIR=$sitelispdir
14712 case "$SITELISPDIR" in
14713 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14721 SITEMODULEDIR=$sitemoduledir
14723 case "$SITEMODULEDIR" in
14724 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14735 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14746 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14754 ARCHLIBDIR=$archlibdir
14756 case "$ARCHLIBDIR" in
14757 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14781 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14789 : ${XEMACS_CC:=$CC}
14792 if test "$with_prefix" = "yes"; then
14793 { test "$extra_verbose" = "yes" && cat << \EOF
14794 Defining PREFIX_USER_DEFINED
14796 cat >> confdefs.h <<\EOF
14797 #define PREFIX_USER_DEFINED 1
14803 if test "$with_site_lisp" = "no"; then
14804 { test "$extra_verbose" = "yes" && cat << \EOF
14805 Defining INHIBIT_SITE_LISP
14807 cat >> confdefs.h <<\EOF
14808 #define INHIBIT_SITE_LISP 1
14813 if test "$with_site_modules" = "no"; then
14814 { test "$extra_verbose" = "yes" && cat << \EOF
14815 Defining INHIBIT_SITE_MODULES
14817 cat >> confdefs.h <<\EOF
14818 #define INHIBIT_SITE_MODULES 1
14826 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14827 ac_configure_args="$T"
14829 { test "$extra_verbose" = "yes" && cat << EOF
14830 Defining EMACS_CONFIGURATION = "$configuration"
14832 cat >> confdefs.h <<EOF
14833 #define EMACS_CONFIGURATION "$configuration"
14837 { test "$extra_verbose" = "yes" && cat << EOF
14838 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14840 cat >> confdefs.h <<EOF
14841 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14848 { test "$extra_verbose" = "yes" && cat << EOF
14849 Defining LD_SWITCH_X_SITE = $null_string
14851 cat >> confdefs.h <<EOF
14852 #define LD_SWITCH_X_SITE $null_string
14856 { test "$extra_verbose" = "yes" && cat << EOF
14857 Defining LD_SWITCH_X_SITE_AUX = $null_string
14859 cat >> confdefs.h <<EOF
14860 #define LD_SWITCH_X_SITE_AUX $null_string
14864 { test "$extra_verbose" = "yes" && cat << EOF
14865 Defining C_SWITCH_X_SITE = $null_string
14867 cat >> confdefs.h <<EOF
14868 #define C_SWITCH_X_SITE $null_string
14872 { test "$extra_verbose" = "yes" && cat << EOF
14873 Defining LD_SWITCH_SITE = $null_string
14875 cat >> confdefs.h <<EOF
14876 #define LD_SWITCH_SITE $null_string
14880 { test "$extra_verbose" = "yes" && cat << EOF
14881 Defining C_SWITCH_SITE = $null_string
14883 cat >> confdefs.h <<EOF
14884 #define C_SWITCH_SITE $null_string
14890 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14891 Defining GNU_MALLOC
14893 cat >> confdefs.h <<\EOF
14894 #define GNU_MALLOC 1
14898 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14899 Defining USE_SYSTEM_MALLOC
14901 cat >> confdefs.h <<\EOF
14902 #define USE_SYSTEM_MALLOC 1
14906 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14907 Defining USE_DEBUG_MALLOC
14909 cat >> confdefs.h <<\EOF
14910 #define USE_DEBUG_MALLOC 1
14914 { test "$extra_verbose" = "yes" && cat << \EOF
14915 Defining USE_SYSTEM_MALLOC
14917 cat >> confdefs.h <<\EOF
14918 #define USE_SYSTEM_MALLOC 1
14923 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14926 cat >> confdefs.h <<\EOF
14931 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14934 cat >> confdefs.h <<\EOF
14939 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14940 Defining EXTERNAL_WIDGET
14942 cat >> confdefs.h <<\EOF
14943 #define EXTERNAL_WIDGET 1
14947 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14948 Defining QUICK_BUILD
14950 cat >> confdefs.h <<\EOF
14951 #define QUICK_BUILD 1
14955 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14958 cat >> confdefs.h <<\EOF
14963 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14966 cat >> confdefs.h <<\EOF
14971 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14972 Defining MAIL_USE_POP
14974 cat >> confdefs.h <<\EOF
14975 #define MAIL_USE_POP 1
14979 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14982 cat >> confdefs.h <<\EOF
14987 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14990 cat >> confdefs.h <<\EOF
14995 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14996 Defining USE_UNION_TYPE
14998 cat >> confdefs.h <<\EOF
14999 #define USE_UNION_TYPE 1
15003 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15006 cat >> confdefs.h <<\EOF
15014 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15016 echo "uname -a: `uname -a`"
15019 echo "$0 $quoted_arguments"
15022 if test ! -z ${emacs_beta_version} ; then
15023 if test -z "${emacs_is_beta}" ; then
15024 xemacs_betaname=".${emacs_beta_version}"
15026 xemacs_betaname="-b${emacs_beta_version}"
15035 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15038 Compilation / Installation:"
15039 echo " Source code location: $srcdir"
15040 echo " Installation prefix: $prefix"
15041 if test -n "$site_includes"; then
15042 echo " Additional header files: $site_includes"
15044 if test -n "$site_libraries"; then
15045 echo " Additional libraries: $site_libraries"
15047 if test -n "$site_prefixes"; then
15048 echo " Additional prefixes: $site_prefixes"
15050 if test -n "$runpath"; then
15051 echo " Runtime library search path: $runpath"
15054 if test -n "$opsysfile"
15055 then echo " Operating system description file: \`$opsysfile'"
15056 else echo " Not using any operating system description file"
15058 if test -n "$machfile"
15059 then echo " Machine description file: \`$machfile'"
15060 else echo " Not using any machine description file"
15063 echo " Compiler: $CC $CFLAGS"
15064 echo " Relocating allocator for buffers: $rel_alloc"
15065 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15069 if test "$with_msw" = "yes"; then
15070 echo " Compiling in support for the Microsoft window system."
15072 if test "$with_x11" = "yes"; then
15073 echo " Compiling in support for the X window system:"
15074 echo " - X Windows headers location: $x_includes"
15075 echo " - X Windows libraries location: $x_libraries"
15076 if test "$with_xauth" != yes; then
15077 echo " - Xau (X authority) not available."
15079 if test "$with_xmu" != yes; then
15080 echo " - Xmu library not available; substituting equivalent routines."
15082 if test "$with_wmcommand" != no; then
15083 echo " - Handling WM_COMMAND properly."
15086 if test "$need_athena" = "yes"; then
15087 echo " Compiling in support for the Athena widget set:"
15088 echo " - Athena headers location: $athena_h_path"
15089 echo " - Athena library to link: $athena_lib"
15091 case "$with_menubars" in
15092 lucid ) echo " Using Lucid menubars." ;;
15093 motif ) echo " Using Motif menubars."
15094 echo " *WARNING* The Motif menubar implementation is currently buggy."
15095 echo " We recommend using the Lucid menubar instead."
15096 echo " Re-run configure with --with-menubars='lucid'." ;;
15097 msw ) echo " Using MS-Windows menubars." ;;
15099 case "$with_scrollbars" in
15100 lucid ) echo " Using Lucid scrollbars." ;;
15101 motif ) echo " Using Motif scrollbars." ;;
15102 athena ) echo " Using Athena scrollbars." ;;
15103 msw ) echo " Using MS-Windows scrollbars." ;;
15105 case "$with_dialogs" in
15106 motif ) echo " Using Motif dialog boxes."
15107 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15108 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15109 echo " We recommend using the Athena dialog boxes instead."
15110 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15111 echo " Read the PROBLEMS file for more information."
15113 athena ) echo " Using Athena dialog boxes." ;;
15114 msw ) echo " Using MS-Windows dialog boxes." ;;
15116 case "$with_widgets" in
15117 motif ) echo " Using Motif native widgets." ;;
15118 athena ) echo " Using Athena native widgets." ;;
15119 msw ) echo " Using MS-Windows native widgets." ;;
15121 if test "$with_dragndrop" = yes; then
15122 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15123 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15128 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15129 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15133 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15134 if test "$with_xpm" = yes; then
15135 echo " Compiling in support for XPM images."
15136 elif test "$with_x11" = yes; then
15137 echo " WARNING: -----------------------------------------------------------"
15138 echo " WARNING: Compiling without XPM image support."
15139 if test "$xpm_problem" != ""; then
15140 echo " Reason: $xpm_problem"
15142 echo " WARNING: You should strongly consider installing XPM."
15143 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15144 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15145 echo " WARNING: -----------------------------------------------------------"
15147 if test "$with_png" = yes; then
15148 echo " Compiling in support for PNG images."
15149 elif test "$window_system" != "none"; then
15150 echo " WARNING: -----------------------------------------------------------"
15151 echo " WARNING: Compiling without PNG image support."
15152 if test "$png_problem" != ""; then
15153 echo " Reason: $png_problem"
15155 echo " WARNING: You should strongly consider installing the PNG libraries."
15156 echo " WARNING: Otherwise certain images and glyphs may not display."
15157 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15158 echo " WARNING: -----------------------------------------------------------"
15160 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15161 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15162 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15166 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15167 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15168 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15169 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15173 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15174 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15175 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15176 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15177 if test "$with_postgresql" = yes; then
15178 echo " Compiling in support for PostgreSQL."
15179 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15180 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15184 Internationalization:"
15185 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15186 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15187 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15188 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15189 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15190 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15191 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15192 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15193 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15194 if test "$with_wnn" = yes; then
15195 echo " Compiling in support for the WNN input method on Mule."
15196 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15198 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15202 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15203 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15204 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15205 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15209 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15210 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15211 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15212 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15213 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15214 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15215 test "$pdump" = yes && echo " Using the new portable dumper."
15216 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15217 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15218 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15219 != "no no no no no no"; then
15220 echo " WARNING: ---------------------------------------------------------"
15221 echo " WARNING: Compiling in support for runtime error checking."
15222 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15223 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15224 echo " WARNING: ---------------------------------------------------------"
15227 ) | tee -a Installation
15231 # Remove any trailing slashes in these variables.
15232 test -n "$prefix" &&
15233 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15234 test -n "$exec_prefix" &&
15235 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15238 for file in $internal_makefile_list; do
15239 test "$file" = src/Makefile.in && \
15240 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15241 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15243 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15244 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
15248 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15251 # Let make expand exec_prefix.
15252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15254 # Any assignment to VPATH causes Sun make to only execute
15255 # the first set of double-colon rules, so remove it if not needed.
15256 # If there is a colon in the path, we need to keep it.
15257 if test "x$srcdir" = x.; then
15258 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15261 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15263 DEFS=-DHAVE_CONFIG_H
15265 # Without the "./", some shells look in PATH for config.status.
15266 : ${CONFIG_STATUS=./config.status}
15268 echo creating $CONFIG_STATUS
15269 rm -f $CONFIG_STATUS
15270 cat > $CONFIG_STATUS <<EOF
15272 # Generated automatically by configure.
15273 # Run this file to recreate the current configuration.
15274 # This directory was configured as follows,
15275 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15277 # $0 $ac_configure_args
15279 # Compiler output produced by configure, useful for debugging
15280 # configure, is in ./config.log if it exists.
15282 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15285 case "\$ac_option" in
15286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15287 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15288 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15289 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15290 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15292 -help | --help | --hel | --he | --h)
15293 echo "\$ac_cs_usage"; exit 0 ;;
15294 *) echo "\$ac_cs_usage"; exit 1 ;;
15298 ac_given_srcdir=$srcdir
15299 ac_given_INSTALL="$INSTALL"
15301 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15303 cat >> $CONFIG_STATUS <<EOF
15305 # Protect against being on the right side of a sed subst in config.status.
15306 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15307 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15311 s%@CFLAGS@%$CFLAGS%g
15312 s%@CPPFLAGS@%$CPPFLAGS%g
15313 s%@CXXFLAGS@%$CXXFLAGS%g
15314 s%@FFLAGS@%$FFLAGS%g
15316 s%@LDFLAGS@%$LDFLAGS%g
15318 s%@exec_prefix@%$exec_prefix%g
15319 s%@prefix@%$prefix%g
15320 s%@program_transform_name@%$program_transform_name%g
15321 s%@bindir@%$bindir%g
15322 s%@sbindir@%$sbindir%g
15323 s%@libexecdir@%$libexecdir%g
15324 s%@datadir@%$datadir%g
15325 s%@sysconfdir@%$sysconfdir%g
15326 s%@sharedstatedir@%$sharedstatedir%g
15327 s%@localstatedir@%$localstatedir%g
15328 s%@libdir@%$libdir%g
15329 s%@includedir@%$includedir%g
15330 s%@oldincludedir@%$oldincludedir%g
15331 s%@infodir@%$infodir%g
15332 s%@mandir@%$mandir%g
15334 s%@blddir@%$blddir%g
15337 s%@start_flags@%$start_flags%g
15338 s%@ld_switch_shared@%$ld_switch_shared%g
15339 s%@start_files@%$start_files%g
15341 s%@lib_gcc@%$lib_gcc%g
15342 s%@RANLIB@%$RANLIB%g
15343 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15344 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15345 s%@INSTALL_DATA@%$INSTALL_DATA%g
15347 s%@SET_MAKE@%$SET_MAKE%g
15348 s%@X_CFLAGS@%$X_CFLAGS%g
15349 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15350 s%@X_LIBS@%$X_LIBS%g
15351 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15352 s%@install_pp@%$install_pp%g
15353 s%@libs_xauth@%$libs_xauth%g
15354 s%@dnd_objs@%$dnd_objs%g
15355 s%@lwlib_objs@%$lwlib_objs%g
15356 s%@ALLOCA@%$ALLOCA%g
15357 s%@have_esd_config@%$have_esd_config%g
15358 s%@dll_ld@%$dll_ld%g
15359 s%@dll_cflags@%$dll_cflags%g
15360 s%@dll_ldflags@%$dll_ldflags%g
15361 s%@dll_post@%$dll_post%g
15362 s%@dll_ldo@%$dll_ldo%g
15363 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15364 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15365 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15366 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15367 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15368 s%@PROGNAME@%$PROGNAME%g
15369 s%@version@%$version%g
15370 s%@configuration@%$configuration%g
15371 s%@canonical@%$canonical%g
15372 s%@inststaticdir@%$inststaticdir%g
15373 s%@instvardir@%$instvardir%g
15374 s%@srcdir@%$srcdir%g
15375 s%@pkgdir@%$pkgdir%g
15376 s%@statedir@%$statedir%g
15377 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15378 s%@PREFIX@%$PREFIX%g
15379 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15380 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15381 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15382 s%@INFODIR@%$INFODIR%g
15383 s%@infopath@%$infopath%g
15384 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15385 s%@INFOPATH@%$INFOPATH%g
15386 s%@package_path@%$package_path%g
15387 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15388 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15389 s%@lispdir@%$lispdir%g
15390 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15391 s%@LISPDIR@%$LISPDIR%g
15392 s%@moduledir@%$moduledir%g
15393 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15394 s%@MODULEDIR@%$MODULEDIR%g
15395 s%@sitelispdir@%$sitelispdir%g
15396 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15397 s%@SITELISPDIR@%$SITELISPDIR%g
15398 s%@sitemoduledir@%$sitemoduledir%g
15399 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15400 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15401 s%@etcdir@%$etcdir%g
15402 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15403 s%@ETCDIR@%$ETCDIR%g
15404 s%@docdir@%$docdir%g
15405 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15406 s%@DOCDIR@%$DOCDIR%g
15407 s%@archlibdir@%$archlibdir%g
15408 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15409 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15410 s%@bitmapdir@%$bitmapdir%g
15411 s%@extra_objs@%$extra_objs%g
15412 s%@machfile@%$machfile%g
15413 s%@opsysfile@%$opsysfile%g
15414 s%@c_switch_general@%$c_switch_general%g
15415 s%@c_switch_window_system@%$c_switch_window_system%g
15416 s%@c_switch_all@%$c_switch_all%g
15417 s%@ld_switch_general@%$ld_switch_general%g
15418 s%@ld_switch_window_system@%$ld_switch_window_system%g
15419 s%@ld_switch_all@%$ld_switch_all%g
15420 s%@ld_libs_general@%$ld_libs_general%g
15421 s%@ld_libs_window_system@%$ld_libs_window_system%g
15422 s%@ld_libs_all@%$ld_libs_all%g
15423 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15424 s%@native_sound_lib@%$native_sound_lib%g
15425 s%@sound_cflags@%$sound_cflags%g
15426 s%@dynodump_arch@%$dynodump_arch%g
15427 s%@XEMACS_CC@%$XEMACS_CC%g
15428 s%@internal_makefile_list@%$internal_makefile_list%g
15433 cat >> $CONFIG_STATUS <<\EOF
15435 # Split the substitutions into bite-sized pieces for seds with
15436 # small command number limits, like on Digital OSF/1 and HP-UX.
15437 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15438 ac_file=1 # Number of current file.
15439 ac_beg=1 # First line for current file.
15440 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15443 while $ac_more_lines; do
15444 if test $ac_beg -gt 1; then
15445 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15447 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15449 if test ! -s conftest.s$ac_file; then
15450 ac_more_lines=false
15451 rm -f conftest.s$ac_file
15453 if test -z "$ac_sed_cmds"; then
15454 ac_sed_cmds="sed -f conftest.s$ac_file"
15456 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15458 ac_file=`expr $ac_file + 1`
15460 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15463 if test -z "$ac_sed_cmds"; then
15468 cat >> $CONFIG_STATUS <<EOF
15470 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
15472 cat >> $CONFIG_STATUS <<\EOF
15473 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15474 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15476 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15477 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15478 *) ac_file_in="${ac_file}.in" ;;
15481 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15483 # Remove last slash and all that follows it. Not all systems have dirname.
15484 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15485 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15486 # The file is in a subdirectory.
15487 test ! -d "$ac_dir" && mkdir "$ac_dir"
15488 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15489 # A "../" for each directory in $ac_dir_suffix.
15490 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15492 ac_dir_suffix= ac_dots=
15495 case "$ac_given_srcdir" in
15497 if test -z "$ac_dots"; then top_srcdir=.
15498 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15499 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15500 *) # Relative path.
15501 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15502 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15505 case "$ac_given_INSTALL" in
15506 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15507 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15510 echo creating "$ac_file"
15512 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15514 *Makefile*) ac_comsub="1i\\
15515 # $configure_input" ;;
15519 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15521 s%@configure_input@%$configure_input%g
15522 s%@srcdir@%$srcdir%g
15523 s%@top_srcdir@%$top_srcdir%g
15524 s%@INSTALL@%$INSTALL%g
15525 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15529 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15530 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15532 # ac_d sets the value in "#define NAME VALUE" lines.
15533 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15534 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15537 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15538 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15539 ac_uB='\([ ]\)%\1#\2define\3'
15542 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15543 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15544 ac_eB='$%\1#\2define\3'
15548 if test "${CONFIG_HEADERS+set}" != set; then
15550 cat >> $CONFIG_STATUS <<EOF
15551 CONFIG_HEADERS="src/config.h lwlib/config.h"
15553 cat >> $CONFIG_STATUS <<\EOF
15555 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15556 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15558 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15559 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15560 *) ac_file_in="${ac_file}.in" ;;
15563 echo creating $ac_file
15565 rm -f conftest.frag conftest.in conftest.out
15566 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15567 cat $ac_file_inputs > conftest.in
15571 # Transform confdefs.h into a sed script conftest.vals that substitutes
15572 # the proper values into config.h.in to produce config.h. And first:
15573 # Protect against being on the right side of a sed subst in config.status.
15574 # Protect against being in an unquoted here document in config.status.
15575 rm -f conftest.vals
15576 cat > conftest.hdr <<\EOF
15579 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15583 sed -n -f conftest.hdr confdefs.h > conftest.vals
15586 # This sed command replaces #undef with comments. This is necessary, for
15587 # example, in the case of _POSIX_SOURCE, which is predefined and required
15588 # on some systems where configure will not decide to define it.
15589 cat >> conftest.vals <<\EOF
15590 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15593 # Break up conftest.vals because some shells have a limit on
15594 # the size of here documents, and old seds have small limits too.
15596 rm -f conftest.tail
15599 ac_lines=`grep -c . conftest.vals`
15600 # grep -c gives empty output for an empty file on some AIX systems.
15601 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15602 # Write a limited-size here document to conftest.frag.
15603 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15604 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15606 sed -f conftest.frag conftest.in > conftest.out
15608 mv conftest.out conftest.in
15609 ' >> $CONFIG_STATUS
15610 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15611 rm -f conftest.vals
15612 mv conftest.tail conftest.vals
15614 rm -f conftest.vals
15616 cat >> $CONFIG_STATUS <<\EOF
15617 rm -f conftest.frag conftest.h
15618 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15619 cat conftest.in >> conftest.h
15621 if cmp -s $ac_file conftest.h 2>/dev/null; then
15622 echo "$ac_file is unchanged"
15625 # Remove last slash and all that follows it. Not all systems have dirname.
15626 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15627 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15628 # The file is in a subdirectory.
15629 test ! -d "$ac_dir" && mkdir "$ac_dir"
15632 mv conftest.h $ac_file
15637 cat >> $CONFIG_STATUS <<EOF
15639 top_srcdir="$srcdir"
15640 MAKE_SUBDIR="$MAKE_SUBDIR"
15643 cat >> $CONFIG_STATUS <<\EOF
15644 for dir in . $MAKE_SUBDIR; do
15649 sed -e '/^# Generated/d' \
15650 -e 's%/\*\*/#.*%%' \
15665 echo creating $dir/Makefile
15666 $CPP -I. -I${top_srcdir}/src junk.c \
15667 | sed -e 's/^\#.*//' \
15668 -e 's/^[ ][ ]*$//'\
15676 chmod 444 Makefile.new
15677 mv -f Makefile.new Makefile
15679 echo creating $dir/GNUmakefile
15680 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
15681 | sed -e 's/^\#.*//' \
15682 -e 's/^[ ][ ]*$//'\
15690 chmod 444 Makefile.new
15691 mv -f Makefile.new GNUmakefile
15697 sed < config.status >> lib-src/config.values \
15698 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15699 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15700 -e 's/^\([^ ]*\) $/\1 ""/' \
15706 chmod +x $CONFIG_STATUS
15707 rm -fr confdefs* $ac_clean_files
15708 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1