3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
95 SHELL=${CONFIG_SHELL-/bin/sh}
98 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
100 # File descriptor usage:
103 # 2 errors and warnings
104 # 3 some systems may open it to /dev/tty
105 # 4 used on the Kubota Titan
106 # 6 checking for... messages and results
107 # 5 compiler messages saved in config.log
108 if test "$silent" = yes; then
116 This file contains any messages produced by compilers while
117 running configure, to aid debugging if configure makes a mistake.
120 # Strip out --no-create and --no-recursion so they do not pile up.
121 # Also quote any args containing shell metacharacters.
126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
127 | --no-cr | --no-c) ;;
128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
131 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
132 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
137 # Only set these to C if already set. These must not be set unconditionally
138 # because not all systems understand e.g. LANG=C (notably SCO).
139 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
140 # Non-C LC_CTYPE values break the ctype check.
141 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
142 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
143 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
144 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
147 rm -rf conftest* confdefs.h
148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
151 # A filename unique to this package, relative to the directory that
152 # configure is in, which we can look for to find out if srcdir is correct.
153 ac_unique_file=src/lisp.h
155 # Find the source files, if location was not specified.
156 if test -z "$srcdir"; then
157 ac_srcdir_defaulted=yes
158 # Try the directory containing this script, then its parent.
160 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
161 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
163 if test ! -r $srcdir/$ac_unique_file; then
167 ac_srcdir_defaulted=no
169 if test ! -r $srcdir/$ac_unique_file; then
170 if test "$ac_srcdir_defaulted" = yes; then
171 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
173 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
176 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
178 # Prefer explicitly selected file to automatically selected ones.
179 if test -z "$CONFIG_SITE"; then
180 if test "x$prefix" != xNONE; then
181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
186 for ac_site_file in $CONFIG_SITE; do
187 if test -r "$ac_site_file"; then
188 echo "loading site script $ac_site_file"
195 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
196 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
197 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
198 ac_cpp='$CPP '"$xe_cppflags"
199 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
200 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
205 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
206 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
207 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
214 ac_n= ac_c='\c' ac_t=
218 progname="`echo $0 | sed 's:^\./\./:\./:'`"
221 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
222 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
225 exec_prefix='${prefix}'
226 bindir='${exec_prefix}/bin'
227 datadir='${prefix}/lib'
228 statedir='${prefix}/lib'
229 libdir='${exec_prefix}/lib'
230 mandir='${prefix}/man/man1'
231 inststaticdir='${PROGNAME}'
232 instvardir='${PROGNAME}-${version}'
233 infodir='${datadir}/${instvardir}/info'
236 lispdir='${datadir}/${instvardir}/lisp'
237 moduledir='${datadir}/${instvardir}/${configuration}/modules'
238 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
239 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
240 pkgdir='${datadir}/${instvardir}/lisp'
242 etcdir='${datadir}/${instvardir}/etc'
243 lockdir='${statedir}/${inststaticdir}/lock'
244 archlibdir='${datadir}/${instvardir}/${configuration}'
245 docdir='${archlibdir}'
248 with_site_modules='yes'
254 cpp='' cppflags='' libs='' ldflags=''
259 with_system_malloc='default'
260 with_dlmalloc='default'
275 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 | --no-cr | --no-c) ;;
281 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
284 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
285 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
289 while test $# != 0; do
292 --no-create|--no-recursion) ;;
296 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
297 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
301 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
302 val="yes" valomitted=yes
307 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
309 case "${valomitted}-${opt}" in yes-without_* )
310 opt=`echo $opt | sed 's/without/with/'`
311 valomitted="no" val="no" ;;
318 with_site_modules | \
368 memory_usage_stats | \
369 with_clash_detection | \
373 y | ye | yes ) val=yes ;;
375 * ) (echo "$progname: Usage error:"
376 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
377 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
379 eval "$opt=\"$val\"" ;;
397 site_runtime_libraries )
398 if test "$valomitted" = "yes" ; then
399 if test "$#" = 0 ; then
400 (echo "$progname: Usage error:"
401 echo " " "The \`--$optname' option requires a value."
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
411 with_debug_malloc | use_debug_malloc | \
412 with_system_malloc | use_system_malloc )
414 y | ye | yes ) val=yes ;;
416 d | de | def | defa | defau | defaul | default ) val=default ;;
417 * ) (echo "$progname: Usage error:"
418 echo " " "The \`--$optname' option requires one of these values:
419 \`yes', \`no', or \`default'."
420 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
422 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
427 with_database_berkdb=no
429 with_database_gdbm=no
430 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
433 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
434 d | db | dbm ) with_database_dbm=yes ;;
435 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
436 * ) (echo "$progname: Usage error:"
437 echo " " "The \`--$optname' option value
438 must be either \`no' or a comma-separated list
439 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
440 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
443 if test "$with_database_dbm" = "yes" -a \
444 "$with_database_gdbm" = "yes"; then
445 (echo "$progname: Usage error:"
446 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
447 with the \`--$optname' option."
448 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
453 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
455 n | no | non | none ) new_sdefault=no ;;
456 a | al | all | both ) new_sdefault=yes ;;
458 native ) with_native_sound=yes ;;
459 nonative ) with_native_sound=no ;;
461 nas ) with_nas_sound=yes ;;
462 nonas ) with_nas_sound=no ;;
464 esd ) with_esd_sound=yes ;;
465 noesd ) with_esd_sound=no ;;
467 * ) bogus_sound=yes ;;
469 if test "$bogus_sound" -o \
470 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
471 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
472 (echo "$progname: Usage error:"
473 echo " " "Valid types for the \`--$optname' option are:
475 The default is to autodetect all sound support."
476 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
477 elif test -n "$new_sdefault" ; then
478 with_native_sound=$new_sdefault
479 with_nas_sound=$new_sdefault
480 with_esd_sound=$new_sdefault
481 new_sdefault= # reset this
489 xa | xaw ) val=xaw ;;
490 3 | 3d | xaw3d ) val=3d ;;
491 ne | nex | next | naxtaw) val=next ;;
492 9 | 95 | xaw95 ) val=95 ;;
493 xp | xpm | xawxpm ) val=xpm ;;
494 * ) (echo "$progname: Usage error:"
495 echo " " "The \`--$optname' option must have one of these values:
496 \`xaw', \`3d', \`next', \`95', or \`xpm'."
497 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
504 y | ye | yes ) val=yes ;;
505 n | no | non | none ) val=no ;;
506 x | xl | xli | xlib ) val=xlib ;;
507 m | mo | mot | moti | motif ) val=motif ;;
508 * ) (echo "$progname: Usage error:"
509 echo " " "The \`--$optname' option must have one of these values:
510 \`motif', \`xlib', \`yes', or \`no'."
511 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
520 file | dot ) val=file ;;
521 locking ) val=locking ;;
522 * ) (echo "$progname: Usage error:"
523 echo " " "The \`--$optname' option must have one of these values:
524 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
525 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
532 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
534 n | no | non | none ) new_default=no ;;
535 a | al | all ) new_default=yes ;;
537 extents ) error_check_extents=yes ;;
538 noextents ) error_check_extents=no ;;
540 typecheck ) error_check_typecheck=yes ;;
541 notypecheck ) error_check_typecheck=no ;;
543 bufpos ) error_check_bufpos=yes ;;
544 nobufpos ) error_check_bufpos=no ;;
546 gc ) error_check_gc=yes ;;
547 nogc ) error_check_gc=no ;;
549 malloc ) error_check_malloc=yes ;;
550 nomalloc ) error_check_malloc=no ;;
552 byte_code ) error_check_byte_code=yes ;;
553 nobyte_code ) error_check_byte_code=no ;;
555 * ) bogus_error_check=yes ;;
557 if test "$bogus_error_check" -o \
558 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
559 if test "$error_check_default" = yes ; then
560 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
562 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
564 (echo "$progname: Usage error:"
565 echo " " "Valid types for the \`--$optname' option are:
567 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
568 elif test -n "$new_default" ; then
569 error_check_extents=$new_default
570 error_check_typecheck=$new_default
571 error_check_bufpos=$new_default
572 error_check_gc=$new_default
573 error_check_malloc=$new_default
574 error_check_byte_code=$new_default
575 new_default= # reset this
582 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
583 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
584 archlibdir | docdir | package_path )
585 if test "$valomitted" = "yes"; then
586 if test "$#" = 0; then
587 (echo "$progname: Usage error:"
588 echo " " "The \`--$optname' option requires a value."
589 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
596 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
597 Defining EXEC_PREFIX_USER_DEFINED
599 cat >> confdefs.h <<\EOF
600 #define EXEC_PREFIX_USER_DEFINED 1
604 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
605 Defining LISPDIR_USER_DEFINED
607 cat >> confdefs.h <<\EOF
608 #define LISPDIR_USER_DEFINED 1
612 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
613 Defining SITELISPDIR_USER_DEFINED
615 cat >> confdefs.h <<\EOF
616 #define SITELISPDIR_USER_DEFINED 1
620 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
621 Defining MODULEDIR_USER_DEFINED
623 cat >> confdefs.h <<\EOF
624 #define MODULEDIR_USER_DEFINED 1
628 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
629 Defining ETCDIR_USER_DEFINED
631 cat >> confdefs.h <<\EOF
632 #define ETCDIR_USER_DEFINED 1
636 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
637 Defining INFODIR_USER_DEFINED
639 cat >> confdefs.h <<\EOF
640 #define INFODIR_USER_DEFINED 1
644 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
645 Defining INFOPATH_USER_DEFINED
647 cat >> confdefs.h <<\EOF
648 #define INFOPATH_USER_DEFINED 1
652 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
653 Defining PACKAGE_PATH_USER_DEFINED
655 cat >> confdefs.h <<\EOF
656 #define PACKAGE_PATH_USER_DEFINED 1
661 { test "$extra_verbose" = "yes" && cat << \EOF
662 Defining INFODIR_USER_DEFINED
664 cat >> confdefs.h <<\EOF
665 #define INFODIR_USER_DEFINED 1
669 { test "$extra_verbose" = "yes" && cat << \EOF
670 Defining LISPDIR_USER_DEFINED
672 cat >> confdefs.h <<\EOF
673 #define LISPDIR_USER_DEFINED 1
677 { test "$extra_verbose" = "yes" && cat << \EOF
678 Defining MODULEDIR_USER_DEFINED
680 cat >> confdefs.h <<\EOF
681 #define MODULEDIR_USER_DEFINED 1
685 { test "$extra_verbose" = "yes" && cat << \EOF
686 Defining ETCDIR_USER_DEFINED
688 cat >> confdefs.h <<\EOF
689 #define ETCDIR_USER_DEFINED 1
693 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
694 Defining LOCKDIR_USER_DEFINED
696 cat >> confdefs.h <<\EOF
697 #define LOCKDIR_USER_DEFINED 1
701 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
702 Defining DOCDIR_USER_DEFINED
704 cat >> confdefs.h <<\EOF
705 #define DOCDIR_USER_DEFINED 1
709 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
710 Defining ARCHLIBDIR_USER_DEFINED
712 cat >> confdefs.h <<\EOF
713 #define ARCHLIBDIR_USER_DEFINED 1
722 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
725 "with_scrollbars" | \
729 l | lu | luc | luci | lucid ) val=lucid ;;
730 m | mo | mot | moti | motif ) val=motif ;;
731 a | at | ath | athe | athen | athena ) val=athena ;;
732 n | no | non | none ) val=no ;;
733 * ) (echo "$progname: Usage error:"
734 echo " " "The \`--$optname' option must have one of these values:
735 \`lucid', \`motif', \`athena', or \`no'."
736 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
741 "use_minimal_tagbits" | \
742 "use_indexed_lrecord_implementation" | \
744 "const_is_losing" | \
746 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
749 * ) (echo "$progname: Usage error:"
750 echo " " "Unrecognized option: $arg"
751 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
756 *-*-*) configuration="$arg" ;;
758 *) (echo "$progname: Usage error:"
759 echo " " "Unrecognized argument: $arg"
760 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
766 test -n "$cpp" && CPP="$cpp"
767 test -n "$cppflags" && CPPFLAGS="$cppflags"
768 test -n "$libs" && LIBS="$libs"
769 test -n "$ldflags" && LDFLAGS="$ldflags"
771 eval set x "$quoted_arguments"; shift
773 test "$extra_verbose" = "yes" && verbose=yes
775 test -n "$with_x" && with_x11="$with_x"
777 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
778 test "$with_system_malloc" = "default" && with_system_malloc=yes
783 if test "$with_cde $with_tooltalk" = "yes no"; then
784 (echo "$progname: Usage error:"
785 echo " " "--with-cde requires --with-tooltalk"
786 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
787 elif test "$with_tooltalk" = "no" ; then with_cde=no
788 elif test "$with_cde" = "yes"; then with_tooltalk=yes
795 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
796 if test -f "$dir/src/lisp.h" -a \
797 -f "$dir/lisp/version.el" ; then
802 if test -z "$srcdir" ; then
803 (echo "$progname: Usage error:"
804 echo " " "Neither the current directory nor its parent seem to
805 contain the XEmacs sources. If you do not want to build XEmacs in its
806 source tree, you should run \`$progname' in the directory in which
807 you wish to build XEmacs, using the \`--srcdir' option to say where the
808 sources may be found."
809 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
814 if test ! -f "$srcdir/src/lisp.h" -o \
815 ! -f "$srcdir/lisp/version.el" ; then
816 (echo "$progname: Usage error:"
817 echo " " "The directory specified with the \`--srcdir' option,
818 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
819 either run the \`$progname' script at the top of the XEmacs source
820 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
821 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
826 if test -z "$configuration"; then
827 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
828 if test -z "$configuration"; then
829 (echo "$progname: Usage error:"
830 echo " " "XEmacs has not been ported to this host type.
831 Try explicitly specifying the CONFIGURATION when rerunning configure."
832 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
836 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
837 echo "configure:838: checking whether ln -s works" >&5
840 if ln -s X conftestdata 2>/dev/null
843 ac_cv_prog_LN_S="ln -s"
847 LN_S="$ac_cv_prog_LN_S"
848 if test "$ac_cv_prog_LN_S" = "ln -s"; then
849 echo "$ac_t""yes" 1>&6
851 echo "$ac_t""no" 1>&6
855 for dir in lisp etc man info tests; do
856 if test ! -d "$dir" ; then
857 echo Making symbolic link to "$srcdir/$dir"
858 ${LN_S} "$srcdir/$dir" "$dir"
863 absolute_pwd="`pwd`";
864 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
866 else blddir="$absolute_pwd"; if test -d "/net"; then
867 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
868 blddir=`echo "$blddir" | \
869 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
876 . ) srcdir="$blddir" ;;
877 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
878 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
879 srcdir=`echo "$srcdir" | \
880 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
884 if test `pwd` != `sh -c cd $srcdir && pwd` \
885 && test -f "$srcdir/src/config.h"; then
886 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
887 echo " as a build directory right now; it has been configured in its own"
888 echo " right. To configure in another directory as well, you MUST"
889 echo " use GNU make. If you do not have GNU make, then you must"
890 echo " now do \`make distclean' in $srcdir,"
891 echo " and then run $progname again.") >&2
892 extrasub='/^VPATH[ ]*=/c\
898 vpath %.in $(srcdir)'
901 . "$srcdir/version.sh" || exit 1;
902 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
903 : "${extra_verbose=$beta}"
904 version="${emacs_major_version}.${emacs_minor_version}"
905 { test "$extra_verbose" = "yes" && cat << EOF
906 Defining EMACS_MAJOR_VERSION = $emacs_major_version
908 cat >> confdefs.h <<EOF
909 #define EMACS_MAJOR_VERSION $emacs_major_version
913 { test "$extra_verbose" = "yes" && cat << EOF
914 Defining EMACS_MINOR_VERSION = $emacs_minor_version
916 cat >> confdefs.h <<EOF
917 #define EMACS_MINOR_VERSION $emacs_minor_version
921 if test -n "$emacs_beta_version" ; then
922 if test "$beta" = "yes"; then
923 version="${version}-b${emacs_beta_version}"
924 { test "$extra_verbose" = "yes" && cat << EOF
925 Defining EMACS_BETA_VERSION = $emacs_beta_version
927 cat >> confdefs.h <<EOF
928 #define EMACS_BETA_VERSION $emacs_beta_version
933 version="${version}.${emacs_beta_version}"
934 { test "$extra_verbose" = "yes" && cat << EOF
935 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
937 cat >> confdefs.h <<EOF
938 #define EMACS_PATCH_LEVEL $emacs_beta_version
944 { test "$extra_verbose" = "yes" && cat << EOF
945 Defining XEMACS_CODENAME = "$xemacs_codename"
947 cat >> confdefs.h <<EOF
948 #define XEMACS_CODENAME "$xemacs_codename"
952 { test "$extra_verbose" = "yes" && cat << EOF
953 Defining EMACS_VERSION = "$version"
955 cat >> confdefs.h <<EOF
956 #define EMACS_VERSION "$version"
961 if test "$with_infodock" = "yes"; then
962 if test ! -f ../../ID-INSTALL; then
963 echo "Cannot build InfoDock without InfoDock sources"
968 if test "$with_infodock" = "yes"; then
969 { test "$extra_verbose" = "yes" && cat << EOF
970 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
972 cat >> confdefs.h <<EOF
973 #define INFODOCK_MAJOR_VERSION $infodock_major_version
977 { test "$extra_verbose" = "yes" && cat << EOF
978 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
980 cat >> confdefs.h <<EOF
981 #define INFODOCK_MINOR_VERSION $infodock_minor_version
985 { test "$extra_verbose" = "yes" && cat << EOF
986 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
988 cat >> confdefs.h <<EOF
989 #define INFODOCK_BUILD_VERSION $infodock_build_version
993 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
995 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1000 { test "$extra_verbose" = "yes" && cat << EOF
1001 Defining EMACS_PROGNAME = "$PROGNAME"
1003 cat >> confdefs.h <<EOF
1004 #define EMACS_PROGNAME "$PROGNAME"
1009 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1010 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1011 Defining ERROR_CHECK_EXTENTS
1013 cat >> confdefs.h <<\EOF
1014 #define ERROR_CHECK_EXTENTS 1
1018 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1019 Defining ERROR_CHECK_TYPECHECK
1021 cat >> confdefs.h <<\EOF
1022 #define ERROR_CHECK_TYPECHECK 1
1026 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1027 Defining ERROR_CHECK_BUFPOS
1029 cat >> confdefs.h <<\EOF
1030 #define ERROR_CHECK_BUFPOS 1
1034 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1035 Defining ERROR_CHECK_GC
1037 cat >> confdefs.h <<\EOF
1038 #define ERROR_CHECK_GC 1
1042 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1043 Defining ERROR_CHECK_MALLOC
1045 cat >> confdefs.h <<\EOF
1046 #define ERROR_CHECK_MALLOC 1
1050 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1051 Defining ERROR_CHECK_BYTE_CODE
1053 cat >> confdefs.h <<\EOF
1054 #define ERROR_CHECK_BYTE_CODE 1
1058 if test "${debug:=$beta}" = "yes"; then
1059 use_assertions=yes memory_usage_stats=yes
1060 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1061 echo " xemacs will be linked with \"debug.o\""
1063 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1064 echo " xemacs will be linked with \"tests.o\""
1066 { test "$extra_verbose" = "yes" && cat << \EOF
1067 Defining DEBUG_XEMACS
1069 cat >> confdefs.h <<\EOF
1070 #define DEBUG_XEMACS 1
1075 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1076 Defining USE_ASSERTIONS
1078 cat >> confdefs.h <<\EOF
1079 #define USE_ASSERTIONS 1
1083 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1084 Defining MEMORY_USAGE_STATS
1086 cat >> confdefs.h <<\EOF
1087 #define MEMORY_USAGE_STATS 1
1093 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1094 echo "configure:1095: checking "host system type"" >&5
1095 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1096 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1097 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1098 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1099 echo "$ac_t""$configuration" 1>&6
1107 case "$canonical" in
1108 sparc-*-* ) machine=sparc ;;
1109 alpha*-*-* ) machine=alpha ;;
1110 vax-*-* ) machine=vax ;;
1111 mips-dec-* ) machine=pmax ;;
1112 mips-sgi-irix6* ) machine=iris6d ;;
1113 mips-sgi-* ) machine=iris4d ;;
1114 mips*-linux ) machine=mips ;;
1115 romp-ibm-* ) machine=ibmrt ;;
1116 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1117 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1118 powerpc*-* ) machine=powerpc ;;
1119 hppa-*-* ) machine=hp800 ;;
1120 m88k-dg-* ) machine=aviion ;;
1121 m68*-sony-* ) machine=news ;;
1122 mips-sony-* ) machine=news-risc ;;
1123 clipper-* ) machine=clipper ;;
1124 arm* ) machine=arm ;;
1125 ns32k-* ) machine=ns32000 ;;
1128 case "$canonical" in
1129 *-*-linux* ) opsys=linux ;;
1130 *-*-netbsd* ) opsys=netbsd ;;
1131 *-*-openbsd* ) opsys=openbsd ;;
1132 *-*-nextstep* ) opsys=nextstep ;;
1133 *-*-vms ) opsys=vms ;;
1135 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1136 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1137 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1138 *-dec-osf3* ) opsys=decosf3-1 ;;
1139 *-dec-osf4* ) opsys=decosf4-0 ;;
1141 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1142 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1143 *-*-ultrix* ) opsys=ultrix4-3 ;;
1145 *-*-aix3.1* ) opsys=aix3-1 ;;
1146 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1147 *-*-aix3* ) opsys=aix3-2 ;;
1148 *-*-aix4.0* ) opsys=aix4 ;;
1149 *-*-aix4.1* ) opsys=aix4-1 ;;
1150 *-*-aix4* ) opsys=aix4-2 ;;
1152 *-gnu* ) opsys=gnu ;;
1153 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1154 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1155 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1156 *-*-aos4.2 ) opsys=bsd4-2 ;;
1157 *-*-aos* ) opsys=bsd4-3 ;;
1158 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1159 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1160 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1161 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1162 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1163 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1164 if test -z "$NON_GNU_CPP" ; then
1165 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1166 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1170 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1171 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1174 case "$canonical" in
1177 case "$canonical" in
1178 i[3-9]86-*-netbsd*) machine=intel386 ;;
1179 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1180 machine=hp9000s300 ;;
1181 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1182 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1187 case "${canonical}" in
1188 i386-*-openbsd*) machine=intel386 ;;
1189 m68k-*-openbsd*) machine=hp9000s300 ;;
1190 mipsel-*-openbsd*) machine=pmax ;;
1194 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1195 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1197 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1198 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1200 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1202 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1204 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1206 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1208 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1210 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1211 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1212 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1215 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1217 *-convex-bsd* | *-convex-convexos* )
1218 machine=convex opsys=bsd4-3
1219 NON_GNU_CPP="cc -E -P"
1222 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1224 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1225 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1226 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1227 m88k-dg-dgux* ) opsys=dgux ;;
1229 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1230 m88k-motorola-sysv4* )
1231 machine=delta88k opsys=usg5-4-2
1233 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1235 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1236 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1238 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1240 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1241 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1242 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1245 case "`uname -r`" in
1246 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1247 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1249 NON_GNU_CPP="/lib/cpp"
1251 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1252 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1254 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1256 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1259 case "$canonical" in
1260 m68* ) machine=hp9000s300 ;;
1261 hppa* ) machine=hp800 ;;
1264 case "$canonical" in
1265 *-hp-hpux7* ) opsys=hpux ;;
1266 *-hp-hpux8* ) opsys=hpux8 ;;
1267 *-hp-hpux9* ) opsys=hpux9 ;;
1268 *-hp-hpux10* ) opsys=hpux10 ;;
1269 *-hp-hpux11* ) opsys=hpux11 ;;
1273 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1274 echo " xemacs will be linked with \"strcat.o\""
1277 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1278 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1279 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1281 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1284 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1285 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1287 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1288 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1289 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1290 romp-ibm-aos* ) opsys=bsd4-3 ;;
1291 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1292 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1294 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1295 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1297 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1299 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1301 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1303 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1305 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1307 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1309 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1311 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1313 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1315 mips-mips-usg* ) machine=mips4 ;;
1318 NON_GNU_CC="cc -systype bsd43"
1319 NON_GNU_CPP="cc -systype bsd43 -E"
1320 case "$canonical" in
1321 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1322 mips-mips-riscos5* ) opsys=riscos5 ;;
1325 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1326 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1328 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1330 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1332 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1333 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1335 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1337 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1339 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1341 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1343 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1344 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1346 mips-siemens-sysv* | mips-sni-sysv*)
1347 machine=mips-siemens opsys=usg5-4
1348 NON_GNU_CC=/usr/ccs/bin/cc
1349 NON_GNU_CPP=/usr/ccs/lib/cpp
1354 NON_GNU_CC=/usr/ccs/bin/cc
1355 NON_GNU_CPP=/usr/ccs/lib/cpp
1358 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1359 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1360 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1361 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1362 mips-sgi-irix6* ) opsys=irix6-0 ;;
1363 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1364 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1365 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1366 mips-sgi-irix* ) opsys=irix5-0 ;;
1368 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1369 *-sony-news* ) opsys=newsos5 ;;
1371 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1373 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1374 case "$canonical" in
1375 m68*-sunos1* ) machine=sun1 ;;
1376 m68*-sunos2* ) machine=sun2 ;;
1377 m68* ) machine=sun3 ;;
1378 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1379 i*86-*-* ) machine=intel386 ;;
1380 rs6000* ) machine=rs6000 ;;
1383 case "$canonical" in *-sunos5*)
1384 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1387 case "$canonical" in
1389 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1392 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1396 case "$canonical" in
1399 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1400 { test "$extra_verbose" = "yes" && cat << EOF
1401 Defining OS_RELEASE = $os_release
1403 cat >> confdefs.h <<EOF
1404 #define OS_RELEASE $os_release
1409 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1410 *-sunos4.0* ) opsys=sunos4-0 ;;
1411 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1412 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1413 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1414 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1415 *-mach* ) opsys=mach-bsd4-3 ;;
1419 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1421 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1424 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1426 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1427 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1429 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1431 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1433 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1434 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1436 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1438 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1441 case "$canonical" in
1442 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1443 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1444 *-mach* ) opsys=mach-bsd4-3 ;;
1448 ns16k-whitechapel-* ) machine=mg1 ;;
1450 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1454 case "$canonical" in
1455 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1456 *-isc2.2* ) opsys=isc2-2 ;;
1457 *-isc4.0* ) opsys=isc4-0 ;;
1458 *-isc4.* ) opsys=isc4-1
1459 GCC_TEST_OPTIONS=-posix
1460 NON_GCC_TEST_OPTIONS=-Xp
1462 *-isc* ) opsys=isc3-0 ;;
1463 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1464 *-esix* ) opsys=esix ;;
1465 *-mach* ) opsys=mach-bsd4-3 ;;
1466 *-xenix* ) opsys=xenix ;;
1467 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1468 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1469 *-bsdi4* ) opsys=bsdos4 ;;
1470 *-bsdi3* ) opsys=bsdos3 ;;
1471 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1472 *-bsdi2* ) opsys=bsdos2 ;;
1473 *-sco3.2v5* ) opsys=sco5 ;
1474 if test "$dynamic" = "yes" ; then
1475 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1477 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1479 *-sysv5* ) opsys=sco7 ;;
1480 *-386bsd* ) opsys=386bsd ;;
1481 *-freebsd* ) opsys=freebsd ;;
1482 *-nextstep* ) opsys=nextstep ;;
1483 *-pc-cygwin* ) opsys=cygwin32 ;;
1484 *-pc-mingw* ) opsys=mingw32 ;
1485 test -z "$with_tty" && with_tty="no";;
1489 m68k-*-linux* ) machine=m68k opsys=linux ;;
1493 if test -z "$machine" -o -z "$opsys"; then
1494 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1495 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1500 if test -z "$dynamic"; then
1502 hpux* | sunos4* ) dynamic=no ;;
1506 if test "$dynamic" = "yes"; then
1508 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1509 decosf* ) ld_call_shared="-call_shared" ;;
1511 else case "$opsys" in
1513 echo "Static linking is not supported on Solaris 2."
1514 echo "Rerun configure without specifying --dynamic=no."
1516 linux ) ld_call_shared="-Bstatic" ;;
1517 decosf* ) ld_call_shared="-non_shared" ;;
1521 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1523 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1524 { test "$extra_verbose" = "yes" && cat << EOF
1525 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1527 cat >> confdefs.h <<EOF
1528 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1533 machfile="m/${machine}.h"
1534 opsysfile="s/${opsys}.h"
1537 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1538 if test "$with_workshop $with_tooltalk" = "yes no"; then
1539 (echo "$progname: Usage error:"
1540 echo " " "--with-workshop requires --with-tooltalk"
1541 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1542 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1543 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1546 if test "$with_workshop" = "yes"; then
1547 { test "$extra_verbose" = "yes" && cat << \EOF
1550 cat >> confdefs.h <<\EOF
1555 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1556 echo " xemacs will be linked with \"sunpro.o\""
1560 if test "$with_clash_detection" = "yes"; then
1561 { test "$extra_verbose" = "yes" && cat << \EOF
1562 Defining CLASH_DETECTION
1564 cat >> confdefs.h <<\EOF
1565 #define CLASH_DETECTION 1
1569 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1570 echo " xemacs will be linked with \"filelock.o\""
1574 test -n "$compiler" && CC="$compiler"
1575 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1578 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1579 if test "${CFLAGS-unset}" != unset
1580 then cflags_specified=yes;
1581 else cflags_specified=no;
1584 xe_save_CFLAGS="$CFLAGS"
1586 # Extract the first word of "gcc", so it can be a program name with args.
1587 set dummy gcc; ac_word=$2
1588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1589 echo "configure:1590: checking for $ac_word" >&5
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1596 for ac_dir in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1606 if test -n "$CC"; then
1607 echo "$ac_t""$CC" 1>&6
1609 echo "$ac_t""no" 1>&6
1612 if test -z "$CC"; then
1613 # Extract the first word of "cc", so it can be a program name with args.
1614 set dummy cc; ac_word=$2
1615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1616 echo "configure:1617: checking for $ac_word" >&5
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC="$CC" # Let the user override the test.
1621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1624 for ac_dir in $ac_dummy; do
1625 test -z "$ac_dir" && ac_dir=.
1626 if test -f $ac_dir/$ac_word; then
1627 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1628 ac_prog_rejected=yes
1636 if test $ac_prog_rejected = yes; then
1637 # We found a bogon in the path, so make sure we never use it.
1638 set dummy $ac_cv_prog_CC
1640 if test $# -gt 0; then
1641 # We chose a different compiler from the bogus one.
1642 # However, it has the same basename, so the bogon will be chosen
1643 # first if we set CC to just the basename; use the full file name.
1645 set dummy "$ac_dir/$ac_word" "$@"
1652 if test -n "$CC"; then
1653 echo "$ac_t""$CC" 1>&6
1655 echo "$ac_t""no" 1>&6
1658 if test -z "$CC"; then
1659 case "`uname -s`" in
1661 # Extract the first word of "cl", so it can be a program name with args.
1662 set dummy cl; ac_word=$2
1663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1664 echo "configure:1665: checking for $ac_word" >&5
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1671 for ac_dir in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir=.
1673 if test -f $ac_dir/$ac_word; then
1681 if test -n "$CC"; then
1682 echo "$ac_t""$CC" 1>&6
1684 echo "$ac_t""no" 1>&6
1689 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1692 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1693 echo "configure:1694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1696 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1697 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1698 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1699 ac_cpp='$CPP '"$xe_cppflags"
1700 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1701 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1704 cat > conftest.$ac_ext << EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1712 ac_cv_prog_cc_works=yes
1713 # If we can't run a trivial program, we are probably using a cross compiler.
1714 if (./conftest; exit) 2>/dev/null; then
1715 ac_cv_prog_cc_cross=no
1717 ac_cv_prog_cc_cross=yes
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1722 ac_cv_prog_cc_works=no
1726 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1727 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1728 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1729 ac_cpp='$CPP '"$xe_cppflags"
1730 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1731 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1734 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1735 if test $ac_cv_prog_cc_works = no; then
1736 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1738 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1739 echo "configure:1740: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1740 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1741 cross_compiling=$ac_cv_prog_cc_cross
1743 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1744 echo "configure:1745: checking whether we are using GNU C" >&5
1746 cat > conftest.c <<EOF
1751 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1757 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1759 if test $ac_cv_prog_gcc = yes; then
1765 ac_test_CFLAGS="${CFLAGS+set}"
1766 ac_save_CFLAGS="$CFLAGS"
1768 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1769 echo "configure:1770: checking whether ${CC-cc} accepts -g" >&5
1771 echo 'void f(){}' > conftest.c
1772 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1780 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1781 if test "$ac_test_CFLAGS" = set; then
1782 CFLAGS="$ac_save_CFLAGS"
1783 elif test $ac_cv_prog_cc_g = yes; then
1784 if test "$GCC" = yes; then
1790 if test "$GCC" = yes; then
1797 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1799 # Extract the first word of "gcc", so it can be a program name with args.
1800 set dummy gcc; ac_word=$2
1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1802 echo "configure:1803: checking for $ac_word" >&5
1804 if test -n "$CC"; then
1805 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1809 for ac_dir in $ac_dummy; do
1810 test -z "$ac_dir" && ac_dir=.
1811 if test -f $ac_dir/$ac_word; then
1819 if test -n "$CC"; then
1820 echo "$ac_t""$CC" 1>&6
1822 echo "$ac_t""no" 1>&6
1825 if test -z "$CC"; then
1826 # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc; ac_word=$2
1828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $ac_word" >&5
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1837 for ac_dir in $ac_dummy; do
1838 test -z "$ac_dir" && ac_dir=.
1839 if test -f $ac_dir/$ac_word; then
1840 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1841 ac_prog_rejected=yes
1849 if test $ac_prog_rejected = yes; then
1850 # We found a bogon in the path, so make sure we never use it.
1851 set dummy $ac_cv_prog_CC
1853 if test $# -gt 0; then
1854 # We chose a different compiler from the bogus one.
1855 # However, it has the same basename, so the bogon will be chosen
1856 # first if we set CC to just the basename; use the full file name.
1858 set dummy "$ac_dir/$ac_word" "$@"
1865 if test -n "$CC"; then
1866 echo "$ac_t""$CC" 1>&6
1868 echo "$ac_t""no" 1>&6
1871 if test -z "$CC"; then
1872 case "`uname -s`" in
1874 # Extract the first word of "cl", so it can be a program name with args.
1875 set dummy cl; ac_word=$2
1876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1877 echo "configure:1878: checking for $ac_word" >&5
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1884 for ac_dir in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/$ac_word; then
1894 if test -n "$CC"; then
1895 echo "$ac_t""$CC" 1>&6
1897 echo "$ac_t""no" 1>&6
1902 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1905 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1906 echo "configure:1907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1909 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1910 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1911 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1912 ac_cpp='$CPP '"$xe_cppflags"
1913 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1914 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1917 cat > conftest.$ac_ext << EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1924 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1925 ac_cv_prog_cc_works=yes
1926 # If we can't run a trivial program, we are probably using a cross compiler.
1927 if (./conftest; exit) 2>/dev/null; then
1928 ac_cv_prog_cc_cross=no
1930 ac_cv_prog_cc_cross=yes
1933 echo "configure: failed program was:" >&5
1934 cat conftest.$ac_ext >&5
1935 ac_cv_prog_cc_works=no
1939 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1940 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1941 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1942 ac_cpp='$CPP '"$xe_cppflags"
1943 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1944 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1947 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1948 if test $ac_cv_prog_cc_works = no; then
1949 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1952 echo "configure:1953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1953 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1954 cross_compiling=$ac_cv_prog_cc_cross
1956 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1957 echo "configure:1958: checking whether we are using GNU C" >&5
1959 cat > conftest.c <<EOF
1964 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1970 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1972 if test $ac_cv_prog_gcc = yes; then
1978 ac_test_CFLAGS="${CFLAGS+set}"
1979 ac_save_CFLAGS="$CFLAGS"
1981 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1982 echo "configure:1983: checking whether ${CC-cc} accepts -g" >&5
1984 echo 'void f(){}' > conftest.c
1985 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1993 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1994 if test "$ac_test_CFLAGS" = set; then
1995 CFLAGS="$ac_save_CFLAGS"
1996 elif test $ac_cv_prog_cc_g = yes; then
1997 if test "$GCC" = yes; then
2003 if test "$GCC" = yes; then
2010 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2012 # Extract the first word of "gcc", so it can be a program name with args.
2013 set dummy gcc; ac_word=$2
2014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2015 echo "configure:2016: checking for $ac_word" >&5
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2022 for ac_dir in $ac_dummy; do
2023 test -z "$ac_dir" && ac_dir=.
2024 if test -f $ac_dir/$ac_word; then
2032 if test -n "$CC"; then
2033 echo "$ac_t""$CC" 1>&6
2035 echo "$ac_t""no" 1>&6
2038 if test -z "$CC"; then
2039 # Extract the first word of "cc", so it can be a program name with args.
2040 set dummy cc; ac_word=$2
2041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2042 echo "configure:2043: checking for $ac_word" >&5
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
2047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2050 for ac_dir in $ac_dummy; do
2051 test -z "$ac_dir" && ac_dir=.
2052 if test -f $ac_dir/$ac_word; then
2053 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2054 ac_prog_rejected=yes
2062 if test $ac_prog_rejected = yes; then
2063 # We found a bogon in the path, so make sure we never use it.
2064 set dummy $ac_cv_prog_CC
2066 if test $# -gt 0; then
2067 # We chose a different compiler from the bogus one.
2068 # However, it has the same basename, so the bogon will be chosen
2069 # first if we set CC to just the basename; use the full file name.
2071 set dummy "$ac_dir/$ac_word" "$@"
2078 if test -n "$CC"; then
2079 echo "$ac_t""$CC" 1>&6
2081 echo "$ac_t""no" 1>&6
2084 if test -z "$CC"; then
2085 case "`uname -s`" in
2087 # Extract the first word of "cl", so it can be a program name with args.
2088 set dummy cl; ac_word=$2
2089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_word" >&5
2092 if test -n "$CC"; then
2093 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2097 for ac_dir in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir=.
2099 if test -f $ac_dir/$ac_word; then
2107 if test -n "$CC"; then
2108 echo "$ac_t""$CC" 1>&6
2110 echo "$ac_t""no" 1>&6
2115 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2118 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2119 echo "configure:2120: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2122 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2123 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2124 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2125 ac_cpp='$CPP '"$xe_cppflags"
2126 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2127 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2130 cat > conftest.$ac_ext << EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2137 if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2138 ac_cv_prog_cc_works=yes
2139 # If we can't run a trivial program, we are probably using a cross compiler.
2140 if (./conftest; exit) 2>/dev/null; then
2141 ac_cv_prog_cc_cross=no
2143 ac_cv_prog_cc_cross=yes
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2148 ac_cv_prog_cc_works=no
2152 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2153 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2154 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2155 ac_cpp='$CPP '"$xe_cppflags"
2156 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2157 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2160 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2161 if test $ac_cv_prog_cc_works = no; then
2162 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2164 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2165 echo "configure:2166: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2166 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2167 cross_compiling=$ac_cv_prog_cc_cross
2169 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2170 echo "configure:2171: checking whether we are using GNU C" >&5
2172 cat > conftest.c <<EOF
2177 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2183 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2185 if test $ac_cv_prog_gcc = yes; then
2191 ac_test_CFLAGS="${CFLAGS+set}"
2192 ac_save_CFLAGS="$CFLAGS"
2194 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2195 echo "configure:2196: checking whether ${CC-cc} accepts -g" >&5
2197 echo 'void f(){}' > conftest.c
2198 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2207 if test "$ac_test_CFLAGS" = set; then
2208 CFLAGS="$ac_save_CFLAGS"
2209 elif test $ac_cv_prog_cc_g = yes; then
2210 if test "$GCC" = yes; then
2216 if test "$GCC" = yes; then
2224 CFLAGS="$xe_save_CFLAGS"
2227 test -n "$CPP" -a -d "$CPP" && CPP=
2229 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2231 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2232 echo "configure:2233: checking how to run the C preprocessor" >&5
2233 # On Suns, sometimes $CPP names a directory.
2234 if test -n "$CPP" && test -d "$CPP"; then
2237 if test -z "$CPP"; then
2239 # This must be in double quotes, not single quotes, because CPP may get
2240 # substituted into the Makefile and "${CC-cc}" will confuse make.
2242 # On the NeXT, cc -E runs the code through the compiler's parser,
2243 # not just through cpp.
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2251 { (eval echo configure:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2253 if test -z "$ac_err"; then
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2260 CPP="${CC-cc} -E -traditional-cpp"
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2268 { (eval echo configure:2269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2270 if test -z "$ac_err"; then
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2277 CPP="${CC-cc} -nologo -E"
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285 { (eval echo configure:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2287 if test -z "$ac_err"; then
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2301 ac_cv_prog_CPP="$CPP"
2302 CPP="$ac_cv_prog_CPP"
2304 ac_cv_prog_CPP="$CPP"
2306 echo "$ac_t""$CPP" 1>&6
2311 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2312 echo "configure:2313: checking for AIX" >&5
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2322 egrep "yes" >/dev/null 2>&1; then
2324 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2325 Defining _ALL_SOURCE
2327 cat >> confdefs.h <<\EOF
2328 #define _ALL_SOURCE 1
2334 echo "$ac_t""no" 1>&6
2339 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2340 echo "configure:2341: checking for GNU libc" >&5
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <features.h>
2347 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2348 #error Not a GNU libc system :-(
2349 ******* ======= ******** &&&&&&&&
2354 if { (eval echo configure:2355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2358 echo "configure: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2364 echo "$ac_t""$have_glibc" 1>&6
2365 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2366 Defining _GNU_SOURCE
2368 cat >> confdefs.h <<\EOF
2369 #define _GNU_SOURCE 1
2376 { test "$extra_verbose" = "yes" && cat << \EOF
2377 Defining __EXTENSIONS__
2379 cat >> confdefs.h <<\EOF
2380 #define __EXTENSIONS__ 1
2384 if test "$os_release" -ge 55; then
2385 { test "$extra_verbose" = "yes" && cat << \EOF
2386 Defining _XOPEN_SOURCE = 500
2388 cat >> confdefs.h <<\EOF
2389 #define _XOPEN_SOURCE 500
2393 { test "$extra_verbose" = "yes" && cat << \EOF
2394 Defining _XOPEN_SOURCE_EXTENDED
2396 cat >> confdefs.h <<\EOF
2397 #define _XOPEN_SOURCE_EXTENDED 1
2403 { test "$extra_verbose" = "yes" && cat << \EOF
2404 Defining _POSIX_C_SOURCE = 199506L
2406 cat >> confdefs.h <<\EOF
2407 #define _POSIX_C_SOURCE 199506L
2411 { test "$extra_verbose" = "yes" && cat << \EOF
2412 Defining _XOPEN_SOURCE = 500
2414 cat >> confdefs.h <<\EOF
2415 #define _XOPEN_SOURCE 500
2419 { test "$extra_verbose" = "yes" && cat << \EOF
2420 Defining _XOPEN_SOURCE_EXTENDED
2422 cat >> confdefs.h <<\EOF
2423 #define _XOPEN_SOURCE_EXTENDED 1
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2434 #if defined __SUNPRO_C
2436 #elif defined __DECC
2443 if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2451 case "$conftest_rc" in
2452 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2453 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2461 echo "Extracting information from the machine- and system-dependent headers..."
2463 tempcname="conftest.c"
2467 cat > $tempcname <<EOF
2469 #define C_SWITCH_SITE
2470 #define C_SWITCH_X_SITE
2471 #define LD_SWITCH_SITE
2472 #define LD_SWITCH_X_SITE
2473 #define LD_SWITCH_X_SITE_AUX
2474 #define OS_RELEASE $os_release
2475 #include "$srcdir/src/$opsysfile"
2476 #include "$srcdir/src/$machfile"
2478 #ifndef LIBS_MACHINE
2479 #define LIBS_MACHINE
2481 configure___ libs_machine=LIBS_MACHINE
2486 configure___ libs_system=LIBS_SYSTEM
2488 #ifndef LIBS_TERMCAP
2489 #define LIBS_TERMCAP
2491 configure___ libs_termcap=LIBS_TERMCAP
2493 #ifndef LIB_STANDARD
2494 #define LIB_STANDARD
2496 configure___ libs_standard=LIB_STANDARD
2499 #ifndef OBJECTS_MACHINE
2500 #define OBJECTS_MACHINE
2502 configure___ objects_machine=OBJECTS_MACHINE
2504 #ifndef OBJECTS_SYSTEM
2505 #define OBJECTS_SYSTEM
2507 configure___ objects_system=OBJECTS_SYSTEM
2510 #ifndef C_SWITCH_MACHINE
2511 #define C_SWITCH_MACHINE
2513 configure___ c_switch_machine=C_SWITCH_MACHINE
2515 #ifndef C_SWITCH_SYSTEM
2516 #define C_SWITCH_SYSTEM
2518 configure___ c_switch_system=C_SWITCH_SYSTEM
2521 #ifndef LD_SWITCH_MACHINE
2522 #define LD_SWITCH_MACHINE
2524 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2526 #ifndef LD_SWITCH_SYSTEM
2527 #define LD_SWITCH_SYSTEM
2529 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2533 #define UNEXEC "unexec.o"
2535 configure___ unexec=UNEXEC
2538 #ifndef LD_SWITCH_SHARED
2539 #define LD_SWITCH_SHARED "-c"
2541 configure___ ld_switch_shared=LD_SWITCH_SHARED
2544 #ifdef ORDINARY_LINK
2545 #define LD "\$(CC) \$(CFLAGS)"
2546 #else /* no ORDINARY LINK */
2547 #ifdef COFF_ENCAPSULATE
2548 #define LD "\$(CC) -nostdlib"
2549 #else /* not COFF_ENCAPSULATE */
2552 #else /* ! defined (LINKER) */
2554 #endif /* ! defined (LINKER) */
2555 #endif /* ! defined (COFF_ENCAPSULATE) */
2556 #endif /* not ORDINARY_LINK */
2562 configure___ lib_gcc=LIB_GCC
2564 #ifndef LD_TEXT_START_ADDR
2565 #define LD_TEXT_START_ADDR
2567 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2570 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2572 #ifdef COFF_ENCAPSULATE
2573 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2574 #else /* ! defined (COFF_ENCAPSULATE) */
2575 #define START_FILES "pre-crt0.o /lib/crt0.o"
2576 #endif /* ! defined (COFF_ENCAPSULATE) */
2577 #else /* ! defined (NO_REMAP) */
2578 #define START_FILES "ecrt0.o"
2579 #endif /* ! defined (NO_REMAP) */
2580 #endif /* no ORDINARY_LINK */
2584 configure___ start_files=START_FILES
2586 #ifdef ORDINARY_LINK
2587 configure___ ordinary_link=yes
2589 configure___ ordinary_link=no
2592 #ifdef SYSTEM_MALLOC
2593 configure___ system_malloc=yes
2595 configure___ system_malloc=no
2599 configure___ have_terminfo=yes
2601 configure___ have_terminfo=no
2604 #ifdef MAIL_USE_FLOCK
2605 configure___ mail_use_flock=yes
2607 configure___ mail_use_flock=no
2610 #ifdef MAIL_USE_LOCKF
2611 configure___ mail_use_lockf=yes
2613 configure___ mail_use_lockf=no
2616 #ifdef MAIL_USE_LOCKING
2617 configure___ mail_use_locking=yes
2619 configure___ mail_use_locking=no
2622 #ifdef HAVE_WIN32_PROCESSES
2623 configure___ win32_processes=yes
2625 configure___ win32_processes=no
2630 CPP=`eval "echo $CPP $CPPFLAGS"`
2631 eval `$CPP -Isrc $tempcname \
2632 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2636 test "$extra_verbose" = "yes" && \
2637 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 ""
2639 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2640 mingw_include=`eval "dirname $mingw_include"` ;
2641 mingw_include="-I$mingw_include/../include/mingw32" ;
2642 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2645 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2647 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2649 if test "$cflags_specified" = "no"; then
2650 if test "$GCC" = "yes"; then
2651 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2652 elif test "$__SUNPRO_C" = "yes"; then
2654 sol2 ) CFLAGS="-v -xO4" ;;
2655 sunos4* ) CFLAGS="-xO2";;
2657 elif test "$__DECC" = "yes"; then
2659 elif test "$CC" = "xlc"; then
2660 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2665 if test "$GCC" = "yes"; then
2666 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2667 echo "configure:2668: checking for buggy gcc versions" >&5
2668 GCC_VERSION=`$CC --version`
2669 case `uname -s`:`uname -m`:$GCC_VERSION in
2670 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2674 *-fno-schedule-insns*) ;;
2676 echo "$ac_t""Yes" 1>&6
2677 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2678 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2679 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2685 Linux:alpha:egcs-2.91.*)
2686 echo "$ac_t""Yes" 1>&6
2687 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2688 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2689 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2692 case "$GCC_VERSION" in
2697 *-fno-strength-reduce*) ;;
2699 echo "$ac_t""Yes" 1>&6
2700 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2701 echo "configure: warning: -fno-strength-reduce." 1>&2
2702 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2710 *-fno-caller-saves*) ;;
2712 echo "$ac_t""Yes" 1>&6
2713 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2714 echo "configure: warning: -fno-caller-saves." 1>&2
2715 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2721 echo "$ac_t""No" 1>&6
2724 if test "$GCC" = "yes"; then
2725 set x $ld_switch_system; shift; ld_switch_system=""
2726 while test -n "$1"; do
2728 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2729 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2731 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2737 if test "$GCC" = "yes"; then
2738 set x $ld_switch_machine; shift; ld_switch_machine=""
2739 while test -n "$1"; do
2741 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2742 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2744 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2750 if test "$GCC" = "yes"; then
2751 set x $LDFLAGS; shift; LDFLAGS=""
2752 while test -n "$1"; do
2754 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2755 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2757 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2763 if test "$GCC" = "yes"; then
2764 set x $ld_call_shared; shift; ld_call_shared=""
2765 while test -n "$1"; do
2767 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2768 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2770 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2776 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2777 echo " xemacs will be linked with \"$objects_machine\""
2779 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2780 echo " xemacs will be linked with \"$objects_system\""
2782 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2783 echo " xemacs will be linked with \"$unexec\""
2785 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2786 echo " xemacs will be linked with \"dumper.o\""
2789 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2790 echo "configure:2791: checking for dynodump" >&5
2791 if test "$unexec" != "unexsol2.o"; then
2792 echo "$ac_t""no" 1>&6
2794 echo "$ac_t""yes" 1>&6
2795 { test "$extra_verbose" = "yes" && cat << \EOF
2798 cat >> confdefs.h <<\EOF
2803 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2804 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2806 sparc ) dynodump_arch=sparc ;;
2807 *86* ) dynodump_arch=i386 ;;
2808 powerpc ) dynodump_arch=ppc ;;
2810 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
2814 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2816 if test "$unexec" = "unexaix.o"; then
2817 if test "$dynamic" = "no"; then
2818 start_flags="-Wl,-bnso,-bnodelcsect"
2819 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2820 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2821 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2823 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2824 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2827 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2828 echo "configure:2829: checking for terminateAndUnload in -lC" >&5
2829 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2831 xe_check_libs=" -lC "
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 /* Override any gcc2 internal prototype to avoid an error. */
2836 /* We use char because int might match the return type of a gcc2
2837 builtin and then its argument prototype would still apply. */
2838 char terminateAndUnload();
2841 terminateAndUnload()
2844 if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2846 eval "ac_cv_lib_$ac_lib_var=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 eval "ac_cv_lib_$ac_lib_var=no"
2856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2857 echo "$ac_t""yes" 1>&6
2858 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2860 echo "$ac_t""no" 1>&6
2865 elif test -n "$ld_text_start_addr"; then
2866 start_flags="-T $ld_text_start_addr -e __start"
2872 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2873 test -z "$linker" && linker='$(CC) -nostdlib'
2874 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2876 test "$GCC" != "yes" && lib_gcc=
2882 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2883 if test -n "$site_libraries"; then
2884 for arg in $site_libraries; do
2887 * ) test -d "$arg" || \
2888 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2891 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2895 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2896 if test -n "$site_includes"; then
2897 for arg in $site_includes; do
2900 * ) test -d "$arg" || \
2901 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2904 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2908 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2909 if test -n "$site_prefixes"; then
2910 for dir in $site_prefixes; do
2911 lib_dir="${dir}/lib"
2912 inc_dir="${dir}/include"
2913 if test ! -d "$dir"; then
2914 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2915 elif test ! -d "$lib_dir"; then
2916 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2918 if test -d "$inc_dir"; then
2919 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
2921 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
2927 for dir in "/usr/ccs/lib"; do
2928 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
2931 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2932 if test -n "$site_runtime_libraries"; then
2933 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2941 if test -n "$add_runtime_path"; then :;
2942 elif test "$dynamic" = "no"; then add_runtime_path=no
2943 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2944 else case "$opsys" in
2945 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2946 * ) add_runtime_path=no ;;
2950 if test "$add_runtime_path" = "yes"; then
2951 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2952 echo "configure:2953: checking "for runtime libraries flag"" >&5
2954 sol2 ) dash_r="-R" ;;
2955 decosf* | linux* | irix*) dash_r="-rpath " ;;
2958 for try_dash_r in "-R" "-R " "-rpath "; do
2959 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2961 if test "$GCC" = "yes"; then
2962 set x $xe_check_libs; shift; xe_check_libs=""
2963 while test -n "$1"; do
2965 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2966 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2968 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2973 cat > conftest.$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2981 if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2983 dash_r="$try_dash_r"
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2990 test -n "$dash_r" && break
2993 if test -n "$dash_r";
2994 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2995 else echo "$ac_t""NONE" 1>&6
2999 xe_add_unique_runpath_dir='
3001 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3003 if test "$xe_add_p" = "yes"; then
3004 test -n "$runpath" && runpath="${runpath}:"
3005 runpath="${runpath}${xe_runpath_dir}"
3006 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3012 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3013 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3014 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3016 runpath="" runpath_dirs=""
3017 if test -n "$LD_RUN_PATH"; then
3018 runpath="$LD_RUN_PATH"
3019 elif test "$GCC" = "yes"; then
3020 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3021 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3022 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3023 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3024 case "$arg" in P,* | -L* | -R* )
3025 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3027 xe_runpath_dir="$dir"
3028 test "$xe_runpath_dir" != "/lib" -a \
3029 "$xe_runpath_dir" != "/usr/lib" -a \
3030 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3031 eval "$xe_add_unique_runpath_dir"
3036 ld_switch_run="$ld_switch_run_save"
3039 for arg in $ld_switch_site $ld_switch_x_site; do
3040 case "$arg" in -L*) {
3041 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3042 test "$xe_runpath_dir" != "/lib" -a \
3043 "$xe_runpath_dir" != "/usr/lib" -a \
3044 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3045 eval "$xe_add_unique_runpath_dir"
3048 if test "$opsys $need_motif" = "sol2 yes"; then
3049 xe_runpath_dir="/opt/SUNWdt/lib";
3050 eval "$xe_add_unique_runpath_dir";
3053 if test -n "$runpath"; then
3054 ld_switch_run="${dash_r}${runpath}"
3056 if test "$GCC" = "yes"; then
3057 set x $ld_switch_run; shift; ld_switch_run=""
3058 while test -n "$1"; do
3060 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3061 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3063 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3068 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3076 if test "$with_dlmalloc" != "no"; then
3081 after_morecore_hook_exists=yes
3082 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3083 echo "configure:3084: checking for malloc_get_state" >&5
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3088 /* System header to define __stub macros and hopefully few prototypes,
3089 which can conflict with char malloc_get_state(); below. */
3091 /* Override any gcc2 internal prototype to avoid an error. */
3092 /* We use char because int might match the return type of a gcc2
3093 builtin and then its argument prototype would still apply. */
3094 char malloc_get_state();
3098 /* The GNU C library defines this for functions which it implements
3099 to always fail with ENOSYS. Some functions are actually named
3100 something starting with __ and the normal name is an alias. */
3101 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3109 if { (eval echo configure:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3111 eval "ac_cv_func_malloc_get_state=yes"
3113 echo "configure: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3116 eval "ac_cv_func_malloc_get_state=no"
3120 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3121 echo "$ac_t""yes" 1>&6
3124 echo "$ac_t""no" 1>&6
3128 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3129 echo "configure:3130: checking for malloc_set_state" >&5
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* System header to define __stub macros and hopefully few prototypes,
3135 which can conflict with char malloc_set_state(); below. */
3137 /* Override any gcc2 internal prototype to avoid an error. */
3138 /* We use char because int might match the return type of a gcc2
3139 builtin and then its argument prototype would still apply. */
3140 char malloc_set_state();
3144 /* The GNU C library defines this for functions which it implements
3145 to always fail with ENOSYS. Some functions are actually named
3146 something starting with __ and the normal name is an alias. */
3147 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3157 eval "ac_cv_func_malloc_set_state=yes"
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3162 eval "ac_cv_func_malloc_set_state=no"
3166 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3170 echo "$ac_t""no" 1>&6
3174 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3175 echo "configure:3176: checking whether __after_morecore_hook exists" >&5
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 extern void (* __after_morecore_hook)();
3181 __after_morecore_hook = 0
3184 if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3186 echo "$ac_t""yes" 1>&6
3188 echo "configure: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3191 echo "$ac_t""no" 1>&6
3192 after_morecore_hook_exists=no
3195 if test "$system_malloc" = "yes" ; then
3198 (The GNU allocators don't work with this system configuration)."
3199 elif test "$with_system_malloc" = "yes" ; then
3202 (User chose not to use GNU allocators)."
3203 elif test "$with_debug_malloc" = "yes" ; then
3206 (User chose to use Debugging Malloc)."
3209 if test "$doug_lea_malloc" = "yes" ; then
3210 if test "$GNU_MALLOC" = yes ; then
3212 (Using Doug Lea's new malloc from the GNU C Library.)"
3214 { test "$extra_verbose" = "yes" && cat << \EOF
3215 Defining DOUG_LEA_MALLOC
3217 cat >> confdefs.h <<\EOF
3218 #define DOUG_LEA_MALLOC 1
3222 if test "$after_morecore_hook_exists" = "no" ; then
3224 (Using Doug Lea's new malloc from the Linux C Library.)"
3225 { test "$extra_verbose" = "yes" && cat << \EOF
3226 Defining _NO_MALLOC_WARNING_
3228 cat >> confdefs.h <<\EOF
3229 #define _NO_MALLOC_WARNING_ 1
3234 use_minimal_tagbits=yes
3240 # Extract the first word of "ranlib", so it can be a program name with args.
3241 set dummy ranlib; ac_word=$2
3242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_word" >&5
3245 if test -n "$RANLIB"; then
3246 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3250 for ac_dir in $ac_dummy; do
3251 test -z "$ac_dir" && ac_dir=.
3252 if test -f $ac_dir/$ac_word; then
3253 ac_cv_prog_RANLIB="ranlib"
3258 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3260 RANLIB="$ac_cv_prog_RANLIB"
3261 if test -n "$RANLIB"; then
3262 echo "$ac_t""$RANLIB" 1>&6
3264 echo "$ac_t""no" 1>&6
3268 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3269 if test -f $ac_dir/install-sh; then
3271 ac_install_sh="$ac_aux_dir/install-sh -c"
3273 elif test -f $ac_dir/install.sh; then
3275 ac_install_sh="$ac_aux_dir/install.sh -c"
3279 if test -z "$ac_aux_dir"; then
3280 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3282 ac_config_guess=$ac_aux_dir/config.guess
3283 ac_config_sub=$ac_aux_dir/config.sub
3284 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3286 # Find a good install program. We prefer a C program (faster),
3287 # so one script is as good as another. But avoid the broken or
3288 # incompatible versions:
3289 # SysV /etc/install, /usr/sbin/install
3290 # SunOS /usr/etc/install
3291 # IRIX /sbin/install
3293 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3294 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3296 # ./install, which can be erroneously created by make from ./install.sh.
3297 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3298 echo "configure:3299: checking for a BSD compatible install" >&5
3299 if test -z "$INSTALL"; then
3301 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3302 for ac_dir in $PATH; do
3303 # Account for people who put trailing slashes in PATH elements.
3305 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3307 # OSF1 and SCO ODT 3.0 have their own names for install.
3308 # Don't use installbsd from OSF since it installs stuff as root
3310 for ac_prog in ginstall scoinst install; do
3311 if test -f $ac_dir/$ac_prog; then
3312 if test $ac_prog = install &&
3313 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3314 # AIX install. It has an incompatible calling convention.
3317 ac_cv_path_install="$ac_dir/$ac_prog -c"
3327 if test "${ac_cv_path_install+set}" = set; then
3328 INSTALL="$ac_cv_path_install"
3330 # As a last resort, use the slow shell script. We don't cache a
3331 # path for INSTALL within a source directory, because that will
3332 # break other packages using the cache if that directory is
3333 # removed, or if the path is relative.
3334 INSTALL="$ac_install_sh"
3337 echo "$ac_t""$INSTALL" 1>&6
3339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3340 # It thinks the first close brace ends the variable substitution.
3341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3347 for ac_prog in 'bison -y' byacc
3349 # Extract the first word of "$ac_prog", so it can be a program name with args.
3350 set dummy $ac_prog; ac_word=$2
3351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_word" >&5
3354 if test -n "$YACC"; then
3355 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3359 for ac_dir in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f $ac_dir/$ac_word; then
3362 ac_cv_prog_YACC="$ac_prog"
3368 YACC="$ac_cv_prog_YACC"
3369 if test -n "$YACC"; then
3370 echo "$ac_t""$YACC" 1>&6
3372 echo "$ac_t""no" 1>&6
3375 test -n "$YACC" && break
3377 test -n "$YACC" || YACC="yacc"
3380 for ac_hdr in a.out.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/stropts.h sys/time.h sys/timeb.h sys/un.h kstat.h ulimit.h unistd.h utime.h
3382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3384 echo "configure:3385: checking for $ac_hdr" >&5
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3392 { (eval echo configure:3393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3394 if test -z "$ac_err"; then
3396 eval "ac_cv_header_$ac_safe=yes"
3399 echo "configure: failed program was:" >&5
3400 cat conftest.$ac_ext >&5
3402 eval "ac_cv_header_$ac_safe=no"
3405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3406 echo "$ac_t""yes" 1>&6
3407 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3408 { test "$extra_verbose" = "yes" && cat << EOF
3411 cat >> confdefs.h <<EOF
3412 #define $ac_tr_hdr 1
3417 echo "$ac_t""no" 1>&6
3421 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3422 echo "configure:3423: checking for sys/wait.h that is POSIX.1 compatible" >&5
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <sys/types.h>
3428 #include <sys/wait.h>
3430 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3433 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3438 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3441 if { (eval echo configure:3442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443 ac_cv_header_sys_wait_h=yes
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3448 ac_cv_header_sys_wait_h=no
3452 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3453 if test $ac_cv_header_sys_wait_h = yes; then
3454 { test "$extra_verbose" = "yes" && cat << \EOF
3455 Defining HAVE_SYS_WAIT_H
3457 cat >> confdefs.h <<\EOF
3458 #define HAVE_SYS_WAIT_H 1
3464 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3465 echo "configure:3466: checking for ANSI C header files" >&5
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3476 { (eval echo configure:3477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3478 if test -z "$ac_err"; then
3480 ac_cv_header_stdc=yes
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3486 ac_cv_header_stdc=no
3490 if test $ac_cv_header_stdc = yes; then
3491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3498 egrep "memchr" >/dev/null 2>&1; then
3502 ac_cv_header_stdc=no
3508 if test $ac_cv_header_stdc = yes; then
3509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3510 cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3516 egrep "free" >/dev/null 2>&1; then
3520 ac_cv_header_stdc=no
3526 if test $ac_cv_header_stdc = yes; then
3527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3528 cat > conftest.$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3532 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3533 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3535 int main () { int i; for (i = 0; i < 256; i++)
3536 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3540 if { (eval echo configure:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 ac_cv_header_stdc=no
3553 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3554 if test $ac_cv_header_stdc = yes; then
3555 { test "$extra_verbose" = "yes" && cat << \EOF
3556 Defining STDC_HEADERS
3558 cat >> confdefs.h <<\EOF
3559 #define STDC_HEADERS 1
3565 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3566 echo "configure:3567: checking whether time.h and sys/time.h may both be included" >&5
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 #include <sys/types.h>
3572 #include <sys/time.h>
3578 if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580 ac_cv_header_time=yes
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3585 ac_cv_header_time=no
3589 echo "$ac_t""$ac_cv_header_time" 1>&6
3590 if test $ac_cv_header_time = yes; then
3591 { test "$extra_verbose" = "yes" && cat << \EOF
3592 Defining TIME_WITH_SYS_TIME
3594 cat >> confdefs.h <<\EOF
3595 #define TIME_WITH_SYS_TIME 1
3601 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3602 echo "configure:3603: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 #include <sys/types.h>
3609 /* NetBSD declares sys_siglist in unistd.h. */
3610 #ifdef HAVE_UNISTD_H
3614 char *msg = *(sys_siglist + 1);
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3619 ac_cv_decl_sys_siglist=yes
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3624 ac_cv_decl_sys_siglist=no
3628 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3629 if test $ac_cv_decl_sys_siglist = yes; then
3630 { test "$extra_verbose" = "yes" && cat << \EOF
3631 Defining SYS_SIGLIST_DECLARED
3633 cat >> confdefs.h <<\EOF
3634 #define SYS_SIGLIST_DECLARED 1
3641 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3642 echo "configure:3643: checking for struct utimbuf" >&5
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #ifdef TIME_WITH_SYS_TIME
3647 #include <sys/time.h>
3650 #ifdef HAVE_SYS_TIME_H
3651 #include <sys/time.h>
3660 static struct utimbuf x; x.actime = x.modtime;
3663 if { (eval echo configure:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665 echo "$ac_t""yes" 1>&6
3666 { test "$extra_verbose" = "yes" && cat << \EOF
3667 Defining HAVE_STRUCT_UTIMBUF
3669 cat >> confdefs.h <<\EOF
3670 #define HAVE_STRUCT_UTIMBUF 1
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3678 echo "$ac_t""no" 1>&6
3682 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3683 echo "configure:3684: checking return type of signal handlers" >&5
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3688 #include <sys/types.h>
3694 extern "C" void (*signal (int, void (*)(int)))(int);
3696 void (*signal ()) ();
3703 if { (eval echo configure:3704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705 ac_cv_type_signal=void
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3710 ac_cv_type_signal=int
3714 echo "$ac_t""$ac_cv_type_signal" 1>&6
3715 { test "$extra_verbose" = "yes" && cat << EOF
3716 Defining RETSIGTYPE = $ac_cv_type_signal
3718 cat >> confdefs.h <<EOF
3719 #define RETSIGTYPE $ac_cv_type_signal
3724 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3725 echo "configure:3726: checking for size_t" >&5
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <sys/types.h>
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3739 ac_cv_type_size_t=yes
3742 ac_cv_type_size_t=no
3746 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3747 if test $ac_cv_type_size_t = no; then
3748 { test "$extra_verbose" = "yes" && cat << \EOF
3749 Defining size_t = unsigned
3751 cat >> confdefs.h <<\EOF
3752 #define size_t unsigned
3758 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3759 echo "configure:3760: checking for pid_t" >&5
3761 cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 #include <sys/types.h>
3770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3771 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3773 ac_cv_type_pid_t=yes
3780 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3781 if test $ac_cv_type_pid_t = no; then
3782 { test "$extra_verbose" = "yes" && cat << \EOF
3783 Defining pid_t = int
3785 cat >> confdefs.h <<\EOF
3792 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3793 echo "configure:3794: checking for uid_t in sys/types.h" >&5
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #include <sys/types.h>
3800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3801 egrep "uid_t" >/dev/null 2>&1; then
3803 ac_cv_type_uid_t=yes
3811 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3812 if test $ac_cv_type_uid_t = no; then
3813 { test "$extra_verbose" = "yes" && cat << \EOF
3814 Defining uid_t = int
3816 cat >> confdefs.h <<\EOF
3821 { test "$extra_verbose" = "yes" && cat << \EOF
3822 Defining gid_t = int
3824 cat >> confdefs.h <<\EOF
3831 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3832 echo "configure:3833: checking for mode_t" >&5
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3837 #include <sys/types.h>
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3846 ac_cv_type_mode_t=yes
3849 ac_cv_type_mode_t=no
3853 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3854 if test $ac_cv_type_mode_t = no; then
3855 { test "$extra_verbose" = "yes" && cat << \EOF
3856 Defining mode_t = int
3858 cat >> confdefs.h <<\EOF
3865 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3866 echo "configure:3867: checking for off_t" >&5
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 #include <sys/types.h>
3877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3878 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3880 ac_cv_type_off_t=yes
3887 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3888 if test $ac_cv_type_off_t = no; then
3889 { test "$extra_verbose" = "yes" && cat << \EOF
3890 Defining off_t = long
3892 cat >> confdefs.h <<\EOF
3899 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3900 echo "configure:3901: checking for ssize_t" >&5
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 #include <sys/types.h>
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3914 ac_cv_type_ssize_t=yes
3917 ac_cv_type_ssize_t=no
3921 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3922 if test $ac_cv_type_ssize_t = no; then
3923 { test "$extra_verbose" = "yes" && cat << \EOF
3924 Defining ssize_t = int
3926 cat >> confdefs.h <<\EOF
3934 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3935 echo "configure:3936: checking for struct timeval" >&5
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3939 #ifdef TIME_WITH_SYS_TIME
3940 #include <sys/time.h>
3943 #ifdef HAVE_SYS_TIME_H
3944 #include <sys/time.h>
3950 static struct timeval x; x.tv_sec = x.tv_usec;
3953 if { (eval echo configure:3954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3955 echo "$ac_t""yes" 1>&6
3957 { test "$extra_verbose" = "yes" && cat << \EOF
3958 Defining HAVE_TIMEVAL
3960 cat >> confdefs.h <<\EOF
3961 #define HAVE_TIMEVAL 1
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3969 echo "$ac_t""no" 1>&6
3974 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3975 echo "configure:3976: checking whether struct tm is in sys/time.h or time.h" >&5
3977 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3980 #include <sys/types.h>
3983 struct tm *tp; tp->tm_sec;
3986 if { (eval echo configure:3987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3988 ac_cv_struct_tm=time.h
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3993 ac_cv_struct_tm=sys/time.h
3997 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3998 if test $ac_cv_struct_tm = sys/time.h; then
3999 { test "$extra_verbose" = "yes" && cat << \EOF
4000 Defining TM_IN_SYS_TIME
4002 cat >> confdefs.h <<\EOF
4003 #define TM_IN_SYS_TIME 1
4009 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4010 echo "configure:4011: checking for tm_zone in struct tm" >&5
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 #include <sys/types.h>
4016 #include <$ac_cv_struct_tm>
4018 struct tm tm; tm.tm_zone;
4021 if { (eval echo configure:4022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 ac_cv_struct_tm_zone=yes
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 ac_cv_struct_tm_zone=no
4032 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4033 if test "$ac_cv_struct_tm_zone" = yes; then
4034 { test "$extra_verbose" = "yes" && cat << \EOF
4035 Defining HAVE_TM_ZONE
4037 cat >> confdefs.h <<\EOF
4038 #define HAVE_TM_ZONE 1
4043 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4044 echo "configure:4045: checking for tzname" >&5
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4050 #ifndef tzname /* For SGI. */
4051 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4057 if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4059 ac_cv_var_tzname=yes
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4068 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4069 if test $ac_cv_var_tzname = yes; then
4070 { test "$extra_verbose" = "yes" && cat << \EOF
4071 Defining HAVE_TZNAME
4073 cat >> confdefs.h <<\EOF
4074 #define HAVE_TZNAME 1
4082 echo $ac_n "checking for working const""... $ac_c" 1>&6
4083 echo "configure:4084: checking for working const" >&5
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4091 /* Ultrix mips cc rejects this. */
4092 typedef int charset[2]; const charset x;
4093 /* SunOS 4.1.1 cc rejects this. */
4094 char const *const *ccp;
4096 /* NEC SVR4.0.2 mips cc rejects this. */
4097 struct point {int x, y;};
4098 static struct point const zero = {0,0};
4099 /* AIX XL C 1.02.0.0 rejects this.
4100 It does not let you subtract one const X* pointer from another in an arm
4101 of an if-expression whose if-part is not a constant expression */
4102 const char *g = "string";
4103 ccp = &g + (g ? g-g : 0);
4104 /* HPUX 7.0 cc rejects these. */
4107 ccp = (char const *const *) p;
4108 { /* SCO 3.2v4 cc rejects this. */
4110 char const *s = 0 ? (char *) 0 : (char const *) 0;
4114 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4116 const int *foo = &x[0];
4119 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4120 typedef const int *iptr;
4124 { /* AIX XL C 1.02.0.0 rejects this saying
4125 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4126 struct s { int j; const int *ap[3]; };
4127 struct s *b; b->j = 5;
4129 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4135 if { (eval echo configure:4136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4139 echo "configure: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4146 echo "$ac_t""$ac_cv_c_const" 1>&6
4147 if test $ac_cv_c_const = no; then
4148 { test "$extra_verbose" = "yes" && cat << \EOF
4151 cat >> confdefs.h <<\EOF
4159 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4160 echo "configure:4161: checking whether ${MAKE-make} sets \${MAKE}" >&5
4161 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4163 cat > conftestmake <<\EOF
4165 @echo 'ac_maketemp="${MAKE}"'
4167 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4168 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4169 if test -n "$ac_maketemp"; then
4170 eval ac_cv_prog_make_${ac_make}_set=yes
4172 eval ac_cv_prog_make_${ac_make}_set=no
4175 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4179 echo "$ac_t""no" 1>&6
4180 SET_MAKE="MAKE=${MAKE-make}"
4184 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4185 echo "configure:4186: checking whether byte ordering is bigendian" >&5
4187 ac_cv_c_bigendian=unknown
4188 # See if sys/param.h defines the BYTE_ORDER macro.
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4192 #include <sys/types.h>
4193 #include <sys/param.h>
4196 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4201 if { (eval echo configure:4202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4203 # It does; now see whether it defined to BIG_ENDIAN or not.
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4207 #include <sys/types.h>
4208 #include <sys/param.h>
4211 #if BYTE_ORDER != BIG_ENDIAN
4216 if { (eval echo configure:4217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4218 ac_cv_c_bigendian=yes
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4223 ac_cv_c_bigendian=no
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4231 if test $ac_cv_c_bigendian = unknown; then
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4236 /* Are we little or big endian? From Harbison&Steele. */
4240 char c[sizeof (long)];
4243 exit (u.c[sizeof (long) - 1] == 1);
4246 if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4248 ac_cv_c_bigendian=no
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4254 ac_cv_c_bigendian=yes
4259 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4260 if test $ac_cv_c_bigendian = yes; then
4261 { test "$extra_verbose" = "yes" && cat << \EOF
4262 Defining WORDS_BIGENDIAN
4264 cat >> confdefs.h <<\EOF
4265 #define WORDS_BIGENDIAN 1
4272 echo $ac_n "checking size of short""... $ac_c" 1>&6
4273 echo "configure:4274: checking size of short" >&5
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4281 FILE *f=fopen("conftestval", "w");
4283 fprintf(f, "%d\n", sizeof(short));
4287 if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4289 ac_cv_sizeof_short=`cat conftestval`
4292 echo "configure: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4295 ac_cv_sizeof_short=0
4298 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4299 { test "$extra_verbose" = "yes" && cat << EOF
4300 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4302 cat >> confdefs.h <<EOF
4303 #define SIZEOF_SHORT $ac_cv_sizeof_short
4308 if test "$ac_cv_sizeof_short" = 0; then
4310 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4311 echo "*** PANIC *** Please examine config.log for compilation errors."
4314 echo $ac_n "checking size of int""... $ac_c" 1>&6
4315 echo "configure:4316: checking size of int" >&5
4317 cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4323 FILE *f=fopen("conftestval", "w");
4325 fprintf(f, "%d\n", sizeof(int));
4329 if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4331 ac_cv_sizeof_int=`cat conftestval`
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4340 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4341 { test "$extra_verbose" = "yes" && cat << EOF
4342 Defining SIZEOF_INT = $ac_cv_sizeof_int
4344 cat >> confdefs.h <<EOF
4345 #define SIZEOF_INT $ac_cv_sizeof_int
4350 echo $ac_n "checking size of long""... $ac_c" 1>&6
4351 echo "configure:4352: checking size of long" >&5
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4359 FILE *f=fopen("conftestval", "w");
4361 fprintf(f, "%d\n", sizeof(long));
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4367 ac_cv_sizeof_long=`cat conftestval`
4370 echo "configure: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4376 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4377 { test "$extra_verbose" = "yes" && cat << EOF
4378 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4380 cat >> confdefs.h <<EOF
4381 #define SIZEOF_LONG $ac_cv_sizeof_long
4386 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4387 echo "configure:4388: checking size of long long" >&5
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4395 FILE *f=fopen("conftestval", "w");
4397 fprintf(f, "%d\n", sizeof(long long));
4401 if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4403 ac_cv_sizeof_long_long=`cat conftestval`
4406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4409 ac_cv_sizeof_long_long=0
4412 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4413 { test "$extra_verbose" = "yes" && cat << EOF
4414 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4416 cat >> confdefs.h <<EOF
4417 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4422 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4423 echo "configure:4424: checking size of void *" >&5
4425 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4431 FILE *f=fopen("conftestval", "w");
4433 fprintf(f, "%d\n", sizeof(void *));
4437 if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4439 ac_cv_sizeof_void_p=`cat conftestval`
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 ac_cv_sizeof_void_p=0
4448 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4449 { test "$extra_verbose" = "yes" && cat << EOF
4450 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4452 cat >> confdefs.h <<EOF
4453 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4459 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4460 echo "configure:4461: checking for long file names" >&5
4462 ac_cv_sys_long_file_names=yes
4463 # Test for long file names in all the places we know might matter:
4464 # . the current directory, where building will happen
4465 # $prefix/lib where we will be installing things
4466 # $exec_prefix/lib likewise
4467 # eval it to expand exec_prefix.
4468 # $TMPDIR if set, where it might want to write temporary files
4469 # if $TMPDIR is not set:
4470 # /tmp where it might want to write temporary files
4473 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4474 ac_tmpdirs="$TMPDIR"
4476 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4478 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4479 test -d $ac_dir || continue
4480 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4481 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4482 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4483 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4484 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4485 ac_cv_sys_long_file_names=no
4486 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4489 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4492 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4493 if test $ac_cv_sys_long_file_names = yes; then
4494 { test "$extra_verbose" = "yes" && cat << \EOF
4495 Defining HAVE_LONG_FILE_NAMES
4497 cat >> confdefs.h <<\EOF
4498 #define HAVE_LONG_FILE_NAMES 1
4505 echo $ac_n "checking for sin""... $ac_c" 1>&6
4506 echo "configure:4507: checking for sin" >&5
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4511 /* System header to define __stub macros and hopefully few prototypes,
4512 which can conflict with char sin(); below. */
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4521 /* The GNU C library defines this for functions which it implements
4522 to always fail with ENOSYS. Some functions are actually named
4523 something starting with __ and the normal name is an alias. */
4524 #if defined (__stub_sin) || defined (__stub___sin)
4532 if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4534 eval "ac_cv_func_sin=yes"
4536 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4539 eval "ac_cv_func_sin=no"
4543 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4544 echo "$ac_t""yes" 1>&6
4547 echo "$ac_t""no" 1>&6
4549 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4550 echo "configure:4551: checking for sin in -lm" >&5
4551 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4553 xe_check_libs=" -lm "
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* Override any gcc2 internal prototype to avoid an error. */
4558 /* We use char because int might match the return type of a gcc2
4559 builtin and then its argument prototype would still apply. */
4566 if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4568 eval "ac_cv_lib_$ac_lib_var=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4573 eval "ac_cv_lib_$ac_lib_var=no"
4578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4579 echo "$ac_t""yes" 1>&6
4580 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4582 { test "$extra_verbose" = "yes" && cat << EOF
4585 cat >> confdefs.h <<EOF
4586 #define $ac_tr_lib 1
4590 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4593 echo "$ac_t""no" 1>&6
4600 { test "$extra_verbose" = "yes" && cat << \EOF
4601 Defining LISP_FLOAT_TYPE
4603 cat >> confdefs.h <<\EOF
4604 #define LISP_FLOAT_TYPE 1
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4614 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4619 { test "$extra_verbose" = "yes" && cat << \EOF
4620 Defining HAVE_INVERSE_HYPERBOLIC
4622 cat >> confdefs.h <<\EOF
4623 #define HAVE_INVERSE_HYPERBOLIC 1
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4633 echo "checking type of mail spool file locking" 1>&6
4634 echo "configure:4635: checking type of mail spool file locking" >&5
4635 for ac_func in lockf flock
4637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4638 echo "configure:4639: checking for $ac_func" >&5
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 /* System header to define __stub macros and hopefully few prototypes,
4644 which can conflict with char $ac_func(); below. */
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 /* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4653 /* The GNU C library defines this for functions which it implements
4654 to always fail with ENOSYS. Some functions are actually named
4655 something starting with __ and the normal name is an alias. */
4656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4666 eval "ac_cv_func_$ac_func=yes"
4668 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4671 eval "ac_cv_func_$ac_func=no"
4675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4678 { test "$extra_verbose" = "yes" && cat << EOF
4679 Defining $ac_tr_func
4681 cat >> confdefs.h <<EOF
4682 #define $ac_tr_func 1
4687 echo "$ac_t""no" 1>&6
4691 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4692 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4693 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4694 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4695 Defining MAIL_LOCK_LOCKF
4697 cat >> confdefs.h <<\EOF
4698 #define MAIL_LOCK_LOCKF 1
4702 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4703 Defining MAIL_LOCK_FLOCK
4705 cat >> confdefs.h <<\EOF
4706 #define MAIL_LOCK_FLOCK 1
4710 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4711 Defining MAIL_LOCK_LOCKING
4713 cat >> confdefs.h <<\EOF
4714 #define MAIL_LOCK_LOCKING 1
4718 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4719 Defining MAIL_LOCK_DOT
4721 cat >> confdefs.h <<\EOF
4722 #define MAIL_LOCK_DOT 1
4727 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4728 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4729 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4730 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4731 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4732 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4734 case "$opsys" in decosf*)
4736 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4737 echo "configure:4738: checking for cma_open in -lpthreads" >&5
4738 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4740 xe_check_libs=" -lpthreads "
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4744 /* Override any gcc2 internal prototype to avoid an error. */
4745 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */
4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4755 eval "ac_cv_lib_$ac_lib_var=yes"
4757 echo "configure: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4760 eval "ac_cv_lib_$ac_lib_var=no"
4765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4766 echo "$ac_t""yes" 1>&6
4767 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4768 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4769 { test "$extra_verbose" = "yes" && cat << EOF
4772 cat >> confdefs.h <<EOF
4773 #define $ac_tr_lib 1
4777 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4780 echo "$ac_t""no" 1>&6
4784 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4785 c_switch_site="$c_switch_site -threads" ;;
4788 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4789 echo "configure:4790: checking whether the -xildoff compiler flag is required" >&5
4790 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4791 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4792 then echo "$ac_t""no" 1>&6;
4793 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
4795 else echo "$ac_t""no" 1>&6
4798 if test "$opsys" = "sol2"; then
4799 if test "$os_release" -ge 56; then
4800 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4801 echo "configure:4802: checking for \"-z ignore\" linker flag" >&5
4802 case "`ld -h 2>&1`" in
4803 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4804 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4805 *) echo "$ac_t""no" 1>&6 ;;
4811 echo "checking "for specified window system"" 1>&6
4812 echo "configure:4813: checking "for specified window system"" >&5
4814 if test "$with_x11" != "no"; then
4815 test "$x_includes $x_libraries" != "NONE NONE" && \
4816 window_system=x11 with_x11=yes
4819 if test "$x_includes $x_libraries" = "NONE NONE" \
4820 -a -n "$OPENWINHOME" \
4821 -a "$OPENWINHOME" != "/usr/openwin" \
4822 -a -d "$OPENWINHOME"; then
4823 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4824 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4825 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4828 if test "$x_includes" = "NONE"; then
4829 for dir in "/usr/X11" "/usr/X11R6"; do
4830 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4834 if test "$x_libraries" = "NONE"; then
4835 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4836 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4840 # If we find X, set shell vars x_includes and x_libraries to the
4841 # paths, otherwise set no_x=yes.
4842 # Uses ac_ vars as temps to allow command line to override cache and checks.
4843 # --without-x overrides everything else, but does not touch the cache.
4844 echo $ac_n "checking for X""... $ac_c" 1>&6
4845 echo "configure:4846: checking for X" >&5
4847 # Check whether --with-x or --without-x was given.
4848 if test "${with_x+set}" = set; then
4853 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4854 if test "x$with_x" = xno; then
4855 # The user explicitly disabled X.
4858 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4859 # Both variables are already set.
4863 # One or both of the vars are not set, and there is no cached value.
4864 ac_x_includes=NO ac_x_libraries=NO
4866 if mkdir conftestdir; then
4868 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4869 cat > Imakefile <<'EOF'
4871 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4873 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4875 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4876 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4877 for ac_extension in a so sl; do
4878 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4879 test -f $ac_im_libdir/libX11.$ac_extension; then
4880 ac_im_usrlibdir=$ac_im_libdir; break
4883 # Screen out bogus values from the imake configuration. They are
4884 # bogus both because they are the default anyway, and because
4885 # using them would break gcc on systems where it needs fixed includes.
4886 case "$ac_im_incroot" in
4888 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4890 case "$ac_im_usrlibdir" in
4892 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4899 if test "$ac_x_includes" = NO; then
4900 # Guess where to find include files, by looking for this one X11 .h file.
4901 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4903 # First, try using that file with no special directory specified.
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 #include <$x_direct_test_include>
4909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4910 { (eval echo configure:4911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4912 if test -z "$ac_err"; then
4914 # We can compile using X headers with no special include directory.
4918 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4921 # Look for the header file in a standard set of common directories.
4922 # Check X11 before X11Rn because it is often a symlink to the current release.
4925 /usr/X11R6/include \
4926 /usr/X11R5/include \
4927 /usr/X11R4/include \
4930 /usr/include/X11R6 \
4931 /usr/include/X11R5 \
4932 /usr/include/X11R4 \
4934 /usr/local/X11/include \
4935 /usr/local/X11R6/include \
4936 /usr/local/X11R5/include \
4937 /usr/local/X11R4/include \
4939 /usr/local/include/X11 \
4940 /usr/local/include/X11R6 \
4941 /usr/local/include/X11R5 \
4942 /usr/local/include/X11R4 \
4946 /usr/XFree86/include/X11 \
4949 /usr/local/include \
4950 /usr/unsupported/include \
4951 /usr/athena/include \
4952 /usr/local/x11r5/include \
4953 /usr/lpp/Xamples/include \
4955 /usr/openwin/include \
4956 /usr/openwin/share/include \
4959 if test -r "$ac_dir/$x_direct_test_include"; then
4960 ac_x_includes=$ac_dir
4966 fi # $ac_x_includes = NO
4968 if test "$ac_x_libraries" = NO; then
4969 # Check for the libraries.
4971 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4972 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4974 # See if we find them without any special options.
4975 # Don't add to $LIBS permanently.
4976 ac_save_LIBS="$LIBS"
4977 LIBS="-l$x_direct_test_library $LIBS"
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4983 ${x_direct_test_function}()
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4988 LIBS="$ac_save_LIBS"
4989 # We can link X programs with no special library path.
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4995 LIBS="$ac_save_LIBS"
4996 # First see if replacing the include by lib works.
4997 # Check X11 before X11Rn because it is often a symlink to the current release.
4998 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5009 /usr/local/X11/lib \
5010 /usr/local/X11R6/lib \
5011 /usr/local/X11R5/lib \
5012 /usr/local/X11R4/lib \
5014 /usr/local/lib/X11 \
5015 /usr/local/lib/X11R6 \
5016 /usr/local/lib/X11R5 \
5017 /usr/local/lib/X11R4 \
5021 /usr/XFree86/lib/X11 \
5025 /usr/unsupported/lib \
5027 /usr/local/x11r5/lib \
5028 /usr/lpp/Xamples/lib \
5032 /usr/openwin/share/lib \
5035 for ac_extension in a so sl; do
5036 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5037 ac_x_libraries=$ac_dir
5044 fi # $ac_x_libraries = NO
5046 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5047 # Didn't find X anywhere. Cache the known absence of X.
5048 ac_cv_have_x="have_x=no"
5050 # Record where we found X for the cache.
5051 ac_cv_have_x="have_x=yes \
5052 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5055 eval "$ac_cv_have_x"
5058 if test "$have_x" != yes; then
5059 echo "$ac_t""$have_x" 1>&6
5062 # If each of the values was on the command line, it overrides each guess.
5063 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5064 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5065 # Update the cache value to reflect the command line values.
5066 ac_cv_have_x="have_x=yes \
5067 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5068 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5071 if test "$no_x" = yes; then
5072 # Not all programs may use this symbol, but it does not hurt to define it.
5073 { test "$extra_verbose" = "yes" && cat << \EOF
5074 Defining X_DISPLAY_MISSING
5076 cat >> confdefs.h <<\EOF
5077 #define X_DISPLAY_MISSING 1
5081 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5083 if test -n "$x_includes"; then
5084 X_CFLAGS="$X_CFLAGS -I$x_includes"
5087 # It would also be nice to do this for all -L options, not just this one.
5088 if test -n "$x_libraries"; then
5089 X_LIBS="$X_LIBS -L$x_libraries"
5090 # For Solaris; some versions of Sun CC require a space after -R and
5091 # others require no space. Words are not sufficient . . . .
5092 case "`(uname -sr) 2>/dev/null`" in
5094 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5095 echo "configure:5096: checking whether -R must be followed by a space" >&5
5096 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5115 if test $ac_R_nospace = yes; then
5116 echo "$ac_t""no" 1>&6
5117 X_LIBS="$X_LIBS -R$x_libraries"
5119 LIBS="$ac_xsave_LIBS -R $x_libraries"
5120 cat > conftest.$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5128 if { (eval echo configure:5129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5132 echo "configure: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5138 if test $ac_R_space = yes; then
5139 echo "$ac_t""yes" 1>&6
5140 X_LIBS="$X_LIBS -R $x_libraries"
5142 echo "$ac_t""neither works" 1>&6
5145 LIBS="$ac_xsave_LIBS"
5149 # Check for system-dependent libraries X programs must link with.
5150 # Do this before checking for the system-independent R6 libraries
5151 # (-lICE), since we may need -lsocket or whatever for X linking.
5153 if test "$ISC" = yes; then
5154 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5156 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5157 # libraries were built with DECnet support. And karl@cs.umb.edu says
5158 # the Alpha needs dnet_stub (dnet does not exist).
5159 if test "$with_dnet" = "no" ; then
5160 ac_cv_lib_dnet_dnet_ntoa=no
5163 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5164 echo "configure:5165: checking for dnet_ntoa in -ldnet" >&5
5165 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5167 xe_check_libs=" -ldnet "
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5180 if { (eval echo configure:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5182 eval "ac_cv_lib_$ac_lib_var=yes"
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5187 eval "ac_cv_lib_$ac_lib_var=no"
5192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5193 echo "$ac_t""yes" 1>&6
5194 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5196 echo "$ac_t""no" 1>&6
5201 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5203 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5204 echo "configure:5205: checking for dnet_ntoa in -ldnet_stub" >&5
5205 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5207 xe_check_libs=" -ldnet_stub "
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5211 /* Override any gcc2 internal prototype to avoid an error. */
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5220 if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5222 eval "ac_cv_lib_$ac_lib_var=yes"
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5227 eval "ac_cv_lib_$ac_lib_var=no"
5232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5233 echo "$ac_t""yes" 1>&6
5234 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5236 echo "$ac_t""no" 1>&6
5242 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5243 # to get the SysV transport functions.
5244 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5246 # The nsl library prevents programs from opening the X display
5247 # on Irix 5.2, according to dickey@clark.net.
5248 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5249 echo "configure:5250: checking for gethostbyname" >&5
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5254 /* System header to define __stub macros and hopefully few prototypes,
5255 which can conflict with char gethostbyname(); below. */
5257 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5260 char gethostbyname();
5264 /* The GNU C library defines this for functions which it implements
5265 to always fail with ENOSYS. Some functions are actually named
5266 something starting with __ and the normal name is an alias. */
5267 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5277 eval "ac_cv_func_gethostbyname=yes"
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 eval "ac_cv_func_gethostbyname=no"
5286 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5287 echo "$ac_t""yes" 1>&6
5290 echo "$ac_t""no" 1>&6
5293 if test $ac_cv_func_gethostbyname = no; then
5295 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5296 echo "configure:5297: checking for gethostbyname in -lnsl" >&5
5297 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5299 xe_check_libs=" -lnsl "
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
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. */
5306 char gethostbyname();
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5314 eval "ac_cv_lib_$ac_lib_var=yes"
5316 echo "configure: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5319 eval "ac_cv_lib_$ac_lib_var=no"
5324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5325 echo "$ac_t""yes" 1>&6
5326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5328 echo "$ac_t""no" 1>&6
5334 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5335 # socket/setsockopt and other routines are undefined under SCO ODT
5336 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5337 # on later versions), says simon@lia.di.epfl.ch: it contains
5338 # gethostby* variants that don't use the nameserver (or something).
5339 # -lsocket must be given before -lnsl if both are needed.
5340 # We assume that if connect needs -lnsl, so does gethostbyname.
5341 echo $ac_n "checking for connect""... $ac_c" 1>&6
5342 echo "configure:5343: checking for connect" >&5
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char connect(); below. */
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5357 /* The GNU C library defines this for functions which it implements
5358 to always fail with ENOSYS. Some functions are actually named
5359 something starting with __ and the normal name is an alias. */
5360 #if defined (__stub_connect) || defined (__stub___connect)
5368 if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5370 eval "ac_cv_func_connect=yes"
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5375 eval "ac_cv_func_connect=no"
5379 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5380 echo "$ac_t""yes" 1>&6
5383 echo "$ac_t""no" 1>&6
5386 if test $ac_cv_func_connect = no; then
5388 xe_msg_checking="for connect in -lsocket"
5389 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5390 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5391 echo "configure:5392: checking "$xe_msg_checking"" >&5
5392 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5394 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5407 if { (eval echo configure:5408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5409 eval "ac_cv_lib_$ac_lib_var=yes"
5411 echo "configure: failed program was:" >&5
5412 cat conftest.$ac_ext >&5
5414 eval "ac_cv_lib_$ac_lib_var=no"
5419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5420 echo "$ac_t""yes" 1>&6
5421 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5423 echo "$ac_t""no" 1>&6
5429 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5430 echo $ac_n "checking for remove""... $ac_c" 1>&6
5431 echo "configure:5432: checking for remove" >&5
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5436 /* System header to define __stub macros and hopefully few prototypes,
5437 which can conflict with char remove(); below. */
5439 /* Override any gcc2 internal prototype to avoid an error. */
5440 /* We use char because int might match the return type of a gcc2
5441 builtin and then its argument prototype would still apply. */
5446 /* The GNU C library defines this for functions which it implements
5447 to always fail with ENOSYS. Some functions are actually named
5448 something starting with __ and the normal name is an alias. */
5449 #if defined (__stub_remove) || defined (__stub___remove)
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459 eval "ac_cv_func_remove=yes"
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 eval "ac_cv_func_remove=no"
5468 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5472 echo "$ac_t""no" 1>&6
5475 if test $ac_cv_func_remove = no; then
5477 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5478 echo "configure:5479: checking for remove in -lposix" >&5
5479 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5481 xe_check_libs=" -lposix "
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* Override any gcc2 internal prototype to avoid an error. */
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5494 if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5496 eval "ac_cv_lib_$ac_lib_var=yes"
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5501 eval "ac_cv_lib_$ac_lib_var=no"
5506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5507 echo "$ac_t""yes" 1>&6
5508 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5510 echo "$ac_t""no" 1>&6
5516 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5517 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5518 echo "configure:5519: checking for shmat" >&5
5520 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523 /* System header to define __stub macros and hopefully few prototypes,
5524 which can conflict with char shmat(); below. */
5526 /* Override any gcc2 internal prototype to avoid an error. */
5527 /* We use char because int might match the return type of a gcc2
5528 builtin and then its argument prototype would still apply. */
5533 /* The GNU C library defines this for functions which it implements
5534 to always fail with ENOSYS. Some functions are actually named
5535 something starting with __ and the normal name is an alias. */
5536 #if defined (__stub_shmat) || defined (__stub___shmat)
5544 if { (eval echo configure:5545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5546 eval "ac_cv_func_shmat=yes"
5548 echo "configure: failed program was:" >&5
5549 cat conftest.$ac_ext >&5
5551 eval "ac_cv_func_shmat=no"
5555 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5556 echo "$ac_t""yes" 1>&6
5559 echo "$ac_t""no" 1>&6
5562 if test $ac_cv_func_shmat = no; then
5564 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5565 echo "configure:5566: checking for shmat in -lipc" >&5
5566 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5568 xe_check_libs=" -lipc "
5569 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure"
5571 #include "confdefs.h"
5572 /* Override any gcc2 internal prototype to avoid an error. */
5573 /* We use char because int might match the return type of a gcc2
5574 builtin and then its argument prototype would still apply. */
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5583 eval "ac_cv_lib_$ac_lib_var=yes"
5585 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5588 eval "ac_cv_lib_$ac_lib_var=no"
5593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5594 echo "$ac_t""yes" 1>&6
5595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5597 echo "$ac_t""no" 1>&6
5604 # Check for libraries that X11R6 Xt/Xaw programs need.
5605 ac_save_LDFLAGS="$LDFLAGS"
5606 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5607 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5608 # check for ICE first), but we must link in the order -lSM -lICE or
5609 # we get undefined symbols. So assume we have SM if we have ICE.
5610 # These have to be linked with before -lX11, unlike the other
5611 # libraries we check for below, so use a different variable.
5612 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5614 xe_msg_checking="for IceConnectionNumber in -lICE"
5615 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5616 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5617 echo "configure:5618: checking "$xe_msg_checking"" >&5
5618 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5620 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 /* Override any gcc2 internal prototype to avoid an error. */
5625 /* We use char because int might match the return type of a gcc2
5626 builtin and then its argument prototype would still apply. */
5627 char IceConnectionNumber();
5630 IceConnectionNumber()
5633 if { (eval echo configure:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5635 eval "ac_cv_lib_$ac_lib_var=yes"
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5640 eval "ac_cv_lib_$ac_lib_var=no"
5645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5646 echo "$ac_t""yes" 1>&6
5647 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5649 echo "$ac_t""no" 1>&6
5653 LDFLAGS="$ac_save_LDFLAGS"
5656 # Autoconf claims to find X library and include dirs for us.
5657 if test "$no_x" = "yes"
5658 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5659 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5664 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5665 no ) window_system=none HAVE_X_WINDOWS=no ;;
5668 if test "$with_x11" = "yes"; then
5669 { test "$extra_verbose" = "yes" && cat << \EOF
5670 Defining HAVE_X_WINDOWS
5672 cat >> confdefs.h <<\EOF
5673 #define HAVE_X_WINDOWS 1
5677 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5678 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5680 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5681 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5682 if test -d "$lib_dir" -a -d "$inc_dir"; then
5683 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5684 x_libraries="$lib_dir $x_libraries"
5685 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5687 case "$x_includes" in "$inc_dir"* ) ;; *)
5688 x_includes="$inc_dir $x_includes"
5689 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5694 for rel in "X11R6" "X11R5" "X11R4"; do
5695 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5696 if test -d "$lib_dir" -a -d "$inc_dir"; then
5697 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5698 x_libraries="$x_libraries $lib_dir"
5699 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5701 case "$x_includes" in "$inc_dir"* ) ;; *)
5702 x_includes="$x_includes $inc_dir"
5703 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5708 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
5710 ld_switch_x_site="$X_LIBS"
5713 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5714 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5715 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5717 runpath="" runpath_dirs=""
5718 if test -n "$LD_RUN_PATH"; then
5719 runpath="$LD_RUN_PATH"
5720 elif test "$GCC" = "yes"; then
5721 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5722 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5723 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5724 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5725 case "$arg" in P,* | -L* | -R* )
5726 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5728 xe_runpath_dir="$dir"
5729 test "$xe_runpath_dir" != "/lib" -a \
5730 "$xe_runpath_dir" != "/usr/lib" -a \
5731 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5732 eval "$xe_add_unique_runpath_dir"
5737 ld_switch_run="$ld_switch_run_save"
5740 for arg in $ld_switch_site $ld_switch_x_site; do
5741 case "$arg" in -L*) {
5742 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5743 test "$xe_runpath_dir" != "/lib" -a \
5744 "$xe_runpath_dir" != "/usr/lib" -a \
5745 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5746 eval "$xe_add_unique_runpath_dir"
5749 if test "$opsys $need_motif" = "sol2 yes"; then
5750 xe_runpath_dir="/opt/SUNWdt/lib";
5751 eval "$xe_add_unique_runpath_dir";
5754 if test -n "$runpath"; then
5755 ld_switch_run="${dash_r}${runpath}"
5757 if test "$GCC" = "yes"; then
5758 set x $ld_switch_run; shift; ld_switch_run=""
5759 while test -n "$1"; do
5761 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5762 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5764 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5769 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5774 if test "$extra_verbose" = "yes"; then
5775 echo; echo "X11 compilation variables:"
5776 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5781 if test "$x_includes" != NONE; then
5782 for i in $x_includes; do
5783 if test -d "$i/bitmaps"; then
5784 bitmapdirs="$i/bitmaps:$bitmapdirs"
5786 if test -d "$i/X11/bitmaps"; then
5787 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5790 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5792 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5793 Defining BITMAPDIR = "$bitmapdirs"
5795 cat >> confdefs.h <<EOF
5796 #define BITMAPDIR "$bitmapdirs"
5801 echo "checking for X defines extracted by xmkmf" 1>&6
5802 echo "configure:5803: checking for X defines extracted by xmkmf" >&5
5804 if mkdir conftestdir; then
5806 cat > Imakefile <<'EOF'
5808 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5810 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5812 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5816 for word in $xmkmf_defines; do
5819 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5820 { test "$extra_verbose" = "yes" && cat << EOF
5823 cat >> confdefs.h <<EOF
5832 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5833 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5834 echo "configure:5835: checking for X11/Intrinsic.h" >&5
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 #include <X11/Intrinsic.h>
5841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5842 { (eval echo configure:5843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5844 if test -z "$ac_err"; then
5846 eval "ac_cv_header_$ac_safe=yes"
5849 echo "configure: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 eval "ac_cv_header_$ac_safe=no"
5855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5856 echo "$ac_t""yes" 1>&6
5859 echo "$ac_t""no" 1>&6
5860 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5865 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5866 echo "configure:5867: checking for XOpenDisplay in -lX11" >&5
5867 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5869 xe_check_libs=" -lX11 "
5870 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5876 char XOpenDisplay();
5882 if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5884 eval "ac_cv_lib_$ac_lib_var=yes"
5886 echo "configure: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5889 eval "ac_cv_lib_$ac_lib_var=no"
5894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5895 echo "$ac_t""yes" 1>&6
5898 echo "$ac_t""no" 1>&6
5902 if test "$have_lib_x11" != "yes"; then
5904 xe_msg_checking="for XGetFontProperty in -lX11"
5905 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5906 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5907 echo "configure:5908: checking "$xe_msg_checking"" >&5
5908 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5910 xe_check_libs=" -lX11 -b i486-linuxaout"
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 /* Override any gcc2 internal prototype to avoid an error. */
5915 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5917 char XGetFontProperty();
5923 if { (eval echo configure:5924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5925 eval "ac_cv_lib_$ac_lib_var=yes"
5927 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5930 eval "ac_cv_lib_$ac_lib_var=no"
5935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5936 echo "$ac_t""yes" 1>&6
5937 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5939 echo "$ac_t""no" 1>&6
5940 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5946 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5949 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5950 echo "configure:5951: checking for XShapeSelectInput in -lXext" >&5
5951 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5953 xe_check_libs=" -lXext "
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 /* Override any gcc2 internal prototype to avoid an error. */
5958 /* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5960 char XShapeSelectInput();
5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5968 eval "ac_cv_lib_$ac_lib_var=yes"
5970 echo "configure: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5973 eval "ac_cv_lib_$ac_lib_var=no"
5978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5979 echo "$ac_t""yes" 1>&6
5980 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5982 echo "$ac_t""no" 1>&6
5988 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5989 echo "configure:5990: checking for XtOpenDisplay in -lXt" >&5
5990 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5992 xe_check_libs=" -lXt "
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
5999 char XtOpenDisplay();
6005 if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6007 eval "ac_cv_lib_$ac_lib_var=yes"
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6012 eval "ac_cv_lib_$ac_lib_var=no"
6017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6018 echo "$ac_t""yes" 1>&6
6019 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6021 echo "$ac_t""no" 1>&6
6022 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6027 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6028 echo "configure:6029: checking the version of X11 being used" >&5
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 #include <X11/Intrinsic.h>
6033 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6035 if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6037 ./conftest foobar; x11_release=$?
6040 echo "configure: failed program was:" >&5
6041 cat conftest.$ac_ext >&5
6046 echo "$ac_t""R${x11_release}" 1>&6
6047 { test "$extra_verbose" = "yes" && cat << EOF
6048 Defining THIS_IS_X11R${x11_release}
6050 cat >> confdefs.h <<EOF
6051 #define THIS_IS_X11R${x11_release} 1
6056 for ac_func in XConvertCase
6058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6059 echo "configure:6060: checking for $ac_func" >&5
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 /* System header to define __stub macros and hopefully few prototypes,
6065 which can conflict with char $ac_func(); below. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6074 /* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6085 if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6087 eval "ac_cv_func_$ac_func=yes"
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 eval "ac_cv_func_$ac_func=no"
6096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6097 echo "$ac_t""yes" 1>&6
6098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6099 { test "$extra_verbose" = "yes" && cat << EOF
6100 Defining $ac_tr_func
6102 cat >> confdefs.h <<EOF
6103 #define $ac_tr_func 1
6108 echo "$ac_t""no" 1>&6
6113 for ac_hdr in X11/Xlocale.h
6115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6117 echo "configure:6118: checking for $ac_hdr" >&5
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6125 { (eval echo configure:6126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6127 if test -z "$ac_err"; then
6129 eval "ac_cv_header_$ac_safe=yes"
6132 echo "configure: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6135 eval "ac_cv_header_$ac_safe=no"
6138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6139 echo "$ac_t""yes" 1>&6
6140 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6141 { test "$extra_verbose" = "yes" && cat << EOF
6144 cat >> confdefs.h <<EOF
6145 #define $ac_tr_hdr 1
6150 echo "$ac_t""no" 1>&6
6155 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6156 echo "configure:6157: checking for XFree86" >&5
6157 if test -d "/usr/X386/include" -o \
6158 -f "/etc/XF86Config" -o \
6159 -f "/etc/X11/XF86Config" -o \
6160 -f "/usr/X11R6/lib/X11/XF86Config"; then
6161 echo "$ac_t""yes" 1>&6
6162 { test "$extra_verbose" = "yes" && cat << \EOF
6163 Defining HAVE_XFREE386
6165 cat >> confdefs.h <<\EOF
6166 #define HAVE_XFREE386 1
6171 echo "$ac_t""no" 1>&6
6174 test -z "$with_xmu" && {
6175 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6176 echo "configure:6177: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6177 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6179 xe_check_libs=" -lXmu "
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6183 /* Override any gcc2 internal prototype to avoid an error. */
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6186 char XmuReadBitmapDataFromFile();
6189 XmuReadBitmapDataFromFile()
6192 if { (eval echo configure:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6194 eval "ac_cv_lib_$ac_lib_var=yes"
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 eval "ac_cv_lib_$ac_lib_var=no"
6204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6205 echo "$ac_t""yes" 1>&6
6208 echo "$ac_t""no" 1>&6
6213 if test "$with_xmu" = "no"; then
6214 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6215 echo " xemacs will be linked with \"xmu.o\""
6218 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6219 { test "$extra_verbose" = "yes" && cat << \EOF
6222 cat >> confdefs.h <<\EOF
6230 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6231 echo "configure:6232: checking for main in -lXbsd" >&5
6232 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6234 xe_check_libs=" -lXbsd "
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6243 if { (eval echo configure:6244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6245 eval "ac_cv_lib_$ac_lib_var=yes"
6247 echo "configure: failed program was:" >&5
6248 cat conftest.$ac_ext >&5
6250 eval "ac_cv_lib_$ac_lib_var=no"
6255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6256 echo "$ac_t""yes" 1>&6
6257 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6259 echo "$ac_t""no" 1>&6
6264 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6265 if test "$GCC" = "yes"; then
6266 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6267 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6270 "xlc" ) CC="xlc_r" ;;
6271 "xlC" ) CC="xlC_r" ;;
6278 if test "$with_msw" != "no"; then
6279 echo "checking for MS-Windows" 1>&6
6280 echo "configure:6281: checking for MS-Windows" >&5
6282 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6283 echo "configure:6284: checking for main in -lgdi32" >&5
6284 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6286 xe_check_libs=" -lgdi32 "
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 eval "ac_cv_lib_$ac_lib_var=yes"
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6302 eval "ac_cv_lib_$ac_lib_var=no"
6307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6308 echo "$ac_t""yes" 1>&6
6311 echo "$ac_t""no" 1>&6
6315 if test "$with_msw" = "yes"; then
6316 { test "$extra_verbose" = "yes" && cat << \EOF
6317 Defining HAVE_MS_WINDOWS
6319 cat >> confdefs.h <<\EOF
6320 #define HAVE_MS_WINDOWS 1
6324 install_pp="$blddir/lib-src/installexe.sh"
6325 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
6326 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6327 if test "$window_system" != x11; then
6329 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6330 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6331 echo " xemacs will be linked with \"scrollbar-msw.o\""
6333 test "$with_menubars" != "no" && with_menubars=msw \
6334 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6335 echo " xemacs will be linked with \"menubar-msw.o\""
6337 test "$with_toolbars" != "no" && with_toolbars=msw \
6338 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6339 echo " xemacs will be linked with \"toolbar-msw.o\""
6341 test "$with_dialogs" != "no" && with_dialogs=msw \
6342 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6343 echo " xemacs will be linked with \"dialog-msw.o\""
6345 test "$with_widgets" != "no" && with_widgets=msw
6347 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6348 echo " xemacs will be linked with \"scrollbar-msw.o\""
6350 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6351 echo " xemacs will be linked with \"menubar-msw.o\""
6353 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6354 echo " xemacs will be linked with \"toolbar-msw.o\""
6356 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6357 echo " xemacs will be linked with \"dialog-msw.o\""
6360 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6364 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6366 if { (eval echo configure:6367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6368 { test "$extra_verbose" = "yes" && cat << \EOF
6369 Defining HAVE_MSG_SELECT
6371 cat >> confdefs.h <<\EOF
6372 #define HAVE_MSG_SELECT 1
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6382 with_file_coding=yes
6383 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
6384 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\""
6391 test -z "$window_system" && window_system="none"
6393 if test "$window_system" = "none"; then
6394 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6396 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6397 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6399 eval "with_${feature}=no"
6402 test -z "$with_toolbars" && with_toolbars=yes
6405 if test "$with_msw" != "yes"; then
6406 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6408 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6409 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6411 eval "with_${feature}=no"
6417 if test "$with_x11" != "yes"; then
6418 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6420 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6421 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6423 eval "with_${feature}=no"
6429 case "$window_system" in
6430 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6431 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6432 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6435 case "$x_libraries" in *X11R4* )
6436 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6437 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6440 echo "checking for WM_COMMAND option" 1>&6
6441 echo "configure:6442: checking for WM_COMMAND option" >&5;
6442 if test "$with_wmcommand" != "no"; then
6443 { test "$extra_verbose" = "yes" && cat << \EOF
6444 Defining HAVE_WMCOMMAND
6446 cat >> confdefs.h <<\EOF
6447 #define HAVE_WMCOMMAND 1
6453 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6454 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6455 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6456 echo "configure:6457: checking for X11/Xauth.h" >&5
6458 cat > conftest.$ac_ext <<EOF
6459 #line 6460 "configure"
6460 #include "confdefs.h"
6461 #include <X11/Xauth.h>
6463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6464 { (eval echo configure:6465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6466 if test -z "$ac_err"; then
6468 eval "ac_cv_header_$ac_safe=yes"
6471 echo "configure: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6474 eval "ac_cv_header_$ac_safe=no"
6477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6481 echo "$ac_t""no" 1>&6
6485 test -z "$with_xauth" && {
6486 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6487 echo "configure:6488: checking for XauGetAuthByAddr in -lXau" >&5
6488 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6490 xe_check_libs=" -lXau "
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6497 char XauGetAuthByAddr();
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505 eval "ac_cv_lib_$ac_lib_var=yes"
6507 echo "configure: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6510 eval "ac_cv_lib_$ac_lib_var=no"
6515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6516 echo "$ac_t""yes" 1>&6
6519 echo "$ac_t""no" 1>&6
6524 test -z "$with_xauth" && with_xauth=yes
6525 if test "$with_xauth" = "yes"; then
6526 { test "$extra_verbose" = "yes" && cat << \EOF
6529 cat >> confdefs.h <<\EOF
6530 #define HAVE_XAUTH 1
6536 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
6544 if test "$with_tooltalk" != "no" ; then
6545 for dir in "" "Tt/" "desktop/" ; do
6546 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6547 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6548 echo "configure:6549: checking for ${dir}tt_c.h" >&5
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6553 #include <${dir}tt_c.h>
6555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6556 { (eval echo configure:6557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6558 if test -z "$ac_err"; then
6560 eval "ac_cv_header_$ac_safe=yes"
6563 echo "configure: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6566 eval "ac_cv_header_$ac_safe=no"
6569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6571 tt_c_h_path="${dir}tt_c.h"; break
6573 echo "$ac_t""no" 1>&6
6577 if test -z "$tt_c_h_path"; then
6578 if test "$with_tooltalk" = "yes"; then
6579 (echo "$progname: Usage error:"
6580 echo " " "Unable to find required tooltalk header files."
6581 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6586 if test "$with_tooltalk" != "no" ; then
6587 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6589 xe_msg_checking="for tt_message_create in -ltt"
6590 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6591 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6592 echo "configure:6593: checking "$xe_msg_checking"" >&5
6593 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6595 xe_check_libs=" -ltt $extra_libs"
6596 cat > conftest.$ac_ext <<EOF
6597 #line 6598 "configure"
6598 #include "confdefs.h"
6599 /* Override any gcc2 internal prototype to avoid an error. */
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6602 char tt_message_create();
6608 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6610 eval "ac_cv_lib_$ac_lib_var=yes"
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6615 eval "ac_cv_lib_$ac_lib_var=no"
6620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6621 echo "$ac_t""yes" 1>&6
6622 tt_libs="-ltt $extra_libs"; break
6624 echo "$ac_t""no" 1>&6
6630 if test -z "$tt_libs"; then
6631 if test "$with_tooltalk" = "yes"; then
6632 (echo "$progname: Usage error:"
6633 echo " " "Unable to find required tooltalk libraries."
6634 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6639 test -z "$with_tooltalk" && with_tooltalk=yes
6640 if test "$with_tooltalk" = "yes"; then
6641 { test "$extra_verbose" = "yes" && cat << \EOF
6644 cat >> confdefs.h <<\EOF
6649 { test "$extra_verbose" = "yes" && cat << EOF
6650 Defining TT_C_H_PATH = "$tt_c_h_path"
6652 cat >> confdefs.h <<EOF
6653 #define TT_C_H_PATH "$tt_c_h_path"
6657 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6658 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6659 echo " xemacs will be linked with \"tooltalk.o\""
6663 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6664 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6665 echo "configure:6666: checking for Dt/Dt.h" >&5
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6673 { (eval echo configure:6674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6675 if test -z "$ac_err"; then
6677 eval "ac_cv_header_$ac_safe=yes"
6680 echo "configure: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6683 eval "ac_cv_header_$ac_safe=no"
6686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6687 echo "$ac_t""yes" 1>&6
6690 echo "$ac_t""no" 1>&6
6694 test -z "$with_cde" && {
6695 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6696 echo "configure:6697: checking for DtDndDragStart in -lDtSvc" >&5
6697 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6699 xe_check_libs=" -lDtSvc "
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* Override any gcc2 internal prototype to avoid an error. */
6704 /* We use char because int might match the return type of a gcc2
6705 builtin and then its argument prototype would still apply. */
6706 char DtDndDragStart();
6712 if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6714 eval "ac_cv_lib_$ac_lib_var=yes"
6716 echo "configure: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6719 eval "ac_cv_lib_$ac_lib_var=no"
6724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6725 echo "$ac_t""yes" 1>&6
6728 echo "$ac_t""no" 1>&6
6733 test -z "$with_cde" && with_cde=yes
6734 if test "$with_dragndrop" = no; then
6735 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6738 if test "$with_cde" = "yes" ; then
6739 { test "$extra_verbose" = "yes" && cat << \EOF
6742 cat >> confdefs.h <<\EOF
6747 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6748 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6749 with_tooltalk=yes # CDE requires Tooltalk
6750 need_motif=yes # CDE requires Motif
6753 test "$window_system" != "x11" && with_offix=no
6754 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6755 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6758 if test "$with_dragndrop" = no; then
6759 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6762 if test "$with_cde" = yes; then
6763 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6766 test -z "$with_offix" && with_offix=no
6767 if test "$with_offix" = "yes"; then
6768 { test "$extra_verbose" = "yes" && cat << \EOF
6769 Defining HAVE_OFFIX_DND
6771 cat >> confdefs.h <<\EOF
6772 #define HAVE_OFFIX_DND 1
6776 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6777 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6780 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6781 echo "configure:6782: checking if drag and drop API is needed" >&5
6782 if test "$with_dragndrop" != "no" ; then
6783 if test -n "$dragndrop_proto" ; then
6785 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6786 { test "$extra_verbose" = "yes" && cat << \EOF
6787 Defining HAVE_DRAGNDROP
6789 cat >> confdefs.h <<\EOF
6790 #define HAVE_DRAGNDROP 1
6794 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6797 echo "$ac_t""no" 1>&6
6801 echo "checking for LDAP" 1>&6
6802 echo "configure:6803: checking for LDAP" >&5
6803 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6804 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6805 echo "configure:6806: checking for ldap.h" >&5
6807 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6813 { (eval echo configure:6814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6815 if test -z "$ac_err"; then
6817 eval "ac_cv_header_$ac_safe=yes"
6820 echo "configure: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6823 eval "ac_cv_header_$ac_safe=no"
6826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6827 echo "$ac_t""yes" 1>&6
6830 echo "$ac_t""no" 1>&6
6834 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6835 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6836 echo "configure:6837: checking for lber.h" >&5
6838 cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6844 { (eval echo configure:6845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6846 if test -z "$ac_err"; then
6848 eval "ac_cv_header_$ac_safe=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 eval "ac_cv_header_$ac_safe=no"
6857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6861 echo "$ac_t""no" 1>&6
6865 if test "$with_ldap" != "no"; then
6867 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6868 echo "configure:6869: checking for ldap_search in -lldap" >&5
6869 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6871 xe_check_libs=" -lldap "
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6884 if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886 eval "ac_cv_lib_$ac_lib_var=yes"
6888 echo "configure: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6891 eval "ac_cv_lib_$ac_lib_var=no"
6896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6897 echo "$ac_t""yes" 1>&6
6898 with_ldap_nolber=yes
6900 echo "$ac_t""no" 1>&6
6905 test "$with_ldap_nolber" = "no" && {
6906 xe_msg_checking="for ldap_open in -lldap"
6907 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6908 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6909 echo "configure:6910: checking "$xe_msg_checking"" >&5
6910 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6912 xe_check_libs=" -lldap -llber"
6913 cat > conftest.$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6927 eval "ac_cv_lib_$ac_lib_var=yes"
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 eval "ac_cv_lib_$ac_lib_var=no"
6937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6938 echo "$ac_t""yes" 1>&6
6941 echo "$ac_t""no" 1>&6
6946 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6947 xe_msg_checking="for ldap_open in -lldap"
6948 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6949 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6950 echo "configure:6951: checking "$xe_msg_checking"" >&5
6951 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6953 xe_check_libs=" -lldap -llber -lkrb"
6954 cat > conftest.$ac_ext <<EOF
6955 #line 6956 "configure"
6956 #include "confdefs.h"
6957 /* Override any gcc2 internal prototype to avoid an error. */
6958 /* We use char because int might match the return type of a gcc2
6959 builtin and then its argument prototype would still apply. */
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6968 eval "ac_cv_lib_$ac_lib_var=yes"
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6973 eval "ac_cv_lib_$ac_lib_var=no"
6978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6979 echo "$ac_t""yes" 1>&6
6982 echo "$ac_t""no" 1>&6
6987 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6988 xe_msg_checking="for ldap_open in -lldap"
6989 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6990 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6991 echo "configure:6992: checking "$xe_msg_checking"" >&5
6992 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6994 xe_check_libs=" -lldap -llber -lkrb -ldes"
6995 cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6998 /* Override any gcc2 internal prototype to avoid an error. */
6999 /* We use char because int might match the return type of a gcc2
7000 builtin and then its argument prototype would still apply. */
7007 if { (eval echo configure:7008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7009 eval "ac_cv_lib_$ac_lib_var=yes"
7011 echo "configure: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7014 eval "ac_cv_lib_$ac_lib_var=no"
7019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7020 echo "$ac_t""yes" 1>&6
7021 with_ldap_krbdes=yes
7023 echo "$ac_t""no" 1>&6
7028 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
7030 if test "$with_ldap" = "yes"; then
7031 { test "$extra_verbose" = "yes" && cat << \EOF
7034 cat >> confdefs.h <<\EOF
7039 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7040 echo " xemacs will be linked with \"eldap.o\""
7042 if test "$with_ldap_nolber" = "yes" ; then
7043 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7045 if test "$with_ldap_krb" = "yes" ; then
7046 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7048 if test "$with_ldap_krbdes" = "yes" ; then
7049 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7050 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7052 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7053 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7055 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7058 echo "configure:7059: checking for $ac_func" >&5
7060 cat > conftest.$ac_ext <<EOF
7061 #line 7062 "configure"
7062 #include "confdefs.h"
7063 /* System header to define __stub macros and hopefully few prototypes,
7064 which can conflict with char $ac_func(); below. */
7066 /* Override any gcc2 internal prototype to avoid an error. */
7067 /* We use char because int might match the return type of a gcc2
7068 builtin and then its argument prototype would still apply. */
7073 /* The GNU C library defines this for functions which it implements
7074 to always fail with ENOSYS. Some functions are actually named
7075 something starting with __ and the normal name is an alias. */
7076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7086 eval "ac_cv_func_$ac_func=yes"
7088 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7091 eval "ac_cv_func_$ac_func=no"
7095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7096 echo "$ac_t""yes" 1>&6
7097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7098 { test "$extra_verbose" = "yes" && cat << EOF
7099 Defining $ac_tr_func
7101 cat >> confdefs.h <<EOF
7102 #define $ac_tr_func 1
7107 echo "$ac_t""no" 1>&6
7113 echo "checking for PostgreSQL" 1>&6
7114 echo "configure:7115: checking for PostgreSQL" >&5
7115 postgres_includes_found=no
7116 save_c_switch_site="$c_switch_site"
7117 if test "$with_postgresql" != "no"; then
7118 ac_safe=`echo "libpq-fe.h" | sed 'y%./+-%__p_%'`
7119 echo $ac_n "checking for libpq-fe.h""... $ac_c" 1>&6
7120 echo "configure:7121: checking for libpq-fe.h" >&5
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 #include <libpq-fe.h>
7127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7128 { (eval echo configure:7129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7130 if test -z "$ac_err"; then
7132 eval "ac_cv_header_$ac_safe=yes"
7135 echo "configure: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7138 eval "ac_cv_header_$ac_safe=no"
7141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7142 echo "$ac_t""yes" 1>&6
7143 postgres_includes_found=yes
7145 echo "$ac_t""no" 1>&6
7149 if test "$postgres_includes_found" = "no" -a "$with_postgresql" != "no" -a \
7150 -d "/usr/include/pgsql"; then
7151 c_switch_site="$c_switch_site -I/usr/include/pgsql"
7152 ac_safe=`echo "libpq-fe.h" | sed 'y%./+-%__p_%'`
7153 echo $ac_n "checking for libpq-fe.h""... $ac_c" 1>&6
7154 echo "configure:7155: checking for libpq-fe.h" >&5
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7159 #include <libpq-fe.h>
7161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7162 { (eval echo configure:7163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7164 if test -z "$ac_err"; then
7166 eval "ac_cv_header_$ac_safe=yes"
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 eval "ac_cv_header_$ac_safe=no"
7175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 postgres_includes_found=yes
7179 echo "$ac_t""no" 1>&6
7182 if test "$postgres_includes_found" != "yes"; then
7183 c_switch_site="$save_c_switch_site"
7186 if test "$postgres_includes_found" = "no" -a "$with_postgresql" != "no" -a \
7187 -d "/usr/local/pgsql/include"; then
7188 c_switch_site="$c_switch_site -I/usr/local/pgsql/include"
7189 ac_safe=`echo "libpq-fe.h" | sed 'y%./+-%__p_%'`
7190 echo $ac_n "checking for libpq-fe.h""... $ac_c" 1>&6
7191 echo "configure:7192: checking for libpq-fe.h" >&5
7193 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7196 #include <libpq-fe.h>
7198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7199 { (eval echo configure:7200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7201 if test -z "$ac_err"; then
7203 eval "ac_cv_header_$ac_safe=yes"
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 eval "ac_cv_header_$ac_safe=no"
7212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7214 postgres_includes_found=yes
7216 echo "$ac_t""no" 1>&6
7219 if test "$postgres_includes_found" != "yes"; then
7220 c_switch_site="$save_c_switch_site"
7224 if test "$postgres_includes_found" = "yes"; then
7226 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7227 echo "configure:7228: checking for PQconnectdb in -lpq" >&5
7228 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7230 xe_check_libs=" -lpq "
7231 cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure"
7233 #include "confdefs.h"
7234 /* Override any gcc2 internal prototype to avoid an error. */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7243 if { (eval echo configure:7244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7245 eval "ac_cv_lib_$ac_lib_var=yes"
7247 echo "configure: failed program was:" >&5
7248 cat conftest.$ac_ext >&5
7250 eval "ac_cv_lib_$ac_lib_var=no"
7255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7256 echo "$ac_t""yes" 1>&6
7259 echo "$ac_t""no" 1>&6
7265 if test "$with_postgresql" = "yes"; then
7267 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7268 echo "configure:7269: checking for PQconnectStart in -lpq" >&5
7269 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7271 xe_check_libs=" -lpq "
7272 cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275 /* Override any gcc2 internal prototype to avoid an error. */
7276 /* We use char because int might match the return type of a gcc2
7277 builtin and then its argument prototype would still apply. */
7278 char PQconnectStart();
7284 if { (eval echo configure:7285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7286 eval "ac_cv_lib_$ac_lib_var=yes"
7288 echo "configure: failed program was:" >&5
7289 cat conftest.$ac_ext >&5
7291 eval "ac_cv_lib_$ac_lib_var=no"
7296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7297 echo "$ac_t""yes" 1>&6
7298 with_postgresqlv7=yes
7300 echo "$ac_t""no" 1>&6
7301 with_postgresqlv7=no
7306 if test "$with_postgresql" = "yes"; then
7307 { test "$extra_verbose" = "yes" && cat << \EOF
7308 Defining HAVE_POSTGRESQL
7310 cat >> confdefs.h <<\EOF
7311 #define HAVE_POSTGRESQL 1
7315 if test "$with_postgresqlv7" = "yes"; then
7316 { test "$extra_verbose" = "yes" && cat << \EOF
7317 Defining HAVE_POSTGRESQLV7
7319 cat >> confdefs.h <<\EOF
7320 #define HAVE_POSTGRESQLV7 1
7325 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7326 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7327 echo " xemacs will be linked with \"postgresql.o\""
7330 c_switch_site=$save_c_switch_site
7334 if test "$window_system" != "none"; then
7335 echo "checking for graphics libraries" 1>&6
7336 echo "configure:7337: checking for graphics libraries" >&5
7339 if test -z "$with_xpm"; then
7340 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7341 echo "configure:7342: checking for Xpm - no older than 3.4f" >&5
7343 cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7347 #include <X11/xpm.h>
7348 int main(int c, char **v) {
7350 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7351 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7353 if { (eval echo configure:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7355 ./conftest dummy_arg; xpm_status=$?;
7356 if test "$xpm_status" = "0"; then
7360 if test "$xpm_status" = "1"; then
7361 xpm_problem="Xpm library version and header file version don't match!"
7362 elif test "$xpm_status" = "2"; then
7363 xpm_problem="Xpm library version is too old!"
7365 xpm_problem="Internal xpm detection logic error!"
7368 *** WARNING *** $xpm_problem
7369 I'm not touching that with a 10-foot pole!
7370 If you really want to use the installed version of Xpm, rerun
7371 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7375 echo "configure: failed program was:" >&5
7376 cat conftest.$ac_ext >&5
7382 echo "$ac_t""$with_xpm" 1>&6
7384 if test "$with_xpm" = "yes"; then
7385 { test "$extra_verbose" = "yes" && cat << \EOF
7388 cat >> confdefs.h <<\EOF
7393 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7394 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7395 echo "configure:7396: checking for \"FOR_MSW\" xpm" >&5
7397 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7402 XpmCreatePixmapFromData()
7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409 echo "configure: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7416 echo "$ac_t""$xpm_for_msw" 1>&6
7417 if test "$xpm_for_msw" = "yes"; then
7418 { test "$extra_verbose" = "yes" && cat << \EOF
7421 cat >> confdefs.h <<\EOF
7429 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7430 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7431 echo "configure:7432: checking for compface.h" >&5
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7436 #include <compface.h>
7438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7439 { (eval echo configure:7440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7441 if test -z "$ac_err"; then
7443 eval "ac_cv_header_$ac_safe=yes"
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7449 eval "ac_cv_header_$ac_safe=no"
7452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7453 echo "$ac_t""yes" 1>&6
7456 echo "$ac_t""no" 1>&6
7460 test -z "$with_xface" && {
7461 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7462 echo "configure:7463: checking for UnGenFace in -lcompface" >&5
7463 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7465 xe_check_libs=" -lcompface "
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7469 /* Override any gcc2 internal prototype to avoid an error. */
7470 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */
7478 if { (eval echo configure:7479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7480 eval "ac_cv_lib_$ac_lib_var=yes"
7482 echo "configure: failed program was:" >&5
7483 cat conftest.$ac_ext >&5
7485 eval "ac_cv_lib_$ac_lib_var=no"
7490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7491 echo "$ac_t""yes" 1>&6
7494 echo "$ac_t""no" 1>&6
7499 test -z "$with_xface" && with_xface=yes
7500 if test "$with_xface" = "yes"; then
7501 { test "$extra_verbose" = "yes" && cat << \EOF
7504 cat >> confdefs.h <<\EOF
7505 #define HAVE_XFACE 1
7509 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7512 if test "$with_gif" != "no"; then
7514 { test "$extra_verbose" = "yes" && cat << \EOF
7517 cat >> confdefs.h <<\EOF
7522 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7523 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7527 if test "$with_png $with_tiff" != "no no"; then
7529 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7530 echo "configure:7531: checking for inflate in -lc" >&5
7531 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7533 xe_check_libs=" -lc "
7534 cat > conftest.$ac_ext <<EOF
7535 #line 7536 "configure"
7536 #include "confdefs.h"
7537 /* Override any gcc2 internal prototype to avoid an error. */
7538 /* We use char because int might match the return type of a gcc2
7539 builtin and then its argument prototype would still apply. */
7546 if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7548 eval "ac_cv_lib_$ac_lib_var=yes"
7550 echo "configure: failed program was:" >&5
7551 cat conftest.$ac_ext >&5
7553 eval "ac_cv_lib_$ac_lib_var=no"
7558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7559 echo "$ac_t""yes" 1>&6
7562 echo "$ac_t""no" 1>&6
7564 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7565 echo "configure:7566: checking for inflate in -lz" >&5
7566 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7568 xe_check_libs=" -lz "
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7581 if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7583 eval "ac_cv_lib_$ac_lib_var=yes"
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7588 eval "ac_cv_lib_$ac_lib_var=no"
7593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7594 echo "$ac_t""yes" 1>&6
7595 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7597 echo "$ac_t""no" 1>&6
7599 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7600 echo "configure:7601: checking for inflate in -lgz" >&5
7601 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7603 xe_check_libs=" -lgz "
7604 cat > conftest.$ac_ext <<EOF
7605 #line 7606 "configure"
7606 #include "confdefs.h"
7607 /* Override any gcc2 internal prototype to avoid an error. */
7608 /* We use char because int might match the return type of a gcc2
7609 builtin and then its argument prototype would still apply. */
7616 if { (eval echo configure:7617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7618 eval "ac_cv_lib_$ac_lib_var=yes"
7620 echo "configure: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7623 eval "ac_cv_lib_$ac_lib_var=no"
7628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7629 echo "$ac_t""yes" 1>&6
7630 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7632 echo "$ac_t""no" 1>&6
7644 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7645 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7646 echo "configure:7647: checking for jpeglib.h" >&5
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7651 #include <jpeglib.h>
7653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7654 { (eval echo configure:7655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7656 if test -z "$ac_err"; then
7658 eval "ac_cv_header_$ac_safe=yes"
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 eval "ac_cv_header_$ac_safe=no"
7667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7671 echo "$ac_t""no" 1>&6
7675 test -z "$with_jpeg" && {
7676 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7677 echo "configure:7678: checking for jpeg_destroy_decompress in -ljpeg" >&5
7678 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7680 xe_check_libs=" -ljpeg "
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* Override any gcc2 internal prototype to avoid an error. */
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7687 char jpeg_destroy_decompress();
7690 jpeg_destroy_decompress()
7693 if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7695 eval "ac_cv_lib_$ac_lib_var=yes"
7697 echo "configure: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7700 eval "ac_cv_lib_$ac_lib_var=no"
7705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7706 echo "$ac_t""yes" 1>&6
7709 echo "$ac_t""no" 1>&6
7714 test -z "$with_jpeg" && with_jpeg=yes
7715 if test "$with_jpeg" = "yes"; then
7716 { test "$extra_verbose" = "yes" && cat << \EOF
7719 cat >> confdefs.h <<\EOF
7724 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7728 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7729 echo "configure:7730: checking for pow" >&5
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* System header to define __stub macros and hopefully few prototypes,
7735 which can conflict with char pow(); below. */
7737 /* Override any gcc2 internal prototype to avoid an error. */
7738 /* We use char because int might match the return type of a gcc2
7739 builtin and then its argument prototype would still apply. */
7744 /* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747 #if defined (__stub_pow) || defined (__stub___pow)
7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7757 eval "ac_cv_func_pow=yes"
7759 echo "configure: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7762 eval "ac_cv_func_pow=no"
7766 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7767 echo "$ac_t""yes" 1>&6
7770 echo "$ac_t""no" 1>&6
7774 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7775 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7776 echo "configure:7777: checking for png.h" >&5
7778 cat > conftest.$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7784 { (eval echo configure:7785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7786 if test -z "$ac_err"; then
7788 eval "ac_cv_header_$ac_safe=yes"
7791 echo "configure: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7794 eval "ac_cv_header_$ac_safe=no"
7797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7798 echo "$ac_t""yes" 1>&6
7801 echo "$ac_t""no" 1>&6
7805 test -z "$with_png" && {
7806 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7807 echo "configure:7808: checking for png_read_image in -lpng" >&5
7808 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7810 xe_check_libs=" -lpng "
7811 cat > conftest.$ac_ext <<EOF
7812 #line 7813 "configure"
7813 #include "confdefs.h"
7814 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817 char png_read_image();
7823 if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7825 eval "ac_cv_lib_$ac_lib_var=yes"
7827 echo "configure: failed program was:" >&5
7828 cat conftest.$ac_ext >&5
7830 eval "ac_cv_lib_$ac_lib_var=no"
7835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7836 echo "$ac_t""yes" 1>&6
7839 echo "$ac_t""no" 1>&6
7844 if test -z "$with_png"; then
7845 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7846 echo "configure:7847: checking for workable png version information" >&5
7847 xe_check_libs="-lpng -lz"
7848 cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7852 int main(int c, char **v) {
7853 if (c == 1) return 0;
7854 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7855 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7857 if { (eval echo configure:7858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7859 ./conftest dummy_arg; png_status=$?;
7860 if test "$png_status" = "0"; then
7864 if test "$png_status" = "1"; then
7865 png_problem="PNG library version and header file don't match!"
7866 elif test "$png_status" = "2"; then
7867 png_problem="PNG library version too old (pre 1.0.2)!"
7870 *** WARNING *** $png_problem
7871 I'm not touching that with a 10-foot pole!
7872 If you really want to use the installed version of libPNG, rerun
7873 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7877 echo "configure: failed program was:" >&5
7878 cat conftest.$ac_ext >&5
7884 echo "$ac_t""$with_png" 1>&6
7886 if test "$with_png" = "yes"; then
7887 { test "$extra_verbose" = "yes" && cat << \EOF
7890 cat >> confdefs.h <<\EOF
7895 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7898 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7899 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7900 echo "configure:7901: checking for tiffio.h" >&5
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7908 { (eval echo configure:7909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7910 if test -z "$ac_err"; then
7912 eval "ac_cv_header_$ac_safe=yes"
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7918 eval "ac_cv_header_$ac_safe=no"
7921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7922 echo "$ac_t""yes" 1>&6
7925 echo "$ac_t""no" 1>&6
7929 test -z "$with_tiff" && {
7930 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7931 echo "configure:7932: checking for TIFFClientOpen in -ltiff" >&5
7932 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7934 xe_check_libs=" -ltiff "
7935 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure"
7937 #include "confdefs.h"
7938 /* Override any gcc2 internal prototype to avoid an error. */
7939 /* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7941 char TIFFClientOpen();
7947 if { (eval echo configure:7948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7949 eval "ac_cv_lib_$ac_lib_var=yes"
7951 echo "configure: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7954 eval "ac_cv_lib_$ac_lib_var=no"
7959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7960 echo "$ac_t""yes" 1>&6
7963 echo "$ac_t""no" 1>&6
7968 test -z "$with_tiff" && with_tiff=yes
7969 if test "$with_tiff" = "yes"; then
7970 { test "$extra_verbose" = "yes" && cat << \EOF
7973 cat >> confdefs.h <<\EOF
7978 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7983 if test "$with_x11" = "yes"; then
7985 echo "checking for X11 graphics libraries" 1>&6
7986 echo "configure:7987: checking for X11 graphics libraries" >&5
7988 echo "checking for the Athena widgets" 1>&6
7989 echo "configure:7990: checking for the Athena widgets" >&5
7991 case "$with_athena" in
7992 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7993 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7994 "next") athena_variant=neXtaw athena_3d=yes ;;
7995 "95") athena_variant=Xaw95 athena_3d=yes ;;
7996 "xpm") athena_variant=XawXpm athena_3d=yes ;;
7997 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8000 if test "$athena_3d" = "no"; then
8002 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8003 echo "configure:8004: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8004 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8006 xe_check_libs=" -l$athena_variant "
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8013 char XawScrollbarSetThumb();
8016 XawScrollbarSetThumb()
8019 if { (eval echo configure:8020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8021 eval "ac_cv_lib_$ac_lib_var=yes"
8023 echo "configure: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8026 eval "ac_cv_lib_$ac_lib_var=no"
8031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8032 echo "$ac_t""yes" 1>&6
8034 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8035 echo "configure:8036: checking for threeDClassRec in -l$athena_variant" >&5
8036 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8038 xe_check_libs=" -l$athena_variant "
8039 cat > conftest.$ac_ext <<EOF
8040 #line 8041 "configure"
8041 #include "confdefs.h"
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 /* We use char because int might match the return type of a gcc2
8044 builtin and then its argument prototype would still apply. */
8045 char threeDClassRec();
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8053 eval "ac_cv_lib_$ac_lib_var=yes"
8055 echo "configure: failed program was:" >&5
8056 cat conftest.$ac_ext >&5
8058 eval "ac_cv_lib_$ac_lib_var=no"
8063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8064 echo "$ac_t""yes" 1>&6
8065 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8067 echo "$ac_t""no" 1>&6
8068 athena_lib=$athena_variant
8074 echo "$ac_t""no" 1>&6
8075 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8081 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8082 echo "configure:8083: checking for threeDClassRec in -l$athena_variant" >&5
8083 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8085 xe_check_libs=" -l$athena_variant "
8086 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 /* Override any gcc2 internal prototype to avoid an error. */
8090 /* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8092 char threeDClassRec();
8098 if { (eval echo configure:8099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8100 eval "ac_cv_lib_$ac_lib_var=yes"
8102 echo "configure: failed program was:" >&5
8103 cat conftest.$ac_ext >&5
8105 eval "ac_cv_lib_$ac_lib_var=no"
8110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8111 echo "$ac_t""yes" 1>&6
8112 athena_lib=$athena_variant
8114 echo "$ac_t""no" 1>&6
8115 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8116 echo "configure:8117: checking for threeDClassRec in -lXaw" >&5
8117 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8119 xe_check_libs=" -lXaw "
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8126 char threeDClassRec();
8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8134 eval "ac_cv_lib_$ac_lib_var=yes"
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8139 eval "ac_cv_lib_$ac_lib_var=no"
8144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8145 echo "$ac_t""yes" 1>&6
8147 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8150 echo "$ac_t""no" 1>&6
8151 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8160 if test "$athena_3d" = "no"; then
8161 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8162 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8163 echo "configure:8164: checking for X11/Xaw/ThreeD.h" >&5
8165 cat > conftest.$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8168 #include <X11/Xaw/ThreeD.h>
8170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8171 { (eval echo configure:8172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8173 if test -z "$ac_err"; then
8175 eval "ac_cv_header_$ac_safe=yes"
8178 echo "configure: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8181 eval "ac_cv_header_$ac_safe=no"
8184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8188 echo "$ac_t""no" 1>&6
8189 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8190 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8191 echo "configure:8192: checking for X11/Xaw/XawInit.h" >&5
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 #include <X11/Xaw/XawInit.h>
8198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8199 { (eval echo configure:8200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8201 if test -z "$ac_err"; then
8203 eval "ac_cv_header_$ac_safe=yes"
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 eval "ac_cv_header_$ac_safe=no"
8212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8213 echo "$ac_t""yes" 1>&6
8214 athena_h_path=X11/Xaw
8216 echo "$ac_t""no" 1>&6
8217 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8223 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8224 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8225 echo "configure:8226: checking for X11/$athena_variant/XawInit.h" >&5
8227 cat > conftest.$ac_ext <<EOF
8228 #line 8229 "configure"
8229 #include "confdefs.h"
8230 #include <X11/$athena_variant/XawInit.h>
8232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8233 { (eval echo configure:8234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8235 if test -z "$ac_err"; then
8237 eval "ac_cv_header_$ac_safe=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 eval "ac_cv_header_$ac_safe=no"
8246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8247 echo "$ac_t""yes" 1>&6
8248 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8249 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8250 echo "configure:8251: checking for X11/$athena_variant/ThreeD.h" >&5
8252 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure"
8254 #include "confdefs.h"
8255 #include <X11/$athena_variant/ThreeD.h>
8257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8258 { (eval echo configure:8259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8260 if test -z "$ac_err"; then
8262 eval "ac_cv_header_$ac_safe=yes"
8265 echo "configure: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8268 eval "ac_cv_header_$ac_safe=no"
8271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8272 echo "$ac_t""yes" 1>&6
8273 athena_h_path=X11/$athena_variant
8275 echo "$ac_t""no" 1>&6
8279 echo "$ac_t""no" 1>&6
8283 if test -z "$athena_h_path"; then
8284 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8285 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8286 echo "configure:8287: checking for $athena_variant/XawInit.h" >&5
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 #include <$athena_variant/XawInit.h>
8293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8294 { (eval echo configure:8295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8296 if test -z "$ac_err"; then
8298 eval "ac_cv_header_$ac_safe=yes"
8301 echo "configure: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8304 eval "ac_cv_header_$ac_safe=no"
8307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8308 echo "$ac_t""yes" 1>&6
8309 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8310 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8311 echo "configure:8312: checking for $athena_variant/ThreeD.h" >&5
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 #include <$athena_variant/ThreeD.h>
8318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8319 { (eval echo configure:8320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8321 if test -z "$ac_err"; then
8323 eval "ac_cv_header_$ac_safe=yes"
8326 echo "configure: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8329 eval "ac_cv_header_$ac_safe=no"
8332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8333 echo "$ac_t""yes" 1>&6
8334 athena_h_path=$athena_variant
8336 echo "$ac_t""no" 1>&6
8340 echo "$ac_t""no" 1>&6
8345 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8346 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8347 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8348 echo "configure:8349: checking for X11/Xaw3d/XawInit.h" >&5
8350 cat > conftest.$ac_ext <<EOF
8351 #line 8352 "configure"
8352 #include "confdefs.h"
8353 #include <X11/Xaw3d/XawInit.h>
8355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8356 { (eval echo configure:8357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8358 if test -z "$ac_err"; then
8360 eval "ac_cv_header_$ac_safe=yes"
8363 echo "configure: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8366 eval "ac_cv_header_$ac_safe=no"
8369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8370 echo "$ac_t""yes" 1>&6
8371 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8372 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8373 echo "configure:8374: checking for X11/Xaw3d/ThreeD.h" >&5
8375 cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8378 #include <X11/Xaw3d/ThreeD.h>
8380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8381 { (eval echo configure:8382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8383 if test -z "$ac_err"; then
8385 eval "ac_cv_header_$ac_safe=yes"
8388 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8391 eval "ac_cv_header_$ac_safe=no"
8394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8395 echo "$ac_t""yes" 1>&6
8397 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8398 athena_h_path=X11/Xaw3d
8401 echo "$ac_t""no" 1>&6
8405 echo "$ac_t""no" 1>&6
8410 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8411 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8412 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8413 echo "configure:8414: checking for Xaw3d/XawInit.h" >&5
8415 cat > conftest.$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 #include <Xaw3d/XawInit.h>
8420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8421 { (eval echo configure:8422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8423 if test -z "$ac_err"; then
8425 eval "ac_cv_header_$ac_safe=yes"
8428 echo "configure: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8431 eval "ac_cv_header_$ac_safe=no"
8434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8435 echo "$ac_t""yes" 1>&6
8436 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8437 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8438 echo "configure:8439: checking for Xaw3d/ThreeD.h" >&5
8440 cat > conftest.$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 #include <Xaw3d/ThreeD.h>
8445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8446 { (eval echo configure:8447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8448 if test -z "$ac_err"; then
8450 eval "ac_cv_header_$ac_safe=yes"
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 eval "ac_cv_header_$ac_safe=no"
8459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8460 echo "$ac_t""yes" 1>&6
8462 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8466 echo "$ac_t""no" 1>&6
8470 echo "$ac_t""no" 1>&6
8475 if test -z "$athena_h_path"; then
8476 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8477 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8478 echo "configure:8479: checking for X11/Xaw/ThreeD.h" >&5
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8483 #include <X11/Xaw/ThreeD.h>
8485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8486 { (eval echo configure:8487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8488 if test -z "$ac_err"; then
8490 eval "ac_cv_header_$ac_safe=yes"
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8496 eval "ac_cv_header_$ac_safe=no"
8499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8500 echo "$ac_t""yes" 1>&6
8502 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8503 athena_h_path=X11/Xaw
8506 echo "$ac_t""no" 1>&6
8507 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8513 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8519 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8520 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8521 echo "configure:8522: checking for Xm/Xm.h" >&5
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8529 { (eval echo configure:8530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8531 if test -z "$ac_err"; then
8533 eval "ac_cv_header_$ac_safe=yes"
8536 echo "configure: failed program was:" >&5
8537 cat conftest.$ac_ext >&5
8539 eval "ac_cv_header_$ac_safe=no"
8542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8543 echo "$ac_t""yes" 1>&6
8545 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8546 echo "configure:8547: checking for XmStringFree in -lXm" >&5
8547 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8549 xe_check_libs=" -lXm "
8550 cat > conftest.$ac_ext <<EOF
8551 #line 8552 "configure"
8552 #include "confdefs.h"
8553 /* Override any gcc2 internal prototype to avoid an error. */
8554 /* We use char because int might match the return type of a gcc2
8555 builtin and then its argument prototype would still apply. */
8556 char XmStringFree();
8562 if { (eval echo configure:8563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8564 eval "ac_cv_lib_$ac_lib_var=yes"
8566 echo "configure: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8569 eval "ac_cv_lib_$ac_lib_var=no"
8574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8575 echo "$ac_t""yes" 1>&6
8578 echo "$ac_t""no" 1>&6
8584 echo "$ac_t""no" 1>&6
8589 if test "$have_motif" = "yes"; then
8590 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8591 echo "configure:8592: checking for Lesstif" >&5
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8596 #ifdef LESSTIF_VERSION
8601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8602 egrep "yes" >/dev/null 2>&1; then
8611 echo "$ac_t""$have_lesstif" 1>&6
8616 case "$with_menubars" in "" | "yes" | "athena" )
8617 with_menubars="lucid" ;;
8619 case "$with_dialogs" in "" | "yes" | "lucid" )
8620 if test "$have_motif" = "yes"; then with_dialogs="motif"
8621 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8622 else with_dialogs=no
8625 case "$with_scrollbars" in "" | "yes" )
8626 with_scrollbars="lucid" ;;
8628 case "$with_widgets" in "" | "yes" | "lucid")
8629 if test "$have_motif" = "yes"; then with_widgets="motif"
8630 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8631 else with_widgets=no
8635 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8637 case "$all_widgets" in
8639 if test "$have_xaw" != "yes"; then
8640 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8643 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8645 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8647 { test "$extra_verbose" = "yes" && cat << EOF
8648 Defining ATHENA_H_PATH = $athena_h_path
8650 cat >> confdefs.h <<EOF
8651 #define ATHENA_H_PATH $athena_h_path
8656 { test "$extra_verbose" = "yes" && cat << \EOF
8657 Defining LWLIB_USES_ATHENA
8659 cat >> confdefs.h <<\EOF
8660 #define LWLIB_USES_ATHENA 1
8664 { test "$extra_verbose" = "yes" && cat << \EOF
8665 Defining NEED_ATHENA
8667 cat >> confdefs.h <<\EOF
8668 #define NEED_ATHENA 1
8673 if test "$athena_3d" = "yes"; then
8674 { test "$extra_verbose" = "yes" && cat << \EOF
8675 Defining HAVE_ATHENA_3D
8677 cat >> confdefs.h <<\EOF
8678 #define HAVE_ATHENA_3D 1
8686 case "$all_widgets" in *motif* )
8687 { test "$extra_verbose" = "yes" && cat << \EOF
8688 Defining LWLIB_USES_MOTIF
8690 cat >> confdefs.h <<\EOF
8691 #define LWLIB_USES_MOTIF 1
8695 { test "$extra_verbose" = "yes" && cat << \EOF
8698 cat >> confdefs.h <<\EOF
8699 #define NEED_MOTIF 1
8703 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8707 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8708 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8709 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8710 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8711 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8712 case "$with_widgets" in athena* )
8713 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;;
8715 case "$all_widgets" in *lucid* )
8716 { test "$extra_verbose" = "yes" && cat << \EOF
8719 cat >> confdefs.h <<\EOF
8720 #define NEED_LUCID 1
8724 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8729 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8730 Defining LWLIB_SCROLLBARS_ATHENA
8732 cat >> confdefs.h <<\EOF
8733 #define LWLIB_SCROLLBARS_ATHENA 1
8737 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8738 Defining LWLIB_DIALOGS_ATHENA
8740 cat >> confdefs.h <<\EOF
8741 #define LWLIB_DIALOGS_ATHENA 1
8746 if test "$athena_3d" = "yes"; then
8747 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8748 Defining LWLIB_SCROLLBARS_ATHENA3D
8750 cat >> confdefs.h <<\EOF
8751 #define LWLIB_SCROLLBARS_ATHENA3D 1
8755 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8756 Defining LWLIB_DIALOGS_ATHENA3D
8758 cat >> confdefs.h <<\EOF
8759 #define LWLIB_DIALOGS_ATHENA3D 1
8765 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8766 Defining LWLIB_WIDGETS_ATHENA
8768 cat >> confdefs.h <<\EOF
8769 #define LWLIB_WIDGETS_ATHENA 1
8773 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8774 { test "$extra_verbose" = "yes" && cat << \EOF
8775 Defining LWLIB_TABS_LUCID
8777 cat >> confdefs.h <<\EOF
8778 #define LWLIB_TABS_LUCID 1
8783 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8784 Defining HAVE_MENUBARS
8786 cat >> confdefs.h <<\EOF
8787 #define HAVE_MENUBARS 1
8791 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8792 Defining HAVE_SCROLLBARS
8794 cat >> confdefs.h <<\EOF
8795 #define HAVE_SCROLLBARS 1
8799 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8800 Defining HAVE_DIALOGS
8802 cat >> confdefs.h <<\EOF
8803 #define HAVE_DIALOGS 1
8807 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8808 Defining HAVE_TOOLBARS
8810 cat >> confdefs.h <<\EOF
8811 #define HAVE_TOOLBARS 1
8815 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8816 Defining HAVE_WIDGETS
8818 cat >> confdefs.h <<\EOF
8819 #define HAVE_WIDGETS 1
8824 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8825 Defining LWLIB_MENUBARS_LUCID
8827 cat >> confdefs.h <<\EOF
8828 #define LWLIB_MENUBARS_LUCID 1
8832 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8833 Defining LWLIB_SCROLLBARS_LUCID
8835 cat >> confdefs.h <<\EOF
8836 #define LWLIB_SCROLLBARS_LUCID 1
8841 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8842 Defining LWLIB_MENUBARS_MOTIF
8844 cat >> confdefs.h <<\EOF
8845 #define LWLIB_MENUBARS_MOTIF 1
8849 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8850 Defining LWLIB_SCROLLBARS_MOTIF
8852 cat >> confdefs.h <<\EOF
8853 #define LWLIB_SCROLLBARS_MOTIF 1
8857 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8858 Defining LWLIB_DIALOGS_MOTIF
8860 cat >> confdefs.h <<\EOF
8861 #define LWLIB_DIALOGS_MOTIF 1
8865 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8866 Defining LWLIB_WIDGETS_MOTIF
8868 cat >> confdefs.h <<\EOF
8869 #define LWLIB_WIDGETS_MOTIF 1
8874 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8875 echo " xemacs will be linked with \"menubar.o\""
8877 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
8878 echo " xemacs will be linked with \"scrollbar.o\""
8880 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
8881 echo " xemacs will be linked with \"dialog.o\""
8883 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
8884 echo " xemacs will be linked with \"toolbar.o\""
8887 if test "$with_x11" = "yes"; then
8888 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
8889 echo " xemacs will be linked with \"menubar-x.o\""
8891 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
8892 echo " xemacs will be linked with \"scrollbar-x.o\""
8894 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8895 echo " xemacs will be linked with \"dialog-x.o\""
8897 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8898 echo " xemacs will be linked with \"toolbar-x.o\""
8900 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8901 echo " xemacs will be linked with \"gui-x.o\""
8906 test -z "$with_mule" && with_mule=no
8907 test -z "$with_file_coding" && with_file_coding=no
8910 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
8911 { test "$extra_verbose" = "yes" && cat << \EOF
8912 Defining FILE_CODING
8914 cat >> confdefs.h <<\EOF
8915 #define FILE_CODING 1
8919 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8920 echo " xemacs will be linked with \"file-coding.o\""
8924 if test "$with_mule" = "yes" ; then
8925 echo "checking for Mule-related features" 1>&6
8926 echo "configure:8927: checking for Mule-related features" >&5
8927 { test "$extra_verbose" = "yes" && cat << \EOF
8930 cat >> confdefs.h <<\EOF
8935 { test "$extra_verbose" = "yes" && cat << \EOF
8936 Defining FILE_CODING
8938 cat >> confdefs.h <<\EOF
8939 #define FILE_CODING 1
8943 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
8944 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
8947 for ac_hdr in libintl.h
8949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8951 echo "configure:8952: checking for $ac_hdr" >&5
8953 cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8959 { (eval echo configure:8960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8961 if test -z "$ac_err"; then
8963 eval "ac_cv_header_$ac_safe=yes"
8966 echo "configure: failed program was:" >&5
8967 cat conftest.$ac_ext >&5
8969 eval "ac_cv_header_$ac_safe=no"
8972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8973 echo "$ac_t""yes" 1>&6
8974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8975 { test "$extra_verbose" = "yes" && cat << EOF
8978 cat >> confdefs.h <<EOF
8979 #define $ac_tr_hdr 1
8984 echo "$ac_t""no" 1>&6
8989 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8990 echo "configure:8991: checking for strerror in -lintl" >&5
8991 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8993 xe_check_libs=" -lintl "
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* Override any gcc2 internal prototype to avoid an error. */
8998 /* We use char because int might match the return type of a gcc2
8999 builtin and then its argument prototype would still apply. */
9006 if { (eval echo configure:9007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9008 eval "ac_cv_lib_$ac_lib_var=yes"
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9013 eval "ac_cv_lib_$ac_lib_var=no"
9018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9019 echo "$ac_t""yes" 1>&6
9020 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9021 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9022 { test "$extra_verbose" = "yes" && cat << EOF
9025 cat >> confdefs.h <<EOF
9026 #define $ac_tr_lib 1
9030 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9033 echo "$ac_t""no" 1>&6
9038 echo "checking for Mule input methods" 1>&6
9039 echo "configure:9040: checking for Mule input methods" >&5
9040 case "$with_xim" in "" | "yes" )
9041 echo "checking for XIM" 1>&6
9042 echo "configure:9043: checking for XIM" >&5
9044 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9045 echo "configure:9046: checking for XOpenIM in -lX11" >&5
9046 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9048 xe_check_libs=" -lX11 "
9049 cat > conftest.$ac_ext <<EOF
9050 #line 9051 "configure"
9051 #include "confdefs.h"
9052 /* Override any gcc2 internal prototype to avoid an error. */
9053 /* We use char because int might match the return type of a gcc2
9054 builtin and then its argument prototype would still apply. */
9061 if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9063 eval "ac_cv_lib_$ac_lib_var=yes"
9065 echo "configure: failed program was:" >&5
9066 cat conftest.$ac_ext >&5
9068 eval "ac_cv_lib_$ac_lib_var=no"
9073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9074 echo "$ac_t""yes" 1>&6
9077 echo "$ac_t""no" 1>&6
9082 if test "$have_motif $have_lesstif" = "yes no"; then
9084 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9085 echo "configure:9086: checking for XmImMbLookupString in -lXm" >&5
9086 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9088 xe_check_libs=" -lXm "
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9092 /* Override any gcc2 internal prototype to avoid an error. */
9093 /* We use char because int might match the return type of a gcc2
9094 builtin and then its argument prototype would still apply. */
9095 char XmImMbLookupString();
9098 XmImMbLookupString()
9101 if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9103 eval "ac_cv_lib_$ac_lib_var=yes"
9105 echo "configure: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9108 eval "ac_cv_lib_$ac_lib_var=no"
9113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9114 echo "$ac_t""yes" 1>&6
9117 echo "$ac_t""no" 1>&6
9123 if test "$with_xim" != "no"; then
9124 { test "$extra_verbose" = "yes" && cat << \EOF
9127 cat >> confdefs.h <<\EOF
9132 if test "$with_xim" = "xlib"; then
9133 { test "$extra_verbose" = "yes" && cat << \EOF
9136 cat >> confdefs.h <<\EOF
9141 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9142 echo " xemacs will be linked with \"input-method-xlib.o\""
9145 if test "$with_xim" = "motif"; then
9146 { test "$extra_verbose" = "yes" && cat << \EOF
9149 cat >> confdefs.h <<\EOF
9155 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9156 echo " xemacs will be linked with \"input-method-motif.o\""
9159 if test "$with_xim" = "motif"; then
9164 if test "$with_xfs" = "yes" ; then
9165 echo "checking for XFontSet" 1>&6
9166 echo "configure:9167: checking for XFontSet" >&5
9168 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9169 echo "configure:9170: checking for XmbDrawString in -lX11" >&5
9170 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9172 xe_check_libs=" -lX11 "
9173 cat > conftest.$ac_ext <<EOF
9174 #line 9175 "configure"
9175 #include "confdefs.h"
9176 /* Override any gcc2 internal prototype to avoid an error. */
9177 /* We use char because int might match the return type of a gcc2
9178 builtin and then its argument prototype would still apply. */
9179 char XmbDrawString();
9185 if { (eval echo configure:9186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9187 eval "ac_cv_lib_$ac_lib_var=yes"
9189 echo "configure: failed program was:" >&5
9190 cat conftest.$ac_ext >&5
9192 eval "ac_cv_lib_$ac_lib_var=no"
9197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9198 echo "$ac_t""yes" 1>&6
9201 echo "$ac_t""no" 1>&6
9206 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9207 { test "$extra_verbose" = "yes" && cat << \EOF
9208 Defining USE_XFONTSET
9210 cat >> confdefs.h <<\EOF
9211 #define USE_XFONTSET 1
9215 if test "$with_xim" = "no" ; then
9216 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
9217 echo " xemacs will be linked with \"input-method-xfs.o\""
9222 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9223 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9224 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9225 echo "configure:9226: checking for wnn/jllib.h" >&5
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9230 #include <wnn/jllib.h>
9232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9233 { (eval echo configure:9234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9235 if test -z "$ac_err"; then
9237 eval "ac_cv_header_$ac_safe=yes"
9240 echo "configure: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9243 eval "ac_cv_header_$ac_safe=no"
9246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9247 echo "$ac_t""yes" 1>&6
9250 echo "$ac_t""no" 1>&6
9254 if test "$with_wnn" != "no"; then
9255 for ac_func in crypt
9257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9258 echo "configure:9259: checking for $ac_func" >&5
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9263 /* System header to define __stub macros and hopefully few prototypes,
9264 which can conflict with char $ac_func(); below. */
9266 /* Override any gcc2 internal prototype to avoid an error. */
9267 /* We use char because int might match the return type of a gcc2
9268 builtin and then its argument prototype would still apply. */
9273 /* The GNU C library defines this for functions which it implements
9274 to always fail with ENOSYS. Some functions are actually named
9275 something starting with __ and the normal name is an alias. */
9276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9284 if { (eval echo configure:9285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9286 eval "ac_cv_func_$ac_func=yes"
9288 echo "configure: failed program was:" >&5
9289 cat conftest.$ac_ext >&5
9291 eval "ac_cv_func_$ac_func=no"
9295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9296 echo "$ac_t""yes" 1>&6
9297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9298 { test "$extra_verbose" = "yes" && cat << EOF
9299 Defining $ac_tr_func
9301 cat >> confdefs.h <<EOF
9302 #define $ac_tr_func 1
9307 echo "$ac_t""no" 1>&6
9311 test "$ac_cv_func_crypt" != "yes" && {
9312 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9313 echo "configure:9314: checking for crypt in -lcrypt" >&5
9314 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9316 xe_check_libs=" -lcrypt "
9317 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9320 /* Override any gcc2 internal prototype to avoid an error. */
9321 /* We use char because int might match the return type of a gcc2
9322 builtin and then its argument prototype would still apply. */
9329 if { (eval echo configure:9330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9331 eval "ac_cv_lib_$ac_lib_var=yes"
9333 echo "configure: failed program was:" >&5
9334 cat conftest.$ac_ext >&5
9336 eval "ac_cv_lib_$ac_lib_var=no"
9341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9342 echo "$ac_t""yes" 1>&6
9343 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9345 { test "$extra_verbose" = "yes" && cat << EOF
9348 cat >> confdefs.h <<EOF
9349 #define $ac_tr_lib 1
9353 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9356 echo "$ac_t""no" 1>&6
9361 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9363 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9364 echo "configure:9365: checking for jl_dic_list_e in -lwnn" >&5
9365 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9367 xe_check_libs=" -lwnn "
9368 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9371 /* Override any gcc2 internal prototype to avoid an error. */
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9374 char jl_dic_list_e();
9380 if { (eval echo configure:9381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9382 eval "ac_cv_lib_$ac_lib_var=yes"
9384 echo "configure: failed program was:" >&5
9385 cat conftest.$ac_ext >&5
9387 eval "ac_cv_lib_$ac_lib_var=no"
9392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9393 echo "$ac_t""yes" 1>&6
9396 echo "$ac_t""no" 1>&6
9397 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9398 echo "configure:9399: checking for jl_dic_list_e in -lwnn4" >&5
9399 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9401 xe_check_libs=" -lwnn4 "
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 jl_dic_list_e();
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
9431 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9432 echo "configure:9433: checking for jl_dic_list_e in -lwnn6" >&5
9433 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9435 xe_check_libs=" -lwnn6 "
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 /* Override any gcc2 internal prototype to avoid an error. */
9440 /* We use char because int might match the return type of a gcc2
9441 builtin and then its argument prototype would still apply. */
9442 char jl_dic_list_e();
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9450 eval "ac_cv_lib_$ac_lib_var=yes"
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9455 eval "ac_cv_lib_$ac_lib_var=no"
9460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9461 echo "$ac_t""yes" 1>&6
9464 echo "$ac_t""no" 1>&6
9465 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9466 echo "configure:9467: checking for dic_list_e in -lwnn6_fromsrc" >&5
9467 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9469 xe_check_libs=" -lwnn6_fromsrc "
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 /* Override any gcc2 internal prototype to avoid an error. */
9474 /* We use char because int might match the return type of a gcc2
9475 builtin and then its argument prototype would still apply. */
9482 if { (eval echo configure:9483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9484 eval "ac_cv_lib_$ac_lib_var=yes"
9486 echo "configure: failed program was:" >&5
9487 cat conftest.$ac_ext >&5
9489 eval "ac_cv_lib_$ac_lib_var=no"
9494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9495 echo "$ac_t""yes" 1>&6
9498 echo "$ac_t""no" 1>&6
9513 test -z "$with_wnn" && with_wnn=yes
9514 if test "$with_wnn" = "yes"; then
9515 { test "$extra_verbose" = "yes" && cat << \EOF
9518 cat >> confdefs.h <<\EOF
9523 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9524 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9525 echo " xemacs will be linked with \"mule-wnnfns.o\""
9527 if test "$with_wnn6" != "no"; then
9529 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9530 echo "configure:9531: checking for jl_fi_dic_list in -l$libwnn" >&5
9531 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9533 xe_check_libs=" -l$libwnn "
9534 cat > conftest.$ac_ext <<EOF
9535 #line 9536 "configure"
9536 #include "confdefs.h"
9537 /* Override any gcc2 internal prototype to avoid an error. */
9538 /* We use char because int might match the return type of a gcc2
9539 builtin and then its argument prototype would still apply. */
9540 char jl_fi_dic_list();
9546 if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9548 eval "ac_cv_lib_$ac_lib_var=yes"
9550 echo "configure: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9553 eval "ac_cv_lib_$ac_lib_var=no"
9558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9559 echo "$ac_t""yes" 1>&6
9562 echo "$ac_t""no" 1>&6
9566 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9569 cat >> confdefs.h <<\EOF
9577 canna_includes_found=no
9578 if test "$with_canna" != "no"; then
9579 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9580 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9581 echo "configure:9582: checking for canna/jrkanji.h" >&5
9583 cat > conftest.$ac_ext <<EOF
9584 #line 9585 "configure"
9585 #include "confdefs.h"
9586 #include <canna/jrkanji.h>
9588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9589 { (eval echo configure:9590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9591 if test -z "$ac_err"; then
9593 eval "ac_cv_header_$ac_safe=yes"
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9599 eval "ac_cv_header_$ac_safe=no"
9602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9603 echo "$ac_t""yes" 1>&6
9604 canna_includes_found=yes
9606 echo "$ac_t""no" 1>&6
9610 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9611 -d "/usr/local/canna/include"; then
9612 save_c_switch_site="$c_switch_site"
9613 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9614 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9615 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9616 echo "configure:9617: checking for canna/jrkanji.h" >&5
9618 cat > conftest.$ac_ext <<EOF
9619 #line 9620 "configure"
9620 #include "confdefs.h"
9621 #include <canna/jrkanji.h>
9623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9624 { (eval echo configure:9625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9626 if test -z "$ac_err"; then
9628 eval "ac_cv_header_$ac_safe=yes"
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9634 eval "ac_cv_header_$ac_safe=no"
9637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9638 echo "$ac_t""yes" 1>&6
9639 canna_includes_found=yes
9641 echo "$ac_t""no" 1>&6
9644 if test "$canna_includes_found" != "yes"; then
9645 c_switch_site="$save_c_switch_site"
9650 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9651 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9652 echo "configure:9653: checking for canna/RK.h" >&5
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9657 #include <canna/RK.h>
9659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9660 { (eval echo configure:9661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9662 if test -z "$ac_err"; then
9664 eval "ac_cv_header_$ac_safe=yes"
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9670 eval "ac_cv_header_$ac_safe=no"
9673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9674 echo "$ac_t""yes" 1>&6
9677 echo "$ac_t""no" 1>&6
9681 test -z "$with_canna" && {
9682 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9683 echo "configure:9684: checking for RkBgnBun in -lRKC" >&5
9684 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9686 xe_check_libs=" -lRKC "
9687 cat > conftest.$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9690 /* Override any gcc2 internal prototype to avoid an error. */
9691 /* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9699 if { (eval echo configure:9700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9701 eval "ac_cv_lib_$ac_lib_var=yes"
9703 echo "configure: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9706 eval "ac_cv_lib_$ac_lib_var=no"
9711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9712 echo "$ac_t""yes" 1>&6
9715 echo "$ac_t""no" 1>&6
9720 test -z "$with_canna" && {
9721 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9722 echo "configure:9723: checking for jrKanjiControl in -lcanna" >&5
9723 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9725 xe_check_libs=" -lcanna "
9726 cat > conftest.$ac_ext <<EOF
9727 #line 9728 "configure"
9728 #include "confdefs.h"
9729 /* Override any gcc2 internal prototype to avoid an error. */
9730 /* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */
9732 char jrKanjiControl();
9738 if { (eval echo configure:9739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9740 eval "ac_cv_lib_$ac_lib_var=yes"
9742 echo "configure: failed program was:" >&5
9743 cat conftest.$ac_ext >&5
9745 eval "ac_cv_lib_$ac_lib_var=no"
9750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9751 echo "$ac_t""yes" 1>&6
9754 echo "$ac_t""no" 1>&6
9759 test -z "$with_canna" && with_canna=yes
9760 if test "$with_canna" = "yes"; then
9761 { test "$extra_verbose" = "yes" && cat << \EOF
9764 cat >> confdefs.h <<\EOF
9765 #define HAVE_CANNA 1
9769 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
9770 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
9771 echo " xemacs will be linked with \"mule-canna.o\""
9775 else for feature in xim canna wnn; do
9776 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
9777 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
9779 eval "with_${feature}=no"
9783 if test "$need_motif" = "yes" ; then
9784 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9786 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9787 echo "configure:9788: checking for layout_object_getvalue in -li18n" >&5
9788 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9790 xe_check_libs=" -li18n "
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9794 /* Override any gcc2 internal prototype to avoid an error. */
9795 /* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */
9797 char layout_object_getvalue();
9800 layout_object_getvalue()
9803 if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9805 eval "ac_cv_lib_$ac_lib_var=yes"
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9810 eval "ac_cv_lib_$ac_lib_var=no"
9815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9816 echo "$ac_t""yes" 1>&6
9817 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
9819 echo "$ac_t""no" 1>&6
9824 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
9825 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9826 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9828 runpath="" runpath_dirs=""
9829 if test -n "$LD_RUN_PATH"; then
9830 runpath="$LD_RUN_PATH"
9831 elif test "$GCC" = "yes"; then
9832 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
9833 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
9834 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
9835 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
9836 case "$arg" in P,* | -L* | -R* )
9837 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
9839 xe_runpath_dir="$dir"
9840 test "$xe_runpath_dir" != "/lib" -a \
9841 "$xe_runpath_dir" != "/usr/lib" -a \
9842 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9843 eval "$xe_add_unique_runpath_dir"
9848 ld_switch_run="$ld_switch_run_save"
9851 for arg in $ld_switch_site $ld_switch_x_site; do
9852 case "$arg" in -L*) {
9853 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
9854 test "$xe_runpath_dir" != "/lib" -a \
9855 "$xe_runpath_dir" != "/usr/lib" -a \
9856 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9857 eval "$xe_add_unique_runpath_dir"
9860 if test "$opsys $need_motif" = "sol2 yes"; then
9861 xe_runpath_dir="/opt/SUNWdt/lib";
9862 eval "$xe_add_unique_runpath_dir";
9865 if test -n "$runpath"; then
9866 ld_switch_run="${dash_r}${runpath}"
9868 if test "$GCC" = "yes"; then
9869 set x $ld_switch_run; shift; ld_switch_run=""
9870 while test -n "$1"; do
9872 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
9873 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
9875 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
9880 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
9886 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
9888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9889 echo "configure:9890: checking for $ac_func" >&5
9891 cat > conftest.$ac_ext <<EOF
9892 #line 9893 "configure"
9893 #include "confdefs.h"
9894 /* System header to define __stub macros and hopefully few prototypes,
9895 which can conflict with char $ac_func(); below. */
9897 /* Override any gcc2 internal prototype to avoid an error. */
9898 /* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9904 /* The GNU C library defines this for functions which it implements
9905 to always fail with ENOSYS. Some functions are actually named
9906 something starting with __ and the normal name is an alias. */
9907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9915 if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9917 eval "ac_cv_func_$ac_func=yes"
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9922 eval "ac_cv_func_$ac_func=no"
9926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9927 echo "$ac_t""yes" 1>&6
9928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9929 { test "$extra_verbose" = "yes" && cat << EOF
9930 Defining $ac_tr_func
9932 cat >> confdefs.h <<EOF
9933 #define $ac_tr_func 1
9938 echo "$ac_t""no" 1>&6
9943 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9944 echo " xemacs will be linked with \"realpath.o\""
9947 for ac_func in getloadavg
9949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9950 echo "configure:9951: checking for $ac_func" >&5
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 /* System header to define __stub macros and hopefully few prototypes,
9956 which can conflict with char $ac_func(); below. */
9958 /* Override any gcc2 internal prototype to avoid an error. */
9959 /* We use char because int might match the return type of a gcc2
9960 builtin and then its argument prototype would still apply. */
9965 /* The GNU C library defines this for functions which it implements
9966 to always fail with ENOSYS. Some functions are actually named
9967 something starting with __ and the normal name is an alias. */
9968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9976 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978 eval "ac_cv_func_$ac_func=yes"
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9983 eval "ac_cv_func_$ac_func=no"
9987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9988 echo "$ac_t""yes" 1>&6
9989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9990 { test "$extra_verbose" = "yes" && cat << EOF
9991 Defining $ac_tr_func
9993 cat >> confdefs.h <<EOF
9994 #define $ac_tr_func 1
9999 echo "$ac_t""no" 1>&6
10004 if test "$ac_cv_func_getloadavg" != "yes"
10006 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10007 echo " xemacs will be linked with \"getloadavg.o\""
10011 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10012 echo "configure:10013: checking for kstat_open in -lkstat" >&5
10013 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10015 xe_check_libs=" -lkstat "
10016 cat > conftest.$ac_ext <<EOF
10017 #line 10018 "configure"
10018 #include "confdefs.h"
10019 /* Override any gcc2 internal prototype to avoid an error. */
10020 /* We use char because int might match the return type of a gcc2
10021 builtin and then its argument prototype would still apply. */
10028 if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10030 eval "ac_cv_lib_$ac_lib_var=yes"
10032 echo "configure: failed program was:" >&5
10033 cat conftest.$ac_ext >&5
10035 eval "ac_cv_lib_$ac_lib_var=no"
10040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10041 echo "$ac_t""yes" 1>&6
10042 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10043 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10044 { test "$extra_verbose" = "yes" && cat << EOF
10045 Defining $ac_tr_lib
10047 cat >> confdefs.h <<EOF
10048 #define $ac_tr_lib 1
10052 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10055 echo "$ac_t""no" 1>&6
10061 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10062 echo "configure:10063: checking for kvm_read in -lkvm" >&5
10063 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10065 xe_check_libs=" -lkvm "
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 /* Override any gcc2 internal prototype to avoid an error. */
10070 /* We use char because int might match the return type of a gcc2
10071 builtin and then its argument prototype would still apply. */
10078 if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10080 eval "ac_cv_lib_$ac_lib_var=yes"
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10085 eval "ac_cv_lib_$ac_lib_var=no"
10090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10091 echo "$ac_t""yes" 1>&6
10092 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10094 { test "$extra_verbose" = "yes" && cat << EOF
10095 Defining $ac_tr_lib
10097 cat >> confdefs.h <<EOF
10098 #define $ac_tr_lib 1
10102 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10105 echo "$ac_t""no" 1>&6
10111 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10112 echo "configure:10113: checking whether netdb declares h_errno" >&5
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10121 if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10123 echo "$ac_t""yes" 1>&6
10124 { test "$extra_verbose" = "yes" && cat << \EOF
10125 Defining HAVE_H_ERRNO
10127 cat >> confdefs.h <<\EOF
10128 #define HAVE_H_ERRNO 1
10133 echo "configure: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10136 echo "$ac_t""no" 1>&6
10140 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10141 echo "configure:10142: checking for sigsetjmp" >&5
10142 cat > conftest.$ac_ext <<EOF
10143 #line 10144 "configure"
10144 #include "confdefs.h"
10145 #include <setjmp.h>
10147 sigjmp_buf bar; sigsetjmp (bar, 0);
10150 if { (eval echo configure:10151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10152 echo "$ac_t""yes" 1>&6
10153 { test "$extra_verbose" = "yes" && cat << \EOF
10154 Defining HAVE_SIGSETJMP
10156 cat >> confdefs.h <<\EOF
10157 #define HAVE_SIGSETJMP 1
10162 echo "configure: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10165 echo "$ac_t""no" 1>&6
10169 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10170 echo "configure:10171: checking whether localtime caches TZ" >&5
10172 if test "$ac_cv_func_tzset" = "yes"; then
10173 cat > conftest.$ac_ext <<EOF
10174 #line 10175 "configure"
10175 #include "confdefs.h"
10178 # include <stdlib.h>
10180 extern char **environ;
10184 for (to = from = environ; (*to = *from); from++)
10185 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10188 char TZ_GMT0[] = "TZ=GMT0";
10189 char TZ_PST8[] = "TZ=PST8";
10192 time_t now = time ((time_t *) 0);
10193 int hour_GMT0, hour_unset;
10194 if (putenv (TZ_GMT0) != 0)
10196 hour_GMT0 = localtime (&now)->tm_hour;
10198 hour_unset = localtime (&now)->tm_hour;
10199 if (putenv (TZ_PST8) != 0)
10201 if (localtime (&now)->tm_hour == hour_GMT0)
10204 if (localtime (&now)->tm_hour != hour_unset)
10209 if { (eval echo configure:10210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10211 emacs_cv_localtime_cache=no
10214 echo "configure: failed program was:" >&5
10215 cat conftest.$ac_ext >&5
10217 emacs_cv_localtime_cache=yes
10221 # If we lack tzset, report that localtime does not cache TZ,
10222 # since we can't invalidate the cache if we don't have tzset.
10223 emacs_cv_localtime_cache=no
10225 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10226 if test $emacs_cv_localtime_cache = yes; then
10227 { test "$extra_verbose" = "yes" && cat << \EOF
10228 Defining LOCALTIME_CACHE
10230 cat >> confdefs.h <<\EOF
10231 #define LOCALTIME_CACHE 1
10237 if test "$HAVE_TIMEVAL" = "yes"; then
10238 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10239 echo "configure:10240: checking whether gettimeofday accepts one or two arguments" >&5
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10242 "configure"
10242 #include "confdefs.h"
10244 #ifdef TIME_WITH_SYS_TIME
10245 #include <sys/time.h>
10248 #ifdef HAVE_SYS_TIME_H
10249 #include <sys/time.h>
10257 struct timeval time;
10258 gettimeofday (&time, 0);
10262 if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10264 echo "$ac_t""two" 1>&6
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10269 echo "$ac_t""one" 1>&6
10270 { test "$extra_verbose" = "yes" && cat << \EOF
10271 Defining GETTIMEOFDAY_ONE_ARGUMENT
10273 cat >> confdefs.h <<\EOF
10274 #define GETTIMEOFDAY_ONE_ARGUMENT 1
10283 echo $ac_n "checking for inline""... $ac_c" 1>&6
10284 echo "configure:10285: checking for inline" >&5
10287 for ac_kw in inline __inline__ __inline; do
10288 cat > conftest.$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10296 if { (eval echo configure:10297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10298 ac_cv_c_inline=$ac_kw; break
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10307 echo "$ac_t""$ac_cv_c_inline" 1>&6
10308 case "$ac_cv_c_inline" in
10310 no) { test "$extra_verbose" = "yes" && cat << \EOF
10313 cat >> confdefs.h <<\EOF
10318 *) { test "$extra_verbose" = "yes" && cat << EOF
10319 Defining inline = $ac_cv_c_inline
10321 cat >> confdefs.h <<EOF
10322 #define inline $ac_cv_c_inline
10328 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
10329 echo " xemacs will be linked with \"inline.o\""
10333 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10334 # for constant arguments. Useless!
10335 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
10336 echo "configure:10337: checking for working alloca.h" >&5
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10340 "configure"
10340 #include "confdefs.h"
10341 #include <alloca.h>
10343 char *p = alloca(2 * sizeof(int));
10346 if { (eval echo configure:10347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10348 ac_cv_header_alloca_h=yes
10350 echo "configure: failed program was:" >&5
10351 cat conftest.$ac_ext >&5
10353 ac_cv_header_alloca_h=no
10357 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
10358 if test $ac_cv_header_alloca_h = yes; then
10359 { test "$extra_verbose" = "yes" && cat << \EOF
10360 Defining HAVE_ALLOCA_H
10362 cat >> confdefs.h <<\EOF
10363 #define HAVE_ALLOCA_H 1
10369 echo $ac_n "checking for alloca""... $ac_c" 1>&6
10370 echo "configure:10371: checking for alloca" >&5
10372 cat > conftest.$ac_ext <<EOF
10373 #line 10374 "configure"
10374 #include "confdefs.h"
10377 # define alloca __builtin_alloca
10380 # include <malloc.h>
10381 # define alloca _alloca
10384 # include <alloca.h>
10389 # ifndef alloca /* predefined by HP cc +Olibcalls */
10398 char *p = (char *) alloca(1);
10401 if { (eval echo configure:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10403 ac_cv_func_alloca_works=yes
10405 echo "configure: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10408 ac_cv_func_alloca_works=no
10412 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
10413 if test $ac_cv_func_alloca_works = yes; then
10414 { test "$extra_verbose" = "yes" && cat << \EOF
10415 Defining HAVE_ALLOCA
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_ALLOCA 1
10424 if test $ac_cv_func_alloca_works = no; then
10425 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10426 # that cause trouble. Some versions do not even contain alloca or
10427 # contain a buggy version. If you still want to use their alloca,
10428 # use ar to extract alloca.o from them instead of compiling alloca.c.
10429 ALLOCA=alloca.${ac_objext}
10430 { test "$extra_verbose" = "yes" && cat << \EOF
10433 cat >> confdefs.h <<\EOF
10439 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10440 echo "configure:10441: checking whether alloca needs Cray hooks" >&5
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10445 #if defined(CRAY) && ! defined(CRAY2)
10452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10453 egrep "webecray" >/dev/null 2>&1; then
10463 echo "$ac_t""$ac_cv_os_cray" 1>&6
10464 if test $ac_cv_os_cray = yes; then
10465 for ac_func in _getb67 GETB67 getb67; do
10466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10467 echo "configure:10468: checking for $ac_func" >&5
10469 cat > conftest.$ac_ext <<EOF
10470 #line 10471 "configure"
10471 #include "confdefs.h"
10472 /* System header to define __stub macros and hopefully few prototypes,
10473 which can conflict with char $ac_func(); below. */
10474 #include <assert.h>
10475 /* Override any gcc2 internal prototype to avoid an error. */
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10482 /* The GNU C library defines this for functions which it implements
10483 to always fail with ENOSYS. Some functions are actually named
10484 something starting with __ and the normal name is an alias. */
10485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10493 if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10495 eval "ac_cv_func_$ac_func=yes"
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10500 eval "ac_cv_func_$ac_func=no"
10504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10505 echo "$ac_t""yes" 1>&6
10506 { test "$extra_verbose" = "yes" && cat << EOF
10507 Defining CRAY_STACKSEG_END = $ac_func
10509 cat >> confdefs.h <<EOF
10510 #define CRAY_STACKSEG_END $ac_func
10516 echo "$ac_t""no" 1>&6
10522 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10523 echo "configure:10524: checking stack direction for C alloca" >&5
10525 cat > conftest.$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10528 find_stack_direction ()
10530 static char *addr = 0;
10535 return find_stack_direction ();
10538 return (&dummy > addr) ? 1 : -1;
10542 exit (find_stack_direction() < 0);
10545 if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10547 ac_cv_c_stack_direction=1
10550 echo "configure: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10553 ac_cv_c_stack_direction=-1
10557 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
10558 { test "$extra_verbose" = "yes" && cat << EOF
10559 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
10561 cat >> confdefs.h <<EOF
10562 #define STACK_DIRECTION $ac_cv_c_stack_direction
10568 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
10569 echo " xemacs will be linked with \"$ALLOCA\""
10572 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10573 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10574 echo "configure:10575: checking for vfork.h" >&5
10576 cat > conftest.$ac_ext <<EOF
10577 #line 10578 "configure"
10578 #include "confdefs.h"
10581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10582 { (eval echo configure:10583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10584 if test -z "$ac_err"; then
10586 eval "ac_cv_header_$ac_safe=yes"
10589 echo "configure: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10592 eval "ac_cv_header_$ac_safe=no"
10595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10596 echo "$ac_t""yes" 1>&6
10597 { test "$extra_verbose" = "yes" && cat << \EOF
10598 Defining HAVE_VFORK_H
10600 cat >> confdefs.h <<\EOF
10601 #define HAVE_VFORK_H 1
10606 echo "$ac_t""no" 1>&6
10609 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10610 echo "configure:10611: checking for working vfork" >&5
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10615 /* Thanks to Paul Eggert for this test. */
10617 #include <sys/types.h>
10618 #include <sys/stat.h>
10619 #ifdef HAVE_UNISTD_H
10620 #include <unistd.h>
10622 #ifdef HAVE_VFORK_H
10625 /* On some sparc systems, changes by the child to local and incoming
10626 argument registers are propagated back to the parent.
10627 The compiler is told about this with #include <vfork.h>,
10628 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
10629 Test for this by using a static variable whose address
10630 is put into a register that is clobbered by the vfork. */
10633 sparc_address_test (int arg)
10635 sparc_address_test (arg) int arg;
10638 static pid_t child;
10653 pid_t parent = getpid ();
10656 sparc_address_test ();
10661 /* Here is another test for sparc vfork register problems.
10662 This test uses lots of local variables, at least
10663 as many local variables as main has allocated so far
10664 including compiler temporaries. 4 locals are enough for
10665 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
10666 A buggy compiler should reuse the register of parent
10667 for one of the local variables, since it will think that
10668 parent can't possibly be used any more in this routine.
10669 Assigning to the local variable will thus munge parent
10670 in the parent process. */
10672 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10673 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10674 /* Convince the compiler that p..p7 are live; otherwise, it might
10675 use the same hardware register for all 8 local variables. */
10676 if (p != p1 || p != p2 || p != p3 || p != p4
10677 || p != p5 || p != p6 || p != p7)
10680 /* On some systems (e.g. IRIX 3.3),
10681 vfork doesn't separate parent from child file descriptors.
10682 If the child closes a descriptor before it execs or exits,
10683 this munges the parent's descriptor as well.
10684 Test for this by closing stdout in the child. */
10685 _exit(close(fileno(stdout)) != 0);
10690 while (wait(&status) != child)
10693 /* Was there some problem with vforking? */
10696 /* Did the child fail? (This shouldn't happen.) */
10699 /* Did the vfork/compiler bug occur? */
10700 || parent != getpid()
10702 /* Did the file descriptor bug occur? */
10703 || fstat(fileno(stdout), &st) != 0
10708 if { (eval echo configure:10709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10710 ac_cv_func_vfork_works=yes
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10716 ac_cv_func_vfork_works=no
10720 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
10721 if test $ac_cv_func_vfork_works = no; then
10722 { test "$extra_verbose" = "yes" && cat << \EOF
10723 Defining vfork = fork
10725 cat >> confdefs.h <<\EOF
10733 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10734 echo "configure:10735: checking for working strcoll" >&5
10736 cat > conftest.$ac_ext <<EOF
10737 #line 10738 "configure"
10738 #include "confdefs.h"
10739 #include <string.h>
10742 exit (strcoll ("abc", "def") >= 0 ||
10743 strcoll ("ABC", "DEF") >= 0 ||
10744 strcoll ("123", "456") >= 0);
10747 if { (eval echo configure:10748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10749 ac_cv_func_strcoll_works=yes
10752 echo "configure: failed program was:" >&5
10753 cat conftest.$ac_ext >&5
10755 ac_cv_func_strcoll_works=no
10759 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
10760 if test $ac_cv_func_strcoll_works = yes; then
10761 { test "$extra_verbose" = "yes" && cat << \EOF
10762 Defining HAVE_STRCOLL
10764 cat >> confdefs.h <<\EOF
10765 #define HAVE_STRCOLL 1
10772 for ac_func in getpgrp
10774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10775 echo "configure:10776: checking for $ac_func" >&5
10777 cat > conftest.$ac_ext <<EOF
10778 #line 10779 "configure"
10779 #include "confdefs.h"
10780 /* System header to define __stub macros and hopefully few prototypes,
10781 which can conflict with char $ac_func(); below. */
10782 #include <assert.h>
10783 /* Override any gcc2 internal prototype to avoid an error. */
10784 /* We use char because int might match the return type of a gcc2
10785 builtin and then its argument prototype would still apply. */
10790 /* The GNU C library defines this for functions which it implements
10791 to always fail with ENOSYS. Some functions are actually named
10792 something starting with __ and the normal name is an alias. */
10793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10801 if { (eval echo configure:10802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10803 eval "ac_cv_func_$ac_func=yes"
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10808 eval "ac_cv_func_$ac_func=no"
10812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10813 echo "$ac_t""yes" 1>&6
10814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10815 { test "$extra_verbose" = "yes" && cat << EOF
10816 Defining $ac_tr_func
10818 cat >> confdefs.h <<EOF
10819 #define $ac_tr_func 1
10824 echo "$ac_t""no" 1>&6
10828 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10829 echo "configure:10830: checking whether getpgrp takes no argument" >&5
10831 cat > conftest.$ac_ext <<EOF
10832 #line 10833 "configure"
10833 #include "confdefs.h"
10836 * If this system has a BSD-style getpgrp(),
10837 * which takes a pid argument, exit unsuccessfully.
10839 * Snarfed from Chet Ramey's bash pgrp.c test program
10842 #include <sys/types.h>
10845 int pg1, pg2, pg3, pg4;
10846 int ng, np, s, child;
10853 pg3 = getpgrp(pid);
10857 * If all of these values are the same, it's pretty sure that
10858 * we're on a system that ignores getpgrp's first argument.
10860 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10866 else if (child == 0) {
10869 * If this is Sys V, this will not work; pgrp will be
10870 * set to np because setpgrp just changes a pgrp to be
10871 * the same as the pid.
10874 ng = getpgrp(0); /* Same result for Sys V and BSD */
10887 if { (eval echo configure:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10889 ac_cv_func_getpgrp_void=yes
10892 echo "configure: failed program was:" >&5
10893 cat conftest.$ac_ext >&5
10895 ac_cv_func_getpgrp_void=no
10900 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10901 if test $ac_cv_func_getpgrp_void = yes; then
10902 { test "$extra_verbose" = "yes" && cat << \EOF
10903 Defining GETPGRP_VOID
10905 cat >> confdefs.h <<\EOF
10906 #define GETPGRP_VOID 1
10913 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10914 echo "configure:10915: checking for working mmap" >&5
10915 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10916 cat > conftest.$ac_ext <<EOF
10917 #line 10918 "configure"
10918 #include "confdefs.h"
10920 #include <unistd.h>
10922 #include <sys/mman.h>
10924 #ifndef MAP_VARIABLE
10925 #define MAP_VARIABLE 0
10929 #define MAP_FAILED -1
10932 int main (int argc, char *argv[])
10936 #ifndef MAP_ANONYMOUS
10937 fd = open ("/dev/zero", O_RDWR);
10940 #define MAP_ANONYMOUS 0
10942 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10943 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10944 fd, 0) != (void *) MAP_FAILED)
10946 perror ("conftest: mmap failed");
10950 if { (eval echo configure:10951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10955 echo "configure: failed program was:" >&5
10956 cat conftest.$ac_ext >&5
10960 rm -fr conftest* ;;
10962 echo "$ac_t""$have_mmap" 1>&6
10963 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10966 cat >> confdefs.h <<\EOF
10967 #define HAVE_MMAP 1
10972 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10973 if test "$rel_alloc $have_mmap" = "default yes"; then
10974 if test "$doug_lea_malloc" = "yes"; then
10975 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
10976 echo "configure:10977: checking for M_MMAP_THRESHOLD" >&5
10977 cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10980 #include <malloc.h>
10983 #ifndef M_MMAP_THRESHOLD
10984 #error No M_MMAP_THRESHOLD :-(
10985 !@+$%^&*_)(_ - unlikely to compile...
10990 if { (eval echo configure:10991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10992 rel_alloc=no; echo "$ac_t""yes" 1>&6;
10994 echo "configure: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10997 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11004 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11007 cat >> confdefs.h <<\EOF
11008 #define REL_ALLOC 1
11013 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11014 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11015 echo "configure:11016: checking for termios.h" >&5
11017 cat > conftest.$ac_ext <<EOF
11018 #line 11019 "configure"
11019 #include "confdefs.h"
11020 #include <termios.h>
11022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11023 { (eval echo configure:11024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11025 if test -z "$ac_err"; then
11027 eval "ac_cv_header_$ac_safe=yes"
11030 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11033 eval "ac_cv_header_$ac_safe=no"
11036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11037 echo "$ac_t""yes" 1>&6
11038 { test "$extra_verbose" = "yes" && cat << \EOF
11039 Defining HAVE_TERMIOS
11041 cat >> confdefs.h <<\EOF
11042 #define HAVE_TERMIOS 1
11046 { test "$extra_verbose" = "yes" && cat << \EOF
11047 Defining SIGNALS_VIA_CHARACTERS
11049 cat >> confdefs.h <<\EOF
11050 #define SIGNALS_VIA_CHARACTERS 1
11054 { test "$extra_verbose" = "yes" && cat << \EOF
11057 cat >> confdefs.h <<\EOF
11058 #define NO_TERMIO 1
11063 echo "$ac_t""no" 1>&6
11064 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11065 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11066 echo "configure:11067: checking for termio.h" >&5
11068 cat > conftest.$ac_ext <<EOF
11069 #line 11070 "configure"
11070 #include "confdefs.h"
11071 #include <termio.h>
11073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11074 { (eval echo configure:11075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11076 if test -z "$ac_err"; then
11078 eval "ac_cv_header_$ac_safe=yes"
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11084 eval "ac_cv_header_$ac_safe=no"
11087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11088 echo "$ac_t""yes" 1>&6
11089 { test "$extra_verbose" = "yes" && cat << \EOF
11090 Defining HAVE_TERMIO
11092 cat >> confdefs.h <<\EOF
11093 #define HAVE_TERMIO 1
11098 echo "$ac_t""no" 1>&6
11105 echo $ac_n "checking for socket""... $ac_c" 1>&6
11106 echo "configure:11107: checking for socket" >&5
11108 cat > conftest.$ac_ext <<EOF
11109 #line 11110 "configure"
11110 #include "confdefs.h"
11111 /* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char socket(); below. */
11113 #include <assert.h>
11114 /* Override any gcc2 internal prototype to avoid an error. */
11115 /* We use char because int might match the return type of a gcc2
11116 builtin and then its argument prototype would still apply. */
11121 /* The GNU C library defines this for functions which it implements
11122 to always fail with ENOSYS. Some functions are actually named
11123 something starting with __ and the normal name is an alias. */
11124 #if defined (__stub_socket) || defined (__stub___socket)
11132 if { (eval echo configure:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11134 eval "ac_cv_func_socket=yes"
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11139 eval "ac_cv_func_socket=no"
11143 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11144 echo "$ac_t""yes" 1>&6
11145 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11146 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11147 echo "configure:11148: checking for netinet/in.h" >&5
11149 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11152 #include <netinet/in.h>
11154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11155 { (eval echo configure:11156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11157 if test -z "$ac_err"; then
11159 eval "ac_cv_header_$ac_safe=yes"
11162 echo "configure: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11165 eval "ac_cv_header_$ac_safe=no"
11168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11169 echo "$ac_t""yes" 1>&6
11170 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11171 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11172 echo "configure:11173: checking for arpa/inet.h" >&5
11174 cat > conftest.$ac_ext <<EOF
11175 #line 11176 "configure"
11176 #include "confdefs.h"
11177 #include <arpa/inet.h>
11179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11180 { (eval echo configure:11181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11182 if test -z "$ac_err"; then
11184 eval "ac_cv_header_$ac_safe=yes"
11187 echo "configure: failed program was:" >&5
11188 cat conftest.$ac_ext >&5
11190 eval "ac_cv_header_$ac_safe=no"
11193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11194 echo "$ac_t""yes" 1>&6
11196 { test "$extra_verbose" = "yes" && cat << \EOF
11197 Defining HAVE_SOCKETS
11199 cat >> confdefs.h <<\EOF
11200 #define HAVE_SOCKETS 1
11204 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11205 echo "configure:11206: checking "for sun_len member in struct sockaddr_un"" >&5
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11210 #include <sys/types.h>
11211 #include <sys/socket.h>
11212 #include <sys/un.h>
11215 static struct sockaddr_un x; x.sun_len = 1;
11218 if { (eval echo configure:11219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11220 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11221 Defining HAVE_SOCKADDR_SUN_LEN
11223 cat >> confdefs.h <<\EOF
11224 #define HAVE_SOCKADDR_SUN_LEN 1
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11232 echo "$ac_t""no" 1>&6
11235 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11236 echo "configure:11237: checking "for ip_mreq struct in netinet/in.h"" >&5
11237 cat > conftest.$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11241 #include <sys/types.h>
11242 #include <netinet/in.h>
11245 static struct ip_mreq x;
11248 if { (eval echo configure:11249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11250 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11251 Defining HAVE_MULTICAST
11253 cat >> confdefs.h <<\EOF
11254 #define HAVE_MULTICAST 1
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11262 echo "$ac_t""no" 1>&6
11266 echo "$ac_t""no" 1>&6
11270 echo "$ac_t""no" 1>&6
11274 echo "$ac_t""no" 1>&6
11278 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11279 echo "configure:11280: checking for msgget" >&5
11281 cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 /* System header to define __stub macros and hopefully few prototypes,
11285 which can conflict with char msgget(); below. */
11286 #include <assert.h>
11287 /* Override any gcc2 internal prototype to avoid an error. */
11288 /* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11294 /* The GNU C library defines this for functions which it implements
11295 to always fail with ENOSYS. Some functions are actually named
11296 something starting with __ and the normal name is an alias. */
11297 #if defined (__stub_msgget) || defined (__stub___msgget)
11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11307 eval "ac_cv_func_msgget=yes"
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11312 eval "ac_cv_func_msgget=no"
11316 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11317 echo "$ac_t""yes" 1>&6
11318 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
11319 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
11320 echo "configure:11321: checking for sys/ipc.h" >&5
11322 cat > conftest.$ac_ext <<EOF
11323 #line 11324 "configure"
11324 #include "confdefs.h"
11325 #include <sys/ipc.h>
11327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11328 { (eval echo configure:11329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11330 if test -z "$ac_err"; then
11332 eval "ac_cv_header_$ac_safe=yes"
11335 echo "configure: failed program was:" >&5
11336 cat conftest.$ac_ext >&5
11338 eval "ac_cv_header_$ac_safe=no"
11341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11342 echo "$ac_t""yes" 1>&6
11343 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
11344 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
11345 echo "configure:11346: checking for sys/msg.h" >&5
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 #include <sys/msg.h>
11352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11353 { (eval echo configure:11354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11355 if test -z "$ac_err"; then
11357 eval "ac_cv_header_$ac_safe=yes"
11360 echo "configure: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11363 eval "ac_cv_header_$ac_safe=no"
11366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11367 echo "$ac_t""yes" 1>&6
11368 { test "$extra_verbose" = "yes" && cat << \EOF
11369 Defining HAVE_SYSVIPC
11371 cat >> confdefs.h <<\EOF
11372 #define HAVE_SYSVIPC 1
11377 echo "$ac_t""no" 1>&6
11381 echo "$ac_t""no" 1>&6
11385 echo "$ac_t""no" 1>&6
11389 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
11390 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
11391 echo "configure:11392: checking for dirent.h" >&5
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11396 #include <dirent.h>
11398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11399 { (eval echo configure:11400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11401 if test -z "$ac_err"; then
11403 eval "ac_cv_header_$ac_safe=yes"
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11409 eval "ac_cv_header_$ac_safe=no"
11412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11413 echo "$ac_t""yes" 1>&6
11414 { test "$extra_verbose" = "yes" && cat << \EOF
11415 Defining SYSV_SYSTEM_DIR
11417 cat >> confdefs.h <<\EOF
11418 #define SYSV_SYSTEM_DIR 1
11423 echo "$ac_t""no" 1>&6
11424 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11425 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11426 echo "configure:11427: checking for sys/dir.h" >&5
11428 cat > conftest.$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11431 #include <sys/dir.h>
11433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11434 { (eval echo configure:11435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11436 if test -z "$ac_err"; then
11438 eval "ac_cv_header_$ac_safe=yes"
11441 echo "configure: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11444 eval "ac_cv_header_$ac_safe=no"
11447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11448 echo "$ac_t""yes" 1>&6
11451 echo "$ac_t""no" 1>&6
11452 { test "$extra_verbose" = "yes" && cat << \EOF
11453 Defining NONSYSTEM_DIR_LIBRARY
11455 cat >> confdefs.h <<\EOF
11456 #define NONSYSTEM_DIR_LIBRARY 1
11465 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11466 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11467 echo "configure:11468: checking for nlist.h" >&5
11469 cat > conftest.$ac_ext <<EOF
11470 #line 11471 "configure"
11471 #include "confdefs.h"
11474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11475 { (eval echo configure:11476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11477 if test -z "$ac_err"; then
11479 eval "ac_cv_header_$ac_safe=yes"
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11485 eval "ac_cv_header_$ac_safe=no"
11488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11489 echo "$ac_t""yes" 1>&6
11490 { test "$extra_verbose" = "yes" && cat << \EOF
11491 Defining NLIST_STRUCT
11493 cat >> confdefs.h <<\EOF
11494 #define NLIST_STRUCT 1
11499 echo "$ac_t""no" 1>&6
11504 echo "checking "for sound support"" 1>&6
11505 echo "configure:11506: checking "for sound support"" >&5
11506 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11508 if test "$with_native_sound" != "no"; then
11509 if test -n "$native_sound_lib"; then
11510 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11511 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11512 echo "configure:11513: checking for multimedia/audio_device.h" >&5
11514 cat > conftest.$ac_ext <<EOF
11515 #line 11516 "configure"
11516 #include "confdefs.h"
11517 #include <multimedia/audio_device.h>
11519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11520 { (eval echo configure:11521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11522 if test -z "$ac_err"; then
11524 eval "ac_cv_header_$ac_safe=yes"
11527 echo "configure: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11530 eval "ac_cv_header_$ac_safe=no"
11533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11535 sound_found=yes sound_cflags=""
11536 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11537 echo " xemacs will be linked with \"sunplay.o\""
11540 echo "$ac_t""no" 1>&6
11545 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
11547 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11548 echo " xemacs will be linked with \"sunplay.o\""
11550 if test -d "/usr/demo/SOUND/include"
11551 then sound_cflags="-I/usr/demo/SOUND/include"
11552 else sound_cflags="-I/usr/demo/SOUND"
11554 if test -z "$native_sound_lib" ; then
11555 if test -r "/usr/demo/SOUND/lib/libaudio.a"
11556 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
11557 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
11562 if test -z "$sound_found"; then
11563 case "$canonical" in
11565 if test -z "$native_sound_lib"; then
11567 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11568 echo "configure:11569: checking for ALopenport in -laudio" >&5
11569 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11571 xe_check_libs=" -laudio "
11572 cat > conftest.$ac_ext <<EOF
11573 #line 11574 "configure"
11574 #include "confdefs.h"
11575 /* Override any gcc2 internal prototype to avoid an error. */
11576 /* We use char because int might match the return type of a gcc2
11577 builtin and then its argument prototype would still apply. */
11584 if { (eval echo configure:11585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11586 eval "ac_cv_lib_$ac_lib_var=yes"
11588 echo "configure: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11591 eval "ac_cv_lib_$ac_lib_var=no"
11596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11597 echo "$ac_t""yes" 1>&6
11598 native_sound_lib="-laudio"
11600 echo "$ac_t""no" 1>&6
11605 if test -n "$native_sound_lib"; then
11606 sound_found=yes sound_cflags=""
11607 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
11608 echo " xemacs will be linked with \"sgiplay.o\""
11612 if test -z "$native_sound_lib"; then
11614 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11615 echo "configure:11616: checking for AOpenAudio in -lAlib" >&5
11616 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11618 xe_check_libs=" -lAlib "
11619 cat > conftest.$ac_ext <<EOF
11620 #line 11621 "configure"
11621 #include "confdefs.h"
11622 /* Override any gcc2 internal prototype to avoid an error. */
11623 /* We use char because int might match the return type of a gcc2
11624 builtin and then its argument prototype would still apply. */
11631 if { (eval echo configure:11632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11633 eval "ac_cv_lib_$ac_lib_var=yes"
11635 echo "configure: failed program was:" >&5
11636 cat conftest.$ac_ext >&5
11638 eval "ac_cv_lib_$ac_lib_var=no"
11643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11644 echo "$ac_t""yes" 1>&6
11645 native_sound_lib="-lAlib"
11647 echo "$ac_t""no" 1>&6
11652 if test -n "$native_sound_lib"; then
11654 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
11655 echo " xemacs will be linked with \"hpplay.o\""
11657 if test "$GCC" = "yes" # Kludge city
11658 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
11659 else sound_cflags="+e -I/usr/audio/examples"
11665 if test -z "$sound_found"; then
11666 for dir in "machine" "sys" "linux"; do
11667 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11668 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11669 echo "configure:11670: checking for ${dir}/soundcard.h" >&5
11671 cat > conftest.$ac_ext <<EOF
11672 #line 11673 "configure"
11673 #include "confdefs.h"
11674 #include <${dir}/soundcard.h>
11676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11677 { (eval echo configure:11678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11679 if test -z "$ac_err"; then
11681 eval "ac_cv_header_$ac_safe=yes"
11684 echo "configure: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11687 eval "ac_cv_header_$ac_safe=no"
11690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11691 echo "$ac_t""yes" 1>&6
11694 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
11695 echo " xemacs will be linked with \"linuxplay.o\""
11697 { test "$extra_verbose" = "yes" && cat << EOF
11698 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
11700 cat >> confdefs.h <<EOF
11701 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
11707 echo "$ac_t""no" 1>&6
11713 test "$sound_found" = "yes" && with_native_sound=yes
11716 if test "$with_native_sound" = "yes"; then
11717 { test "$extra_verbose" = "yes" && cat << \EOF
11718 Defining HAVE_NATIVE_SOUND
11720 cat >> confdefs.h <<\EOF
11721 #define HAVE_NATIVE_SOUND 1
11725 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
11728 if test "$with_nas_sound" != "no"; then
11729 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11730 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11731 echo "configure:11732: checking for audio/audiolib.h" >&5
11733 cat > conftest.$ac_ext <<EOF
11734 #line 11735 "configure"
11735 #include "confdefs.h"
11736 #include <audio/audiolib.h>
11738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11739 { (eval echo configure:11740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11741 if test -z "$ac_err"; then
11743 eval "ac_cv_header_$ac_safe=yes"
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11749 eval "ac_cv_header_$ac_safe=no"
11752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11753 echo "$ac_t""yes" 1>&6
11756 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11757 echo "configure:11758: checking for AuOpenServer in -laudio" >&5
11758 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11760 xe_check_libs=" -laudio "
11761 cat > conftest.$ac_ext <<EOF
11762 #line 11763 "configure"
11763 #include "confdefs.h"
11764 /* Override any gcc2 internal prototype to avoid an error. */
11765 /* We use char because int might match the return type of a gcc2
11766 builtin and then its argument prototype would still apply. */
11767 char AuOpenServer();
11773 if { (eval echo configure:11774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11775 eval "ac_cv_lib_$ac_lib_var=yes"
11777 echo "configure: failed program was:" >&5
11778 cat conftest.$ac_ext >&5
11780 eval "ac_cv_lib_$ac_lib_var=no"
11785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11786 echo "$ac_t""yes" 1>&6
11789 echo "$ac_t""no" 1>&6
11794 echo "$ac_t""no" 1>&6
11797 if test "$have_nas_sound" = "yes"; then
11799 { test "$extra_verbose" = "yes" && cat << \EOF
11800 Defining HAVE_NAS_SOUND
11802 cat >> confdefs.h <<\EOF
11803 #define HAVE_NAS_SOUND 1
11807 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11808 echo " xemacs will be linked with \"nas.o\""
11810 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11811 cat > conftest.$ac_ext <<EOF
11812 #line 11813 "configure"
11813 #include "confdefs.h"
11814 #include <audio/Xtutil.h>
11816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11817 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11821 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
11822 Defining NAS_NO_ERROR_JUMP
11824 cat >> confdefs.h <<\EOF
11825 #define NAS_NO_ERROR_JUMP 1
11833 test "$with_nas_sound" = "yes" && \
11834 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11839 if test "$with_esd_sound" != "no"; then
11840 # Extract the first word of "esd-config", so it can be a program name with args.
11841 set dummy esd-config; ac_word=$2
11842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11843 echo "configure:11844: checking for $ac_word" >&5
11845 if test -n "$have_esd_config"; then
11846 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11850 for ac_dir in $ac_dummy; do
11851 test -z "$ac_dir" && ac_dir=.
11852 if test -f $ac_dir/$ac_word; then
11853 ac_cv_prog_have_esd_config="yes"
11858 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11860 have_esd_config="$ac_cv_prog_have_esd_config"
11861 if test -n "$have_esd_config"; then
11862 echo "$ac_t""$have_esd_config" 1>&6
11864 echo "$ac_t""no" 1>&6
11867 if test "$have_esd_config" = "yes"; then
11868 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11869 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
11870 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11871 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11872 echo "configure:11873: checking for esd_play_stream" >&5
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11877 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char esd_play_stream(); below. */
11879 #include <assert.h>
11880 /* Override any gcc2 internal prototype to avoid an error. */
11881 /* We use char because int might match the return type of a gcc2
11882 builtin and then its argument prototype would still apply. */
11883 char esd_play_stream();
11887 /* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11898 if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11900 eval "ac_cv_func_esd_play_stream=yes"
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 eval "ac_cv_func_esd_play_stream=no"
11909 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11913 echo "$ac_t""no" 1>&6
11914 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11919 if test "$have_esd_sound" = "yes"; then
11922 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11923 echo " xemacs will be linked with \"esd.o\""
11925 { test "$extra_verbose" = "yes" && cat << \EOF
11926 Defining HAVE_ESD_SOUND
11928 cat >> confdefs.h <<\EOF
11929 #define HAVE_ESD_SOUND 1
11934 test "$with_esd_sound" = "yes" && \
11935 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11940 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
11941 echo " xemacs will be linked with \"miscplay.o\""
11945 test -z "$with_tty" && with_tty=yes
11947 if test "$with_tty" = "yes" ; then
11948 echo "checking for TTY-related features" 1>&6
11949 echo "configure:11950: checking for TTY-related features" >&5
11950 { test "$extra_verbose" = "yes" && cat << \EOF
11953 cat >> confdefs.h <<\EOF
11958 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
11959 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\""
11962 if test -z "$with_ncurses"; then
11964 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11965 echo "configure:11966: checking for tgetent in -lncurses" >&5
11966 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11968 xe_check_libs=" -lncurses "
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11972 /* Override any gcc2 internal prototype to avoid an error. */
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11983 eval "ac_cv_lib_$ac_lib_var=yes"
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11988 eval "ac_cv_lib_$ac_lib_var=no"
11993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11994 echo "$ac_t""yes" 1>&6
11997 echo "$ac_t""no" 1>&6
12003 if test "$with_ncurses" = "yes"; then
12004 { test "$extra_verbose" = "yes" && cat << \EOF
12005 Defining HAVE_NCURSES
12007 cat >> confdefs.h <<\EOF
12008 #define HAVE_NCURSES 1
12012 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12013 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12014 echo "configure:12015: checking for ncurses/curses.h" >&5
12016 cat > conftest.$ac_ext <<EOF
12017 #line 12018 "configure"
12018 #include "confdefs.h"
12019 #include <ncurses/curses.h>
12021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12022 { (eval echo configure:12023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12024 if test -z "$ac_err"; then
12026 eval "ac_cv_header_$ac_safe=yes"
12029 echo "configure: failed program was:" >&5
12030 cat conftest.$ac_ext >&5
12032 eval "ac_cv_header_$ac_safe=no"
12035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12036 echo "$ac_t""yes" 1>&6
12037 curses_h_path=ncurses/curses.h
12039 echo "$ac_t""no" 1>&6
12042 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12043 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12044 echo "configure:12045: checking for ncurses/term.h" >&5
12046 cat > conftest.$ac_ext <<EOF
12047 #line 12048 "configure"
12048 #include "confdefs.h"
12049 #include <ncurses/term.h>
12051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12052 { (eval echo configure:12053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12054 if test -z "$ac_err"; then
12056 eval "ac_cv_header_$ac_safe=yes"
12059 echo "configure: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12062 eval "ac_cv_header_$ac_safe=no"
12065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 term_h_path=ncurses/term.h
12069 echo "$ac_t""no" 1>&6
12072 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12073 echo " xemacs will be linked with \"terminfo.o\""
12075 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12077 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12078 save_c_switch_site="$c_switch_site"
12079 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12080 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12081 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12082 echo "configure:12083: checking for ncurses/curses.h" >&5
12084 cat > conftest.$ac_ext <<EOF
12085 #line 12086 "configure"
12086 #include "confdefs.h"
12087 #include <ncurses/curses.h>
12089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12090 { (eval echo configure:12091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12092 if test -z "$ac_err"; then
12094 eval "ac_cv_header_$ac_safe=yes"
12097 echo "configure: failed program was:" >&5
12098 cat conftest.$ac_ext >&5
12100 eval "ac_cv_header_$ac_safe=no"
12103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12104 echo "$ac_t""yes" 1>&6
12105 curses_h_path=ncurses/curses.h
12107 echo "$ac_t""no" 1>&6
12110 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12111 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12112 else c_switch_site="$save_c_switch_site"
12115 else if test "$have_terminfo" = "yes"; then
12116 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12117 echo " xemacs will be linked with \"terminfo.o\""
12119 if test -n "$libs_termcap"; then
12120 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12122 for lib in curses termlib termcap; do
12124 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12125 echo "configure:12126: checking for tgetent in -l$lib" >&5
12126 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12128 xe_check_libs=" -l$lib "
12129 cat > conftest.$ac_ext <<EOF
12130 #line 12131 "configure"
12131 #include "confdefs.h"
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12141 if { (eval echo configure:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12143 eval "ac_cv_lib_$ac_lib_var=yes"
12145 echo "configure: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12148 eval "ac_cv_lib_$ac_lib_var=no"
12153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12154 echo "$ac_t""yes" 1>&6
12155 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12157 echo "$ac_t""no" 1>&6
12163 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12164 echo " xemacs will be linked with \"tparam.o\""
12166 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12167 if test -n "$libs_termcap"; then
12168 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12171 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12172 echo "configure:12173: checking for tgetent in -lcurses" >&5
12173 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12175 xe_check_libs=" -lcurses "
12176 cat > conftest.$ac_ext <<EOF
12177 #line 12178 "configure"
12178 #include "confdefs.h"
12179 /* Override any gcc2 internal prototype to avoid an error. */
12180 /* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12188 if { (eval echo configure:12189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12190 eval "ac_cv_lib_$ac_lib_var=yes"
12192 echo "configure: failed program was:" >&5
12193 cat conftest.$ac_ext >&5
12195 eval "ac_cv_lib_$ac_lib_var=no"
12200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12201 echo "$ac_t""yes" 1>&6
12202 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12204 echo "$ac_t""no" 1>&6
12205 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12206 echo "configure:12207: checking for tgetent in -ltermcap" >&5
12207 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12209 xe_check_libs=" -ltermcap "
12210 cat > conftest.$ac_ext <<EOF
12211 #line 12212 "configure"
12212 #include "confdefs.h"
12213 /* Override any gcc2 internal prototype to avoid an error. */
12214 /* We use char because int might match the return type of a gcc2
12215 builtin and then its argument prototype would still apply. */
12222 if { (eval echo configure:12223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12224 eval "ac_cv_lib_$ac_lib_var=yes"
12226 echo "configure: failed program was:" >&5
12227 cat conftest.$ac_ext >&5
12229 eval "ac_cv_lib_$ac_lib_var=no"
12234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12235 echo "$ac_t""yes" 1>&6
12236 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12238 echo "$ac_t""no" 1>&6
12239 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12240 echo " xemacs will be linked with \"termcap.o\""
12251 { test "$extra_verbose" = "yes" && cat << EOF
12252 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
12254 cat >> confdefs.h <<EOF
12255 #define CURSES_H_PATH "${curses_h_path-curses.h}"
12259 { test "$extra_verbose" = "yes" && cat << EOF
12260 Defining TERM_H_PATH = "${term_h_path-term.h}"
12262 cat >> confdefs.h <<EOF
12263 #define TERM_H_PATH "${term_h_path-term.h}"
12268 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12269 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12270 echo "configure:12271: checking for gpm.h" >&5
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12278 { (eval echo configure:12279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12280 if test -z "$ac_err"; then
12282 eval "ac_cv_header_$ac_safe=yes"
12285 echo "configure: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12288 eval "ac_cv_header_$ac_safe=no"
12291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12292 echo "$ac_t""yes" 1>&6
12295 echo "$ac_t""no" 1>&6
12299 test -z "$with_gpm" && {
12300 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12301 echo "configure:12302: checking for Gpm_Open in -lgpm" >&5
12302 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12304 xe_check_libs=" -lgpm "
12305 cat > conftest.$ac_ext <<EOF
12306 #line 12307 "configure"
12307 #include "confdefs.h"
12308 /* Override any gcc2 internal prototype to avoid an error. */
12309 /* We use char because int might match the return type of a gcc2
12310 builtin and then its argument prototype would still apply. */
12317 if { (eval echo configure:12318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12319 eval "ac_cv_lib_$ac_lib_var=yes"
12321 echo "configure: failed program was:" >&5
12322 cat conftest.$ac_ext >&5
12324 eval "ac_cv_lib_$ac_lib_var=no"
12329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12330 echo "$ac_t""yes" 1>&6
12333 echo "$ac_t""no" 1>&6
12338 if test "$with_gpm" = "yes"; then
12339 { test "$extra_verbose" = "yes" && cat << \EOF
12342 cat >> confdefs.h <<\EOF
12347 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
12348 echo " xemacs will be linked with \"gpmevent.o\""
12350 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
12353 else for feature in ncurses gpm; do
12354 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
12355 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
12357 eval "with_${feature}=no"
12360 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
12361 echo " xemacs will be linked with \"event-unixoid.o\""
12365 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12366 != "no no no" && echo "checking for database support" 1>&6
12367 echo "configure:12368: checking for database support" >&5
12369 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
12370 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
12371 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
12372 echo "configure:12373: checking for ndbm.h" >&5
12374 cat > conftest.$ac_ext <<EOF
12375 #line 12376 "configure"
12376 #include "confdefs.h"
12379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12380 { (eval echo configure:12381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12382 if test -z "$ac_err"; then
12384 eval "ac_cv_header_$ac_safe=yes"
12387 echo "configure: failed program was:" >&5
12388 cat conftest.$ac_ext >&5
12390 eval "ac_cv_header_$ac_safe=no"
12393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12394 echo "$ac_t""yes" 1>&6
12397 echo "$ac_t""no" 1>&6
12399 test "$with_database_gdbm" = "yes" -o \
12400 "$with_database_dbm" = "yes" && \
12401 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12402 with_database_gdbm=no with_database_dbm=no
12407 if test "$with_database_gdbm" != "no"; then
12409 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
12410 echo "configure:12411: checking for dbm_open in -lgdbm" >&5
12411 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12413 xe_check_libs=" -lgdbm "
12414 cat > conftest.$ac_ext <<EOF
12415 #line 12416 "configure"
12416 #include "confdefs.h"
12417 /* Override any gcc2 internal prototype to avoid an error. */
12418 /* We use char because int might match the return type of a gcc2
12419 builtin and then its argument prototype would still apply. */
12426 if { (eval echo configure:12427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12428 eval "ac_cv_lib_$ac_lib_var=yes"
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12433 eval "ac_cv_lib_$ac_lib_var=no"
12438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12439 echo "$ac_t""yes" 1>&6
12440 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
12442 echo "$ac_t""no" 1>&6
12443 if test "$with_database_gdbm" = "yes"; then
12444 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
12446 with_database_gdbm=no
12452 if test "$with_database_dbm" != "no"; then
12453 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12454 echo "configure:12455: checking for dbm_open" >&5
12456 cat > conftest.$ac_ext <<EOF
12457 #line 12458 "configure"
12458 #include "confdefs.h"
12459 /* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char dbm_open(); below. */
12461 #include <assert.h>
12462 /* Override any gcc2 internal prototype to avoid an error. */
12463 /* We use char because int might match the return type of a gcc2
12464 builtin and then its argument prototype would still apply. */
12469 /* The GNU C library defines this for functions which it implements
12470 to always fail with ENOSYS. Some functions are actually named
12471 something starting with __ and the normal name is an alias. */
12472 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12480 if { (eval echo configure:12481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12482 eval "ac_cv_func_dbm_open=yes"
12484 echo "configure: failed program was:" >&5
12485 cat conftest.$ac_ext >&5
12487 eval "ac_cv_func_dbm_open=no"
12491 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12492 echo "$ac_t""yes" 1>&6
12493 with_database_dbm=yes libdbm=
12495 echo "$ac_t""no" 1>&6
12498 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12499 echo "configure:12500: checking for dbm_open in -ldbm" >&5
12500 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12502 xe_check_libs=" -ldbm "
12503 cat > conftest.$ac_ext <<EOF
12504 #line 12505 "configure"
12505 #include "confdefs.h"
12506 /* Override any gcc2 internal prototype to avoid an error. */
12507 /* We use char because int might match the return type of a gcc2
12508 builtin and then its argument prototype would still apply. */
12515 if { (eval echo configure:12516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12517 eval "ac_cv_lib_$ac_lib_var=yes"
12519 echo "configure: failed program was:" >&5
12520 cat conftest.$ac_ext >&5
12522 eval "ac_cv_lib_$ac_lib_var=no"
12527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12528 echo "$ac_t""yes" 1>&6
12529 with_database_dbm=yes libdbm=-ldbm
12531 echo "$ac_t""no" 1>&6
12532 test "$with_database_dbm" = "yes" && \
12533 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12534 with_database_dbm=no
12542 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
12543 test "$with_database_gdbm" = "yes" -o \
12544 "$with_database_dbm" = "yes" && \
12545 { test "$extra_verbose" = "yes" && cat << \EOF
12548 cat >> confdefs.h <<\EOF
12554 if test "$with_database_berkdb" != "no"; then
12555 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12556 echo "configure:12557: checking for Berkeley db.h" >&5
12557 for path in "db/db.h" "db.h"; do
12558 cat > conftest.$ac_ext <<EOF
12559 #line 12560 "configure"
12560 #include "confdefs.h"
12562 #include <stdlib.h>
12563 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
12564 #ifdef HAVE_INTTYPES_H
12565 #define __BIT_TYPES_DEFINED__
12566 #include <inttypes.h>
12567 typedef uint8_t u_int8_t;
12568 typedef uint16_t u_int16_t;
12569 typedef uint32_t u_int32_t;
12570 #ifdef WE_DONT_NEED_QUADS
12571 typedef uint64_t u_int64_t;
12581 if { (eval echo configure:12582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12583 db_h_path="$path"; break
12585 echo "configure: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12590 if test -z "$db_h_path"
12591 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
12592 else echo "$ac_t""$db_h_path" 1>&6
12595 if test "$with_database_berkdb" != "no"; then
12596 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12597 echo "configure:12598: checking for Berkeley DB version" >&5
12598 cat > conftest.$ac_ext <<EOF
12599 #line 12600 "configure"
12600 #include "confdefs.h"
12601 #include <$db_h_path>
12602 #if DB_VERSION_MAJOR > 1
12607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12608 egrep "yes" >/dev/null 2>&1; then
12610 echo "$ac_t""2" 1>&6; dbfunc=db_open
12613 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12617 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12618 echo "configure:12619: checking for $dbfunc" >&5
12620 cat > conftest.$ac_ext <<EOF
12621 #line 12622 "configure"
12622 #include "confdefs.h"
12623 /* System header to define __stub macros and hopefully few prototypes,
12624 which can conflict with char $dbfunc(); below. */
12625 #include <assert.h>
12626 /* Override any gcc2 internal prototype to avoid an error. */
12627 /* We use char because int might match the return type of a gcc2
12628 builtin and then its argument prototype would still apply. */
12633 /* The GNU C library defines this for functions which it implements
12634 to always fail with ENOSYS. Some functions are actually named
12635 something starting with __ and the normal name is an alias. */
12636 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
12644 if { (eval echo configure:12645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12646 eval "ac_cv_func_$dbfunc=yes"
12648 echo "configure: failed program was:" >&5
12649 cat conftest.$ac_ext >&5
12651 eval "ac_cv_func_$dbfunc=no"
12655 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
12656 echo "$ac_t""yes" 1>&6
12657 with_database_berkdb=yes need_libdb=no
12659 echo "$ac_t""no" 1>&6
12662 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12663 echo "configure:12664: checking for $dbfunc in -ldb" >&5
12664 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12666 xe_check_libs=" -ldb "
12667 cat > conftest.$ac_ext <<EOF
12668 #line 12669 "configure"
12669 #include "confdefs.h"
12670 /* Override any gcc2 internal prototype to avoid an error. */
12671 /* We use char because int might match the return type of a gcc2
12672 builtin and then its argument prototype would still apply. */
12679 if { (eval echo configure:12680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12681 eval "ac_cv_lib_$ac_lib_var=yes"
12683 echo "configure: failed program was:" >&5
12684 cat conftest.$ac_ext >&5
12686 eval "ac_cv_lib_$ac_lib_var=no"
12691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12692 echo "$ac_t""yes" 1>&6
12693 with_database_berkdb=yes need_libdb=yes
12695 echo "$ac_t""no" 1>&6
12703 if test "$with_database_berkdb" = "yes"; then
12704 { test "$extra_verbose" = "yes" && cat << EOF
12705 Defining DB_H_PATH = "$db_h_path"
12707 cat >> confdefs.h <<EOF
12708 #define DB_H_PATH "$db_h_path"
12712 { test "$extra_verbose" = "yes" && cat << \EOF
12713 Defining HAVE_BERKELEY_DB
12715 cat >> confdefs.h <<\EOF
12716 #define HAVE_BERKELEY_DB 1
12720 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
12721 else with_database_berkdb=no
12725 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12726 != "no no no"; then
12727 { test "$extra_verbose" = "yes" && cat << \EOF
12728 Defining HAVE_DATABASE
12730 cat >> confdefs.h <<\EOF
12731 #define HAVE_DATABASE 1
12735 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
12736 echo " xemacs will be linked with \"database.o\""
12740 if test "$with_socks" = "yes"; then
12742 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12743 echo "configure:12744: checking for SOCKSinit in -lsocks" >&5
12744 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12746 xe_check_libs=" -lsocks "
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12750 /* Override any gcc2 internal prototype to avoid an error. */
12751 /* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12759 if { (eval echo configure:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12761 eval "ac_cv_lib_$ac_lib_var=yes"
12763 echo "configure: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12766 eval "ac_cv_lib_$ac_lib_var=no"
12771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12772 echo "$ac_t""yes" 1>&6
12773 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12774 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12775 { test "$extra_verbose" = "yes" && cat << EOF
12776 Defining $ac_tr_lib
12778 cat >> confdefs.h <<EOF
12779 #define $ac_tr_lib 1
12783 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
12786 echo "$ac_t""no" 1>&6
12790 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
12791 Defining HAVE_SOCKS
12793 cat >> confdefs.h <<\EOF
12794 #define HAVE_SOCKS 1
12800 if test "$usage_tracking" = "yes"; then
12801 { test "$extra_verbose" = "yes" && cat << \EOF
12802 Defining USAGE_TRACKING
12804 cat >> confdefs.h <<\EOF
12805 #define USAGE_TRACKING 1
12809 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12812 if test "$with_modules" != "no"; then
12813 echo "checking for module support" 1>&6
12814 echo "configure:12815: checking for module support" >&5
12816 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12817 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12818 echo "configure:12819: checking for dlfcn.h" >&5
12820 cat > conftest.$ac_ext <<EOF
12821 #line 12822 "configure"
12822 #include "confdefs.h"
12825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12826 { (eval echo configure:12827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12828 if test -z "$ac_err"; then
12830 eval "ac_cv_header_$ac_safe=yes"
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12836 eval "ac_cv_header_$ac_safe=no"
12839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12840 echo "$ac_t""yes" 1>&6
12843 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12844 echo "configure:12845: checking for dlopen in -ldl" >&5
12845 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12847 xe_check_libs=" -ldl "
12848 cat > conftest.$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12851 /* Override any gcc2 internal prototype to avoid an error. */
12852 /* We use char because int might match the return type of a gcc2
12853 builtin and then its argument prototype would still apply. */
12860 if { (eval echo configure:12861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12862 eval "ac_cv_lib_$ac_lib_var=yes"
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12867 eval "ac_cv_lib_$ac_lib_var=no"
12872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12873 echo "$ac_t""yes" 1>&6
12874 have_dl=yes libdl=dl
12876 echo "$ac_t""no" 1>&6
12878 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12879 echo "configure:12880: checking for dlopen in -lc" >&5
12880 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12882 xe_check_libs=" -lc "
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12886 /* Override any gcc2 internal prototype to avoid an error. */
12887 /* We use char because int might match the return type of a gcc2
12888 builtin and then its argument prototype would still apply. */
12895 if { (eval echo configure:12896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12897 eval "ac_cv_lib_$ac_lib_var=yes"
12899 echo "configure: failed program was:" >&5
12900 cat conftest.$ac_ext >&5
12902 eval "ac_cv_lib_$ac_lib_var=no"
12907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12908 echo "$ac_t""yes" 1>&6
12911 echo "$ac_t""no" 1>&6
12919 echo "$ac_t""no" 1>&6
12922 if test -n "$have_dl"; then
12923 { test "$extra_verbose" = "yes" && cat << \EOF
12924 Defining HAVE_DLOPEN
12926 cat >> confdefs.h <<\EOF
12927 #define HAVE_DLOPEN 1
12933 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12934 echo "configure:12935: checking for shl_load in -ldld" >&5
12935 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12937 xe_check_libs=" -ldld "
12938 cat > conftest.$ac_ext <<EOF
12939 #line 12940 "configure"
12940 #include "confdefs.h"
12941 /* Override any gcc2 internal prototype to avoid an error. */
12942 /* We use char because int might match the return type of a gcc2
12943 builtin and then its argument prototype would still apply. */
12950 if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12952 eval "ac_cv_lib_$ac_lib_var=yes"
12954 echo "configure: failed program was:" >&5
12955 cat conftest.$ac_ext >&5
12957 eval "ac_cv_lib_$ac_lib_var=no"
12962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12963 echo "$ac_t""yes" 1>&6
12964 libdl=dld have_dl=yes;
12965 { test "$extra_verbose" = "yes" && cat << \EOF
12966 Defining HAVE_SHL_LOAD
12968 cat >> confdefs.h <<\EOF
12969 #define HAVE_SHL_LOAD 1
12974 echo "$ac_t""no" 1>&6
12976 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12977 echo "configure:12978: checking for dld_init in -ldld" >&5
12978 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12980 xe_check_libs=" -ldld "
12981 cat > conftest.$ac_ext <<EOF
12982 #line 12983 "configure"
12983 #include "confdefs.h"
12984 /* Override any gcc2 internal prototype to avoid an error. */
12985 /* We use char because int might match the return type of a gcc2
12986 builtin and then its argument prototype would still apply. */
12993 if { (eval echo configure:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12995 eval "ac_cv_lib_$ac_lib_var=yes"
12997 echo "configure: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
13000 eval "ac_cv_lib_$ac_lib_var=no"
13005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13006 echo "$ac_t""yes" 1>&6
13007 libdl=dld have_dl=yes;
13008 { test "$extra_verbose" = "yes" && cat << \EOF
13009 Defining HAVE_DLD_INIT
13011 cat >> confdefs.h <<\EOF
13012 #define HAVE_DLD_INIT 1
13017 echo "$ac_t""no" 1>&6
13026 if test -n "$have_dl"; then
13033 ld_dynamic_link_flags=
13035 xealias=$internal_configuration
13037 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13038 echo "configure:13039: checking how to build dynamic libraries for ${xehost}" >&5
13039 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13042 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13045 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13046 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13047 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13049 case "$xehost_os" in
13051 # AIX sometimes has problems with the GCC collect2 program. For some
13052 # reason, if we set the COLLECT_NAMES environment variable, the problems
13053 # vanish in a puff of smoke.
13054 if test "${COLLECT_NAMES+set}" != set; then
13056 export COLLECT_NAMES
13061 # Now see if the compiler is really GCC.
13062 if test "$GCC" = "yes"; then
13065 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13066 echo "configure:13067: checking checking whether we are using GNU C" >&5
13067 cat > conftest.$ac_ext <<EOF
13068 #line 13069 "configure"
13069 #include "confdefs.h"
13076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13077 egrep "yes" >/dev/null 2>&1; then
13086 echo "$ac_t""${XEGCC}" 1>&6
13089 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13090 echo "configure:13091: checking how to produce PIC code" >&5
13093 can_build_shared=yes
13094 if test "$XEGCC" = yes; then
13097 case "$xehost_os" in
13098 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13099 # PIC is the default for these OSes.
13102 aix3* | aix4* | os2*)
13103 # We can build DLLs from non-PIC.
13106 # FIXME: we need at least 68020 code to build shared libraries, but
13107 # adding the `-m68020' flag to GCC prevents building anything better,
13109 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13116 # PORTME Check for PIC flags for the system compiler.
13117 case "$xehost_os" in
13118 hpux9* | hpux1[0-9]*)
13119 # Is there a better link_static_flag that works with the bundled CC?
13126 # PIC (with -KPIC) is the default.
13130 # We can build DLLs from non-PIC.
13134 # All OSF/1 code is PIC.
13139 dll_cflags='-belf -Kpic'
13173 can_build_shared=no
13178 if test -n "$dll_cflags"; then
13179 echo "$ac_t""${dll_cflags}" 1>&6
13181 # Check to make sure the dll_cflags actually works.
13182 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13183 echo "configure:13184: checking if PIC flag ${dll_cflags} really works" >&5
13184 save_CFLAGS="$CFLAGS"
13185 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13186 cat > conftest.$ac_ext <<EOF
13187 #line 13188 "configure"
13188 #include "confdefs.h"
13194 if { (eval echo configure:13195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13197 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13198 # reports no error. So, we need to grep stderr for (Bundled).
13199 if grep '(Bundled)' config.log >/dev/null; then
13200 echo "$ac_t""no" 1>&6
13201 can_build_shared=no
13204 echo "$ac_t""yes" 1>&6
13207 echo "configure: failed program was:" >&5
13208 cat conftest.$ac_ext >&5
13210 echo "$ac_t""no" 1>&6
13211 can_build_shared=no
13215 CFLAGS="$save_CFLAGS"
13217 echo "$ac_t""none" 1>&6
13220 if test "$can_build_shared" = "yes"; then
13224 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13225 echo "configure:13226: checking if C compiler can produce shared libraries" >&5
13226 if test "$XEGCC" = yes; then
13229 else # Not using GCC
13230 case "$xehost_os" in
13232 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13233 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
13236 freebsd2* | netbsd* | openbsd*)
13238 xcldf="${wl}-Bshareable"
13247 xcldf="${wl}-b ${wl}+s"
13250 irix5* | irix6* | osf3* | osf4*)
13251 xcldf="${wl}-shared"
13255 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
13261 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
13262 xldf="-assert pure-text -Bstatic"
13265 fi # End if if we are using gcc
13267 if test -n "$xcldf"; then
13268 save_LDFLAGS=$LDFLAGS
13270 save_xe_libs=$xe_libs
13271 LDFLAGS="$xcldf $LDFLAGS"
13274 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13275 cat > conftest.$ac_ext <<EOF
13276 #line 13277 "configure"
13277 #include "confdefs.h"
13283 if { (eval echo configure:13284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13287 echo "configure: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13293 LDFLAGS=$save_LDFLAGS
13295 xe_libs=$save_xe_libs
13296 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13300 echo "$ac_t""${cc_produces_so}" 1>&6
13303 if test -z "$LTLD"; then
13305 if test "$XEGCC" = yes; then
13306 # Check if gcc -print-prog-name=ld gives a path.
13307 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13308 echo "configure:13309: checking for ld used by GCC" >&5
13309 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13311 # Accept absolute paths.
13313 if test -z "$LTLD"; then
13315 *gcc-lib*) LTLD="$CC"
13323 # If it fails, then pretend we aren't using GCC.
13327 # If it is relative, then search for the first ld in PATH.
13328 with_gnu_ld=unknown
13332 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
13333 echo "configure:13334: checking for GNU ld" >&5
13336 if test -z "$LTLD"; then
13337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13338 for ac_dir in $PATH; do
13339 test -z "$ac_dir" && ac_dir=.
13340 if test -f "$ac_dir/$ac_prog"; then
13341 LTLD="$ac_dir/$ac_prog"
13342 # Check to see if the program is GNU ld. I'd rather use --version,
13343 # but apparently some GNU ld's only accept -v.
13344 # Break only if it was the GNU/non-GNU ld that we prefer.
13345 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13355 if test -n "$LTLD"; then
13356 echo "$ac_t""${LTLD}" 1>&6
13358 echo "$ac_t""no" 1>&6
13361 if test -z "$LTLD" -a "$cc_produces_so" = no; then
13362 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
13367 ld_dynamic_link_flags=
13369 # Check to see if it really is or isn't GNU ld.
13370 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
13371 echo "configure:13372: checking if the linker is GNU ld" >&5
13372 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13373 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13378 echo "$ac_t""${xe_gnu_ld}" 1>&6
13380 case "$xehost_os" in
13381 amigaos* | sunos4*)
13382 # On these operating systems, we should treat GNU ld like the system ld.
13383 gnu_ld_acts_native=yes
13386 gnu_ld_acts_native=no
13390 if test "$cc_produces_so" = "yes"; then
13393 can_build_shared=yes
13396 # OK - only NOW do we futz about with ld.
13397 # See if the linker supports building shared libraries.
13398 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
13399 echo "configure:13400: checking whether the linker supports shared libraries" >&5
13401 dll_ldflags=$LDFLAGS
13403 can_build_shared=yes
13404 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
13405 # See if GNU ld supports shared libraries.
13406 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13408 dll_ldflags="-shared"
13414 # PORTME fill in a description of your system's linker (not GNU ld)
13415 case "$xehost_os" in
13425 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13426 # support. Future versions do this automatically, but an explicit c++rt0.o
13427 # doesn't break anything, and helps significantly (at the cost of a little
13432 dll_post="/usr/lib/c++rt0.o"
13435 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
13438 dll_ldflags="-Bshareable"
13441 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
13443 dll_ldflags="-shared"
13457 # Tested with NetBSD 1.2 ld
13472 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
13473 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
13476 *gcc*) dll_ldflags="-shared"
13479 *) dll_ldflags="-G"
13485 if test "$XEGCC" = yes; then
13505 can_build_shared=no
13509 echo "$ac_t""${ld_shlibs}" 1>&6
13510 if test "$ld_shlibs" = "no"; then
13511 can_build_shared=no
13513 fi # End of if cc_produces_so = no
13516 if test "$xe_gnu_ld" = yes; then
13517 if test "$ld_shlibs" = yes; then
13518 ld_dynamic_link_flags="${wl}-export-dynamic"
13522 if test -z "$ld_dynamic_link_flags"; then
13523 case "$xehost_os" in
13525 ld_dynamic_link_flags=
13529 ld_dynamic_link_flags=
13533 ld_dynamic_link_flags=
13537 ld_dynamic_link_flags=
13541 ld_dynamic_link_flags=
13545 ld_dynamic_link_flags="${wl}-E"
13549 ld_dynamic_link_flags=
13553 ld_dynamic_link_flags=
13557 ld_dynamic_link_flags=
13561 ld_dynamic_link_flags=
13564 solaris2* | solaris7*)
13565 ld_dynamic_link_flags=
13568 sco3.2v5* | unixware* | sysv5* | sysv4*)
13569 ld_dynamic_link_flags="${wl}-Bexport"
13573 ld_dynamic_link_flags=
13577 ld_dynamic_link_flags=
13581 ld_dynamic_link_flags=
13585 fi # End of if -z ld_dynamic_link_flags
13586 fi # End of if test "$can_build_shared" = "yes"
13597 if test "$can_build_shared" = "yes"; then
13598 { test "$extra_verbose" = "yes" && cat << \EOF
13599 Defining HAVE_SHLIB
13601 cat >> confdefs.h <<\EOF
13602 #define HAVE_SHLIB 1
13606 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
13607 echo " xemacs will be linked with \"sysdll.o emodules.o\""
13609 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13610 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13611 for ac_func in dlerror _dlerror
13613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13614 echo "configure:13615: checking for $ac_func" >&5
13616 cat > conftest.$ac_ext <<EOF
13617 #line 13618 "configure"
13618 #include "confdefs.h"
13619 /* System header to define __stub macros and hopefully few prototypes,
13620 which can conflict with char $ac_func(); below. */
13621 #include <assert.h>
13622 /* Override any gcc2 internal prototype to avoid an error. */
13623 /* We use char because int might match the return type of a gcc2
13624 builtin and then its argument prototype would still apply. */
13629 /* The GNU C library defines this for functions which it implements
13630 to always fail with ENOSYS. Some functions are actually named
13631 something starting with __ and the normal name is an alias. */
13632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13640 if { (eval echo configure:13641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13642 eval "ac_cv_func_$ac_func=yes"
13644 echo "configure: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13647 eval "ac_cv_func_$ac_func=no"
13651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13652 echo "$ac_t""yes" 1>&6
13653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13654 { test "$extra_verbose" = "yes" && cat << EOF
13655 Defining $ac_tr_func
13657 cat >> confdefs.h <<EOF
13658 #define $ac_tr_func 1
13663 echo "$ac_t""no" 1>&6
13669 if test "$with_modules" = "yes"; then
13670 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
13672 echo "configure: warning: "Module support cannot be provided."" 1>&2
13678 cat > conftest.$ac_ext <<EOF
13679 #line 13680 "configure"
13680 #include "confdefs.h"
13681 int main(int c,char *v[]){return 0;}
13683 if { (eval echo configure:13684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13688 echo "configure: failed program was:" >&5
13689 cat conftest.$ac_ext >&5
13693 echo "*** PANIC *** The C compiler can no longer build working executables."
13694 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
13695 echo "*** PANIC *** The most likely reason for this problem is that configure"
13696 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
13697 echo "*** PANIC *** found at run time."
13698 echo "*** PANIC ***"
13699 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
13700 echo "*** PANIC *** On other systems, try telling configure where to find the"
13701 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
13702 echo "*** PANIC ***"
13703 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
13704 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
13705 echo "*** PANIC *** on your system. Don't do that."
13710 if test "$win32_processes" = "yes"; then
13711 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
13712 echo " xemacs will be linked with \"process-nt.o\""
13715 { test "$extra_verbose" = "yes" && cat << \EOF
13716 Defining HAVE_UNIX_PROCESSES
13718 cat >> confdefs.h <<\EOF
13719 #define HAVE_UNIX_PROCESSES 1
13723 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
13724 echo " xemacs will be linked with \"process-unix.o\""
13731 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13736 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13741 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
13742 c_switch_general="$T"
13746 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13747 c_switch_window_system="$T"
13751 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13756 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
13757 ld_switch_general="$T"
13761 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13762 ld_switch_window_system="$T"
13766 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13771 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13772 ld_libs_general="$T"
13776 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
13777 ld_libs_window_system="$T"
13781 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13786 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
13787 internal_makefile_list="Makefile.in"
13788 SUBDIR_MAKEFILES=''
13789 test -d lock || mkdir lock
13790 for dir in $MAKE_SUBDIR; do
13791 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
13792 test -d "$d" || mkdir "$d"; cd "$d"
13794 * ) test -d "$dir" || mkdir "$dir" ;;
13798 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13799 SUBDIR_MAKEFILES="$T"
13803 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13804 internal_makefile_list="$T"
13811 for dir in src/s src/m; do
13812 if test ! -d "$dir" ; then
13813 echo Making symbolic link to "$srcdir/$dir"
13814 ${LN_S} "$srcdir/$dir" "$dir"
13818 if test "$extra_verbose" = "yes"; then
13820 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
13825 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
13826 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
13827 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
13830 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
13831 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
13832 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
13835 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
13836 test "$extra_verbose" = "yes" && echo "creating TAGS"
13838 $srcdir/TAGS,include" > "TAGS"
13841 if test "$__SUNPRO_C" = "yes"; then
13842 test "$extra_verbose" = "yes" && echo "creating .sbinit"
13843 ( echo "# For use with Sun WorkShop's Source browser."
13844 echo "# See sbquery(1) and sbinit(4) for more information"
13845 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13872 *\$* ) eval "PREFIX=$PREFIX" ;;
13880 EXEC_PREFIX=$exec_prefix
13882 case "$EXEC_PREFIX" in
13883 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13894 *\$* ) eval "INFODIR=$INFODIR" ;;
13904 case "$INFOPATH" in
13905 *\$* ) eval "INFOPATH=$INFOPATH" ;;
13913 PACKAGE_PATH=$package_path
13915 case "$PACKAGE_PATH" in
13916 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
13927 *\$* ) eval "LISPDIR=$LISPDIR" ;;
13935 MODULEDIR=$moduledir
13937 case "$MODULEDIR" in
13938 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
13946 SITELISPDIR=$sitelispdir
13948 case "$SITELISPDIR" in
13949 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
13957 SITEMODULEDIR=$sitemoduledir
13959 case "$SITEMODULEDIR" in
13960 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13971 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13982 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13993 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14001 ARCHLIBDIR=$archlibdir
14003 case "$ARCHLIBDIR" in
14004 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14028 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14036 : ${XEMACS_CC:=$CC}
14039 if test "$with_prefix" = "yes"; then
14040 { test "$extra_verbose" = "yes" && cat << \EOF
14041 Defining PREFIX_USER_DEFINED
14043 cat >> confdefs.h <<\EOF
14044 #define PREFIX_USER_DEFINED 1
14050 if test "$with_site_lisp" = "no"; then
14051 { test "$extra_verbose" = "yes" && cat << \EOF
14052 Defining INHIBIT_SITE_LISP
14054 cat >> confdefs.h <<\EOF
14055 #define INHIBIT_SITE_LISP 1
14060 if test "$with_site_modules" = "no"; then
14061 { test "$extra_verbose" = "yes" && cat << \EOF
14062 Defining INHIBIT_SITE_MODULES
14064 cat >> confdefs.h <<\EOF
14065 #define INHIBIT_SITE_MODULES 1
14073 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14074 ac_configure_args="$T"
14076 { test "$extra_verbose" = "yes" && cat << EOF
14077 Defining EMACS_CONFIGURATION = "$configuration"
14079 cat >> confdefs.h <<EOF
14080 #define EMACS_CONFIGURATION "$configuration"
14084 { test "$extra_verbose" = "yes" && cat << EOF
14085 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14087 cat >> confdefs.h <<EOF
14088 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14092 { test "$extra_verbose" = "yes" && cat << EOF
14093 Defining config_machfile = "$machfile"
14095 cat >> confdefs.h <<EOF
14096 #define config_machfile "$machfile"
14100 { test "$extra_verbose" = "yes" && cat << EOF
14101 Defining config_opsysfile = "$opsysfile"
14103 cat >> confdefs.h <<EOF
14104 #define config_opsysfile "$opsysfile"
14111 { test "$extra_verbose" = "yes" && cat << EOF
14112 Defining LD_SWITCH_X_SITE = $null_string
14114 cat >> confdefs.h <<EOF
14115 #define LD_SWITCH_X_SITE $null_string
14119 { test "$extra_verbose" = "yes" && cat << EOF
14120 Defining LD_SWITCH_X_SITE_AUX = $null_string
14122 cat >> confdefs.h <<EOF
14123 #define LD_SWITCH_X_SITE_AUX $null_string
14127 { test "$extra_verbose" = "yes" && cat << EOF
14128 Defining C_SWITCH_X_SITE = $null_string
14130 cat >> confdefs.h <<EOF
14131 #define C_SWITCH_X_SITE $null_string
14135 { test "$extra_verbose" = "yes" && cat << EOF
14136 Defining LD_SWITCH_SITE = $null_string
14138 cat >> confdefs.h <<EOF
14139 #define LD_SWITCH_SITE $null_string
14143 { test "$extra_verbose" = "yes" && cat << EOF
14144 Defining C_SWITCH_SITE = $null_string
14146 cat >> confdefs.h <<EOF
14147 #define C_SWITCH_SITE $null_string
14153 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14154 Defining GNU_MALLOC
14156 cat >> confdefs.h <<\EOF
14157 #define GNU_MALLOC 1
14161 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14162 Defining USE_SYSTEM_MALLOC
14164 cat >> confdefs.h <<\EOF
14165 #define USE_SYSTEM_MALLOC 1
14169 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14170 Defining USE_DEBUG_MALLOC
14172 cat >> confdefs.h <<\EOF
14173 #define USE_DEBUG_MALLOC 1
14177 { test "$extra_verbose" = "yes" && cat << \EOF
14178 Defining USE_SYSTEM_MALLOC
14180 cat >> confdefs.h <<\EOF
14181 #define USE_SYSTEM_MALLOC 1
14186 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14189 cat >> confdefs.h <<\EOF
14194 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14197 cat >> confdefs.h <<\EOF
14202 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14203 Defining EXTERNAL_WIDGET
14205 cat >> confdefs.h <<\EOF
14206 #define EXTERNAL_WIDGET 1
14210 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14211 Defining NO_DOC_FILE
14213 cat >> confdefs.h <<\EOF
14214 #define NO_DOC_FILE 1
14218 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14221 cat >> confdefs.h <<\EOF
14226 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14229 cat >> confdefs.h <<\EOF
14234 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14235 Defining MAIL_USE_POP
14237 cat >> confdefs.h <<\EOF
14238 #define MAIL_USE_POP 1
14242 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14245 cat >> confdefs.h <<\EOF
14250 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14253 cat >> confdefs.h <<\EOF
14258 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14259 Defining USE_UNION_TYPE
14261 cat >> confdefs.h <<\EOF
14262 #define USE_UNION_TYPE 1
14266 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14269 cat >> confdefs.h <<\EOF
14277 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
14279 echo "uname -a: `uname -a`"
14282 echo "$0 $quoted_arguments"
14285 if test ! -z ${emacs_beta_version} ; then
14286 if test -z "${emacs_is_beta}" ; then
14287 xemacs_betaname=".${emacs_beta_version}"
14289 xemacs_betaname="-b${emacs_beta_version}"
14298 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
14300 Where should the build process find the source code? $srcdir
14301 What installation prefix should install use? $prefix
14302 What operating system and machine description files should XEmacs use?
14303 \`$opsysfile' and \`$machfile'
14304 What compiler should XEmacs be built with? $CC $CFLAGS
14305 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14306 Should XEmacs use the relocating allocator for buffers? $rel_alloc
14307 What window system should XEmacs use? ${window_system}"
14308 if test "$with_x11" = "yes"; then
14309 echo " Where do we find X Windows header files? $x_includes"
14310 echo " Where do we find X Windows libraries? $x_libraries"
14312 if test -n "$site_includes"; then
14313 echo " Additional header files: $site_includes"
14315 if test -n "$site_libraries"; then
14316 echo " Additional libraries: $site_libraries"
14318 if test -n "$site_prefixes"; then
14319 echo " Additional prefixes: $site_prefixes"
14321 if test -n "$runpath"; then
14322 echo " Runtime library search path: $runpath"
14324 if test "$have_xaw" = "yes"; then
14325 echo " Athena library to link: $athena_lib"
14326 echo " Athena header include path: $athena_h_path"
14328 test "$with_dnet" = yes && echo " Compiling in support for DNET."
14329 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
14330 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
14331 if test "$with_xmu" != yes -a "$with_x11" = yes; then
14332 echo " No Xmu; substituting equivalent routines."
14335 if test "$with_xpm" = yes; then
14336 echo " Compiling in support for XPM images."
14337 elif test "$with_x11" = yes; then
14338 echo " --------------------------------------------------------------------"
14339 echo " WARNING: Compiling without XPM support."
14340 if test "$xpm_problem" != ""; then
14341 echo " Reason: $xpm_problem"
14343 echo " WARNING: You should strongly consider installing XPM."
14344 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
14345 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14346 echo " --------------------------------------------------------------------"
14348 if test "$with_png" = yes; then
14349 echo " Compiling in support for PNG image handling."
14350 elif test "$window_system" != "none"; then
14351 echo " --------------------------------------------------------------------"
14352 echo " WARNING: Compiling without PNG image support."
14353 if test "$png_problem" != ""; then
14354 echo " Reason: $png_problem"
14356 echo " WARNING: You should strongly consider installing the PNG libraries."
14357 echo " WARNING: Otherwise certain images and glyphs may not display."
14358 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14359 echo " --------------------------------------------------------------------"
14361 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
14362 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
14363 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
14364 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
14366 test "$with_native_sound" = yes && echo " Compiling in native sound support."
14367 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
14368 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
14369 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
14371 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
14372 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
14373 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
14375 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
14377 if test "$with_postgresql" = yes; then
14378 echo " Compiling in support for PostgreSQL."
14379 if test "$with_postgresqlv7" = yes; then
14380 echo " Using PostgreSQL V7 bindings."
14383 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
14384 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
14386 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
14387 test "$with_file_coding" = yes && echo " Compiling in File coding support."
14388 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
14389 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
14390 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
14391 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
14392 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
14393 if test "$with_wnn" = yes; then
14394 echo " Compiling in support for the WNN input method on Mule."
14395 test "$with_wnn6" = yes && echo " Using WNN version 6."
14397 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
14399 test "$with_cde" = yes && echo " Compiling in support for CDE."
14400 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
14401 test "$with_offix" = yes && echo " Compiling in support for OffiX."
14402 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
14403 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
14404 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
14405 case "$with_menubars" in
14406 lucid ) echo " Using Lucid menubars." ;;
14407 motif ) echo " Using Motif menubars."
14408 echo " *WARNING* The Motif menubar implementation is currently buggy."
14409 echo " We recommend using the Lucid menubar instead."
14410 echo " Re-run configure with --with-menubars='lucid'." ;;
14411 msw ) echo " Using MS-Windows menubars." ;;
14413 case "$with_scrollbars" in
14414 lucid ) echo " Using Lucid scrollbars." ;;
14415 motif ) echo " Using Motif scrollbars." ;;
14416 athena ) echo " Using Athena scrollbars." ;;
14417 msw ) echo " Using MS-Windows scrollbars." ;;
14419 case "$with_widgets" in
14420 motif ) echo " Using Motif native widgets." ;;
14421 athena ) echo " Using Athena native widgets." ;;
14422 msw ) echo " Using MS-Windows native widgets." ;;
14424 case "$with_dialogs" in
14426 echo " Using Motif dialog boxes."
14427 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
14428 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
14429 echo " We recommend using the Athena dialog boxes instead."
14430 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
14431 echo " Read the PROBLEMS file for more information."
14434 athena ) echo " Using Athena dialog boxes." ;;
14435 msw ) echo " Using MS-Windows dialog boxes." ;;
14437 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
14438 test "$with_clash_detection" = yes && \
14439 echo " Clash detection will use \"$lockdir\" for locking files."
14440 echo " movemail will use \"$mail_locking\" for locking mail spool files."
14441 test "$with_pop" = yes && echo " Using POP for mail access."
14442 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
14443 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
14444 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
14445 test "$pdump" = yes && echo " Using the new portable dumper."
14446 test "$debug" = yes && echo " Compiling in extra code for debugging."
14447 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
14448 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
14449 != "no no no no no"; then
14450 echo " WARNING: ---------------------------------------------------------"
14451 echo " WARNING: Compiling in support for runtime error checking."
14452 echo " WARNING: XEmacs will run noticeably more slowly as a result."
14453 echo " WARNING: Error checking is on by default for XEmacs beta releases."
14454 echo " WARNING: ---------------------------------------------------------"
14457 ) | tee -a Installation
14461 # Remove any trailing slashes in these variables.
14462 test -n "$prefix" &&
14463 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14464 test -n "$exec_prefix" &&
14465 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14468 for file in $internal_makefile_list; do
14469 test "$file" = src/Makefile.in && \
14470 file="src/Makefile.in:src/Makefile.in.in:src/depend"
14471 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
14473 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
14474 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
14478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14480 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14481 # Let make expand exec_prefix.
14482 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14484 # Any assignment to VPATH causes Sun make to only execute
14485 # the first set of double-colon rules, so remove it if not needed.
14486 # If there is a colon in the path, we need to keep it.
14487 if test "x$srcdir" = x.; then
14488 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14491 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14493 DEFS=-DHAVE_CONFIG_H
14495 # Without the "./", some shells look in PATH for config.status.
14496 : ${CONFIG_STATUS=./config.status}
14498 echo creating $CONFIG_STATUS
14499 rm -f $CONFIG_STATUS
14500 cat > $CONFIG_STATUS <<EOF
14502 # Generated automatically by configure.
14503 # Run this file to recreate the current configuration.
14504 # This directory was configured as follows,
14505 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14507 # $0 $ac_configure_args
14509 # Compiler output produced by configure, useful for debugging
14510 # configure, is in ./config.log if it exists.
14512 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14515 case "\$ac_option" in
14516 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14517 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14518 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14519 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14520 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14522 -help | --help | --hel | --he | --h)
14523 echo "\$ac_cs_usage"; exit 0 ;;
14524 *) echo "\$ac_cs_usage"; exit 1 ;;
14528 ac_given_srcdir=$srcdir
14529 ac_given_INSTALL="$INSTALL"
14531 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14533 cat >> $CONFIG_STATUS <<EOF
14535 # Protect against being on the right side of a sed subst in config.status.
14536 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14537 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14541 s%@CFLAGS@%$CFLAGS%g
14542 s%@CPPFLAGS@%$CPPFLAGS%g
14543 s%@CXXFLAGS@%$CXXFLAGS%g
14544 s%@FFLAGS@%$FFLAGS%g
14546 s%@LDFLAGS@%$LDFLAGS%g
14548 s%@exec_prefix@%$exec_prefix%g
14549 s%@prefix@%$prefix%g
14550 s%@program_transform_name@%$program_transform_name%g
14551 s%@bindir@%$bindir%g
14552 s%@sbindir@%$sbindir%g
14553 s%@libexecdir@%$libexecdir%g
14554 s%@datadir@%$datadir%g
14555 s%@sysconfdir@%$sysconfdir%g
14556 s%@sharedstatedir@%$sharedstatedir%g
14557 s%@localstatedir@%$localstatedir%g
14558 s%@libdir@%$libdir%g
14559 s%@includedir@%$includedir%g
14560 s%@oldincludedir@%$oldincludedir%g
14561 s%@infodir@%$infodir%g
14562 s%@mandir@%$mandir%g
14564 s%@blddir@%$blddir%g
14567 s%@start_flags@%$start_flags%g
14568 s%@ld_switch_shared@%$ld_switch_shared%g
14569 s%@start_files@%$start_files%g
14571 s%@lib_gcc@%$lib_gcc%g
14572 s%@RANLIB@%$RANLIB%g
14573 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14574 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14575 s%@INSTALL_DATA@%$INSTALL_DATA%g
14577 s%@SET_MAKE@%$SET_MAKE%g
14578 s%@X_CFLAGS@%$X_CFLAGS%g
14579 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14580 s%@X_LIBS@%$X_LIBS%g
14581 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
14582 s%@install_pp@%$install_pp%g
14583 s%@libs_xauth@%$libs_xauth%g
14584 s%@dnd_objs@%$dnd_objs%g
14585 s%@lwlib_objs@%$lwlib_objs%g
14586 s%@ALLOCA@%$ALLOCA%g
14587 s%@have_esd_config@%$have_esd_config%g
14588 s%@dll_ld@%$dll_ld%g
14589 s%@dll_cflags@%$dll_cflags%g
14590 s%@dll_ldflags@%$dll_ldflags%g
14591 s%@dll_post@%$dll_post%g
14592 s%@dll_ldo@%$dll_ldo%g
14593 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
14594 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
14595 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
14596 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
14597 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
14598 s%@PROGNAME@%$PROGNAME%g
14599 s%@version@%$version%g
14600 s%@configuration@%$configuration%g
14601 s%@canonical@%$canonical%g
14602 s%@inststaticdir@%$inststaticdir%g
14603 s%@instvardir@%$instvardir%g
14604 s%@srcdir@%$srcdir%g
14605 s%@pkgdir@%$pkgdir%g
14606 s%@statedir@%$statedir%g
14607 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
14608 s%@PREFIX@%$PREFIX%g
14609 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
14610 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
14611 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
14612 s%@INFODIR@%$INFODIR%g
14613 s%@infopath@%$infopath%g
14614 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
14615 s%@INFOPATH@%$INFOPATH%g
14616 s%@package_path@%$package_path%g
14617 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
14618 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
14619 s%@lispdir@%$lispdir%g
14620 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
14621 s%@LISPDIR@%$LISPDIR%g
14622 s%@moduledir@%$moduledir%g
14623 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
14624 s%@MODULEDIR@%$MODULEDIR%g
14625 s%@sitelispdir@%$sitelispdir%g
14626 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
14627 s%@SITELISPDIR@%$SITELISPDIR%g
14628 s%@sitemoduledir@%$sitemoduledir%g
14629 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
14630 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
14631 s%@etcdir@%$etcdir%g
14632 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
14633 s%@ETCDIR@%$ETCDIR%g
14634 s%@lockdir@%$lockdir%g
14635 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
14636 s%@LOCKDIR@%$LOCKDIR%g
14637 s%@docdir@%$docdir%g
14638 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
14639 s%@DOCDIR@%$DOCDIR%g
14640 s%@archlibdir@%$archlibdir%g
14641 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
14642 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
14643 s%@bitmapdir@%$bitmapdir%g
14644 s%@extra_objs@%$extra_objs%g
14645 s%@machfile@%$machfile%g
14646 s%@opsysfile@%$opsysfile%g
14647 s%@c_switch_general@%$c_switch_general%g
14648 s%@c_switch_window_system@%$c_switch_window_system%g
14649 s%@c_switch_all@%$c_switch_all%g
14650 s%@ld_switch_general@%$ld_switch_general%g
14651 s%@ld_switch_window_system@%$ld_switch_window_system%g
14652 s%@ld_switch_all@%$ld_switch_all%g
14653 s%@ld_libs_general@%$ld_libs_general%g
14654 s%@ld_libs_window_system@%$ld_libs_window_system%g
14655 s%@ld_libs_all@%$ld_libs_all%g
14656 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
14657 s%@native_sound_lib@%$native_sound_lib%g
14658 s%@sound_cflags@%$sound_cflags%g
14659 s%@dynodump_arch@%$dynodump_arch%g
14660 s%@XEMACS_CC@%$XEMACS_CC%g
14661 s%@internal_makefile_list@%$internal_makefile_list%g
14666 cat >> $CONFIG_STATUS <<\EOF
14668 # Split the substitutions into bite-sized pieces for seds with
14669 # small command number limits, like on Digital OSF/1 and HP-UX.
14670 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14671 ac_file=1 # Number of current file.
14672 ac_beg=1 # First line for current file.
14673 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14676 while $ac_more_lines; do
14677 if test $ac_beg -gt 1; then
14678 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14680 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14682 if test ! -s conftest.s$ac_file; then
14683 ac_more_lines=false
14684 rm -f conftest.s$ac_file
14686 if test -z "$ac_sed_cmds"; then
14687 ac_sed_cmds="sed -f conftest.s$ac_file"
14689 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14691 ac_file=`expr $ac_file + 1`
14693 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14696 if test -z "$ac_sed_cmds"; then
14701 cat >> $CONFIG_STATUS <<EOF
14703 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
14705 cat >> $CONFIG_STATUS <<\EOF
14706 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14709 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14710 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14711 *) ac_file_in="${ac_file}.in" ;;
14714 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14716 # Remove last slash and all that follows it. Not all systems have dirname.
14717 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14718 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14719 # The file is in a subdirectory.
14720 test ! -d "$ac_dir" && mkdir "$ac_dir"
14721 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14722 # A "../" for each directory in $ac_dir_suffix.
14723 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14725 ac_dir_suffix= ac_dots=
14728 case "$ac_given_srcdir" in
14730 if test -z "$ac_dots"; then top_srcdir=.
14731 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14732 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14733 *) # Relative path.
14734 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14735 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14738 case "$ac_given_INSTALL" in
14739 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14740 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14743 echo creating "$ac_file"
14745 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14747 *Makefile*) ac_comsub="1i\\
14748 # $configure_input" ;;
14752 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14754 s%@configure_input@%$configure_input%g
14755 s%@srcdir@%$srcdir%g
14756 s%@top_srcdir@%$top_srcdir%g
14757 s%@INSTALL@%$INSTALL%g
14758 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14762 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14763 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14765 # ac_d sets the value in "#define NAME VALUE" lines.
14766 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14767 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14770 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14771 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14772 ac_uB='\([ ]\)%\1#\2define\3'
14775 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14776 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14777 ac_eB='$%\1#\2define\3'
14781 if test "${CONFIG_HEADERS+set}" != set; then
14783 cat >> $CONFIG_STATUS <<EOF
14784 CONFIG_HEADERS="src/config.h lwlib/config.h"
14786 cat >> $CONFIG_STATUS <<\EOF
14788 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14791 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14792 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14793 *) ac_file_in="${ac_file}.in" ;;
14796 echo creating $ac_file
14798 rm -f conftest.frag conftest.in conftest.out
14799 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14800 cat $ac_file_inputs > conftest.in
14804 # Transform confdefs.h into a sed script conftest.vals that substitutes
14805 # the proper values into config.h.in to produce config.h. And first:
14806 # Protect against being on the right side of a sed subst in config.status.
14807 # Protect against being in an unquoted here document in config.status.
14808 rm -f conftest.vals
14809 cat > conftest.hdr <<\EOF
14812 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14816 sed -n -f conftest.hdr confdefs.h > conftest.vals
14819 # This sed command replaces #undef with comments. This is necessary, for
14820 # example, in the case of _POSIX_SOURCE, which is predefined and required
14821 # on some systems where configure will not decide to define it.
14822 cat >> conftest.vals <<\EOF
14823 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14826 # Break up conftest.vals because some shells have a limit on
14827 # the size of here documents, and old seds have small limits too.
14829 rm -f conftest.tail
14832 ac_lines=`grep -c . conftest.vals`
14833 # grep -c gives empty output for an empty file on some AIX systems.
14834 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14835 # Write a limited-size here document to conftest.frag.
14836 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14837 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14839 sed -f conftest.frag conftest.in > conftest.out
14841 mv conftest.out conftest.in
14842 ' >> $CONFIG_STATUS
14843 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14844 rm -f conftest.vals
14845 mv conftest.tail conftest.vals
14847 rm -f conftest.vals
14849 cat >> $CONFIG_STATUS <<\EOF
14850 rm -f conftest.frag conftest.h
14851 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14852 cat conftest.in >> conftest.h
14854 if cmp -s $ac_file conftest.h 2>/dev/null; then
14855 echo "$ac_file is unchanged"
14858 # Remove last slash and all that follows it. Not all systems have dirname.
14859 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14860 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14861 # The file is in a subdirectory.
14862 test ! -d "$ac_dir" && mkdir "$ac_dir"
14865 mv conftest.h $ac_file
14870 cat >> $CONFIG_STATUS <<EOF
14872 top_srcdir="$srcdir"
14873 MAKE_SUBDIR="$MAKE_SUBDIR"
14876 cat >> $CONFIG_STATUS <<\EOF
14877 for dir in . $MAKE_SUBDIR; do
14882 sed -e '/^# Generated/d' \
14883 -e 's%/\*\*/#.*%%' \
14898 echo creating $dir/Makefile
14899 $CPP -I. -I${top_srcdir}/src junk.c \
14900 | sed -e 's/^\#.*//' \
14901 -e 's/^[ ][ ]*$//'\
14903 | sed -n -e '/^..*$/p' \
14909 chmod 444 Makefile.new
14910 mv -f Makefile.new Makefile
14912 echo creating $dir/GNUmakefile
14913 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
14914 | sed -e 's/^\#.*//' \
14915 -e 's/^[ ][ ]*$//'\
14917 | sed -n -e '/^..*$/p' \
14923 chmod 444 Makefile.new
14924 mv -f Makefile.new GNUmakefile
14930 sed < config.status >> lib-src/config.values \
14931 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
14932 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
14933 -e 's/^\([^ ]*\) $/\1 ""/' \
14939 chmod +x $CONFIG_STATUS
14940 rm -fr confdefs* $ac_clean_files
14941 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1