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.12 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'
97 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
99 # File descriptor usage:
102 # 2 errors and warnings
103 # 3 some systems may open it to /dev/tty
104 # 4 used on the Kubota Titan
105 # 6 checking for... messages and results
106 # 5 compiler messages saved in config.log
107 if test "$silent" = yes; then
115 This file contains any messages produced by compilers while
116 running configure, to aid debugging if configure makes a mistake.
119 # Strip out --no-create and --no-recursion so they do not pile up.
120 # Also quote any args containing shell metacharacters.
125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
126 | --no-cr | --no-c) ;;
127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
130 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
131 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
136 # Only set these to C if already set. These must not be set unconditionally
137 # because not all systems understand e.g. LANG=C (notably SCO).
138 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
139 # Non-C LC_CTYPE values break the ctype check.
140 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
141 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
142 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
143 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
146 rm -rf conftest* confdefs.h
147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
150 # A filename unique to this package, relative to the directory that
151 # configure is in, which we can look for to find out if srcdir is correct.
152 ac_unique_file=src/lisp.h
154 # Find the source files, if location was not specified.
155 if test -z "$srcdir"; then
156 ac_srcdir_defaulted=yes
157 # Try the directory containing this script, then its parent.
159 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
160 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
162 if test ! -r $srcdir/$ac_unique_file; then
166 ac_srcdir_defaulted=no
168 if test ! -r $srcdir/$ac_unique_file; then
169 if test "$ac_srcdir_defaulted" = yes; then
170 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
172 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
175 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
177 # Prefer explicitly selected file to automatically selected ones.
178 if test -z "$CONFIG_SITE"; then
179 if test "x$prefix" != xNONE; then
180 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
182 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
185 for ac_site_file in $CONFIG_SITE; do
186 if test -r "$ac_site_file"; then
187 echo "loading site script $ac_site_file"
194 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
197 ac_cpp='$CPP '"$xe_cppflags"
198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
204 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
205 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
206 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
213 ac_n= ac_c='\c' ac_t=
217 progname="`echo $0 | sed 's:^\./\./:\./:'`"
220 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
221 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
224 exec_prefix='${prefix}'
225 bindir='${exec_prefix}/bin'
226 datadir='${prefix}/lib'
227 statedir='${prefix}/lib'
228 libdir='${exec_prefix}/lib'
229 mandir='${prefix}/man/man1'
230 inststaticdir='${PROGNAME}'
231 instvardir='${PROGNAME}-${version}'
232 infodir='${datadir}/${instvardir}/info'
235 lispdir='${datadir}/${instvardir}/lisp'
236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
239 pkgdir='${datadir}/${instvardir}/lisp'
241 etcdir='${datadir}/${instvardir}/etc'
242 lockdir='${statedir}/${inststaticdir}/lock'
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 | \
367 memory_usage_stats | \
368 with_clash_detection | \
372 y | ye | yes ) val=yes ;;
374 * ) (echo "$progname: Usage error:"
375 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
376 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
378 eval "$opt=\"$val\"" ;;
396 site_runtime_libraries )
397 if test "$valomitted" = "yes" ; then
398 if test "$#" = 0 ; then
399 (echo "$progname: Usage error:"
400 echo " " "The \`--$optname' option requires a value."
401 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
410 with_debug_malloc | use_debug_malloc | \
411 with_system_malloc | use_system_malloc )
413 y | ye | yes ) val=yes ;;
415 d | de | def | defa | defau | defaul | default ) val=default ;;
416 * ) (echo "$progname: Usage error:"
417 echo " " "The \`--$optname' option requires one of these values:
418 \`yes', \`no', or \`default'."
419 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
421 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
426 with_database_berkdb=no
428 with_database_gdbm=no
429 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
432 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
433 d | db | dbm ) with_database_dbm=yes ;;
434 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
435 * ) (echo "$progname: Usage error:"
436 echo " " "The \`--$optname' option value
437 must be either \`no' or a comma-separated list
438 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
439 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
442 if test "$with_database_dbm" = "yes" -a \
443 "$with_database_gdbm" = "yes"; then
444 (echo "$progname: Usage error:"
445 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
446 with the \`--$optname' option."
447 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
452 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
454 n | no | non | none ) new_sdefault=no ;;
455 a | al | all | both ) new_sdefault=yes ;;
457 native ) with_native_sound=yes ;;
458 nonative ) with_native_sound=no ;;
460 nas ) with_nas_sound=yes ;;
461 nonas ) with_nas_sound=no ;;
463 esd ) with_esd_sound=yes ;;
464 noesd ) with_esd_sound=no ;;
466 * ) bogus_sound=yes ;;
468 if test "$bogus_sound" -o \
469 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
470 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
471 (echo "$progname: Usage error:"
472 echo " " "Valid types for the \`--$optname' option are:
474 The default is to autodetect all sound support."
475 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
476 elif test -n "$new_sdefault" ; then
477 with_native_sound=$new_sdefault
478 with_nas_sound=$new_sdefault
479 with_esd_sound=$new_sdefault
480 new_sdefault= # reset this
488 xa | xaw ) val=xaw ;;
489 3 | 3d | xaw3d ) val=3d ;;
490 ne | nex | next | naxtaw) val=next ;;
491 9 | 95 | xaw95 ) val=95 ;;
492 xp | xpm | xawxpm ) val=xpm ;;
493 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values:
495 \`xaw', \`3d', \`next', \`95', or \`xpm'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
503 y | ye | yes ) val=yes ;;
504 n | no | non | none ) val=no ;;
505 x | xl | xli | xlib ) val=xlib ;;
506 m | mo | mot | moti | motif ) val=motif ;;
507 * ) (echo "$progname: Usage error:"
508 echo " " "The \`--$optname' option must have one of these values:
509 \`motif', \`xlib', \`yes', or \`no'."
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 file | dot ) val=file ;;
520 locking ) val=locking ;;
521 * ) (echo "$progname: Usage error:"
522 echo " " "The \`--$optname' option must have one of these values:
523 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
531 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
533 n | no | non | none ) new_default=no ;;
534 a | al | all ) new_default=yes ;;
536 extents ) error_check_extents=yes ;;
537 noextents ) error_check_extents=no ;;
539 typecheck ) error_check_typecheck=yes ;;
540 notypecheck ) error_check_typecheck=no ;;
542 bufpos ) error_check_bufpos=yes ;;
543 nobufpos ) error_check_bufpos=no ;;
545 gc ) error_check_gc=yes ;;
546 nogc ) error_check_gc=no ;;
548 malloc ) error_check_malloc=yes ;;
549 nomalloc ) error_check_malloc=no ;;
551 byte_code ) error_check_byte_code=yes ;;
552 nobyte_code ) error_check_byte_code=no ;;
554 * ) bogus_error_check=yes ;;
556 if test "$bogus_error_check" -o \
557 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
558 if test "$error_check_default" = yes ; then
559 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
561 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
563 (echo "$progname: Usage error:"
564 echo " " "Valid types for the \`--$optname' option are:
566 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
567 elif test -n "$new_default" ; then
568 error_check_extents=$new_default
569 error_check_typecheck=$new_default
570 error_check_bufpos=$new_default
571 error_check_gc=$new_default
572 error_check_malloc=$new_default
573 error_check_byte_code=$new_default
574 new_default= # reset this
581 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
582 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
583 archlibdir | docdir | package_path )
584 if test "$valomitted" = "yes"; then
585 if test "$#" = 0; then
586 (echo "$progname: Usage error:"
587 echo " " "The \`--$optname' option requires a value."
588 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
595 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
596 Defining EXEC_PREFIX_USER_DEFINED
598 cat >> confdefs.h <<\EOF
599 #define EXEC_PREFIX_USER_DEFINED 1
603 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
604 Defining LISPDIR_USER_DEFINED
606 cat >> confdefs.h <<\EOF
607 #define LISPDIR_USER_DEFINED 1
611 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
612 Defining SITELISPDIR_USER_DEFINED
614 cat >> confdefs.h <<\EOF
615 #define SITELISPDIR_USER_DEFINED 1
619 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
620 Defining MODULEDIR_USER_DEFINED
622 cat >> confdefs.h <<\EOF
623 #define MODULEDIR_USER_DEFINED 1
627 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
628 Defining ETCDIR_USER_DEFINED
630 cat >> confdefs.h <<\EOF
631 #define ETCDIR_USER_DEFINED 1
635 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
636 Defining INFODIR_USER_DEFINED
638 cat >> confdefs.h <<\EOF
639 #define INFODIR_USER_DEFINED 1
643 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
644 Defining INFOPATH_USER_DEFINED
646 cat >> confdefs.h <<\EOF
647 #define INFOPATH_USER_DEFINED 1
651 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
652 Defining PACKAGE_PATH_USER_DEFINED
654 cat >> confdefs.h <<\EOF
655 #define PACKAGE_PATH_USER_DEFINED 1
660 { test "$extra_verbose" = "yes" && cat << \EOF
661 Defining INFODIR_USER_DEFINED
663 cat >> confdefs.h <<\EOF
664 #define INFODIR_USER_DEFINED 1
668 { test "$extra_verbose" = "yes" && cat << \EOF
669 Defining LISPDIR_USER_DEFINED
671 cat >> confdefs.h <<\EOF
672 #define LISPDIR_USER_DEFINED 1
676 { test "$extra_verbose" = "yes" && cat << \EOF
677 Defining MODULEDIR_USER_DEFINED
679 cat >> confdefs.h <<\EOF
680 #define MODULEDIR_USER_DEFINED 1
684 { test "$extra_verbose" = "yes" && cat << \EOF
685 Defining ETCDIR_USER_DEFINED
687 cat >> confdefs.h <<\EOF
688 #define ETCDIR_USER_DEFINED 1
692 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
693 Defining LOCKDIR_USER_DEFINED
695 cat >> confdefs.h <<\EOF
696 #define LOCKDIR_USER_DEFINED 1
700 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
701 Defining DOCDIR_USER_DEFINED
703 cat >> confdefs.h <<\EOF
704 #define DOCDIR_USER_DEFINED 1
708 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
709 Defining ARCHLIBDIR_USER_DEFINED
711 cat >> confdefs.h <<\EOF
712 #define ARCHLIBDIR_USER_DEFINED 1
721 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
724 "with_scrollbars" | \
728 l | lu | luc | luci | lucid ) val=lucid ;;
729 m | mo | mot | moti | motif ) val=motif ;;
730 a | at | ath | athe | athen | athena ) val=athena ;;
731 n | no | non | none ) val=no ;;
732 * ) (echo "$progname: Usage error:"
733 echo " " "The \`--$optname' option must have one of these values:
734 \`lucid', \`motif', \`athena', or \`no'."
735 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
740 "use_minimal_tagbits" | \
741 "use_indexed_lrecord_implementation" | \
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 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
999 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1000 Defining ERROR_CHECK_EXTENTS
1002 cat >> confdefs.h <<\EOF
1003 #define ERROR_CHECK_EXTENTS 1
1007 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1008 Defining ERROR_CHECK_TYPECHECK
1010 cat >> confdefs.h <<\EOF
1011 #define ERROR_CHECK_TYPECHECK 1
1015 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1016 Defining ERROR_CHECK_BUFPOS
1018 cat >> confdefs.h <<\EOF
1019 #define ERROR_CHECK_BUFPOS 1
1023 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1024 Defining ERROR_CHECK_GC
1026 cat >> confdefs.h <<\EOF
1027 #define ERROR_CHECK_GC 1
1031 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1032 Defining ERROR_CHECK_MALLOC
1034 cat >> confdefs.h <<\EOF
1035 #define ERROR_CHECK_MALLOC 1
1039 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1040 Defining ERROR_CHECK_BYTE_CODE
1042 cat >> confdefs.h <<\EOF
1043 #define ERROR_CHECK_BYTE_CODE 1
1047 if test "${debug:=$beta}" = "yes"; then
1048 use_assertions=yes memory_usage_stats=yes
1049 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1050 echo " xemacs will be linked with \"debug.o\""
1052 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1053 echo " xemacs will be linked with \"tests.o\""
1055 { test "$extra_verbose" = "yes" && cat << \EOF
1056 Defining DEBUG_XEMACS
1058 cat >> confdefs.h <<\EOF
1059 #define DEBUG_XEMACS 1
1064 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1065 Defining USE_ASSERTIONS
1067 cat >> confdefs.h <<\EOF
1068 #define USE_ASSERTIONS 1
1072 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1073 Defining MEMORY_USAGE_STATS
1075 cat >> confdefs.h <<\EOF
1076 #define MEMORY_USAGE_STATS 1
1082 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1083 echo "configure:1084: checking "host system type"" >&5
1084 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1085 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1086 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1087 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1088 echo "$ac_t""$configuration" 1>&6
1096 case "$canonical" in
1097 sparc-*-* ) machine=sparc ;;
1098 alpha*-*-* ) machine=alpha ;;
1099 vax-*-* ) machine=vax ;;
1100 mips-dec-* ) machine=pmax ;;
1101 mips-sgi-irix6* ) machine=iris6d ;;
1102 mips-sgi-* ) machine=iris4d ;;
1103 mips*-linux ) machine=mips ;;
1104 romp-ibm-* ) machine=ibmrt ;;
1105 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1106 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1107 powerpc*-* ) machine=powerpc ;;
1108 hppa-*-* ) machine=hp800 ;;
1109 m88k-dg-* ) machine=aviion ;;
1110 m68*-sony-* ) machine=news ;;
1111 mips-sony-* ) machine=news-risc ;;
1112 clipper-* ) machine=clipper ;;
1113 arm-* ) machine=arm ;;
1114 armv34lb-* ) machine=arm ;;
1115 ns32k-* ) machine=ns32000 ;;
1118 case "$canonical" in
1119 *-*-linux* ) opsys=linux ;;
1120 *-*-netbsd* ) opsys=netbsd ;;
1121 *-*-openbsd* ) opsys=openbsd ;;
1122 *-*-nextstep* ) opsys=nextstep ;;
1123 *-*-vms ) opsys=vms ;;
1125 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1126 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1127 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1128 *-dec-osf3* ) opsys=decosf3-1 ;;
1129 *-dec-osf4* ) opsys=decosf4-0 ;;
1131 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1132 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1133 *-*-ultrix* ) opsys=ultrix4-3 ;;
1135 *-*-aix3.1* ) opsys=aix3-1 ;;
1136 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1137 *-*-aix3* ) opsys=aix3-2 ;;
1138 *-*-aix4.0* ) opsys=aix4 ;;
1139 *-*-aix4.1* ) opsys=aix4-1 ;;
1140 *-*-aix4* ) opsys=aix4-2 ;;
1142 *-gnu* ) opsys=gnu ;;
1143 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1144 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1145 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1146 *-*-aos4.2 ) opsys=bsd4-2 ;;
1147 *-*-aos* ) opsys=bsd4-3 ;;
1148 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1149 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1150 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1151 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1152 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1153 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1154 if test -z "$NON_GNU_CPP" ; then
1155 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1156 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1160 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1161 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1164 case "$canonical" in
1167 case "$canonical" in
1168 i[3-9]86-*-netbsd*) machine=intel386 ;;
1169 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1170 machine=hp9000s300 ;;
1171 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1172 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1177 case "${canonical}" in
1178 i386-*-openbsd*) machine=intel386 ;;
1179 m68k-*-openbsd*) machine=hp9000s300 ;;
1180 mipsel-*-openbsd*) machine=pmax ;;
1184 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1185 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1187 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1188 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1190 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1192 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1194 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1196 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1198 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1200 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1201 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1202 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1205 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1207 *-convex-bsd* | *-convex-convexos* )
1208 machine=convex opsys=bsd4-3
1209 NON_GNU_CPP="cc -E -P"
1212 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1214 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1215 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1216 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1217 m88k-dg-dgux* ) opsys=dgux ;;
1219 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1220 m88k-motorola-sysv4* )
1221 machine=delta88k opsys=usg5-4-2
1223 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1225 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1226 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1228 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1230 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1231 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1232 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1235 case "`uname -r`" in
1236 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1237 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1239 NON_GNU_CPP="/lib/cpp"
1241 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1242 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1244 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1246 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1249 case "$canonical" in
1250 m68* ) machine=hp9000s300 ;;
1251 hppa* ) machine=hp800 ;;
1254 case "$canonical" in
1255 *-hp-hpux7* ) opsys=hpux ;;
1256 *-hp-hpux8* ) opsys=hpux8 ;;
1257 *-hp-hpux9* ) opsys=hpux9 ;;
1258 *-hp-hpux10* ) opsys=hpux10 ;;
1259 *-hp-hpux11* ) opsys=hpux11 ;;
1263 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1264 echo " xemacs will be linked with \"strcat.o\""
1267 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1268 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1269 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1271 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1274 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1275 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1277 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1278 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1279 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1280 romp-ibm-aos* ) opsys=bsd4-3 ;;
1281 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1282 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1284 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1285 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1287 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1289 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1291 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1293 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1295 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1297 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1299 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1301 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1303 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1305 mips-mips-usg* ) machine=mips4 ;;
1308 NON_GNU_CC="cc -systype bsd43"
1309 NON_GNU_CPP="cc -systype bsd43 -E"
1310 case "$canonical" in
1311 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1312 mips-mips-riscos5* ) opsys=riscos5 ;;
1315 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1316 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1318 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1320 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1322 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1323 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1325 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1327 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1329 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1331 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1333 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1334 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1336 mips-siemens-sysv* | mips-sni-sysv*)
1337 machine=mips-siemens opsys=usg5-4
1338 NON_GNU_CC=/usr/ccs/bin/cc
1339 NON_GNU_CPP=/usr/ccs/lib/cpp
1344 NON_GNU_CC=/usr/ccs/bin/cc
1345 NON_GNU_CPP=/usr/ccs/lib/cpp
1348 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1349 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1350 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1351 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1352 mips-sgi-irix6* ) opsys=irix6-0 ;;
1353 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1354 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1355 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1356 mips-sgi-irix* ) opsys=irix5-0 ;;
1358 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1359 *-sony-news* ) opsys=newsos5 ;;
1361 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1363 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1364 case "$canonical" in
1365 m68*-sunos1* ) machine=sun1 ;;
1366 m68*-sunos2* ) machine=sun2 ;;
1367 m68* ) machine=sun3 ;;
1368 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1369 i*86-*-* ) machine=intel386 ;;
1370 rs6000* ) machine=rs6000 ;;
1373 case "$canonical" in *-sunos5*)
1374 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1377 case "$canonical" in
1379 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1382 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1386 case "$canonical" in
1389 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1390 { test "$extra_verbose" = "yes" && cat << EOF
1391 Defining OS_RELEASE = $os_release
1393 cat >> confdefs.h <<EOF
1394 #define OS_RELEASE $os_release
1399 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1400 *-sunos4.0* ) opsys=sunos4-0 ;;
1401 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1402 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1403 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1404 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1405 *-mach* ) opsys=mach-bsd4-3 ;;
1409 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1411 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1414 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1416 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1417 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1419 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1421 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1423 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1424 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1426 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1428 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1431 case "$canonical" in
1432 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1433 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1434 *-mach* ) opsys=mach-bsd4-3 ;;
1438 ns16k-whitechapel-* ) machine=mg1 ;;
1440 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1444 case "$canonical" in
1445 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1446 *-isc2.2* ) opsys=isc2-2 ;;
1447 *-isc4.0* ) opsys=isc4-0 ;;
1448 *-isc4.* ) opsys=isc4-1
1449 GCC_TEST_OPTIONS=-posix
1450 NON_GCC_TEST_OPTIONS=-Xp
1452 *-isc* ) opsys=isc3-0 ;;
1453 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1454 *-esix* ) opsys=esix ;;
1455 *-mach* ) opsys=mach-bsd4-3 ;;
1456 *-xenix* ) opsys=xenix ;;
1457 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1458 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1459 *-bsdi4* ) opsys=bsdos4 ;;
1460 *-bsdi3* ) opsys=bsdos3 ;;
1461 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1462 *-bsdi2* ) opsys=bsdos2 ;;
1463 *-sco3.2v5* ) opsys=sco5 ;
1464 if test "$dynamic" = "yes" ; then
1465 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1467 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1469 *-sysv5* ) opsys=sco7 ;;
1470 *-386bsd* ) opsys=386bsd ;;
1471 *-freebsd* ) opsys=freebsd ;;
1472 *-nextstep* ) opsys=nextstep ;;
1473 *-pc-cygwin* ) opsys=cygwin32 ;;
1474 *-pc-mingw* ) opsys=mingw32 ;
1475 test -z "$with_tty" && with_tty="no";;
1479 m68k-*-linux* ) machine=m68k opsys=linux ;;
1483 if test -z "$machine" -o -z "$opsys"; then
1484 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1485 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1490 if test -z "$dynamic"; then
1492 hpux* | sunos4* ) dynamic=no ;;
1496 if test "$dynamic" = "yes"; then
1498 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1499 decosf* ) ld_call_shared="-call_shared" ;;
1501 else case "$opsys" in
1503 echo "Static linking is not supported on Solaris 2."
1504 echo "Rerun configure without specifying --dynamic=no."
1506 linux ) ld_call_shared="-Bstatic" ;;
1507 decosf* ) ld_call_shared="-non_shared" ;;
1511 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1513 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1514 { test "$extra_verbose" = "yes" && cat << EOF
1515 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1517 cat >> confdefs.h <<EOF
1518 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1523 machfile="m/${machine}.h"
1524 opsysfile="s/${opsys}.h"
1527 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1528 if test "$with_workshop $with_tooltalk" = "yes no"; then
1529 (echo "$progname: Usage error:"
1530 echo " " "--with-workshop requires --with-tooltalk"
1531 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1532 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1533 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1536 if test "$with_workshop" = "yes"; then
1537 { test "$extra_verbose" = "yes" && cat << \EOF
1540 cat >> confdefs.h <<\EOF
1545 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1546 echo " xemacs will be linked with \"sunpro.o\""
1550 if test "$with_clash_detection" = "yes"; then
1551 { test "$extra_verbose" = "yes" && cat << \EOF
1552 Defining CLASH_DETECTION
1554 cat >> confdefs.h <<\EOF
1555 #define CLASH_DETECTION 1
1559 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1560 echo " xemacs will be linked with \"filelock.o\""
1564 test -n "$compiler" && CC="$compiler"
1565 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1568 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1569 if test "${CFLAGS-unset}" != unset
1570 then cflags_specified=yes;
1571 else cflags_specified=no;
1574 xe_save_CFLAGS="$CFLAGS"
1576 # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1579 echo "configure:1580: checking for $ac_word" >&5
1581 if test -n "$CC"; then
1582 ac_cv_prog_CC="$CC" # Let the user override the test.
1584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1586 for ac_dir in $ac_dummy; do
1587 test -z "$ac_dir" && ac_dir=.
1588 if test -f $ac_dir/$ac_word; then
1596 if test -n "$CC"; then
1597 echo "$ac_t""$CC" 1>&6
1599 echo "$ac_t""no" 1>&6
1602 if test -z "$CC"; then
1603 # Extract the first word of "cc", so it can be a program name with args.
1604 set dummy cc; ac_word=$2
1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_word" >&5
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1614 for ac_dir in $ac_dummy; do
1615 test -z "$ac_dir" && ac_dir=.
1616 if test -f $ac_dir/$ac_word; then
1617 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1630 if test $# -gt 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1635 set dummy "$ac_dir/$ac_word" "$@"
1642 if test -n "$CC"; then
1643 echo "$ac_t""$CC" 1>&6
1645 echo "$ac_t""no" 1>&6
1648 if test -z "$CC"; then
1649 case "`uname -s`" in
1651 # Extract the first word of "cl", so it can be a program name with args.
1652 set dummy cl; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1656 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1661 for ac_dir in $ac_dummy; do
1662 test -z "$ac_dir" && ac_dir=.
1663 if test -f $ac_dir/$ac_word; then
1671 if test -n "$CC"; then
1672 echo "$ac_t""$CC" 1>&6
1674 echo "$ac_t""no" 1>&6
1679 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1682 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1683 echo "configure:1684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1686 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1687 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1688 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1689 ac_cpp='$CPP '"$xe_cppflags"
1690 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1691 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1694 cat > conftest.$ac_ext << EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702 ac_cv_prog_cc_works=yes
1703 # If we can't run a trivial program, we are probably using a cross compiler.
1704 if (./conftest; exit) 2>/dev/null; then
1705 ac_cv_prog_cc_cross=no
1707 ac_cv_prog_cc_cross=yes
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 ac_cv_prog_cc_works=no
1716 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1717 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1718 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1719 ac_cpp='$CPP '"$xe_cppflags"
1720 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1721 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1724 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1725 if test $ac_cv_prog_cc_works = no; then
1726 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1731 cross_compiling=$ac_cv_prog_cc_cross
1733 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1734 echo "configure:1735: checking whether we are using GNU C" >&5
1736 cat > conftest.c <<EOF
1741 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1747 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1749 if test $ac_cv_prog_gcc = yes; then
1755 ac_test_CFLAGS="${CFLAGS+set}"
1756 ac_save_CFLAGS="$CFLAGS"
1758 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1759 echo "configure:1760: checking whether ${CC-cc} accepts -g" >&5
1761 echo 'void f(){}' > conftest.c
1762 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1770 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1771 if test "$ac_test_CFLAGS" = set; then
1772 CFLAGS="$ac_save_CFLAGS"
1773 elif test $ac_cv_prog_cc_g = yes; then
1774 if test "$GCC" = yes; then
1780 if test "$GCC" = yes; then
1787 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1789 # Extract the first word of "gcc", so it can be a program name with args.
1790 set dummy gcc; ac_word=$2
1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_word" >&5
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1799 for ac_dir in $ac_dummy; do
1800 test -z "$ac_dir" && ac_dir=.
1801 if test -f $ac_dir/$ac_word; then
1809 if test -n "$CC"; then
1810 echo "$ac_t""$CC" 1>&6
1812 echo "$ac_t""no" 1>&6
1815 if test -z "$CC"; then
1816 # Extract the first word of "cc", so it can be a program name with args.
1817 set dummy cc; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1827 for ac_dir in $ac_dummy; do
1828 test -z "$ac_dir" && ac_dir=.
1829 if test -f $ac_dir/$ac_word; then
1830 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1831 ac_prog_rejected=yes
1839 if test $ac_prog_rejected = yes; then
1840 # We found a bogon in the path, so make sure we never use it.
1841 set dummy $ac_cv_prog_CC
1843 if test $# -gt 0; then
1844 # We chose a different compiler from the bogus one.
1845 # However, it has the same basename, so the bogon will be chosen
1846 # first if we set CC to just the basename; use the full file name.
1848 set dummy "$ac_dir/$ac_word" "$@"
1855 if test -n "$CC"; then
1856 echo "$ac_t""$CC" 1>&6
1858 echo "$ac_t""no" 1>&6
1861 if test -z "$CC"; then
1862 case "`uname -s`" in
1864 # Extract the first word of "cl", so it can be a program name with args.
1865 set dummy cl; ac_word=$2
1866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1867 echo "configure:1868: checking for $ac_word" >&5
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1874 for ac_dir in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir=.
1876 if test -f $ac_dir/$ac_word; then
1884 if test -n "$CC"; then
1885 echo "$ac_t""$CC" 1>&6
1887 echo "$ac_t""no" 1>&6
1892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1896 echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1899 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1900 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1901 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1902 ac_cpp='$CPP '"$xe_cppflags"
1903 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1904 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1907 cat > conftest.$ac_ext << EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1915 ac_cv_prog_cc_works=yes
1916 # If we can't run a trivial program, we are probably using a cross compiler.
1917 if (./conftest; exit) 2>/dev/null; then
1918 ac_cv_prog_cc_cross=no
1920 ac_cv_prog_cc_cross=yes
1923 echo "configure: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1925 ac_cv_prog_cc_works=no
1929 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1930 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1931 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1932 ac_cpp='$CPP '"$xe_cppflags"
1933 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1934 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1937 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1938 if test $ac_cv_prog_cc_works = no; then
1939 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1942 echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1943 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1944 cross_compiling=$ac_cv_prog_cc_cross
1946 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether we are using GNU C" >&5
1949 cat > conftest.c <<EOF
1954 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1962 if test $ac_cv_prog_gcc = yes; then
1968 ac_test_CFLAGS="${CFLAGS+set}"
1969 ac_save_CFLAGS="$CFLAGS"
1971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1972 echo "configure:1973: checking whether ${CC-cc} accepts -g" >&5
1974 echo 'void f(){}' > conftest.c
1975 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1983 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1984 if test "$ac_test_CFLAGS" = set; then
1985 CFLAGS="$ac_save_CFLAGS"
1986 elif test $ac_cv_prog_cc_g = yes; then
1987 if test "$GCC" = yes; then
1993 if test "$GCC" = yes; then
2000 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2002 # Extract the first word of "gcc", so it can be a program name with args.
2003 set dummy gcc; ac_word=$2
2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_word" >&5
2007 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2012 for ac_dir in $ac_dummy; do
2013 test -z "$ac_dir" && ac_dir=.
2014 if test -f $ac_dir/$ac_word; then
2022 if test -n "$CC"; then
2023 echo "$ac_t""$CC" 1>&6
2025 echo "$ac_t""no" 1>&6
2028 if test -z "$CC"; then
2029 # Extract the first word of "cc", so it can be a program name with args.
2030 set dummy cc; ac_word=$2
2031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2032 echo "configure:2033: checking for $ac_word" >&5
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2040 for ac_dir in $ac_dummy; do
2041 test -z "$ac_dir" && ac_dir=.
2042 if test -f $ac_dir/$ac_word; then
2043 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2044 ac_prog_rejected=yes
2052 if test $ac_prog_rejected = yes; then
2053 # We found a bogon in the path, so make sure we never use it.
2054 set dummy $ac_cv_prog_CC
2056 if test $# -gt 0; then
2057 # We chose a different compiler from the bogus one.
2058 # However, it has the same basename, so the bogon will be chosen
2059 # first if we set CC to just the basename; use the full file name.
2061 set dummy "$ac_dir/$ac_word" "$@"
2068 if test -n "$CC"; then
2069 echo "$ac_t""$CC" 1>&6
2071 echo "$ac_t""no" 1>&6
2074 if test -z "$CC"; then
2075 case "`uname -s`" in
2077 # Extract the first word of "cl", so it can be a program name with args.
2078 set dummy cl; ac_word=$2
2079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_word" >&5
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2087 for ac_dir in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir=.
2089 if test -f $ac_dir/$ac_word; then
2097 if test -n "$CC"; then
2098 echo "$ac_t""$CC" 1>&6
2100 echo "$ac_t""no" 1>&6
2105 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2108 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2109 echo "configure:2110: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2112 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2113 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2114 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2115 ac_cpp='$CPP '"$xe_cppflags"
2116 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2117 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2120 cat > conftest.$ac_ext << EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2128 ac_cv_prog_cc_works=yes
2129 # If we can't run a trivial program, we are probably using a cross compiler.
2130 if (./conftest; exit) 2>/dev/null; then
2131 ac_cv_prog_cc_cross=no
2133 ac_cv_prog_cc_cross=yes
2136 echo "configure: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 ac_cv_prog_cc_works=no
2142 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2143 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2144 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2145 ac_cpp='$CPP '"$xe_cppflags"
2146 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2147 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2150 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2151 if test $ac_cv_prog_cc_works = no; then
2152 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2156 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2157 cross_compiling=$ac_cv_prog_cc_cross
2159 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2160 echo "configure:2161: checking whether we are using GNU C" >&5
2162 cat > conftest.c <<EOF
2167 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2173 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2175 if test $ac_cv_prog_gcc = yes; then
2181 ac_test_CFLAGS="${CFLAGS+set}"
2182 ac_save_CFLAGS="$CFLAGS"
2184 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2185 echo "configure:2186: checking whether ${CC-cc} accepts -g" >&5
2187 echo 'void f(){}' > conftest.c
2188 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2196 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2197 if test "$ac_test_CFLAGS" = set; then
2198 CFLAGS="$ac_save_CFLAGS"
2199 elif test $ac_cv_prog_cc_g = yes; then
2200 if test "$GCC" = yes; then
2206 if test "$GCC" = yes; then
2214 CFLAGS="$xe_save_CFLAGS"
2217 test -n "$CPP" -a -d "$CPP" && CPP=
2219 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2221 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2222 echo "configure:2223: checking how to run the C preprocessor" >&5
2223 # On Suns, sometimes $CPP names a directory.
2224 if test -n "$CPP" && test -d "$CPP"; then
2227 if test -z "$CPP"; then
2229 # This must be in double quotes, not single quotes, because CPP may get
2230 # substituted into the Makefile and "${CC-cc}" will confuse make.
2232 # On the NeXT, cc -E runs the code through the compiler's parser,
2233 # not just through cpp.
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2243 if test -z "$ac_err"; then
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2250 CPP="${CC-cc} -E -traditional-cpp"
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2260 if test -z "$ac_err"; then
2264 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2267 CPP="${CC-cc} -nologo -E"
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2277 if test -z "$ac_err"; then
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2291 ac_cv_prog_CPP="$CPP"
2292 CPP="$ac_cv_prog_CPP"
2294 ac_cv_prog_CPP="$CPP"
2296 echo "$ac_t""$CPP" 1>&6
2299 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2300 echo "configure:2301: checking for AIX" >&5
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2310 egrep "yes" >/dev/null 2>&1; then
2312 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2313 Defining _ALL_SOURCE
2315 cat >> confdefs.h <<\EOF
2316 #define _ALL_SOURCE 1
2322 echo "$ac_t""no" 1>&6
2328 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2329 echo "configure:2330: checking for GNU libc" >&5
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <features.h>
2336 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2337 #error Not a GNU libc system :-(
2338 ******* ======= ******** &&&&&&&&
2343 if { (eval echo configure:2344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2353 echo "$ac_t""$have_glibc" 1>&6
2354 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2355 Defining _GNU_SOURCE
2357 cat >> confdefs.h <<\EOF
2358 #define _GNU_SOURCE 1
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2368 #if defined __SUNPRO_C
2370 #elif defined __DECC
2377 if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2385 case "$conftest_rc" in
2386 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2387 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2395 echo "Extracting information from the machine- and system-dependent headers..."
2397 tempcname="conftest.c"
2401 cat > $tempcname <<EOF
2403 #define C_SWITCH_SITE
2404 #define C_SWITCH_X_SITE
2405 #define LD_SWITCH_SITE
2406 #define LD_SWITCH_X_SITE
2407 #define LD_SWITCH_X_SITE_AUX
2408 #define OS_RELEASE $os_release
2409 #include "$srcdir/src/$opsysfile"
2410 #include "$srcdir/src/$machfile"
2412 #ifndef LIBS_MACHINE
2413 #define LIBS_MACHINE
2415 configure___ libs_machine=LIBS_MACHINE
2420 configure___ libs_system=LIBS_SYSTEM
2422 #ifndef LIBS_TERMCAP
2423 #define LIBS_TERMCAP
2425 configure___ libs_termcap=LIBS_TERMCAP
2427 #ifndef LIB_STANDARD
2428 #define LIB_STANDARD
2430 configure___ libs_standard=LIB_STANDARD
2433 #ifndef OBJECTS_MACHINE
2434 #define OBJECTS_MACHINE
2436 configure___ objects_machine=OBJECTS_MACHINE
2438 #ifndef OBJECTS_SYSTEM
2439 #define OBJECTS_SYSTEM
2441 configure___ objects_system=OBJECTS_SYSTEM
2444 #ifndef C_SWITCH_MACHINE
2445 #define C_SWITCH_MACHINE
2447 configure___ c_switch_machine=C_SWITCH_MACHINE
2449 #ifndef C_SWITCH_SYSTEM
2450 #define C_SWITCH_SYSTEM
2452 configure___ c_switch_system=C_SWITCH_SYSTEM
2455 #ifndef LD_SWITCH_MACHINE
2456 #define LD_SWITCH_MACHINE
2458 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2460 #ifndef LD_SWITCH_SYSTEM
2461 #define LD_SWITCH_SYSTEM
2463 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2467 #define UNEXEC "unexec.o"
2469 configure___ unexec=UNEXEC
2472 #ifndef LD_SWITCH_SHARED
2473 #define LD_SWITCH_SHARED "-c"
2475 configure___ ld_switch_shared=LD_SWITCH_SHARED
2478 #ifdef ORDINARY_LINK
2479 #define LD "\$(CC) \$(CFLAGS)"
2480 #else /* no ORDINARY LINK */
2481 #ifdef COFF_ENCAPSULATE
2482 #define LD "\$(CC) -nostdlib"
2483 #else /* not COFF_ENCAPSULATE */
2486 #else /* ! defined (LINKER) */
2488 #endif /* ! defined (LINKER) */
2489 #endif /* ! defined (COFF_ENCAPSULATE) */
2490 #endif /* not ORDINARY_LINK */
2496 configure___ lib_gcc=LIB_GCC
2498 #ifndef LD_TEXT_START_ADDR
2499 #define LD_TEXT_START_ADDR
2501 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2504 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2506 #ifdef COFF_ENCAPSULATE
2507 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2508 #else /* ! defined (COFF_ENCAPSULATE) */
2509 #define START_FILES "pre-crt0.o /lib/crt0.o"
2510 #endif /* ! defined (COFF_ENCAPSULATE) */
2511 #else /* ! defined (NO_REMAP) */
2512 #define START_FILES "ecrt0.o"
2513 #endif /* ! defined (NO_REMAP) */
2514 #endif /* no ORDINARY_LINK */
2518 configure___ start_files=START_FILES
2520 #ifdef ORDINARY_LINK
2521 configure___ ordinary_link=yes
2523 configure___ ordinary_link=no
2526 #ifdef SYSTEM_MALLOC
2527 configure___ system_malloc=yes
2529 configure___ system_malloc=no
2533 configure___ have_terminfo=yes
2535 configure___ have_terminfo=no
2538 #ifdef MAIL_USE_FLOCK
2539 configure___ mail_use_flock=yes
2541 configure___ mail_use_flock=no
2544 #ifdef MAIL_USE_LOCKF
2545 configure___ mail_use_lockf=yes
2547 configure___ mail_use_lockf=no
2550 #ifdef MAIL_USE_LOCKING
2551 configure___ mail_use_locking=yes
2553 configure___ mail_use_locking=no
2556 #ifdef HAVE_WIN32_PROCESSES
2557 configure___ win32_processes=yes
2559 configure___ win32_processes=no
2564 CPP=`eval "echo $CPP $CPPFLAGS"`
2565 eval `$CPP -Isrc $tempcname \
2566 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2570 test "$extra_verbose" = "yes" && \
2571 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 ""
2573 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2574 mingw_include=`eval "dirname $mingw_include"` ;
2575 mingw_include="-I$mingw_include/../include/mingw32" ;
2576 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2579 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2581 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2583 if test "$cflags_specified" = "no"; then
2584 if test "$GCC" = "yes"; then
2585 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2586 elif test "$__SUNPRO_C" = "yes"; then
2588 sol2 ) CFLAGS="-v -xO4" ;;
2589 sunos4* ) CFLAGS="-xO2";;
2591 elif test "$__DECC" = "yes"; then
2593 elif test "$CC" = "xlc"; then
2594 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2600 if test "$GCC" = "yes"; then
2601 set x $ld_switch_system; shift; ld_switch_system=""
2602 while test -n "$1"; do
2604 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2605 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2607 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2613 if test "$GCC" = "yes"; then
2614 set x $ld_switch_machine; shift; ld_switch_machine=""
2615 while test -n "$1"; do
2617 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2618 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2620 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2626 if test "$GCC" = "yes"; then
2627 set x $LDFLAGS; shift; LDFLAGS=""
2628 while test -n "$1"; do
2630 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2631 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2633 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2639 if test "$GCC" = "yes"; then
2640 set x $ld_call_shared; shift; ld_call_shared=""
2641 while test -n "$1"; do
2643 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2644 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2646 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2652 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2653 echo " xemacs will be linked with \"$objects_machine\""
2655 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2656 echo " xemacs will be linked with \"$objects_system\""
2658 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2659 echo " xemacs will be linked with \"$unexec\""
2662 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2663 echo "configure:2664: checking for dynodump" >&5
2664 if test "$unexec" != "unexsol2.o"; then
2665 echo "$ac_t""no" 1>&6
2667 echo "$ac_t""yes" 1>&6
2668 { test "$extra_verbose" = "yes" && cat << \EOF
2671 cat >> confdefs.h <<\EOF
2676 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2677 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2679 sparc ) dynodump_arch=sparc ;;
2680 *86* ) dynodump_arch=i386 ;;
2681 powerpc ) dynodump_arch=ppc ;;
2683 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
2687 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2689 if test "$unexec" = "unexaix.o"; then
2690 if test "$dynamic" = "no"; then
2691 start_flags="-Wl,-bnso,-bnodelcsect"
2692 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2693 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2694 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2696 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2697 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2700 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2701 echo "configure:2702: checking for terminateAndUnload in -lC" >&5
2702 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2704 xe_check_libs=" -lC "
2705 cat > conftest.$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2708 /* Override any gcc2 internal prototype to avoid an error. */
2709 /* We use char because int might match the return type of a gcc2
2710 builtin and then its argument prototype would still apply. */
2711 char terminateAndUnload();
2714 terminateAndUnload()
2717 if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2719 eval "ac_cv_lib_$ac_lib_var=yes"
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2724 eval "ac_cv_lib_$ac_lib_var=no"
2729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2730 echo "$ac_t""yes" 1>&6
2731 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2733 echo "$ac_t""no" 1>&6
2738 elif test -n "$ld_text_start_addr"; then
2739 start_flags="-T $ld_text_start_addr -e __start"
2745 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2746 test -z "$linker" && linker='$(CC) -nostdlib'
2747 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2749 test "$GCC" != "yes" && lib_gcc=
2755 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2756 if test -n "$site_libraries"; then
2757 for arg in $site_libraries; do
2760 * ) test -d "$arg" || \
2761 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2764 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2768 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2769 if test -n "$site_includes"; then
2770 for arg in $site_includes; do
2773 * ) test -d "$arg" || \
2774 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2777 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2781 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2782 if test -n "$site_prefixes"; then
2783 for dir in $site_prefixes; do
2784 lib_dir="${dir}/lib"
2785 inc_dir="${dir}/include"
2786 if test ! -d "$dir"; then
2787 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2788 elif test ! -d "$lib_dir"; then
2789 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2791 if test -d "$inc_dir"; then
2792 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
2794 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
2800 for dir in "/usr/ccs/lib"; do
2801 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
2804 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2805 if test -n "$site_runtime_libraries"; then
2806 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2814 if test -n "$add_runtime_path"; then :;
2815 elif test "$dynamic" = "no"; then add_runtime_path=no
2816 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2817 else case "$opsys" in
2818 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2819 * ) add_runtime_path=no ;;
2823 if test "$add_runtime_path" = "yes"; then
2824 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2825 echo "configure:2826: checking "for runtime libraries flag"" >&5
2827 sol2 ) dash_r="-R" ;;
2828 decosf* | linux* | irix*) dash_r="-rpath " ;;
2831 for try_dash_r in "-R" "-R " "-rpath "; do
2832 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2834 if test "$GCC" = "yes"; then
2835 set x $xe_check_libs; shift; xe_check_libs=""
2836 while test -n "$1"; do
2838 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2839 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2841 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2856 dash_r="$try_dash_r"
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2863 test -n "$dash_r" && break
2866 if test -n "$dash_r";
2867 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2868 else echo "$ac_t""NONE" 1>&6
2872 xe_add_unique_runpath_dir='
2874 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2876 if test "$xe_add_p" = "yes"; then
2877 test -n "$runpath" && runpath="${runpath}:"
2878 runpath="${runpath}${xe_runpath_dir}"
2879 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2885 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2886 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2887 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2889 runpath="" runpath_dirs=""
2890 if test -n "$LD_RUN_PATH"; then
2891 runpath="$LD_RUN_PATH"
2892 elif test "$GCC" = "yes"; then
2893 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2894 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2895 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2896 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2897 case "$arg" in P,* | -L* | -R* )
2898 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2900 xe_runpath_dir="$dir"
2901 test "$xe_runpath_dir" != "/lib" -a \
2902 "$xe_runpath_dir" != "/usr/lib" -a \
2903 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2904 eval "$xe_add_unique_runpath_dir"
2909 ld_switch_run="$ld_switch_run_save"
2912 for arg in $ld_switch_site $ld_switch_x_site; do
2913 case "$arg" in -L*) {
2914 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2915 test "$xe_runpath_dir" != "/lib" -a \
2916 "$xe_runpath_dir" != "/usr/lib" -a \
2917 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2918 eval "$xe_add_unique_runpath_dir"
2921 if test "$opsys $need_motif" = "sol2 yes"; then
2922 xe_runpath_dir="/opt/SUNWdt/lib";
2923 eval "$xe_add_unique_runpath_dir";
2926 if test -n "$runpath"; then
2927 ld_switch_run="${dash_r}${runpath}"
2929 if test "$GCC" = "yes"; then
2930 set x $ld_switch_run; shift; ld_switch_run=""
2931 while test -n "$1"; do
2933 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2934 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2936 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2941 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2949 if test "$with_dlmalloc" != "no"; then
2954 after_morecore_hook_exists=yes
2955 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2956 echo "configure:2957: checking for malloc_get_state" >&5
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 /* System header to define __stub macros and hopefully few prototypes,
2962 which can conflict with char malloc_get_state(); below. */
2964 /* Override any gcc2 internal prototype to avoid an error. */
2965 /* We use char because int might match the return type of a gcc2
2966 builtin and then its argument prototype would still apply. */
2967 char malloc_get_state();
2971 /* The GNU C library defines this for functions which it implements
2972 to always fail with ENOSYS. Some functions are actually named
2973 something starting with __ and the normal name is an alias. */
2974 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2982 if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2984 eval "ac_cv_func_malloc_get_state=yes"
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2989 eval "ac_cv_func_malloc_get_state=no"
2993 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2994 echo "$ac_t""yes" 1>&6
2997 echo "$ac_t""no" 1>&6
3001 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3002 echo "configure:3003: checking for malloc_set_state" >&5
3004 cat > conftest.$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3007 /* System header to define __stub macros and hopefully few prototypes,
3008 which can conflict with char malloc_set_state(); below. */
3010 /* Override any gcc2 internal prototype to avoid an error. */
3011 /* We use char because int might match the return type of a gcc2
3012 builtin and then its argument prototype would still apply. */
3013 char malloc_set_state();
3017 /* The GNU C library defines this for functions which it implements
3018 to always fail with ENOSYS. Some functions are actually named
3019 something starting with __ and the normal name is an alias. */
3020 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3030 eval "ac_cv_func_malloc_set_state=yes"
3032 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3035 eval "ac_cv_func_malloc_set_state=no"
3039 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3040 echo "$ac_t""yes" 1>&6
3043 echo "$ac_t""no" 1>&6
3047 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3048 echo "configure:3049: checking whether __after_morecore_hook exists" >&5
3049 cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 extern void (* __after_morecore_hook)();
3054 __after_morecore_hook = 0
3057 if { (eval echo configure:3058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3059 echo "$ac_t""yes" 1>&6
3061 echo "configure: failed program was:" >&5
3062 cat conftest.$ac_ext >&5
3064 echo "$ac_t""no" 1>&6
3065 after_morecore_hook_exists=no
3068 if test "$system_malloc" = "yes" ; then
3071 (The GNU allocators don't work with this system configuration)."
3072 elif test "$with_system_malloc" = "yes" ; then
3075 (User chose not to use GNU allocators)."
3076 elif test "$with_debug_malloc" = "yes" ; then
3079 (User chose to use Debugging Malloc)."
3082 if test "$doug_lea_malloc" = "yes" ; then
3083 if test "$GNU_MALLOC" = yes ; then
3085 (Using Doug Lea's new malloc from the GNU C Library.)"
3087 { test "$extra_verbose" = "yes" && cat << \EOF
3088 Defining DOUG_LEA_MALLOC
3090 cat >> confdefs.h <<\EOF
3091 #define DOUG_LEA_MALLOC 1
3095 if test "$after_morecore_hook_exists" = "no" ; then
3097 (Using Doug Lea's new malloc from the Linux C Library.)"
3098 { test "$extra_verbose" = "yes" && cat << \EOF
3099 Defining _NO_MALLOC_WARNING_
3101 cat >> confdefs.h <<\EOF
3102 #define _NO_MALLOC_WARNING_ 1
3107 use_minimal_tagbits=yes
3113 # Extract the first word of "ranlib", so it can be a program name with args.
3114 set dummy ranlib; ac_word=$2
3115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_word" >&5
3118 if test -n "$RANLIB"; then
3119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3123 for ac_dir in $ac_dummy; do
3124 test -z "$ac_dir" && ac_dir=.
3125 if test -f $ac_dir/$ac_word; then
3126 ac_cv_prog_RANLIB="ranlib"
3131 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3133 RANLIB="$ac_cv_prog_RANLIB"
3134 if test -n "$RANLIB"; then
3135 echo "$ac_t""$RANLIB" 1>&6
3137 echo "$ac_t""no" 1>&6
3141 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3142 if test -f $ac_dir/install-sh; then
3144 ac_install_sh="$ac_aux_dir/install-sh -c"
3146 elif test -f $ac_dir/install.sh; then
3148 ac_install_sh="$ac_aux_dir/install.sh -c"
3152 if test -z "$ac_aux_dir"; then
3153 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3155 ac_config_guess=$ac_aux_dir/config.guess
3156 ac_config_sub=$ac_aux_dir/config.sub
3157 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3159 # Find a good install program. We prefer a C program (faster),
3160 # so one script is as good as another. But avoid the broken or
3161 # incompatible versions:
3162 # SysV /etc/install, /usr/sbin/install
3163 # SunOS /usr/etc/install
3164 # IRIX /sbin/install
3166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3169 # ./install, which can be erroneously created by make from ./install.sh.
3170 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3171 echo "configure:3172: checking for a BSD compatible install" >&5
3172 if test -z "$INSTALL"; then
3174 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3175 for ac_dir in $PATH; do
3176 # Account for people who put trailing slashes in PATH elements.
3178 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3180 # OSF1 and SCO ODT 3.0 have their own names for install.
3181 # Don't use installbsd from OSF since it installs stuff as root
3183 for ac_prog in ginstall scoinst install; do
3184 if test -f $ac_dir/$ac_prog; then
3185 if test $ac_prog = install &&
3186 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3187 # AIX install. It has an incompatible calling convention.
3190 ac_cv_path_install="$ac_dir/$ac_prog -c"
3200 if test "${ac_cv_path_install+set}" = set; then
3201 INSTALL="$ac_cv_path_install"
3203 # As a last resort, use the slow shell script. We don't cache a
3204 # path for INSTALL within a source directory, because that will
3205 # break other packages using the cache if that directory is
3206 # removed, or if the path is relative.
3207 INSTALL="$ac_install_sh"
3210 echo "$ac_t""$INSTALL" 1>&6
3212 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3213 # It thinks the first close brace ends the variable substitution.
3214 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3216 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3218 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3220 for ac_prog in 'bison -y' byacc
3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy $ac_prog; ac_word=$2
3224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_word" >&5
3227 if test -n "$YACC"; then
3228 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3232 for ac_dir in $ac_dummy; do
3233 test -z "$ac_dir" && ac_dir=.
3234 if test -f $ac_dir/$ac_word; then
3235 ac_cv_prog_YACC="$ac_prog"
3241 YACC="$ac_cv_prog_YACC"
3242 if test -n "$YACC"; then
3243 echo "$ac_t""$YACC" 1>&6
3245 echo "$ac_t""no" 1>&6
3248 test -n "$YACC" && break
3250 test -n "$YACC" || YACC="yacc"
3253 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3257 echo "configure:3258: checking for $ac_hdr" >&5
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3265 { (eval echo configure:3266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3267 if test -z "$ac_err"; then
3269 eval "ac_cv_header_$ac_safe=yes"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 eval "ac_cv_header_$ac_safe=no"
3278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3279 echo "$ac_t""yes" 1>&6
3280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3281 { test "$extra_verbose" = "yes" && cat << EOF
3284 cat >> confdefs.h <<EOF
3285 #define $ac_tr_hdr 1
3290 echo "$ac_t""no" 1>&6
3294 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_hdr" >&5
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3306 { (eval echo configure:3307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3308 if test -z "$ac_err"; then
3310 eval "ac_cv_header_$ac_safe=yes"
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 eval "ac_cv_header_$ac_safe=no"
3319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3320 echo "$ac_t""yes" 1>&6
3321 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3322 { test "$extra_verbose" = "yes" && cat << EOF
3325 cat >> confdefs.h <<EOF
3326 #define $ac_tr_hdr 1
3331 echo "$ac_t""no" 1>&6
3335 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3337 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_hdr" >&5
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3347 { (eval echo configure:3348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3349 if test -z "$ac_err"; then
3351 eval "ac_cv_header_$ac_safe=yes"
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3357 eval "ac_cv_header_$ac_safe=no"
3360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3361 echo "$ac_t""yes" 1>&6
3362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3363 { test "$extra_verbose" = "yes" && cat << EOF
3366 cat >> confdefs.h <<EOF
3367 #define $ac_tr_hdr 1
3372 echo "$ac_t""no" 1>&6
3376 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3377 echo "configure:3378: checking for sys/wait.h that is POSIX.1 compatible" >&5
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 #include <sys/types.h>
3383 #include <sys/wait.h>
3385 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3388 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3393 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3396 if { (eval echo configure:3397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3398 ac_cv_header_sys_wait_h=yes
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3403 ac_cv_header_sys_wait_h=no
3407 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3408 if test $ac_cv_header_sys_wait_h = yes; then
3409 { test "$extra_verbose" = "yes" && cat << \EOF
3410 Defining HAVE_SYS_WAIT_H
3412 cat >> confdefs.h <<\EOF
3413 #define HAVE_SYS_WAIT_H 1
3419 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3420 echo "configure:3421: checking for ANSI C header files" >&5
3422 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3431 { (eval echo configure:3432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3433 if test -z "$ac_err"; then
3435 ac_cv_header_stdc=yes
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 ac_cv_header_stdc=no
3445 if test $ac_cv_header_stdc = yes; then
3446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3447 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453 egrep "memchr" >/dev/null 2>&1; then
3457 ac_cv_header_stdc=no
3463 if test $ac_cv_header_stdc = yes; then
3464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3471 egrep "free" >/dev/null 2>&1; then
3475 ac_cv_header_stdc=no
3481 if test $ac_cv_header_stdc = yes; then
3482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3487 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3488 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3490 int main () { int i; for (i = 0; i < 256; i++)
3491 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3495 if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3503 ac_cv_header_stdc=no
3508 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3509 if test $ac_cv_header_stdc = yes; then
3510 { test "$extra_verbose" = "yes" && cat << \EOF
3511 Defining STDC_HEADERS
3513 cat >> confdefs.h <<\EOF
3514 #define STDC_HEADERS 1
3520 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3521 echo "configure:3522: checking whether time.h and sys/time.h may both be included" >&5
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include <sys/types.h>
3527 #include <sys/time.h>
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 ac_cv_header_time=yes
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 ac_cv_header_time=no
3544 echo "$ac_t""$ac_cv_header_time" 1>&6
3545 if test $ac_cv_header_time = yes; then
3546 { test "$extra_verbose" = "yes" && cat << \EOF
3547 Defining TIME_WITH_SYS_TIME
3549 cat >> confdefs.h <<\EOF
3550 #define TIME_WITH_SYS_TIME 1
3556 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3557 echo "configure:3558: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <sys/types.h>
3564 /* NetBSD declares sys_siglist in unistd.h. */
3565 #ifdef HAVE_UNISTD_H
3569 char *msg = *(sys_siglist + 1);
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3574 ac_cv_decl_sys_siglist=yes
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 ac_cv_decl_sys_siglist=no
3583 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3584 if test $ac_cv_decl_sys_siglist = yes; then
3585 { test "$extra_verbose" = "yes" && cat << \EOF
3586 Defining SYS_SIGLIST_DECLARED
3588 cat >> confdefs.h <<\EOF
3589 #define SYS_SIGLIST_DECLARED 1
3596 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3597 echo "configure:3598: checking for struct utimbuf" >&5
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 #ifdef TIME_WITH_SYS_TIME
3602 #include <sys/time.h>
3605 #ifdef HAVE_SYS_TIME_H
3606 #include <sys/time.h>
3615 static struct utimbuf x; x.actime = x.modtime;
3618 if { (eval echo configure:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3620 echo "$ac_t""yes" 1>&6
3621 { test "$extra_verbose" = "yes" && cat << \EOF
3622 Defining HAVE_STRUCT_UTIMBUF
3624 cat >> confdefs.h <<\EOF
3625 #define HAVE_STRUCT_UTIMBUF 1
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 echo "$ac_t""no" 1>&6
3637 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3638 echo "configure:3639: checking return type of signal handlers" >&5
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 #include <sys/types.h>
3649 extern "C" void (*signal (int, void (*)(int)))(int);
3651 void (*signal ()) ();
3658 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3660 ac_cv_type_signal=void
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3665 ac_cv_type_signal=int
3669 echo "$ac_t""$ac_cv_type_signal" 1>&6
3670 { test "$extra_verbose" = "yes" && cat << EOF
3671 Defining RETSIGTYPE = $ac_cv_type_signal
3673 cat >> confdefs.h <<EOF
3674 #define RETSIGTYPE $ac_cv_type_signal
3679 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3680 echo "configure:3681: checking for size_t" >&5
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 #include <sys/types.h>
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3694 ac_cv_type_size_t=yes
3697 ac_cv_type_size_t=no
3701 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3702 if test $ac_cv_type_size_t = no; then
3703 { test "$extra_verbose" = "yes" && cat << \EOF
3704 Defining size_t = unsigned
3706 cat >> confdefs.h <<\EOF
3707 #define size_t unsigned
3713 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3714 echo "configure:3715: checking for pid_t" >&5
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 #include <sys/types.h>
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3728 ac_cv_type_pid_t=yes
3735 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3736 if test $ac_cv_type_pid_t = no; then
3737 { test "$extra_verbose" = "yes" && cat << \EOF
3738 Defining pid_t = int
3740 cat >> confdefs.h <<\EOF
3747 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3748 echo "configure:3749: checking for uid_t in sys/types.h" >&5
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 #include <sys/types.h>
3755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3756 egrep "uid_t" >/dev/null 2>&1; then
3758 ac_cv_type_uid_t=yes
3766 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3767 if test $ac_cv_type_uid_t = no; then
3768 { test "$extra_verbose" = "yes" && cat << \EOF
3769 Defining uid_t = int
3771 cat >> confdefs.h <<\EOF
3776 { test "$extra_verbose" = "yes" && cat << \EOF
3777 Defining gid_t = int
3779 cat >> confdefs.h <<\EOF
3786 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3787 echo "configure:3788: checking for mode_t" >&5
3789 cat > conftest.$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3792 #include <sys/types.h>
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3801 ac_cv_type_mode_t=yes
3804 ac_cv_type_mode_t=no
3808 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3809 if test $ac_cv_type_mode_t = no; then
3810 { test "$extra_verbose" = "yes" && cat << \EOF
3811 Defining mode_t = int
3813 cat >> confdefs.h <<\EOF
3820 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3821 echo "configure:3822: checking for off_t" >&5
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 #include <sys/types.h>
3832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3835 ac_cv_type_off_t=yes
3842 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3843 if test $ac_cv_type_off_t = no; then
3844 { test "$extra_verbose" = "yes" && cat << \EOF
3845 Defining off_t = long
3847 cat >> confdefs.h <<\EOF
3854 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3855 echo "configure:3856: checking for ssize_t" >&5
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 #include <sys/types.h>
3866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3867 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3869 ac_cv_type_ssize_t=yes
3872 ac_cv_type_ssize_t=no
3876 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3877 if test $ac_cv_type_ssize_t = no; then
3878 { test "$extra_verbose" = "yes" && cat << \EOF
3879 Defining ssize_t = int
3881 cat >> confdefs.h <<\EOF
3889 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3890 echo "configure:3891: checking for struct timeval" >&5
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 #ifdef TIME_WITH_SYS_TIME
3895 #include <sys/time.h>
3898 #ifdef HAVE_SYS_TIME_H
3899 #include <sys/time.h>
3905 static struct timeval x; x.tv_sec = x.tv_usec;
3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3910 echo "$ac_t""yes" 1>&6
3912 { test "$extra_verbose" = "yes" && cat << \EOF
3913 Defining HAVE_TIMEVAL
3915 cat >> confdefs.h <<\EOF
3916 #define HAVE_TIMEVAL 1
3921 echo "configure: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3924 echo "$ac_t""no" 1>&6
3929 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3930 echo "configure:3931: checking whether struct tm is in sys/time.h or time.h" >&5
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 #include <sys/types.h>
3938 struct tm *tp; tp->tm_sec;
3941 if { (eval echo configure:3942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3943 ac_cv_struct_tm=time.h
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 ac_cv_struct_tm=sys/time.h
3952 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3953 if test $ac_cv_struct_tm = sys/time.h; then
3954 { test "$extra_verbose" = "yes" && cat << \EOF
3955 Defining TM_IN_SYS_TIME
3957 cat >> confdefs.h <<\EOF
3958 #define TM_IN_SYS_TIME 1
3964 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3965 echo "configure:3966: checking for tm_zone in struct tm" >&5
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 #include <sys/types.h>
3971 #include <$ac_cv_struct_tm>
3973 struct tm tm; tm.tm_zone;
3976 if { (eval echo configure:3977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3978 ac_cv_struct_tm_zone=yes
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3983 ac_cv_struct_tm_zone=no
3987 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3988 if test "$ac_cv_struct_tm_zone" = yes; then
3989 { test "$extra_verbose" = "yes" && cat << \EOF
3990 Defining HAVE_TM_ZONE
3992 cat >> confdefs.h <<\EOF
3993 #define HAVE_TM_ZONE 1
3998 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3999 echo "configure:4000: checking for tzname" >&5
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4005 #ifndef tzname /* For SGI. */
4006 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4014 ac_cv_var_tzname=yes
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4023 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4024 if test $ac_cv_var_tzname = yes; then
4025 { test "$extra_verbose" = "yes" && cat << \EOF
4026 Defining HAVE_TZNAME
4028 cat >> confdefs.h <<\EOF
4029 #define HAVE_TZNAME 1
4037 echo $ac_n "checking for working const""... $ac_c" 1>&6
4038 echo "configure:4039: checking for working const" >&5
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4046 /* Ultrix mips cc rejects this. */
4047 typedef int charset[2]; const charset x;
4048 /* SunOS 4.1.1 cc rejects this. */
4049 char const *const *ccp;
4051 /* NEC SVR4.0.2 mips cc rejects this. */
4052 struct point {int x, y;};
4053 static struct point const zero = {0,0};
4054 /* AIX XL C 1.02.0.0 rejects this.
4055 It does not let you subtract one const X* pointer from another in an arm
4056 of an if-expression whose if-part is not a constant expression */
4057 const char *g = "string";
4058 ccp = &g + (g ? g-g : 0);
4059 /* HPUX 7.0 cc rejects these. */
4062 ccp = (char const *const *) p;
4063 { /* SCO 3.2v4 cc rejects this. */
4065 char const *s = 0 ? (char *) 0 : (char const *) 0;
4069 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4071 const int *foo = &x[0];
4074 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4075 typedef const int *iptr;
4079 { /* AIX XL C 1.02.0.0 rejects this saying
4080 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4081 struct s { int j; const int *ap[3]; };
4082 struct s *b; b->j = 5;
4084 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4090 if { (eval echo configure:4091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4101 echo "$ac_t""$ac_cv_c_const" 1>&6
4102 if test $ac_cv_c_const = no; then
4103 { test "$extra_verbose" = "yes" && cat << \EOF
4106 cat >> confdefs.h <<\EOF
4114 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4115 echo "configure:4116: checking whether ${MAKE-make} sets \${MAKE}" >&5
4116 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4118 cat > conftestmake <<\EOF
4120 @echo 'ac_maketemp="${MAKE}"'
4122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4123 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4124 if test -n "$ac_maketemp"; then
4125 eval ac_cv_prog_make_${ac_make}_set=yes
4127 eval ac_cv_prog_make_${ac_make}_set=no
4130 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4134 echo "$ac_t""no" 1>&6
4135 SET_MAKE="MAKE=${MAKE-make}"
4139 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4140 echo "configure:4141: checking whether byte ordering is bigendian" >&5
4142 ac_cv_c_bigendian=unknown
4143 # See if sys/param.h defines the BYTE_ORDER macro.
4144 cat > conftest.$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4147 #include <sys/types.h>
4148 #include <sys/param.h>
4151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4156 if { (eval echo configure:4157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4158 # It does; now see whether it defined to BIG_ENDIAN or not.
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 #include <sys/types.h>
4163 #include <sys/param.h>
4166 #if BYTE_ORDER != BIG_ENDIAN
4171 if { (eval echo configure:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4173 ac_cv_c_bigendian=yes
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 ac_cv_c_bigendian=no
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4186 if test $ac_cv_c_bigendian = unknown; then
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4191 /* Are we little or big endian? From Harbison&Steele. */
4195 char c[sizeof (long)];
4198 exit (u.c[sizeof (long) - 1] == 1);
4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4203 ac_cv_c_bigendian=no
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4209 ac_cv_c_bigendian=yes
4214 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4215 if test $ac_cv_c_bigendian = yes; then
4216 { test "$extra_verbose" = "yes" && cat << \EOF
4217 Defining WORDS_BIGENDIAN
4219 cat >> confdefs.h <<\EOF
4220 #define WORDS_BIGENDIAN 1
4227 echo $ac_n "checking size of short""... $ac_c" 1>&6
4228 echo "configure:4229: checking size of short" >&5
4230 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4236 FILE *f=fopen("conftestval", "w");
4238 fprintf(f, "%d\n", sizeof(short));
4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4244 ac_cv_sizeof_short=`cat conftestval`
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4250 ac_cv_sizeof_short=0
4253 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4254 { test "$extra_verbose" = "yes" && cat << EOF
4255 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4257 cat >> confdefs.h <<EOF
4258 #define SIZEOF_SHORT $ac_cv_sizeof_short
4263 if test "$ac_cv_sizeof_short" = 0; then
4265 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4266 echo "*** PANIC *** Please examine config.log for compilation errors."
4269 echo $ac_n "checking size of int""... $ac_c" 1>&6
4270 echo "configure:4271: checking size of int" >&5
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4278 FILE *f=fopen("conftestval", "w");
4280 fprintf(f, "%d\n", sizeof(int));
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4286 ac_cv_sizeof_int=`cat conftestval`
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4295 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4296 { test "$extra_verbose" = "yes" && cat << EOF
4297 Defining SIZEOF_INT = $ac_cv_sizeof_int
4299 cat >> confdefs.h <<EOF
4300 #define SIZEOF_INT $ac_cv_sizeof_int
4305 echo $ac_n "checking size of long""... $ac_c" 1>&6
4306 echo "configure:4307: checking size of long" >&5
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4314 FILE *f=fopen("conftestval", "w");
4316 fprintf(f, "%d\n", sizeof(long));
4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4322 ac_cv_sizeof_long=`cat conftestval`
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4331 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4332 { test "$extra_verbose" = "yes" && cat << EOF
4333 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4335 cat >> confdefs.h <<EOF
4336 #define SIZEOF_LONG $ac_cv_sizeof_long
4341 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4342 echo "configure:4343: checking size of long long" >&5
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4350 FILE *f=fopen("conftestval", "w");
4352 fprintf(f, "%d\n", sizeof(long long));
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_sizeof_long_long=`cat conftestval`
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4364 ac_cv_sizeof_long_long=0
4367 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4368 { test "$extra_verbose" = "yes" && cat << EOF
4369 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4371 cat >> confdefs.h <<EOF
4372 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4377 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4378 echo "configure:4379: checking size of void *" >&5
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4386 FILE *f=fopen("conftestval", "w");
4388 fprintf(f, "%d\n", sizeof(void *));
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4394 ac_cv_sizeof_void_p=`cat conftestval`
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 ac_cv_sizeof_void_p=0
4403 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4404 { test "$extra_verbose" = "yes" && cat << EOF
4405 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4407 cat >> confdefs.h <<EOF
4408 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4414 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4415 echo "configure:4416: checking for long file names" >&5
4417 ac_cv_sys_long_file_names=yes
4418 # Test for long file names in all the places we know might matter:
4419 # . the current directory, where building will happen
4420 # $prefix/lib where we will be installing things
4421 # $exec_prefix/lib likewise
4422 # eval it to expand exec_prefix.
4423 # $TMPDIR if set, where it might want to write temporary files
4424 # if $TMPDIR is not set:
4425 # /tmp where it might want to write temporary files
4428 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4429 ac_tmpdirs="$TMPDIR"
4431 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4433 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4434 test -d $ac_dir || continue
4435 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4436 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4437 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4438 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4439 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4440 ac_cv_sys_long_file_names=no
4441 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4444 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4447 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4448 if test $ac_cv_sys_long_file_names = yes; then
4449 { test "$extra_verbose" = "yes" && cat << \EOF
4450 Defining HAVE_LONG_FILE_NAMES
4452 cat >> confdefs.h <<\EOF
4453 #define HAVE_LONG_FILE_NAMES 1
4460 echo $ac_n "checking for sin""... $ac_c" 1>&6
4461 echo "configure:4462: checking for sin" >&5
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 /* System header to define __stub macros and hopefully few prototypes,
4467 which can conflict with char sin(); below. */
4469 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4476 /* The GNU C library defines this for functions which it implements
4477 to always fail with ENOSYS. Some functions are actually named
4478 something starting with __ and the normal name is an alias. */
4479 #if defined (__stub_sin) || defined (__stub___sin)
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4489 eval "ac_cv_func_sin=yes"
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4494 eval "ac_cv_func_sin=no"
4498 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4502 echo "$ac_t""no" 1>&6
4504 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4505 echo "configure:4506: checking for sin in -lm" >&5
4506 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4508 xe_check_libs=" -lm "
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 /* Override any gcc2 internal prototype to avoid an error. */
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4523 eval "ac_cv_lib_$ac_lib_var=yes"
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4528 eval "ac_cv_lib_$ac_lib_var=no"
4533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4534 echo "$ac_t""yes" 1>&6
4535 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4537 { test "$extra_verbose" = "yes" && cat << EOF
4540 cat >> confdefs.h <<EOF
4541 #define $ac_tr_lib 1
4545 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4548 echo "$ac_t""no" 1>&6
4555 { test "$extra_verbose" = "yes" && cat << \EOF
4556 Defining LISP_FLOAT_TYPE
4558 cat >> confdefs.h <<\EOF
4559 #define LISP_FLOAT_TYPE 1
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4569 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4574 { test "$extra_verbose" = "yes" && cat << \EOF
4575 Defining HAVE_INVERSE_HYPERBOLIC
4577 cat >> confdefs.h <<\EOF
4578 #define HAVE_INVERSE_HYPERBOLIC 1
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4588 echo "checking type of mail spool file locking" 1>&6
4589 echo "configure:4590: checking type of mail spool file locking" >&5
4590 for ac_func in lockf flock
4592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4593 echo "configure:4594: checking for $ac_func" >&5
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 /* System header to define __stub macros and hopefully few prototypes,
4599 which can conflict with char $ac_func(); below. */
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 /* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4608 /* The GNU C library defines this for functions which it implements
4609 to always fail with ENOSYS. Some functions are actually named
4610 something starting with __ and the normal name is an alias. */
4611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4621 eval "ac_cv_func_$ac_func=yes"
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4626 eval "ac_cv_func_$ac_func=no"
4630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4631 echo "$ac_t""yes" 1>&6
4632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4633 { test "$extra_verbose" = "yes" && cat << EOF
4634 Defining $ac_tr_func
4636 cat >> confdefs.h <<EOF
4637 #define $ac_tr_func 1
4642 echo "$ac_t""no" 1>&6
4646 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4647 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4648 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4649 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4650 Defining MAIL_LOCK_LOCKF
4652 cat >> confdefs.h <<\EOF
4653 #define MAIL_LOCK_LOCKF 1
4657 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4658 Defining MAIL_LOCK_FLOCK
4660 cat >> confdefs.h <<\EOF
4661 #define MAIL_LOCK_FLOCK 1
4665 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4666 Defining MAIL_LOCK_LOCKING
4668 cat >> confdefs.h <<\EOF
4669 #define MAIL_LOCK_LOCKING 1
4673 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4674 Defining MAIL_LOCK_DOT
4676 cat >> confdefs.h <<\EOF
4677 #define MAIL_LOCK_DOT 1
4682 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4683 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4684 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4685 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4686 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4687 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4689 case "$opsys" in decosf*)
4691 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4692 echo "configure:4693: checking for cma_open in -lpthreads" >&5
4693 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4695 xe_check_libs=" -lpthreads "
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 /* Override any gcc2 internal prototype to avoid an error. */
4700 /* We use char because int might match the return type of a gcc2
4701 builtin and then its argument prototype would still apply. */
4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4710 eval "ac_cv_lib_$ac_lib_var=yes"
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4715 eval "ac_cv_lib_$ac_lib_var=no"
4720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4721 echo "$ac_t""yes" 1>&6
4722 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4724 { test "$extra_verbose" = "yes" && cat << EOF
4727 cat >> confdefs.h <<EOF
4728 #define $ac_tr_lib 1
4732 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4735 echo "$ac_t""no" 1>&6
4739 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4740 c_switch_site="$c_switch_site -threads" ;;
4743 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4744 echo "configure:4745: checking whether the -xildoff compiler flag is required" >&5
4745 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4746 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4747 then echo "$ac_t""no" 1>&6;
4748 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
4750 else echo "$ac_t""no" 1>&6
4753 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4754 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4755 echo "configure:4756: checking for \"-z ignore\" linker flag" >&5
4756 case "`ld -h 2>&1`" in
4757 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4758 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4759 *) echo "$ac_t""no" 1>&6 ;;
4764 echo "checking "for specified window system"" 1>&6
4765 echo "configure:4766: checking "for specified window system"" >&5
4767 if test "$with_x11" != "no"; then
4768 test "$x_includes $x_libraries" != "NONE NONE" && \
4769 window_system=x11 with_x11=yes
4772 if test "$x_includes $x_libraries" = "NONE NONE" \
4773 -a -n "$OPENWINHOME" \
4774 -a "$OPENWINHOME" != "/usr/openwin" \
4775 -a -d "$OPENWINHOME"; then
4776 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4777 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4778 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4781 if test "$x_includes" = "NONE"; then
4782 for dir in "/usr/X11" "/usr/X11R6"; do
4783 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4787 if test "$x_libraries" = "NONE"; then
4788 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4789 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4793 # If we find X, set shell vars x_includes and x_libraries to the
4794 # paths, otherwise set no_x=yes.
4795 # Uses ac_ vars as temps to allow command line to override cache and checks.
4796 # --without-x overrides everything else, but does not touch the cache.
4797 echo $ac_n "checking for X""... $ac_c" 1>&6
4798 echo "configure:4799: checking for X" >&5
4800 # Check whether --with-x or --without-x was given.
4801 if test "${with_x+set}" = set; then
4806 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4807 if test "x$with_x" = xno; then
4808 # The user explicitly disabled X.
4811 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4812 # Both variables are already set.
4816 # One or both of the vars are not set, and there is no cached value.
4817 ac_x_includes=NO ac_x_libraries=NO
4819 if mkdir conftestdir; then
4821 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4822 cat > Imakefile <<'EOF'
4824 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4826 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4828 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4829 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4830 for ac_extension in a so sl; do
4831 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4832 test -f $ac_im_libdir/libX11.$ac_extension; then
4833 ac_im_usrlibdir=$ac_im_libdir; break
4836 # Screen out bogus values from the imake configuration. They are
4837 # bogus both because they are the default anyway, and because
4838 # using them would break gcc on systems where it needs fixed includes.
4839 case "$ac_im_incroot" in
4841 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4843 case "$ac_im_usrlibdir" in
4845 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4852 if test "$ac_x_includes" = NO; then
4853 # Guess where to find include files, by looking for this one X11 .h file.
4854 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4856 # First, try using that file with no special directory specified.
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 #include <$x_direct_test_include>
4862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4863 { (eval echo configure:4864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4865 if test -z "$ac_err"; then
4867 # We can compile using X headers with no special include directory.
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4874 # Look for the header file in a standard set of common directories.
4875 # Check X11 before X11Rn because it is often a symlink to the current release.
4878 /usr/X11R6/include \
4879 /usr/X11R5/include \
4880 /usr/X11R4/include \
4883 /usr/include/X11R6 \
4884 /usr/include/X11R5 \
4885 /usr/include/X11R4 \
4887 /usr/local/X11/include \
4888 /usr/local/X11R6/include \
4889 /usr/local/X11R5/include \
4890 /usr/local/X11R4/include \
4892 /usr/local/include/X11 \
4893 /usr/local/include/X11R6 \
4894 /usr/local/include/X11R5 \
4895 /usr/local/include/X11R4 \
4899 /usr/XFree86/include/X11 \
4902 /usr/local/include \
4903 /usr/unsupported/include \
4904 /usr/athena/include \
4905 /usr/local/x11r5/include \
4906 /usr/lpp/Xamples/include \
4908 /usr/openwin/include \
4909 /usr/openwin/share/include \
4912 if test -r "$ac_dir/$x_direct_test_include"; then
4913 ac_x_includes=$ac_dir
4919 fi # $ac_x_includes = NO
4921 if test "$ac_x_libraries" = NO; then
4922 # Check for the libraries.
4924 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4925 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4927 # See if we find them without any special options.
4928 # Don't add to $LIBS permanently.
4929 ac_save_LIBS="$LIBS"
4930 LIBS="-l$x_direct_test_library $LIBS"
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4936 ${x_direct_test_function}()
4939 if { (eval echo configure:4940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4941 LIBS="$ac_save_LIBS"
4942 # We can link X programs with no special library path.
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4948 LIBS="$ac_save_LIBS"
4949 # First see if replacing the include by lib works.
4950 # Check X11 before X11Rn because it is often a symlink to the current release.
4951 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4962 /usr/local/X11/lib \
4963 /usr/local/X11R6/lib \
4964 /usr/local/X11R5/lib \
4965 /usr/local/X11R4/lib \
4967 /usr/local/lib/X11 \
4968 /usr/local/lib/X11R6 \
4969 /usr/local/lib/X11R5 \
4970 /usr/local/lib/X11R4 \
4974 /usr/XFree86/lib/X11 \
4978 /usr/unsupported/lib \
4980 /usr/local/x11r5/lib \
4981 /usr/lpp/Xamples/lib \
4985 /usr/openwin/share/lib \
4988 for ac_extension in a so sl; do
4989 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4990 ac_x_libraries=$ac_dir
4997 fi # $ac_x_libraries = NO
4999 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5000 # Didn't find X anywhere. Cache the known absence of X.
5001 ac_cv_have_x="have_x=no"
5003 # Record where we found X for the cache.
5004 ac_cv_have_x="have_x=yes \
5005 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5008 eval "$ac_cv_have_x"
5011 if test "$have_x" != yes; then
5012 echo "$ac_t""$have_x" 1>&6
5015 # If each of the values was on the command line, it overrides each guess.
5016 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5017 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5018 # Update the cache value to reflect the command line values.
5019 ac_cv_have_x="have_x=yes \
5020 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5021 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5024 if test "$no_x" = yes; then
5025 # Not all programs may use this symbol, but it does not hurt to define it.
5026 { test "$extra_verbose" = "yes" && cat << \EOF
5027 Defining X_DISPLAY_MISSING
5029 cat >> confdefs.h <<\EOF
5030 #define X_DISPLAY_MISSING 1
5034 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5036 if test -n "$x_includes"; then
5037 X_CFLAGS="$X_CFLAGS -I$x_includes"
5040 # It would also be nice to do this for all -L options, not just this one.
5041 if test -n "$x_libraries"; then
5042 X_LIBS="$X_LIBS -L$x_libraries"
5043 # For Solaris; some versions of Sun CC require a space after -R and
5044 # others require no space. Words are not sufficient . . . .
5045 case "`(uname -sr) 2>/dev/null`" in
5047 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5048 echo "configure:5049: checking whether -R must be followed by a space" >&5
5049 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5050 cat > conftest.$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5058 if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5068 if test $ac_R_nospace = yes; then
5069 echo "$ac_t""no" 1>&6
5070 X_LIBS="$X_LIBS -R$x_libraries"
5072 LIBS="$ac_xsave_LIBS -R $x_libraries"
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5081 if { (eval echo configure:5082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5085 echo "configure: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5091 if test $ac_R_space = yes; then
5092 echo "$ac_t""yes" 1>&6
5093 X_LIBS="$X_LIBS -R $x_libraries"
5095 echo "$ac_t""neither works" 1>&6
5098 LIBS="$ac_xsave_LIBS"
5102 # Check for system-dependent libraries X programs must link with.
5103 # Do this before checking for the system-independent R6 libraries
5104 # (-lICE), since we may need -lsocket or whatever for X linking.
5106 if test "$ISC" = yes; then
5107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5109 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5110 # libraries were built with DECnet support. And karl@cs.umb.edu says
5111 # the Alpha needs dnet_stub (dnet does not exist).
5112 if test "$with_dnet" = "no" ; then
5113 ac_cv_lib_dnet_dnet_ntoa=no
5116 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5117 echo "configure:5118: checking for dnet_ntoa in -ldnet" >&5
5118 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5120 xe_check_libs=" -ldnet "
5121 cat > conftest.$ac_ext <<EOF
5122 #line 5123 "configure"
5123 #include "confdefs.h"
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5133 if { (eval echo configure:5134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5135 eval "ac_cv_lib_$ac_lib_var=yes"
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5140 eval "ac_cv_lib_$ac_lib_var=no"
5145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5146 echo "$ac_t""yes" 1>&6
5147 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5149 echo "$ac_t""no" 1>&6
5154 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5156 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5157 echo "configure:5158: checking for dnet_ntoa in -ldnet_stub" >&5
5158 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5160 xe_check_libs=" -ldnet_stub "
5161 cat > conftest.$ac_ext <<EOF
5162 #line 5163 "configure"
5163 #include "confdefs.h"
5164 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 eval "ac_cv_lib_$ac_lib_var=yes"
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5180 eval "ac_cv_lib_$ac_lib_var=no"
5185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5186 echo "$ac_t""yes" 1>&6
5187 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5189 echo "$ac_t""no" 1>&6
5195 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5196 # to get the SysV transport functions.
5197 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5199 # The nsl library prevents programs from opening the X display
5200 # on Irix 5.2, according to dickey@clark.net.
5201 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5202 echo "configure:5203: checking for gethostbyname" >&5
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 /* System header to define __stub macros and hopefully few prototypes,
5208 which can conflict with char gethostbyname(); below. */
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5213 char gethostbyname();
5217 /* The GNU C library defines this for functions which it implements
5218 to always fail with ENOSYS. Some functions are actually named
5219 something starting with __ and the normal name is an alias. */
5220 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5230 eval "ac_cv_func_gethostbyname=yes"
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5235 eval "ac_cv_func_gethostbyname=no"
5239 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5240 echo "$ac_t""yes" 1>&6
5243 echo "$ac_t""no" 1>&6
5246 if test $ac_cv_func_gethostbyname = no; then
5248 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5249 echo "configure:5250: checking for gethostbyname in -lnsl" >&5
5250 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5252 xe_check_libs=" -lnsl "
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 /* Override any gcc2 internal prototype to avoid an error. */
5257 /* We use char because int might match the return type of a gcc2
5258 builtin and then its argument prototype would still apply. */
5259 char gethostbyname();
5265 if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5267 eval "ac_cv_lib_$ac_lib_var=yes"
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5272 eval "ac_cv_lib_$ac_lib_var=no"
5277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5278 echo "$ac_t""yes" 1>&6
5279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5281 echo "$ac_t""no" 1>&6
5287 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5288 # socket/setsockopt and other routines are undefined under SCO ODT
5289 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5290 # on later versions), says simon@lia.di.epfl.ch: it contains
5291 # gethostby* variants that don't use the nameserver (or something).
5292 # -lsocket must be given before -lnsl if both are needed.
5293 # We assume that if connect needs -lnsl, so does gethostbyname.
5294 echo $ac_n "checking for connect""... $ac_c" 1>&6
5295 echo "configure:5296: checking for connect" >&5
5297 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5300 /* System header to define __stub macros and hopefully few prototypes,
5301 which can conflict with char connect(); below. */
5303 /* Override any gcc2 internal prototype to avoid an error. */
5304 /* We use char because int might match the return type of a gcc2
5305 builtin and then its argument prototype would still apply. */
5310 /* The GNU C library defines this for functions which it implements
5311 to always fail with ENOSYS. Some functions are actually named
5312 something starting with __ and the normal name is an alias. */
5313 #if defined (__stub_connect) || defined (__stub___connect)
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 eval "ac_cv_func_connect=yes"
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5328 eval "ac_cv_func_connect=no"
5332 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5333 echo "$ac_t""yes" 1>&6
5336 echo "$ac_t""no" 1>&6
5339 if test $ac_cv_func_connect = no; then
5341 xe_msg_checking="for connect in -lsocket"
5342 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5343 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5344 echo "configure:5345: checking "$xe_msg_checking"" >&5
5345 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5347 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5351 /* Override any gcc2 internal prototype to avoid an error. */
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 eval "ac_cv_lib_$ac_lib_var=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 eval "ac_cv_lib_$ac_lib_var=no"
5372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5373 echo "$ac_t""yes" 1>&6
5374 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5376 echo "$ac_t""no" 1>&6
5382 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5383 echo $ac_n "checking for remove""... $ac_c" 1>&6
5384 echo "configure:5385: checking for remove" >&5
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5389 /* System header to define __stub macros and hopefully few prototypes,
5390 which can conflict with char remove(); below. */
5392 /* Override any gcc2 internal prototype to avoid an error. */
5393 /* We use char because int might match the return type of a gcc2
5394 builtin and then its argument prototype would still apply. */
5399 /* The GNU C library defines this for functions which it implements
5400 to always fail with ENOSYS. Some functions are actually named
5401 something starting with __ and the normal name is an alias. */
5402 #if defined (__stub_remove) || defined (__stub___remove)
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 eval "ac_cv_func_remove=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_func_remove=no"
5421 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5422 echo "$ac_t""yes" 1>&6
5425 echo "$ac_t""no" 1>&6
5428 if test $ac_cv_func_remove = no; then
5430 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5431 echo "configure:5432: checking for remove in -lposix" >&5
5432 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5434 xe_check_libs=" -lposix "
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449 eval "ac_cv_lib_$ac_lib_var=yes"
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5454 eval "ac_cv_lib_$ac_lib_var=no"
5459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5460 echo "$ac_t""yes" 1>&6
5461 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5463 echo "$ac_t""no" 1>&6
5469 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5470 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5471 echo "configure:5472: checking for shmat" >&5
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 /* System header to define __stub macros and hopefully few prototypes,
5477 which can conflict with char shmat(); below. */
5479 /* Override any gcc2 internal prototype to avoid an error. */
5480 /* We use char because int might match the return type of a gcc2
5481 builtin and then its argument prototype would still apply. */
5486 /* The GNU C library defines this for functions which it implements
5487 to always fail with ENOSYS. Some functions are actually named
5488 something starting with __ and the normal name is an alias. */
5489 #if defined (__stub_shmat) || defined (__stub___shmat)
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5499 eval "ac_cv_func_shmat=yes"
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5504 eval "ac_cv_func_shmat=no"
5508 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5509 echo "$ac_t""yes" 1>&6
5512 echo "$ac_t""no" 1>&6
5515 if test $ac_cv_func_shmat = no; then
5517 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5518 echo "configure:5519: checking for shmat in -lipc" >&5
5519 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5521 xe_check_libs=" -lipc "
5522 cat > conftest.$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5525 /* Override any gcc2 internal prototype to avoid an error. */
5526 /* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5536 eval "ac_cv_lib_$ac_lib_var=yes"
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5541 eval "ac_cv_lib_$ac_lib_var=no"
5546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5547 echo "$ac_t""yes" 1>&6
5548 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5550 echo "$ac_t""no" 1>&6
5557 # Check for libraries that X11R6 Xt/Xaw programs need.
5558 ac_save_LDFLAGS="$LDFLAGS"
5559 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5560 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5561 # check for ICE first), but we must link in the order -lSM -lICE or
5562 # we get undefined symbols. So assume we have SM if we have ICE.
5563 # These have to be linked with before -lX11, unlike the other
5564 # libraries we check for below, so use a different variable.
5565 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5567 xe_msg_checking="for IceConnectionNumber in -lICE"
5568 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5569 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5570 echo "configure:5571: checking "$xe_msg_checking"" >&5
5571 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5573 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5577 /* Override any gcc2 internal prototype to avoid an error. */
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5580 char IceConnectionNumber();
5583 IceConnectionNumber()
5586 if { (eval echo configure:5587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5588 eval "ac_cv_lib_$ac_lib_var=yes"
5590 echo "configure: failed program was:" >&5
5591 cat conftest.$ac_ext >&5
5593 eval "ac_cv_lib_$ac_lib_var=no"
5598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5599 echo "$ac_t""yes" 1>&6
5600 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5602 echo "$ac_t""no" 1>&6
5606 LDFLAGS="$ac_save_LDFLAGS"
5609 # Autoconf claims to find X library and include dirs for us.
5610 if test "$no_x" = "yes"
5611 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5612 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5617 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5618 no ) window_system=none HAVE_X_WINDOWS=no ;;
5621 if test "$with_x11" = "yes"; then
5622 { test "$extra_verbose" = "yes" && cat << \EOF
5623 Defining HAVE_X_WINDOWS
5625 cat >> confdefs.h <<\EOF
5626 #define HAVE_X_WINDOWS 1
5630 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5631 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5633 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5634 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5635 if test -d "$lib_dir" -a -d "$inc_dir"; then
5636 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5637 x_libraries="$lib_dir $x_libraries"
5638 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5640 case "$x_includes" in "$inc_dir"* ) ;; *)
5641 x_includes="$inc_dir $x_includes"
5642 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5647 for rel in "X11R6" "X11R5" "X11R4"; do
5648 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5649 if test -d "$lib_dir" -a -d "$inc_dir"; then
5650 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5651 x_libraries="$x_libraries $lib_dir"
5652 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5654 case "$x_includes" in "$inc_dir"* ) ;; *)
5655 x_includes="$x_includes $inc_dir"
5656 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5661 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
5663 ld_switch_x_site="$X_LIBS"
5666 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5667 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5668 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5670 runpath="" runpath_dirs=""
5671 if test -n "$LD_RUN_PATH"; then
5672 runpath="$LD_RUN_PATH"
5673 elif test "$GCC" = "yes"; then
5674 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5675 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5676 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5677 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5678 case "$arg" in P,* | -L* | -R* )
5679 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5681 xe_runpath_dir="$dir"
5682 test "$xe_runpath_dir" != "/lib" -a \
5683 "$xe_runpath_dir" != "/usr/lib" -a \
5684 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5685 eval "$xe_add_unique_runpath_dir"
5690 ld_switch_run="$ld_switch_run_save"
5693 for arg in $ld_switch_site $ld_switch_x_site; do
5694 case "$arg" in -L*) {
5695 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5696 test "$xe_runpath_dir" != "/lib" -a \
5697 "$xe_runpath_dir" != "/usr/lib" -a \
5698 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5699 eval "$xe_add_unique_runpath_dir"
5702 if test "$opsys $need_motif" = "sol2 yes"; then
5703 xe_runpath_dir="/opt/SUNWdt/lib";
5704 eval "$xe_add_unique_runpath_dir";
5707 if test -n "$runpath"; then
5708 ld_switch_run="${dash_r}${runpath}"
5710 if test "$GCC" = "yes"; then
5711 set x $ld_switch_run; shift; ld_switch_run=""
5712 while test -n "$1"; do
5714 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5715 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5717 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5722 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5727 if test "$extra_verbose" = "yes"; then
5728 echo; echo "X11 compilation variables:"
5729 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5734 if test "$x_includes" != NONE; then
5735 for i in $x_includes; do
5736 if test -d "$i/bitmaps"; then
5737 bitmapdirs="$i/bitmaps:$bitmapdirs"
5739 if test -d "$i/X11/bitmaps"; then
5740 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5743 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5745 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5746 Defining BITMAPDIR = "$bitmapdirs"
5748 cat >> confdefs.h <<EOF
5749 #define BITMAPDIR "$bitmapdirs"
5754 echo "checking for X defines extracted by xmkmf" 1>&6
5755 echo "configure:5756: checking for X defines extracted by xmkmf" >&5
5757 if mkdir conftestdir; then
5759 cat > Imakefile <<'EOF'
5761 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5763 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5764 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5765 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5769 for word in $xmkmf_defines; do
5772 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5773 { test "$extra_verbose" = "yes" && cat << EOF
5776 cat >> confdefs.h <<EOF
5785 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5786 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5787 echo "configure:5788: checking for X11/Intrinsic.h" >&5
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5792 #include <X11/Intrinsic.h>
5794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5795 { (eval echo configure:5796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5797 if test -z "$ac_err"; then
5799 eval "ac_cv_header_$ac_safe=yes"
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5805 eval "ac_cv_header_$ac_safe=no"
5808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5809 echo "$ac_t""yes" 1>&6
5812 echo "$ac_t""no" 1>&6
5813 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5818 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5819 echo "configure:5820: checking for XOpenDisplay in -lX11" >&5
5820 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5822 xe_check_libs=" -lX11 "
5823 cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5826 /* Override any gcc2 internal prototype to avoid an error. */
5827 /* We use char because int might match the return type of a gcc2
5828 builtin and then its argument prototype would still apply. */
5829 char XOpenDisplay();
5835 if { (eval echo configure:5836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5837 eval "ac_cv_lib_$ac_lib_var=yes"
5839 echo "configure: failed program was:" >&5
5840 cat conftest.$ac_ext >&5
5842 eval "ac_cv_lib_$ac_lib_var=no"
5847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5848 echo "$ac_t""yes" 1>&6
5851 echo "$ac_t""no" 1>&6
5855 if test "$have_lib_x11" != "yes"; then
5857 xe_msg_checking="for XGetFontProperty in -lX11"
5858 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5859 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5860 echo "configure:5861: checking "$xe_msg_checking"" >&5
5861 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5863 xe_check_libs=" -lX11 -b i486-linuxaout"
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5867 /* Override any gcc2 internal prototype to avoid an error. */
5868 /* We use char because int might match the return type of a gcc2
5869 builtin and then its argument prototype would still apply. */
5870 char XGetFontProperty();
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5878 eval "ac_cv_lib_$ac_lib_var=yes"
5880 echo "configure: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5883 eval "ac_cv_lib_$ac_lib_var=no"
5888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5889 echo "$ac_t""yes" 1>&6
5890 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5892 echo "$ac_t""no" 1>&6
5893 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5899 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5902 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5903 echo "configure:5904: checking for XShapeSelectInput in -lXext" >&5
5904 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5906 xe_check_libs=" -lXext "
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5910 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5913 char XShapeSelectInput();
5919 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5921 eval "ac_cv_lib_$ac_lib_var=yes"
5923 echo "configure: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5926 eval "ac_cv_lib_$ac_lib_var=no"
5931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5932 echo "$ac_t""yes" 1>&6
5933 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5935 echo "$ac_t""no" 1>&6
5941 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5942 echo "configure:5943: checking for XtOpenDisplay in -lXt" >&5
5943 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5945 xe_check_libs=" -lXt "
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5952 char XtOpenDisplay();
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 eval "ac_cv_lib_$ac_lib_var=yes"
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5965 eval "ac_cv_lib_$ac_lib_var=no"
5970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5971 echo "$ac_t""yes" 1>&6
5972 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5974 echo "$ac_t""no" 1>&6
5975 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5980 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5981 echo "configure:5982: checking the version of X11 being used" >&5
5982 cat > conftest.$ac_ext <<EOF
5983 #line 5984 "configure"
5984 #include "confdefs.h"
5985 #include <X11/Intrinsic.h>
5986 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5988 if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5990 ./conftest foobar; x11_release=$?
5993 echo "configure: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5999 echo "$ac_t""R${x11_release}" 1>&6
6000 { test "$extra_verbose" = "yes" && cat << EOF
6001 Defining THIS_IS_X11R${x11_release}
6003 cat >> confdefs.h <<EOF
6004 #define THIS_IS_X11R${x11_release} 1
6009 for ac_hdr in X11/Xlocale.h
6011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6013 echo "configure:6014: checking for $ac_hdr" >&5
6015 cat > conftest.$ac_ext <<EOF
6016 #line 6017 "configure"
6017 #include "confdefs.h"
6020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6021 { (eval echo configure:6022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6023 if test -z "$ac_err"; then
6025 eval "ac_cv_header_$ac_safe=yes"
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 eval "ac_cv_header_$ac_safe=no"
6034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6035 echo "$ac_t""yes" 1>&6
6036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6037 { test "$extra_verbose" = "yes" && cat << EOF
6040 cat >> confdefs.h <<EOF
6041 #define $ac_tr_hdr 1
6046 echo "$ac_t""no" 1>&6
6051 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6052 echo "configure:6053: checking for XFree86" >&5
6053 if test -d "/usr/X386/include" -o \
6054 -f "/etc/XF86Config" -o \
6055 -f "/etc/X11/XF86Config" -o \
6056 -f "/usr/X11R6/lib/X11/XF86Config"; then
6057 echo "$ac_t""yes" 1>&6
6058 { test "$extra_verbose" = "yes" && cat << \EOF
6059 Defining HAVE_XFREE386
6061 cat >> confdefs.h <<\EOF
6062 #define HAVE_XFREE386 1
6067 echo "$ac_t""no" 1>&6
6070 test -z "$with_xmu" && {
6071 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6072 echo "configure:6073: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6073 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6075 xe_check_libs=" -lXmu "
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6082 char XmuReadBitmapDataFromFile();
6085 XmuReadBitmapDataFromFile()
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6090 eval "ac_cv_lib_$ac_lib_var=yes"
6092 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5
6095 eval "ac_cv_lib_$ac_lib_var=no"
6100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6101 echo "$ac_t""yes" 1>&6
6104 echo "$ac_t""no" 1>&6
6109 if test "$with_xmu" = "no"; then
6110 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6111 echo " xemacs will be linked with \"xmu.o\""
6114 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6115 { test "$extra_verbose" = "yes" && cat << \EOF
6118 cat >> confdefs.h <<\EOF
6126 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6127 echo "configure:6128: checking for main in -lXbsd" >&5
6128 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6130 xe_check_libs=" -lXbsd "
6131 cat > conftest.$ac_ext <<EOF
6132 #line 6133 "configure"
6133 #include "confdefs.h"
6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6141 eval "ac_cv_lib_$ac_lib_var=yes"
6143 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6146 eval "ac_cv_lib_$ac_lib_var=no"
6151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6152 echo "$ac_t""yes" 1>&6
6153 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6155 echo "$ac_t""no" 1>&6
6160 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6161 if test "$GCC" = "yes"; then
6162 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6163 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6166 "xlc" ) CC="xlc_r" ;;
6167 "xlC" ) CC="xlC_r" ;;
6174 if test "$with_msw" != "no"; then
6175 echo "checking for MS-Windows" 1>&6
6176 echo "configure:6177: checking for MS-Windows" >&5
6178 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6179 echo "configure:6180: checking for main in -lgdi32" >&5
6180 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6182 xe_check_libs=" -lgdi32 "
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6191 if { (eval echo configure:6192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6193 eval "ac_cv_lib_$ac_lib_var=yes"
6195 echo "configure: failed program was:" >&5
6196 cat conftest.$ac_ext >&5
6198 eval "ac_cv_lib_$ac_lib_var=no"
6203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6204 echo "$ac_t""yes" 1>&6
6207 echo "$ac_t""no" 1>&6
6211 if test "$with_msw" = "yes"; then
6212 { test "$extra_verbose" = "yes" && cat << \EOF
6213 Defining HAVE_MS_WINDOWS
6215 cat >> confdefs.h <<\EOF
6216 #define HAVE_MS_WINDOWS 1
6220 install_pp="$blddir/lib-src/installexe.sh"
6221 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6222 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6223 if test "$window_system" != x11; then
6225 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6226 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6227 echo " xemacs will be linked with \"scrollbar-msw.o\""
6229 test "$with_menubars" != "no" && with_menubars=msw \
6230 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6231 echo " xemacs will be linked with \"menubar-msw.o\""
6233 test "$with_toolbars" != "no" && with_toolbars=msw \
6234 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6235 echo " xemacs will be linked with \"toolbar-msw.o\""
6237 test "$with_dialogs" != "no" && with_dialogs=msw \
6238 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6239 echo " xemacs will be linked with \"dialog-msw.o\""
6241 test "$with_widgets" != "no" && with_widgets=msw
6243 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6244 echo " xemacs will be linked with \"scrollbar-msw.o\""
6246 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6247 echo " xemacs will be linked with \"menubar-msw.o\""
6249 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6250 echo " xemacs will be linked with \"toolbar-msw.o\""
6252 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6253 echo " xemacs will be linked with \"dialog-msw.o\""
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6260 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6264 { test "$extra_verbose" = "yes" && cat << \EOF
6265 Defining HAVE_MSG_SELECT
6267 cat >> confdefs.h <<\EOF
6268 #define HAVE_MSG_SELECT 1
6274 echo "configure: failed program was:" >&5
6275 cat conftest.$ac_ext >&5
6279 with_file_coding=yes
6280 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
6281 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\""
6288 test -z "$window_system" && window_system="none"
6290 if test "$window_system" = "none"; then
6291 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6293 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6294 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6296 eval "with_${feature}=no"
6299 test -z "$with_toolbars" && with_toolbars=yes
6302 if test "$with_msw" != "yes"; then
6303 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6305 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6306 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6308 eval "with_${feature}=no"
6314 if test "$with_x11" != "yes"; then
6315 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6317 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6318 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6320 eval "with_${feature}=no"
6326 case "$window_system" in
6327 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6328 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6329 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6332 case "$x_libraries" in *X11R4* )
6333 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6334 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6337 echo "checking for WM_COMMAND option" 1>&6
6338 echo "configure:6339: checking for WM_COMMAND option" >&5;
6339 if test "$with_wmcommand" != "no"; then
6340 { test "$extra_verbose" = "yes" && cat << \EOF
6341 Defining HAVE_WMCOMMAND
6343 cat >> confdefs.h <<\EOF
6344 #define HAVE_WMCOMMAND 1
6350 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6351 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6352 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6353 echo "configure:6354: checking for X11/Xauth.h" >&5
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 #include <X11/Xauth.h>
6360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6361 { (eval echo configure:6362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6363 if test -z "$ac_err"; then
6365 eval "ac_cv_header_$ac_safe=yes"
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6371 eval "ac_cv_header_$ac_safe=no"
6374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6375 echo "$ac_t""yes" 1>&6
6378 echo "$ac_t""no" 1>&6
6382 test -z "$with_xauth" && {
6383 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6384 echo "configure:6385: checking for XauGetAuthByAddr in -lXau" >&5
6385 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6387 xe_check_libs=" -lXau "
6388 cat > conftest.$ac_ext <<EOF
6389 #line 6390 "configure"
6390 #include "confdefs.h"
6391 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6394 char XauGetAuthByAddr();
6400 if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6402 eval "ac_cv_lib_$ac_lib_var=yes"
6404 echo "configure: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6407 eval "ac_cv_lib_$ac_lib_var=no"
6412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6413 echo "$ac_t""yes" 1>&6
6416 echo "$ac_t""no" 1>&6
6421 test -z "$with_xauth" && with_xauth=yes
6422 if test "$with_xauth" = "yes"; then
6423 { test "$extra_verbose" = "yes" && cat << \EOF
6426 cat >> confdefs.h <<\EOF
6427 #define HAVE_XAUTH 1
6433 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
6441 if test "$with_tooltalk" != "no" ; then
6442 for dir in "" "Tt/" "desktop/" ; do
6443 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6444 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6445 echo "configure:6446: checking for ${dir}tt_c.h" >&5
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 #include <${dir}tt_c.h>
6452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6453 { (eval echo configure:6454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6455 if test -z "$ac_err"; then
6457 eval "ac_cv_header_$ac_safe=yes"
6460 echo "configure: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6463 eval "ac_cv_header_$ac_safe=no"
6466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6467 echo "$ac_t""yes" 1>&6
6468 tt_c_h_path="${dir}tt_c.h"; break
6470 echo "$ac_t""no" 1>&6
6474 if test -z "$tt_c_h_path"; then
6475 if test "$with_tooltalk" = "yes"; then
6476 (echo "$progname: Usage error:"
6477 echo " " "Unable to find required tooltalk header files."
6478 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6483 if test "$with_tooltalk" != "no" ; then
6484 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6486 xe_msg_checking="for tt_message_create in -ltt"
6487 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6488 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6489 echo "configure:6490: checking "$xe_msg_checking"" >&5
6490 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6492 xe_check_libs=" -ltt $extra_libs"
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* Override any gcc2 internal prototype to avoid an error. */
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char tt_message_create();
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6507 eval "ac_cv_lib_$ac_lib_var=yes"
6509 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6512 eval "ac_cv_lib_$ac_lib_var=no"
6517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6518 echo "$ac_t""yes" 1>&6
6519 tt_libs="-ltt $extra_libs"; break
6521 echo "$ac_t""no" 1>&6
6527 if test -z "$tt_libs"; then
6528 if test "$with_tooltalk" = "yes"; then
6529 (echo "$progname: Usage error:"
6530 echo " " "Unable to find required tooltalk libraries."
6531 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6536 test -z "$with_tooltalk" && with_tooltalk=yes
6537 if test "$with_tooltalk" = "yes"; then
6538 { test "$extra_verbose" = "yes" && cat << \EOF
6541 cat >> confdefs.h <<\EOF
6546 { test "$extra_verbose" = "yes" && cat << EOF
6547 Defining TT_C_H_PATH = "$tt_c_h_path"
6549 cat >> confdefs.h <<EOF
6550 #define TT_C_H_PATH "$tt_c_h_path"
6554 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6555 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6556 echo " xemacs will be linked with \"tooltalk.o\""
6560 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6561 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6562 echo "configure:6563: checking for Dt/Dt.h" >&5
6564 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure"
6566 #include "confdefs.h"
6569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6570 { (eval echo configure:6571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6572 if test -z "$ac_err"; then
6574 eval "ac_cv_header_$ac_safe=yes"
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 eval "ac_cv_header_$ac_safe=no"
6583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6584 echo "$ac_t""yes" 1>&6
6587 echo "$ac_t""no" 1>&6
6591 test -z "$with_cde" && {
6592 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6593 echo "configure:6594: checking for DtDndDragStart in -lDtSvc" >&5
6594 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6596 xe_check_libs=" -lDtSvc "
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6603 char DtDndDragStart();
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 eval "ac_cv_lib_$ac_lib_var=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 eval "ac_cv_lib_$ac_lib_var=no"
6621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6622 echo "$ac_t""yes" 1>&6
6625 echo "$ac_t""no" 1>&6
6630 test -z "$with_cde" && with_cde=yes
6631 if test "$with_dragndrop" = no; then
6632 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6635 if test "$with_cde" = "yes" ; then
6636 { test "$extra_verbose" = "yes" && cat << \EOF
6639 cat >> confdefs.h <<\EOF
6644 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6645 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6646 with_tooltalk=yes # CDE requires Tooltalk
6647 need_motif=yes # CDE requires Motif
6650 test "$window_system" != "x11" && with_offix=no
6651 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6652 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6655 if test "$with_dragndrop" = no; then
6656 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6659 if test "$with_cde" = yes; then
6660 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6663 test -z "$with_offix" && with_offix=no
6664 if test "$with_offix" = "yes"; then
6665 { test "$extra_verbose" = "yes" && cat << \EOF
6666 Defining HAVE_OFFIX_DND
6668 cat >> confdefs.h <<\EOF
6669 #define HAVE_OFFIX_DND 1
6673 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6674 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6677 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6678 echo "configure:6679: checking if drag and drop API is needed" >&5
6679 if test "$with_dragndrop" != "no" ; then
6680 if test -n "$dragndrop_proto" ; then
6682 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6683 { test "$extra_verbose" = "yes" && cat << \EOF
6684 Defining HAVE_DRAGNDROP
6686 cat >> confdefs.h <<\EOF
6687 #define HAVE_DRAGNDROP 1
6691 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6694 echo "$ac_t""no" 1>&6
6698 echo "checking for LDAP" 1>&6
6699 echo "configure:6700: checking for LDAP" >&5
6700 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6701 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6702 echo "configure:6703: checking for ldap.h" >&5
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6710 { (eval echo configure:6711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6712 if test -z "$ac_err"; then
6714 eval "ac_cv_header_$ac_safe=yes"
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6720 eval "ac_cv_header_$ac_safe=no"
6723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6724 echo "$ac_t""yes" 1>&6
6727 echo "$ac_t""no" 1>&6
6731 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6732 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6733 echo "configure:6734: checking for lber.h" >&5
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6741 { (eval echo configure:6742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6743 if test -z "$ac_err"; then
6745 eval "ac_cv_header_$ac_safe=yes"
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 eval "ac_cv_header_$ac_safe=no"
6754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6755 echo "$ac_t""yes" 1>&6
6758 echo "$ac_t""no" 1>&6
6762 if test "$with_ldap" != "no"; then
6764 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6765 echo "configure:6766: checking for ldap_search in -lldap" >&5
6766 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6768 xe_check_libs=" -lldap "
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6783 eval "ac_cv_lib_$ac_lib_var=yes"
6785 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6788 eval "ac_cv_lib_$ac_lib_var=no"
6793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6794 echo "$ac_t""yes" 1>&6
6795 with_ldap_nolber=yes
6797 echo "$ac_t""no" 1>&6
6802 test "$with_ldap_nolber" = "no" && {
6803 xe_msg_checking="for ldap_open in -lldap"
6804 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6805 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6806 echo "configure:6807: checking "$xe_msg_checking"" >&5
6807 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6809 xe_check_libs=" -lldap -llber"
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* Override any gcc2 internal prototype to avoid an error. */
6814 /* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824 eval "ac_cv_lib_$ac_lib_var=yes"
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6829 eval "ac_cv_lib_$ac_lib_var=no"
6834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6835 echo "$ac_t""yes" 1>&6
6838 echo "$ac_t""no" 1>&6
6843 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6844 xe_msg_checking="for ldap_open in -lldap"
6845 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6846 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6847 echo "configure:6848: checking "$xe_msg_checking"" >&5
6848 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6850 xe_check_libs=" -lldap -llber -lkrb"
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 /* Override any gcc2 internal prototype to avoid an error. */
6855 /* We use char because int might match the return type of a gcc2
6856 builtin and then its argument prototype would still apply. */
6863 if { (eval echo configure:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6865 eval "ac_cv_lib_$ac_lib_var=yes"
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 eval "ac_cv_lib_$ac_lib_var=no"
6875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6876 echo "$ac_t""yes" 1>&6
6879 echo "$ac_t""no" 1>&6
6884 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6885 xe_msg_checking="for ldap_open in -lldap"
6886 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6887 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6888 echo "configure:6889: checking "$xe_msg_checking"" >&5
6889 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6891 xe_check_libs=" -lldap -llber -lkrb -ldes"
6892 cat > conftest.$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6895 /* Override any gcc2 internal prototype to avoid an error. */
6896 /* We use char because int might match the return type of a gcc2
6897 builtin and then its argument prototype would still apply. */
6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6906 eval "ac_cv_lib_$ac_lib_var=yes"
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 eval "ac_cv_lib_$ac_lib_var=no"
6916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6917 echo "$ac_t""yes" 1>&6
6918 with_ldap_krbdes=yes
6920 echo "$ac_t""no" 1>&6
6925 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
6927 if test "$with_ldap" = "yes"; then
6928 { test "$extra_verbose" = "yes" && cat << \EOF
6931 cat >> confdefs.h <<\EOF
6936 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6937 echo " xemacs will be linked with \"eldap.o\""
6939 if test "$with_ldap_nolber" = "yes" ; then
6940 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6942 if test "$with_ldap_krb" = "yes" ; then
6943 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6945 if test "$with_ldap_krbdes" = "yes" ; then
6946 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6947 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6949 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6950 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6952 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6955 echo "configure:6956: checking for $ac_func" >&5
6957 cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6960 /* System header to define __stub macros and hopefully few prototypes,
6961 which can conflict with char $ac_func(); below. */
6963 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6970 /* The GNU C library defines this for functions which it implements
6971 to always fail with ENOSYS. Some functions are actually named
6972 something starting with __ and the normal name is an alias. */
6973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6981 if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6983 eval "ac_cv_func_$ac_func=yes"
6985 echo "configure: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6988 eval "ac_cv_func_$ac_func=no"
6992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6995 { test "$extra_verbose" = "yes" && cat << EOF
6996 Defining $ac_tr_func
6998 cat >> confdefs.h <<EOF
6999 #define $ac_tr_func 1
7004 echo "$ac_t""no" 1>&6
7011 if test "$window_system" != "none"; then
7012 echo "checking for graphics libraries" 1>&6
7013 echo "configure:7014: checking for graphics libraries" >&5
7016 if test -z "$with_xpm"; then
7017 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7018 echo "configure:7019: checking for Xpm - no older than 3.4f" >&5
7020 cat > conftest.$ac_ext <<EOF
7021 #line 7022 "configure"
7022 #include "confdefs.h"
7023 #include <X11/xpm.h>
7024 int main(int c, char **v) {
7026 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7027 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7029 if { (eval echo configure:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7031 ./conftest dummy_arg; xpm_status=$?;
7032 if test "$xpm_status" = "0"; then
7036 if test "$xpm_status" = "1"; then
7037 xpm_problem="Xpm library version and header file version don't match!"
7038 elif test "$xpm_status" = "2"; then
7039 xpm_problem="Xpm library version is too old!"
7041 xpm_problem="Internal xpm detection logic error!"
7044 *** WARNING *** $xpm_problem
7045 I'm not touching that with a 10-foot pole!
7046 If you really want to use the installed version of Xpm, rerun
7047 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7058 echo "$ac_t""$with_xpm" 1>&6
7060 if test "$with_xpm" = "yes"; then
7061 { test "$extra_verbose" = "yes" && cat << \EOF
7064 cat >> confdefs.h <<\EOF
7069 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7070 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7071 echo "configure:7072: checking for \"FOR_MSW\" xpm" >&5
7073 cat > conftest.$ac_ext <<EOF
7074 #line 7075 "configure"
7075 #include "confdefs.h"
7078 XpmCreatePixmapFromData()
7081 if { (eval echo configure:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7085 echo "configure: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7092 echo "$ac_t""$xpm_for_msw" 1>&6
7093 if test "$xpm_for_msw" = "yes"; then
7094 { test "$extra_verbose" = "yes" && cat << \EOF
7097 cat >> confdefs.h <<\EOF
7105 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7106 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7107 echo "configure:7108: checking for compface.h" >&5
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 #include <compface.h>
7114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7115 { (eval echo configure:7116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7117 if test -z "$ac_err"; then
7119 eval "ac_cv_header_$ac_safe=yes"
7122 echo "configure: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7125 eval "ac_cv_header_$ac_safe=no"
7128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7129 echo "$ac_t""yes" 1>&6
7132 echo "$ac_t""no" 1>&6
7136 test -z "$with_xface" && {
7137 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7138 echo "configure:7139: checking for UnGenFace in -lcompface" >&5
7139 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7141 xe_check_libs=" -lcompface "
7142 cat > conftest.$ac_ext <<EOF
7143 #line 7144 "configure"
7144 #include "confdefs.h"
7145 /* Override any gcc2 internal prototype to avoid an error. */
7146 /* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */
7154 if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7156 eval "ac_cv_lib_$ac_lib_var=yes"
7158 echo "configure: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7161 eval "ac_cv_lib_$ac_lib_var=no"
7166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7167 echo "$ac_t""yes" 1>&6
7170 echo "$ac_t""no" 1>&6
7175 test -z "$with_xface" && with_xface=yes
7176 if test "$with_xface" = "yes"; then
7177 { test "$extra_verbose" = "yes" && cat << \EOF
7180 cat >> confdefs.h <<\EOF
7181 #define HAVE_XFACE 1
7185 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7188 if test "$with_gif" != "no"; then
7190 { test "$extra_verbose" = "yes" && cat << \EOF
7193 cat >> confdefs.h <<\EOF
7198 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7199 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7203 if test "$with_png $with_tiff" != "no no"; then
7205 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7206 echo "configure:7207: checking for inflate in -lc" >&5
7207 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7209 xe_check_libs=" -lc "
7210 cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7213 /* Override any gcc2 internal prototype to avoid an error. */
7214 /* We use char because int might match the return type of a gcc2
7215 builtin and then its argument prototype would still apply. */
7222 if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7224 eval "ac_cv_lib_$ac_lib_var=yes"
7226 echo "configure: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7229 eval "ac_cv_lib_$ac_lib_var=no"
7234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7235 echo "$ac_t""yes" 1>&6
7238 echo "$ac_t""no" 1>&6
7240 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7241 echo "configure:7242: checking for inflate in -lz" >&5
7242 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7244 xe_check_libs=" -lz "
7245 cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7259 eval "ac_cv_lib_$ac_lib_var=yes"
7261 echo "configure: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7264 eval "ac_cv_lib_$ac_lib_var=no"
7269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7270 echo "$ac_t""yes" 1>&6
7271 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7273 echo "$ac_t""no" 1>&6
7275 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7276 echo "configure:7277: checking for inflate in -lgz" >&5
7277 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7279 xe_check_libs=" -lgz "
7280 cat > conftest.$ac_ext <<EOF
7281 #line 7282 "configure"
7282 #include "confdefs.h"
7283 /* Override any gcc2 internal prototype to avoid an error. */
7284 /* We use char because int might match the return type of a gcc2
7285 builtin and then its argument prototype would still apply. */
7292 if { (eval echo configure:7293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7294 eval "ac_cv_lib_$ac_lib_var=yes"
7296 echo "configure: failed program was:" >&5
7297 cat conftest.$ac_ext >&5
7299 eval "ac_cv_lib_$ac_lib_var=no"
7304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7305 echo "$ac_t""yes" 1>&6
7306 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7308 echo "$ac_t""no" 1>&6
7320 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7321 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7322 echo "configure:7323: checking for jpeglib.h" >&5
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 #include <jpeglib.h>
7329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7330 { (eval echo configure:7331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7332 if test -z "$ac_err"; then
7334 eval "ac_cv_header_$ac_safe=yes"
7337 echo "configure: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7340 eval "ac_cv_header_$ac_safe=no"
7343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7344 echo "$ac_t""yes" 1>&6
7347 echo "$ac_t""no" 1>&6
7351 test -z "$with_jpeg" && {
7352 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7353 echo "configure:7354: checking for jpeg_destroy_decompress in -ljpeg" >&5
7354 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7356 xe_check_libs=" -ljpeg "
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 /* Override any gcc2 internal prototype to avoid an error. */
7361 /* We use char because int might match the return type of a gcc2
7362 builtin and then its argument prototype would still apply. */
7363 char jpeg_destroy_decompress();
7366 jpeg_destroy_decompress()
7369 if { (eval echo configure:7370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7371 eval "ac_cv_lib_$ac_lib_var=yes"
7373 echo "configure: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7376 eval "ac_cv_lib_$ac_lib_var=no"
7381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7382 echo "$ac_t""yes" 1>&6
7385 echo "$ac_t""no" 1>&6
7390 test -z "$with_jpeg" && with_jpeg=yes
7391 if test "$with_jpeg" = "yes"; then
7392 { test "$extra_verbose" = "yes" && cat << \EOF
7395 cat >> confdefs.h <<\EOF
7400 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7404 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7405 echo "configure:7406: checking for pow" >&5
7407 cat > conftest.$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7410 /* System header to define __stub macros and hopefully few prototypes,
7411 which can conflict with char pow(); below. */
7413 /* Override any gcc2 internal prototype to avoid an error. */
7414 /* We use char because int might match the return type of a gcc2
7415 builtin and then its argument prototype would still apply. */
7420 /* The GNU C library defines this for functions which it implements
7421 to always fail with ENOSYS. Some functions are actually named
7422 something starting with __ and the normal name is an alias. */
7423 #if defined (__stub_pow) || defined (__stub___pow)
7431 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7433 eval "ac_cv_func_pow=yes"
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7438 eval "ac_cv_func_pow=no"
7442 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7446 echo "$ac_t""no" 1>&6
7450 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7451 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7452 echo "configure:7453: checking for png.h" >&5
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7460 { (eval echo configure:7461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7462 if test -z "$ac_err"; then
7464 eval "ac_cv_header_$ac_safe=yes"
7467 echo "configure: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7470 eval "ac_cv_header_$ac_safe=no"
7473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7474 echo "$ac_t""yes" 1>&6
7477 echo "$ac_t""no" 1>&6
7481 test -z "$with_png" && {
7482 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7483 echo "configure:7484: checking for png_read_image in -lpng" >&5
7484 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7486 xe_check_libs=" -lpng "
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7493 char png_read_image();
7499 if { (eval echo configure:7500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7501 eval "ac_cv_lib_$ac_lib_var=yes"
7503 echo "configure: failed program was:" >&5
7504 cat conftest.$ac_ext >&5
7506 eval "ac_cv_lib_$ac_lib_var=no"
7511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7512 echo "$ac_t""yes" 1>&6
7515 echo "$ac_t""no" 1>&6
7520 if test -z "$with_png"; then
7521 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7522 echo "configure:7523: checking for workable png version information" >&5
7523 xe_check_libs="-lpng -lz"
7524 cat > conftest.$ac_ext <<EOF
7525 #line 7526 "configure"
7526 #include "confdefs.h"
7528 int main(int c, char **v) {
7529 if (c == 1) return 0;
7530 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7531 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7535 ./conftest dummy_arg; png_status=$?;
7536 if test "$png_status" = "0"; then
7540 if test "$png_status" = "1"; then
7541 png_problem="PNG library version and header file don't match!"
7542 elif test "$png_status" = "2"; then
7543 png_problem="PNG library version too old (pre 1.0.2)!"
7546 *** WARNING *** $png_problem
7547 I'm not touching that with a 10-foot pole!
7548 If you really want to use the installed version of libPNG, rerun
7549 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7553 echo "configure: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7560 echo "$ac_t""$with_png" 1>&6
7562 if test "$with_png" = "yes"; then
7563 { test "$extra_verbose" = "yes" && cat << \EOF
7566 cat >> confdefs.h <<\EOF
7571 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7574 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7575 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7576 echo "configure:7577: checking for tiffio.h" >&5
7578 cat > conftest.$ac_ext <<EOF
7579 #line 7580 "configure"
7580 #include "confdefs.h"
7583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7584 { (eval echo configure:7585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7586 if test -z "$ac_err"; then
7588 eval "ac_cv_header_$ac_safe=yes"
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7594 eval "ac_cv_header_$ac_safe=no"
7597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7601 echo "$ac_t""no" 1>&6
7605 test -z "$with_tiff" && {
7606 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7607 echo "configure:7608: checking for TIFFClientOpen in -ltiff" >&5
7608 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7610 xe_check_libs=" -ltiff "
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7614 /* Override any gcc2 internal prototype to avoid an error. */
7615 /* We use char because int might match the return type of a gcc2
7616 builtin and then its argument prototype would still apply. */
7617 char TIFFClientOpen();
7623 if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7625 eval "ac_cv_lib_$ac_lib_var=yes"
7627 echo "configure: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7630 eval "ac_cv_lib_$ac_lib_var=no"
7635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7636 echo "$ac_t""yes" 1>&6
7639 echo "$ac_t""no" 1>&6
7644 test -z "$with_tiff" && with_tiff=yes
7645 if test "$with_tiff" = "yes"; then
7646 { test "$extra_verbose" = "yes" && cat << \EOF
7649 cat >> confdefs.h <<\EOF
7654 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7659 if test "$with_x11" = "yes"; then
7661 echo "checking for X11 graphics libraries" 1>&6
7662 echo "configure:7663: checking for X11 graphics libraries" >&5
7664 echo "checking for the Athena widgets" 1>&6
7665 echo "configure:7666: checking for the Athena widgets" >&5
7667 case "$with_athena" in
7668 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7669 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7670 "next") athena_variant=neXtaw athena_3d=yes ;;
7671 "95") athena_variant=Xaw95 athena_3d=yes ;;
7672 "xpm") athena_variant=XawXpm athena_3d=yes ;;
7673 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
7676 if test "$athena_3d" = "no"; then
7678 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
7679 echo "configure:7680: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
7680 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7682 xe_check_libs=" -l$athena_variant "
7683 cat > conftest.$ac_ext <<EOF
7684 #line 7685 "configure"
7685 #include "confdefs.h"
7686 /* Override any gcc2 internal prototype to avoid an error. */
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7689 char XawScrollbarSetThumb();
7692 XawScrollbarSetThumb()
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7697 eval "ac_cv_lib_$ac_lib_var=yes"
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7702 eval "ac_cv_lib_$ac_lib_var=no"
7707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7708 echo "$ac_t""yes" 1>&6
7710 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7711 echo "configure:7712: checking for threeDClassRec in -l$athena_variant" >&5
7712 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7714 xe_check_libs=" -l$athena_variant "
7715 cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7721 char threeDClassRec();
7727 if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7729 eval "ac_cv_lib_$ac_lib_var=yes"
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7734 eval "ac_cv_lib_$ac_lib_var=no"
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7740 echo "$ac_t""yes" 1>&6
7741 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
7743 echo "$ac_t""no" 1>&6
7744 athena_lib=$athena_variant
7750 echo "$ac_t""no" 1>&6
7751 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
7757 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7758 echo "configure:7759: checking for threeDClassRec in -l$athena_variant" >&5
7759 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7761 xe_check_libs=" -l$athena_variant "
7762 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7765 /* Override any gcc2 internal prototype to avoid an error. */
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7768 char threeDClassRec();
7774 if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7776 eval "ac_cv_lib_$ac_lib_var=yes"
7778 echo "configure: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7781 eval "ac_cv_lib_$ac_lib_var=no"
7786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7787 echo "$ac_t""yes" 1>&6
7788 athena_lib=$athena_variant
7790 echo "$ac_t""no" 1>&6
7791 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
7792 echo "configure:7793: checking for threeDClassRec in -lXaw" >&5
7793 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
7795 xe_check_libs=" -lXaw "
7796 cat > conftest.$ac_ext <<EOF
7797 #line 7798 "configure"
7798 #include "confdefs.h"
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7802 char threeDClassRec();
7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7810 eval "ac_cv_lib_$ac_lib_var=yes"
7812 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7815 eval "ac_cv_lib_$ac_lib_var=no"
7820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7821 echo "$ac_t""yes" 1>&6
7823 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
7826 echo "$ac_t""no" 1>&6
7827 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
7836 if test "$athena_3d" = "no"; then
7837 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
7838 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
7839 echo "configure:7840: checking for X11/Xaw/ThreeD.h" >&5
7841 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure"
7843 #include "confdefs.h"
7844 #include <X11/Xaw/ThreeD.h>
7846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7847 { (eval echo configure:7848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7849 if test -z "$ac_err"; then
7851 eval "ac_cv_header_$ac_safe=yes"
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7857 eval "ac_cv_header_$ac_safe=no"
7860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7861 echo "$ac_t""yes" 1>&6
7862 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7864 echo "$ac_t""no" 1>&6
7865 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
7866 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
7867 echo "configure:7868: checking for X11/Xaw/XawInit.h" >&5
7869 cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7872 #include <X11/Xaw/XawInit.h>
7874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7875 { (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7877 if test -z "$ac_err"; then
7879 eval "ac_cv_header_$ac_safe=yes"
7882 echo "configure: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7885 eval "ac_cv_header_$ac_safe=no"
7888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7889 echo "$ac_t""yes" 1>&6
7890 athena_h_path=X11/Xaw
7892 echo "$ac_t""no" 1>&6
7893 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7899 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
7900 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
7901 echo "configure:7902: checking for X11/$athena_variant/XawInit.h" >&5
7903 cat > conftest.$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7906 #include <X11/$athena_variant/XawInit.h>
7908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7909 { (eval echo configure:7910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7911 if test -z "$ac_err"; then
7913 eval "ac_cv_header_$ac_safe=yes"
7916 echo "configure: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7919 eval "ac_cv_header_$ac_safe=no"
7922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7923 echo "$ac_t""yes" 1>&6
7924 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
7925 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
7926 echo "configure:7927: checking for X11/$athena_variant/ThreeD.h" >&5
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 #include <X11/$athena_variant/ThreeD.h>
7933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7934 { (eval echo configure:7935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7936 if test -z "$ac_err"; then
7938 eval "ac_cv_header_$ac_safe=yes"
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7944 eval "ac_cv_header_$ac_safe=no"
7947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7948 echo "$ac_t""yes" 1>&6
7949 athena_h_path=X11/$athena_variant
7951 echo "$ac_t""no" 1>&6
7955 echo "$ac_t""no" 1>&6
7959 if test -z "$athena_h_path"; then
7960 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
7961 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
7962 echo "configure:7963: checking for $athena_variant/XawInit.h" >&5
7964 cat > conftest.$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7967 #include <$athena_variant/XawInit.h>
7969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7970 { (eval echo configure:7971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7972 if test -z "$ac_err"; then
7974 eval "ac_cv_header_$ac_safe=yes"
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 eval "ac_cv_header_$ac_safe=no"
7983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7984 echo "$ac_t""yes" 1>&6
7985 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
7986 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
7987 echo "configure:7988: checking for $athena_variant/ThreeD.h" >&5
7989 cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure"
7991 #include "confdefs.h"
7992 #include <$athena_variant/ThreeD.h>
7994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7995 { (eval echo configure:7996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7997 if test -z "$ac_err"; then
7999 eval "ac_cv_header_$ac_safe=yes"
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8005 eval "ac_cv_header_$ac_safe=no"
8008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8009 echo "$ac_t""yes" 1>&6
8010 athena_h_path=$athena_variant
8012 echo "$ac_t""no" 1>&6
8016 echo "$ac_t""no" 1>&6
8021 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8022 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8023 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8024 echo "configure:8025: checking for X11/Xaw3d/XawInit.h" >&5
8026 cat > conftest.$ac_ext <<EOF
8027 #line 8028 "configure"
8028 #include "confdefs.h"
8029 #include <X11/Xaw3d/XawInit.h>
8031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8032 { (eval echo configure:8033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8034 if test -z "$ac_err"; then
8036 eval "ac_cv_header_$ac_safe=yes"
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8042 eval "ac_cv_header_$ac_safe=no"
8045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8046 echo "$ac_t""yes" 1>&6
8047 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8048 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8049 echo "configure:8050: checking for X11/Xaw3d/ThreeD.h" >&5
8051 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8054 #include <X11/Xaw3d/ThreeD.h>
8056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8057 { (eval echo configure:8058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8059 if test -z "$ac_err"; then
8061 eval "ac_cv_header_$ac_safe=yes"
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8067 eval "ac_cv_header_$ac_safe=no"
8070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8071 echo "$ac_t""yes" 1>&6
8073 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8074 athena_h_path=X11/Xaw3d
8077 echo "$ac_t""no" 1>&6
8081 echo "$ac_t""no" 1>&6
8086 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8087 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8088 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8089 echo "configure:8090: checking for Xaw3d/XawInit.h" >&5
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 #include <Xaw3d/XawInit.h>
8096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8097 { (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8099 if test -z "$ac_err"; then
8101 eval "ac_cv_header_$ac_safe=yes"
8104 echo "configure: failed program was:" >&5
8105 cat conftest.$ac_ext >&5
8107 eval "ac_cv_header_$ac_safe=no"
8110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8111 echo "$ac_t""yes" 1>&6
8112 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8113 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8114 echo "configure:8115: checking for Xaw3d/ThreeD.h" >&5
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8119 #include <Xaw3d/ThreeD.h>
8121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8122 { (eval echo configure:8123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8124 if test -z "$ac_err"; then
8126 eval "ac_cv_header_$ac_safe=yes"
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8132 eval "ac_cv_header_$ac_safe=no"
8135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8138 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8142 echo "$ac_t""no" 1>&6
8146 echo "$ac_t""no" 1>&6
8151 if test -z "$athena_h_path"; then
8152 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8153 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8154 echo "configure:8155: checking for X11/Xaw/ThreeD.h" >&5
8156 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8159 #include <X11/Xaw/ThreeD.h>
8161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8162 { (eval echo configure:8163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8164 if test -z "$ac_err"; then
8166 eval "ac_cv_header_$ac_safe=yes"
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8172 eval "ac_cv_header_$ac_safe=no"
8175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8176 echo "$ac_t""yes" 1>&6
8178 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8179 athena_h_path=X11/Xaw
8182 echo "$ac_t""no" 1>&6
8183 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8189 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8195 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8196 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8197 echo "configure:8198: checking for Xm/Xm.h" >&5
8199 cat > conftest.$ac_ext <<EOF
8200 #line 8201 "configure"
8201 #include "confdefs.h"
8204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8205 { (eval echo configure:8206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8207 if test -z "$ac_err"; then
8209 eval "ac_cv_header_$ac_safe=yes"
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8215 eval "ac_cv_header_$ac_safe=no"
8218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8219 echo "$ac_t""yes" 1>&6
8221 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8222 echo "configure:8223: checking for XmStringFree in -lXm" >&5
8223 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8225 xe_check_libs=" -lXm "
8226 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8232 char XmStringFree();
8238 if { (eval echo configure:8239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8240 eval "ac_cv_lib_$ac_lib_var=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8245 eval "ac_cv_lib_$ac_lib_var=no"
8250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8251 echo "$ac_t""yes" 1>&6
8254 echo "$ac_t""no" 1>&6
8260 echo "$ac_t""no" 1>&6
8265 if test "$have_motif" = "yes"; then
8266 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8267 echo "configure:8268: checking for Lesstif" >&5
8268 cat > conftest.$ac_ext <<EOF
8269 #line 8270 "configure"
8270 #include "confdefs.h"
8272 #ifdef LESSTIF_VERSION
8277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8278 egrep "yes" >/dev/null 2>&1; then
8287 echo "$ac_t""$have_lesstif" 1>&6
8292 case "$with_menubars" in "" | "yes" | "athena" )
8293 with_menubars="lucid" ;;
8295 case "$with_dialogs" in "" | "yes" | "lucid" )
8296 if test "$have_motif" = "yes"; then with_dialogs="motif"
8297 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8298 else with_dialogs=no
8301 case "$with_scrollbars" in "" | "yes" )
8302 with_scrollbars="lucid" ;;
8304 case "$with_widgets" in "" | "yes" | "lucid")
8305 if test "$have_motif" = "yes"; then with_widgets="motif"
8306 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8307 else with_widgets=no
8311 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8313 case "$all_widgets" in
8315 if test "$have_xaw" != "yes"; then
8316 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8319 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8321 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8323 { test "$extra_verbose" = "yes" && cat << EOF
8324 Defining ATHENA_H_PATH = $athena_h_path
8326 cat >> confdefs.h <<EOF
8327 #define ATHENA_H_PATH $athena_h_path
8332 { test "$extra_verbose" = "yes" && cat << \EOF
8333 Defining LWLIB_USES_ATHENA
8335 cat >> confdefs.h <<\EOF
8336 #define LWLIB_USES_ATHENA 1
8340 { test "$extra_verbose" = "yes" && cat << \EOF
8341 Defining NEED_ATHENA
8343 cat >> confdefs.h <<\EOF
8344 #define NEED_ATHENA 1
8349 if test "$athena_3d" = "yes"; then
8350 { test "$extra_verbose" = "yes" && cat << \EOF
8351 Defining HAVE_ATHENA_3D
8353 cat >> confdefs.h <<\EOF
8354 #define HAVE_ATHENA_3D 1
8362 case "$all_widgets" in *motif* )
8363 { test "$extra_verbose" = "yes" && cat << \EOF
8364 Defining LWLIB_USES_MOTIF
8366 cat >> confdefs.h <<\EOF
8367 #define LWLIB_USES_MOTIF 1
8371 { test "$extra_verbose" = "yes" && cat << \EOF
8374 cat >> confdefs.h <<\EOF
8375 #define NEED_MOTIF 1
8379 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8383 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8384 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8385 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8386 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8387 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8388 case "$with_widgets" in athena* )
8389 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;;
8391 case "$all_widgets" in *lucid* )
8392 { test "$extra_verbose" = "yes" && cat << \EOF
8395 cat >> confdefs.h <<\EOF
8396 #define NEED_LUCID 1
8400 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8405 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8406 Defining LWLIB_SCROLLBARS_ATHENA
8408 cat >> confdefs.h <<\EOF
8409 #define LWLIB_SCROLLBARS_ATHENA 1
8413 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8414 Defining LWLIB_DIALOGS_ATHENA
8416 cat >> confdefs.h <<\EOF
8417 #define LWLIB_DIALOGS_ATHENA 1
8422 if test "$athena_3d" = "yes"; then
8423 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8424 Defining LWLIB_SCROLLBARS_ATHENA3D
8426 cat >> confdefs.h <<\EOF
8427 #define LWLIB_SCROLLBARS_ATHENA3D 1
8431 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8432 Defining LWLIB_DIALOGS_ATHENA3D
8434 cat >> confdefs.h <<\EOF
8435 #define LWLIB_DIALOGS_ATHENA3D 1
8441 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8442 Defining LWLIB_WIDGETS_ATHENA
8444 cat >> confdefs.h <<\EOF
8445 #define LWLIB_WIDGETS_ATHENA 1
8449 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8450 { test "$extra_verbose" = "yes" && cat << \EOF
8451 Defining LWLIB_TABS_LUCID
8453 cat >> confdefs.h <<\EOF
8454 #define LWLIB_TABS_LUCID 1
8459 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8460 Defining HAVE_MENUBARS
8462 cat >> confdefs.h <<\EOF
8463 #define HAVE_MENUBARS 1
8467 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8468 Defining HAVE_SCROLLBARS
8470 cat >> confdefs.h <<\EOF
8471 #define HAVE_SCROLLBARS 1
8475 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8476 Defining HAVE_DIALOGS
8478 cat >> confdefs.h <<\EOF
8479 #define HAVE_DIALOGS 1
8483 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8484 Defining HAVE_TOOLBARS
8486 cat >> confdefs.h <<\EOF
8487 #define HAVE_TOOLBARS 1
8491 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8492 Defining HAVE_WIDGETS
8494 cat >> confdefs.h <<\EOF
8495 #define HAVE_WIDGETS 1
8500 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8501 Defining LWLIB_MENUBARS_LUCID
8503 cat >> confdefs.h <<\EOF
8504 #define LWLIB_MENUBARS_LUCID 1
8508 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8509 Defining LWLIB_SCROLLBARS_LUCID
8511 cat >> confdefs.h <<\EOF
8512 #define LWLIB_SCROLLBARS_LUCID 1
8517 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8518 Defining LWLIB_MENUBARS_MOTIF
8520 cat >> confdefs.h <<\EOF
8521 #define LWLIB_MENUBARS_MOTIF 1
8525 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8526 Defining LWLIB_SCROLLBARS_MOTIF
8528 cat >> confdefs.h <<\EOF
8529 #define LWLIB_SCROLLBARS_MOTIF 1
8533 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8534 Defining LWLIB_DIALOGS_MOTIF
8536 cat >> confdefs.h <<\EOF
8537 #define LWLIB_DIALOGS_MOTIF 1
8541 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8542 Defining LWLIB_WIDGETS_MOTIF
8544 cat >> confdefs.h <<\EOF
8545 #define LWLIB_WIDGETS_MOTIF 1
8550 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8551 echo " xemacs will be linked with \"menubar.o\""
8553 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
8554 echo " xemacs will be linked with \"scrollbar.o\""
8556 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
8557 echo " xemacs will be linked with \"dialog.o\""
8559 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
8560 echo " xemacs will be linked with \"toolbar.o\""
8563 if test "$with_x11" = "yes"; then
8564 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
8565 echo " xemacs will be linked with \"menubar-x.o\""
8567 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
8568 echo " xemacs will be linked with \"scrollbar-x.o\""
8570 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8571 echo " xemacs will be linked with \"dialog-x.o\""
8573 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8574 echo " xemacs will be linked with \"toolbar-x.o\""
8576 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8577 echo " xemacs will be linked with \"gui-x.o\""
8582 test -z "$with_mule" && with_mule=no
8583 test -z "$with_file_coding" && with_file_coding=no
8586 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
8587 { test "$extra_verbose" = "yes" && cat << \EOF
8588 Defining FILE_CODING
8590 cat >> confdefs.h <<\EOF
8591 #define FILE_CODING 1
8595 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8596 echo " xemacs will be linked with \"file-coding.o\""
8600 if test "$with_mule" = "yes" ; then
8601 echo "checking for Mule-related features" 1>&6
8602 echo "configure:8603: checking for Mule-related features" >&5
8603 { test "$extra_verbose" = "yes" && cat << \EOF
8606 cat >> confdefs.h <<\EOF
8611 { test "$extra_verbose" = "yes" && cat << \EOF
8612 Defining FILE_CODING
8614 cat >> confdefs.h <<\EOF
8615 #define FILE_CODING 1
8619 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
8620 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
8623 for ac_hdr in libintl.h
8625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8627 echo "configure:8628: checking for $ac_hdr" >&5
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8635 { (eval echo configure:8636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8637 if test -z "$ac_err"; then
8639 eval "ac_cv_header_$ac_safe=yes"
8642 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8645 eval "ac_cv_header_$ac_safe=no"
8648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8649 echo "$ac_t""yes" 1>&6
8650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8651 { test "$extra_verbose" = "yes" && cat << EOF
8654 cat >> confdefs.h <<EOF
8655 #define $ac_tr_hdr 1
8660 echo "$ac_t""no" 1>&6
8665 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8666 echo "configure:8667: checking for strerror in -lintl" >&5
8667 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8669 xe_check_libs=" -lintl "
8670 cat > conftest.$ac_ext <<EOF
8671 #line 8672 "configure"
8672 #include "confdefs.h"
8673 /* Override any gcc2 internal prototype to avoid an error. */
8674 /* We use char because int might match the return type of a gcc2
8675 builtin and then its argument prototype would still apply. */
8682 if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8684 eval "ac_cv_lib_$ac_lib_var=yes"
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 eval "ac_cv_lib_$ac_lib_var=no"
8694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8695 echo "$ac_t""yes" 1>&6
8696 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8698 { test "$extra_verbose" = "yes" && cat << EOF
8701 cat >> confdefs.h <<EOF
8702 #define $ac_tr_lib 1
8706 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
8709 echo "$ac_t""no" 1>&6
8714 echo "checking for Mule input methods" 1>&6
8715 echo "configure:8716: checking for Mule input methods" >&5
8716 case "$with_xim" in "" | "yes" )
8717 echo "checking for XIM" 1>&6
8718 echo "configure:8719: checking for XIM" >&5
8720 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8721 echo "configure:8722: checking for XOpenIM in -lX11" >&5
8722 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8724 xe_check_libs=" -lX11 "
8725 cat > conftest.$ac_ext <<EOF
8726 #line 8727 "configure"
8727 #include "confdefs.h"
8728 /* Override any gcc2 internal prototype to avoid an error. */
8729 /* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8737 if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8739 eval "ac_cv_lib_$ac_lib_var=yes"
8741 echo "configure: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8744 eval "ac_cv_lib_$ac_lib_var=no"
8749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8750 echo "$ac_t""yes" 1>&6
8753 echo "$ac_t""no" 1>&6
8758 if test "$have_motif $have_lesstif" = "yes no"; then
8760 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8761 echo "configure:8762: checking for XmImMbLookupString in -lXm" >&5
8762 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8764 xe_check_libs=" -lXm "
8765 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8768 /* Override any gcc2 internal prototype to avoid an error. */
8769 /* We use char because int might match the return type of a gcc2
8770 builtin and then its argument prototype would still apply. */
8771 char XmImMbLookupString();
8774 XmImMbLookupString()
8777 if { (eval echo configure:8778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8779 eval "ac_cv_lib_$ac_lib_var=yes"
8781 echo "configure: failed program was:" >&5
8782 cat conftest.$ac_ext >&5
8784 eval "ac_cv_lib_$ac_lib_var=no"
8789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8790 echo "$ac_t""yes" 1>&6
8793 echo "$ac_t""no" 1>&6
8799 if test "$with_xim" != "no"; then
8800 { test "$extra_verbose" = "yes" && cat << \EOF
8803 cat >> confdefs.h <<\EOF
8808 if test "$with_xim" = "xlib"; then
8809 { test "$extra_verbose" = "yes" && cat << \EOF
8812 cat >> confdefs.h <<\EOF
8817 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8818 echo " xemacs will be linked with \"input-method-xlib.o\""
8821 if test "$with_xim" = "motif"; then
8822 { test "$extra_verbose" = "yes" && cat << \EOF
8825 cat >> confdefs.h <<\EOF
8831 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8832 echo " xemacs will be linked with \"input-method-motif.o\""
8835 if test "$with_xim" = "motif"; then
8840 if test "$with_xfs" = "yes" ; then
8841 echo "checking for XFontSet" 1>&6
8842 echo "configure:8843: checking for XFontSet" >&5
8844 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8845 echo "configure:8846: checking for XmbDrawString in -lX11" >&5
8846 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8848 xe_check_libs=" -lX11 "
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 /* We use char because int might match the return type of a gcc2
8854 builtin and then its argument prototype would still apply. */
8855 char XmbDrawString();
8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8863 eval "ac_cv_lib_$ac_lib_var=yes"
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8868 eval "ac_cv_lib_$ac_lib_var=no"
8873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8874 echo "$ac_t""yes" 1>&6
8877 echo "$ac_t""no" 1>&6
8882 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8883 { test "$extra_verbose" = "yes" && cat << \EOF
8884 Defining USE_XFONTSET
8886 cat >> confdefs.h <<\EOF
8887 #define USE_XFONTSET 1
8891 if test "$with_xim" = "no" ; then
8892 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8893 echo " xemacs will be linked with \"input-method-xfs.o\""
8898 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8899 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8900 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8901 echo "configure:8902: checking for wnn/jllib.h" >&5
8903 cat > conftest.$ac_ext <<EOF
8904 #line 8905 "configure"
8905 #include "confdefs.h"
8906 #include <wnn/jllib.h>
8908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8909 { (eval echo configure:8910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8911 if test -z "$ac_err"; then
8913 eval "ac_cv_header_$ac_safe=yes"
8916 echo "configure: failed program was:" >&5
8917 cat conftest.$ac_ext >&5
8919 eval "ac_cv_header_$ac_safe=no"
8922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8923 echo "$ac_t""yes" 1>&6
8926 echo "$ac_t""no" 1>&6
8930 if test "$with_wnn" != "no"; then
8931 for ac_func in crypt
8933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8934 echo "configure:8935: checking for $ac_func" >&5
8936 cat > conftest.$ac_ext <<EOF
8937 #line 8938 "configure"
8938 #include "confdefs.h"
8939 /* System header to define __stub macros and hopefully few prototypes,
8940 which can conflict with char $ac_func(); below. */
8942 /* Override any gcc2 internal prototype to avoid an error. */
8943 /* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */
8949 /* The GNU C library defines this for functions which it implements
8950 to always fail with ENOSYS. Some functions are actually named
8951 something starting with __ and the normal name is an alias. */
8952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8960 if { (eval echo configure:8961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8962 eval "ac_cv_func_$ac_func=yes"
8964 echo "configure: failed program was:" >&5
8965 cat conftest.$ac_ext >&5
8967 eval "ac_cv_func_$ac_func=no"
8971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8972 echo "$ac_t""yes" 1>&6
8973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8974 { test "$extra_verbose" = "yes" && cat << EOF
8975 Defining $ac_tr_func
8977 cat >> confdefs.h <<EOF
8978 #define $ac_tr_func 1
8983 echo "$ac_t""no" 1>&6
8987 test "$ac_cv_func_crypt" != "yes" && {
8988 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8989 echo "configure:8990: checking for crypt in -lcrypt" >&5
8990 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8992 xe_check_libs=" -lcrypt "
8993 cat > conftest.$ac_ext <<EOF
8994 #line 8995 "configure"
8995 #include "confdefs.h"
8996 /* Override any gcc2 internal prototype to avoid an error. */
8997 /* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
9005 if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9007 eval "ac_cv_lib_$ac_lib_var=yes"
9009 echo "configure: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9012 eval "ac_cv_lib_$ac_lib_var=no"
9017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9018 echo "$ac_t""yes" 1>&6
9019 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9021 { test "$extra_verbose" = "yes" && cat << EOF
9024 cat >> confdefs.h <<EOF
9025 #define $ac_tr_lib 1
9029 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9032 echo "$ac_t""no" 1>&6
9037 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9039 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9040 echo "configure:9041: checking for jl_dic_list_e in -lwnn" >&5
9041 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9043 xe_check_libs=" -lwnn "
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 /* Override any gcc2 internal prototype to avoid an error. */
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9050 char jl_dic_list_e();
9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9058 eval "ac_cv_lib_$ac_lib_var=yes"
9060 echo "configure: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9063 eval "ac_cv_lib_$ac_lib_var=no"
9068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9069 echo "$ac_t""yes" 1>&6
9072 echo "$ac_t""no" 1>&6
9073 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9074 echo "configure:9075: checking for jl_dic_list_e in -lwnn4" >&5
9075 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9077 xe_check_libs=" -lwnn4 "
9078 cat > conftest.$ac_ext <<EOF
9079 #line 9080 "configure"
9080 #include "confdefs.h"
9081 /* Override any gcc2 internal prototype to avoid an error. */
9082 /* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9084 char jl_dic_list_e();
9090 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9092 eval "ac_cv_lib_$ac_lib_var=yes"
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9097 eval "ac_cv_lib_$ac_lib_var=no"
9102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9103 echo "$ac_t""yes" 1>&6
9106 echo "$ac_t""no" 1>&6
9107 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9108 echo "configure:9109: checking for jl_dic_list_e in -lwnn6" >&5
9109 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9111 xe_check_libs=" -lwnn6 "
9112 cat > conftest.$ac_ext <<EOF
9113 #line 9114 "configure"
9114 #include "confdefs.h"
9115 /* Override any gcc2 internal prototype to avoid an error. */
9116 /* We use char because int might match the return type of a gcc2
9117 builtin and then its argument prototype would still apply. */
9118 char jl_dic_list_e();
9124 if { (eval echo configure:9125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9126 eval "ac_cv_lib_$ac_lib_var=yes"
9128 echo "configure: failed program was:" >&5
9129 cat conftest.$ac_ext >&5
9131 eval "ac_cv_lib_$ac_lib_var=no"
9136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9137 echo "$ac_t""yes" 1>&6
9140 echo "$ac_t""no" 1>&6
9141 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9142 echo "configure:9143: checking for dic_list_e in -lwnn6_fromsrc" >&5
9143 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9145 xe_check_libs=" -lwnn6_fromsrc "
9146 cat > conftest.$ac_ext <<EOF
9147 #line 9148 "configure"
9148 #include "confdefs.h"
9149 /* Override any gcc2 internal prototype to avoid an error. */
9150 /* We use char because int might match the return type of a gcc2
9151 builtin and then its argument prototype would still apply. */
9158 if { (eval echo configure:9159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9160 eval "ac_cv_lib_$ac_lib_var=yes"
9162 echo "configure: failed program was:" >&5
9163 cat conftest.$ac_ext >&5
9165 eval "ac_cv_lib_$ac_lib_var=no"
9170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9171 echo "$ac_t""yes" 1>&6
9174 echo "$ac_t""no" 1>&6
9189 test -z "$with_wnn" && with_wnn=yes
9190 if test "$with_wnn" = "yes"; then
9191 { test "$extra_verbose" = "yes" && cat << \EOF
9194 cat >> confdefs.h <<\EOF
9199 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9200 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9201 echo " xemacs will be linked with \"mule-wnnfns.o\""
9203 if test "$with_wnn6" != "no"; then
9205 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9206 echo "configure:9207: checking for jl_fi_dic_list in -l$libwnn" >&5
9207 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9209 xe_check_libs=" -l$libwnn "
9210 cat > conftest.$ac_ext <<EOF
9211 #line 9212 "configure"
9212 #include "confdefs.h"
9213 /* Override any gcc2 internal prototype to avoid an error. */
9214 /* We use char because int might match the return type of a gcc2
9215 builtin and then its argument prototype would still apply. */
9216 char jl_fi_dic_list();
9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9224 eval "ac_cv_lib_$ac_lib_var=yes"
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9229 eval "ac_cv_lib_$ac_lib_var=no"
9234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9235 echo "$ac_t""yes" 1>&6
9238 echo "$ac_t""no" 1>&6
9242 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9245 cat >> confdefs.h <<\EOF
9253 canna_includes_found=no
9254 if test "$with_canna" != "no"; then
9255 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9256 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9257 echo "configure:9258: checking for canna/jrkanji.h" >&5
9259 cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure"
9261 #include "confdefs.h"
9262 #include <canna/jrkanji.h>
9264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9265 { (eval echo configure:9266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9267 if test -z "$ac_err"; then
9269 eval "ac_cv_header_$ac_safe=yes"
9272 echo "configure: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9275 eval "ac_cv_header_$ac_safe=no"
9278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9279 echo "$ac_t""yes" 1>&6
9280 canna_includes_found=yes
9282 echo "$ac_t""no" 1>&6
9286 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9287 -d "/usr/local/canna/include"; then
9288 save_c_switch_site="$c_switch_site"
9289 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9290 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9291 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9292 echo "configure:9293: checking for canna/jrkanji.h" >&5
9294 cat > conftest.$ac_ext <<EOF
9295 #line 9296 "configure"
9296 #include "confdefs.h"
9297 #include <canna/jrkanji.h>
9299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9300 { (eval echo configure:9301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9302 if test -z "$ac_err"; then
9304 eval "ac_cv_header_$ac_safe=yes"
9307 echo "configure: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9310 eval "ac_cv_header_$ac_safe=no"
9313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9314 echo "$ac_t""yes" 1>&6
9315 canna_includes_found=yes
9317 echo "$ac_t""no" 1>&6
9320 if test "$canna_includes_found" != "yes"; then
9321 c_switch_site="$save_c_switch_site"
9326 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9327 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9328 echo "configure:9329: checking for canna/RK.h" >&5
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9333 #include <canna/RK.h>
9335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9336 { (eval echo configure:9337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9338 if test -z "$ac_err"; then
9340 eval "ac_cv_header_$ac_safe=yes"
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9346 eval "ac_cv_header_$ac_safe=no"
9349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9350 echo "$ac_t""yes" 1>&6
9353 echo "$ac_t""no" 1>&6
9357 test -z "$with_canna" && {
9358 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9359 echo "configure:9360: checking for RkBgnBun in -lRKC" >&5
9360 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9362 xe_check_libs=" -lRKC "
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9377 eval "ac_cv_lib_$ac_lib_var=yes"
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9382 eval "ac_cv_lib_$ac_lib_var=no"
9387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9388 echo "$ac_t""yes" 1>&6
9391 echo "$ac_t""no" 1>&6
9396 test -z "$with_canna" && {
9397 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9398 echo "configure:9399: checking for jrKanjiControl in -lcanna" >&5
9399 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9401 xe_check_libs=" -lcanna "
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 jrKanjiControl();
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
9435 test -z "$with_canna" && with_canna=yes
9436 if test "$with_canna" = "yes"; then
9437 { test "$extra_verbose" = "yes" && cat << \EOF
9440 cat >> confdefs.h <<\EOF
9441 #define HAVE_CANNA 1
9445 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
9446 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
9447 echo " xemacs will be linked with \"mule-canna.o\""
9451 else for feature in xim canna wnn; do
9452 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
9453 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
9455 eval "with_${feature}=no"
9459 if test "$need_motif" = "yes" ; then
9460 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9462 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9463 echo "configure:9464: checking for layout_object_getvalue in -li18n" >&5
9464 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9466 xe_check_libs=" -li18n "
9467 cat > conftest.$ac_ext <<EOF
9468 #line 9469 "configure"
9469 #include "confdefs.h"
9470 /* Override any gcc2 internal prototype to avoid an error. */
9471 /* We use char because int might match the return type of a gcc2
9472 builtin and then its argument prototype would still apply. */
9473 char layout_object_getvalue();
9476 layout_object_getvalue()
9479 if { (eval echo configure:9480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9481 eval "ac_cv_lib_$ac_lib_var=yes"
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9486 eval "ac_cv_lib_$ac_lib_var=no"
9491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9492 echo "$ac_t""yes" 1>&6
9493 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
9495 echo "$ac_t""no" 1>&6
9500 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
9501 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9502 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9504 runpath="" runpath_dirs=""
9505 if test -n "$LD_RUN_PATH"; then
9506 runpath="$LD_RUN_PATH"
9507 elif test "$GCC" = "yes"; then
9508 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
9509 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
9510 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
9511 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
9512 case "$arg" in P,* | -L* | -R* )
9513 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
9515 xe_runpath_dir="$dir"
9516 test "$xe_runpath_dir" != "/lib" -a \
9517 "$xe_runpath_dir" != "/usr/lib" -a \
9518 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9519 eval "$xe_add_unique_runpath_dir"
9524 ld_switch_run="$ld_switch_run_save"
9527 for arg in $ld_switch_site $ld_switch_x_site; do
9528 case "$arg" in -L*) {
9529 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
9530 test "$xe_runpath_dir" != "/lib" -a \
9531 "$xe_runpath_dir" != "/usr/lib" -a \
9532 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9533 eval "$xe_add_unique_runpath_dir"
9536 if test "$opsys $need_motif" = "sol2 yes"; then
9537 xe_runpath_dir="/opt/SUNWdt/lib";
9538 eval "$xe_add_unique_runpath_dir";
9541 if test -n "$runpath"; then
9542 ld_switch_run="${dash_r}${runpath}"
9544 if test "$GCC" = "yes"; then
9545 set x $ld_switch_run; shift; ld_switch_run=""
9546 while test -n "$1"; do
9548 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
9549 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
9551 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
9556 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
9562 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
9564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9565 echo "configure:9566: checking for $ac_func" >&5
9567 cat > conftest.$ac_ext <<EOF
9568 #line 9569 "configure"
9569 #include "confdefs.h"
9570 /* System header to define __stub macros and hopefully few prototypes,
9571 which can conflict with char $ac_func(); below. */
9573 /* Override any gcc2 internal prototype to avoid an error. */
9574 /* We use char because int might match the return type of a gcc2
9575 builtin and then its argument prototype would still apply. */
9580 /* The GNU C library defines this for functions which it implements
9581 to always fail with ENOSYS. Some functions are actually named
9582 something starting with __ and the normal name is an alias. */
9583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9593 eval "ac_cv_func_$ac_func=yes"
9595 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9598 eval "ac_cv_func_$ac_func=no"
9602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9603 echo "$ac_t""yes" 1>&6
9604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9605 { test "$extra_verbose" = "yes" && cat << EOF
9606 Defining $ac_tr_func
9608 cat >> confdefs.h <<EOF
9609 #define $ac_tr_func 1
9614 echo "$ac_t""no" 1>&6
9619 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9620 echo " xemacs will be linked with \"realpath.o\""
9623 for ac_func in getloadavg
9625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9626 echo "configure:9627: checking for $ac_func" >&5
9628 cat > conftest.$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9631 /* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char $ac_func(); below. */
9634 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9641 /* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9654 eval "ac_cv_func_$ac_func=yes"
9656 echo "configure: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9659 eval "ac_cv_func_$ac_func=no"
9663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9664 echo "$ac_t""yes" 1>&6
9665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9666 { test "$extra_verbose" = "yes" && cat << EOF
9667 Defining $ac_tr_func
9669 cat >> confdefs.h <<EOF
9670 #define $ac_tr_func 1
9675 echo "$ac_t""no" 1>&6
9680 if test "$ac_cv_func_getloadavg" != "yes"
9682 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9683 echo " xemacs will be linked with \"getloadavg.o\""
9687 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9688 echo "configure:9689: checking for kstat_open in -lkstat" >&5
9689 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9691 xe_check_libs=" -lkstat "
9692 cat > conftest.$ac_ext <<EOF
9693 #line 9694 "configure"
9694 #include "confdefs.h"
9695 /* Override any gcc2 internal prototype to avoid an error. */
9696 /* We use char because int might match the return type of a gcc2
9697 builtin and then its argument prototype would still apply. */
9704 if { (eval echo configure:9705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9706 eval "ac_cv_lib_$ac_lib_var=yes"
9708 echo "configure: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9711 eval "ac_cv_lib_$ac_lib_var=no"
9716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9717 echo "$ac_t""yes" 1>&6
9718 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9719 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9720 { test "$extra_verbose" = "yes" && cat << EOF
9723 cat >> confdefs.h <<EOF
9724 #define $ac_tr_lib 1
9728 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9731 echo "$ac_t""no" 1>&6
9737 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9738 echo "configure:9739: checking for kvm_read in -lkvm" >&5
9739 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9741 xe_check_libs=" -lkvm "
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9756 eval "ac_cv_lib_$ac_lib_var=yes"
9758 echo "configure: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9761 eval "ac_cv_lib_$ac_lib_var=no"
9766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9767 echo "$ac_t""yes" 1>&6
9768 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9770 { test "$extra_verbose" = "yes" && cat << EOF
9773 cat >> confdefs.h <<EOF
9774 #define $ac_tr_lib 1
9778 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9781 echo "$ac_t""no" 1>&6
9787 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9788 echo "configure:9789: checking whether netdb declares h_errno" >&5
9789 cat > conftest.$ac_ext <<EOF
9790 #line 9791 "configure"
9791 #include "confdefs.h"
9797 if { (eval echo configure:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9799 echo "$ac_t""yes" 1>&6
9800 { test "$extra_verbose" = "yes" && cat << \EOF
9801 Defining HAVE_H_ERRNO
9803 cat >> confdefs.h <<\EOF
9804 #define HAVE_H_ERRNO 1
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9812 echo "$ac_t""no" 1>&6
9816 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9817 echo "configure:9818: checking for sigsetjmp" >&5
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9823 sigjmp_buf bar; sigsetjmp (bar, 0);
9826 if { (eval echo configure:9827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9828 echo "$ac_t""yes" 1>&6
9829 { test "$extra_verbose" = "yes" && cat << \EOF
9830 Defining HAVE_SIGSETJMP
9832 cat >> confdefs.h <<\EOF
9833 #define HAVE_SIGSETJMP 1
9838 echo "configure: failed program was:" >&5
9839 cat conftest.$ac_ext >&5
9841 echo "$ac_t""no" 1>&6
9845 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9846 echo "configure:9847: checking whether localtime caches TZ" >&5
9848 if test "$ac_cv_func_tzset" = "yes"; then
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9854 # include <stdlib.h>
9856 extern char **environ;
9860 for (to = from = environ; (*to = *from); from++)
9861 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9864 char TZ_GMT0[] = "TZ=GMT0";
9865 char TZ_PST8[] = "TZ=PST8";
9868 time_t now = time ((time_t *) 0);
9869 int hour_GMT0, hour_unset;
9870 if (putenv (TZ_GMT0) != 0)
9872 hour_GMT0 = localtime (&now)->tm_hour;
9874 hour_unset = localtime (&now)->tm_hour;
9875 if (putenv (TZ_PST8) != 0)
9877 if (localtime (&now)->tm_hour == hour_GMT0)
9880 if (localtime (&now)->tm_hour != hour_unset)
9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9887 emacs_cv_localtime_cache=no
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9893 emacs_cv_localtime_cache=yes
9897 # If we lack tzset, report that localtime does not cache TZ,
9898 # since we can't invalidate the cache if we don't have tzset.
9899 emacs_cv_localtime_cache=no
9901 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9902 if test $emacs_cv_localtime_cache = yes; then
9903 { test "$extra_verbose" = "yes" && cat << \EOF
9904 Defining LOCALTIME_CACHE
9906 cat >> confdefs.h <<\EOF
9907 #define LOCALTIME_CACHE 1
9913 if test "$HAVE_TIMEVAL" = "yes"; then
9914 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9915 echo "configure:9916: checking whether gettimeofday accepts one or two arguments" >&5
9916 cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9920 #ifdef TIME_WITH_SYS_TIME
9921 #include <sys/time.h>
9924 #ifdef HAVE_SYS_TIME_H
9925 #include <sys/time.h>
9933 struct timeval time;
9934 struct timezone dummy;
9935 gettimeofday (&time, &dummy);
9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9941 echo "$ac_t""two" 1>&6
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9946 echo "$ac_t""one" 1>&6
9947 { test "$extra_verbose" = "yes" && cat << \EOF
9948 Defining GETTIMEOFDAY_ONE_ARGUMENT
9950 cat >> confdefs.h <<\EOF
9951 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9960 echo $ac_n "checking for inline""... $ac_c" 1>&6
9961 echo "configure:9962: checking for inline" >&5
9964 for ac_kw in inline __inline__ __inline; do
9965 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9973 if { (eval echo configure:9974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9975 ac_cv_c_inline=$ac_kw; break
9977 echo "configure: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9984 echo "$ac_t""$ac_cv_c_inline" 1>&6
9985 case "$ac_cv_c_inline" in
9987 no) { test "$extra_verbose" = "yes" && cat << \EOF
9990 cat >> confdefs.h <<\EOF
9995 *) { test "$extra_verbose" = "yes" && cat << EOF
9996 Defining inline = $ac_cv_c_inline
9998 cat >> confdefs.h <<EOF
9999 #define inline $ac_cv_c_inline
10005 if test "$ac_cv_c_inline" != "no"; then
10006 { test "$extra_verbose" = "yes" && cat << \EOF
10007 Defining HAVE_INLINE
10009 cat >> confdefs.h <<\EOF
10010 #define HAVE_INLINE 1
10014 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
10015 echo " xemacs will be linked with \"inline.o\""
10020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10021 # for constant arguments. Useless!
10022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
10023 echo "configure:10024: checking for working alloca.h" >&5
10025 cat > conftest.$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10028 #include <alloca.h>
10030 char *p = alloca(2 * sizeof(int));
10033 if { (eval echo configure:10034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10035 ac_cv_header_alloca_h=yes
10037 echo "configure: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10040 ac_cv_header_alloca_h=no
10044 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
10045 if test $ac_cv_header_alloca_h = yes; then
10046 { test "$extra_verbose" = "yes" && cat << \EOF
10047 Defining HAVE_ALLOCA_H
10049 cat >> confdefs.h <<\EOF
10050 #define HAVE_ALLOCA_H 1
10056 echo $ac_n "checking for alloca""... $ac_c" 1>&6
10057 echo "configure:10058: checking for alloca" >&5
10059 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10064 # define alloca __builtin_alloca
10067 # include <malloc.h>
10068 # define alloca _alloca
10071 # include <alloca.h>
10076 # ifndef alloca /* predefined by HP cc +Olibcalls */
10085 char *p = (char *) alloca(1);
10088 if { (eval echo configure:10089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10090 ac_cv_func_alloca_works=yes
10092 echo "configure: failed program was:" >&5
10093 cat conftest.$ac_ext >&5
10095 ac_cv_func_alloca_works=no
10099 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
10100 if test $ac_cv_func_alloca_works = yes; then
10101 { test "$extra_verbose" = "yes" && cat << \EOF
10102 Defining HAVE_ALLOCA
10104 cat >> confdefs.h <<\EOF
10105 #define HAVE_ALLOCA 1
10111 if test $ac_cv_func_alloca_works = no; then
10112 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10113 # that cause trouble. Some versions do not even contain alloca or
10114 # contain a buggy version. If you still want to use their alloca,
10115 # use ar to extract alloca.o from them instead of compiling alloca.c.
10116 ALLOCA=alloca.${ac_objext}
10117 { test "$extra_verbose" = "yes" && cat << \EOF
10120 cat >> confdefs.h <<\EOF
10126 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10127 echo "configure:10128: checking whether alloca needs Cray hooks" >&5
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10132 #if defined(CRAY) && ! defined(CRAY2)
10139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10140 egrep "webecray" >/dev/null 2>&1; then
10150 echo "$ac_t""$ac_cv_os_cray" 1>&6
10151 if test $ac_cv_os_cray = yes; then
10152 for ac_func in _getb67 GETB67 getb67; do
10153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10154 echo "configure:10155: checking for $ac_func" >&5
10156 cat > conftest.$ac_ext <<EOF
10157 #line 10158 "configure"
10158 #include "confdefs.h"
10159 /* System header to define __stub macros and hopefully few prototypes,
10160 which can conflict with char $ac_func(); below. */
10161 #include <assert.h>
10162 /* Override any gcc2 internal prototype to avoid an error. */
10163 /* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10169 /* The GNU C library defines this for functions which it implements
10170 to always fail with ENOSYS. Some functions are actually named
10171 something starting with __ and the normal name is an alias. */
10172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10180 if { (eval echo configure:10181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10182 eval "ac_cv_func_$ac_func=yes"
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10187 eval "ac_cv_func_$ac_func=no"
10191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10192 echo "$ac_t""yes" 1>&6
10193 { test "$extra_verbose" = "yes" && cat << EOF
10194 Defining CRAY_STACKSEG_END = $ac_func
10196 cat >> confdefs.h <<EOF
10197 #define CRAY_STACKSEG_END $ac_func
10203 echo "$ac_t""no" 1>&6
10209 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10210 echo "configure:10211: checking stack direction for C alloca" >&5
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 find_stack_direction ()
10217 static char *addr = 0;
10222 return find_stack_direction ();
10225 return (&dummy > addr) ? 1 : -1;
10229 exit (find_stack_direction() < 0);
10232 if { (eval echo configure:10233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10234 ac_cv_c_stack_direction=1
10237 echo "configure: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10240 ac_cv_c_stack_direction=-1
10244 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
10245 { test "$extra_verbose" = "yes" && cat << EOF
10246 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
10248 cat >> confdefs.h <<EOF
10249 #define STACK_DIRECTION $ac_cv_c_stack_direction
10255 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
10256 echo " xemacs will be linked with \"$ALLOCA\""
10259 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10260 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10261 echo "configure:10262: checking for vfork.h" >&5
10263 cat > conftest.$ac_ext <<EOF
10264 #line 10265 "configure"
10265 #include "confdefs.h"
10268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10269 { (eval echo configure:10270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10271 if test -z "$ac_err"; then
10273 eval "ac_cv_header_$ac_safe=yes"
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10279 eval "ac_cv_header_$ac_safe=no"
10282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10283 echo "$ac_t""yes" 1>&6
10284 { test "$extra_verbose" = "yes" && cat << \EOF
10285 Defining HAVE_VFORK_H
10287 cat >> confdefs.h <<\EOF
10288 #define HAVE_VFORK_H 1
10293 echo "$ac_t""no" 1>&6
10296 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10297 echo "configure:10298: checking for working vfork" >&5
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10301 "configure"
10301 #include "confdefs.h"
10302 /* Thanks to Paul Eggert for this test. */
10304 #include <sys/types.h>
10305 #include <sys/stat.h>
10306 #ifdef HAVE_UNISTD_H
10307 #include <unistd.h>
10309 #ifdef HAVE_VFORK_H
10312 /* On some sparc systems, changes by the child to local and incoming
10313 argument registers are propagated back to the parent.
10314 The compiler is told about this with #include <vfork.h>,
10315 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
10316 Test for this by using a static variable whose address
10317 is put into a register that is clobbered by the vfork. */
10320 sparc_address_test (int arg)
10322 sparc_address_test (arg) int arg;
10325 static pid_t child;
10340 pid_t parent = getpid ();
10343 sparc_address_test ();
10348 /* Here is another test for sparc vfork register problems.
10349 This test uses lots of local variables, at least
10350 as many local variables as main has allocated so far
10351 including compiler temporaries. 4 locals are enough for
10352 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
10353 A buggy compiler should reuse the register of parent
10354 for one of the local variables, since it will think that
10355 parent can't possibly be used any more in this routine.
10356 Assigning to the local variable will thus munge parent
10357 in the parent process. */
10359 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10360 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10361 /* Convince the compiler that p..p7 are live; otherwise, it might
10362 use the same hardware register for all 8 local variables. */
10363 if (p != p1 || p != p2 || p != p3 || p != p4
10364 || p != p5 || p != p6 || p != p7)
10367 /* On some systems (e.g. IRIX 3.3),
10368 vfork doesn't separate parent from child file descriptors.
10369 If the child closes a descriptor before it execs or exits,
10370 this munges the parent's descriptor as well.
10371 Test for this by closing stdout in the child. */
10372 _exit(close(fileno(stdout)) != 0);
10377 while (wait(&status) != child)
10380 /* Was there some problem with vforking? */
10383 /* Did the child fail? (This shouldn't happen.) */
10386 /* Did the vfork/compiler bug occur? */
10387 || parent != getpid()
10389 /* Did the file descriptor bug occur? */
10390 || fstat(fileno(stdout), &st) != 0
10395 if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10397 ac_cv_func_vfork_works=yes
10400 echo "configure: failed program was:" >&5
10401 cat conftest.$ac_ext >&5
10403 ac_cv_func_vfork_works=no
10407 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
10408 if test $ac_cv_func_vfork_works = no; then
10409 { test "$extra_verbose" = "yes" && cat << \EOF
10410 Defining vfork = fork
10412 cat >> confdefs.h <<\EOF
10420 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10421 echo "configure:10422: checking for working strcoll" >&5
10423 cat > conftest.$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10426 #include <string.h>
10429 exit (strcoll ("abc", "def") >= 0 ||
10430 strcoll ("ABC", "DEF") >= 0 ||
10431 strcoll ("123", "456") >= 0);
10434 if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10436 ac_cv_func_strcoll_works=yes
10439 echo "configure: failed program was:" >&5
10440 cat conftest.$ac_ext >&5
10442 ac_cv_func_strcoll_works=no
10446 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
10447 if test $ac_cv_func_strcoll_works = yes; then
10448 { test "$extra_verbose" = "yes" && cat << \EOF
10449 Defining HAVE_STRCOLL
10451 cat >> confdefs.h <<\EOF
10452 #define HAVE_STRCOLL 1
10459 for ac_func in getpgrp
10461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10462 echo "configure:10463: checking for $ac_func" >&5
10464 cat > conftest.$ac_ext <<EOF
10465 #line 10466 "configure"
10466 #include "confdefs.h"
10467 /* System header to define __stub macros and hopefully few prototypes,
10468 which can conflict with char $ac_func(); below. */
10469 #include <assert.h>
10470 /* Override any gcc2 internal prototype to avoid an error. */
10471 /* We use char because int might match the return type of a gcc2
10472 builtin and then its argument prototype would still apply. */
10477 /* The GNU C library defines this for functions which it implements
10478 to always fail with ENOSYS. Some functions are actually named
10479 something starting with __ and the normal name is an alias. */
10480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10488 if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10490 eval "ac_cv_func_$ac_func=yes"
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10495 eval "ac_cv_func_$ac_func=no"
10499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10500 echo "$ac_t""yes" 1>&6
10501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10502 { test "$extra_verbose" = "yes" && cat << EOF
10503 Defining $ac_tr_func
10505 cat >> confdefs.h <<EOF
10506 #define $ac_tr_func 1
10511 echo "$ac_t""no" 1>&6
10515 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10516 echo "configure:10517: checking whether getpgrp takes no argument" >&5
10518 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10523 * If this system has a BSD-style getpgrp(),
10524 * which takes a pid argument, exit unsuccessfully.
10526 * Snarfed from Chet Ramey's bash pgrp.c test program
10529 #include <sys/types.h>
10532 int pg1, pg2, pg3, pg4;
10533 int ng, np, s, child;
10540 pg3 = getpgrp(pid);
10544 * If all of these values are the same, it's pretty sure that
10545 * we're on a system that ignores getpgrp's first argument.
10547 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10553 else if (child == 0) {
10556 * If this is Sys V, this will not work; pgrp will be
10557 * set to np because setpgrp just changes a pgrp to be
10558 * the same as the pid.
10561 ng = getpgrp(0); /* Same result for Sys V and BSD */
10574 if { (eval echo configure:10575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10576 ac_cv_func_getpgrp_void=yes
10579 echo "configure: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10582 ac_cv_func_getpgrp_void=no
10587 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10588 if test $ac_cv_func_getpgrp_void = yes; then
10589 { test "$extra_verbose" = "yes" && cat << \EOF
10590 Defining GETPGRP_VOID
10592 cat >> confdefs.h <<\EOF
10593 #define GETPGRP_VOID 1
10600 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10601 echo "configure:10602: checking for working mmap" >&5
10602 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10603 cat > conftest.$ac_ext <<EOF
10604 #line 10605 "configure"
10605 #include "confdefs.h"
10607 #include <unistd.h>
10609 #include <sys/mman.h>
10611 #ifndef MAP_VARIABLE
10612 #define MAP_VARIABLE 0
10616 #define MAP_FAILED -1
10619 int main (int argc, char *argv[])
10623 #ifndef MAP_ANONYMOUS
10624 fd = open ("/dev/zero", O_RDWR);
10627 #define MAP_ANONYMOUS 0
10629 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10630 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10631 fd, 0) != (void *) MAP_FAILED)
10633 perror ("conftest: mmap failed");
10637 if { (eval echo configure:10638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10647 rm -fr conftest* ;;
10649 echo "$ac_t""$have_mmap" 1>&6
10650 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10653 cat >> confdefs.h <<\EOF
10654 #define HAVE_MMAP 1
10659 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10660 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10661 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10664 cat >> confdefs.h <<\EOF
10665 #define REL_ALLOC 1
10670 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10671 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10672 echo "configure:10673: checking for termios.h" >&5
10674 cat > conftest.$ac_ext <<EOF
10675 #line 10676 "configure"
10676 #include "confdefs.h"
10677 #include <termios.h>
10679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10680 { (eval echo configure:10681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10682 if test -z "$ac_err"; then
10684 eval "ac_cv_header_$ac_safe=yes"
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10690 eval "ac_cv_header_$ac_safe=no"
10693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10694 echo "$ac_t""yes" 1>&6
10695 { test "$extra_verbose" = "yes" && cat << \EOF
10696 Defining HAVE_TERMIOS
10698 cat >> confdefs.h <<\EOF
10699 #define HAVE_TERMIOS 1
10703 { test "$extra_verbose" = "yes" && cat << \EOF
10704 Defining SIGNALS_VIA_CHARACTERS
10706 cat >> confdefs.h <<\EOF
10707 #define SIGNALS_VIA_CHARACTERS 1
10711 { test "$extra_verbose" = "yes" && cat << \EOF
10714 cat >> confdefs.h <<\EOF
10715 #define NO_TERMIO 1
10720 echo "$ac_t""no" 1>&6
10721 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10722 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10723 echo "configure:10724: checking for termio.h" >&5
10725 cat > conftest.$ac_ext <<EOF
10726 #line 10727 "configure"
10727 #include "confdefs.h"
10728 #include <termio.h>
10730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10731 { (eval echo configure:10732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10733 if test -z "$ac_err"; then
10735 eval "ac_cv_header_$ac_safe=yes"
10738 echo "configure: failed program was:" >&5
10739 cat conftest.$ac_ext >&5
10741 eval "ac_cv_header_$ac_safe=no"
10744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10745 echo "$ac_t""yes" 1>&6
10746 { test "$extra_verbose" = "yes" && cat << \EOF
10747 Defining HAVE_TERMIO
10749 cat >> confdefs.h <<\EOF
10750 #define HAVE_TERMIO 1
10755 echo "$ac_t""no" 1>&6
10762 echo $ac_n "checking for socket""... $ac_c" 1>&6
10763 echo "configure:10764: checking for socket" >&5
10765 cat > conftest.$ac_ext <<EOF
10766 #line 10767 "configure"
10767 #include "confdefs.h"
10768 /* System header to define __stub macros and hopefully few prototypes,
10769 which can conflict with char socket(); below. */
10770 #include <assert.h>
10771 /* Override any gcc2 internal prototype to avoid an error. */
10772 /* We use char because int might match the return type of a gcc2
10773 builtin and then its argument prototype would still apply. */
10778 /* The GNU C library defines this for functions which it implements
10779 to always fail with ENOSYS. Some functions are actually named
10780 something starting with __ and the normal name is an alias. */
10781 #if defined (__stub_socket) || defined (__stub___socket)
10789 if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10791 eval "ac_cv_func_socket=yes"
10793 echo "configure: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10796 eval "ac_cv_func_socket=no"
10800 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10801 echo "$ac_t""yes" 1>&6
10802 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10803 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10804 echo "configure:10805: checking for netinet/in.h" >&5
10806 cat > conftest.$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10809 #include <netinet/in.h>
10811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10812 { (eval echo configure:10813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10814 if test -z "$ac_err"; then
10816 eval "ac_cv_header_$ac_safe=yes"
10819 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5
10822 eval "ac_cv_header_$ac_safe=no"
10825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10826 echo "$ac_t""yes" 1>&6
10827 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10828 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10829 echo "configure:10830: checking for arpa/inet.h" >&5
10831 cat > conftest.$ac_ext <<EOF
10832 #line 10833 "configure"
10833 #include "confdefs.h"
10834 #include <arpa/inet.h>
10836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10837 { (eval echo configure:10838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10839 if test -z "$ac_err"; then
10841 eval "ac_cv_header_$ac_safe=yes"
10844 echo "configure: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10847 eval "ac_cv_header_$ac_safe=no"
10850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10851 echo "$ac_t""yes" 1>&6
10853 { test "$extra_verbose" = "yes" && cat << \EOF
10854 Defining HAVE_SOCKETS
10856 cat >> confdefs.h <<\EOF
10857 #define HAVE_SOCKETS 1
10861 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10862 echo "configure:10863: checking "for sun_len member in struct sockaddr_un"" >&5
10863 cat > conftest.$ac_ext <<EOF
10864 #line 10865 "configure"
10865 #include "confdefs.h"
10867 #include <sys/types.h>
10868 #include <sys/socket.h>
10869 #include <sys/un.h>
10872 static struct sockaddr_un x; x.sun_len = 1;
10875 if { (eval echo configure:10876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10877 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10878 Defining HAVE_SOCKADDR_SUN_LEN
10880 cat >> confdefs.h <<\EOF
10881 #define HAVE_SOCKADDR_SUN_LEN 1
10886 echo "configure: failed program was:" >&5
10887 cat conftest.$ac_ext >&5
10889 echo "$ac_t""no" 1>&6
10892 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10893 echo "configure:10894: checking "for ip_mreq struct in netinet/in.h"" >&5
10894 cat > conftest.$ac_ext <<EOF
10895 #line 10896 "configure"
10896 #include "confdefs.h"
10898 #include <sys/types.h>
10899 #include <netinet/in.h>
10902 static struct ip_mreq x;
10905 if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10907 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10908 Defining HAVE_MULTICAST
10910 cat >> confdefs.h <<\EOF
10911 #define HAVE_MULTICAST 1
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10919 echo "$ac_t""no" 1>&6
10923 echo "$ac_t""no" 1>&6
10927 echo "$ac_t""no" 1>&6
10931 echo "$ac_t""no" 1>&6
10935 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10936 echo "configure:10937: checking for msgget" >&5
10938 cat > conftest.$ac_ext <<EOF
10939 #line 10940 "configure"
10940 #include "confdefs.h"
10941 /* System header to define __stub macros and hopefully few prototypes,
10942 which can conflict with char msgget(); below. */
10943 #include <assert.h>
10944 /* Override any gcc2 internal prototype to avoid an error. */
10945 /* We use char because int might match the return type of a gcc2
10946 builtin and then its argument prototype would still apply. */
10951 /* The GNU C library defines this for functions which it implements
10952 to always fail with ENOSYS. Some functions are actually named
10953 something starting with __ and the normal name is an alias. */
10954 #if defined (__stub_msgget) || defined (__stub___msgget)
10962 if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10964 eval "ac_cv_func_msgget=yes"
10966 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10969 eval "ac_cv_func_msgget=no"
10973 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10974 echo "$ac_t""yes" 1>&6
10975 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10976 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10977 echo "configure:10978: checking for sys/ipc.h" >&5
10979 cat > conftest.$ac_ext <<EOF
10980 #line 10981 "configure"
10981 #include "confdefs.h"
10982 #include <sys/ipc.h>
10984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10985 { (eval echo configure:10986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10987 if test -z "$ac_err"; then
10989 eval "ac_cv_header_$ac_safe=yes"
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10995 eval "ac_cv_header_$ac_safe=no"
10998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10999 echo "$ac_t""yes" 1>&6
11000 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
11001 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
11002 echo "configure:11003: checking for sys/msg.h" >&5
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11007 #include <sys/msg.h>
11009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11010 { (eval echo configure:11011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11012 if test -z "$ac_err"; then
11014 eval "ac_cv_header_$ac_safe=yes"
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11020 eval "ac_cv_header_$ac_safe=no"
11023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11024 echo "$ac_t""yes" 1>&6
11025 { test "$extra_verbose" = "yes" && cat << \EOF
11026 Defining HAVE_SYSVIPC
11028 cat >> confdefs.h <<\EOF
11029 #define HAVE_SYSVIPC 1
11034 echo "$ac_t""no" 1>&6
11038 echo "$ac_t""no" 1>&6
11042 echo "$ac_t""no" 1>&6
11046 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
11047 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
11048 echo "configure:11049: checking for dirent.h" >&5
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11053 #include <dirent.h>
11055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11056 { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11058 if test -z "$ac_err"; then
11060 eval "ac_cv_header_$ac_safe=yes"
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11066 eval "ac_cv_header_$ac_safe=no"
11069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11070 echo "$ac_t""yes" 1>&6
11071 { test "$extra_verbose" = "yes" && cat << \EOF
11072 Defining SYSV_SYSTEM_DIR
11074 cat >> confdefs.h <<\EOF
11075 #define SYSV_SYSTEM_DIR 1
11080 echo "$ac_t""no" 1>&6
11081 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11082 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11083 echo "configure:11084: checking for sys/dir.h" >&5
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11088 #include <sys/dir.h>
11090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11091 { (eval echo configure:11092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11093 if test -z "$ac_err"; then
11095 eval "ac_cv_header_$ac_safe=yes"
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11101 eval "ac_cv_header_$ac_safe=no"
11104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11105 echo "$ac_t""yes" 1>&6
11108 echo "$ac_t""no" 1>&6
11109 { test "$extra_verbose" = "yes" && cat << \EOF
11110 Defining NONSYSTEM_DIR_LIBRARY
11112 cat >> confdefs.h <<\EOF
11113 #define NONSYSTEM_DIR_LIBRARY 1
11122 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11123 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11124 echo "configure:11125: checking for nlist.h" >&5
11126 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11132 { (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11134 if test -z "$ac_err"; then
11136 eval "ac_cv_header_$ac_safe=yes"
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11142 eval "ac_cv_header_$ac_safe=no"
11145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11147 { test "$extra_verbose" = "yes" && cat << \EOF
11148 Defining NLIST_STRUCT
11150 cat >> confdefs.h <<\EOF
11151 #define NLIST_STRUCT 1
11156 echo "$ac_t""no" 1>&6
11161 echo "checking "for sound support"" 1>&6
11162 echo "configure:11163: checking "for sound support"" >&5
11163 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11165 if test "$with_native_sound" != "no"; then
11166 if test -n "$native_sound_lib"; then
11167 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11168 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11169 echo "configure:11170: checking for multimedia/audio_device.h" >&5
11171 cat > conftest.$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11174 #include <multimedia/audio_device.h>
11176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11177 { (eval echo configure:11178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11179 if test -z "$ac_err"; then
11181 eval "ac_cv_header_$ac_safe=yes"
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11187 eval "ac_cv_header_$ac_safe=no"
11190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11191 echo "$ac_t""yes" 1>&6
11192 sound_found=yes sound_cflags=""
11193 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11194 echo " xemacs will be linked with \"sunplay.o\""
11197 echo "$ac_t""no" 1>&6
11202 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
11204 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11205 echo " xemacs will be linked with \"sunplay.o\""
11207 if test -d "/usr/demo/SOUND/include"
11208 then sound_cflags="-I/usr/demo/SOUND/include"
11209 else sound_cflags="-I/usr/demo/SOUND"
11211 if test -z "$native_sound_lib" ; then
11212 if test -r "/usr/demo/SOUND/lib/libaudio.a"
11213 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
11214 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
11219 if test -z "$sound_found"; then
11220 case "$canonical" in
11222 if test -z "$native_sound_lib"; then
11224 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11225 echo "configure:11226: checking for ALopenport in -laudio" >&5
11226 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11228 xe_check_libs=" -laudio "
11229 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure"
11231 #include "confdefs.h"
11232 /* Override any gcc2 internal prototype to avoid an error. */
11233 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */
11241 if { (eval echo configure:11242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11243 eval "ac_cv_lib_$ac_lib_var=yes"
11245 echo "configure: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11248 eval "ac_cv_lib_$ac_lib_var=no"
11253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11254 echo "$ac_t""yes" 1>&6
11255 native_sound_lib="-laudio"
11257 echo "$ac_t""no" 1>&6
11262 if test -n "$native_sound_lib"; then
11263 sound_found=yes sound_cflags=""
11264 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
11265 echo " xemacs will be linked with \"sgiplay.o\""
11269 if test -z "$native_sound_lib"; then
11271 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11272 echo "configure:11273: checking for AOpenAudio in -lAlib" >&5
11273 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11275 xe_check_libs=" -lAlib "
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11278 "configure"
11278 #include "confdefs.h"
11279 /* Override any gcc2 internal prototype to avoid an error. */
11280 /* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
11288 if { (eval echo configure:11289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11290 eval "ac_cv_lib_$ac_lib_var=yes"
11292 echo "configure: failed program was:" >&5
11293 cat conftest.$ac_ext >&5
11295 eval "ac_cv_lib_$ac_lib_var=no"
11300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11301 echo "$ac_t""yes" 1>&6
11302 native_sound_lib="-lAlib"
11304 echo "$ac_t""no" 1>&6
11309 if test -n "$native_sound_lib"; then
11311 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
11312 echo " xemacs will be linked with \"hpplay.o\""
11314 if test "$GCC" = "yes" # Kludge city
11315 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
11316 else sound_cflags="+e -I/usr/audio/examples"
11322 if test -z "$sound_found"; then
11323 for dir in "machine" "sys" "linux"; do
11324 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11325 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11326 echo "configure:11327: checking for ${dir}/soundcard.h" >&5
11328 cat > conftest.$ac_ext <<EOF
11329 #line 11330 "configure"
11330 #include "confdefs.h"
11331 #include <${dir}/soundcard.h>
11333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11334 { (eval echo configure:11335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11336 if test -z "$ac_err"; then
11338 eval "ac_cv_header_$ac_safe=yes"
11341 echo "configure: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11344 eval "ac_cv_header_$ac_safe=no"
11347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11348 echo "$ac_t""yes" 1>&6
11351 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
11352 echo " xemacs will be linked with \"linuxplay.o\""
11354 { test "$extra_verbose" = "yes" && cat << EOF
11355 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
11357 cat >> confdefs.h <<EOF
11358 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
11364 echo "$ac_t""no" 1>&6
11370 test "$sound_found" = "yes" && with_native_sound=yes
11373 if test "$with_native_sound" = "yes"; then
11374 { test "$extra_verbose" = "yes" && cat << \EOF
11375 Defining HAVE_NATIVE_SOUND
11377 cat >> confdefs.h <<\EOF
11378 #define HAVE_NATIVE_SOUND 1
11382 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
11385 if test "$with_nas_sound" != "no"; then
11386 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11387 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11388 echo "configure:11389: checking for audio/audiolib.h" >&5
11390 cat > conftest.$ac_ext <<EOF
11391 #line 11392 "configure"
11392 #include "confdefs.h"
11393 #include <audio/audiolib.h>
11395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11396 { (eval echo configure:11397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11398 if test -z "$ac_err"; then
11400 eval "ac_cv_header_$ac_safe=yes"
11403 echo "configure: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11406 eval "ac_cv_header_$ac_safe=no"
11409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11410 echo "$ac_t""yes" 1>&6
11413 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11414 echo "configure:11415: checking for AuOpenServer in -laudio" >&5
11415 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11417 xe_check_libs=" -laudio "
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11421 /* Override any gcc2 internal prototype to avoid an error. */
11422 /* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */
11424 char AuOpenServer();
11430 if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11432 eval "ac_cv_lib_$ac_lib_var=yes"
11434 echo "configure: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11437 eval "ac_cv_lib_$ac_lib_var=no"
11442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11443 echo "$ac_t""yes" 1>&6
11446 echo "$ac_t""no" 1>&6
11451 echo "$ac_t""no" 1>&6
11454 if test "$have_nas_sound" = "yes"; then
11456 { test "$extra_verbose" = "yes" && cat << \EOF
11457 Defining HAVE_NAS_SOUND
11459 cat >> confdefs.h <<\EOF
11460 #define HAVE_NAS_SOUND 1
11464 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11465 echo " xemacs will be linked with \"nas.o\""
11467 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11468 cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure"
11470 #include "confdefs.h"
11471 #include <audio/Xtutil.h>
11473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11474 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11478 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
11479 Defining NAS_NO_ERROR_JUMP
11481 cat >> confdefs.h <<\EOF
11482 #define NAS_NO_ERROR_JUMP 1
11490 test "$with_nas_sound" = "yes" && \
11491 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11496 if test "$with_esd_sound" != "no"; then
11497 # Extract the first word of "esd-config", so it can be a program name with args.
11498 set dummy esd-config; ac_word=$2
11499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11500 echo "configure:11501: checking for $ac_word" >&5
11502 if test -n "$have_esd_config"; then
11503 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11507 for ac_dir in $ac_dummy; do
11508 test -z "$ac_dir" && ac_dir=.
11509 if test -f $ac_dir/$ac_word; then
11510 ac_cv_prog_have_esd_config="yes"
11515 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11517 have_esd_config="$ac_cv_prog_have_esd_config"
11518 if test -n "$have_esd_config"; then
11519 echo "$ac_t""$have_esd_config" 1>&6
11521 echo "$ac_t""no" 1>&6
11524 if test "$have_esd_config" = "yes"; then
11525 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11526 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
11527 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11528 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11529 echo "configure:11530: checking for esd_play_stream" >&5
11531 cat > conftest.$ac_ext <<EOF
11532 #line 11533 "configure"
11533 #include "confdefs.h"
11534 /* System header to define __stub macros and hopefully few prototypes,
11535 which can conflict with char esd_play_stream(); below. */
11536 #include <assert.h>
11537 /* Override any gcc2 internal prototype to avoid an error. */
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11540 char esd_play_stream();
11544 /* The GNU C library defines this for functions which it implements
11545 to always fail with ENOSYS. Some functions are actually named
11546 something starting with __ and the normal name is an alias. */
11547 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11555 if { (eval echo configure:11556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11557 eval "ac_cv_func_esd_play_stream=yes"
11559 echo "configure: failed program was:" >&5
11560 cat conftest.$ac_ext >&5
11562 eval "ac_cv_func_esd_play_stream=no"
11566 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11567 echo "$ac_t""yes" 1>&6
11570 echo "$ac_t""no" 1>&6
11571 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11576 if test "$have_esd_sound" = "yes"; then
11579 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11580 echo " xemacs will be linked with \"esd.o\""
11582 { test "$extra_verbose" = "yes" && cat << \EOF
11583 Defining HAVE_ESD_SOUND
11585 cat >> confdefs.h <<\EOF
11586 #define HAVE_ESD_SOUND 1
11591 test "$with_esd_sound" = "yes" && \
11592 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11597 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
11598 echo " xemacs will be linked with \"miscplay.o\""
11602 test -z "$with_tty" && with_tty=yes
11604 if test "$with_tty" = "yes" ; then
11605 echo "checking for TTY-related features" 1>&6
11606 echo "configure:11607: checking for TTY-related features" >&5
11607 { test "$extra_verbose" = "yes" && cat << \EOF
11610 cat >> confdefs.h <<\EOF
11615 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
11616 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\""
11619 if test -z "$with_ncurses"; then
11621 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11622 echo "configure:11623: checking for tgetent in -lncurses" >&5
11623 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11625 xe_check_libs=" -lncurses "
11626 cat > conftest.$ac_ext <<EOF
11627 #line 11628 "configure"
11628 #include "confdefs.h"
11629 /* Override any gcc2 internal prototype to avoid an error. */
11630 /* We use char because int might match the return type of a gcc2
11631 builtin and then its argument prototype would still apply. */
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11640 eval "ac_cv_lib_$ac_lib_var=yes"
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11645 eval "ac_cv_lib_$ac_lib_var=no"
11650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11651 echo "$ac_t""yes" 1>&6
11654 echo "$ac_t""no" 1>&6
11660 if test "$with_ncurses" = "yes"; then
11661 { test "$extra_verbose" = "yes" && cat << \EOF
11662 Defining HAVE_NCURSES
11664 cat >> confdefs.h <<\EOF
11665 #define HAVE_NCURSES 1
11669 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11670 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11671 echo "configure:11672: checking for ncurses/curses.h" >&5
11673 cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure"
11675 #include "confdefs.h"
11676 #include <ncurses/curses.h>
11678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11679 { (eval echo configure:11680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11681 if test -z "$ac_err"; then
11683 eval "ac_cv_header_$ac_safe=yes"
11686 echo "configure: failed program was:" >&5
11687 cat conftest.$ac_ext >&5
11689 eval "ac_cv_header_$ac_safe=no"
11692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11693 echo "$ac_t""yes" 1>&6
11694 curses_h_path=ncurses/curses.h
11696 echo "$ac_t""no" 1>&6
11699 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11700 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11701 echo "configure:11702: checking for ncurses/term.h" >&5
11703 cat > conftest.$ac_ext <<EOF
11704 #line 11705 "configure"
11705 #include "confdefs.h"
11706 #include <ncurses/term.h>
11708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11709 { (eval echo configure:11710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11711 if test -z "$ac_err"; then
11713 eval "ac_cv_header_$ac_safe=yes"
11716 echo "configure: failed program was:" >&5
11717 cat conftest.$ac_ext >&5
11719 eval "ac_cv_header_$ac_safe=no"
11722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11723 echo "$ac_t""yes" 1>&6
11724 term_h_path=ncurses/term.h
11726 echo "$ac_t""no" 1>&6
11729 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11730 echo " xemacs will be linked with \"terminfo.o\""
11732 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11734 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11735 save_c_switch_site="$c_switch_site"
11736 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11737 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11738 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11739 echo "configure:11740: checking for ncurses/curses.h" >&5
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11743 "configure"
11743 #include "confdefs.h"
11744 #include <ncurses/curses.h>
11746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11747 { (eval echo configure:11748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11749 if test -z "$ac_err"; then
11751 eval "ac_cv_header_$ac_safe=yes"
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11757 eval "ac_cv_header_$ac_safe=no"
11760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 curses_h_path=ncurses/curses.h
11764 echo "$ac_t""no" 1>&6
11767 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11768 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11769 else c_switch_site="$save_c_switch_site"
11772 else if test "$have_terminfo" = "yes"; then
11773 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11774 echo " xemacs will be linked with \"terminfo.o\""
11776 if test -n "$libs_termcap"; then
11777 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11779 for lib in curses termlib termcap; do
11781 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11782 echo "configure:11783: checking for tgetent in -l$lib" >&5
11783 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11785 xe_check_libs=" -l$lib "
11786 cat > conftest.$ac_ext <<EOF
11787 #line 11788 "configure"
11788 #include "confdefs.h"
11789 /* Override any gcc2 internal prototype to avoid an error. */
11790 /* We use char because int might match the return type of a gcc2
11791 builtin and then its argument prototype would still apply. */
11798 if { (eval echo configure:11799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11800 eval "ac_cv_lib_$ac_lib_var=yes"
11802 echo "configure: failed program was:" >&5
11803 cat conftest.$ac_ext >&5
11805 eval "ac_cv_lib_$ac_lib_var=no"
11810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11811 echo "$ac_t""yes" 1>&6
11812 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11814 echo "$ac_t""no" 1>&6
11820 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11821 echo " xemacs will be linked with \"tparam.o\""
11823 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11824 if test -n "$libs_termcap"; then
11825 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11828 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11829 echo "configure:11830: checking for tgetent in -lcurses" >&5
11830 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11832 xe_check_libs=" -lcurses "
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836 /* Override any gcc2 internal prototype to avoid an error. */
11837 /* We use char because int might match the return type of a gcc2
11838 builtin and then its argument prototype would still apply. */
11845 if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11847 eval "ac_cv_lib_$ac_lib_var=yes"
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11852 eval "ac_cv_lib_$ac_lib_var=no"
11857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11858 echo "$ac_t""yes" 1>&6
11859 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11861 echo "$ac_t""no" 1>&6
11862 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11863 echo "configure:11864: checking for tgetent in -ltermcap" >&5
11864 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11866 xe_check_libs=" -ltermcap "
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11870 /* Override any gcc2 internal prototype to avoid an error. */
11871 /* We use char because int might match the return type of a gcc2
11872 builtin and then its argument prototype would still apply. */
11879 if { (eval echo configure:11880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11881 eval "ac_cv_lib_$ac_lib_var=yes"
11883 echo "configure: failed program was:" >&5
11884 cat conftest.$ac_ext >&5
11886 eval "ac_cv_lib_$ac_lib_var=no"
11891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11892 echo "$ac_t""yes" 1>&6
11893 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11895 echo "$ac_t""no" 1>&6
11896 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11897 echo " xemacs will be linked with \"termcap.o\""
11908 { test "$extra_verbose" = "yes" && cat << EOF
11909 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11911 cat >> confdefs.h <<EOF
11912 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11916 { test "$extra_verbose" = "yes" && cat << EOF
11917 Defining TERM_H_PATH = "${term_h_path-term.h}"
11919 cat >> confdefs.h <<EOF
11920 #define TERM_H_PATH "${term_h_path-term.h}"
11925 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11926 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11927 echo "configure:11928: checking for gpm.h" >&5
11929 cat > conftest.$ac_ext <<EOF
11930 #line 11931 "configure"
11931 #include "confdefs.h"
11934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11935 { (eval echo configure:11936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11937 if test -z "$ac_err"; then
11939 eval "ac_cv_header_$ac_safe=yes"
11942 echo "configure: failed program was:" >&5
11943 cat conftest.$ac_ext >&5
11945 eval "ac_cv_header_$ac_safe=no"
11948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11949 echo "$ac_t""yes" 1>&6
11952 echo "$ac_t""no" 1>&6
11956 test -z "$with_gpm" && {
11957 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11958 echo "configure:11959: checking for Gpm_Open in -lgpm" >&5
11959 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11961 xe_check_libs=" -lgpm "
11962 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11965 /* Override any gcc2 internal prototype to avoid an error. */
11966 /* We use char because int might match the return type of a gcc2
11967 builtin and then its argument prototype would still apply. */
11974 if { (eval echo configure:11975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11976 eval "ac_cv_lib_$ac_lib_var=yes"
11978 echo "configure: failed program was:" >&5
11979 cat conftest.$ac_ext >&5
11981 eval "ac_cv_lib_$ac_lib_var=no"
11986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11987 echo "$ac_t""yes" 1>&6
11990 echo "$ac_t""no" 1>&6
11995 if test "$with_gpm" = "yes"; then
11996 { test "$extra_verbose" = "yes" && cat << \EOF
11999 cat >> confdefs.h <<\EOF
12004 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
12005 echo " xemacs will be linked with \"gpmevent.o\""
12007 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
12010 else for feature in ncurses gpm; do
12011 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
12012 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
12014 eval "with_${feature}=no"
12017 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
12018 echo " xemacs will be linked with \"event-unixoid.o\""
12022 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12023 != "no no no" && echo "checking for database support" 1>&6
12024 echo "configure:12025: checking for database support" >&5
12026 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
12027 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
12028 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
12029 echo "configure:12030: checking for ndbm.h" >&5
12031 cat > conftest.$ac_ext <<EOF
12032 #line 12033 "configure"
12033 #include "confdefs.h"
12036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12037 { (eval echo configure:12038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12039 if test -z "$ac_err"; then
12041 eval "ac_cv_header_$ac_safe=yes"
12044 echo "configure: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12047 eval "ac_cv_header_$ac_safe=no"
12050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12051 echo "$ac_t""yes" 1>&6
12054 echo "$ac_t""no" 1>&6
12056 test "$with_database_gdbm" = "yes" -o \
12057 "$with_database_dbm" = "yes" && \
12058 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12059 with_database_gdbm=no with_database_dbm=no
12064 if test "$with_database_gdbm" != "no"; then
12066 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
12067 echo "configure:12068: checking for dbm_open in -lgdbm" >&5
12068 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12070 xe_check_libs=" -lgdbm "
12071 cat > conftest.$ac_ext <<EOF
12072 #line 12073 "configure"
12073 #include "confdefs.h"
12074 /* Override any gcc2 internal prototype to avoid an error. */
12075 /* We use char because int might match the return type of a gcc2
12076 builtin and then its argument prototype would still apply. */
12083 if { (eval echo configure:12084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12085 eval "ac_cv_lib_$ac_lib_var=yes"
12087 echo "configure: failed program was:" >&5
12088 cat conftest.$ac_ext >&5
12090 eval "ac_cv_lib_$ac_lib_var=no"
12095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12096 echo "$ac_t""yes" 1>&6
12097 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
12099 echo "$ac_t""no" 1>&6
12100 if test "$with_database_gdbm" = "yes"; then
12101 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
12103 with_database_gdbm=no
12109 if test "$with_database_dbm" != "no"; then
12110 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12111 echo "configure:12112: checking for dbm_open" >&5
12113 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure"
12115 #include "confdefs.h"
12116 /* System header to define __stub macros and hopefully few prototypes,
12117 which can conflict with char dbm_open(); below. */
12118 #include <assert.h>
12119 /* Override any gcc2 internal prototype to avoid an error. */
12120 /* We use char because int might match the return type of a gcc2
12121 builtin and then its argument prototype would still apply. */
12126 /* The GNU C library defines this for functions which it implements
12127 to always fail with ENOSYS. Some functions are actually named
12128 something starting with __ and the normal name is an alias. */
12129 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12137 if { (eval echo configure:12138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12139 eval "ac_cv_func_dbm_open=yes"
12141 echo "configure: failed program was:" >&5
12142 cat conftest.$ac_ext >&5
12144 eval "ac_cv_func_dbm_open=no"
12148 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12149 echo "$ac_t""yes" 1>&6
12150 with_database_dbm=yes libdbm=
12152 echo "$ac_t""no" 1>&6
12155 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12156 echo "configure:12157: checking for dbm_open in -ldbm" >&5
12157 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12159 xe_check_libs=" -ldbm "
12160 cat > conftest.$ac_ext <<EOF
12161 #line 12162 "configure"
12162 #include "confdefs.h"
12163 /* Override any gcc2 internal prototype to avoid an error. */
12164 /* We use char because int might match the return type of a gcc2
12165 builtin and then its argument prototype would still apply. */
12172 if { (eval echo configure:12173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12174 eval "ac_cv_lib_$ac_lib_var=yes"
12176 echo "configure: failed program was:" >&5
12177 cat conftest.$ac_ext >&5
12179 eval "ac_cv_lib_$ac_lib_var=no"
12184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12185 echo "$ac_t""yes" 1>&6
12186 with_database_dbm=yes libdbm=-ldbm
12188 echo "$ac_t""no" 1>&6
12189 test "$with_database_dbm" = "yes" && \
12190 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12191 with_database_dbm=no
12199 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
12200 test "$with_database_gdbm" = "yes" -o \
12201 "$with_database_dbm" = "yes" && \
12202 { test "$extra_verbose" = "yes" && cat << \EOF
12205 cat >> confdefs.h <<\EOF
12211 if test "$with_database_berkdb" != "no"; then
12212 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12213 echo "configure:12214: checking for Berkeley db.h" >&5
12214 for path in "db/db.h" "db.h"; do
12215 cat > conftest.$ac_ext <<EOF
12216 #line 12217 "configure"
12217 #include "confdefs.h"
12218 #ifdef HAVE_INTTYPES_H
12219 #define __BIT_TYPES_DEFINED__
12220 #include <inttypes.h>
12221 typedef uint8_t u_int8_t;
12222 typedef uint16_t u_int16_t;
12223 typedef uint32_t u_int32_t;
12224 #ifdef WE_DONT_NEED_QUADS
12225 typedef uint64_t u_int64_t;
12234 if { (eval echo configure:12235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12236 db_h_path="$path"; break
12238 echo "configure: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12243 if test -z "$db_h_path"
12244 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
12245 else echo "$ac_t""$db_h_path" 1>&6
12248 if test "$with_database_berkdb" != "no"; then
12249 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12250 echo "configure:12251: checking for Berkeley DB version" >&5
12251 cat > conftest.$ac_ext <<EOF
12252 #line 12253 "configure"
12253 #include "confdefs.h"
12254 #include <$db_h_path>
12255 #if DB_VERSION_MAJOR > 1
12260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12261 egrep "yes" >/dev/null 2>&1; then
12263 echo "$ac_t""2" 1>&6; dbfunc=db_open
12266 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12270 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12271 echo "configure:12272: checking for $dbfunc" >&5
12273 cat > conftest.$ac_ext <<EOF
12274 #line 12275 "configure"
12275 #include "confdefs.h"
12276 /* System header to define __stub macros and hopefully few prototypes,
12277 which can conflict with char $dbfunc(); below. */
12278 #include <assert.h>
12279 /* Override any gcc2 internal prototype to avoid an error. */
12280 /* We use char because int might match the return type of a gcc2
12281 builtin and then its argument prototype would still apply. */
12286 /* The GNU C library defines this for functions which it implements
12287 to always fail with ENOSYS. Some functions are actually named
12288 something starting with __ and the normal name is an alias. */
12289 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
12297 if { (eval echo configure:12298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12299 eval "ac_cv_func_$dbfunc=yes"
12301 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12304 eval "ac_cv_func_$dbfunc=no"
12308 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
12309 echo "$ac_t""yes" 1>&6
12310 with_database_berkdb=yes need_libdb=no
12312 echo "$ac_t""no" 1>&6
12315 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12316 echo "configure:12317: checking for $dbfunc in -ldb" >&5
12317 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12319 xe_check_libs=" -ldb "
12320 cat > conftest.$ac_ext <<EOF
12321 #line 12322 "configure"
12322 #include "confdefs.h"
12323 /* Override any gcc2 internal prototype to avoid an error. */
12324 /* We use char because int might match the return type of a gcc2
12325 builtin and then its argument prototype would still apply. */
12332 if { (eval echo configure:12333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12334 eval "ac_cv_lib_$ac_lib_var=yes"
12336 echo "configure: failed program was:" >&5
12337 cat conftest.$ac_ext >&5
12339 eval "ac_cv_lib_$ac_lib_var=no"
12344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12345 echo "$ac_t""yes" 1>&6
12346 with_database_berkdb=yes need_libdb=yes
12348 echo "$ac_t""no" 1>&6
12356 if test "$with_database_berkdb" = "yes"; then
12357 { test "$extra_verbose" = "yes" && cat << EOF
12358 Defining DB_H_PATH = "$db_h_path"
12360 cat >> confdefs.h <<EOF
12361 #define DB_H_PATH "$db_h_path"
12365 { test "$extra_verbose" = "yes" && cat << \EOF
12366 Defining HAVE_BERKELEY_DB
12368 cat >> confdefs.h <<\EOF
12369 #define HAVE_BERKELEY_DB 1
12373 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
12374 else with_database_berkdb=no
12378 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12379 != "no no no"; then
12380 { test "$extra_verbose" = "yes" && cat << \EOF
12381 Defining HAVE_DATABASE
12383 cat >> confdefs.h <<\EOF
12384 #define HAVE_DATABASE 1
12388 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
12389 echo " xemacs will be linked with \"database.o\""
12393 if test "$with_socks" = "yes"; then
12395 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12396 echo "configure:12397: checking for SOCKSinit in -lsocks" >&5
12397 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12399 xe_check_libs=" -lsocks "
12400 cat > conftest.$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 /* Override any gcc2 internal prototype to avoid an error. */
12404 /* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
12412 if { (eval echo configure:12413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12414 eval "ac_cv_lib_$ac_lib_var=yes"
12416 echo "configure: failed program was:" >&5
12417 cat conftest.$ac_ext >&5
12419 eval "ac_cv_lib_$ac_lib_var=no"
12424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12425 echo "$ac_t""yes" 1>&6
12426 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12428 { test "$extra_verbose" = "yes" && cat << EOF
12429 Defining $ac_tr_lib
12431 cat >> confdefs.h <<EOF
12432 #define $ac_tr_lib 1
12436 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
12439 echo "$ac_t""no" 1>&6
12443 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
12444 Defining HAVE_SOCKS
12446 cat >> confdefs.h <<\EOF
12447 #define HAVE_SOCKS 1
12453 if test "$usage_tracking" = "yes"; then
12454 { test "$extra_verbose" = "yes" && cat << \EOF
12455 Defining USAGE_TRACKING
12457 cat >> confdefs.h <<\EOF
12458 #define USAGE_TRACKING 1
12462 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12465 if test "$with_modules" != "no"; then
12466 echo "checking for module support" 1>&6
12467 echo "configure:12468: checking for module support" >&5
12469 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12470 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12471 echo "configure:12472: checking for dlfcn.h" >&5
12473 cat > conftest.$ac_ext <<EOF
12474 #line 12475 "configure"
12475 #include "confdefs.h"
12478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12479 { (eval echo configure:12480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12481 if test -z "$ac_err"; then
12483 eval "ac_cv_header_$ac_safe=yes"
12486 echo "configure: failed program was:" >&5
12487 cat conftest.$ac_ext >&5
12489 eval "ac_cv_header_$ac_safe=no"
12492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12493 echo "$ac_t""yes" 1>&6
12496 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12497 echo "configure:12498: checking for dlopen in -ldl" >&5
12498 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12500 xe_check_libs=" -ldl "
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504 /* Override any gcc2 internal prototype to avoid an error. */
12505 /* We use char because int might match the return type of a gcc2
12506 builtin and then its argument prototype would still apply. */
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12515 eval "ac_cv_lib_$ac_lib_var=yes"
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12520 eval "ac_cv_lib_$ac_lib_var=no"
12525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12526 echo "$ac_t""yes" 1>&6
12527 have_dl=yes libdl=dl
12529 echo "$ac_t""no" 1>&6
12531 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12532 echo "configure:12533: checking for dlopen in -lc" >&5
12533 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12535 xe_check_libs=" -lc "
12536 cat > conftest.$ac_ext <<EOF
12537 #line 12538 "configure"
12538 #include "confdefs.h"
12539 /* Override any gcc2 internal prototype to avoid an error. */
12540 /* We use char because int might match the return type of a gcc2
12541 builtin and then its argument prototype would still apply. */
12548 if { (eval echo configure:12549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12550 eval "ac_cv_lib_$ac_lib_var=yes"
12552 echo "configure: failed program was:" >&5
12553 cat conftest.$ac_ext >&5
12555 eval "ac_cv_lib_$ac_lib_var=no"
12560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12561 echo "$ac_t""yes" 1>&6
12564 echo "$ac_t""no" 1>&6
12572 echo "$ac_t""no" 1>&6
12575 if test -n "$have_dl"; then
12576 { test "$extra_verbose" = "yes" && cat << \EOF
12577 Defining HAVE_DLOPEN
12579 cat >> confdefs.h <<\EOF
12580 #define HAVE_DLOPEN 1
12586 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12587 echo "configure:12588: checking for shl_load in -ldld" >&5
12588 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12590 xe_check_libs=" -ldld "
12591 cat > conftest.$ac_ext <<EOF
12592 #line 12593 "configure"
12593 #include "confdefs.h"
12594 /* Override any gcc2 internal prototype to avoid an error. */
12595 /* We use char because int might match the return type of a gcc2
12596 builtin and then its argument prototype would still apply. */
12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12605 eval "ac_cv_lib_$ac_lib_var=yes"
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12610 eval "ac_cv_lib_$ac_lib_var=no"
12615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12616 echo "$ac_t""yes" 1>&6
12617 libdl=dld have_dl=yes;
12618 { test "$extra_verbose" = "yes" && cat << \EOF
12619 Defining HAVE_SHL_LOAD
12621 cat >> confdefs.h <<\EOF
12622 #define HAVE_SHL_LOAD 1
12627 echo "$ac_t""no" 1>&6
12629 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12630 echo "configure:12631: checking for dld_init in -ldld" >&5
12631 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12633 xe_check_libs=" -ldld "
12634 cat > conftest.$ac_ext <<EOF
12635 #line 12636 "configure"
12636 #include "confdefs.h"
12637 /* Override any gcc2 internal prototype to avoid an error. */
12638 /* We use char because int might match the return type of a gcc2
12639 builtin and then its argument prototype would still apply. */
12646 if { (eval echo configure:12647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12648 eval "ac_cv_lib_$ac_lib_var=yes"
12650 echo "configure: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12653 eval "ac_cv_lib_$ac_lib_var=no"
12658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12659 echo "$ac_t""yes" 1>&6
12660 libdl=dld have_dl=yes;
12661 { test "$extra_verbose" = "yes" && cat << \EOF
12662 Defining HAVE_DLD_INIT
12664 cat >> confdefs.h <<\EOF
12665 #define HAVE_DLD_INIT 1
12670 echo "$ac_t""no" 1>&6
12679 if test -n "$have_dl"; then
12686 ld_dynamic_link_flags=
12688 xealias=$internal_configuration
12690 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12691 echo "configure:12692: checking how to build dynamic libraries for ${xehost}" >&5
12692 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12695 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12698 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12699 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12700 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12702 case "$xehost_os" in
12704 # AIX sometimes has problems with the GCC collect2 program. For some
12705 # reason, if we set the COLLECT_NAMES environment variable, the problems
12706 # vanish in a puff of smoke.
12707 if test "${COLLECT_NAMES+set}" != set; then
12709 export COLLECT_NAMES
12714 # Now see if the compiler is really GCC.
12715 if test "$GCC" = "yes"; then
12718 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12719 echo "configure:12720: checking checking whether we are using GNU C" >&5
12720 cat > conftest.$ac_ext <<EOF
12721 #line 12722 "configure"
12722 #include "confdefs.h"
12729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12730 egrep "yes" >/dev/null 2>&1; then
12739 echo "$ac_t""${XEGCC}" 1>&6
12742 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12743 echo "configure:12744: checking how to produce PIC code" >&5
12746 can_build_shared=yes
12747 if test "$XEGCC" = yes; then
12750 case "$xehost_os" in
12751 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12752 # PIC is the default for these OSes.
12756 # We can build DLLs from non-PIC.
12759 # FIXME: we need at least 68020 code to build shared libraries, but
12760 # adding the `-m68020' flag to GCC prevents building anything better,
12762 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12769 # PORTME Check for PIC flags for the system compiler.
12770 case "$xehost_os" in
12771 hpux9* | hpux1[0-9]*)
12772 # Is there a better link_static_flag that works with the bundled CC?
12779 # PIC (with -KPIC) is the default.
12783 # We can build DLLs from non-PIC.
12787 # All OSF/1 code is PIC.
12792 dll_cflags='-belf -Kpic'
12826 can_build_shared=no
12831 if test -n "$dll_cflags"; then
12832 echo "$ac_t""${dll_cflags}" 1>&6
12834 # Check to make sure the dll_cflags actually works.
12835 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12836 echo "configure:12837: checking if PIC flag ${dll_cflags} really works" >&5
12837 save_CFLAGS="$CFLAGS"
12838 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12839 cat > conftest.$ac_ext <<EOF
12840 #line 12841 "configure"
12841 #include "confdefs.h"
12847 if { (eval echo configure:12848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12850 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12851 # reports no error. So, we need to grep stderr for (Bundled).
12852 if grep '(Bundled)' config.log >/dev/null; then
12853 echo "$ac_t""no" 1>&6
12854 can_build_shared=no
12857 echo "$ac_t""yes" 1>&6
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12863 echo "$ac_t""no" 1>&6
12864 can_build_shared=no
12868 CFLAGS="$save_CFLAGS"
12870 echo "$ac_t""none" 1>&6
12873 if test "$can_build_shared" = "yes"; then
12877 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12878 echo "configure:12879: checking if C compiler can produce shared libraries" >&5
12879 if test "$XEGCC" = yes; then
12882 else # Not using GCC
12883 case "$xehost_os" in
12885 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12886 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12889 freebsd2* | netbsd* | openbsd*)
12891 xcldf="${wl}-Bshareable"
12900 xcldf="${wl}-b ${wl}+s"
12903 irix5* | irix6* | osf3* | osf4*)
12904 xcldf="${wl}-shared"
12908 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12914 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12915 xldf="-assert pure-text -Bstatic"
12918 fi # End if if we are using gcc
12920 if test -n "$xcldf"; then
12921 save_LDFLAGS=$LDFLAGS
12923 save_xe_libs=$xe_libs
12924 LDFLAGS="$xcldf $LDFLAGS"
12927 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12928 cat > conftest.$ac_ext <<EOF
12929 #line 12930 "configure"
12930 #include "confdefs.h"
12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12940 echo "configure: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12946 LDFLAGS=$save_LDFLAGS
12948 xe_libs=$save_xe_libs
12949 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12953 echo "$ac_t""${cc_produces_so}" 1>&6
12956 if test -z "$LTLD"; then
12958 if test "$XEGCC" = yes; then
12959 # Check if gcc -print-prog-name=ld gives a path.
12960 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12961 echo "configure:12962: checking for ld used by GCC" >&5
12962 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12964 # Accept absolute paths.
12966 if test -z "$LTLD"; then
12968 *gcc-lib*) LTLD="$CC"
12976 # If it fails, then pretend we aren't using GCC.
12980 # If it is relative, then search for the first ld in PATH.
12981 with_gnu_ld=unknown
12985 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12986 echo "configure:12987: checking for GNU ld" >&5
12989 if test -z "$LTLD"; then
12990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12991 for ac_dir in $PATH; do
12992 test -z "$ac_dir" && ac_dir=.
12993 if test -f "$ac_dir/$ac_prog"; then
12994 LTLD="$ac_dir/$ac_prog"
12995 # Check to see if the program is GNU ld. I'd rather use --version,
12996 # but apparently some GNU ld's only accept -v.
12997 # Break only if it was the GNU/non-GNU ld that we prefer.
12998 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13008 if test -n "$LTLD"; then
13009 echo "$ac_t""${LTLD}" 1>&6
13011 echo "$ac_t""no" 1>&6
13014 if test -z "$LTLD" -a "$cc_produces_so" = no; then
13015 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
13020 ld_dynamic_link_flags=
13022 # Check to see if it really is or isn't GNU ld.
13023 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
13024 echo "configure:13025: checking if the linker is GNU ld" >&5
13025 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13026 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13031 echo "$ac_t""${xe_gnu_ld}" 1>&6
13033 case "$xehost_os" in
13034 amigaos* | sunos4*)
13035 # On these operating systems, we should treat GNU ld like the system ld.
13036 gnu_ld_acts_native=yes
13039 gnu_ld_acts_native=no
13043 if test "$cc_produces_so" = "yes"; then
13046 can_build_shared=yes
13048 # OK - only NOW do we futz about with ld.
13049 # See if the linker supports building shared libraries.
13050 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
13051 echo "configure:13052: checking whether the linker supports shared libraries" >&5
13053 dll_ldflags=$LDFLAGS
13055 can_build_shared=yes
13056 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
13057 # See if GNU ld supports shared libraries.
13058 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13060 dll_ldflags="-shared"
13066 # PORTME fill in a description of your system's linker (not GNU ld)
13067 case "$xehost_os" in
13077 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13078 # support. Future versions do this automatically, but an explicit c++rt0.o
13079 # doesn't break anything, and helps significantly (at the cost of a little
13084 dll_post="/usr/lib/c++rt0.o"
13087 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
13090 dll_ldflags="-Bshareable"
13093 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
13095 dll_ldflags="-shared"
13109 # Tested with NetBSD 1.2 ld
13124 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
13125 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
13128 *gcc*) dll_ldflags="-shared"
13131 *) dll_ldflags="-G"
13137 if test "$XEGCC" = yes; then
13157 can_build_shared=no
13161 echo "$ac_t""${ld_shlibs}" 1>&6
13162 if test "$ld_shlibs" = "no"; then
13163 can_build_shared=no
13165 fi # End of if cc_produces_so = no
13168 if test "$xe_gnu_ld" = yes; then
13169 if test "$ld_shlibs" = yes; then
13170 ld_dynamic_link_flags="${wl}-export-dynamic"
13174 if test -z "$ld_dynamic_link_flags"; then
13175 case "$xehost_os" in
13177 ld_dynamic_link_flags=
13181 ld_dynamic_link_flags=
13185 ld_dynamic_link_flags=
13189 ld_dynamic_link_flags=
13193 ld_dynamic_link_flags=
13197 ld_dynamic_link_flags="${wl}-E"
13201 ld_dynamic_link_flags=
13205 ld_dynamic_link_flags=
13209 ld_dynamic_link_flags=
13213 ld_dynamic_link_flags=
13216 solaris2* | solaris7*)
13217 ld_dynamic_link_flags=
13220 sco3.2v5* | unixware* | sysv5* | sysv4*)
13221 ld_dynamic_link_flags="${wl}-Bexport"
13225 ld_dynamic_link_flags=
13229 ld_dynamic_link_flags=
13233 ld_dynamic_link_flags=
13237 fi # End of if -z ld_dynamic_link_flags
13238 fi # End of if test "$can_build_shared" = "yes"
13249 if test "$can_build_shared" = "yes"; then
13250 { test "$extra_verbose" = "yes" && cat << \EOF
13251 Defining HAVE_SHLIB
13253 cat >> confdefs.h <<\EOF
13254 #define HAVE_SHLIB 1
13258 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
13259 echo " xemacs will be linked with \"sysdll.o emodules.o\""
13261 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13262 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13263 for ac_func in dlerror _dlerror
13265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13266 echo "configure:13267: checking for $ac_func" >&5
13268 cat > conftest.$ac_ext <<EOF
13269 #line 13270 "configure"
13270 #include "confdefs.h"
13271 /* System header to define __stub macros and hopefully few prototypes,
13272 which can conflict with char $ac_func(); below. */
13273 #include <assert.h>
13274 /* Override any gcc2 internal prototype to avoid an error. */
13275 /* We use char because int might match the return type of a gcc2
13276 builtin and then its argument prototype would still apply. */
13281 /* The GNU C library defines this for functions which it implements
13282 to always fail with ENOSYS. Some functions are actually named
13283 something starting with __ and the normal name is an alias. */
13284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13292 if { (eval echo configure:13293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13294 eval "ac_cv_func_$ac_func=yes"
13296 echo "configure: failed program was:" >&5
13297 cat conftest.$ac_ext >&5
13299 eval "ac_cv_func_$ac_func=no"
13303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13304 echo "$ac_t""yes" 1>&6
13305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13306 { test "$extra_verbose" = "yes" && cat << EOF
13307 Defining $ac_tr_func
13309 cat >> confdefs.h <<EOF
13310 #define $ac_tr_func 1
13315 echo "$ac_t""no" 1>&6
13321 if test "$with_modules" = "yes"; then
13322 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
13324 echo "configure: warning: "Module support cannot be provided."" 1>&2
13330 cat > conftest.$ac_ext <<EOF
13331 #line 13332 "configure"
13332 #include "confdefs.h"
13333 int main(int c,char *v[]){return 0;}
13335 if { (eval echo configure:13336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13340 echo "configure: failed program was:" >&5
13341 cat conftest.$ac_ext >&5
13345 echo "*** PANIC *** The C compiler can no longer build working executables."
13346 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
13347 echo "*** PANIC *** The most likely reason for this problem is that configure"
13348 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
13349 echo "*** PANIC *** found at run time."
13350 echo "*** PANIC ***"
13351 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
13352 echo "*** PANIC *** On other systems, try telling configure where to find the"
13353 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
13354 echo "*** PANIC ***"
13355 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
13356 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
13357 echo "*** PANIC *** on your system. Don't do that."
13362 if test "$win32_processes" = "yes"; then
13363 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
13364 echo " xemacs will be linked with \"process-nt.o\""
13367 { test "$extra_verbose" = "yes" && cat << \EOF
13368 Defining HAVE_UNIX_PROCESSES
13370 cat >> confdefs.h <<\EOF
13371 #define HAVE_UNIX_PROCESSES 1
13375 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
13376 echo " xemacs will be linked with \"process-unix.o\""
13383 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13388 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13393 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
13394 c_switch_general="$T"
13398 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13399 c_switch_window_system="$T"
13403 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13408 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
13409 ld_switch_general="$T"
13413 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13414 ld_switch_window_system="$T"
13418 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13423 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13424 ld_libs_general="$T"
13428 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
13429 ld_libs_window_system="$T"
13433 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13438 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
13439 internal_makefile_list="Makefile.in"
13440 SUBDIR_MAKEFILES=''
13441 test -d lock || mkdir lock
13442 for dir in $MAKE_SUBDIR; do
13443 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
13444 test -d "$d" || mkdir "$d"; cd "$d"
13446 * ) test -d "$dir" || mkdir "$dir" ;;
13450 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13451 SUBDIR_MAKEFILES="$T"
13455 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13456 internal_makefile_list="$T"
13463 for dir in src/s src/m; do
13464 if test ! -d "$dir" ; then
13465 echo Making symbolic link to "$srcdir/$dir"
13466 ${LN_S} "$srcdir/$dir" "$dir"
13470 if test "$extra_verbose" = "yes"; then
13472 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
13477 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
13478 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
13479 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
13482 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
13483 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
13484 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
13487 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
13488 test "$extra_verbose" = "yes" && echo "creating TAGS"
13490 $srcdir/TAGS,include" > "TAGS"
13493 if test "$__SUNPRO_C" = "yes"; then
13494 test "$extra_verbose" = "yes" && echo "creating .sbinit"
13495 ( echo "# For use with Sun WorkShop's Source browser."
13496 echo "# See sbquery(1) and sbinit(4) for more information"
13497 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13524 *\$* ) eval "PREFIX=$PREFIX" ;;
13532 EXEC_PREFIX=$exec_prefix
13534 case "$EXEC_PREFIX" in
13535 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13546 *\$* ) eval "INFODIR=$INFODIR" ;;
13556 case "$INFOPATH" in
13557 *\$* ) eval "INFOPATH=$INFOPATH" ;;
13565 PACKAGE_PATH=$package_path
13567 case "$PACKAGE_PATH" in
13568 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
13579 *\$* ) eval "LISPDIR=$LISPDIR" ;;
13587 MODULEDIR=$moduledir
13589 case "$MODULEDIR" in
13590 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
13598 SITELISPDIR=$sitelispdir
13600 case "$SITELISPDIR" in
13601 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
13609 SITEMODULEDIR=$sitemoduledir
13611 case "$SITEMODULEDIR" in
13612 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13623 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13634 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13645 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13653 ARCHLIBDIR=$archlibdir
13655 case "$ARCHLIBDIR" in
13656 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13680 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13688 : ${XEMACS_CC:=$CC}
13691 if test "$with_prefix" = "yes"; then
13692 { test "$extra_verbose" = "yes" && cat << \EOF
13693 Defining PREFIX_USER_DEFINED
13695 cat >> confdefs.h <<\EOF
13696 #define PREFIX_USER_DEFINED 1
13702 if test "$with_site_lisp" = "no"; then
13703 { test "$extra_verbose" = "yes" && cat << \EOF
13704 Defining INHIBIT_SITE_LISP
13706 cat >> confdefs.h <<\EOF
13707 #define INHIBIT_SITE_LISP 1
13712 if test "$with_site_modules" = "no"; then
13713 { test "$extra_verbose" = "yes" && cat << \EOF
13714 Defining INHIBIT_SITE_MODULES
13716 cat >> confdefs.h <<\EOF
13717 #define INHIBIT_SITE_MODULES 1
13725 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13726 ac_configure_args="$T"
13728 { test "$extra_verbose" = "yes" && cat << EOF
13729 Defining EMACS_CONFIGURATION = "$configuration"
13731 cat >> confdefs.h <<EOF
13732 #define EMACS_CONFIGURATION "$configuration"
13736 { test "$extra_verbose" = "yes" && cat << EOF
13737 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13739 cat >> confdefs.h <<EOF
13740 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13744 { test "$extra_verbose" = "yes" && cat << EOF
13745 Defining config_machfile = "$machfile"
13747 cat >> confdefs.h <<EOF
13748 #define config_machfile "$machfile"
13752 { test "$extra_verbose" = "yes" && cat << EOF
13753 Defining config_opsysfile = "$opsysfile"
13755 cat >> confdefs.h <<EOF
13756 #define config_opsysfile "$opsysfile"
13763 { test "$extra_verbose" = "yes" && cat << EOF
13764 Defining LD_SWITCH_X_SITE = $null_string
13766 cat >> confdefs.h <<EOF
13767 #define LD_SWITCH_X_SITE $null_string
13771 { test "$extra_verbose" = "yes" && cat << EOF
13772 Defining LD_SWITCH_X_SITE_AUX = $null_string
13774 cat >> confdefs.h <<EOF
13775 #define LD_SWITCH_X_SITE_AUX $null_string
13779 { test "$extra_verbose" = "yes" && cat << EOF
13780 Defining C_SWITCH_X_SITE = $null_string
13782 cat >> confdefs.h <<EOF
13783 #define C_SWITCH_X_SITE $null_string
13787 { test "$extra_verbose" = "yes" && cat << EOF
13788 Defining LD_SWITCH_SITE = $null_string
13790 cat >> confdefs.h <<EOF
13791 #define LD_SWITCH_SITE $null_string
13795 { test "$extra_verbose" = "yes" && cat << EOF
13796 Defining C_SWITCH_SITE = $null_string
13798 cat >> confdefs.h <<EOF
13799 #define C_SWITCH_SITE $null_string
13805 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13806 Defining GNU_MALLOC
13808 cat >> confdefs.h <<\EOF
13809 #define GNU_MALLOC 1
13813 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13814 Defining USE_SYSTEM_MALLOC
13816 cat >> confdefs.h <<\EOF
13817 #define USE_SYSTEM_MALLOC 1
13821 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13822 Defining USE_DEBUG_MALLOC
13824 cat >> confdefs.h <<\EOF
13825 #define USE_DEBUG_MALLOC 1
13829 { test "$extra_verbose" = "yes" && cat << \EOF
13830 Defining USE_SYSTEM_MALLOC
13832 cat >> confdefs.h <<\EOF
13833 #define USE_SYSTEM_MALLOC 1
13838 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13841 cat >> confdefs.h <<\EOF
13846 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13849 cat >> confdefs.h <<\EOF
13854 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13855 Defining EXTERNAL_WIDGET
13857 cat >> confdefs.h <<\EOF
13858 #define EXTERNAL_WIDGET 1
13862 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13863 Defining NO_DOC_FILE
13865 cat >> confdefs.h <<\EOF
13866 #define NO_DOC_FILE 1
13870 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13873 cat >> confdefs.h <<\EOF
13878 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13881 cat >> confdefs.h <<\EOF
13886 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13887 Defining MAIL_USE_POP
13889 cat >> confdefs.h <<\EOF
13890 #define MAIL_USE_POP 1
13894 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13897 cat >> confdefs.h <<\EOF
13902 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13905 cat >> confdefs.h <<\EOF
13910 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13911 Defining USE_UNION_TYPE
13913 cat >> confdefs.h <<\EOF
13914 #define USE_UNION_TYPE 1
13918 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13921 cat >> confdefs.h <<\EOF
13929 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13931 echo "uname -a: `uname -a`"
13934 echo "$0 $quoted_arguments"
13937 if test ! -z ${emacs_beta_version} ; then
13938 if test -z "${emacs_is_beta}" ; then
13939 xemacs_betaname=".${emacs_beta_version}"
13941 xemacs_betaname="-b${emacs_beta_version}"
13950 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13952 Where should the build process find the source code? $srcdir
13953 What installation prefix should install use? $prefix
13954 What operating system and machine description files should XEmacs use?
13955 \`$opsysfile' and \`$machfile'
13956 What compiler should XEmacs be built with? $CC $CFLAGS
13957 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13958 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13959 What window system should XEmacs use? ${window_system}"
13960 if test "$with_x11" = "yes"; then
13961 echo " Where do we find X Windows header files? $x_includes"
13962 echo " Where do we find X Windows libraries? $x_libraries"
13964 if test -n "$site_includes"; then
13965 echo " Additional header files: $site_includes"
13967 if test -n "$site_libraries"; then
13968 echo " Additional libraries: $site_libraries"
13970 if test -n "$site_prefixes"; then
13971 echo " Additional prefixes: $site_prefixes"
13973 if test -n "$runpath"; then
13974 echo " Runtime library search path: $runpath"
13976 if test "$have_xaw" = "yes"; then
13977 echo " Athena library to link: $athena_lib"
13978 echo " Athena header include path: $athena_h_path"
13980 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13981 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13982 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13983 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13984 echo " No Xmu; substituting equivalent routines."
13987 if test "$with_xpm" = yes; then
13988 echo " Compiling in support for XPM images."
13989 elif test "$with_x11" = yes; then
13990 echo " --------------------------------------------------------------------"
13991 echo " WARNING: Compiling without XPM support."
13992 if test "$xpm_problem" != ""; then
13993 echo " Reason: $xpm_problem"
13995 echo " WARNING: You should strongly consider installing XPM."
13996 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13997 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13998 echo " --------------------------------------------------------------------"
14000 if test "$with_png" = yes; then
14001 echo " Compiling in support for PNG image handling."
14002 elif test "$window_system" != "none"; then
14003 echo " --------------------------------------------------------------------"
14004 echo " WARNING: Compiling without PNG image support."
14005 if test "$png_problem" != ""; then
14006 echo " Reason: $png_problem"
14008 echo " WARNING: You should strongly consider installing the PNG libraries."
14009 echo " WARNING: Otherwise certain images and glyphs may not display."
14010 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14011 echo " --------------------------------------------------------------------"
14013 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
14014 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
14015 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
14016 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
14018 test "$with_native_sound" = yes && echo " Compiling in native sound support."
14019 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
14020 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
14021 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
14023 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
14024 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
14025 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
14027 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
14029 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
14030 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
14032 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
14033 test "$with_file_coding" = yes && echo " Compiling in File coding support."
14034 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
14035 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
14036 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
14037 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
14038 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
14039 if test "$with_wnn" = yes; then
14040 echo " Compiling in support for the WNN input method on Mule."
14041 test "$with_wnn6" = yes && echo " Using WNN version 6."
14043 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
14045 test "$with_cde" = yes && echo " Compiling in support for CDE."
14046 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
14047 test "$with_offix" = yes && echo " Compiling in support for OffiX."
14048 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
14049 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
14050 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
14051 case "$with_menubars" in
14052 lucid ) echo " Using Lucid menubars." ;;
14053 motif ) echo " Using Motif menubars."
14054 echo " *WARNING* The Motif menubar implementation is currently buggy."
14055 echo " We recommend using the Lucid menubar instead."
14056 echo " Re-run configure with --with-menubars='lucid'." ;;
14057 msw ) echo " Using MS-Windows menubars." ;;
14059 case "$with_scrollbars" in
14060 lucid ) echo " Using Lucid scrollbars." ;;
14061 motif ) echo " Using Motif scrollbars." ;;
14062 athena ) echo " Using Athena scrollbars." ;;
14063 msw ) echo " Using MS-Windows scrollbars." ;;
14065 case "$with_widgets" in
14066 motif ) echo " Using Motif native widgets." ;;
14067 athena ) echo " Using Athena native widgets." ;;
14068 msw ) echo " Using MS-Windows native widgets." ;;
14070 case "$with_dialogs" in
14072 echo " Using Motif dialog boxes."
14073 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
14074 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
14075 echo " We recommend using the Athena dialog boxes instead."
14076 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
14077 echo " Read the PROBLEMS file for more information."
14080 athena ) echo " Using Athena dialog boxes." ;;
14081 msw ) echo " Using MS-Windows dialog boxes." ;;
14083 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
14084 test "$with_clash_detection" = yes && \
14085 echo " Clash detection will use \"$lockdir\" for locking files."
14086 echo " movemail will use \"$mail_locking\" for locking mail spool files."
14087 test "$with_pop" = yes && echo " Using POP for mail access."
14088 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
14089 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
14090 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
14091 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
14092 test "$debug" = yes && echo " Compiling in extra code for debugging."
14093 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
14094 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
14095 != "no no no no no"; then
14096 echo " WARNING: ---------------------------------------------------------"
14097 echo " WARNING: Compiling in support for runtime error checking."
14098 echo " WARNING: XEmacs will run noticeably more slowly as a result."
14099 echo " WARNING: Error checking is on by default for XEmacs beta releases."
14100 echo " WARNING: ---------------------------------------------------------"
14103 ) | tee -a Installation
14107 # Remove any trailing slashes in these variables.
14108 test -n "$prefix" &&
14109 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14110 test -n "$exec_prefix" &&
14111 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14114 for file in $internal_makefile_list; do
14115 test "$file" = src/Makefile.in && \
14116 file="src/Makefile.in:src/Makefile.in.in:src/depend"
14117 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
14119 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
14120 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
14124 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14127 # Let make expand exec_prefix.
14128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14130 # Any assignment to VPATH causes Sun make to only execute
14131 # the first set of double-colon rules, so remove it if not needed.
14132 # If there is a colon in the path, we need to keep it.
14133 if test "x$srcdir" = x.; then
14134 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14137 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14139 DEFS=-DHAVE_CONFIG_H
14141 # Without the "./", some shells look in PATH for config.status.
14142 : ${CONFIG_STATUS=./config.status}
14144 echo creating $CONFIG_STATUS
14145 rm -f $CONFIG_STATUS
14146 cat > $CONFIG_STATUS <<EOF
14148 # Generated automatically by configure.
14149 # Run this file to recreate the current configuration.
14150 # This directory was configured as follows,
14151 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14153 # $0 $ac_configure_args
14155 # Compiler output produced by configure, useful for debugging
14156 # configure, is in ./config.log if it exists.
14158 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14161 case "\$ac_option" in
14162 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14163 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14164 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14165 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14166 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14168 -help | --help | --hel | --he | --h)
14169 echo "\$ac_cs_usage"; exit 0 ;;
14170 *) echo "\$ac_cs_usage"; exit 1 ;;
14174 ac_given_srcdir=$srcdir
14175 ac_given_INSTALL="$INSTALL"
14177 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14179 cat >> $CONFIG_STATUS <<EOF
14181 # Protect against being on the right side of a sed subst in config.status.
14182 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14183 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14187 s%@CFLAGS@%$CFLAGS%g
14188 s%@CPPFLAGS@%$CPPFLAGS%g
14189 s%@CXXFLAGS@%$CXXFLAGS%g
14190 s%@FFLAGS@%$FFLAGS%g
14192 s%@LDFLAGS@%$LDFLAGS%g
14194 s%@exec_prefix@%$exec_prefix%g
14195 s%@prefix@%$prefix%g
14196 s%@program_transform_name@%$program_transform_name%g
14197 s%@bindir@%$bindir%g
14198 s%@sbindir@%$sbindir%g
14199 s%@libexecdir@%$libexecdir%g
14200 s%@datadir@%$datadir%g
14201 s%@sysconfdir@%$sysconfdir%g
14202 s%@sharedstatedir@%$sharedstatedir%g
14203 s%@localstatedir@%$localstatedir%g
14204 s%@libdir@%$libdir%g
14205 s%@includedir@%$includedir%g
14206 s%@oldincludedir@%$oldincludedir%g
14207 s%@infodir@%$infodir%g
14208 s%@mandir@%$mandir%g
14210 s%@blddir@%$blddir%g
14213 s%@start_flags@%$start_flags%g
14214 s%@ld_switch_shared@%$ld_switch_shared%g
14215 s%@start_files@%$start_files%g
14217 s%@lib_gcc@%$lib_gcc%g
14218 s%@RANLIB@%$RANLIB%g
14219 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14220 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14221 s%@INSTALL_DATA@%$INSTALL_DATA%g
14223 s%@SET_MAKE@%$SET_MAKE%g
14224 s%@X_CFLAGS@%$X_CFLAGS%g
14225 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14226 s%@X_LIBS@%$X_LIBS%g
14227 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
14228 s%@install_pp@%$install_pp%g
14229 s%@libs_xauth@%$libs_xauth%g
14230 s%@dnd_objs@%$dnd_objs%g
14231 s%@lwlib_objs@%$lwlib_objs%g
14232 s%@ALLOCA@%$ALLOCA%g
14233 s%@have_esd_config@%$have_esd_config%g
14234 s%@dll_ld@%$dll_ld%g
14235 s%@dll_cflags@%$dll_cflags%g
14236 s%@dll_ldflags@%$dll_ldflags%g
14237 s%@dll_post@%$dll_post%g
14238 s%@dll_ldo@%$dll_ldo%g
14239 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
14240 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
14241 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
14242 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
14243 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
14244 s%@PROGNAME@%$PROGNAME%g
14245 s%@version@%$version%g
14246 s%@configuration@%$configuration%g
14247 s%@canonical@%$canonical%g
14248 s%@inststaticdir@%$inststaticdir%g
14249 s%@instvardir@%$instvardir%g
14250 s%@srcdir@%$srcdir%g
14251 s%@pkgdir@%$pkgdir%g
14252 s%@statedir@%$statedir%g
14253 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
14254 s%@PREFIX@%$PREFIX%g
14255 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
14256 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
14257 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
14258 s%@INFODIR@%$INFODIR%g
14259 s%@infopath@%$infopath%g
14260 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
14261 s%@INFOPATH@%$INFOPATH%g
14262 s%@package_path@%$package_path%g
14263 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
14264 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
14265 s%@lispdir@%$lispdir%g
14266 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
14267 s%@LISPDIR@%$LISPDIR%g
14268 s%@moduledir@%$moduledir%g
14269 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
14270 s%@MODULEDIR@%$MODULEDIR%g
14271 s%@sitelispdir@%$sitelispdir%g
14272 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
14273 s%@SITELISPDIR@%$SITELISPDIR%g
14274 s%@sitemoduledir@%$sitemoduledir%g
14275 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
14276 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
14277 s%@etcdir@%$etcdir%g
14278 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
14279 s%@ETCDIR@%$ETCDIR%g
14280 s%@lockdir@%$lockdir%g
14281 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
14282 s%@LOCKDIR@%$LOCKDIR%g
14283 s%@docdir@%$docdir%g
14284 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
14285 s%@DOCDIR@%$DOCDIR%g
14286 s%@archlibdir@%$archlibdir%g
14287 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
14288 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
14289 s%@bitmapdir@%$bitmapdir%g
14290 s%@extra_objs@%$extra_objs%g
14291 s%@machfile@%$machfile%g
14292 s%@opsysfile@%$opsysfile%g
14293 s%@c_switch_general@%$c_switch_general%g
14294 s%@c_switch_window_system@%$c_switch_window_system%g
14295 s%@c_switch_all@%$c_switch_all%g
14296 s%@ld_switch_general@%$ld_switch_general%g
14297 s%@ld_switch_window_system@%$ld_switch_window_system%g
14298 s%@ld_switch_all@%$ld_switch_all%g
14299 s%@ld_libs_general@%$ld_libs_general%g
14300 s%@ld_libs_window_system@%$ld_libs_window_system%g
14301 s%@ld_libs_all@%$ld_libs_all%g
14302 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
14303 s%@native_sound_lib@%$native_sound_lib%g
14304 s%@sound_cflags@%$sound_cflags%g
14305 s%@dynodump_arch@%$dynodump_arch%g
14306 s%@XEMACS_CC@%$XEMACS_CC%g
14307 s%@internal_makefile_list@%$internal_makefile_list%g
14312 cat >> $CONFIG_STATUS <<\EOF
14314 # Split the substitutions into bite-sized pieces for seds with
14315 # small command number limits, like on Digital OSF/1 and HP-UX.
14316 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14317 ac_file=1 # Number of current file.
14318 ac_beg=1 # First line for current file.
14319 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14322 while $ac_more_lines; do
14323 if test $ac_beg -gt 1; then
14324 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14326 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14328 if test ! -s conftest.s$ac_file; then
14329 ac_more_lines=false
14330 rm -f conftest.s$ac_file
14332 if test -z "$ac_sed_cmds"; then
14333 ac_sed_cmds="sed -f conftest.s$ac_file"
14335 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14337 ac_file=`expr $ac_file + 1`
14339 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14342 if test -z "$ac_sed_cmds"; then
14347 cat >> $CONFIG_STATUS <<EOF
14349 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
14351 cat >> $CONFIG_STATUS <<\EOF
14352 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14355 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14356 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14357 *) ac_file_in="${ac_file}.in" ;;
14360 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14362 # Remove last slash and all that follows it. Not all systems have dirname.
14363 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14364 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14365 # The file is in a subdirectory.
14366 test ! -d "$ac_dir" && mkdir "$ac_dir"
14367 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14368 # A "../" for each directory in $ac_dir_suffix.
14369 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14371 ac_dir_suffix= ac_dots=
14374 case "$ac_given_srcdir" in
14376 if test -z "$ac_dots"; then top_srcdir=.
14377 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14378 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14379 *) # Relative path.
14380 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14381 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14384 case "$ac_given_INSTALL" in
14385 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14386 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14389 echo creating "$ac_file"
14391 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14393 *Makefile*) ac_comsub="1i\\
14394 # $configure_input" ;;
14398 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14400 s%@configure_input@%$configure_input%g
14401 s%@srcdir@%$srcdir%g
14402 s%@top_srcdir@%$top_srcdir%g
14403 s%@INSTALL@%$INSTALL%g
14404 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14408 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14409 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14411 # ac_d sets the value in "#define NAME VALUE" lines.
14412 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14413 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14416 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14417 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14418 ac_uB='\([ ]\)%\1#\2define\3'
14421 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14422 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14423 ac_eB='$%\1#\2define\3'
14427 if test "${CONFIG_HEADERS+set}" != set; then
14429 cat >> $CONFIG_STATUS <<EOF
14430 CONFIG_HEADERS="src/config.h lwlib/config.h"
14432 cat >> $CONFIG_STATUS <<\EOF
14434 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14435 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14437 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14438 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14439 *) ac_file_in="${ac_file}.in" ;;
14442 echo creating $ac_file
14444 rm -f conftest.frag conftest.in conftest.out
14445 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14446 cat $ac_file_inputs > conftest.in
14450 # Transform confdefs.h into a sed script conftest.vals that substitutes
14451 # the proper values into config.h.in to produce config.h. And first:
14452 # Protect against being on the right side of a sed subst in config.status.
14453 # Protect against being in an unquoted here document in config.status.
14454 rm -f conftest.vals
14455 cat > conftest.hdr <<\EOF
14458 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14462 sed -n -f conftest.hdr confdefs.h > conftest.vals
14465 # This sed command replaces #undef with comments. This is necessary, for
14466 # example, in the case of _POSIX_SOURCE, which is predefined and required
14467 # on some systems where configure will not decide to define it.
14468 cat >> conftest.vals <<\EOF
14469 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14472 # Break up conftest.vals because some shells have a limit on
14473 # the size of here documents, and old seds have small limits too.
14475 rm -f conftest.tail
14478 ac_lines=`grep -c . conftest.vals`
14479 # grep -c gives empty output for an empty file on some AIX systems.
14480 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14481 # Write a limited-size here document to conftest.frag.
14482 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14483 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14485 sed -f conftest.frag conftest.in > conftest.out
14487 mv conftest.out conftest.in
14488 ' >> $CONFIG_STATUS
14489 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14490 rm -f conftest.vals
14491 mv conftest.tail conftest.vals
14493 rm -f conftest.vals
14495 cat >> $CONFIG_STATUS <<\EOF
14496 rm -f conftest.frag conftest.h
14497 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14498 cat conftest.in >> conftest.h
14500 if cmp -s $ac_file conftest.h 2>/dev/null; then
14501 echo "$ac_file is unchanged"
14504 # Remove last slash and all that follows it. Not all systems have dirname.
14505 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14506 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14507 # The file is in a subdirectory.
14508 test ! -d "$ac_dir" && mkdir "$ac_dir"
14511 mv conftest.h $ac_file
14516 cat >> $CONFIG_STATUS <<EOF
14518 top_srcdir="$srcdir"
14519 MAKE_SUBDIR="$MAKE_SUBDIR"
14522 cat >> $CONFIG_STATUS <<\EOF
14523 for dir in . $MAKE_SUBDIR; do
14528 sed -e '/^# Generated/d' \
14529 -e 's%/\*\*/#.*%%' \
14544 echo creating $dir/Makefile
14545 $CPP -I. -I${top_srcdir}/src junk.c \
14546 | sed -e 's/^\#.*//' \
14547 -e 's/^[ ][ ]*$//'\
14549 | sed -n -e '/^..*$/p' \
14555 chmod 444 Makefile.new
14556 mv -f Makefile.new Makefile
14558 echo creating $dir/GNUmakefile
14559 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
14560 | sed -e 's/^\#.*//' \
14561 -e 's/^[ ][ ]*$//'\
14563 | sed -n -e '/^..*$/p' \
14569 chmod 444 Makefile.new
14570 mv -f Makefile.new GNUmakefile
14576 sed < config.status >> lib-src/config.values \
14577 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
14578 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
14579 -e 's/^\([^ ]*\) $/\1 ""/' \
14585 chmod +x $CONFIG_STATUS
14586 rm -fr confdefs* $ac_clean_files
14587 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1