3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
95 SHELL=${CONFIG_SHELL-/bin/sh}
98 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
100 # File descriptor usage:
103 # 2 errors and warnings
104 # 3 some systems may open it to /dev/tty
105 # 4 used on the Kubota Titan
106 # 6 checking for... messages and results
107 # 5 compiler messages saved in config.log
108 if test "$silent" = yes; then
116 This file contains any messages produced by compilers while
117 running configure, to aid debugging if configure makes a mistake.
120 # Strip out --no-create and --no-recursion so they do not pile up.
121 # Also quote any args containing shell metacharacters.
126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
127 | --no-cr | --no-c) ;;
128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
131 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
132 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
137 # Only set these to C if already set. These must not be set unconditionally
138 # because not all systems understand e.g. LANG=C (notably SCO).
139 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
140 # Non-C LC_CTYPE values break the ctype check.
141 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
142 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
143 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
144 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
147 rm -rf conftest* confdefs.h
148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
151 # A filename unique to this package, relative to the directory that
152 # configure is in, which we can look for to find out if srcdir is correct.
153 ac_unique_file=src/lisp.h
155 # Find the source files, if location was not specified.
156 if test -z "$srcdir"; then
157 ac_srcdir_defaulted=yes
158 # Try the directory containing this script, then its parent.
160 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
161 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
163 if test ! -r $srcdir/$ac_unique_file; then
167 ac_srcdir_defaulted=no
169 if test ! -r $srcdir/$ac_unique_file; then
170 if test "$ac_srcdir_defaulted" = yes; then
171 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
173 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
176 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
178 # Prefer explicitly selected file to automatically selected ones.
179 if test -z "$CONFIG_SITE"; then
180 if test "x$prefix" != xNONE; then
181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
186 for ac_site_file in $CONFIG_SITE; do
187 if test -r "$ac_site_file"; then
188 echo "loading site script $ac_site_file"
195 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
196 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
197 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
198 ac_cpp='$CPP '"$xe_cppflags"
199 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
200 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
205 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
206 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
207 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
214 ac_n= ac_c='\c' ac_t=
218 progname="`echo $0 | sed 's:^\./\./:\./:'`"
221 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
222 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
225 exec_prefix='${prefix}'
226 bindir='${exec_prefix}/bin'
227 datadir='${prefix}/lib'
228 statedir='${prefix}/lib'
229 libdir='${exec_prefix}/lib'
230 mandir='${prefix}/man/man1'
231 inststaticdir='${PROGNAME}'
232 instvardir='${PROGNAME}-${version}'
233 infodir='${datadir}/${instvardir}/info'
236 lispdir='${datadir}/${instvardir}/lisp'
237 moduledir='${datadir}/${instvardir}/${configuration}/modules'
238 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
239 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
240 pkgdir='${datadir}/${instvardir}/lisp'
242 etcdir='${datadir}/${instvardir}/etc'
243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
247 with_site_modules='yes'
253 cpp='' cppflags='' libs='' ldflags=''
258 with_system_malloc='default'
259 with_dlmalloc='default'
274 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
279 | --no-cr | --no-c) ;;
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
283 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
284 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
288 while test $# != 0; do
291 --no-create|--no-recursion) ;;
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
296 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
300 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
301 val="yes" valomitted=yes
306 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
308 case "${valomitted}-${opt}" in yes-without_* )
309 opt=`echo $opt | sed 's/without/with/'`
310 valomitted="no" val="no" ;;
317 with_site_modules | \
367 memory_usage_stats | \
368 with_clash_detection | \
372 y | ye | yes ) val=yes ;;
374 * ) (echo "$progname: Usage error:"
375 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
376 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
378 eval "$opt=\"$val\"" ;;
396 site_runtime_libraries )
397 if test "$valomitted" = "yes" ; then
398 if test "$#" = 0 ; then
399 (echo "$progname: Usage error:"
400 echo " " "The \`--$optname' option requires a value."
401 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
410 with_debug_malloc | use_debug_malloc | \
411 with_system_malloc | use_system_malloc )
413 y | ye | yes ) val=yes ;;
415 d | de | def | defa | defau | defaul | default ) val=default ;;
416 * ) (echo "$progname: Usage error:"
417 echo " " "The \`--$optname' option requires one of these values:
418 \`yes', \`no', or \`default'."
419 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
421 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
426 with_database_berkdb=no
428 with_database_gdbm=no
429 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
432 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
433 d | db | dbm ) with_database_dbm=yes ;;
434 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
435 * ) (echo "$progname: Usage error:"
436 echo " " "The \`--$optname' option value
437 must be either \`no' or a comma-separated list
438 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
439 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
442 if test "$with_database_dbm" = "yes" -a \
443 "$with_database_gdbm" = "yes"; then
444 (echo "$progname: Usage error:"
445 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
446 with the \`--$optname' option."
447 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
452 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
454 n | no | non | none ) new_sdefault=no ;;
455 a | al | all | both ) new_sdefault=yes ;;
457 native ) with_native_sound=yes ;;
458 nonative ) with_native_sound=no ;;
460 nas ) with_nas_sound=yes ;;
461 nonas ) with_nas_sound=no ;;
463 esd ) with_esd_sound=yes ;;
464 noesd ) with_esd_sound=no ;;
466 * ) bogus_sound=yes ;;
468 if test "$bogus_sound" -o \
469 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
470 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
471 (echo "$progname: Usage error:"
472 echo " " "Valid types for the \`--$optname' option are:
474 The default is to autodetect all sound support."
475 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
476 elif test -n "$new_sdefault" ; then
477 with_native_sound=$new_sdefault
478 with_nas_sound=$new_sdefault
479 with_esd_sound=$new_sdefault
480 new_sdefault= # reset this
488 xa | xaw ) val=xaw ;;
489 3 | 3d | xaw3d ) val=3d ;;
490 ne | nex | next | naxtaw) val=next ;;
491 9 | 95 | xaw95 ) val=95 ;;
492 xp | xpm | xawxpm ) val=xpm ;;
493 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values:
495 \`xaw', \`3d', \`next', \`95', or \`xpm'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
503 y | ye | yes ) val=yes ;;
504 n | no | non | none ) val=no ;;
505 x | xl | xli | xlib ) val=xlib ;;
506 m | mo | mot | moti | motif ) val=motif ;;
507 * ) (echo "$progname: Usage error:"
508 echo " " "The \`--$optname' option must have one of these values:
509 \`motif', \`xlib', \`yes', or \`no'."
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 file | dot ) val=file ;;
520 locking ) val=locking ;;
521 * ) (echo "$progname: Usage error:"
522 echo " " "The \`--$optname' option must have one of these values:
523 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
531 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
533 n | no | non | none ) new_default=no ;;
534 a | al | all ) new_default=yes ;;
536 extents ) error_check_extents=yes ;;
537 noextents ) error_check_extents=no ;;
539 typecheck ) error_check_typecheck=yes ;;
540 notypecheck ) error_check_typecheck=no ;;
542 bufpos ) error_check_bufpos=yes ;;
543 nobufpos ) error_check_bufpos=no ;;
545 gc ) error_check_gc=yes ;;
546 nogc ) error_check_gc=no ;;
548 malloc ) error_check_malloc=yes ;;
549 nomalloc ) error_check_malloc=no ;;
551 byte_code ) error_check_byte_code=yes ;;
552 nobyte_code ) error_check_byte_code=no ;;
554 glyphs ) error_check_glyphs=yes ;;
555 noglyphs ) error_check_glyphs=no ;;
557 * ) bogus_error_check=yes ;;
559 if test "$bogus_error_check" -o \
560 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
561 if test "$error_check_default" = yes ; then
562 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
564 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
566 (echo "$progname: Usage error:"
567 echo " " "Valid types for the \`--$optname' option are:
569 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
570 elif test -n "$new_default" ; then
571 error_check_extents=$new_default
572 error_check_typecheck=$new_default
573 error_check_bufpos=$new_default
574 error_check_gc=$new_default
575 error_check_malloc=$new_default
576 error_check_byte_code=$new_default
577 error_check_glyphs=$new_default
578 new_default= # reset this
585 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
586 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
587 archlibdir | docdir | package_path )
588 if test "$valomitted" = "yes"; then
589 if test "$#" = 0; then
590 (echo "$progname: Usage error:"
591 echo " " "The \`--$optname' option requires a value."
592 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
599 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
600 Defining EXEC_PREFIX_USER_DEFINED
602 cat >> confdefs.h <<\EOF
603 #define EXEC_PREFIX_USER_DEFINED 1
607 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
608 Defining LISPDIR_USER_DEFINED
610 cat >> confdefs.h <<\EOF
611 #define LISPDIR_USER_DEFINED 1
615 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
616 Defining SITELISPDIR_USER_DEFINED
618 cat >> confdefs.h <<\EOF
619 #define SITELISPDIR_USER_DEFINED 1
623 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
624 Defining MODULEDIR_USER_DEFINED
626 cat >> confdefs.h <<\EOF
627 #define MODULEDIR_USER_DEFINED 1
631 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
632 Defining ETCDIR_USER_DEFINED
634 cat >> confdefs.h <<\EOF
635 #define ETCDIR_USER_DEFINED 1
639 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
640 Defining INFODIR_USER_DEFINED
642 cat >> confdefs.h <<\EOF
643 #define INFODIR_USER_DEFINED 1
647 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
648 Defining INFOPATH_USER_DEFINED
650 cat >> confdefs.h <<\EOF
651 #define INFOPATH_USER_DEFINED 1
655 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
656 Defining PACKAGE_PATH_USER_DEFINED
658 cat >> confdefs.h <<\EOF
659 #define PACKAGE_PATH_USER_DEFINED 1
664 { test "$extra_verbose" = "yes" && cat << \EOF
665 Defining INFODIR_USER_DEFINED
667 cat >> confdefs.h <<\EOF
668 #define INFODIR_USER_DEFINED 1
672 { test "$extra_verbose" = "yes" && cat << \EOF
673 Defining LISPDIR_USER_DEFINED
675 cat >> confdefs.h <<\EOF
676 #define LISPDIR_USER_DEFINED 1
680 { test "$extra_verbose" = "yes" && cat << \EOF
681 Defining MODULEDIR_USER_DEFINED
683 cat >> confdefs.h <<\EOF
684 #define MODULEDIR_USER_DEFINED 1
688 { test "$extra_verbose" = "yes" && cat << \EOF
689 Defining ETCDIR_USER_DEFINED
691 cat >> confdefs.h <<\EOF
692 #define ETCDIR_USER_DEFINED 1
696 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
697 Defining DOCDIR_USER_DEFINED
699 cat >> confdefs.h <<\EOF
700 #define DOCDIR_USER_DEFINED 1
704 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
705 Defining ARCHLIBDIR_USER_DEFINED
707 cat >> confdefs.h <<\EOF
708 #define ARCHLIBDIR_USER_DEFINED 1
717 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
720 "with_scrollbars" | \
724 l | lu | luc | luci | lucid ) val=lucid ;;
725 m | mo | mot | moti | motif ) val=motif ;;
726 a | at | ath | athe | athen | athena ) val=athena ;;
727 n | no | non | none ) val=no ;;
728 y | ye | yes ) val=yes ;;
729 * ) (echo "$progname: Usage error:"
730 echo " " "The \`--$optname' option must have one of these values:
731 \`lucid', \`motif', \`athena', \`yes', or \`no'."
732 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
737 "use_minimal_tagbits" | \
738 "use_indexed_lrecord_implementation" | \
740 "const_is_losing" | \
742 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
745 * ) (echo "$progname: Usage error:"
746 echo " " "Unrecognized option: $arg"
747 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
752 *-*-*) configuration="$arg" ;;
754 *) (echo "$progname: Usage error:"
755 echo " " "Unrecognized argument: $arg"
756 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
762 test -n "$cpp" && CPP="$cpp"
763 test -n "$cppflags" && CPPFLAGS="$cppflags"
764 test -n "$libs" && LIBS="$libs"
765 test -n "$ldflags" && LDFLAGS="$ldflags"
767 eval set x "$quoted_arguments"; shift
769 test "$extra_verbose" = "yes" && verbose=yes
771 test -n "$with_x" && with_x11="$with_x"
773 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
774 test "$with_system_malloc" = "default" && with_system_malloc=yes
779 if test "$with_cde $with_tooltalk" = "yes no"; then
780 (echo "$progname: Usage error:"
781 echo " " "--with-cde requires --with-tooltalk"
782 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
783 elif test "$with_tooltalk" = "no" ; then with_cde=no
784 elif test "$with_cde" = "yes"; then with_tooltalk=yes
791 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
792 if test -f "$dir/src/lisp.h" -a \
793 -f "$dir/lisp/version.el" ; then
798 if test -z "$srcdir" ; then
799 (echo "$progname: Usage error:"
800 echo " " "Neither the current directory nor its parent seem to
801 contain the XEmacs sources. If you do not want to build XEmacs in its
802 source tree, you should run \`$progname' in the directory in which
803 you wish to build XEmacs, using the \`--srcdir' option to say where the
804 sources may be found."
805 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
810 if test ! -f "$srcdir/src/lisp.h" -o \
811 ! -f "$srcdir/lisp/version.el" ; then
812 (echo "$progname: Usage error:"
813 echo " " "The directory specified with the \`--srcdir' option,
814 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
815 either run the \`$progname' script at the top of the XEmacs source
816 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
817 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
822 if test -z "$configuration"; then
823 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
824 if test -z "$configuration"; then
825 (echo "$progname: Usage error:"
826 echo " " "XEmacs has not been ported to this host type.
827 Try explicitly specifying the CONFIGURATION when rerunning configure."
828 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
832 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
833 echo "configure:834: checking whether ln -s works" >&5
836 if ln -s X conftestdata 2>/dev/null
839 ac_cv_prog_LN_S="ln -s"
843 LN_S="$ac_cv_prog_LN_S"
844 if test "$ac_cv_prog_LN_S" = "ln -s"; then
845 echo "$ac_t""yes" 1>&6
847 echo "$ac_t""no" 1>&6
851 for dir in lisp etc man info tests; do
852 if test ! -d "$dir" ; then
853 echo Making symbolic link to "$srcdir/$dir"
854 ${LN_S} "$srcdir/$dir" "$dir"
859 absolute_pwd="`pwd`";
860 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
862 else blddir="$absolute_pwd"; if test -d "/net"; then
863 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
864 blddir=`echo "$blddir" | \
865 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
872 . ) srcdir="$blddir" ;;
873 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
874 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
875 srcdir=`echo "$srcdir" | \
876 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
880 if test `pwd` != `sh -c cd $srcdir && pwd` \
881 && test -f "$srcdir/src/config.h"; then
882 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
883 echo " as a build directory right now; it has been configured in its own"
884 echo " right. To configure in another directory as well, you MUST"
885 echo " use GNU make. If you do not have GNU make, then you must"
886 echo " now do \`make distclean' in $srcdir,"
887 echo " and then run $progname again.") >&2
888 extrasub='/^VPATH[ ]*=/c\
894 vpath %.in $(srcdir)'
897 . "$srcdir/version.sh" || exit 1;
898 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
899 : "${extra_verbose=$beta}"
900 version="${emacs_major_version}.${emacs_minor_version}"
901 { test "$extra_verbose" = "yes" && cat << EOF
902 Defining EMACS_MAJOR_VERSION = $emacs_major_version
904 cat >> confdefs.h <<EOF
905 #define EMACS_MAJOR_VERSION $emacs_major_version
909 { test "$extra_verbose" = "yes" && cat << EOF
910 Defining EMACS_MINOR_VERSION = $emacs_minor_version
912 cat >> confdefs.h <<EOF
913 #define EMACS_MINOR_VERSION $emacs_minor_version
917 if test -n "$emacs_beta_version" ; then
918 if test "$beta" = "yes"; then
919 version="${version}-b${emacs_beta_version}"
920 { test "$extra_verbose" = "yes" && cat << EOF
921 Defining EMACS_BETA_VERSION = $emacs_beta_version
923 cat >> confdefs.h <<EOF
924 #define EMACS_BETA_VERSION $emacs_beta_version
929 version="${version}.${emacs_beta_version}"
930 { test "$extra_verbose" = "yes" && cat << EOF
931 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
933 cat >> confdefs.h <<EOF
934 #define EMACS_PATCH_LEVEL $emacs_beta_version
940 { test "$extra_verbose" = "yes" && cat << EOF
941 Defining XEMACS_CODENAME = "$xemacs_codename"
943 cat >> confdefs.h <<EOF
944 #define XEMACS_CODENAME "$xemacs_codename"
948 { test "$extra_verbose" = "yes" && cat << EOF
949 Defining EMACS_VERSION = "$version"
951 cat >> confdefs.h <<EOF
952 #define EMACS_VERSION "$version"
957 if test "$with_infodock" = "yes"; then
958 if test ! -f ../../ID-INSTALL; then
959 echo "Cannot build InfoDock without InfoDock sources"
964 if test "$with_infodock" = "yes"; then
965 { test "$extra_verbose" = "yes" && cat << EOF
966 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
968 cat >> confdefs.h <<EOF
969 #define INFODOCK_MAJOR_VERSION $infodock_major_version
973 { test "$extra_verbose" = "yes" && cat << EOF
974 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
976 cat >> confdefs.h <<EOF
977 #define INFODOCK_MINOR_VERSION $infodock_minor_version
981 { test "$extra_verbose" = "yes" && cat << EOF
982 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
984 cat >> confdefs.h <<EOF
985 #define INFODOCK_BUILD_VERSION $infodock_build_version
989 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
991 CPPFLAGS="$CPPFLAGS -DINFODOCK"
996 { test "$extra_verbose" = "yes" && cat << EOF
997 Defining EMACS_PROGNAME = "$PROGNAME"
999 cat >> confdefs.h <<EOF
1000 #define EMACS_PROGNAME "$PROGNAME"
1005 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1006 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1007 Defining ERROR_CHECK_EXTENTS
1009 cat >> confdefs.h <<\EOF
1010 #define ERROR_CHECK_EXTENTS 1
1014 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1015 Defining ERROR_CHECK_TYPECHECK
1017 cat >> confdefs.h <<\EOF
1018 #define ERROR_CHECK_TYPECHECK 1
1022 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1023 Defining ERROR_CHECK_BUFPOS
1025 cat >> confdefs.h <<\EOF
1026 #define ERROR_CHECK_BUFPOS 1
1030 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1031 Defining ERROR_CHECK_GC
1033 cat >> confdefs.h <<\EOF
1034 #define ERROR_CHECK_GC 1
1038 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1039 Defining ERROR_CHECK_MALLOC
1041 cat >> confdefs.h <<\EOF
1042 #define ERROR_CHECK_MALLOC 1
1046 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1047 Defining ERROR_CHECK_BYTE_CODE
1049 cat >> confdefs.h <<\EOF
1050 #define ERROR_CHECK_BYTE_CODE 1
1054 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1055 Defining ERROR_CHECK_GLYPHS
1057 cat >> confdefs.h <<\EOF
1058 #define ERROR_CHECK_GLYPHS 1
1062 if test "${debug:=$beta}" = "yes"; then
1063 use_assertions=yes memory_usage_stats=yes
1064 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1065 echo " xemacs will be linked with \"debug.o\""
1067 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1068 echo " xemacs will be linked with \"tests.o\""
1070 { test "$extra_verbose" = "yes" && cat << \EOF
1071 Defining DEBUG_XEMACS
1073 cat >> confdefs.h <<\EOF
1074 #define DEBUG_XEMACS 1
1079 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1080 Defining USE_ASSERTIONS
1082 cat >> confdefs.h <<\EOF
1083 #define USE_ASSERTIONS 1
1087 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1088 Defining MEMORY_USAGE_STATS
1090 cat >> confdefs.h <<\EOF
1091 #define MEMORY_USAGE_STATS 1
1097 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1098 echo "configure:1099: checking "host system type"" >&5
1099 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1100 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1101 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1102 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1103 echo "$ac_t""$configuration" 1>&6
1111 case "$canonical" in
1112 sparc-*-* ) machine=sparc ;;
1113 alpha*-*-* ) machine=alpha ;;
1114 vax-*-* ) machine=vax ;;
1115 mips-dec-* ) machine=pmax ;;
1116 mips-sgi-irix6* ) machine=iris6d ;;
1117 mips-sgi-* ) machine=iris4d ;;
1118 mips*-linux ) machine=mips ;;
1119 romp-ibm-* ) machine=ibmrt ;;
1120 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1121 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1122 powerpc*-* ) machine=powerpc ;;
1123 hppa-*-* ) machine=hp800 ;;
1124 m88k-dg-* ) machine=aviion ;;
1125 m68*-sony-* ) machine=news ;;
1126 mips-sony-* ) machine=news-risc ;;
1127 clipper-* ) machine=clipper ;;
1128 arm* ) machine=arm ;;
1129 ns32k-* ) machine=ns32000 ;;
1130 s390-* ) machine=s390 ;;
1133 case "$canonical" in
1134 *-*-linux* ) opsys=linux ;;
1135 *-*-netbsd* ) opsys=netbsd ;;
1136 *-*-openbsd* ) opsys=openbsd ;;
1137 *-*-nextstep* ) opsys=nextstep ;;
1138 *-*-vms ) opsys=vms ;;
1140 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1141 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1142 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1143 *-dec-osf3* ) opsys=decosf3-1 ;;
1144 *-dec-osf4* ) opsys=decosf4-0 ;;
1146 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1147 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1148 *-*-ultrix* ) opsys=ultrix4-3 ;;
1150 *-*-aix3.1* ) opsys=aix3-1 ;;
1151 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1152 *-*-aix3* ) opsys=aix3-2 ;;
1153 *-*-aix4.0* ) opsys=aix4 ;;
1154 *-*-aix4.1* ) opsys=aix4-1 ;;
1155 *-*-aix4* ) opsys=aix4-2 ;;
1157 *-gnu* ) opsys=gnu ;;
1158 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1159 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1160 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1161 *-*-aos4.2 ) opsys=bsd4-2 ;;
1162 *-*-aos* ) opsys=bsd4-3 ;;
1163 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1164 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1165 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1166 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1167 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1168 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1169 if test -z "$NON_GNU_CPP" ; then
1170 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1171 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1175 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1176 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1179 case "$canonical" in
1182 case "$canonical" in
1183 i[3-9]86-*-netbsd*) machine=intel386 ;;
1184 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1185 machine=hp9000s300 ;;
1186 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1187 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1192 case "${canonical}" in
1193 i386-*-openbsd*) machine=intel386 ;;
1194 m68k-*-openbsd*) machine=hp9000s300 ;;
1195 mipsel-*-openbsd*) machine=pmax ;;
1199 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1200 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1202 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1203 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1205 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1207 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1209 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1211 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1213 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1215 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1216 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1217 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1220 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1222 *-convex-bsd* | *-convex-convexos* )
1223 machine=convex opsys=bsd4-3
1224 NON_GNU_CPP="cc -E -P"
1227 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1229 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1230 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1231 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1232 m88k-dg-dgux* ) opsys=dgux ;;
1234 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1235 m88k-motorola-sysv4* )
1236 machine=delta88k opsys=usg5-4-2
1238 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1240 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1241 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1243 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1245 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1246 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1247 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1250 case "`uname -r`" in
1251 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1252 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1254 NON_GNU_CPP="/lib/cpp"
1256 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1257 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1259 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1261 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1264 case "$canonical" in
1265 m68* ) machine=hp9000s300 ;;
1266 hppa* ) machine=hp800 ;;
1269 case "$canonical" in
1270 *-hp-hpux7* ) opsys=hpux ;;
1271 *-hp-hpux8* ) opsys=hpux8 ;;
1272 *-hp-hpux9* ) opsys=hpux9 ;;
1273 *-hp-hpux10* ) opsys=hpux10 ;;
1274 *-hp-hpux11* ) opsys=hpux11 ;;
1278 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1279 echo " xemacs will be linked with \"strcat.o\""
1282 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1283 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1284 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1286 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1289 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1290 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1292 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1293 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1294 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1295 romp-ibm-aos* ) opsys=bsd4-3 ;;
1296 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1297 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1299 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1300 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1302 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1304 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1306 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1308 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1310 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1312 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1314 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1316 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1318 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1320 mips-mips-usg* ) machine=mips4 ;;
1323 NON_GNU_CC="cc -systype bsd43"
1324 NON_GNU_CPP="cc -systype bsd43 -E"
1325 case "$canonical" in
1326 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1327 mips-mips-riscos5* ) opsys=riscos5 ;;
1330 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1331 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1333 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1335 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1337 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1338 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1340 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1342 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1344 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1346 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1348 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1349 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1351 mips-siemens-sysv* | mips-sni-sysv*)
1352 machine=mips-siemens opsys=usg5-4
1353 NON_GNU_CC=/usr/ccs/bin/cc
1354 NON_GNU_CPP=/usr/ccs/lib/cpp
1359 NON_GNU_CC=/usr/ccs/bin/cc
1360 NON_GNU_CPP=/usr/ccs/lib/cpp
1363 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1364 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1365 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1366 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1367 mips-sgi-irix6* ) opsys=irix6-0 ;;
1368 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1369 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1370 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1371 mips-sgi-irix* ) opsys=irix5-0 ;;
1373 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1374 *-sony-news* ) opsys=newsos5 ;;
1376 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1378 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1379 case "$canonical" in
1380 m68*-sunos1* ) machine=sun1 ;;
1381 m68*-sunos2* ) machine=sun2 ;;
1382 m68* ) machine=sun3 ;;
1383 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1384 i*86-*-* ) machine=intel386 ;;
1385 rs6000* ) machine=rs6000 ;;
1388 case "$canonical" in *-sunos5*)
1389 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1392 case "$canonical" in
1394 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1397 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1401 case "$canonical" in
1404 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1405 { test "$extra_verbose" = "yes" && cat << EOF
1406 Defining OS_RELEASE = $os_release
1408 cat >> confdefs.h <<EOF
1409 #define OS_RELEASE $os_release
1414 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1415 *-sunos4.0* ) opsys=sunos4-0 ;;
1416 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1417 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1418 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1419 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1420 *-mach* ) opsys=mach-bsd4-3 ;;
1424 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1426 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1429 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1431 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1432 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1434 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1436 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1438 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1439 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1441 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1443 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1446 case "$canonical" in
1447 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1448 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1449 *-mach* ) opsys=mach-bsd4-3 ;;
1453 ns16k-whitechapel-* ) machine=mg1 ;;
1455 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1459 case "$canonical" in
1460 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1461 *-isc2.2* ) opsys=isc2-2 ;;
1462 *-isc4.0* ) opsys=isc4-0 ;;
1463 *-isc4.* ) opsys=isc4-1
1464 GCC_TEST_OPTIONS=-posix
1465 NON_GCC_TEST_OPTIONS=-Xp
1467 *-isc* ) opsys=isc3-0 ;;
1468 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1469 *-esix* ) opsys=esix ;;
1470 *-mach* ) opsys=mach-bsd4-3 ;;
1471 *-xenix* ) opsys=xenix ;;
1472 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1473 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1474 *-bsdi4* ) opsys=bsdos4 ;;
1475 *-bsdi3* ) opsys=bsdos3 ;;
1476 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1477 *-bsdi2* ) opsys=bsdos2 ;;
1478 *-sco3.2v5* ) opsys=sco5 ;
1479 if test "$dynamic" = "yes" ; then
1480 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1482 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1484 *-sysv5* ) opsys=sco7 ;;
1485 *-386bsd* ) opsys=386bsd ;;
1486 *-freebsd* ) opsys=freebsd ;;
1487 *-nextstep* ) opsys=nextstep ;;
1488 *-pc-cygwin* ) opsys=cygwin32 ;;
1489 *-pc-mingw* ) opsys=mingw32 ;
1490 test -z "$with_tty" && with_tty="no";;
1494 m68k-*-linux* ) machine=m68k opsys=linux ;;
1498 if test -z "$machine" -o -z "$opsys"; then
1499 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1500 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1505 if test -z "$dynamic"; then
1507 hpux* | sunos4* ) dynamic=no ;;
1511 if test "$dynamic" = "yes"; then
1513 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1514 decosf* ) ld_call_shared="-call_shared" ;;
1516 else case "$opsys" in
1518 echo "Static linking is not supported on Solaris 2."
1519 echo "Rerun configure without specifying --dynamic=no."
1521 linux ) ld_call_shared="-Bstatic" ;;
1522 decosf* ) ld_call_shared="-non_shared" ;;
1526 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1528 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1529 { test "$extra_verbose" = "yes" && cat << EOF
1530 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1532 cat >> confdefs.h <<EOF
1533 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1538 machfile="m/${machine}.h"
1539 opsysfile="s/${opsys}.h"
1542 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1543 if test "$with_workshop $with_tooltalk" = "yes no"; then
1544 (echo "$progname: Usage error:"
1545 echo " " "--with-workshop requires --with-tooltalk"
1546 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1547 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1548 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1551 if test "$with_workshop" = "yes"; then
1552 { test "$extra_verbose" = "yes" && cat << \EOF
1555 cat >> confdefs.h <<\EOF
1560 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1561 echo " xemacs will be linked with \"sunpro.o\""
1565 if test "$with_clash_detection" != "no"; then
1566 { test "$extra_verbose" = "yes" && cat << \EOF
1567 Defining CLASH_DETECTION
1569 cat >> confdefs.h <<\EOF
1570 #define CLASH_DETECTION 1
1574 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1575 echo " xemacs will be linked with \"filelock.o\""
1579 test -n "$compiler" && CC="$compiler"
1580 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1583 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1584 if test "${CFLAGS-unset}" != unset
1585 then cflags_specified=yes;
1586 else cflags_specified=no;
1589 xe_save_CFLAGS="$CFLAGS"
1591 # Extract the first word of "gcc", so it can be a program name with args.
1592 set dummy gcc; ac_word=$2
1593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1594 echo "configure:1595: checking for $ac_word" >&5
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1611 if test -n "$CC"; then
1612 echo "$ac_t""$CC" 1>&6
1614 echo "$ac_t""no" 1>&6
1617 if test -z "$CC"; then
1618 # Extract the first word of "cc", so it can be a program name with args.
1619 set dummy cc; ac_word=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1629 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=.
1631 if test -f $ac_dir/$ac_word; then
1632 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1633 ac_prog_rejected=yes
1641 if test $ac_prog_rejected = yes; then
1642 # We found a bogon in the path, so make sure we never use it.
1643 set dummy $ac_cv_prog_CC
1645 if test $# -gt 0; then
1646 # We chose a different compiler from the bogus one.
1647 # However, it has the same basename, so the bogon will be chosen
1648 # first if we set CC to just the basename; use the full file name.
1650 set dummy "$ac_dir/$ac_word" "$@"
1657 if test -n "$CC"; then
1658 echo "$ac_t""$CC" 1>&6
1660 echo "$ac_t""no" 1>&6
1663 if test -z "$CC"; then
1664 case "`uname -s`" in
1666 # Extract the first word of "cl", so it can be a program name with args.
1667 set dummy cl; ac_word=$2
1668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_word" >&5
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1676 for ac_dir in $ac_dummy; do
1677 test -z "$ac_dir" && ac_dir=.
1678 if test -f $ac_dir/$ac_word; then
1686 if test -n "$CC"; then
1687 echo "$ac_t""$CC" 1>&6
1689 echo "$ac_t""no" 1>&6
1694 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1697 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1698 echo "configure:1699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1701 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1702 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1703 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1704 ac_cpp='$CPP '"$xe_cppflags"
1705 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1706 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1709 cat > conftest.$ac_ext << EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1717 ac_cv_prog_cc_works=yes
1718 # If we can't run a trivial program, we are probably using a cross compiler.
1719 if (./conftest; exit) 2>/dev/null; then
1720 ac_cv_prog_cc_cross=no
1722 ac_cv_prog_cc_cross=yes
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1727 ac_cv_prog_cc_works=no
1731 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1732 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1733 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1734 ac_cpp='$CPP '"$xe_cppflags"
1735 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1736 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1739 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1740 if test $ac_cv_prog_cc_works = no; then
1741 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1744 echo "configure:1745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1745 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1746 cross_compiling=$ac_cv_prog_cc_cross
1748 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1749 echo "configure:1750: checking whether we are using GNU C" >&5
1751 cat > conftest.c <<EOF
1756 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1762 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1764 if test $ac_cv_prog_gcc = yes; then
1770 ac_test_CFLAGS="${CFLAGS+set}"
1771 ac_save_CFLAGS="$CFLAGS"
1773 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether ${CC-cc} accepts -g" >&5
1776 echo 'void f(){}' > conftest.c
1777 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1785 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1786 if test "$ac_test_CFLAGS" = set; then
1787 CFLAGS="$ac_save_CFLAGS"
1788 elif test $ac_cv_prog_cc_g = yes; then
1789 if test "$GCC" = yes; then
1795 if test "$GCC" = yes; then
1802 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1804 # Extract the first word of "gcc", so it can be a program name with args.
1805 set dummy gcc; ac_word=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1814 for ac_dir in $ac_dummy; do
1815 test -z "$ac_dir" && ac_dir=.
1816 if test -f $ac_dir/$ac_word; then
1824 if test -n "$CC"; then
1825 echo "$ac_t""$CC" 1>&6
1827 echo "$ac_t""no" 1>&6
1830 if test -z "$CC"; then
1831 # Extract the first word of "cc", so it can be a program name with args.
1832 set dummy cc; ac_word=$2
1833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_word" >&5
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1842 for ac_dir in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then
1845 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1846 ac_prog_rejected=yes
1854 if test $ac_prog_rejected = yes; then
1855 # We found a bogon in the path, so make sure we never use it.
1856 set dummy $ac_cv_prog_CC
1858 if test $# -gt 0; then
1859 # We chose a different compiler from the bogus one.
1860 # However, it has the same basename, so the bogon will be chosen
1861 # first if we set CC to just the basename; use the full file name.
1863 set dummy "$ac_dir/$ac_word" "$@"
1870 if test -n "$CC"; then
1871 echo "$ac_t""$CC" 1>&6
1873 echo "$ac_t""no" 1>&6
1876 if test -z "$CC"; then
1877 case "`uname -s`" in
1879 # Extract the first word of "cl", so it can be a program name with args.
1880 set dummy cl; ac_word=$2
1881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1882 echo "configure:1883: checking for $ac_word" >&5
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1899 if test -n "$CC"; then
1900 echo "$ac_t""$CC" 1>&6
1902 echo "$ac_t""no" 1>&6
1907 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1911 echo "configure:1912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1914 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1915 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1916 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1917 ac_cpp='$CPP '"$xe_cppflags"
1918 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1919 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1922 cat > conftest.$ac_ext << EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1929 if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1930 ac_cv_prog_cc_works=yes
1931 # If we can't run a trivial program, we are probably using a cross compiler.
1932 if (./conftest; exit) 2>/dev/null; then
1933 ac_cv_prog_cc_cross=no
1935 ac_cv_prog_cc_cross=yes
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1940 ac_cv_prog_cc_works=no
1944 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1945 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1946 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1947 ac_cpp='$CPP '"$xe_cppflags"
1948 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1949 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1952 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1953 if test $ac_cv_prog_cc_works = no; then
1954 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1956 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1957 echo "configure:1958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1958 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1959 cross_compiling=$ac_cv_prog_cc_cross
1961 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether we are using GNU C" >&5
1964 cat > conftest.c <<EOF
1969 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1975 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1977 if test $ac_cv_prog_gcc = yes; then
1983 ac_test_CFLAGS="${CFLAGS+set}"
1984 ac_save_CFLAGS="$CFLAGS"
1986 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether ${CC-cc} accepts -g" >&5
1989 echo 'void f(){}' > conftest.c
1990 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1999 if test "$ac_test_CFLAGS" = set; then
2000 CFLAGS="$ac_save_CFLAGS"
2001 elif test $ac_cv_prog_cc_g = yes; then
2002 if test "$GCC" = yes; then
2008 if test "$GCC" = yes; then
2015 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2017 # Extract the first word of "gcc", so it can be a program name with args.
2018 set dummy gcc; ac_word=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2027 for ac_dir in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir=.
2029 if test -f $ac_dir/$ac_word; then
2037 if test -n "$CC"; then
2038 echo "$ac_t""$CC" 1>&6
2040 echo "$ac_t""no" 1>&6
2043 if test -z "$CC"; then
2044 # Extract the first word of "cc", so it can be a program name with args.
2045 set dummy cc; ac_word=$2
2046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_word" >&5
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2055 for ac_dir in $ac_dummy; do
2056 test -z "$ac_dir" && ac_dir=.
2057 if test -f $ac_dir/$ac_word; then
2058 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2059 ac_prog_rejected=yes
2067 if test $ac_prog_rejected = yes; then
2068 # We found a bogon in the path, so make sure we never use it.
2069 set dummy $ac_cv_prog_CC
2071 if test $# -gt 0; then
2072 # We chose a different compiler from the bogus one.
2073 # However, it has the same basename, so the bogon will be chosen
2074 # first if we set CC to just the basename; use the full file name.
2076 set dummy "$ac_dir/$ac_word" "$@"
2083 if test -n "$CC"; then
2084 echo "$ac_t""$CC" 1>&6
2086 echo "$ac_t""no" 1>&6
2089 if test -z "$CC"; then
2090 case "`uname -s`" in
2092 # Extract the first word of "cl", so it can be a program name with args.
2093 set dummy cl; ac_word=$2
2094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_word" >&5
2097 if test -n "$CC"; then
2098 ac_cv_prog_CC="$CC" # Let the user override the test.
2100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2102 for ac_dir in $ac_dummy; do
2103 test -z "$ac_dir" && ac_dir=.
2104 if test -f $ac_dir/$ac_word; then
2112 if test -n "$CC"; then
2113 echo "$ac_t""$CC" 1>&6
2115 echo "$ac_t""no" 1>&6
2120 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2123 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2124 echo "configure:2125: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2127 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2128 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2129 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2130 ac_cpp='$CPP '"$xe_cppflags"
2131 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2132 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2135 cat > conftest.$ac_ext << EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2142 if { (eval echo configure:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2143 ac_cv_prog_cc_works=yes
2144 # If we can't run a trivial program, we are probably using a cross compiler.
2145 if (./conftest; exit) 2>/dev/null; then
2146 ac_cv_prog_cc_cross=no
2148 ac_cv_prog_cc_cross=yes
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 ac_cv_prog_cc_works=no
2157 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2158 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2159 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2160 ac_cpp='$CPP '"$xe_cppflags"
2161 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2162 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2165 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2166 if test $ac_cv_prog_cc_works = no; then
2167 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2169 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2170 echo "configure:2171: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2171 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2172 cross_compiling=$ac_cv_prog_cc_cross
2174 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2175 echo "configure:2176: checking whether we are using GNU C" >&5
2177 cat > conftest.c <<EOF
2182 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2188 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2190 if test $ac_cv_prog_gcc = yes; then
2196 ac_test_CFLAGS="${CFLAGS+set}"
2197 ac_save_CFLAGS="$CFLAGS"
2199 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether ${CC-cc} accepts -g" >&5
2202 echo 'void f(){}' > conftest.c
2203 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2211 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2212 if test "$ac_test_CFLAGS" = set; then
2213 CFLAGS="$ac_save_CFLAGS"
2214 elif test $ac_cv_prog_cc_g = yes; then
2215 if test "$GCC" = yes; then
2221 if test "$GCC" = yes; then
2229 CFLAGS="$xe_save_CFLAGS"
2232 test -n "$CPP" -a -d "$CPP" && CPP=
2234 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2236 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2237 echo "configure:2238: checking how to run the C preprocessor" >&5
2238 # On Suns, sometimes $CPP names a directory.
2239 if test -n "$CPP" && test -d "$CPP"; then
2242 if test -z "$CPP"; then
2244 # This must be in double quotes, not single quotes, because CPP may get
2245 # substituted into the Makefile and "${CC-cc}" will confuse make.
2247 # On the NeXT, cc -E runs the code through the compiler's parser,
2248 # not just through cpp.
2249 cat > conftest.$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2256 { (eval echo configure:2257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2258 if test -z "$ac_err"; then
2262 echo "configure: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2265 CPP="${CC-cc} -E -traditional-cpp"
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2273 { (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2275 if test -z "$ac_err"; then
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2282 CPP="${CC-cc} -nologo -E"
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2290 { (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2292 if test -z "$ac_err"; then
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2306 ac_cv_prog_CPP="$CPP"
2307 CPP="$ac_cv_prog_CPP"
2309 ac_cv_prog_CPP="$CPP"
2311 echo "$ac_t""$CPP" 1>&6
2315 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2316 echo "configure:2317: checking for AIX" >&5
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2326 egrep "yes" >/dev/null 2>&1; then
2328 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2329 Defining _ALL_SOURCE
2331 cat >> confdefs.h <<\EOF
2332 #define _ALL_SOURCE 1
2338 echo "$ac_t""no" 1>&6
2344 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2345 echo "configure:2346: checking for GNU libc" >&5
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 #include <features.h>
2352 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2353 #error Not a GNU libc system :-(
2354 ******* ======= ******** &&&&&&&&
2359 if { (eval echo configure:2360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2369 echo "$ac_t""$have_glibc" 1>&6
2370 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2371 Defining _GNU_SOURCE
2373 cat >> confdefs.h <<\EOF
2374 #define _GNU_SOURCE 1
2381 { test "$extra_verbose" = "yes" && cat << \EOF
2382 Defining __EXTENSIONS__
2384 cat >> confdefs.h <<\EOF
2385 #define __EXTENSIONS__ 1
2389 if test "$os_release" -ge 55; then
2390 { test "$extra_verbose" = "yes" && cat << \EOF
2391 Defining _XOPEN_SOURCE = 500
2393 cat >> confdefs.h <<\EOF
2394 #define _XOPEN_SOURCE 500
2398 { test "$extra_verbose" = "yes" && cat << \EOF
2399 Defining _XOPEN_SOURCE_EXTENDED
2401 cat >> confdefs.h <<\EOF
2402 #define _XOPEN_SOURCE_EXTENDED 1
2408 { test "$extra_verbose" = "yes" && cat << \EOF
2409 Defining _POSIX_C_SOURCE = 199506L
2411 cat >> confdefs.h <<\EOF
2412 #define _POSIX_C_SOURCE 199506L
2416 { test "$extra_verbose" = "yes" && cat << \EOF
2417 Defining _XOPEN_SOURCE = 500
2419 cat >> confdefs.h <<\EOF
2420 #define _XOPEN_SOURCE 500
2424 { test "$extra_verbose" = "yes" && cat << \EOF
2425 Defining _XOPEN_SOURCE_EXTENDED
2427 cat >> confdefs.h <<\EOF
2428 #define _XOPEN_SOURCE_EXTENDED 1
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2439 #if defined __SUNPRO_C
2441 #elif defined __DECC
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2456 case "$conftest_rc" in
2457 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2458 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2466 echo "Extracting information from the machine- and system-dependent headers..."
2468 tempcname="conftest.c"
2472 cat > $tempcname <<EOF
2474 #define C_SWITCH_SITE
2475 #define C_SWITCH_X_SITE
2476 #define LD_SWITCH_SITE
2477 #define LD_SWITCH_X_SITE
2478 #define LD_SWITCH_X_SITE_AUX
2479 #define OS_RELEASE $os_release
2480 #include "$srcdir/src/$opsysfile"
2481 #include "$srcdir/src/$machfile"
2483 #ifndef LIBS_MACHINE
2484 #define LIBS_MACHINE
2486 configure___ libs_machine=LIBS_MACHINE
2491 configure___ libs_system=LIBS_SYSTEM
2493 #ifndef LIBS_TERMCAP
2494 #define LIBS_TERMCAP
2496 configure___ libs_termcap=LIBS_TERMCAP
2498 #ifndef LIB_STANDARD
2499 #define LIB_STANDARD
2501 configure___ libs_standard=LIB_STANDARD
2504 #ifndef OBJECTS_MACHINE
2505 #define OBJECTS_MACHINE
2507 configure___ objects_machine=OBJECTS_MACHINE
2509 #ifndef OBJECTS_SYSTEM
2510 #define OBJECTS_SYSTEM
2512 configure___ objects_system=OBJECTS_SYSTEM
2515 #ifndef C_SWITCH_MACHINE
2516 #define C_SWITCH_MACHINE
2518 configure___ c_switch_machine=C_SWITCH_MACHINE
2520 #ifndef C_SWITCH_SYSTEM
2521 #define C_SWITCH_SYSTEM
2523 configure___ c_switch_system=C_SWITCH_SYSTEM
2526 #ifndef LD_SWITCH_MACHINE
2527 #define LD_SWITCH_MACHINE
2529 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2531 #ifndef LD_SWITCH_SYSTEM
2532 #define LD_SWITCH_SYSTEM
2534 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2538 #define UNEXEC "unexec.o"
2540 configure___ unexec=UNEXEC
2543 #ifndef LD_SWITCH_SHARED
2544 #define LD_SWITCH_SHARED "-c"
2546 configure___ ld_switch_shared=LD_SWITCH_SHARED
2549 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2550 configure___ ordinary_ld=ORDINARY_LD
2552 #ifdef ORDINARY_LINK
2553 #define LD ORDINARY_LD
2554 #else /* no ORDINARY LINK */
2555 #ifdef COFF_ENCAPSULATE
2556 #define LD "\$(CC) -nostdlib"
2557 #else /* not COFF_ENCAPSULATE */
2560 #else /* ! defined (LINKER) */
2562 #endif /* ! defined (LINKER) */
2563 #endif /* ! defined (COFF_ENCAPSULATE) */
2564 #endif /* not ORDINARY_LINK */
2570 configure___ lib_gcc=LIB_GCC
2572 #ifndef LD_TEXT_START_ADDR
2573 #define LD_TEXT_START_ADDR
2575 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2578 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2580 #ifdef COFF_ENCAPSULATE
2581 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2582 #else /* ! defined (COFF_ENCAPSULATE) */
2583 #define START_FILES "pre-crt0.o /lib/crt0.o"
2584 #endif /* ! defined (COFF_ENCAPSULATE) */
2585 #else /* ! defined (NO_REMAP) */
2586 #define START_FILES "ecrt0.o"
2587 #endif /* ! defined (NO_REMAP) */
2588 #endif /* no ORDINARY_LINK */
2592 configure___ start_files=START_FILES
2594 #ifdef ORDINARY_LINK
2595 configure___ ordinary_link=yes
2597 configure___ ordinary_link=no
2600 #ifdef SYSTEM_MALLOC
2601 configure___ system_malloc=yes
2603 configure___ system_malloc=no
2607 configure___ have_terminfo=yes
2609 configure___ have_terminfo=no
2612 #ifdef MAIL_USE_FLOCK
2613 configure___ mail_use_flock=yes
2615 configure___ mail_use_flock=no
2618 #ifdef MAIL_USE_LOCKF
2619 configure___ mail_use_lockf=yes
2621 configure___ mail_use_lockf=no
2624 #ifdef MAIL_USE_LOCKING
2625 configure___ mail_use_locking=yes
2627 configure___ mail_use_locking=no
2630 #ifdef HAVE_WIN32_PROCESSES
2631 configure___ win32_processes=yes
2633 configure___ win32_processes=no
2638 CPP=`eval "echo $CPP $CPPFLAGS"`
2639 eval `$CPP -Isrc $tempcname \
2640 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2644 if test "$pdump" = "yes"; then
2653 test "$extra_verbose" = "yes" && \
2654 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 ""
2656 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2657 mingw_include=`eval "dirname $mingw_include"` ;
2658 mingw_include="-I$mingw_include/../include/mingw32" ;
2659 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2662 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2664 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2666 if test "$cflags_specified" = "no"; then
2667 if test "$GCC" = "yes"; then
2668 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2669 elif test "$__SUNPRO_C" = "yes"; then
2671 sol2 ) CFLAGS="-v -xO4" ;;
2672 sunos4* ) CFLAGS="-xO2";;
2674 elif test "$__DECC" = "yes"; then
2676 elif test "$CC" = "xlc"; then
2677 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2682 if test "$GCC" = "yes"; then
2683 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2684 echo "configure:2685: checking for buggy gcc versions" >&5
2685 GCC_VERSION=`$CC --version`
2686 case `uname -s`:`uname -m`:$GCC_VERSION in
2687 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2691 *-fno-schedule-insns*) ;;
2693 echo "$ac_t""Yes" 1>&6
2694 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2695 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2696 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2702 Linux:alpha:egcs-2.91.*)
2703 echo "$ac_t""Yes" 1>&6
2704 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2705 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2706 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2709 case "$GCC_VERSION" in
2714 *-fno-strength-reduce*) ;;
2716 echo "$ac_t""Yes" 1>&6
2717 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2718 echo "configure: warning: -fno-strength-reduce." 1>&2
2719 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2727 *-fno-caller-saves*) ;;
2729 echo "$ac_t""Yes" 1>&6
2730 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2731 echo "configure: warning: -fno-caller-saves." 1>&2
2732 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2738 echo "$ac_t""No" 1>&6
2741 if test "$GCC" = "yes"; then
2742 set x $ld_switch_system; shift; ld_switch_system=""
2743 while test -n "$1"; do
2745 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2746 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2748 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2754 if test "$GCC" = "yes"; then
2755 set x $ld_switch_machine; shift; ld_switch_machine=""
2756 while test -n "$1"; do
2758 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2759 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2761 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2767 if test "$GCC" = "yes"; then
2768 set x $LDFLAGS; shift; LDFLAGS=""
2769 while test -n "$1"; do
2771 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2772 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2774 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2780 if test "$GCC" = "yes"; then
2781 set x $ld_call_shared; shift; ld_call_shared=""
2782 while test -n "$1"; do
2784 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2785 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2787 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2793 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2794 echo " xemacs will be linked with \"$objects_machine\""
2796 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2797 echo " xemacs will be linked with \"$objects_system\""
2799 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2800 echo " xemacs will be linked with \"$unexec\""
2802 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2803 echo " xemacs will be linked with \"dumper.o\""
2806 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2807 echo "configure:2808: checking for dynodump" >&5
2808 if test "$unexec" != "unexsol2.o"; then
2809 echo "$ac_t""no" 1>&6
2811 echo "$ac_t""yes" 1>&6
2812 { test "$extra_verbose" = "yes" && cat << \EOF
2815 cat >> confdefs.h <<\EOF
2820 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2821 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2823 sparc ) dynodump_arch=sparc ;;
2824 *86* ) dynodump_arch=i386 ;;
2825 powerpc ) dynodump_arch=ppc ;;
2827 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
2831 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2833 if test "$unexec" = "unexaix.o"; then
2834 if test "$dynamic" = "no"; then
2835 start_flags="-Wl,-bnso,-bnodelcsect"
2836 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2837 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2838 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2840 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2841 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2844 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2845 echo "configure:2846: checking for terminateAndUnload in -lC" >&5
2846 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2848 xe_check_libs=" -lC "
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2852 /* Override any gcc2 internal prototype to avoid an error. */
2853 /* We use char because int might match the return type of a gcc2
2854 builtin and then its argument prototype would still apply. */
2855 char terminateAndUnload();
2858 terminateAndUnload()
2861 if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2863 eval "ac_cv_lib_$ac_lib_var=yes"
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2868 eval "ac_cv_lib_$ac_lib_var=no"
2873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2874 echo "$ac_t""yes" 1>&6
2875 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2877 echo "$ac_t""no" 1>&6
2882 elif test -n "$ld_text_start_addr"; then
2883 start_flags="-T $ld_text_start_addr -e __start"
2889 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2890 test -z "$linker" && linker='$(CC) -nostdlib'
2891 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2893 test "$GCC" != "yes" && lib_gcc=
2899 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2900 if test -n "$site_libraries"; then
2901 for arg in $site_libraries; do
2904 * ) test -d "$arg" || \
2905 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2908 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2912 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2913 if test -n "$site_includes"; then
2914 for arg in $site_includes; do
2917 * ) test -d "$arg" || \
2918 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2921 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2925 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2926 if test -n "$site_prefixes"; then
2927 for dir in $site_prefixes; do
2928 lib_dir="${dir}/lib"
2929 inc_dir="${dir}/include"
2930 if test ! -d "$dir"; then
2931 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2932 elif test ! -d "$lib_dir"; then
2933 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2935 if test -d "$inc_dir"; then
2936 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
2938 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
2944 for dir in "/usr/ccs/lib"; do
2945 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
2948 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2949 if test -n "$site_runtime_libraries"; then
2950 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2958 if test -n "$add_runtime_path"; then :;
2959 elif test "$dynamic" = "no"; then add_runtime_path=no
2960 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2961 else case "$opsys" in
2962 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2963 * ) add_runtime_path=no ;;
2967 if test "$add_runtime_path" = "yes"; then
2968 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2969 echo "configure:2970: checking "for runtime libraries flag"" >&5
2971 sol2 ) dash_r="-R" ;;
2972 decosf* | linux* | irix*) dash_r="-rpath " ;;
2975 for try_dash_r in "-R" "-R " "-rpath "; do
2976 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2978 if test "$GCC" = "yes"; then
2979 set x $xe_check_libs; shift; xe_check_libs=""
2980 while test -n "$1"; do
2982 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2983 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2985 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2998 if { (eval echo configure:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3000 dash_r="$try_dash_r"
3002 echo "configure: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3007 test -n "$dash_r" && break
3010 if test -n "$dash_r";
3011 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3012 else echo "$ac_t""NONE" 1>&6
3016 xe_add_unique_runpath_dir='
3018 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3020 if test "$xe_add_p" = "yes"; then
3021 test -n "$runpath" && runpath="${runpath}:"
3022 runpath="${runpath}${xe_runpath_dir}"
3023 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3029 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3030 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3031 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3033 runpath="" runpath_dirs=""
3034 if test -n "$LD_RUN_PATH"; then
3035 runpath="$LD_RUN_PATH"
3036 elif test "$GCC" = "yes"; then
3037 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3038 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3039 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3040 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3041 case "$arg" in P,* | -L* | -R* )
3042 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3044 xe_runpath_dir="$dir"
3045 test "$xe_runpath_dir" != "/lib" -a \
3046 "$xe_runpath_dir" != "/usr/lib" -a \
3047 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3048 eval "$xe_add_unique_runpath_dir"
3053 ld_switch_run="$ld_switch_run_save"
3056 for arg in $ld_switch_site $ld_switch_x_site; do
3057 case "$arg" in -L*) {
3058 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3059 test "$xe_runpath_dir" != "/lib" -a \
3060 "$xe_runpath_dir" != "/usr/lib" -a \
3061 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3062 eval "$xe_add_unique_runpath_dir"
3065 if test "$opsys $need_motif" = "sol2 yes"; then
3066 xe_runpath_dir="/opt/SUNWdt/lib";
3067 eval "$xe_add_unique_runpath_dir";
3070 if test -n "$runpath"; then
3071 ld_switch_run="${dash_r}${runpath}"
3073 if test "$GCC" = "yes"; then
3074 set x $ld_switch_run; shift; ld_switch_run=""
3075 while test -n "$1"; do
3077 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3078 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3080 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3085 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3093 if test "$with_dlmalloc" != "no"; then
3098 after_morecore_hook_exists=yes
3099 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3100 echo "configure:3101: checking for malloc_set_state" >&5
3102 cat > conftest.$ac_ext <<EOF
3103 #line 3104 "configure"
3104 #include "confdefs.h"
3105 /* System header to define __stub macros and hopefully few prototypes,
3106 which can conflict with char malloc_set_state(); below. */
3108 /* Override any gcc2 internal prototype to avoid an error. */
3109 /* We use char because int might match the return type of a gcc2
3110 builtin and then its argument prototype would still apply. */
3111 char malloc_set_state();
3115 /* The GNU C library defines this for functions which it implements
3116 to always fail with ENOSYS. Some functions are actually named
3117 something starting with __ and the normal name is an alias. */
3118 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3126 if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3128 eval "ac_cv_func_malloc_set_state=yes"
3130 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3133 eval "ac_cv_func_malloc_set_state=no"
3137 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3138 echo "$ac_t""yes" 1>&6
3141 echo "$ac_t""no" 1>&6
3145 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3146 echo "configure:3147: checking whether __after_morecore_hook exists" >&5
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3150 extern void (* __after_morecore_hook)();
3152 __after_morecore_hook = 0
3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3157 echo "$ac_t""yes" 1>&6
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3162 echo "$ac_t""no" 1>&6
3163 after_morecore_hook_exists=no
3166 if test "$system_malloc" = "yes" ; then
3169 - The GNU allocators don't work with this system configuration."
3170 elif test "$with_system_malloc" = "yes" ; then
3173 - User chose not to use GNU allocators."
3174 elif test "$with_debug_malloc" = "yes" ; then
3177 - User chose to use Debugging Malloc."
3180 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3182 - Using Doug Lea's new malloc from the GNU C Library."
3183 { test "$extra_verbose" = "yes" && cat << \EOF
3184 Defining DOUG_LEA_MALLOC
3186 cat >> confdefs.h <<\EOF
3187 #define DOUG_LEA_MALLOC 1
3191 if test "$after_morecore_hook_exists" = "no" ; then
3193 - Using Doug Lea's new malloc from the Linux C Library."
3194 { test "$extra_verbose" = "yes" && cat << \EOF
3195 Defining _NO_MALLOC_WARNING_
3197 cat >> confdefs.h <<\EOF
3198 #define _NO_MALLOC_WARNING_ 1
3208 # Extract the first word of "ranlib", so it can be a program name with args.
3209 set dummy ranlib; ac_word=$2
3210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3211 echo "configure:3212: checking for $ac_word" >&5
3213 if test -n "$RANLIB"; then
3214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3218 for ac_dir in $ac_dummy; do
3219 test -z "$ac_dir" && ac_dir=.
3220 if test -f $ac_dir/$ac_word; then
3221 ac_cv_prog_RANLIB="ranlib"
3226 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3228 RANLIB="$ac_cv_prog_RANLIB"
3229 if test -n "$RANLIB"; then
3230 echo "$ac_t""$RANLIB" 1>&6
3232 echo "$ac_t""no" 1>&6
3236 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3237 if test -f $ac_dir/install-sh; then
3239 ac_install_sh="$ac_aux_dir/install-sh -c"
3241 elif test -f $ac_dir/install.sh; then
3243 ac_install_sh="$ac_aux_dir/install.sh -c"
3247 if test -z "$ac_aux_dir"; then
3248 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3250 ac_config_guess=$ac_aux_dir/config.guess
3251 ac_config_sub=$ac_aux_dir/config.sub
3252 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3254 # Find a good install program. We prefer a C program (faster),
3255 # so one script is as good as another. But avoid the broken or
3256 # incompatible versions:
3257 # SysV /etc/install, /usr/sbin/install
3258 # SunOS /usr/etc/install
3259 # IRIX /sbin/install
3261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3264 # ./install, which can be erroneously created by make from ./install.sh.
3265 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3266 echo "configure:3267: checking for a BSD compatible install" >&5
3267 if test -z "$INSTALL"; then
3269 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3270 for ac_dir in $PATH; do
3271 # Account for people who put trailing slashes in PATH elements.
3273 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3275 # OSF1 and SCO ODT 3.0 have their own names for install.
3276 # Don't use installbsd from OSF since it installs stuff as root
3278 for ac_prog in ginstall scoinst install; do
3279 if test -f $ac_dir/$ac_prog; then
3280 if test $ac_prog = install &&
3281 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3282 # AIX install. It has an incompatible calling convention.
3285 ac_cv_path_install="$ac_dir/$ac_prog -c"
3295 if test "${ac_cv_path_install+set}" = set; then
3296 INSTALL="$ac_cv_path_install"
3298 # As a last resort, use the slow shell script. We don't cache a
3299 # path for INSTALL within a source directory, because that will
3300 # break other packages using the cache if that directory is
3301 # removed, or if the path is relative.
3302 INSTALL="$ac_install_sh"
3305 echo "$ac_t""$INSTALL" 1>&6
3307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3308 # It thinks the first close brace ends the variable substitution.
3309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3315 for ac_prog in 'bison -y' byacc
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_word" >&5
3322 if test -n "$YACC"; then
3323 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3327 for ac_dir in $ac_dummy; do
3328 test -z "$ac_dir" && ac_dir=.
3329 if test -f $ac_dir/$ac_word; then
3330 ac_cv_prog_YACC="$ac_prog"
3336 YACC="$ac_cv_prog_YACC"
3337 if test -n "$YACC"; then
3338 echo "$ac_t""$YACC" 1>&6
3340 echo "$ac_t""no" 1>&6
3343 test -n "$YACC" && break
3345 test -n "$YACC" || YACC="yacc"
3348 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
3350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_hdr" >&5
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3360 { (eval echo configure:3361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3362 if test -z "$ac_err"; then
3364 eval "ac_cv_header_$ac_safe=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3370 eval "ac_cv_header_$ac_safe=no"
3373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3376 { test "$extra_verbose" = "yes" && cat << EOF
3379 cat >> confdefs.h <<EOF
3380 #define $ac_tr_hdr 1
3385 echo "$ac_t""no" 1>&6
3389 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3390 echo "configure:3391: checking for sys/wait.h that is POSIX.1 compatible" >&5
3392 cat > conftest.$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3395 #include <sys/types.h>
3396 #include <sys/wait.h>
3398 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3401 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3406 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3409 if { (eval echo configure:3410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3411 ac_cv_header_sys_wait_h=yes
3413 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3416 ac_cv_header_sys_wait_h=no
3420 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3421 if test $ac_cv_header_sys_wait_h = yes; then
3422 { test "$extra_verbose" = "yes" && cat << \EOF
3423 Defining HAVE_SYS_WAIT_H
3425 cat >> confdefs.h <<\EOF
3426 #define HAVE_SYS_WAIT_H 1
3432 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3433 echo "configure:3434: checking for ANSI C header files" >&5
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3444 { (eval echo configure:3445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3446 if test -z "$ac_err"; then
3448 ac_cv_header_stdc=yes
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3454 ac_cv_header_stdc=no
3458 if test $ac_cv_header_stdc = yes; then
3459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3466 egrep "memchr" >/dev/null 2>&1; then
3470 ac_cv_header_stdc=no
3476 if test $ac_cv_header_stdc = yes; then
3477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 egrep "free" >/dev/null 2>&1; then
3488 ac_cv_header_stdc=no
3494 if test $ac_cv_header_stdc = yes; then
3495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3500 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3501 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3503 int main () { int i; for (i = 0; i < 256; i++)
3504 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3508 if { (eval echo configure:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3516 ac_cv_header_stdc=no
3521 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3522 if test $ac_cv_header_stdc = yes; then
3523 { test "$extra_verbose" = "yes" && cat << \EOF
3524 Defining STDC_HEADERS
3526 cat >> confdefs.h <<\EOF
3527 #define STDC_HEADERS 1
3533 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3534 echo "configure:3535: checking whether time.h and sys/time.h may both be included" >&5
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #include <sys/types.h>
3540 #include <sys/time.h>
3546 if { (eval echo configure:3547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3548 ac_cv_header_time=yes
3550 echo "configure: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3553 ac_cv_header_time=no
3557 echo "$ac_t""$ac_cv_header_time" 1>&6
3558 if test $ac_cv_header_time = yes; then
3559 { test "$extra_verbose" = "yes" && cat << \EOF
3560 Defining TIME_WITH_SYS_TIME
3562 cat >> confdefs.h <<\EOF
3563 #define TIME_WITH_SYS_TIME 1
3569 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3570 echo "configure:3571: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 #include <sys/types.h>
3577 /* NetBSD declares sys_siglist in unistd.h. */
3578 #ifdef HAVE_UNISTD_H
3582 char *msg = *(sys_siglist + 1);
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 ac_cv_decl_sys_siglist=yes
3589 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3592 ac_cv_decl_sys_siglist=no
3596 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3597 if test $ac_cv_decl_sys_siglist = yes; then
3598 { test "$extra_verbose" = "yes" && cat << \EOF
3599 Defining SYS_SIGLIST_DECLARED
3601 cat >> confdefs.h <<\EOF
3602 #define SYS_SIGLIST_DECLARED 1
3609 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3610 echo "configure:3611: checking for struct utimbuf" >&5
3611 cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3614 #ifdef TIME_WITH_SYS_TIME
3615 #include <sys/time.h>
3618 #ifdef HAVE_SYS_TIME_H
3619 #include <sys/time.h>
3628 static struct utimbuf x; x.actime = x.modtime;
3631 if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3633 echo "$ac_t""yes" 1>&6
3634 { test "$extra_verbose" = "yes" && cat << \EOF
3635 Defining HAVE_STRUCT_UTIMBUF
3637 cat >> confdefs.h <<\EOF
3638 #define HAVE_STRUCT_UTIMBUF 1
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3646 echo "$ac_t""no" 1>&6
3650 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3651 echo "configure:3652: checking return type of signal handlers" >&5
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 #include <sys/types.h>
3662 extern "C" void (*signal (int, void (*)(int)))(int);
3664 void (*signal ()) ();
3671 if { (eval echo configure:3672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673 ac_cv_type_signal=void
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3678 ac_cv_type_signal=int
3682 echo "$ac_t""$ac_cv_type_signal" 1>&6
3683 { test "$extra_verbose" = "yes" && cat << EOF
3684 Defining RETSIGTYPE = $ac_cv_type_signal
3686 cat >> confdefs.h <<EOF
3687 #define RETSIGTYPE $ac_cv_type_signal
3692 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3693 echo "configure:3694: checking for size_t" >&5
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3698 #include <sys/types.h>
3704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3705 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3707 ac_cv_type_size_t=yes
3710 ac_cv_type_size_t=no
3714 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3715 if test $ac_cv_type_size_t = no; then
3716 { test "$extra_verbose" = "yes" && cat << \EOF
3717 Defining size_t = unsigned
3719 cat >> confdefs.h <<\EOF
3720 #define size_t unsigned
3726 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3727 echo "configure:3728: checking for pid_t" >&5
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 #include <sys/types.h>
3738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3741 ac_cv_type_pid_t=yes
3748 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3749 if test $ac_cv_type_pid_t = no; then
3750 { test "$extra_verbose" = "yes" && cat << \EOF
3751 Defining pid_t = int
3753 cat >> confdefs.h <<\EOF
3760 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3761 echo "configure:3762: checking for uid_t in sys/types.h" >&5
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 #include <sys/types.h>
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 egrep "uid_t" >/dev/null 2>&1; then
3771 ac_cv_type_uid_t=yes
3779 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3780 if test $ac_cv_type_uid_t = no; then
3781 { test "$extra_verbose" = "yes" && cat << \EOF
3782 Defining uid_t = int
3784 cat >> confdefs.h <<\EOF
3789 { test "$extra_verbose" = "yes" && cat << \EOF
3790 Defining gid_t = int
3792 cat >> confdefs.h <<\EOF
3799 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3800 echo "configure:3801: checking for mode_t" >&5
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 #include <sys/types.h>
3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3812 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3814 ac_cv_type_mode_t=yes
3817 ac_cv_type_mode_t=no
3821 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3822 if test $ac_cv_type_mode_t = no; then
3823 { test "$extra_verbose" = "yes" && cat << \EOF
3824 Defining mode_t = int
3826 cat >> confdefs.h <<\EOF
3833 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3834 echo "configure:3835: checking for off_t" >&5
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <sys/types.h>
3845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3846 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3848 ac_cv_type_off_t=yes
3855 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3856 if test $ac_cv_type_off_t = no; then
3857 { test "$extra_verbose" = "yes" && cat << \EOF
3858 Defining off_t = long
3860 cat >> confdefs.h <<\EOF
3867 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3868 echo "configure:3869: checking for ssize_t" >&5
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <sys/types.h>
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3882 ac_cv_type_ssize_t=yes
3885 ac_cv_type_ssize_t=no
3889 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3890 if test $ac_cv_type_ssize_t = no; then
3891 { test "$extra_verbose" = "yes" && cat << \EOF
3892 Defining ssize_t = int
3894 cat >> confdefs.h <<\EOF
3902 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3903 echo "configure:3904: checking for socklen_t" >&5
3904 cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #include <sys/socket.h>
3914 if { (eval echo configure:3915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3916 echo "$ac_t""yes" 1>&6
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include <sys/socket.h>
3926 int accept (int, struct sockaddr *, size_t *);
3932 if { (eval echo configure:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3935 echo "$ac_t""size_t" 1>&6
3936 { test "$extra_verbose" = "yes" && cat << \EOF
3937 Defining socklen_t = size_t
3939 cat >> confdefs.h <<\EOF
3940 #define socklen_t size_t
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3949 echo "$ac_t""int" 1>&6
3950 { test "$extra_verbose" = "yes" && cat << \EOF
3951 Defining socklen_t = int
3953 cat >> confdefs.h <<\EOF
3954 #define socklen_t int
3963 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3964 echo "configure:3965: checking for struct timeval" >&5
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 #ifdef TIME_WITH_SYS_TIME
3969 #include <sys/time.h>
3972 #ifdef HAVE_SYS_TIME_H
3973 #include <sys/time.h>
3979 static struct timeval x; x.tv_sec = x.tv_usec;
3982 if { (eval echo configure:3983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3984 echo "$ac_t""yes" 1>&6
3986 { test "$extra_verbose" = "yes" && cat << \EOF
3987 Defining HAVE_TIMEVAL
3989 cat >> confdefs.h <<\EOF
3990 #define HAVE_TIMEVAL 1
3995 echo "configure: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3998 echo "$ac_t""no" 1>&6
4003 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4004 echo "configure:4005: checking whether struct tm is in sys/time.h or time.h" >&5
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 #include <sys/types.h>
4012 struct tm *tp; tp->tm_sec;
4015 if { (eval echo configure:4016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4017 ac_cv_struct_tm=time.h
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4022 ac_cv_struct_tm=sys/time.h
4026 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4027 if test $ac_cv_struct_tm = sys/time.h; then
4028 { test "$extra_verbose" = "yes" && cat << \EOF
4029 Defining TM_IN_SYS_TIME
4031 cat >> confdefs.h <<\EOF
4032 #define TM_IN_SYS_TIME 1
4038 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4039 echo "configure:4040: checking for tm_zone in struct tm" >&5
4041 cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4044 #include <sys/types.h>
4045 #include <$ac_cv_struct_tm>
4047 struct tm tm; tm.tm_zone;
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4052 ac_cv_struct_tm_zone=yes
4054 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4057 ac_cv_struct_tm_zone=no
4061 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4062 if test "$ac_cv_struct_tm_zone" = yes; then
4063 { test "$extra_verbose" = "yes" && cat << \EOF
4064 Defining HAVE_TM_ZONE
4066 cat >> confdefs.h <<\EOF
4067 #define HAVE_TM_ZONE 1
4072 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4073 echo "configure:4074: checking for tzname" >&5
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4079 #ifndef tzname /* For SGI. */
4080 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4088 ac_cv_var_tzname=yes
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4097 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4098 if test $ac_cv_var_tzname = yes; then
4099 { test "$extra_verbose" = "yes" && cat << \EOF
4100 Defining HAVE_TZNAME
4102 cat >> confdefs.h <<\EOF
4103 #define HAVE_TZNAME 1
4111 echo $ac_n "checking for working const""... $ac_c" 1>&6
4112 echo "configure:4113: checking for working const" >&5
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4120 /* Ultrix mips cc rejects this. */
4121 typedef int charset[2]; const charset x;
4122 /* SunOS 4.1.1 cc rejects this. */
4123 char const *const *ccp;
4125 /* NEC SVR4.0.2 mips cc rejects this. */
4126 struct point {int x, y;};
4127 static struct point const zero = {0,0};
4128 /* AIX XL C 1.02.0.0 rejects this.
4129 It does not let you subtract one const X* pointer from another in an arm
4130 of an if-expression whose if-part is not a constant expression */
4131 const char *g = "string";
4132 ccp = &g + (g ? g-g : 0);
4133 /* HPUX 7.0 cc rejects these. */
4136 ccp = (char const *const *) p;
4137 { /* SCO 3.2v4 cc rejects this. */
4139 char const *s = 0 ? (char *) 0 : (char const *) 0;
4143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4145 const int *foo = &x[0];
4148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4149 typedef const int *iptr;
4153 { /* AIX XL C 1.02.0.0 rejects this saying
4154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4155 struct s { int j; const int *ap[3]; };
4156 struct s *b; b->j = 5;
4158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4164 if { (eval echo configure:4165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4175 echo "$ac_t""$ac_cv_c_const" 1>&6
4176 if test $ac_cv_c_const = no; then
4177 { test "$extra_verbose" = "yes" && cat << \EOF
4180 cat >> confdefs.h <<\EOF
4188 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4189 echo "configure:4190: checking whether ${MAKE-make} sets \${MAKE}" >&5
4190 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4192 cat > conftestmake <<\EOF
4194 @echo 'ac_maketemp="${MAKE}"'
4196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4197 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4198 if test -n "$ac_maketemp"; then
4199 eval ac_cv_prog_make_${ac_make}_set=yes
4201 eval ac_cv_prog_make_${ac_make}_set=no
4204 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4205 echo "$ac_t""yes" 1>&6
4208 echo "$ac_t""no" 1>&6
4209 SET_MAKE="MAKE=${MAKE-make}"
4213 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4214 echo "configure:4215: checking whether byte ordering is bigendian" >&5
4216 ac_cv_c_bigendian=unknown
4217 # See if sys/param.h defines the BYTE_ORDER macro.
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4221 #include <sys/types.h>
4222 #include <sys/param.h>
4225 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4230 if { (eval echo configure:4231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4232 # It does; now see whether it defined to BIG_ENDIAN or not.
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 #include <sys/types.h>
4237 #include <sys/param.h>
4240 #if BYTE_ORDER != BIG_ENDIAN
4245 if { (eval echo configure:4246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4247 ac_cv_c_bigendian=yes
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 ac_cv_c_bigendian=no
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4260 if test $ac_cv_c_bigendian = unknown; then
4261 cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4265 /* Are we little or big endian? From Harbison&Steele. */
4269 char c[sizeof (long)];
4272 exit (u.c[sizeof (long) - 1] == 1);
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4277 ac_cv_c_bigendian=no
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4283 ac_cv_c_bigendian=yes
4288 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4289 if test $ac_cv_c_bigendian = yes; then
4290 { test "$extra_verbose" = "yes" && cat << \EOF
4291 Defining WORDS_BIGENDIAN
4293 cat >> confdefs.h <<\EOF
4294 #define WORDS_BIGENDIAN 1
4301 echo $ac_n "checking size of short""... $ac_c" 1>&6
4302 echo "configure:4303: checking size of short" >&5
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4310 FILE *f=fopen("conftestval", "w");
4312 fprintf(f, "%d\n", sizeof(short));
4316 if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4318 ac_cv_sizeof_short=`cat conftestval`
4321 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4324 ac_cv_sizeof_short=0
4327 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4328 { test "$extra_verbose" = "yes" && cat << EOF
4329 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4331 cat >> confdefs.h <<EOF
4332 #define SIZEOF_SHORT $ac_cv_sizeof_short
4337 if test "$ac_cv_sizeof_short" = 0; then
4339 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4340 echo "*** PANIC *** Please examine config.log for compilation errors."
4343 echo $ac_n "checking size of int""... $ac_c" 1>&6
4344 echo "configure:4345: checking size of int" >&5
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4352 FILE *f=fopen("conftestval", "w");
4354 fprintf(f, "%d\n", sizeof(int));
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4360 ac_cv_sizeof_int=`cat conftestval`
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4369 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4370 { test "$extra_verbose" = "yes" && cat << EOF
4371 Defining SIZEOF_INT = $ac_cv_sizeof_int
4373 cat >> confdefs.h <<EOF
4374 #define SIZEOF_INT $ac_cv_sizeof_int
4379 echo $ac_n "checking size of long""... $ac_c" 1>&6
4380 echo "configure:4381: checking size of long" >&5
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4388 FILE *f=fopen("conftestval", "w");
4390 fprintf(f, "%d\n", sizeof(long));
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4396 ac_cv_sizeof_long=`cat conftestval`
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4405 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4406 { test "$extra_verbose" = "yes" && cat << EOF
4407 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4409 cat >> confdefs.h <<EOF
4410 #define SIZEOF_LONG $ac_cv_sizeof_long
4415 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4416 echo "configure:4417: checking size of long long" >&5
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4424 FILE *f=fopen("conftestval", "w");
4426 fprintf(f, "%d\n", sizeof(long long));
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4432 ac_cv_sizeof_long_long=`cat conftestval`
4435 echo "configure: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4438 ac_cv_sizeof_long_long=0
4441 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4442 { test "$extra_verbose" = "yes" && cat << EOF
4443 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4445 cat >> confdefs.h <<EOF
4446 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4451 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4452 echo "configure:4453: checking size of void *" >&5
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4460 FILE *f=fopen("conftestval", "w");
4462 fprintf(f, "%d\n", sizeof(void *));
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4468 ac_cv_sizeof_void_p=`cat conftestval`
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4474 ac_cv_sizeof_void_p=0
4477 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4478 { test "$extra_verbose" = "yes" && cat << EOF
4479 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4481 cat >> confdefs.h <<EOF
4482 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4488 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4489 echo "configure:4490: checking for long file names" >&5
4491 ac_cv_sys_long_file_names=yes
4492 # Test for long file names in all the places we know might matter:
4493 # . the current directory, where building will happen
4494 # $prefix/lib where we will be installing things
4495 # $exec_prefix/lib likewise
4496 # eval it to expand exec_prefix.
4497 # $TMPDIR if set, where it might want to write temporary files
4498 # if $TMPDIR is not set:
4499 # /tmp where it might want to write temporary files
4502 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4503 ac_tmpdirs="$TMPDIR"
4505 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4507 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4508 test -d $ac_dir || continue
4509 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4510 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4511 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4512 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4513 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4514 ac_cv_sys_long_file_names=no
4515 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4518 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4521 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4522 if test $ac_cv_sys_long_file_names = yes; then
4523 { test "$extra_verbose" = "yes" && cat << \EOF
4524 Defining HAVE_LONG_FILE_NAMES
4526 cat >> confdefs.h <<\EOF
4527 #define HAVE_LONG_FILE_NAMES 1
4534 echo $ac_n "checking for sin""... $ac_c" 1>&6
4535 echo "configure:4536: checking for sin" >&5
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 /* System header to define __stub macros and hopefully few prototypes,
4541 which can conflict with char sin(); below. */
4543 /* Override any gcc2 internal prototype to avoid an error. */
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4550 /* The GNU C library defines this for functions which it implements
4551 to always fail with ENOSYS. Some functions are actually named
4552 something starting with __ and the normal name is an alias. */
4553 #if defined (__stub_sin) || defined (__stub___sin)
4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4563 eval "ac_cv_func_sin=yes"
4565 echo "configure: failed program was:" >&5
4566 cat conftest.$ac_ext >&5
4568 eval "ac_cv_func_sin=no"
4572 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4573 echo "$ac_t""yes" 1>&6
4576 echo "$ac_t""no" 1>&6
4578 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4579 echo "configure:4580: checking for sin in -lm" >&5
4580 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4582 xe_check_libs=" -lm "
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 eval "ac_cv_lib_$ac_lib_var=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4602 eval "ac_cv_lib_$ac_lib_var=no"
4607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4608 echo "$ac_t""yes" 1>&6
4609 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4610 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4611 { test "$extra_verbose" = "yes" && cat << EOF
4614 cat >> confdefs.h <<EOF
4615 #define $ac_tr_lib 1
4619 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4622 echo "$ac_t""no" 1>&6
4629 { test "$extra_verbose" = "yes" && cat << \EOF
4630 Defining LISP_FLOAT_TYPE
4632 cat >> confdefs.h <<\EOF
4633 #define LISP_FLOAT_TYPE 1
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4643 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4646 if { (eval echo configure:4647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4648 { test "$extra_verbose" = "yes" && cat << \EOF
4649 Defining HAVE_INVERSE_HYPERBOLIC
4651 cat >> confdefs.h <<\EOF
4652 #define HAVE_INVERSE_HYPERBOLIC 1
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4662 echo "checking type of mail spool file locking" 1>&6
4663 echo "configure:4664: checking type of mail spool file locking" >&5
4664 for ac_func in lockf flock
4666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4667 echo "configure:4668: checking for $ac_func" >&5
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* System header to define __stub macros and hopefully few prototypes,
4673 which can conflict with char $ac_func(); below. */
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4682 /* The GNU C library defines this for functions which it implements
4683 to always fail with ENOSYS. Some functions are actually named
4684 something starting with __ and the normal name is an alias. */
4685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4695 eval "ac_cv_func_$ac_func=yes"
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 eval "ac_cv_func_$ac_func=no"
4704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4707 { test "$extra_verbose" = "yes" && cat << EOF
4708 Defining $ac_tr_func
4710 cat >> confdefs.h <<EOF
4711 #define $ac_tr_func 1
4716 echo "$ac_t""no" 1>&6
4720 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4721 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4722 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4723 if test -z "$mail_locking"; then
4724 case "$opsys" in cygwin* | mingw*)
4729 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4730 Defining MAIL_LOCK_LOCKF
4732 cat >> confdefs.h <<\EOF
4733 #define MAIL_LOCK_LOCKF 1
4737 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4738 Defining MAIL_LOCK_FLOCK
4740 cat >> confdefs.h <<\EOF
4741 #define MAIL_LOCK_FLOCK 1
4745 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4746 Defining MAIL_LOCK_LOCKING
4748 cat >> confdefs.h <<\EOF
4749 #define MAIL_LOCK_LOCKING 1
4753 elif test "$mail_locking" = "pop"; then
4756 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4757 Defining MAIL_LOCK_DOT
4759 cat >> confdefs.h <<\EOF
4760 #define MAIL_LOCK_DOT 1
4765 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4766 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4767 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4768 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4769 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4770 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4772 case "$opsys" in decosf*)
4774 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4775 echo "configure:4776: checking for cma_open in -lpthreads" >&5
4776 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4778 xe_check_libs=" -lpthreads "
4779 cat > conftest.$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4782 /* Override any gcc2 internal prototype to avoid an error. */
4783 /* We use char because int might match the return type of a gcc2
4784 builtin and then its argument prototype would still apply. */
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4793 eval "ac_cv_lib_$ac_lib_var=yes"
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4798 eval "ac_cv_lib_$ac_lib_var=no"
4803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4804 echo "$ac_t""yes" 1>&6
4805 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4807 { test "$extra_verbose" = "yes" && cat << EOF
4810 cat >> confdefs.h <<EOF
4811 #define $ac_tr_lib 1
4815 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4818 echo "$ac_t""no" 1>&6
4822 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4823 c_switch_site="$c_switch_site -threads" ;;
4826 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4827 echo "configure:4828: checking whether the -xildoff compiler flag is required" >&5
4828 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4829 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4830 then echo "$ac_t""no" 1>&6;
4831 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
4833 else echo "$ac_t""no" 1>&6
4836 if test "$opsys" = "sol2"; then
4837 if test "$os_release" -ge 56; then
4838 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4839 echo "configure:4840: checking for \"-z ignore\" linker flag" >&5
4840 case "`ld -h 2>&1`" in
4841 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4842 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4843 *) echo "$ac_t""no" 1>&6 ;;
4849 echo "checking "for specified window system"" 1>&6
4850 echo "configure:4851: checking "for specified window system"" >&5
4852 if test "$with_x11" != "no"; then
4853 test "$x_includes $x_libraries" != "NONE NONE" && \
4854 window_system=x11 with_x11=yes
4857 if test "$x_includes $x_libraries" = "NONE NONE" \
4858 -a -n "$OPENWINHOME" \
4859 -a "$OPENWINHOME" != "/usr/openwin" \
4860 -a -d "$OPENWINHOME"; then
4861 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4862 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4863 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4866 if test "$x_includes" = "NONE"; then
4867 for dir in "/usr/X11" "/usr/X11R6"; do
4868 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4872 if test "$x_libraries" = "NONE"; then
4873 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4874 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4878 # If we find X, set shell vars x_includes and x_libraries to the
4879 # paths, otherwise set no_x=yes.
4880 # Uses ac_ vars as temps to allow command line to override cache and checks.
4881 # --without-x overrides everything else, but does not touch the cache.
4882 echo $ac_n "checking for X""... $ac_c" 1>&6
4883 echo "configure:4884: checking for X" >&5
4885 # Check whether --with-x or --without-x was given.
4886 if test "${with_x+set}" = set; then
4891 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4892 if test "x$with_x" = xno; then
4893 # The user explicitly disabled X.
4896 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4897 # Both variables are already set.
4901 # One or both of the vars are not set, and there is no cached value.
4902 ac_x_includes=NO ac_x_libraries=NO
4904 if mkdir conftestdir; then
4906 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4907 cat > Imakefile <<'EOF'
4909 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4911 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4913 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4914 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4915 for ac_extension in a so sl; do
4916 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4917 test -f $ac_im_libdir/libX11.$ac_extension; then
4918 ac_im_usrlibdir=$ac_im_libdir; break
4921 # Screen out bogus values from the imake configuration. They are
4922 # bogus both because they are the default anyway, and because
4923 # using them would break gcc on systems where it needs fixed includes.
4924 case "$ac_im_incroot" in
4926 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4928 case "$ac_im_usrlibdir" in
4930 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4937 if test "$ac_x_includes" = NO; then
4938 # Guess where to find include files, by looking for this one X11 .h file.
4939 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4941 # First, try using that file with no special directory specified.
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 #include <$x_direct_test_include>
4947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4948 { (eval echo configure:4949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4950 if test -z "$ac_err"; then
4952 # We can compile using X headers with no special include directory.
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 # Look for the header file in a standard set of common directories.
4960 # Check X11 before X11Rn because it is often a symlink to the current release.
4963 /usr/X11R6/include \
4964 /usr/X11R5/include \
4965 /usr/X11R4/include \
4968 /usr/include/X11R6 \
4969 /usr/include/X11R5 \
4970 /usr/include/X11R4 \
4972 /usr/local/X11/include \
4973 /usr/local/X11R6/include \
4974 /usr/local/X11R5/include \
4975 /usr/local/X11R4/include \
4977 /usr/local/include/X11 \
4978 /usr/local/include/X11R6 \
4979 /usr/local/include/X11R5 \
4980 /usr/local/include/X11R4 \
4984 /usr/XFree86/include/X11 \
4987 /usr/local/include \
4988 /usr/unsupported/include \
4989 /usr/athena/include \
4990 /usr/local/x11r5/include \
4991 /usr/lpp/Xamples/include \
4993 /usr/openwin/include \
4994 /usr/openwin/share/include \
4997 if test -r "$ac_dir/$x_direct_test_include"; then
4998 ac_x_includes=$ac_dir
5004 fi # $ac_x_includes = NO
5006 if test "$ac_x_libraries" = NO; then
5007 # Check for the libraries.
5009 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5010 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5012 # See if we find them without any special options.
5013 # Don't add to $LIBS permanently.
5014 ac_save_LIBS="$LIBS"
5015 LIBS="-l$x_direct_test_library $LIBS"
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5021 ${x_direct_test_function}()
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 LIBS="$ac_save_LIBS"
5027 # We can link X programs with no special library path.
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5033 LIBS="$ac_save_LIBS"
5034 # First see if replacing the include by lib works.
5035 # Check X11 before X11Rn because it is often a symlink to the current release.
5036 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5047 /usr/local/X11/lib \
5048 /usr/local/X11R6/lib \
5049 /usr/local/X11R5/lib \
5050 /usr/local/X11R4/lib \
5052 /usr/local/lib/X11 \
5053 /usr/local/lib/X11R6 \
5054 /usr/local/lib/X11R5 \
5055 /usr/local/lib/X11R4 \
5059 /usr/XFree86/lib/X11 \
5063 /usr/unsupported/lib \
5065 /usr/local/x11r5/lib \
5066 /usr/lpp/Xamples/lib \
5070 /usr/openwin/share/lib \
5073 for ac_extension in a so sl; do
5074 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5075 ac_x_libraries=$ac_dir
5082 fi # $ac_x_libraries = NO
5084 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5085 # Didn't find X anywhere. Cache the known absence of X.
5086 ac_cv_have_x="have_x=no"
5088 # Record where we found X for the cache.
5089 ac_cv_have_x="have_x=yes \
5090 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5093 eval "$ac_cv_have_x"
5096 if test "$have_x" != yes; then
5097 echo "$ac_t""$have_x" 1>&6
5100 # If each of the values was on the command line, it overrides each guess.
5101 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5102 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5103 # Update the cache value to reflect the command line values.
5104 ac_cv_have_x="have_x=yes \
5105 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5106 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5109 if test "$no_x" = yes; then
5110 # Not all programs may use this symbol, but it does not hurt to define it.
5111 { test "$extra_verbose" = "yes" && cat << \EOF
5112 Defining X_DISPLAY_MISSING
5114 cat >> confdefs.h <<\EOF
5115 #define X_DISPLAY_MISSING 1
5119 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5121 if test -n "$x_includes"; then
5122 X_CFLAGS="$X_CFLAGS -I$x_includes"
5125 # It would also be nice to do this for all -L options, not just this one.
5126 if test -n "$x_libraries"; then
5127 X_LIBS="$X_LIBS -L$x_libraries"
5128 # For Solaris; some versions of Sun CC require a space after -R and
5129 # others require no space. Words are not sufficient . . . .
5130 case "`(uname -sr) 2>/dev/null`" in
5132 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5133 echo "configure:5134: checking whether -R must be followed by a space" >&5
5134 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5143 if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5153 if test $ac_R_nospace = yes; then
5154 echo "$ac_t""no" 1>&6
5155 X_LIBS="$X_LIBS -R$x_libraries"
5157 LIBS="$ac_xsave_LIBS -R $x_libraries"
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5166 if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5176 if test $ac_R_space = yes; then
5177 echo "$ac_t""yes" 1>&6
5178 X_LIBS="$X_LIBS -R $x_libraries"
5180 echo "$ac_t""neither works" 1>&6
5183 LIBS="$ac_xsave_LIBS"
5187 # Check for system-dependent libraries X programs must link with.
5188 # Do this before checking for the system-independent R6 libraries
5189 # (-lICE), since we may need -lsocket or whatever for X linking.
5191 if test "$ISC" = yes; then
5192 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5194 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5195 # libraries were built with DECnet support. And karl@cs.umb.edu says
5196 # the Alpha needs dnet_stub (dnet does not exist).
5197 if test "$with_dnet" = "no" ; then
5198 ac_cv_lib_dnet_dnet_ntoa=no
5201 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5202 echo "configure:5203: checking for dnet_ntoa in -ldnet" >&5
5203 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5205 xe_check_libs=" -ldnet "
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* Override any gcc2 internal prototype to avoid an error. */
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5218 if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5220 eval "ac_cv_lib_$ac_lib_var=yes"
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5225 eval "ac_cv_lib_$ac_lib_var=no"
5230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5231 echo "$ac_t""yes" 1>&6
5232 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5234 echo "$ac_t""no" 1>&6
5239 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5241 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5242 echo "configure:5243: checking for dnet_ntoa in -ldnet_stub" >&5
5243 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5245 xe_check_libs=" -ldnet_stub "
5246 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5249 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5258 if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5260 eval "ac_cv_lib_$ac_lib_var=yes"
5262 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5265 eval "ac_cv_lib_$ac_lib_var=no"
5270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5271 echo "$ac_t""yes" 1>&6
5272 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5274 echo "$ac_t""no" 1>&6
5280 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5281 # to get the SysV transport functions.
5282 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5284 # The nsl library prevents programs from opening the X display
5285 # on Irix 5.2, according to dickey@clark.net.
5286 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5287 echo "configure:5288: checking for gethostbyname" >&5
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5292 /* System header to define __stub macros and hopefully few prototypes,
5293 which can conflict with char gethostbyname(); below. */
5295 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5298 char gethostbyname();
5302 /* The GNU C library defines this for functions which it implements
5303 to always fail with ENOSYS. Some functions are actually named
5304 something starting with __ and the normal name is an alias. */
5305 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5313 if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5315 eval "ac_cv_func_gethostbyname=yes"
5317 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5320 eval "ac_cv_func_gethostbyname=no"
5324 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5325 echo "$ac_t""yes" 1>&6
5328 echo "$ac_t""no" 1>&6
5331 if test $ac_cv_func_gethostbyname = no; then
5333 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5334 echo "configure:5335: checking for gethostbyname in -lnsl" >&5
5335 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5337 xe_check_libs=" -lnsl "
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5344 char gethostbyname();
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5352 eval "ac_cv_lib_$ac_lib_var=yes"
5354 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5357 eval "ac_cv_lib_$ac_lib_var=no"
5362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5363 echo "$ac_t""yes" 1>&6
5364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5366 echo "$ac_t""no" 1>&6
5372 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5373 # socket/setsockopt and other routines are undefined under SCO ODT
5374 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5375 # on later versions), says simon@lia.di.epfl.ch: it contains
5376 # gethostby* variants that don't use the nameserver (or something).
5377 # -lsocket must be given before -lnsl if both are needed.
5378 # We assume that if connect needs -lnsl, so does gethostbyname.
5379 echo $ac_n "checking for connect""... $ac_c" 1>&6
5380 echo "configure:5381: checking for connect" >&5
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 /* System header to define __stub macros and hopefully few prototypes,
5386 which can conflict with char connect(); below. */
5388 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5395 /* The GNU C library defines this for functions which it implements
5396 to always fail with ENOSYS. Some functions are actually named
5397 something starting with __ and the normal name is an alias. */
5398 #if defined (__stub_connect) || defined (__stub___connect)
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5408 eval "ac_cv_func_connect=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 eval "ac_cv_func_connect=no"
5417 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5421 echo "$ac_t""no" 1>&6
5424 if test $ac_cv_func_connect = no; then
5426 xe_msg_checking="for connect in -lsocket"
5427 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5428 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5429 echo "configure:5430: checking "$xe_msg_checking"" >&5
5430 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5432 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5436 /* Override any gcc2 internal prototype to avoid an error. */
5437 /* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5447 eval "ac_cv_lib_$ac_lib_var=yes"
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 eval "ac_cv_lib_$ac_lib_var=no"
5457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5458 echo "$ac_t""yes" 1>&6
5459 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5461 echo "$ac_t""no" 1>&6
5467 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5468 echo $ac_n "checking for remove""... $ac_c" 1>&6
5469 echo "configure:5470: checking for remove" >&5
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5474 /* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char remove(); below. */
5477 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5484 /* The GNU C library defines this for functions which it implements
5485 to always fail with ENOSYS. Some functions are actually named
5486 something starting with __ and the normal name is an alias. */
5487 #if defined (__stub_remove) || defined (__stub___remove)
5495 if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5497 eval "ac_cv_func_remove=yes"
5499 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5502 eval "ac_cv_func_remove=no"
5506 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5507 echo "$ac_t""yes" 1>&6
5510 echo "$ac_t""no" 1>&6
5513 if test $ac_cv_func_remove = no; then
5515 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5516 echo "configure:5517: checking for remove in -lposix" >&5
5517 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5519 xe_check_libs=" -lposix "
5520 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5534 eval "ac_cv_lib_$ac_lib_var=yes"
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5539 eval "ac_cv_lib_$ac_lib_var=no"
5544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5545 echo "$ac_t""yes" 1>&6
5546 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5548 echo "$ac_t""no" 1>&6
5554 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5555 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5556 echo "configure:5557: checking for shmat" >&5
5558 cat > conftest.$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 /* System header to define __stub macros and hopefully few prototypes,
5562 which can conflict with char shmat(); below. */
5564 /* Override any gcc2 internal prototype to avoid an error. */
5565 /* We use char because int might match the return type of a gcc2
5566 builtin and then its argument prototype would still apply. */
5571 /* The GNU C library defines this for functions which it implements
5572 to always fail with ENOSYS. Some functions are actually named
5573 something starting with __ and the normal name is an alias. */
5574 #if defined (__stub_shmat) || defined (__stub___shmat)
5582 if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5584 eval "ac_cv_func_shmat=yes"
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5589 eval "ac_cv_func_shmat=no"
5593 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5594 echo "$ac_t""yes" 1>&6
5597 echo "$ac_t""no" 1>&6
5600 if test $ac_cv_func_shmat = no; then
5602 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5603 echo "configure:5604: checking for shmat in -lipc" >&5
5604 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5606 xe_check_libs=" -lipc "
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5610 /* Override any gcc2 internal prototype to avoid an error. */
5611 /* We use char because int might match the return type of a gcc2
5612 builtin and then its argument prototype would still apply. */
5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621 eval "ac_cv_lib_$ac_lib_var=yes"
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 eval "ac_cv_lib_$ac_lib_var=no"
5631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5632 echo "$ac_t""yes" 1>&6
5633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5635 echo "$ac_t""no" 1>&6
5642 # Check for libraries that X11R6 Xt/Xaw programs need.
5643 ac_save_LDFLAGS="$LDFLAGS"
5644 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5645 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5646 # check for ICE first), but we must link in the order -lSM -lICE or
5647 # we get undefined symbols. So assume we have SM if we have ICE.
5648 # These have to be linked with before -lX11, unlike the other
5649 # libraries we check for below, so use a different variable.
5650 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5652 xe_msg_checking="for IceConnectionNumber in -lICE"
5653 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5654 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5655 echo "configure:5656: checking "$xe_msg_checking"" >&5
5656 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5658 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5659 cat > conftest.$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5662 /* Override any gcc2 internal prototype to avoid an error. */
5663 /* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */
5665 char IceConnectionNumber();
5668 IceConnectionNumber()
5671 if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5673 eval "ac_cv_lib_$ac_lib_var=yes"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5678 eval "ac_cv_lib_$ac_lib_var=no"
5683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5684 echo "$ac_t""yes" 1>&6
5685 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5687 echo "$ac_t""no" 1>&6
5691 LDFLAGS="$ac_save_LDFLAGS"
5694 # Autoconf claims to find X library and include dirs for us.
5695 if test "$no_x" = "yes"
5696 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5697 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5702 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5703 no ) window_system=none HAVE_X_WINDOWS=no ;;
5706 if test "$with_x11" = "yes"; then
5707 { test "$extra_verbose" = "yes" && cat << \EOF
5708 Defining HAVE_X_WINDOWS
5710 cat >> confdefs.h <<\EOF
5711 #define HAVE_X_WINDOWS 1
5715 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5716 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5718 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5719 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5720 if test -d "$lib_dir" -a -d "$inc_dir"; then
5721 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5722 x_libraries="$lib_dir $x_libraries"
5723 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5725 case "$x_includes" in "$inc_dir"* ) ;; *)
5726 x_includes="$inc_dir $x_includes"
5727 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5732 for rel in "X11R6" "X11R5" "X11R4"; do
5733 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5734 if test -d "$lib_dir" -a -d "$inc_dir"; then
5735 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5736 x_libraries="$x_libraries $lib_dir"
5737 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5739 case "$x_includes" in "$inc_dir"* ) ;; *)
5740 x_includes="$x_includes $inc_dir"
5741 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5746 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
5748 ld_switch_x_site="$X_LIBS"
5751 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5752 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5753 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5755 runpath="" runpath_dirs=""
5756 if test -n "$LD_RUN_PATH"; then
5757 runpath="$LD_RUN_PATH"
5758 elif test "$GCC" = "yes"; then
5759 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5760 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5761 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5762 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5763 case "$arg" in P,* | -L* | -R* )
5764 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5766 xe_runpath_dir="$dir"
5767 test "$xe_runpath_dir" != "/lib" -a \
5768 "$xe_runpath_dir" != "/usr/lib" -a \
5769 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5770 eval "$xe_add_unique_runpath_dir"
5775 ld_switch_run="$ld_switch_run_save"
5778 for arg in $ld_switch_site $ld_switch_x_site; do
5779 case "$arg" in -L*) {
5780 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5781 test "$xe_runpath_dir" != "/lib" -a \
5782 "$xe_runpath_dir" != "/usr/lib" -a \
5783 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5784 eval "$xe_add_unique_runpath_dir"
5787 if test "$opsys $need_motif" = "sol2 yes"; then
5788 xe_runpath_dir="/opt/SUNWdt/lib";
5789 eval "$xe_add_unique_runpath_dir";
5792 if test -n "$runpath"; then
5793 ld_switch_run="${dash_r}${runpath}"
5795 if test "$GCC" = "yes"; then
5796 set x $ld_switch_run; shift; ld_switch_run=""
5797 while test -n "$1"; do
5799 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5800 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5802 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5807 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5812 if test "$extra_verbose" = "yes"; then
5813 echo; echo "X11 compilation variables:"
5814 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5819 if test "$x_includes" != NONE; then
5820 for i in $x_includes; do
5821 if test -d "$i/bitmaps"; then
5822 bitmapdirs="$i/bitmaps:$bitmapdirs"
5824 if test -d "$i/X11/bitmaps"; then
5825 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5828 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5830 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5831 Defining BITMAPDIR = "$bitmapdirs"
5833 cat >> confdefs.h <<EOF
5834 #define BITMAPDIR "$bitmapdirs"
5839 echo "checking for X defines extracted by xmkmf" 1>&6
5840 echo "configure:5841: checking for X defines extracted by xmkmf" >&5
5842 if mkdir conftestdir; then
5844 cat > Imakefile <<'EOF'
5846 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5848 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5850 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5854 for word in $xmkmf_defines; do
5855 case "$word" in -D* )
5856 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
5858 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
5861 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5862 if test "$val" = "1"
5863 then { test "$extra_verbose" = "yes" && cat << EOF
5866 cat >> confdefs.h <<EOF
5871 else { test "$extra_verbose" = "yes" && cat << EOF
5872 Defining $sym = $val
5874 cat >> confdefs.h <<EOF
5885 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5886 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5887 echo "configure:5888: checking for X11/Intrinsic.h" >&5
5889 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5892 #include <X11/Intrinsic.h>
5894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5895 { (eval echo configure:5896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5897 if test -z "$ac_err"; then
5899 eval "ac_cv_header_$ac_safe=yes"
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5905 eval "ac_cv_header_$ac_safe=no"
5908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5909 echo "$ac_t""yes" 1>&6
5912 echo "$ac_t""no" 1>&6
5913 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5918 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5919 echo "configure:5920: checking for XOpenDisplay in -lX11" >&5
5920 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5922 xe_check_libs=" -lX11 "
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926 /* Override any gcc2 internal prototype to avoid an error. */
5927 /* We use char because int might match the return type of a gcc2
5928 builtin and then its argument prototype would still apply. */
5929 char XOpenDisplay();
5935 if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5937 eval "ac_cv_lib_$ac_lib_var=yes"
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5942 eval "ac_cv_lib_$ac_lib_var=no"
5947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5948 echo "$ac_t""yes" 1>&6
5951 echo "$ac_t""no" 1>&6
5955 if test "$have_lib_x11" != "yes"; then
5957 xe_msg_checking="for XGetFontProperty in -lX11"
5958 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5959 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5960 echo "configure:5961: checking "$xe_msg_checking"" >&5
5961 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5963 xe_check_libs=" -lX11 -b i486-linuxaout"
5964 cat > conftest.$ac_ext <<EOF
5965 #line 5966 "configure"
5966 #include "confdefs.h"
5967 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5970 char XGetFontProperty();
5976 if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978 eval "ac_cv_lib_$ac_lib_var=yes"
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5983 eval "ac_cv_lib_$ac_lib_var=no"
5988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5989 echo "$ac_t""yes" 1>&6
5990 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5992 echo "$ac_t""no" 1>&6
5993 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5999 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6002 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6003 echo "configure:6004: checking for XShapeSelectInput in -lXext" >&5
6004 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6006 xe_check_libs=" -lXext "
6007 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6010 /* Override any gcc2 internal prototype to avoid an error. */
6011 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */
6013 char XShapeSelectInput();
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021 eval "ac_cv_lib_$ac_lib_var=yes"
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6026 eval "ac_cv_lib_$ac_lib_var=no"
6031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6032 echo "$ac_t""yes" 1>&6
6033 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6035 echo "$ac_t""no" 1>&6
6041 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6042 echo "configure:6043: checking for XtOpenDisplay in -lXt" >&5
6043 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6045 xe_check_libs=" -lXt "
6046 cat > conftest.$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6049 /* Override any gcc2 internal prototype to avoid an error. */
6050 /* We use char because int might match the return type of a gcc2
6051 builtin and then its argument prototype would still apply. */
6052 char XtOpenDisplay();
6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 eval "ac_cv_lib_$ac_lib_var=yes"
6062 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6065 eval "ac_cv_lib_$ac_lib_var=no"
6070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6071 echo "$ac_t""yes" 1>&6
6072 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6074 echo "$ac_t""no" 1>&6
6075 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6080 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6081 echo "configure:6082: checking the version of X11 being used" >&5
6082 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6085 #include <X11/Intrinsic.h>
6086 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6090 ./conftest foobar; x11_release=$?
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6099 echo "$ac_t""R${x11_release}" 1>&6
6100 { test "$extra_verbose" = "yes" && cat << EOF
6101 Defining THIS_IS_X11R${x11_release}
6103 cat >> confdefs.h <<EOF
6104 #define THIS_IS_X11R${x11_release} 1
6109 for ac_func in XConvertCase
6111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6112 echo "configure:6113: checking for $ac_func" >&5
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char $ac_func(); below. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6140 eval "ac_cv_func_$ac_func=yes"
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 eval "ac_cv_func_$ac_func=no"
6149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6150 echo "$ac_t""yes" 1>&6
6151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6152 { test "$extra_verbose" = "yes" && cat << EOF
6153 Defining $ac_tr_func
6155 cat >> confdefs.h <<EOF
6156 #define $ac_tr_func 1
6161 echo "$ac_t""no" 1>&6
6166 for ac_hdr in X11/Xlocale.h
6168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6170 echo "configure:6171: checking for $ac_hdr" >&5
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6178 { (eval echo configure:6179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6180 if test -z "$ac_err"; then
6182 eval "ac_cv_header_$ac_safe=yes"
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 eval "ac_cv_header_$ac_safe=no"
6191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6192 echo "$ac_t""yes" 1>&6
6193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6194 { test "$extra_verbose" = "yes" && cat << EOF
6197 cat >> confdefs.h <<EOF
6198 #define $ac_tr_hdr 1
6203 echo "$ac_t""no" 1>&6
6208 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6209 echo "configure:6210: checking for XFree86" >&5
6210 if test -d "/usr/X386/include" -o \
6211 -f "/etc/XF86Config" -o \
6212 -f "/etc/X11/XF86Config" -o \
6213 -f "/usr/X11R6/lib/X11/XF86Config"; then
6214 echo "$ac_t""yes" 1>&6
6215 { test "$extra_verbose" = "yes" && cat << \EOF
6216 Defining HAVE_XFREE386
6218 cat >> confdefs.h <<\EOF
6219 #define HAVE_XFREE386 1
6224 echo "$ac_t""no" 1>&6
6227 test -z "$with_xmu" && {
6228 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6229 echo "configure:6230: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6230 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6232 xe_check_libs=" -lXmu "
6233 cat > conftest.$ac_ext <<EOF
6234 #line 6235 "configure"
6235 #include "confdefs.h"
6236 /* Override any gcc2 internal prototype to avoid an error. */
6237 /* We use char because int might match the return type of a gcc2
6238 builtin and then its argument prototype would still apply. */
6239 char XmuReadBitmapDataFromFile();
6242 XmuReadBitmapDataFromFile()
6245 if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6247 eval "ac_cv_lib_$ac_lib_var=yes"
6249 echo "configure: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6252 eval "ac_cv_lib_$ac_lib_var=no"
6257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6258 echo "$ac_t""yes" 1>&6
6261 echo "$ac_t""no" 1>&6
6266 if test "$with_xmu" = "no"; then
6267 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6268 echo " xemacs will be linked with \"xmu.o\""
6271 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6272 { test "$extra_verbose" = "yes" && cat << \EOF
6275 cat >> confdefs.h <<\EOF
6283 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6284 echo "configure:6285: checking for main in -lXbsd" >&5
6285 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6287 xe_check_libs=" -lXbsd "
6288 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6296 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6298 eval "ac_cv_lib_$ac_lib_var=yes"
6300 echo "configure: failed program was:" >&5
6301 cat conftest.$ac_ext >&5
6303 eval "ac_cv_lib_$ac_lib_var=no"
6308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6309 echo "$ac_t""yes" 1>&6
6310 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6312 echo "$ac_t""no" 1>&6
6317 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6318 if test "$GCC" = "yes"; then
6319 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6320 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6323 "xlc" ) CC="xlc_r" ;;
6324 "xlC" ) CC="xlC_r" ;;
6331 if test "$with_msw" != "no"; then
6332 echo "checking for MS-Windows" 1>&6
6333 echo "configure:6334: checking for MS-Windows" >&5
6335 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6336 echo "configure:6337: checking for main in -lgdi32" >&5
6337 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6339 xe_check_libs=" -lgdi32 "
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6348 if { (eval echo configure:6349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6350 eval "ac_cv_lib_$ac_lib_var=yes"
6352 echo "configure: failed program was:" >&5
6353 cat conftest.$ac_ext >&5
6355 eval "ac_cv_lib_$ac_lib_var=no"
6360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6361 echo "$ac_t""yes" 1>&6
6364 echo "$ac_t""no" 1>&6
6368 if test "$with_msw" = "yes"; then
6369 { test "$extra_verbose" = "yes" && cat << \EOF
6370 Defining HAVE_MS_WINDOWS
6372 cat >> confdefs.h <<\EOF
6373 #define HAVE_MS_WINDOWS 1
6377 install_pp="$blddir/lib-src/installexe.sh"
6378 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6379 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6380 if test "$window_system" != x11; then
6382 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6383 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6384 echo " xemacs will be linked with \"scrollbar-msw.o\""
6386 test "$with_menubars" != "no" && with_menubars=msw \
6387 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6388 echo " xemacs will be linked with \"menubar-msw.o\""
6390 test "$with_toolbars" != "no" && with_toolbars=msw \
6391 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6392 echo " xemacs will be linked with \"toolbar-msw.o\""
6394 test "$with_dialogs" != "no" && with_dialogs=msw \
6395 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6396 echo " xemacs will be linked with \"dialog-msw.o\""
6398 test "$with_widgets" != "no" && with_widgets=msw
6400 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6401 echo " xemacs will be linked with \"scrollbar-msw.o\""
6403 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6404 echo " xemacs will be linked with \"menubar-msw.o\""
6406 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6407 echo " xemacs will be linked with \"toolbar-msw.o\""
6409 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6410 echo " xemacs will be linked with \"dialog-msw.o\""
6413 cat > conftest.$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6417 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6419 if { (eval echo configure:6420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6421 { test "$extra_verbose" = "yes" && cat << \EOF
6422 Defining HAVE_MSG_SELECT
6424 cat >> confdefs.h <<\EOF
6425 #define HAVE_MSG_SELECT 1
6431 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6435 with_file_coding=yes
6436 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
6437 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\""
6444 test -z "$window_system" && window_system="none"
6446 if test "$window_system" = "none"; then
6447 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6449 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6450 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6452 eval "with_${feature}=no"
6455 test -z "$with_toolbars" && with_toolbars=yes
6458 if test "$with_msw" != "yes"; then
6459 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6461 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6462 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6464 eval "with_${feature}=no"
6470 if test "$with_x11" != "yes"; then
6471 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6473 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6474 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6476 eval "with_${feature}=no"
6482 case "$window_system" in
6483 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6484 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6485 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6488 case "$x_libraries" in *X11R4* )
6489 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6490 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6493 echo "checking for WM_COMMAND option" 1>&6
6494 echo "configure:6495: checking for WM_COMMAND option" >&5;
6495 if test "$with_wmcommand" != "no"; then
6496 { test "$extra_verbose" = "yes" && cat << \EOF
6497 Defining HAVE_WMCOMMAND
6499 cat >> confdefs.h <<\EOF
6500 #define HAVE_WMCOMMAND 1
6506 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6507 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6508 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6509 echo "configure:6510: checking for X11/Xauth.h" >&5
6511 cat > conftest.$ac_ext <<EOF
6512 #line 6513 "configure"
6513 #include "confdefs.h"
6514 #include <X11/Xauth.h>
6516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6517 { (eval echo configure:6518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6519 if test -z "$ac_err"; then
6521 eval "ac_cv_header_$ac_safe=yes"
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6527 eval "ac_cv_header_$ac_safe=no"
6530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6531 echo "$ac_t""yes" 1>&6
6534 echo "$ac_t""no" 1>&6
6538 test -z "$with_xauth" && {
6539 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6540 echo "configure:6541: checking for XauGetAuthByAddr in -lXau" >&5
6541 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6543 xe_check_libs=" -lXau "
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6550 char XauGetAuthByAddr();
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558 eval "ac_cv_lib_$ac_lib_var=yes"
6560 echo "configure: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6563 eval "ac_cv_lib_$ac_lib_var=no"
6568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6569 echo "$ac_t""yes" 1>&6
6572 echo "$ac_t""no" 1>&6
6577 test -z "$with_xauth" && with_xauth=yes
6578 if test "$with_xauth" = "yes"; then
6579 { test "$extra_verbose" = "yes" && cat << \EOF
6582 cat >> confdefs.h <<\EOF
6583 #define HAVE_XAUTH 1
6589 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
6597 if test "$with_tooltalk" != "no" ; then
6598 for dir in "" "Tt/" "desktop/" ; do
6599 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6600 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6601 echo "configure:6602: checking for ${dir}tt_c.h" >&5
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 #include <${dir}tt_c.h>
6608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6609 { (eval echo configure:6610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6611 if test -z "$ac_err"; then
6613 eval "ac_cv_header_$ac_safe=yes"
6616 echo "configure: failed program was:" >&5
6617 cat conftest.$ac_ext >&5
6619 eval "ac_cv_header_$ac_safe=no"
6622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6
6624 tt_c_h_file="${dir}tt_c.h"; break
6626 echo "$ac_t""no" 1>&6
6630 if test -z "$tt_c_h_file"; then
6631 if test "$with_tooltalk" = "yes"; then
6632 (echo "$progname: Usage error:"
6633 echo " " "Unable to find required tooltalk header files."
6634 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6639 if test "$with_tooltalk" != "no" ; then
6640 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6642 xe_msg_checking="for tt_message_create in -ltt"
6643 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6644 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6645 echo "configure:6646: checking "$xe_msg_checking"" >&5
6646 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6648 xe_check_libs=" -ltt $extra_libs"
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6655 char tt_message_create();
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 eval "ac_cv_lib_$ac_lib_var=yes"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 eval "ac_cv_lib_$ac_lib_var=no"
6673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6674 echo "$ac_t""yes" 1>&6
6675 tt_libs="-ltt $extra_libs"; break
6677 echo "$ac_t""no" 1>&6
6683 if test -z "$tt_libs"; then
6684 if test "$with_tooltalk" = "yes"; then
6685 (echo "$progname: Usage error:"
6686 echo " " "Unable to find required tooltalk libraries."
6687 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6692 test -z "$with_tooltalk" && with_tooltalk=yes
6693 if test "$with_tooltalk" = "yes"; then
6694 { test "$extra_verbose" = "yes" && cat << \EOF
6697 cat >> confdefs.h <<\EOF
6702 { test "$extra_verbose" = "yes" && cat << EOF
6703 Defining TT_C_H_FILE = "$tt_c_h_file"
6705 cat >> confdefs.h <<EOF
6706 #define TT_C_H_FILE "$tt_c_h_file"
6710 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6711 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6712 echo " xemacs will be linked with \"tooltalk.o\""
6716 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6717 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6718 echo "configure:6719: checking for Dt/Dt.h" >&5
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6726 { (eval echo configure:6727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6728 if test -z "$ac_err"; then
6730 eval "ac_cv_header_$ac_safe=yes"
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6736 eval "ac_cv_header_$ac_safe=no"
6739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6740 echo "$ac_t""yes" 1>&6
6743 echo "$ac_t""no" 1>&6
6747 test -z "$with_cde" && {
6748 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6749 echo "configure:6750: checking for DtDndDragStart in -lDtSvc" >&5
6750 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6752 xe_check_libs=" -lDtSvc "
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char DtDndDragStart();
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6767 eval "ac_cv_lib_$ac_lib_var=yes"
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 eval "ac_cv_lib_$ac_lib_var=no"
6777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6778 echo "$ac_t""yes" 1>&6
6781 echo "$ac_t""no" 1>&6
6786 test -z "$with_cde" && with_cde=yes
6787 if test "$with_dragndrop" = no; then
6788 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6791 if test "$with_cde" = "yes" ; then
6792 { test "$extra_verbose" = "yes" && cat << \EOF
6795 cat >> confdefs.h <<\EOF
6800 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6801 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6802 with_tooltalk=yes # CDE requires Tooltalk
6803 need_motif=yes # CDE requires Motif
6806 test "$window_system" != "x11" && with_offix=no
6807 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6808 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6811 if test "$with_dragndrop" = no; then
6812 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6815 if test "$with_cde" = yes; then
6816 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6819 test -z "$with_offix" && with_offix=no
6820 if test "$with_offix" = "yes"; then
6821 { test "$extra_verbose" = "yes" && cat << \EOF
6822 Defining HAVE_OFFIX_DND
6824 cat >> confdefs.h <<\EOF
6825 #define HAVE_OFFIX_DND 1
6829 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6830 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6833 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6834 echo "configure:6835: checking if drag and drop API is needed" >&5
6835 if test "$with_dragndrop" != "no" ; then
6836 if test -n "$dragndrop_proto" ; then
6838 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6839 { test "$extra_verbose" = "yes" && cat << \EOF
6840 Defining HAVE_DRAGNDROP
6842 cat >> confdefs.h <<\EOF
6843 #define HAVE_DRAGNDROP 1
6847 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6850 echo "$ac_t""no" 1>&6
6854 echo "checking for LDAP" 1>&6
6855 echo "configure:6856: checking for LDAP" >&5
6856 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6857 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6858 echo "configure:6859: checking for ldap.h" >&5
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6866 { (eval echo configure:6867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6868 if test -z "$ac_err"; then
6870 eval "ac_cv_header_$ac_safe=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 eval "ac_cv_header_$ac_safe=no"
6879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6880 echo "$ac_t""yes" 1>&6
6883 echo "$ac_t""no" 1>&6
6887 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6888 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6889 echo "configure:6890: checking for lber.h" >&5
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6897 { (eval echo configure:6898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6899 if test -z "$ac_err"; then
6901 eval "ac_cv_header_$ac_safe=yes"
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 eval "ac_cv_header_$ac_safe=no"
6910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6911 echo "$ac_t""yes" 1>&6
6914 echo "$ac_t""no" 1>&6
6918 if test "$with_ldap" != "no"; then
6920 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6921 echo "configure:6922: checking for ldap_search in -lldap" >&5
6922 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6924 xe_check_libs=" -lldap "
6925 cat > conftest.$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6928 /* Override any gcc2 internal prototype to avoid an error. */
6929 /* We use char because int might match the return type of a gcc2
6930 builtin and then its argument prototype would still apply. */
6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939 eval "ac_cv_lib_$ac_lib_var=yes"
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 eval "ac_cv_lib_$ac_lib_var=no"
6949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6950 echo "$ac_t""yes" 1>&6
6951 with_ldap_nolber=yes
6953 echo "$ac_t""no" 1>&6
6958 test "$with_ldap_nolber" = "no" && {
6959 xe_msg_checking="for ldap_open in -lldap"
6960 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6961 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6962 echo "configure:6963: checking "$xe_msg_checking"" >&5
6963 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6965 xe_check_libs=" -lldap -llber"
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 /* Override any gcc2 internal prototype to avoid an error. */
6970 /* We use char because int might match the return type of a gcc2
6971 builtin and then its argument prototype would still apply. */
6978 if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980 eval "ac_cv_lib_$ac_lib_var=yes"
6982 echo "configure: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6985 eval "ac_cv_lib_$ac_lib_var=no"
6990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6991 echo "$ac_t""yes" 1>&6
6994 echo "$ac_t""no" 1>&6
6999 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7000 xe_msg_checking="for ldap_open in -lldap"
7001 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7002 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7003 echo "configure:7004: checking "$xe_msg_checking"" >&5
7004 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7006 xe_check_libs=" -lldap -llber -lkrb"
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 /* Override any gcc2 internal prototype to avoid an error. */
7011 /* We use char because int might match the return type of a gcc2
7012 builtin and then its argument prototype would still apply. */
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7021 eval "ac_cv_lib_$ac_lib_var=yes"
7023 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5
7026 eval "ac_cv_lib_$ac_lib_var=no"
7031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7032 echo "$ac_t""yes" 1>&6
7035 echo "$ac_t""no" 1>&6
7040 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7041 xe_msg_checking="for ldap_open in -lldap"
7042 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7043 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7044 echo "configure:7045: checking "$xe_msg_checking"" >&5
7045 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7047 xe_check_libs=" -lldap -llber -lkrb -ldes"
7048 cat > conftest.$ac_ext <<EOF
7049 #line 7050 "configure"
7050 #include "confdefs.h"
7051 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7060 if { (eval echo configure:7061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7062 eval "ac_cv_lib_$ac_lib_var=yes"
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7067 eval "ac_cv_lib_$ac_lib_var=no"
7072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7073 echo "$ac_t""yes" 1>&6
7074 with_ldap_krbdes=yes
7076 echo "$ac_t""no" 1>&6
7081 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
7083 if test "$with_ldap" = "yes"; then
7084 { test "$extra_verbose" = "yes" && cat << \EOF
7087 cat >> confdefs.h <<\EOF
7092 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7093 echo " xemacs will be linked with \"eldap.o\""
7095 if test "$with_ldap_nolber" = "yes" ; then
7096 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7098 if test "$with_ldap_krb" = "yes" ; then
7099 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7101 if test "$with_ldap_krbdes" = "yes" ; then
7102 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7103 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7105 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7106 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7108 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7111 echo "configure:7112: checking for $ac_func" >&5
7113 cat > conftest.$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7116 /* System header to define __stub macros and hopefully few prototypes,
7117 which can conflict with char $ac_func(); below. */
7119 /* Override any gcc2 internal prototype to avoid an error. */
7120 /* We use char because int might match the return type of a gcc2
7121 builtin and then its argument prototype would still apply. */
7126 /* The GNU C library defines this for functions which it implements
7127 to always fail with ENOSYS. Some functions are actually named
7128 something starting with __ and the normal name is an alias. */
7129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7137 if { (eval echo configure:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7139 eval "ac_cv_func_$ac_func=yes"
7141 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7144 eval "ac_cv_func_$ac_func=no"
7148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7149 echo "$ac_t""yes" 1>&6
7150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7151 { test "$extra_verbose" = "yes" && cat << EOF
7152 Defining $ac_tr_func
7154 cat >> confdefs.h <<EOF
7155 #define $ac_tr_func 1
7160 echo "$ac_t""no" 1>&6
7166 if test "$with_postgresql" != "no"; then
7167 echo "checking for PostgreSQL" 1>&6
7168 echo "configure:7169: checking for PostgreSQL" >&5
7170 for header_dir in "" "pgsql/" "postgresql/"; do
7171 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7172 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7173 echo "configure:7174: checking for ${header_dir}libpq-fe.h" >&5
7175 cat > conftest.$ac_ext <<EOF
7176 #line 7177 "configure"
7177 #include "confdefs.h"
7178 #include <${header_dir}libpq-fe.h>
7180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7181 { (eval echo configure:7182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7183 if test -z "$ac_err"; then
7185 eval "ac_cv_header_$ac_safe=yes"
7188 echo "configure: failed program was:" >&5
7189 cat conftest.$ac_ext >&5
7191 eval "ac_cv_header_$ac_safe=no"
7194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7195 echo "$ac_t""yes" 1>&6
7196 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7198 echo "$ac_t""no" 1>&6
7203 test -n "$libpq_fe_h_file" && {
7204 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7205 echo "configure:7206: checking for PQconnectdb in -lpq" >&5
7206 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7208 xe_check_libs=" -lpq "
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7212 /* Override any gcc2 internal prototype to avoid an error. */
7213 /* We use char because int might match the return type of a gcc2
7214 builtin and then its argument prototype would still apply. */
7221 if { (eval echo configure:7222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7223 eval "ac_cv_lib_$ac_lib_var=yes"
7225 echo "configure: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7228 eval "ac_cv_lib_$ac_lib_var=no"
7233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7234 echo "$ac_t""yes" 1>&6
7237 echo "$ac_t""no" 1>&6
7242 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7244 { test "$extra_verbose" = "yes" && cat << \EOF
7245 Defining HAVE_POSTGRESQL
7247 cat >> confdefs.h <<\EOF
7248 #define HAVE_POSTGRESQL 1
7253 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7254 echo "configure:7255: checking for PQconnectStart in -lpq" >&5
7255 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7257 xe_check_libs=" -lpq "
7258 cat > conftest.$ac_ext <<EOF
7259 #line 7260 "configure"
7260 #include "confdefs.h"
7261 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7264 char PQconnectStart();
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7272 eval "ac_cv_lib_$ac_lib_var=yes"
7274 echo "configure: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7277 eval "ac_cv_lib_$ac_lib_var=no"
7282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7283 echo "$ac_t""yes" 1>&6
7284 with_postgresqlv7=yes;
7285 { test "$extra_verbose" = "yes" && cat << \EOF
7286 Defining HAVE_POSTGRESQLV7
7288 cat >> confdefs.h <<\EOF
7289 #define HAVE_POSTGRESQLV7 1
7294 echo "$ac_t""no" 1>&6
7298 { test "$extra_verbose" = "yes" && cat << EOF
7299 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7301 cat >> confdefs.h <<EOF
7302 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7306 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7307 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7308 echo " xemacs will be linked with \"postgresql.o\""
7310 elif test "$with_postgresql" = "yes"; then
7311 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7316 if test "$window_system" != "none"; then
7317 echo "checking for graphics libraries" 1>&6
7318 echo "configure:7319: checking for graphics libraries" >&5
7321 if test -z "$with_xpm"; then
7322 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7323 echo "configure:7324: checking for Xpm - no older than 3.4f" >&5
7325 cat > conftest.$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7329 #include <X11/xpm.h>
7330 int main(int c, char **v) {
7332 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7333 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7337 ./conftest dummy_arg; xpm_status=$?;
7338 if test "$xpm_status" = "0"; then
7342 if test "$xpm_status" = "1"; then
7343 xpm_problem="Xpm library version and header file version don't match!"
7344 elif test "$xpm_status" = "2"; then
7345 xpm_problem="Xpm library version is too old!"
7347 xpm_problem="Internal xpm detection logic error!"
7350 *** WARNING *** $xpm_problem
7351 I'm not touching that with a 10-foot pole!
7352 If you really want to use the installed version of Xpm, rerun
7353 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7357 echo "configure: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7364 echo "$ac_t""$with_xpm" 1>&6
7366 if test "$with_xpm" = "yes"; then
7367 { test "$extra_verbose" = "yes" && cat << \EOF
7370 cat >> confdefs.h <<\EOF
7375 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7376 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7377 echo "configure:7378: checking for \"FOR_MSW\" xpm" >&5
7379 cat > conftest.$ac_ext <<EOF
7380 #line 7381 "configure"
7381 #include "confdefs.h"
7384 XpmCreatePixmapFromData()
7387 if { (eval echo configure:7388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7391 echo "configure: failed program was:" >&5
7392 cat conftest.$ac_ext >&5
7398 echo "$ac_t""$xpm_for_msw" 1>&6
7399 if test "$xpm_for_msw" = "yes"; then
7400 { test "$extra_verbose" = "yes" && cat << \EOF
7403 cat >> confdefs.h <<\EOF
7411 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7412 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7413 echo "configure:7414: checking for compface.h" >&5
7415 cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 #include <compface.h>
7420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7421 { (eval echo configure:7422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7423 if test -z "$ac_err"; then
7425 eval "ac_cv_header_$ac_safe=yes"
7428 echo "configure: failed program was:" >&5
7429 cat conftest.$ac_ext >&5
7431 eval "ac_cv_header_$ac_safe=no"
7434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7438 echo "$ac_t""no" 1>&6
7442 test -z "$with_xface" && {
7443 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7444 echo "configure:7445: checking for UnGenFace in -lcompface" >&5
7445 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7447 xe_check_libs=" -lcompface "
7448 cat > conftest.$ac_ext <<EOF
7449 #line 7450 "configure"
7450 #include "confdefs.h"
7451 /* Override any gcc2 internal prototype to avoid an error. */
7452 /* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */
7460 if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7462 eval "ac_cv_lib_$ac_lib_var=yes"
7464 echo "configure: failed program was:" >&5
7465 cat conftest.$ac_ext >&5
7467 eval "ac_cv_lib_$ac_lib_var=no"
7472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7473 echo "$ac_t""yes" 1>&6
7476 echo "$ac_t""no" 1>&6
7481 test -z "$with_xface" && with_xface=yes
7482 if test "$with_xface" = "yes"; then
7483 { test "$extra_verbose" = "yes" && cat << \EOF
7486 cat >> confdefs.h <<\EOF
7487 #define HAVE_XFACE 1
7491 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7494 if test "$with_gif" != "no"; then
7496 { test "$extra_verbose" = "yes" && cat << \EOF
7499 cat >> confdefs.h <<\EOF
7504 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7505 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7509 if test "$with_png $with_tiff" != "no no"; then
7511 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7512 echo "configure:7513: checking for inflate in -lc" >&5
7513 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7515 xe_check_libs=" -lc "
7516 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure"
7518 #include "confdefs.h"
7519 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7530 eval "ac_cv_lib_$ac_lib_var=yes"
7532 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7535 eval "ac_cv_lib_$ac_lib_var=no"
7540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7541 echo "$ac_t""yes" 1>&6
7544 echo "$ac_t""no" 1>&6
7546 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7547 echo "configure:7548: checking for inflate in -lz" >&5
7548 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7550 xe_check_libs=" -lz "
7551 cat > conftest.$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7554 /* Override any gcc2 internal prototype to avoid an error. */
7555 /* We use char because int might match the return type of a gcc2
7556 builtin and then its argument prototype would still apply. */
7563 if { (eval echo configure:7564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7565 eval "ac_cv_lib_$ac_lib_var=yes"
7567 echo "configure: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7570 eval "ac_cv_lib_$ac_lib_var=no"
7575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7576 echo "$ac_t""yes" 1>&6
7577 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7579 echo "$ac_t""no" 1>&6
7581 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7582 echo "configure:7583: checking for inflate in -lgz" >&5
7583 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7585 xe_check_libs=" -lgz "
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 /* Override any gcc2 internal prototype to avoid an error. */
7590 /* We use char because int might match the return type of a gcc2
7591 builtin and then its argument prototype would still apply. */
7598 if { (eval echo configure:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7600 eval "ac_cv_lib_$ac_lib_var=yes"
7602 echo "configure: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7605 eval "ac_cv_lib_$ac_lib_var=no"
7610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7611 echo "$ac_t""yes" 1>&6
7612 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7614 echo "$ac_t""no" 1>&6
7626 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7627 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7628 echo "configure:7629: checking for jpeglib.h" >&5
7630 cat > conftest.$ac_ext <<EOF
7631 #line 7632 "configure"
7632 #include "confdefs.h"
7633 #include <jpeglib.h>
7635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7636 { (eval echo configure:7637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7638 if test -z "$ac_err"; then
7640 eval "ac_cv_header_$ac_safe=yes"
7643 echo "configure: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7646 eval "ac_cv_header_$ac_safe=no"
7649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7653 echo "$ac_t""no" 1>&6
7657 test -z "$with_jpeg" && {
7658 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7659 echo "configure:7660: checking for jpeg_destroy_decompress in -ljpeg" >&5
7660 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7662 xe_check_libs=" -ljpeg "
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7669 char jpeg_destroy_decompress();
7672 jpeg_destroy_decompress()
7675 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7677 eval "ac_cv_lib_$ac_lib_var=yes"
7679 echo "configure: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7682 eval "ac_cv_lib_$ac_lib_var=no"
7687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7688 echo "$ac_t""yes" 1>&6
7691 echo "$ac_t""no" 1>&6
7696 test -z "$with_jpeg" && with_jpeg=yes
7697 if test "$with_jpeg" = "yes"; then
7698 { test "$extra_verbose" = "yes" && cat << \EOF
7701 cat >> confdefs.h <<\EOF
7706 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7710 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7711 echo "configure:7712: checking for pow" >&5
7713 cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7716 /* System header to define __stub macros and hopefully few prototypes,
7717 which can conflict with char pow(); below. */
7719 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7726 /* The GNU C library defines this for functions which it implements
7727 to always fail with ENOSYS. Some functions are actually named
7728 something starting with __ and the normal name is an alias. */
7729 #if defined (__stub_pow) || defined (__stub___pow)
7737 if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7739 eval "ac_cv_func_pow=yes"
7741 echo "configure: failed program was:" >&5
7742 cat conftest.$ac_ext >&5
7744 eval "ac_cv_func_pow=no"
7748 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7749 echo "$ac_t""yes" 1>&6
7752 echo "$ac_t""no" 1>&6
7756 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7757 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7758 echo "configure:7759: checking for png.h" >&5
7760 cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7766 { (eval echo configure:7767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7768 if test -z "$ac_err"; then
7770 eval "ac_cv_header_$ac_safe=yes"
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7776 eval "ac_cv_header_$ac_safe=no"
7779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7780 echo "$ac_t""yes" 1>&6
7783 echo "$ac_t""no" 1>&6
7787 test -z "$with_png" && {
7788 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7789 echo "configure:7790: checking for png_read_image in -lpng" >&5
7790 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7792 xe_check_libs=" -lpng "
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799 char png_read_image();
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7807 eval "ac_cv_lib_$ac_lib_var=yes"
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7812 eval "ac_cv_lib_$ac_lib_var=no"
7817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7818 echo "$ac_t""yes" 1>&6
7821 echo "$ac_t""no" 1>&6
7826 if test -z "$with_png"; then
7827 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7828 echo "configure:7829: checking for workable png version information" >&5
7829 xe_check_libs="-lpng -lz"
7830 cat > conftest.$ac_ext <<EOF
7831 #line 7832 "configure"
7832 #include "confdefs.h"
7834 int main(int c, char **v) {
7835 if (c == 1) return 0;
7836 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7837 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7841 ./conftest dummy_arg; png_status=$?;
7842 if test "$png_status" = "0"; then
7846 if test "$png_status" = "1"; then
7847 png_problem="PNG library version and header file don't match!"
7848 elif test "$png_status" = "2"; then
7849 png_problem="PNG library version too old (pre 1.0.2)!"
7852 *** WARNING *** $png_problem
7853 I'm not touching that with a 10-foot pole!
7854 If you really want to use the installed version of libPNG, rerun
7855 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7866 echo "$ac_t""$with_png" 1>&6
7868 if test "$with_png" = "yes"; then
7869 { test "$extra_verbose" = "yes" && cat << \EOF
7872 cat >> confdefs.h <<\EOF
7877 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7880 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7881 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7882 echo "configure:7883: checking for tiffio.h" >&5
7884 cat > conftest.$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7890 { (eval echo configure:7891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7892 if test -z "$ac_err"; then
7894 eval "ac_cv_header_$ac_safe=yes"
7897 echo "configure: failed program was:" >&5
7898 cat conftest.$ac_ext >&5
7900 eval "ac_cv_header_$ac_safe=no"
7903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7904 echo "$ac_t""yes" 1>&6
7907 echo "$ac_t""no" 1>&6
7911 test -z "$with_tiff" && {
7912 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7913 echo "configure:7914: checking for TIFFClientOpen in -ltiff" >&5
7914 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7916 xe_check_libs=" -ltiff "
7917 cat > conftest.$ac_ext <<EOF
7918 #line 7919 "configure"
7919 #include "confdefs.h"
7920 /* Override any gcc2 internal prototype to avoid an error. */
7921 /* We use char because int might match the return type of a gcc2
7922 builtin and then its argument prototype would still apply. */
7923 char TIFFClientOpen();
7929 if { (eval echo configure:7930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7931 eval "ac_cv_lib_$ac_lib_var=yes"
7933 echo "configure: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7936 eval "ac_cv_lib_$ac_lib_var=no"
7941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7942 echo "$ac_t""yes" 1>&6
7945 echo "$ac_t""no" 1>&6
7950 test -z "$with_tiff" && with_tiff=yes
7951 if test "$with_tiff" = "yes"; then
7952 { test "$extra_verbose" = "yes" && cat << \EOF
7955 cat >> confdefs.h <<\EOF
7960 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7965 if test "$with_x11" = "yes"; then
7967 echo "checking for X11 graphics libraries" 1>&6
7968 echo "configure:7969: checking for X11 graphics libraries" >&5
7970 echo "checking for the Athena widgets" 1>&6
7971 echo "configure:7972: checking for the Athena widgets" >&5
7973 case "$with_athena" in
7974 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7975 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7976 "next") athena_variant=neXtaw athena_3d=yes ;;
7977 "95") athena_variant=Xaw95 athena_3d=yes ;;
7978 "xpm") athena_variant=XawXpm athena_3d=yes ;;
7979 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
7982 if test "$athena_3d" = "no"; then
7984 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
7985 echo "configure:7986: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
7986 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7988 xe_check_libs=" -l$athena_variant "
7989 cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure"
7991 #include "confdefs.h"
7992 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
7995 char XawScrollbarSetThumb();
7998 XawScrollbarSetThumb()
8001 if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8003 eval "ac_cv_lib_$ac_lib_var=yes"
8005 echo "configure: failed program was:" >&5
8006 cat conftest.$ac_ext >&5
8008 eval "ac_cv_lib_$ac_lib_var=no"
8013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8014 echo "$ac_t""yes" 1>&6
8016 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8017 echo "configure:8018: checking for threeDClassRec in -l$athena_variant" >&5
8018 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8020 xe_check_libs=" -l$athena_variant "
8021 cat > conftest.$ac_ext <<EOF
8022 #line 8023 "configure"
8023 #include "confdefs.h"
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8027 char threeDClassRec();
8033 if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8035 eval "ac_cv_lib_$ac_lib_var=yes"
8037 echo "configure: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8040 eval "ac_cv_lib_$ac_lib_var=no"
8045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8046 echo "$ac_t""yes" 1>&6
8047 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8049 echo "$ac_t""no" 1>&6
8050 athena_lib=$athena_variant
8056 echo "$ac_t""no" 1>&6
8057 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8063 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8064 echo "configure:8065: checking for threeDClassRec in -l$athena_variant" >&5
8065 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8067 xe_check_libs=" -l$athena_variant "
8068 cat > conftest.$ac_ext <<EOF
8069 #line 8070 "configure"
8070 #include "confdefs.h"
8071 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074 char threeDClassRec();
8080 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8082 eval "ac_cv_lib_$ac_lib_var=yes"
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8087 eval "ac_cv_lib_$ac_lib_var=no"
8092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8093 echo "$ac_t""yes" 1>&6
8094 athena_lib=$athena_variant
8096 echo "$ac_t""no" 1>&6
8097 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8098 echo "configure:8099: checking for threeDClassRec in -lXaw" >&5
8099 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8101 xe_check_libs=" -lXaw "
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 /* Override any gcc2 internal prototype to avoid an error. */
8106 /* We use char because int might match the return type of a gcc2
8107 builtin and then its argument prototype would still apply. */
8108 char threeDClassRec();
8114 if { (eval echo configure:8115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8116 eval "ac_cv_lib_$ac_lib_var=yes"
8118 echo "configure: failed program was:" >&5
8119 cat conftest.$ac_ext >&5
8121 eval "ac_cv_lib_$ac_lib_var=no"
8126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8127 echo "$ac_t""yes" 1>&6
8129 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8132 echo "$ac_t""no" 1>&6
8133 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8142 if test "$athena_3d" = "no"; then
8143 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8144 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8145 echo "configure:8146: checking for X11/Xaw/ThreeD.h" >&5
8147 cat > conftest.$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 #include <X11/Xaw/ThreeD.h>
8152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8153 { (eval echo configure:8154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8155 if test -z "$ac_err"; then
8157 eval "ac_cv_header_$ac_safe=yes"
8160 echo "configure: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8163 eval "ac_cv_header_$ac_safe=no"
8166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8167 echo "$ac_t""yes" 1>&6
8168 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8170 echo "$ac_t""no" 1>&6
8171 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8172 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8173 echo "configure:8174: checking for X11/Xaw/XawInit.h" >&5
8175 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 #include <X11/Xaw/XawInit.h>
8180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8181 { (eval echo configure:8182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8183 if test -z "$ac_err"; then
8185 eval "ac_cv_header_$ac_safe=yes"
8188 echo "configure: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8191 eval "ac_cv_header_$ac_safe=no"
8194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8195 echo "$ac_t""yes" 1>&6
8196 athena_h_path=X11/Xaw
8198 echo "$ac_t""no" 1>&6
8199 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8205 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8206 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8207 echo "configure:8208: checking for X11/$athena_variant/XawInit.h" >&5
8209 cat > conftest.$ac_ext <<EOF
8210 #line 8211 "configure"
8211 #include "confdefs.h"
8212 #include <X11/$athena_variant/XawInit.h>
8214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8215 { (eval echo configure:8216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8217 if test -z "$ac_err"; then
8219 eval "ac_cv_header_$ac_safe=yes"
8222 echo "configure: failed program was:" >&5
8223 cat conftest.$ac_ext >&5
8225 eval "ac_cv_header_$ac_safe=no"
8228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8229 echo "$ac_t""yes" 1>&6
8230 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8231 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8232 echo "configure:8233: checking for X11/$athena_variant/ThreeD.h" >&5
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 #include <X11/$athena_variant/ThreeD.h>
8239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8240 { (eval echo configure:8241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8242 if test -z "$ac_err"; then
8244 eval "ac_cv_header_$ac_safe=yes"
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8250 eval "ac_cv_header_$ac_safe=no"
8253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8254 echo "$ac_t""yes" 1>&6
8255 athena_h_path=X11/$athena_variant
8257 echo "$ac_t""no" 1>&6
8261 echo "$ac_t""no" 1>&6
8265 if test -z "$athena_h_path"; then
8266 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8267 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8268 echo "configure:8269: checking for $athena_variant/XawInit.h" >&5
8270 cat > conftest.$ac_ext <<EOF
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8273 #include <$athena_variant/XawInit.h>
8275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8276 { (eval echo configure:8277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8278 if test -z "$ac_err"; then
8280 eval "ac_cv_header_$ac_safe=yes"
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8286 eval "ac_cv_header_$ac_safe=no"
8289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8290 echo "$ac_t""yes" 1>&6
8291 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8292 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8293 echo "configure:8294: checking for $athena_variant/ThreeD.h" >&5
8295 cat > conftest.$ac_ext <<EOF
8296 #line 8297 "configure"
8297 #include "confdefs.h"
8298 #include <$athena_variant/ThreeD.h>
8300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8301 { (eval echo configure:8302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8303 if test -z "$ac_err"; then
8305 eval "ac_cv_header_$ac_safe=yes"
8308 echo "configure: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8311 eval "ac_cv_header_$ac_safe=no"
8314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8315 echo "$ac_t""yes" 1>&6
8316 athena_h_path=$athena_variant
8318 echo "$ac_t""no" 1>&6
8322 echo "$ac_t""no" 1>&6
8327 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8328 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8329 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8330 echo "configure:8331: checking for X11/Xaw3d/XawInit.h" >&5
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 #include <X11/Xaw3d/XawInit.h>
8337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8338 { (eval echo configure:8339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8340 if test -z "$ac_err"; then
8342 eval "ac_cv_header_$ac_safe=yes"
8345 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8348 eval "ac_cv_header_$ac_safe=no"
8351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8352 echo "$ac_t""yes" 1>&6
8353 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8354 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8355 echo "configure:8356: checking for X11/Xaw3d/ThreeD.h" >&5
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 #include <X11/Xaw3d/ThreeD.h>
8362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8363 { (eval echo configure:8364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8365 if test -z "$ac_err"; then
8367 eval "ac_cv_header_$ac_safe=yes"
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8373 eval "ac_cv_header_$ac_safe=no"
8376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8377 echo "$ac_t""yes" 1>&6
8379 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8380 athena_h_path=X11/Xaw3d
8383 echo "$ac_t""no" 1>&6
8387 echo "$ac_t""no" 1>&6
8392 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8393 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8394 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8395 echo "configure:8396: checking for Xaw3d/XawInit.h" >&5
8397 cat > conftest.$ac_ext <<EOF
8398 #line 8399 "configure"
8399 #include "confdefs.h"
8400 #include <Xaw3d/XawInit.h>
8402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8403 { (eval echo configure:8404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8405 if test -z "$ac_err"; then
8407 eval "ac_cv_header_$ac_safe=yes"
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8413 eval "ac_cv_header_$ac_safe=no"
8416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8417 echo "$ac_t""yes" 1>&6
8418 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8419 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8420 echo "configure:8421: checking for Xaw3d/ThreeD.h" >&5
8422 cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure"
8424 #include "confdefs.h"
8425 #include <Xaw3d/ThreeD.h>
8427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8428 { (eval echo configure:8429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8430 if test -z "$ac_err"; then
8432 eval "ac_cv_header_$ac_safe=yes"
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8438 eval "ac_cv_header_$ac_safe=no"
8441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8442 echo "$ac_t""yes" 1>&6
8444 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8448 echo "$ac_t""no" 1>&6
8452 echo "$ac_t""no" 1>&6
8457 if test -z "$athena_h_path"; then
8458 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8459 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8460 echo "configure:8461: checking for X11/Xaw/ThreeD.h" >&5
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8465 #include <X11/Xaw/ThreeD.h>
8467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8468 { (eval echo configure:8469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8470 if test -z "$ac_err"; then
8472 eval "ac_cv_header_$ac_safe=yes"
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8478 eval "ac_cv_header_$ac_safe=no"
8481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8482 echo "$ac_t""yes" 1>&6
8484 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8485 athena_h_path=X11/Xaw
8488 echo "$ac_t""no" 1>&6
8489 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8495 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8501 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8502 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8503 echo "configure:8504: checking for Xm/Xm.h" >&5
8505 cat > conftest.$ac_ext <<EOF
8506 #line 8507 "configure"
8507 #include "confdefs.h"
8510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8511 { (eval echo configure:8512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8513 if test -z "$ac_err"; then
8515 eval "ac_cv_header_$ac_safe=yes"
8518 echo "configure: failed program was:" >&5
8519 cat conftest.$ac_ext >&5
8521 eval "ac_cv_header_$ac_safe=no"
8524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8525 echo "$ac_t""yes" 1>&6
8527 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8528 echo "configure:8529: checking for XmStringFree in -lXm" >&5
8529 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8531 xe_check_libs=" -lXm "
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 /* Override any gcc2 internal prototype to avoid an error. */
8536 /* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */
8538 char XmStringFree();
8544 if { (eval echo configure:8545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8546 eval "ac_cv_lib_$ac_lib_var=yes"
8548 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8551 eval "ac_cv_lib_$ac_lib_var=no"
8556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8557 echo "$ac_t""yes" 1>&6
8560 echo "$ac_t""no" 1>&6
8566 echo "$ac_t""no" 1>&6
8571 if test "$have_motif" = "yes"; then
8572 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8573 echo "configure:8574: checking for Lesstif" >&5
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8578 #ifdef LESSTIF_VERSION
8583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8584 egrep "yes" >/dev/null 2>&1; then
8593 echo "$ac_t""$have_lesstif" 1>&6
8598 case "$with_menubars" in "" | "yes" | "athena" )
8599 with_menubars="lucid" ;;
8601 case "$with_dialogs" in "" | "yes" | "lucid" )
8602 if test "$have_motif" = "yes"; then with_dialogs="motif"
8603 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8604 else with_dialogs=no
8607 case "$with_scrollbars" in "" | "yes" )
8608 with_scrollbars="lucid" ;;
8610 case "$with_widgets" in "" | "yes" | "lucid")
8611 if test "$have_motif" = "yes"; then with_widgets="motif"
8612 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8613 else with_widgets=no
8617 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8619 case "$all_widgets" in
8621 if test "$have_xaw" != "yes"; then
8622 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8625 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8627 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8629 { test "$extra_verbose" = "yes" && cat << EOF
8630 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8632 cat >> confdefs.h <<EOF
8633 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8637 { test "$extra_verbose" = "yes" && cat << EOF
8638 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8640 cat >> confdefs.h <<EOF
8641 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8645 { test "$extra_verbose" = "yes" && cat << EOF
8646 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8648 cat >> confdefs.h <<EOF
8649 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8653 { test "$extra_verbose" = "yes" && cat << EOF
8654 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8656 cat >> confdefs.h <<EOF
8657 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8661 { test "$extra_verbose" = "yes" && cat << EOF
8662 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8664 cat >> confdefs.h <<EOF
8665 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8669 { test "$extra_verbose" = "yes" && cat << EOF
8670 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8672 cat >> confdefs.h <<EOF
8673 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8677 { test "$extra_verbose" = "yes" && cat << EOF
8678 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8680 cat >> confdefs.h <<EOF
8681 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8685 { test "$extra_verbose" = "yes" && cat << EOF
8686 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8688 cat >> confdefs.h <<EOF
8689 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8693 { test "$extra_verbose" = "yes" && cat << EOF
8694 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8696 cat >> confdefs.h <<EOF
8697 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8701 { test "$extra_verbose" = "yes" && cat << EOF
8702 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8704 cat >> confdefs.h <<EOF
8705 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8710 { test "$extra_verbose" = "yes" && cat << \EOF
8711 Defining LWLIB_USES_ATHENA
8713 cat >> confdefs.h <<\EOF
8714 #define LWLIB_USES_ATHENA 1
8718 { test "$extra_verbose" = "yes" && cat << \EOF
8719 Defining NEED_ATHENA
8721 cat >> confdefs.h <<\EOF
8722 #define NEED_ATHENA 1
8728 if test "$athena_3d" = "yes"; then
8729 { test "$extra_verbose" = "yes" && cat << \EOF
8730 Defining HAVE_ATHENA_3D
8732 cat >> confdefs.h <<\EOF
8733 #define HAVE_ATHENA_3D 1
8741 case "$all_widgets" in *motif* )
8742 { test "$extra_verbose" = "yes" && cat << \EOF
8743 Defining LWLIB_USES_MOTIF
8745 cat >> confdefs.h <<\EOF
8746 #define LWLIB_USES_MOTIF 1
8750 { test "$extra_verbose" = "yes" && cat << \EOF
8753 cat >> confdefs.h <<\EOF
8754 #define NEED_MOTIF 1
8758 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8762 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8763 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8764 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8765 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8766 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8767 case "$with_widgets" in athena* )
8768 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;;
8770 case "$all_widgets" in *lucid* )
8771 { test "$extra_verbose" = "yes" && cat << \EOF
8774 cat >> confdefs.h <<\EOF
8775 #define NEED_LUCID 1
8779 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8784 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8785 Defining LWLIB_SCROLLBARS_ATHENA
8787 cat >> confdefs.h <<\EOF
8788 #define LWLIB_SCROLLBARS_ATHENA 1
8792 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8793 Defining LWLIB_DIALOGS_ATHENA
8795 cat >> confdefs.h <<\EOF
8796 #define LWLIB_DIALOGS_ATHENA 1
8801 if test "$athena_3d" = "yes"; then
8802 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8803 Defining LWLIB_SCROLLBARS_ATHENA3D
8805 cat >> confdefs.h <<\EOF
8806 #define LWLIB_SCROLLBARS_ATHENA3D 1
8810 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8811 Defining LWLIB_DIALOGS_ATHENA3D
8813 cat >> confdefs.h <<\EOF
8814 #define LWLIB_DIALOGS_ATHENA3D 1
8820 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8821 Defining LWLIB_WIDGETS_ATHENA
8823 cat >> confdefs.h <<\EOF
8824 #define LWLIB_WIDGETS_ATHENA 1
8828 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8829 { test "$extra_verbose" = "yes" && cat << \EOF
8830 Defining LWLIB_TABS_LUCID
8832 cat >> confdefs.h <<\EOF
8833 #define LWLIB_TABS_LUCID 1
8838 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8839 Defining HAVE_MENUBARS
8841 cat >> confdefs.h <<\EOF
8842 #define HAVE_MENUBARS 1
8846 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8847 Defining HAVE_SCROLLBARS
8849 cat >> confdefs.h <<\EOF
8850 #define HAVE_SCROLLBARS 1
8854 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8855 Defining HAVE_DIALOGS
8857 cat >> confdefs.h <<\EOF
8858 #define HAVE_DIALOGS 1
8862 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8863 Defining HAVE_TOOLBARS
8865 cat >> confdefs.h <<\EOF
8866 #define HAVE_TOOLBARS 1
8870 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8871 Defining HAVE_WIDGETS
8873 cat >> confdefs.h <<\EOF
8874 #define HAVE_WIDGETS 1
8879 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8880 Defining LWLIB_MENUBARS_LUCID
8882 cat >> confdefs.h <<\EOF
8883 #define LWLIB_MENUBARS_LUCID 1
8887 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8888 Defining LWLIB_SCROLLBARS_LUCID
8890 cat >> confdefs.h <<\EOF
8891 #define LWLIB_SCROLLBARS_LUCID 1
8896 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8897 Defining LWLIB_MENUBARS_MOTIF
8899 cat >> confdefs.h <<\EOF
8900 #define LWLIB_MENUBARS_MOTIF 1
8904 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8905 Defining LWLIB_SCROLLBARS_MOTIF
8907 cat >> confdefs.h <<\EOF
8908 #define LWLIB_SCROLLBARS_MOTIF 1
8912 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8913 Defining LWLIB_DIALOGS_MOTIF
8915 cat >> confdefs.h <<\EOF
8916 #define LWLIB_DIALOGS_MOTIF 1
8920 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8921 Defining LWLIB_WIDGETS_MOTIF
8923 cat >> confdefs.h <<\EOF
8924 #define LWLIB_WIDGETS_MOTIF 1
8929 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8930 echo " xemacs will be linked with \"menubar.o\""
8932 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
8933 echo " xemacs will be linked with \"scrollbar.o\""
8935 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
8936 echo " xemacs will be linked with \"dialog.o\""
8938 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
8939 echo " xemacs will be linked with \"toolbar.o\""
8942 if test "$with_x11" = "yes"; then
8943 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
8944 echo " xemacs will be linked with \"menubar-x.o\""
8946 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
8947 echo " xemacs will be linked with \"scrollbar-x.o\""
8949 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8950 echo " xemacs will be linked with \"dialog-x.o\""
8952 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8953 echo " xemacs will be linked with \"toolbar-x.o\""
8955 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8956 echo " xemacs will be linked with \"gui-x.o\""
8961 test -z "$with_mule" && with_mule=no
8962 test -z "$with_file_coding" && with_file_coding=no
8965 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
8966 { test "$extra_verbose" = "yes" && cat << \EOF
8967 Defining FILE_CODING
8969 cat >> confdefs.h <<\EOF
8970 #define FILE_CODING 1
8974 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8975 echo " xemacs will be linked with \"file-coding.o\""
8979 if test "$with_mule" = "yes" ; then
8980 echo "checking for Mule-related features" 1>&6
8981 echo "configure:8982: checking for Mule-related features" >&5
8982 { test "$extra_verbose" = "yes" && cat << \EOF
8985 cat >> confdefs.h <<\EOF
8990 { test "$extra_verbose" = "yes" && cat << \EOF
8991 Defining FILE_CODING
8993 cat >> confdefs.h <<\EOF
8994 #define FILE_CODING 1
8998 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
8999 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9002 for ac_hdr in libintl.h
9004 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9006 echo "configure:9007: checking for $ac_hdr" >&5
9008 cat > conftest.$ac_ext <<EOF
9009 #line 9010 "configure"
9010 #include "confdefs.h"
9013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9014 { (eval echo configure:9015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9016 if test -z "$ac_err"; then
9018 eval "ac_cv_header_$ac_safe=yes"
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9024 eval "ac_cv_header_$ac_safe=no"
9027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9028 echo "$ac_t""yes" 1>&6
9029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9030 { test "$extra_verbose" = "yes" && cat << EOF
9033 cat >> confdefs.h <<EOF
9034 #define $ac_tr_hdr 1
9039 echo "$ac_t""no" 1>&6
9044 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9045 echo "configure:9046: checking for strerror in -lintl" >&5
9046 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9048 xe_check_libs=" -lintl "
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
9075 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9077 { test "$extra_verbose" = "yes" && cat << EOF
9080 cat >> confdefs.h <<EOF
9081 #define $ac_tr_lib 1
9085 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9088 echo "$ac_t""no" 1>&6
9093 echo "checking for Mule input methods" 1>&6
9094 echo "configure:9095: checking for Mule input methods" >&5
9095 case "$with_xim" in "" | "yes" )
9096 echo "checking for XIM" 1>&6
9097 echo "configure:9098: checking for XIM" >&5
9099 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9100 echo "configure:9101: checking for XOpenIM in -lX11" >&5
9101 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9103 xe_check_libs=" -lX11 "
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9107 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9116 if { (eval echo configure:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9118 eval "ac_cv_lib_$ac_lib_var=yes"
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9123 eval "ac_cv_lib_$ac_lib_var=no"
9128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9129 echo "$ac_t""yes" 1>&6
9132 echo "$ac_t""no" 1>&6
9137 if test "$have_motif $have_lesstif" = "yes no"; then
9139 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9140 echo "configure:9141: checking for XmImMbLookupString in -lXm" >&5
9141 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9143 xe_check_libs=" -lXm "
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9147 /* Override any gcc2 internal prototype to avoid an error. */
9148 /* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */
9150 char XmImMbLookupString();
9153 XmImMbLookupString()
9156 if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9158 eval "ac_cv_lib_$ac_lib_var=yes"
9160 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9163 eval "ac_cv_lib_$ac_lib_var=no"
9168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9169 echo "$ac_t""yes" 1>&6
9172 echo "$ac_t""no" 1>&6
9178 if test "$with_xim" != "no"; then
9179 { test "$extra_verbose" = "yes" && cat << \EOF
9182 cat >> confdefs.h <<\EOF
9187 if test "$with_xim" = "xlib"; then
9188 { test "$extra_verbose" = "yes" && cat << \EOF
9191 cat >> confdefs.h <<\EOF
9196 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9197 echo " xemacs will be linked with \"input-method-xlib.o\""
9200 if test "$with_xim" = "motif"; then
9201 { test "$extra_verbose" = "yes" && cat << \EOF
9204 cat >> confdefs.h <<\EOF
9210 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9211 echo " xemacs will be linked with \"input-method-motif.o\""
9214 if test "$with_xim" = "motif"; then
9219 if test "$with_xfs" = "yes" ; then
9220 echo "checking for XFontSet" 1>&6
9221 echo "configure:9222: checking for XFontSet" >&5
9223 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9224 echo "configure:9225: checking for XmbDrawString in -lX11" >&5
9225 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9227 xe_check_libs=" -lX11 "
9228 cat > conftest.$ac_ext <<EOF
9229 #line 9230 "configure"
9230 #include "confdefs.h"
9231 /* Override any gcc2 internal prototype to avoid an error. */
9232 /* We use char because int might match the return type of a gcc2
9233 builtin and then its argument prototype would still apply. */
9234 char XmbDrawString();
9240 if { (eval echo configure:9241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9242 eval "ac_cv_lib_$ac_lib_var=yes"
9244 echo "configure: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9247 eval "ac_cv_lib_$ac_lib_var=no"
9252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9253 echo "$ac_t""yes" 1>&6
9256 echo "$ac_t""no" 1>&6
9261 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9262 { test "$extra_verbose" = "yes" && cat << \EOF
9263 Defining USE_XFONTSET
9265 cat >> confdefs.h <<\EOF
9266 #define USE_XFONTSET 1
9270 if test "$with_xim" = "no" ; then
9271 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
9272 echo " xemacs will be linked with \"input-method-xfs.o\""
9277 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9278 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9279 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9280 echo "configure:9281: checking for wnn/jllib.h" >&5
9282 cat > conftest.$ac_ext <<EOF
9283 #line 9284 "configure"
9284 #include "confdefs.h"
9285 #include <wnn/jllib.h>
9287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9288 { (eval echo configure:9289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9290 if test -z "$ac_err"; then
9292 eval "ac_cv_header_$ac_safe=yes"
9295 echo "configure: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9298 eval "ac_cv_header_$ac_safe=no"
9301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9302 echo "$ac_t""yes" 1>&6
9305 echo "$ac_t""no" 1>&6
9309 if test "$with_wnn" != "no"; then
9310 for ac_func in crypt
9312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9313 echo "configure:9314: checking for $ac_func" >&5
9315 cat > conftest.$ac_ext <<EOF
9316 #line 9317 "configure"
9317 #include "confdefs.h"
9318 /* System header to define __stub macros and hopefully few prototypes,
9319 which can conflict with char $ac_func(); below. */
9321 /* Override any gcc2 internal prototype to avoid an error. */
9322 /* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9328 /* The GNU C library defines this for functions which it implements
9329 to always fail with ENOSYS. Some functions are actually named
9330 something starting with __ and the normal name is an alias. */
9331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9341 eval "ac_cv_func_$ac_func=yes"
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9346 eval "ac_cv_func_$ac_func=no"
9350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9353 { test "$extra_verbose" = "yes" && cat << EOF
9354 Defining $ac_tr_func
9356 cat >> confdefs.h <<EOF
9357 #define $ac_tr_func 1
9362 echo "$ac_t""no" 1>&6
9366 test "$ac_cv_func_crypt" != "yes" && {
9367 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9368 echo "configure:9369: checking for crypt in -lcrypt" >&5
9369 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9371 xe_check_libs=" -lcrypt "
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9375 /* Override any gcc2 internal prototype to avoid an error. */
9376 /* We use char because int might match the return type of a gcc2
9377 builtin and then its argument prototype would still apply. */
9384 if { (eval echo configure:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9386 eval "ac_cv_lib_$ac_lib_var=yes"
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9391 eval "ac_cv_lib_$ac_lib_var=no"
9396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9397 echo "$ac_t""yes" 1>&6
9398 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9399 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9400 { test "$extra_verbose" = "yes" && cat << EOF
9403 cat >> confdefs.h <<EOF
9404 #define $ac_tr_lib 1
9408 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9411 echo "$ac_t""no" 1>&6
9416 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9418 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9419 echo "configure:9420: checking for jl_dic_list_e in -lwnn" >&5
9420 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9422 xe_check_libs=" -lwnn "
9423 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 /* Override any gcc2 internal prototype to avoid an error. */
9427 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */
9429 char jl_dic_list_e();
9435 if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9437 eval "ac_cv_lib_$ac_lib_var=yes"
9439 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9442 eval "ac_cv_lib_$ac_lib_var=no"
9447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9448 echo "$ac_t""yes" 1>&6
9451 echo "$ac_t""no" 1>&6
9452 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9453 echo "configure:9454: checking for jl_dic_list_e in -lwnn4" >&5
9454 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9456 xe_check_libs=" -lwnn4 "
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9460 /* Override any gcc2 internal prototype to avoid an error. */
9461 /* We use char because int might match the return type of a gcc2
9462 builtin and then its argument prototype would still apply. */
9463 char jl_dic_list_e();
9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9471 eval "ac_cv_lib_$ac_lib_var=yes"
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9476 eval "ac_cv_lib_$ac_lib_var=no"
9481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9482 echo "$ac_t""yes" 1>&6
9485 echo "$ac_t""no" 1>&6
9486 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9487 echo "configure:9488: checking for jl_dic_list_e in -lwnn6" >&5
9488 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9490 xe_check_libs=" -lwnn6 "
9491 cat > conftest.$ac_ext <<EOF
9492 #line 9493 "configure"
9493 #include "confdefs.h"
9494 /* Override any gcc2 internal prototype to avoid an error. */
9495 /* We use char because int might match the return type of a gcc2
9496 builtin and then its argument prototype would still apply. */
9497 char jl_dic_list_e();
9503 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9505 eval "ac_cv_lib_$ac_lib_var=yes"
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9510 eval "ac_cv_lib_$ac_lib_var=no"
9515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9516 echo "$ac_t""yes" 1>&6
9519 echo "$ac_t""no" 1>&6
9520 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9521 echo "configure:9522: checking for dic_list_e in -lwnn6_fromsrc" >&5
9522 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9524 xe_check_libs=" -lwnn6_fromsrc "
9525 cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure"
9527 #include "confdefs.h"
9528 /* Override any gcc2 internal prototype to avoid an error. */
9529 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */
9537 if { (eval echo configure:9538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9539 eval "ac_cv_lib_$ac_lib_var=yes"
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9544 eval "ac_cv_lib_$ac_lib_var=no"
9549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9550 echo "$ac_t""yes" 1>&6
9553 echo "$ac_t""no" 1>&6
9568 test -z "$with_wnn" && with_wnn=yes
9569 if test "$with_wnn" = "yes"; then
9570 { test "$extra_verbose" = "yes" && cat << \EOF
9573 cat >> confdefs.h <<\EOF
9578 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9579 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9580 echo " xemacs will be linked with \"mule-wnnfns.o\""
9582 if test "$with_wnn6" != "no"; then
9584 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9585 echo "configure:9586: checking for jl_fi_dic_list in -l$libwnn" >&5
9586 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9588 xe_check_libs=" -l$libwnn "
9589 cat > conftest.$ac_ext <<EOF
9590 #line 9591 "configure"
9591 #include "confdefs.h"
9592 /* Override any gcc2 internal prototype to avoid an error. */
9593 /* We use char because int might match the return type of a gcc2
9594 builtin and then its argument prototype would still apply. */
9595 char jl_fi_dic_list();
9601 if { (eval echo configure:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9603 eval "ac_cv_lib_$ac_lib_var=yes"
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9608 eval "ac_cv_lib_$ac_lib_var=no"
9613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9614 echo "$ac_t""yes" 1>&6
9617 echo "$ac_t""no" 1>&6
9621 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9624 cat >> confdefs.h <<\EOF
9632 canna_includes_found=no
9633 if test "$with_canna" != "no"; then
9634 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9635 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9636 echo "configure:9637: checking for canna/jrkanji.h" >&5
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9641 #include <canna/jrkanji.h>
9643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9644 { (eval echo configure:9645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9646 if test -z "$ac_err"; then
9648 eval "ac_cv_header_$ac_safe=yes"
9651 echo "configure: failed program was:" >&5
9652 cat conftest.$ac_ext >&5
9654 eval "ac_cv_header_$ac_safe=no"
9657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9658 echo "$ac_t""yes" 1>&6
9659 canna_includes_found=yes
9661 echo "$ac_t""no" 1>&6
9665 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9666 -d "/usr/local/canna/include"; then
9667 save_c_switch_site="$c_switch_site"
9668 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9669 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9670 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9671 echo "configure:9672: checking for canna/jrkanji.h" >&5
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9676 #include <canna/jrkanji.h>
9678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9679 { (eval echo configure:9680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9681 if test -z "$ac_err"; then
9683 eval "ac_cv_header_$ac_safe=yes"
9686 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9689 eval "ac_cv_header_$ac_safe=no"
9692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9693 echo "$ac_t""yes" 1>&6
9694 canna_includes_found=yes
9696 echo "$ac_t""no" 1>&6
9699 if test "$canna_includes_found" != "yes"; then
9700 c_switch_site="$save_c_switch_site"
9705 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9706 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9707 echo "configure:9708: checking for canna/RK.h" >&5
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 #include <canna/RK.h>
9714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9715 { (eval echo configure:9716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9717 if test -z "$ac_err"; then
9719 eval "ac_cv_header_$ac_safe=yes"
9722 echo "configure: failed program was:" >&5
9723 cat conftest.$ac_ext >&5
9725 eval "ac_cv_header_$ac_safe=no"
9728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9729 echo "$ac_t""yes" 1>&6
9732 echo "$ac_t""no" 1>&6
9736 test -z "$with_canna" && {
9737 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9738 echo "configure:9739: checking for RkBgnBun in -lRKC" >&5
9739 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9741 xe_check_libs=" -lRKC "
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9756 eval "ac_cv_lib_$ac_lib_var=yes"
9758 echo "configure: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9761 eval "ac_cv_lib_$ac_lib_var=no"
9766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9767 echo "$ac_t""yes" 1>&6
9770 echo "$ac_t""no" 1>&6
9775 test -z "$with_canna" && {
9776 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9777 echo "configure:9778: checking for jrKanjiControl in -lcanna" >&5
9778 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9780 xe_check_libs=" -lcanna "
9781 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9784 /* Override any gcc2 internal prototype to avoid an error. */
9785 /* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */
9787 char jrKanjiControl();
9793 if { (eval echo configure:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9795 eval "ac_cv_lib_$ac_lib_var=yes"
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9800 eval "ac_cv_lib_$ac_lib_var=no"
9805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9806 echo "$ac_t""yes" 1>&6
9809 echo "$ac_t""no" 1>&6
9814 test -z "$with_canna" && with_canna=yes
9815 if test "$with_canna" = "yes"; then
9816 { test "$extra_verbose" = "yes" && cat << \EOF
9819 cat >> confdefs.h <<\EOF
9820 #define HAVE_CANNA 1
9824 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
9825 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
9826 echo " xemacs will be linked with \"mule-canna.o\""
9830 else for feature in xim canna wnn; do
9831 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
9832 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
9834 eval "with_${feature}=no"
9838 if test "$need_motif" = "yes" ; then
9839 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9841 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9842 echo "configure:9843: checking for layout_object_getvalue in -li18n" >&5
9843 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9845 xe_check_libs=" -li18n "
9846 cat > conftest.$ac_ext <<EOF
9847 #line 9848 "configure"
9848 #include "confdefs.h"
9849 /* Override any gcc2 internal prototype to avoid an error. */
9850 /* We use char because int might match the return type of a gcc2
9851 builtin and then its argument prototype would still apply. */
9852 char layout_object_getvalue();
9855 layout_object_getvalue()
9858 if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9860 eval "ac_cv_lib_$ac_lib_var=yes"
9862 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9865 eval "ac_cv_lib_$ac_lib_var=no"
9870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9871 echo "$ac_t""yes" 1>&6
9872 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
9874 echo "$ac_t""no" 1>&6
9879 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
9880 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9881 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9883 runpath="" runpath_dirs=""
9884 if test -n "$LD_RUN_PATH"; then
9885 runpath="$LD_RUN_PATH"
9886 elif test "$GCC" = "yes"; then
9887 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
9888 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
9889 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
9890 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
9891 case "$arg" in P,* | -L* | -R* )
9892 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
9894 xe_runpath_dir="$dir"
9895 test "$xe_runpath_dir" != "/lib" -a \
9896 "$xe_runpath_dir" != "/usr/lib" -a \
9897 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9898 eval "$xe_add_unique_runpath_dir"
9903 ld_switch_run="$ld_switch_run_save"
9906 for arg in $ld_switch_site $ld_switch_x_site; do
9907 case "$arg" in -L*) {
9908 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
9909 test "$xe_runpath_dir" != "/lib" -a \
9910 "$xe_runpath_dir" != "/usr/lib" -a \
9911 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9912 eval "$xe_add_unique_runpath_dir"
9915 if test "$opsys $need_motif" = "sol2 yes"; then
9916 xe_runpath_dir="/opt/SUNWdt/lib";
9917 eval "$xe_add_unique_runpath_dir";
9920 if test -n "$runpath"; then
9921 ld_switch_run="${dash_r}${runpath}"
9923 if test "$GCC" = "yes"; then
9924 set x $ld_switch_run; shift; ld_switch_run=""
9925 while test -n "$1"; do
9927 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
9928 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
9930 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
9935 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
9941 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
9943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9944 echo "configure:9945: checking for $ac_func" >&5
9946 cat > conftest.$ac_ext <<EOF
9947 #line 9948 "configure"
9948 #include "confdefs.h"
9949 /* System header to define __stub macros and hopefully few prototypes,
9950 which can conflict with char $ac_func(); below. */
9952 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9959 /* The GNU C library defines this for functions which it implements
9960 to always fail with ENOSYS. Some functions are actually named
9961 something starting with __ and the normal name is an alias. */
9962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9970 if { (eval echo configure:9971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9972 eval "ac_cv_func_$ac_func=yes"
9974 echo "configure: failed program was:" >&5
9975 cat conftest.$ac_ext >&5
9977 eval "ac_cv_func_$ac_func=no"
9981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9982 echo "$ac_t""yes" 1>&6
9983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9984 { test "$extra_verbose" = "yes" && cat << EOF
9985 Defining $ac_tr_func
9987 cat >> confdefs.h <<EOF
9988 #define $ac_tr_func 1
9993 echo "$ac_t""no" 1>&6
9998 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9999 echo " xemacs will be linked with \"realpath.o\""
10002 for ac_func in getloadavg
10004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10005 echo "configure:10006: checking for $ac_func" >&5
10007 cat > conftest.$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10010 /* System header to define __stub macros and hopefully few prototypes,
10011 which can conflict with char $ac_func(); below. */
10012 #include <assert.h>
10013 /* Override any gcc2 internal prototype to avoid an error. */
10014 /* We use char because int might match the return type of a gcc2
10015 builtin and then its argument prototype would still apply. */
10020 /* The GNU C library defines this for functions which it implements
10021 to always fail with ENOSYS. Some functions are actually named
10022 something starting with __ and the normal name is an alias. */
10023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10031 if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10033 eval "ac_cv_func_$ac_func=yes"
10035 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10038 eval "ac_cv_func_$ac_func=no"
10042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10043 echo "$ac_t""yes" 1>&6
10044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10045 { test "$extra_verbose" = "yes" && cat << EOF
10046 Defining $ac_tr_func
10048 cat >> confdefs.h <<EOF
10049 #define $ac_tr_func 1
10054 echo "$ac_t""no" 1>&6
10059 if test "$ac_cv_func_getloadavg" != "yes"
10061 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10062 echo " xemacs will be linked with \"getloadavg.o\""
10066 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10067 echo "configure:10068: checking for kstat_open in -lkstat" >&5
10068 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10070 xe_check_libs=" -lkstat "
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 /* Override any gcc2 internal prototype to avoid an error. */
10075 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10085 eval "ac_cv_lib_$ac_lib_var=yes"
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10090 eval "ac_cv_lib_$ac_lib_var=no"
10095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10096 echo "$ac_t""yes" 1>&6
10097 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10099 { test "$extra_verbose" = "yes" && cat << EOF
10100 Defining $ac_tr_lib
10102 cat >> confdefs.h <<EOF
10103 #define $ac_tr_lib 1
10107 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10110 echo "$ac_t""no" 1>&6
10116 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10117 echo "configure:10118: checking for kvm_read in -lkvm" >&5
10118 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10120 xe_check_libs=" -lkvm "
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 /* Override any gcc2 internal prototype to avoid an error. */
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10133 if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10135 eval "ac_cv_lib_$ac_lib_var=yes"
10137 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10140 eval "ac_cv_lib_$ac_lib_var=no"
10145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10146 echo "$ac_t""yes" 1>&6
10147 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10148 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10149 { test "$extra_verbose" = "yes" && cat << EOF
10150 Defining $ac_tr_lib
10152 cat >> confdefs.h <<EOF
10153 #define $ac_tr_lib 1
10157 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10160 echo "$ac_t""no" 1>&6
10166 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10167 echo "configure:10168: checking whether netdb declares h_errno" >&5
10168 cat > conftest.$ac_ext <<EOF
10169 #line 10170 "configure"
10170 #include "confdefs.h"
10176 if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10178 echo "$ac_t""yes" 1>&6
10179 { test "$extra_verbose" = "yes" && cat << \EOF
10180 Defining HAVE_H_ERRNO
10182 cat >> confdefs.h <<\EOF
10183 #define HAVE_H_ERRNO 1
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10191 echo "$ac_t""no" 1>&6
10195 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10196 echo "configure:10197: checking for sigsetjmp" >&5
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10200 #include <setjmp.h>
10202 sigjmp_buf bar; sigsetjmp (bar, 0);
10205 if { (eval echo configure:10206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10207 echo "$ac_t""yes" 1>&6
10208 { test "$extra_verbose" = "yes" && cat << \EOF
10209 Defining HAVE_SIGSETJMP
10211 cat >> confdefs.h <<\EOF
10212 #define HAVE_SIGSETJMP 1
10217 echo "configure: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10220 echo "$ac_t""no" 1>&6
10224 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10225 echo "configure:10226: checking whether localtime caches TZ" >&5
10227 if test "$ac_cv_func_tzset" = "yes"; then
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10233 # include <stdlib.h>
10235 extern char **environ;
10239 for (to = from = environ; (*to = *from); from++)
10240 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10243 char TZ_GMT0[] = "TZ=GMT0";
10244 char TZ_PST8[] = "TZ=PST8";
10247 time_t now = time ((time_t *) 0);
10248 int hour_GMT0, hour_unset;
10249 if (putenv (TZ_GMT0) != 0)
10251 hour_GMT0 = localtime (&now)->tm_hour;
10253 hour_unset = localtime (&now)->tm_hour;
10254 if (putenv (TZ_PST8) != 0)
10256 if (localtime (&now)->tm_hour == hour_GMT0)
10259 if (localtime (&now)->tm_hour != hour_unset)
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10266 emacs_cv_localtime_cache=no
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10272 emacs_cv_localtime_cache=yes
10276 # If we lack tzset, report that localtime does not cache TZ,
10277 # since we can't invalidate the cache if we don't have tzset.
10278 emacs_cv_localtime_cache=no
10280 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10281 if test $emacs_cv_localtime_cache = yes; then
10282 { test "$extra_verbose" = "yes" && cat << \EOF
10283 Defining LOCALTIME_CACHE
10285 cat >> confdefs.h <<\EOF
10286 #define LOCALTIME_CACHE 1
10292 if test "$HAVE_TIMEVAL" = "yes"; then
10293 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10294 echo "configure:10295: checking whether gettimeofday accepts one or two arguments" >&5
10295 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10299 #ifdef TIME_WITH_SYS_TIME
10300 #include <sys/time.h>
10303 #ifdef HAVE_SYS_TIME_H
10304 #include <sys/time.h>
10312 struct timeval time;
10313 gettimeofday (&time, 0);
10317 if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10319 echo "$ac_t""two" 1>&6
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10324 echo "$ac_t""one" 1>&6
10325 { test "$extra_verbose" = "yes" && cat << \EOF
10326 Defining GETTIMEOFDAY_ONE_ARGUMENT
10328 cat >> confdefs.h <<\EOF
10329 #define GETTIMEOFDAY_ONE_ARGUMENT 1
10338 echo $ac_n "checking for inline""... $ac_c" 1>&6
10339 echo "configure:10340: checking for inline" >&5
10342 for ac_kw in inline __inline__ __inline; do
10343 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10351 if { (eval echo configure:10352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10353 ac_cv_c_inline=$ac_kw; break
10355 echo "configure: failed program was:" >&5
10356 cat conftest.$ac_ext >&5
10362 echo "$ac_t""$ac_cv_c_inline" 1>&6
10363 case "$ac_cv_c_inline" in
10365 no) { test "$extra_verbose" = "yes" && cat << \EOF
10368 cat >> confdefs.h <<\EOF
10373 *) { test "$extra_verbose" = "yes" && cat << EOF
10374 Defining inline = $ac_cv_c_inline
10376 cat >> confdefs.h <<EOF
10377 #define inline $ac_cv_c_inline
10383 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
10384 echo " xemacs will be linked with \"inline.o\""
10388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10389 # for constant arguments. Useless!
10390 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
10391 echo "configure:10392: checking for working alloca.h" >&5
10393 cat > conftest.$ac_ext <<EOF
10394 #line 10395 "configure"
10395 #include "confdefs.h"
10396 #include <alloca.h>
10398 char *p = alloca(2 * sizeof(int));
10401 if { (eval echo configure:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10403 ac_cv_header_alloca_h=yes
10405 echo "configure: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10408 ac_cv_header_alloca_h=no
10412 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
10413 if test $ac_cv_header_alloca_h = yes; then
10414 { test "$extra_verbose" = "yes" && cat << \EOF
10415 Defining HAVE_ALLOCA_H
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_ALLOCA_H 1
10424 echo $ac_n "checking for alloca""... $ac_c" 1>&6
10425 echo "configure:10426: checking for alloca" >&5
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10432 # define alloca __builtin_alloca
10435 # include <malloc.h>
10436 # define alloca _alloca
10439 # include <alloca.h>
10444 # ifndef alloca /* predefined by HP cc +Olibcalls */
10453 char *p = (char *) alloca(1);
10456 if { (eval echo configure:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10458 ac_cv_func_alloca_works=yes
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10463 ac_cv_func_alloca_works=no
10467 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
10468 if test $ac_cv_func_alloca_works = yes; then
10469 { test "$extra_verbose" = "yes" && cat << \EOF
10470 Defining HAVE_ALLOCA
10472 cat >> confdefs.h <<\EOF
10473 #define HAVE_ALLOCA 1
10479 if test $ac_cv_func_alloca_works = no; then
10480 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10481 # that cause trouble. Some versions do not even contain alloca or
10482 # contain a buggy version. If you still want to use their alloca,
10483 # use ar to extract alloca.o from them instead of compiling alloca.c.
10484 ALLOCA=alloca.${ac_objext}
10485 { test "$extra_verbose" = "yes" && cat << \EOF
10488 cat >> confdefs.h <<\EOF
10494 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10495 echo "configure:10496: checking whether alloca needs Cray hooks" >&5
10497 cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure"
10499 #include "confdefs.h"
10500 #if defined(CRAY) && ! defined(CRAY2)
10507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10508 egrep "webecray" >/dev/null 2>&1; then
10518 echo "$ac_t""$ac_cv_os_cray" 1>&6
10519 if test $ac_cv_os_cray = yes; then
10520 for ac_func in _getb67 GETB67 getb67; do
10521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10522 echo "configure:10523: checking for $ac_func" >&5
10524 cat > conftest.$ac_ext <<EOF
10525 #line 10526 "configure"
10526 #include "confdefs.h"
10527 /* System header to define __stub macros and hopefully few prototypes,
10528 which can conflict with char $ac_func(); below. */
10529 #include <assert.h>
10530 /* Override any gcc2 internal prototype to avoid an error. */
10531 /* We use char because int might match the return type of a gcc2
10532 builtin and then its argument prototype would still apply. */
10537 /* The GNU C library defines this for functions which it implements
10538 to always fail with ENOSYS. Some functions are actually named
10539 something starting with __ and the normal name is an alias. */
10540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10548 if { (eval echo configure:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10550 eval "ac_cv_func_$ac_func=yes"
10552 echo "configure: failed program was:" >&5
10553 cat conftest.$ac_ext >&5
10555 eval "ac_cv_func_$ac_func=no"
10559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10560 echo "$ac_t""yes" 1>&6
10561 { test "$extra_verbose" = "yes" && cat << EOF
10562 Defining CRAY_STACKSEG_END = $ac_func
10564 cat >> confdefs.h <<EOF
10565 #define CRAY_STACKSEG_END $ac_func
10571 echo "$ac_t""no" 1>&6
10577 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10578 echo "configure:10579: checking stack direction for C alloca" >&5
10580 cat > conftest.$ac_ext <<EOF
10581 #line 10582 "configure"
10582 #include "confdefs.h"
10583 find_stack_direction ()
10585 static char *addr = 0;
10590 return find_stack_direction ();
10593 return (&dummy > addr) ? 1 : -1;
10597 exit (find_stack_direction() < 0);
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10602 ac_cv_c_stack_direction=1
10605 echo "configure: failed program was:" >&5
10606 cat conftest.$ac_ext >&5
10608 ac_cv_c_stack_direction=-1
10612 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
10613 { test "$extra_verbose" = "yes" && cat << EOF
10614 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
10616 cat >> confdefs.h <<EOF
10617 #define STACK_DIRECTION $ac_cv_c_stack_direction
10623 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
10624 echo " xemacs will be linked with \"$ALLOCA\""
10627 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10628 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10629 echo "configure:10630: checking for vfork.h" >&5
10631 cat > conftest.$ac_ext <<EOF
10632 #line 10633 "configure"
10633 #include "confdefs.h"
10636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10637 { (eval echo configure:10638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10639 if test -z "$ac_err"; then
10641 eval "ac_cv_header_$ac_safe=yes"
10644 echo "configure: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10647 eval "ac_cv_header_$ac_safe=no"
10650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10651 echo "$ac_t""yes" 1>&6
10652 { test "$extra_verbose" = "yes" && cat << \EOF
10653 Defining HAVE_VFORK_H
10655 cat >> confdefs.h <<\EOF
10656 #define HAVE_VFORK_H 1
10661 echo "$ac_t""no" 1>&6
10664 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10665 echo "configure:10666: checking for working vfork" >&5
10667 cat > conftest.$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10670 /* Thanks to Paul Eggert for this test. */
10672 #include <sys/types.h>
10673 #include <sys/stat.h>
10674 #ifdef HAVE_UNISTD_H
10675 #include <unistd.h>
10677 #ifdef HAVE_VFORK_H
10680 /* On some sparc systems, changes by the child to local and incoming
10681 argument registers are propagated back to the parent.
10682 The compiler is told about this with #include <vfork.h>,
10683 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
10684 Test for this by using a static variable whose address
10685 is put into a register that is clobbered by the vfork. */
10688 sparc_address_test (int arg)
10690 sparc_address_test (arg) int arg;
10693 static pid_t child;
10708 pid_t parent = getpid ();
10711 sparc_address_test ();
10716 /* Here is another test for sparc vfork register problems.
10717 This test uses lots of local variables, at least
10718 as many local variables as main has allocated so far
10719 including compiler temporaries. 4 locals are enough for
10720 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
10721 A buggy compiler should reuse the register of parent
10722 for one of the local variables, since it will think that
10723 parent can't possibly be used any more in this routine.
10724 Assigning to the local variable will thus munge parent
10725 in the parent process. */
10727 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10728 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10729 /* Convince the compiler that p..p7 are live; otherwise, it might
10730 use the same hardware register for all 8 local variables. */
10731 if (p != p1 || p != p2 || p != p3 || p != p4
10732 || p != p5 || p != p6 || p != p7)
10735 /* On some systems (e.g. IRIX 3.3),
10736 vfork doesn't separate parent from child file descriptors.
10737 If the child closes a descriptor before it execs or exits,
10738 this munges the parent's descriptor as well.
10739 Test for this by closing stdout in the child. */
10740 _exit(close(fileno(stdout)) != 0);
10745 while (wait(&status) != child)
10748 /* Was there some problem with vforking? */
10751 /* Did the child fail? (This shouldn't happen.) */
10754 /* Did the vfork/compiler bug occur? */
10755 || parent != getpid()
10757 /* Did the file descriptor bug occur? */
10758 || fstat(fileno(stdout), &st) != 0
10763 if { (eval echo configure:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10765 ac_cv_func_vfork_works=yes
10768 echo "configure: failed program was:" >&5
10769 cat conftest.$ac_ext >&5
10771 ac_cv_func_vfork_works=no
10775 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
10776 if test $ac_cv_func_vfork_works = no; then
10777 { test "$extra_verbose" = "yes" && cat << \EOF
10778 Defining vfork = fork
10780 cat >> confdefs.h <<\EOF
10788 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10789 echo "configure:10790: checking for working strcoll" >&5
10791 cat > conftest.$ac_ext <<EOF
10792 #line 10793 "configure"
10793 #include "confdefs.h"
10794 #include <string.h>
10797 exit (strcoll ("abc", "def") >= 0 ||
10798 strcoll ("ABC", "DEF") >= 0 ||
10799 strcoll ("123", "456") >= 0);
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10804 ac_cv_func_strcoll_works=yes
10807 echo "configure: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10810 ac_cv_func_strcoll_works=no
10814 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
10815 if test $ac_cv_func_strcoll_works = yes; then
10816 { test "$extra_verbose" = "yes" && cat << \EOF
10817 Defining HAVE_STRCOLL
10819 cat >> confdefs.h <<\EOF
10820 #define HAVE_STRCOLL 1
10827 for ac_func in getpgrp
10829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10830 echo "configure:10831: checking for $ac_func" >&5
10832 cat > conftest.$ac_ext <<EOF
10833 #line 10834 "configure"
10834 #include "confdefs.h"
10835 /* System header to define __stub macros and hopefully few prototypes,
10836 which can conflict with char $ac_func(); below. */
10837 #include <assert.h>
10838 /* Override any gcc2 internal prototype to avoid an error. */
10839 /* We use char because int might match the return type of a gcc2
10840 builtin and then its argument prototype would still apply. */
10845 /* The GNU C library defines this for functions which it implements
10846 to always fail with ENOSYS. Some functions are actually named
10847 something starting with __ and the normal name is an alias. */
10848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10856 if { (eval echo configure:10857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10858 eval "ac_cv_func_$ac_func=yes"
10860 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10863 eval "ac_cv_func_$ac_func=no"
10867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10868 echo "$ac_t""yes" 1>&6
10869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10870 { test "$extra_verbose" = "yes" && cat << EOF
10871 Defining $ac_tr_func
10873 cat >> confdefs.h <<EOF
10874 #define $ac_tr_func 1
10879 echo "$ac_t""no" 1>&6
10883 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10884 echo "configure:10885: checking whether getpgrp takes no argument" >&5
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10891 * If this system has a BSD-style getpgrp(),
10892 * which takes a pid argument, exit unsuccessfully.
10894 * Snarfed from Chet Ramey's bash pgrp.c test program
10897 #include <sys/types.h>
10900 int pg1, pg2, pg3, pg4;
10901 int ng, np, s, child;
10908 pg3 = getpgrp(pid);
10912 * If all of these values are the same, it's pretty sure that
10913 * we're on a system that ignores getpgrp's first argument.
10915 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10921 else if (child == 0) {
10924 * If this is Sys V, this will not work; pgrp will be
10925 * set to np because setpgrp just changes a pgrp to be
10926 * the same as the pid.
10929 ng = getpgrp(0); /* Same result for Sys V and BSD */
10942 if { (eval echo configure:10943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10944 ac_cv_func_getpgrp_void=yes
10947 echo "configure: failed program was:" >&5
10948 cat conftest.$ac_ext >&5
10950 ac_cv_func_getpgrp_void=no
10955 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10956 if test $ac_cv_func_getpgrp_void = yes; then
10957 { test "$extra_verbose" = "yes" && cat << \EOF
10958 Defining GETPGRP_VOID
10960 cat >> confdefs.h <<\EOF
10961 #define GETPGRP_VOID 1
10968 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10969 echo "configure:10970: checking for working mmap" >&5
10970 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10971 cat > conftest.$ac_ext <<EOF
10972 #line 10973 "configure"
10973 #include "confdefs.h"
10975 #include <unistd.h>
10977 #include <sys/mman.h>
10979 #ifndef MAP_VARIABLE
10980 #define MAP_VARIABLE 0
10984 #define MAP_FAILED -1
10987 int main (int argc, char *argv[])
10991 #ifndef MAP_ANONYMOUS
10992 fd = open ("/dev/zero", O_RDWR);
10995 #define MAP_ANONYMOUS 0
10997 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10998 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10999 fd, 0) != (void *) MAP_FAILED)
11001 perror ("conftest: mmap failed");
11005 if { (eval echo configure:11006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11010 echo "configure: failed program was:" >&5
11011 cat conftest.$ac_ext >&5
11015 rm -fr conftest* ;;
11017 echo "$ac_t""$have_mmap" 1>&6
11018 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11021 cat >> confdefs.h <<\EOF
11022 #define HAVE_MMAP 1
11027 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11028 if test "$rel_alloc $have_mmap" = "default yes"; then
11029 if test "$doug_lea_malloc" = "yes"; then
11030 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11031 echo "configure:11032: checking for M_MMAP_THRESHOLD" >&5
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035 #include <malloc.h>
11038 #ifndef M_MMAP_THRESHOLD
11039 #error No M_MMAP_THRESHOLD :-(
11040 !@+$%^&*_)(_ - unlikely to compile...
11045 if { (eval echo configure:11046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11047 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11049 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11052 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11059 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11062 cat >> confdefs.h <<\EOF
11063 #define REL_ALLOC 1
11068 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11069 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11070 echo "configure:11071: checking for termios.h" >&5
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11074 "configure"
11074 #include "confdefs.h"
11075 #include <termios.h>
11077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11078 { (eval echo configure:11079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11080 if test -z "$ac_err"; then
11082 eval "ac_cv_header_$ac_safe=yes"
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11088 eval "ac_cv_header_$ac_safe=no"
11091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11092 echo "$ac_t""yes" 1>&6
11093 { test "$extra_verbose" = "yes" && cat << \EOF
11094 Defining HAVE_TERMIOS
11096 cat >> confdefs.h <<\EOF
11097 #define HAVE_TERMIOS 1
11101 { test "$extra_verbose" = "yes" && cat << \EOF
11102 Defining SIGNALS_VIA_CHARACTERS
11104 cat >> confdefs.h <<\EOF
11105 #define SIGNALS_VIA_CHARACTERS 1
11109 { test "$extra_verbose" = "yes" && cat << \EOF
11112 cat >> confdefs.h <<\EOF
11113 #define NO_TERMIO 1
11118 echo "$ac_t""no" 1>&6
11119 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11120 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11121 echo "configure:11122: checking for termio.h" >&5
11123 cat > conftest.$ac_ext <<EOF
11124 #line 11125 "configure"
11125 #include "confdefs.h"
11126 #include <termio.h>
11128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11129 { (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11131 if test -z "$ac_err"; then
11133 eval "ac_cv_header_$ac_safe=yes"
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11139 eval "ac_cv_header_$ac_safe=no"
11142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11143 echo "$ac_t""yes" 1>&6
11144 { test "$extra_verbose" = "yes" && cat << \EOF
11145 Defining HAVE_TERMIO
11147 cat >> confdefs.h <<\EOF
11148 #define HAVE_TERMIO 1
11153 echo "$ac_t""no" 1>&6
11160 echo $ac_n "checking for socket""... $ac_c" 1>&6
11161 echo "configure:11162: checking for socket" >&5
11163 cat > conftest.$ac_ext <<EOF
11164 #line 11165 "configure"
11165 #include "confdefs.h"
11166 /* System header to define __stub macros and hopefully few prototypes,
11167 which can conflict with char socket(); below. */
11168 #include <assert.h>
11169 /* Override any gcc2 internal prototype to avoid an error. */
11170 /* We use char because int might match the return type of a gcc2
11171 builtin and then its argument prototype would still apply. */
11176 /* The GNU C library defines this for functions which it implements
11177 to always fail with ENOSYS. Some functions are actually named
11178 something starting with __ and the normal name is an alias. */
11179 #if defined (__stub_socket) || defined (__stub___socket)
11187 if { (eval echo configure:11188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11189 eval "ac_cv_func_socket=yes"
11191 echo "configure: failed program was:" >&5
11192 cat conftest.$ac_ext >&5
11194 eval "ac_cv_func_socket=no"
11198 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11199 echo "$ac_t""yes" 1>&6
11200 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11201 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11202 echo "configure:11203: checking for netinet/in.h" >&5
11204 cat > conftest.$ac_ext <<EOF
11205 #line 11206 "configure"
11206 #include "confdefs.h"
11207 #include <netinet/in.h>
11209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11210 { (eval echo configure:11211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11212 if test -z "$ac_err"; then
11214 eval "ac_cv_header_$ac_safe=yes"
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11220 eval "ac_cv_header_$ac_safe=no"
11223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11224 echo "$ac_t""yes" 1>&6
11225 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11226 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11227 echo "configure:11228: checking for arpa/inet.h" >&5
11229 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure"
11231 #include "confdefs.h"
11232 #include <arpa/inet.h>
11234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11235 { (eval echo configure:11236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11237 if test -z "$ac_err"; then
11239 eval "ac_cv_header_$ac_safe=yes"
11242 echo "configure: failed program was:" >&5
11243 cat conftest.$ac_ext >&5
11245 eval "ac_cv_header_$ac_safe=no"
11248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11249 echo "$ac_t""yes" 1>&6
11251 { test "$extra_verbose" = "yes" && cat << \EOF
11252 Defining HAVE_SOCKETS
11254 cat >> confdefs.h <<\EOF
11255 #define HAVE_SOCKETS 1
11259 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11260 echo "configure:11261: checking "for sun_len member in struct sockaddr_un"" >&5
11261 cat > conftest.$ac_ext <<EOF
11262 #line 11263 "configure"
11263 #include "confdefs.h"
11265 #include <sys/types.h>
11266 #include <sys/socket.h>
11267 #include <sys/un.h>
11270 static struct sockaddr_un x; x.sun_len = 1;
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11275 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11276 Defining HAVE_SOCKADDR_SUN_LEN
11278 cat >> confdefs.h <<\EOF
11279 #define HAVE_SOCKADDR_SUN_LEN 1
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11287 echo "$ac_t""no" 1>&6
11290 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11291 echo "configure:11292: checking "for ip_mreq struct in netinet/in.h"" >&5
11292 cat > conftest.$ac_ext <<EOF
11293 #line 11294 "configure"
11294 #include "confdefs.h"
11296 #include <sys/types.h>
11297 #include <netinet/in.h>
11300 static struct ip_mreq x;
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11305 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11306 Defining HAVE_MULTICAST
11308 cat >> confdefs.h <<\EOF
11309 #define HAVE_MULTICAST 1
11314 echo "configure: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11317 echo "$ac_t""no" 1>&6
11321 echo "$ac_t""no" 1>&6
11325 echo "$ac_t""no" 1>&6
11329 echo "$ac_t""no" 1>&6
11333 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11334 echo "configure:11335: checking for msgget" >&5
11336 cat > conftest.$ac_ext <<EOF
11337 #line 11338 "configure"
11338 #include "confdefs.h"
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char msgget(); below. */
11341 #include <assert.h>
11342 /* Override any gcc2 internal prototype to avoid an error. */
11343 /* We use char because int might match the return type of a gcc2
11344 builtin and then its argument prototype would still apply. */
11349 /* The GNU C library defines this for functions which it implements
11350 to always fail with ENOSYS. Some functions are actually named
11351 something starting with __ and the normal name is an alias. */
11352 #if defined (__stub_msgget) || defined (__stub___msgget)
11360 if { (eval echo configure:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11362 eval "ac_cv_func_msgget=yes"
11364 echo "configure: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11367 eval "ac_cv_func_msgget=no"
11371 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11372 echo "$ac_t""yes" 1>&6
11373 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
11374 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
11375 echo "configure:11376: checking for sys/ipc.h" >&5
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11380 #include <sys/ipc.h>
11382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11383 { (eval echo configure:11384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11385 if test -z "$ac_err"; then
11387 eval "ac_cv_header_$ac_safe=yes"
11390 echo "configure: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11393 eval "ac_cv_header_$ac_safe=no"
11396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11397 echo "$ac_t""yes" 1>&6
11398 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
11399 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
11400 echo "configure:11401: checking for sys/msg.h" >&5
11402 cat > conftest.$ac_ext <<EOF
11403 #line 11404 "configure"
11404 #include "confdefs.h"
11405 #include <sys/msg.h>
11407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11408 { (eval echo configure:11409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11410 if test -z "$ac_err"; then
11412 eval "ac_cv_header_$ac_safe=yes"
11415 echo "configure: failed program was:" >&5
11416 cat conftest.$ac_ext >&5
11418 eval "ac_cv_header_$ac_safe=no"
11421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11422 echo "$ac_t""yes" 1>&6
11423 { test "$extra_verbose" = "yes" && cat << \EOF
11424 Defining HAVE_SYSVIPC
11426 cat >> confdefs.h <<\EOF
11427 #define HAVE_SYSVIPC 1
11432 echo "$ac_t""no" 1>&6
11436 echo "$ac_t""no" 1>&6
11440 echo "$ac_t""no" 1>&6
11444 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
11445 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
11446 echo "configure:11447: checking for dirent.h" >&5
11448 cat > conftest.$ac_ext <<EOF
11449 #line 11450 "configure"
11450 #include "confdefs.h"
11451 #include <dirent.h>
11453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11454 { (eval echo configure:11455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11456 if test -z "$ac_err"; then
11458 eval "ac_cv_header_$ac_safe=yes"
11461 echo "configure: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11464 eval "ac_cv_header_$ac_safe=no"
11467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11468 echo "$ac_t""yes" 1>&6
11469 { test "$extra_verbose" = "yes" && cat << \EOF
11470 Defining SYSV_SYSTEM_DIR
11472 cat >> confdefs.h <<\EOF
11473 #define SYSV_SYSTEM_DIR 1
11478 echo "$ac_t""no" 1>&6
11479 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11480 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11481 echo "configure:11482: checking for sys/dir.h" >&5
11483 cat > conftest.$ac_ext <<EOF
11484 #line 11485 "configure"
11485 #include "confdefs.h"
11486 #include <sys/dir.h>
11488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11489 { (eval echo configure:11490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11491 if test -z "$ac_err"; then
11493 eval "ac_cv_header_$ac_safe=yes"
11496 echo "configure: failed program was:" >&5
11497 cat conftest.$ac_ext >&5
11499 eval "ac_cv_header_$ac_safe=no"
11502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11503 echo "$ac_t""yes" 1>&6
11506 echo "$ac_t""no" 1>&6
11507 { test "$extra_verbose" = "yes" && cat << \EOF
11508 Defining NONSYSTEM_DIR_LIBRARY
11510 cat >> confdefs.h <<\EOF
11511 #define NONSYSTEM_DIR_LIBRARY 1
11520 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11521 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11522 echo "configure:11523: checking for nlist.h" >&5
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11530 { (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11532 if test -z "$ac_err"; then
11534 eval "ac_cv_header_$ac_safe=yes"
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11540 eval "ac_cv_header_$ac_safe=no"
11543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11544 echo "$ac_t""yes" 1>&6
11545 { test "$extra_verbose" = "yes" && cat << \EOF
11546 Defining NLIST_STRUCT
11548 cat >> confdefs.h <<\EOF
11549 #define NLIST_STRUCT 1
11554 echo "$ac_t""no" 1>&6
11559 echo "checking "for sound support"" 1>&6
11560 echo "configure:11561: checking "for sound support"" >&5
11561 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11563 if test "$with_native_sound" != "no"; then
11564 if test -n "$native_sound_lib"; then
11565 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11566 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11567 echo "configure:11568: checking for multimedia/audio_device.h" >&5
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11571 "configure"
11571 #include "confdefs.h"
11572 #include <multimedia/audio_device.h>
11574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11575 { (eval echo configure:11576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11577 if test -z "$ac_err"; then
11579 eval "ac_cv_header_$ac_safe=yes"
11582 echo "configure: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11585 eval "ac_cv_header_$ac_safe=no"
11588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11589 echo "$ac_t""yes" 1>&6
11590 sound_found=yes sound_cflags=""
11591 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11592 echo " xemacs will be linked with \"sunplay.o\""
11595 echo "$ac_t""no" 1>&6
11600 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
11602 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11603 echo " xemacs will be linked with \"sunplay.o\""
11605 if test -d "/usr/demo/SOUND/include"
11606 then sound_cflags="-I/usr/demo/SOUND/include"
11607 else sound_cflags="-I/usr/demo/SOUND"
11609 if test -z "$native_sound_lib" ; then
11610 if test -r "/usr/demo/SOUND/lib/libaudio.a"
11611 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
11612 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
11617 if test -z "$sound_found"; then
11618 case "$canonical" in
11620 if test -z "$native_sound_lib"; then
11622 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11623 echo "configure:11624: checking for ALopenport in -laudio" >&5
11624 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11626 xe_check_libs=" -laudio "
11627 cat > conftest.$ac_ext <<EOF
11628 #line 11629 "configure"
11629 #include "confdefs.h"
11630 /* Override any gcc2 internal prototype to avoid an error. */
11631 /* We use char because int might match the return type of a gcc2
11632 builtin and then its argument prototype would still apply. */
11639 if { (eval echo configure:11640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11641 eval "ac_cv_lib_$ac_lib_var=yes"
11643 echo "configure: failed program was:" >&5
11644 cat conftest.$ac_ext >&5
11646 eval "ac_cv_lib_$ac_lib_var=no"
11651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11652 echo "$ac_t""yes" 1>&6
11653 native_sound_lib="-laudio"
11655 echo "$ac_t""no" 1>&6
11660 if test -n "$native_sound_lib"; then
11661 sound_found=yes sound_cflags=""
11662 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
11663 echo " xemacs will be linked with \"sgiplay.o\""
11667 if test -z "$native_sound_lib"; then
11669 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11670 echo "configure:11671: checking for AOpenAudio in -lAlib" >&5
11671 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11673 xe_check_libs=" -lAlib "
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 /* Override any gcc2 internal prototype to avoid an error. */
11678 /* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11688 eval "ac_cv_lib_$ac_lib_var=yes"
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11693 eval "ac_cv_lib_$ac_lib_var=no"
11698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11699 echo "$ac_t""yes" 1>&6
11700 native_sound_lib="-lAlib"
11702 echo "$ac_t""no" 1>&6
11707 if test -n "$native_sound_lib"; then
11709 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
11710 echo " xemacs will be linked with \"hpplay.o\""
11712 if test "$GCC" = "yes" # Kludge city
11713 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
11714 else sound_cflags="+e -I/usr/audio/examples"
11720 if test -z "$sound_found"; then
11721 for dir in "machine" "sys" "linux"; do
11722 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11723 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11724 echo "configure:11725: checking for ${dir}/soundcard.h" >&5
11726 cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure"
11728 #include "confdefs.h"
11729 #include <${dir}/soundcard.h>
11731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11732 { (eval echo configure:11733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11734 if test -z "$ac_err"; then
11736 eval "ac_cv_header_$ac_safe=yes"
11739 echo "configure: failed program was:" >&5
11740 cat conftest.$ac_ext >&5
11742 eval "ac_cv_header_$ac_safe=no"
11745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11746 echo "$ac_t""yes" 1>&6
11749 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
11750 echo " xemacs will be linked with \"linuxplay.o\""
11752 { test "$extra_verbose" = "yes" && cat << EOF
11753 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
11755 cat >> confdefs.h <<EOF
11756 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
11762 echo "$ac_t""no" 1>&6
11768 if test -z "$sound_found"; then
11769 if test "$with_msw" = "yes"; then
11775 test "$sound_found" = "yes" && with_native_sound=yes
11778 if test "$with_native_sound" = "yes"; then
11779 { test "$extra_verbose" = "yes" && cat << \EOF
11780 Defining HAVE_NATIVE_SOUND
11782 cat >> confdefs.h <<\EOF
11783 #define HAVE_NATIVE_SOUND 1
11787 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
11790 if test "$with_nas_sound" != "no"; then
11791 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11792 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11793 echo "configure:11794: checking for audio/audiolib.h" >&5
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 #include <audio/audiolib.h>
11800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11801 { (eval echo configure:11802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11803 if test -z "$ac_err"; then
11805 eval "ac_cv_header_$ac_safe=yes"
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11811 eval "ac_cv_header_$ac_safe=no"
11814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11818 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11819 echo "configure:11820: checking for AuOpenServer in -laudio" >&5
11820 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11822 xe_check_libs=" -laudio "
11823 cat > conftest.$ac_ext <<EOF
11824 #line 11825 "configure"
11825 #include "confdefs.h"
11826 /* Override any gcc2 internal prototype to avoid an error. */
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11829 char AuOpenServer();
11835 if { (eval echo configure:11836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11837 eval "ac_cv_lib_$ac_lib_var=yes"
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11842 eval "ac_cv_lib_$ac_lib_var=no"
11847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11848 echo "$ac_t""yes" 1>&6
11851 echo "$ac_t""no" 1>&6
11856 echo "$ac_t""no" 1>&6
11859 if test "$have_nas_sound" = "yes"; then
11861 { test "$extra_verbose" = "yes" && cat << \EOF
11862 Defining HAVE_NAS_SOUND
11864 cat >> confdefs.h <<\EOF
11865 #define HAVE_NAS_SOUND 1
11869 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11870 echo " xemacs will be linked with \"nas.o\""
11872 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11873 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure"
11875 #include "confdefs.h"
11876 #include <audio/Xtutil.h>
11878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11879 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11883 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
11884 Defining NAS_NO_ERROR_JUMP
11886 cat >> confdefs.h <<\EOF
11887 #define NAS_NO_ERROR_JUMP 1
11895 test "$with_nas_sound" = "yes" && \
11896 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11901 if test "$with_esd_sound" != "no"; then
11902 # Extract the first word of "esd-config", so it can be a program name with args.
11903 set dummy esd-config; ac_word=$2
11904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11905 echo "configure:11906: checking for $ac_word" >&5
11907 if test -n "$have_esd_config"; then
11908 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11912 for ac_dir in $ac_dummy; do
11913 test -z "$ac_dir" && ac_dir=.
11914 if test -f $ac_dir/$ac_word; then
11915 ac_cv_prog_have_esd_config="yes"
11920 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11922 have_esd_config="$ac_cv_prog_have_esd_config"
11923 if test -n "$have_esd_config"; then
11924 echo "$ac_t""$have_esd_config" 1>&6
11926 echo "$ac_t""no" 1>&6
11929 if test "$have_esd_config" = "yes"; then
11930 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11931 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
11932 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11933 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11934 echo "configure:11935: checking for esd_play_stream" >&5
11936 cat > conftest.$ac_ext <<EOF
11937 #line 11938 "configure"
11938 #include "confdefs.h"
11939 /* System header to define __stub macros and hopefully few prototypes,
11940 which can conflict with char esd_play_stream(); below. */
11941 #include <assert.h>
11942 /* Override any gcc2 internal prototype to avoid an error. */
11943 /* We use char because int might match the return type of a gcc2
11944 builtin and then its argument prototype would still apply. */
11945 char esd_play_stream();
11949 /* The GNU C library defines this for functions which it implements
11950 to always fail with ENOSYS. Some functions are actually named
11951 something starting with __ and the normal name is an alias. */
11952 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11960 if { (eval echo configure:11961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11962 eval "ac_cv_func_esd_play_stream=yes"
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11967 eval "ac_cv_func_esd_play_stream=no"
11971 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11972 echo "$ac_t""yes" 1>&6
11975 echo "$ac_t""no" 1>&6
11976 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11981 if test "$have_esd_sound" = "yes"; then
11984 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11985 echo " xemacs will be linked with \"esd.o\""
11987 { test "$extra_verbose" = "yes" && cat << \EOF
11988 Defining HAVE_ESD_SOUND
11990 cat >> confdefs.h <<\EOF
11991 #define HAVE_ESD_SOUND 1
11996 test "$with_esd_sound" = "yes" && \
11997 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12002 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12003 echo " xemacs will be linked with \"miscplay.o\""
12007 test -z "$with_tty" && with_tty=yes
12009 if test "$with_tty" = "yes" ; then
12010 echo "checking for TTY-related features" 1>&6
12011 echo "configure:12012: checking for TTY-related features" >&5
12012 { test "$extra_verbose" = "yes" && cat << \EOF
12015 cat >> confdefs.h <<\EOF
12020 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
12021 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\""
12024 if test -z "$with_ncurses"; then
12026 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12027 echo "configure:12028: checking for tgetent in -lncurses" >&5
12028 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12030 xe_check_libs=" -lncurses "
12031 cat > conftest.$ac_ext <<EOF
12032 #line 12033 "configure"
12033 #include "confdefs.h"
12034 /* Override any gcc2 internal prototype to avoid an error. */
12035 /* We use char because int might match the return type of a gcc2
12036 builtin and then its argument prototype would still apply. */
12043 if { (eval echo configure:12044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12045 eval "ac_cv_lib_$ac_lib_var=yes"
12047 echo "configure: failed program was:" >&5
12048 cat conftest.$ac_ext >&5
12050 eval "ac_cv_lib_$ac_lib_var=no"
12055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12056 echo "$ac_t""yes" 1>&6
12059 echo "$ac_t""no" 1>&6
12065 if test "$with_ncurses" = "yes"; then
12066 { test "$extra_verbose" = "yes" && cat << \EOF
12067 Defining HAVE_NCURSES
12069 cat >> confdefs.h <<\EOF
12070 #define HAVE_NCURSES 1
12074 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12075 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12076 echo "configure:12077: checking for ncurses/curses.h" >&5
12078 cat > conftest.$ac_ext <<EOF
12079 #line 12080 "configure"
12080 #include "confdefs.h"
12081 #include <ncurses/curses.h>
12083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12084 { (eval echo configure:12085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12086 if test -z "$ac_err"; then
12088 eval "ac_cv_header_$ac_safe=yes"
12091 echo "configure: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12094 eval "ac_cv_header_$ac_safe=no"
12097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12098 echo "$ac_t""yes" 1>&6
12099 curses_h_file=ncurses/curses.h
12101 echo "$ac_t""no" 1>&6
12104 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12105 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12106 echo "configure:12107: checking for ncurses/term.h" >&5
12108 cat > conftest.$ac_ext <<EOF
12109 #line 12110 "configure"
12110 #include "confdefs.h"
12111 #include <ncurses/term.h>
12113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12114 { (eval echo configure:12115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12116 if test -z "$ac_err"; then
12118 eval "ac_cv_header_$ac_safe=yes"
12121 echo "configure: failed program was:" >&5
12122 cat conftest.$ac_ext >&5
12124 eval "ac_cv_header_$ac_safe=no"
12127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12128 echo "$ac_t""yes" 1>&6
12129 term_h_file=ncurses/term.h
12131 echo "$ac_t""no" 1>&6
12134 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12135 echo " xemacs will be linked with \"terminfo.o\""
12137 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12139 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12140 save_c_switch_site="$c_switch_site"
12141 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12142 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12143 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12144 echo "configure:12145: checking for ncurses/curses.h" >&5
12146 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure"
12148 #include "confdefs.h"
12149 #include <ncurses/curses.h>
12151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12152 { (eval echo configure:12153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12154 if test -z "$ac_err"; then
12156 eval "ac_cv_header_$ac_safe=yes"
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12162 eval "ac_cv_header_$ac_safe=no"
12165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12166 echo "$ac_t""yes" 1>&6
12167 curses_h_file=ncurses/curses.h
12169 echo "$ac_t""no" 1>&6
12172 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12173 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12174 else c_switch_site="$save_c_switch_site"
12177 else if test "$have_terminfo" = "yes"; then
12178 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12179 echo " xemacs will be linked with \"terminfo.o\""
12181 if test -n "$libs_termcap"; then
12182 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12184 for lib in curses termlib termcap; do
12186 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12187 echo "configure:12188: checking for tgetent in -l$lib" >&5
12188 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12190 xe_check_libs=" -l$lib "
12191 cat > conftest.$ac_ext <<EOF
12192 #line 12193 "configure"
12193 #include "confdefs.h"
12194 /* Override any gcc2 internal prototype to avoid an error. */
12195 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12203 if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12205 eval "ac_cv_lib_$ac_lib_var=yes"
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12210 eval "ac_cv_lib_$ac_lib_var=no"
12215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12216 echo "$ac_t""yes" 1>&6
12217 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12219 echo "$ac_t""no" 1>&6
12225 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12226 echo " xemacs will be linked with \"tparam.o\""
12228 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12229 if test -n "$libs_termcap"; then
12230 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12233 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12234 echo "configure:12235: checking for tgetent in -lcurses" >&5
12235 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12237 xe_check_libs=" -lcurses "
12238 cat > conftest.$ac_ext <<EOF
12239 #line 12240 "configure"
12240 #include "confdefs.h"
12241 /* Override any gcc2 internal prototype to avoid an error. */
12242 /* We use char because int might match the return type of a gcc2
12243 builtin and then its argument prototype would still apply. */
12250 if { (eval echo configure:12251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12252 eval "ac_cv_lib_$ac_lib_var=yes"
12254 echo "configure: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12257 eval "ac_cv_lib_$ac_lib_var=no"
12262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12263 echo "$ac_t""yes" 1>&6
12264 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12266 echo "$ac_t""no" 1>&6
12267 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12268 echo "configure:12269: checking for tgetent in -ltermcap" >&5
12269 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12271 xe_check_libs=" -ltermcap "
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12275 /* Override any gcc2 internal prototype to avoid an error. */
12276 /* We use char because int might match the return type of a gcc2
12277 builtin and then its argument prototype would still apply. */
12284 if { (eval echo configure:12285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12286 eval "ac_cv_lib_$ac_lib_var=yes"
12288 echo "configure: failed program was:" >&5
12289 cat conftest.$ac_ext >&5
12291 eval "ac_cv_lib_$ac_lib_var=no"
12296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12297 echo "$ac_t""yes" 1>&6
12298 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12300 echo "$ac_t""no" 1>&6
12301 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12302 echo " xemacs will be linked with \"termcap.o\""
12313 { test "$extra_verbose" = "yes" && cat << EOF
12314 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
12316 cat >> confdefs.h <<EOF
12317 #define CURSES_H_FILE "${curses_h_file-curses.h}"
12321 { test "$extra_verbose" = "yes" && cat << EOF
12322 Defining TERM_H_FILE = "${term_h_file-term.h}"
12324 cat >> confdefs.h <<EOF
12325 #define TERM_H_FILE "${term_h_file-term.h}"
12330 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12331 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12332 echo "configure:12333: checking for gpm.h" >&5
12334 cat > conftest.$ac_ext <<EOF
12335 #line 12336 "configure"
12336 #include "confdefs.h"
12339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12340 { (eval echo configure:12341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12342 if test -z "$ac_err"; then
12344 eval "ac_cv_header_$ac_safe=yes"
12347 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12350 eval "ac_cv_header_$ac_safe=no"
12353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12354 echo "$ac_t""yes" 1>&6
12357 echo "$ac_t""no" 1>&6
12361 test -z "$with_gpm" && {
12362 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12363 echo "configure:12364: checking for Gpm_Open in -lgpm" >&5
12364 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12366 xe_check_libs=" -lgpm "
12367 cat > conftest.$ac_ext <<EOF
12368 #line 12369 "configure"
12369 #include "confdefs.h"
12370 /* Override any gcc2 internal prototype to avoid an error. */
12371 /* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */
12379 if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12381 eval "ac_cv_lib_$ac_lib_var=yes"
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12386 eval "ac_cv_lib_$ac_lib_var=no"
12391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12392 echo "$ac_t""yes" 1>&6
12395 echo "$ac_t""no" 1>&6
12400 if test "$with_gpm" = "yes"; then
12401 { test "$extra_verbose" = "yes" && cat << \EOF
12404 cat >> confdefs.h <<\EOF
12409 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
12410 echo " xemacs will be linked with \"gpmevent.o\""
12412 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
12415 else for feature in ncurses gpm; do
12416 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
12417 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
12419 eval "with_${feature}=no"
12422 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
12423 echo " xemacs will be linked with \"event-unixoid.o\""
12427 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12428 != "no no no" && echo "checking for database support" 1>&6
12429 echo "configure:12430: checking for database support" >&5
12431 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
12432 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
12433 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
12434 echo "configure:12435: checking for ndbm.h" >&5
12436 cat > conftest.$ac_ext <<EOF
12437 #line 12438 "configure"
12438 #include "confdefs.h"
12441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12442 { (eval echo configure:12443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12444 if test -z "$ac_err"; then
12446 eval "ac_cv_header_$ac_safe=yes"
12449 echo "configure: failed program was:" >&5
12450 cat conftest.$ac_ext >&5
12452 eval "ac_cv_header_$ac_safe=no"
12455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12456 echo "$ac_t""yes" 1>&6
12459 echo "$ac_t""no" 1>&6
12461 test "$with_database_gdbm" = "yes" -o \
12462 "$with_database_dbm" = "yes" && \
12463 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12464 with_database_gdbm=no with_database_dbm=no
12469 if test "$with_database_gdbm" != "no"; then
12471 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
12472 echo "configure:12473: checking for dbm_open in -lgdbm" >&5
12473 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12475 xe_check_libs=" -lgdbm "
12476 cat > conftest.$ac_ext <<EOF
12477 #line 12478 "configure"
12478 #include "confdefs.h"
12479 /* Override any gcc2 internal prototype to avoid an error. */
12480 /* We use char because int might match the return type of a gcc2
12481 builtin and then its argument prototype would still apply. */
12488 if { (eval echo configure:12489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12490 eval "ac_cv_lib_$ac_lib_var=yes"
12492 echo "configure: failed program was:" >&5
12493 cat conftest.$ac_ext >&5
12495 eval "ac_cv_lib_$ac_lib_var=no"
12500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12501 echo "$ac_t""yes" 1>&6
12502 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
12504 echo "$ac_t""no" 1>&6
12505 if test "$with_database_gdbm" = "yes"; then
12506 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
12508 with_database_gdbm=no
12514 if test "$with_database_dbm" != "no"; then
12515 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12516 echo "configure:12517: checking for dbm_open" >&5
12518 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521 /* System header to define __stub macros and hopefully few prototypes,
12522 which can conflict with char dbm_open(); below. */
12523 #include <assert.h>
12524 /* Override any gcc2 internal prototype to avoid an error. */
12525 /* We use char because int might match the return type of a gcc2
12526 builtin and then its argument prototype would still apply. */
12531 /* The GNU C library defines this for functions which it implements
12532 to always fail with ENOSYS. Some functions are actually named
12533 something starting with __ and the normal name is an alias. */
12534 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12542 if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12544 eval "ac_cv_func_dbm_open=yes"
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12549 eval "ac_cv_func_dbm_open=no"
12553 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12554 echo "$ac_t""yes" 1>&6
12555 with_database_dbm=yes libdbm=
12557 echo "$ac_t""no" 1>&6
12560 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12561 echo "configure:12562: checking for dbm_open in -ldbm" >&5
12562 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12564 xe_check_libs=" -ldbm "
12565 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12568 /* Override any gcc2 internal prototype to avoid an error. */
12569 /* We use char because int might match the return type of a gcc2
12570 builtin and then its argument prototype would still apply. */
12577 if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12579 eval "ac_cv_lib_$ac_lib_var=yes"
12581 echo "configure: failed program was:" >&5
12582 cat conftest.$ac_ext >&5
12584 eval "ac_cv_lib_$ac_lib_var=no"
12589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12590 echo "$ac_t""yes" 1>&6
12591 with_database_dbm=yes libdbm=-ldbm
12593 echo "$ac_t""no" 1>&6
12594 test "$with_database_dbm" = "yes" && \
12595 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12596 with_database_dbm=no
12604 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
12605 test "$with_database_gdbm" = "yes" -o \
12606 "$with_database_dbm" = "yes" && \
12607 { test "$extra_verbose" = "yes" && cat << \EOF
12610 cat >> confdefs.h <<\EOF
12616 if test "$with_database_berkdb" != "no"; then
12617 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12618 echo "configure:12619: checking for Berkeley db.h" >&5
12619 for header in "db/db.h" "db.h"; do
12620 cat > conftest.$ac_ext <<EOF
12621 #line 12622 "configure"
12622 #include "confdefs.h"
12624 #include <stdlib.h>
12625 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
12626 #ifdef HAVE_INTTYPES_H
12627 #define __BIT_TYPES_DEFINED__
12628 #include <inttypes.h>
12629 typedef uint8_t u_int8_t;
12630 typedef uint16_t u_int16_t;
12631 typedef uint32_t u_int32_t;
12632 #ifdef WE_DONT_NEED_QUADS
12633 typedef uint64_t u_int64_t;
12643 if { (eval echo configure:12644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12645 db_h_file="$header"; break
12647 echo "configure: failed program was:" >&5
12648 cat conftest.$ac_ext >&5
12652 if test -z "$db_h_file"
12653 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
12654 else echo "$ac_t""$db_h_file" 1>&6
12657 if test "$with_database_berkdb" != "no"; then
12658 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12659 echo "configure:12660: checking for Berkeley DB version" >&5
12660 cat > conftest.$ac_ext <<EOF
12661 #line 12662 "configure"
12662 #include "confdefs.h"
12663 #include <$db_h_file>
12664 #if DB_VERSION_MAJOR > 1
12669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12670 egrep "yes" >/dev/null 2>&1; then
12672 echo "$ac_t""2" 1>&6; dbfunc=db_open
12675 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12679 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12680 echo "configure:12681: checking for $dbfunc" >&5
12682 cat > conftest.$ac_ext <<EOF
12683 #line 12684 "configure"
12684 #include "confdefs.h"
12685 /* System header to define __stub macros and hopefully few prototypes,
12686 which can conflict with char $dbfunc(); below. */
12687 #include <assert.h>
12688 /* Override any gcc2 internal prototype to avoid an error. */
12689 /* We use char because int might match the return type of a gcc2
12690 builtin and then its argument prototype would still apply. */
12695 /* The GNU C library defines this for functions which it implements
12696 to always fail with ENOSYS. Some functions are actually named
12697 something starting with __ and the normal name is an alias. */
12698 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
12706 if { (eval echo configure:12707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12708 eval "ac_cv_func_$dbfunc=yes"
12710 echo "configure: failed program was:" >&5
12711 cat conftest.$ac_ext >&5
12713 eval "ac_cv_func_$dbfunc=no"
12717 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
12718 echo "$ac_t""yes" 1>&6
12719 with_database_berkdb=yes need_libdb=no
12721 echo "$ac_t""no" 1>&6
12724 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12725 echo "configure:12726: checking for $dbfunc in -ldb" >&5
12726 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12728 xe_check_libs=" -ldb "
12729 cat > conftest.$ac_ext <<EOF
12730 #line 12731 "configure"
12731 #include "confdefs.h"
12732 /* Override any gcc2 internal prototype to avoid an error. */
12733 /* We use char because int might match the return type of a gcc2
12734 builtin and then its argument prototype would still apply. */
12741 if { (eval echo configure:12742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12743 eval "ac_cv_lib_$ac_lib_var=yes"
12745 echo "configure: failed program was:" >&5
12746 cat conftest.$ac_ext >&5
12748 eval "ac_cv_lib_$ac_lib_var=no"
12753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12754 echo "$ac_t""yes" 1>&6
12755 with_database_berkdb=yes need_libdb=yes
12757 echo "$ac_t""no" 1>&6
12765 if test "$with_database_berkdb" = "yes"; then
12766 { test "$extra_verbose" = "yes" && cat << EOF
12767 Defining DB_H_FILE = "$db_h_file"
12769 cat >> confdefs.h <<EOF
12770 #define DB_H_FILE "$db_h_file"
12774 { test "$extra_verbose" = "yes" && cat << \EOF
12775 Defining HAVE_BERKELEY_DB
12777 cat >> confdefs.h <<\EOF
12778 #define HAVE_BERKELEY_DB 1
12782 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
12783 else with_database_berkdb=no
12787 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12788 != "no no no"; then
12789 { test "$extra_verbose" = "yes" && cat << \EOF
12790 Defining HAVE_DATABASE
12792 cat >> confdefs.h <<\EOF
12793 #define HAVE_DATABASE 1
12797 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
12798 echo " xemacs will be linked with \"database.o\""
12802 if test "$with_socks" = "yes"; then
12804 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12805 echo "configure:12806: checking for SOCKSinit in -lsocks" >&5
12806 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12808 xe_check_libs=" -lsocks "
12809 cat > conftest.$ac_ext <<EOF
12810 #line 12811 "configure"
12811 #include "confdefs.h"
12812 /* Override any gcc2 internal prototype to avoid an error. */
12813 /* We use char because int might match the return type of a gcc2
12814 builtin and then its argument prototype would still apply. */
12821 if { (eval echo configure:12822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12823 eval "ac_cv_lib_$ac_lib_var=yes"
12825 echo "configure: failed program was:" >&5
12826 cat conftest.$ac_ext >&5
12828 eval "ac_cv_lib_$ac_lib_var=no"
12833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12834 echo "$ac_t""yes" 1>&6
12835 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12836 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12837 { test "$extra_verbose" = "yes" && cat << EOF
12838 Defining $ac_tr_lib
12840 cat >> confdefs.h <<EOF
12841 #define $ac_tr_lib 1
12845 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
12848 echo "$ac_t""no" 1>&6
12852 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
12853 Defining HAVE_SOCKS
12855 cat >> confdefs.h <<\EOF
12856 #define HAVE_SOCKS 1
12862 if test "$usage_tracking" = "yes"; then
12863 { test "$extra_verbose" = "yes" && cat << \EOF
12864 Defining USAGE_TRACKING
12866 cat >> confdefs.h <<\EOF
12867 #define USAGE_TRACKING 1
12871 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12874 if test "$with_modules" != "no"; then
12875 echo "checking for module support" 1>&6
12876 echo "configure:12877: checking for module support" >&5
12878 if test "$with_msw" = "yes"; then
12881 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12882 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12883 echo "configure:12884: checking for dlfcn.h" >&5
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12891 { (eval echo configure:12892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12893 if test -z "$ac_err"; then
12895 eval "ac_cv_header_$ac_safe=yes"
12898 echo "configure: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12901 eval "ac_cv_header_$ac_safe=no"
12904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12905 echo "$ac_t""yes" 1>&6
12908 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12909 echo "configure:12910: checking for dlopen in -ldl" >&5
12910 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12912 xe_check_libs=" -ldl "
12913 cat > conftest.$ac_ext <<EOF
12914 #line 12915 "configure"
12915 #include "confdefs.h"
12916 /* Override any gcc2 internal prototype to avoid an error. */
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12925 if { (eval echo configure:12926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12927 eval "ac_cv_lib_$ac_lib_var=yes"
12929 echo "configure: failed program was:" >&5
12930 cat conftest.$ac_ext >&5
12932 eval "ac_cv_lib_$ac_lib_var=no"
12937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12938 echo "$ac_t""yes" 1>&6
12939 have_dl=yes libdl=dl
12941 echo "$ac_t""no" 1>&6
12943 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12944 echo "configure:12945: checking for dlopen in -lc" >&5
12945 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12947 xe_check_libs=" -lc "
12948 cat > conftest.$ac_ext <<EOF
12949 #line 12950 "configure"
12950 #include "confdefs.h"
12951 /* Override any gcc2 internal prototype to avoid an error. */
12952 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12960 if { (eval echo configure:12961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12962 eval "ac_cv_lib_$ac_lib_var=yes"
12964 echo "configure: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12967 eval "ac_cv_lib_$ac_lib_var=no"
12972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12973 echo "$ac_t""yes" 1>&6
12976 echo "$ac_t""no" 1>&6
12984 echo "$ac_t""no" 1>&6
12987 if test -n "$have_dl"; then
12988 { test "$extra_verbose" = "yes" && cat << \EOF
12989 Defining HAVE_DLOPEN
12991 cat >> confdefs.h <<\EOF
12992 #define HAVE_DLOPEN 1
12998 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12999 echo "configure:13000: checking for shl_load in -ldld" >&5
13000 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13002 xe_check_libs=" -ldld "
13003 cat > conftest.$ac_ext <<EOF
13004 #line 13005 "configure"
13005 #include "confdefs.h"
13006 /* Override any gcc2 internal prototype to avoid an error. */
13007 /* We use char because int might match the return type of a gcc2
13008 builtin and then its argument prototype would still apply. */
13015 if { (eval echo configure:13016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13017 eval "ac_cv_lib_$ac_lib_var=yes"
13019 echo "configure: failed program was:" >&5
13020 cat conftest.$ac_ext >&5
13022 eval "ac_cv_lib_$ac_lib_var=no"
13027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13028 echo "$ac_t""yes" 1>&6
13029 libdl=dld have_dl=yes;
13030 { test "$extra_verbose" = "yes" && cat << \EOF
13031 Defining HAVE_SHL_LOAD
13033 cat >> confdefs.h <<\EOF
13034 #define HAVE_SHL_LOAD 1
13039 echo "$ac_t""no" 1>&6
13041 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13042 echo "configure:13043: checking for dld_init in -ldld" >&5
13043 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13045 xe_check_libs=" -ldld "
13046 cat > conftest.$ac_ext <<EOF
13047 #line 13048 "configure"
13048 #include "confdefs.h"
13049 /* Override any gcc2 internal prototype to avoid an error. */
13050 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13058 if { (eval echo configure:13059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13060 eval "ac_cv_lib_$ac_lib_var=yes"
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13065 eval "ac_cv_lib_$ac_lib_var=no"
13070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13071 echo "$ac_t""yes" 1>&6
13072 libdl=dld have_dl=yes;
13073 { test "$extra_verbose" = "yes" && cat << \EOF
13074 Defining HAVE_DLD_INIT
13076 cat >> confdefs.h <<\EOF
13077 #define HAVE_DLD_INIT 1
13082 echo "$ac_t""no" 1>&6
13091 if test -n "$have_dl"; then
13098 ld_dynamic_link_flags=
13100 xealias=$internal_configuration
13102 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13103 echo "configure:13104: checking how to build dynamic libraries for ${xehost}" >&5
13104 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13107 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13110 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13111 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13112 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13114 case "$xehost_os" in
13116 # AIX sometimes has problems with the GCC collect2 program. For some
13117 # reason, if we set the COLLECT_NAMES environment variable, the problems
13118 # vanish in a puff of smoke.
13119 if test "${COLLECT_NAMES+set}" != set; then
13121 export COLLECT_NAMES
13126 # Now see if the compiler is really GCC.
13127 if test "$GCC" = "yes"; then
13130 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13131 echo "configure:13132: checking checking whether we are using GNU C" >&5
13132 cat > conftest.$ac_ext <<EOF
13133 #line 13134 "configure"
13134 #include "confdefs.h"
13141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13142 egrep "yes" >/dev/null 2>&1; then
13151 echo "$ac_t""${XEGCC}" 1>&6
13154 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13155 echo "configure:13156: checking how to produce PIC code" >&5
13158 can_build_shared=yes
13159 if test "$XEGCC" = yes; then
13162 case "$xehost_os" in
13163 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13164 # PIC is the default for these OSes.
13167 aix3* | aix4* | os2*)
13168 # We can build DLLs from non-PIC.
13171 # FIXME: we need at least 68020 code to build shared libraries, but
13172 # adding the `-m68020' flag to GCC prevents building anything better,
13174 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13176 *cygwin* | *mingw* )
13177 # PIC is the default
13184 # PORTME Check for PIC flags for the system compiler.
13185 case "$xehost_os" in
13186 hpux9* | hpux1[0-9]*)
13187 # Is there a better link_static_flag that works with the bundled CC?
13194 # PIC (with -KPIC) is the default.
13198 # We can build DLLs from non-PIC.
13202 # All OSF/1 code is PIC.
13207 dll_cflags='-belf -Kpic'
13241 can_build_shared=no
13246 if test -n "$dll_cflags"; then
13247 echo "$ac_t""${dll_cflags}" 1>&6
13249 # Check to make sure the dll_cflags actually works.
13250 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13251 echo "configure:13252: checking if PIC flag ${dll_cflags} really works" >&5
13252 save_CFLAGS="$CFLAGS"
13253 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13254 cat > conftest.$ac_ext <<EOF
13255 #line 13256 "configure"
13256 #include "confdefs.h"
13262 if { (eval echo configure:13263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13265 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13266 # reports no error. So, we need to grep stderr for (Bundled).
13267 if grep '(Bundled)' config.log >/dev/null; then
13268 echo "$ac_t""no" 1>&6
13269 can_build_shared=no
13272 echo "$ac_t""yes" 1>&6
13275 echo "configure: failed program was:" >&5
13276 cat conftest.$ac_ext >&5
13278 echo "$ac_t""no" 1>&6
13279 can_build_shared=no
13283 CFLAGS="$save_CFLAGS"
13285 echo "$ac_t""none" 1>&6
13288 if test "$can_build_shared" = "yes"; then
13292 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13293 echo "configure:13294: checking if C compiler can produce shared libraries" >&5
13294 if test "$XEGCC" = yes; then
13297 else # Not using GCC
13298 case "$xehost_os" in
13300 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13301 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
13304 freebsd2* | netbsd* | openbsd*)
13306 xcldf="${wl}-Bshareable"
13315 xcldf="${wl}-b ${wl}+s"
13318 irix5* | irix6* | osf3* | osf4*)
13319 xcldf="${wl}-shared"
13323 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
13329 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
13330 xldf="-assert pure-text -Bstatic"
13333 fi # End if if we are using gcc
13335 if test -n "$xcldf"; then
13336 save_LDFLAGS=$LDFLAGS
13338 save_xe_libs=$xe_libs
13339 LDFLAGS="$xcldf $LDFLAGS"
13342 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13343 cat > conftest.$ac_ext <<EOF
13344 #line 13345 "configure"
13345 #include "confdefs.h"
13351 if { (eval echo configure:13352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13355 echo "configure: failed program was:" >&5
13356 cat conftest.$ac_ext >&5
13361 LDFLAGS=$save_LDFLAGS
13363 xe_libs=$save_xe_libs
13364 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13368 echo "$ac_t""${cc_produces_so}" 1>&6
13371 if test -z "$LTLD"; then
13373 if test "$XEGCC" = yes; then
13374 # Check if gcc -print-prog-name=ld gives a path.
13375 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13376 echo "configure:13377: checking for ld used by GCC" >&5
13377 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13379 # Accept absolute paths.
13381 if test -z "$LTLD"; then
13383 *gcc-lib*) LTLD="$CC"
13391 # If it fails, then pretend we aren't using GCC.
13395 # If it is relative, then search for the first ld in PATH.
13396 with_gnu_ld=unknown
13400 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
13401 echo "configure:13402: checking for GNU ld" >&5
13404 if test -z "$LTLD"; then
13405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13406 for ac_dir in $PATH; do
13407 test -z "$ac_dir" && ac_dir=.
13408 if test -f "$ac_dir/$ac_prog"; then
13409 LTLD="$ac_dir/$ac_prog"
13410 # Check to see if the program is GNU ld. I'd rather use --version,
13411 # but apparently some GNU ld's only accept -v.
13412 # Break only if it was the GNU/non-GNU ld that we prefer.
13413 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13423 if test -n "$LTLD"; then
13424 echo "$ac_t""${LTLD}" 1>&6
13426 echo "$ac_t""no" 1>&6
13429 if test -z "$LTLD" -a "$cc_produces_so" = no; then
13430 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
13435 ld_dynamic_link_flags=
13437 # Check to see if it really is or isn't GNU ld.
13438 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
13439 echo "configure:13440: checking if the linker is GNU ld" >&5
13440 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13441 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13446 echo "$ac_t""${xe_gnu_ld}" 1>&6
13448 case "$xehost_os" in
13449 amigaos* | sunos4*)
13450 # On these operating systems, we should treat GNU ld like the system ld.
13451 gnu_ld_acts_native=yes
13454 gnu_ld_acts_native=no
13458 if test "$cc_produces_so" = "yes"; then
13461 can_build_shared=yes
13464 # OK - only NOW do we futz about with ld.
13465 # See if the linker supports building shared libraries.
13466 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
13467 echo "configure:13468: checking whether the linker supports shared libraries" >&5
13469 dll_ldflags=$LDFLAGS
13471 can_build_shared=yes
13472 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
13473 # See if GNU ld supports shared libraries.
13474 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13476 dll_ldflags="-shared"
13482 # PORTME fill in a description of your system's linker (not GNU ld)
13483 case "$xehost_os" in
13493 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13494 # support. Future versions do this automatically, but an explicit c++rt0.o
13495 # doesn't break anything, and helps significantly (at the cost of a little
13500 dll_post="/usr/lib/c++rt0.o"
13503 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
13506 dll_ldflags="-Bshareable"
13509 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
13511 dll_ldflags="-shared"
13525 # Tested with NetBSD 1.2 ld
13540 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
13541 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
13544 *gcc*) dll_ldflags="-shared"
13547 *) dll_ldflags="-G"
13553 if test "$XEGCC" = yes; then
13573 can_build_shared=no
13577 echo "$ac_t""${ld_shlibs}" 1>&6
13578 if test "$ld_shlibs" = "no"; then
13579 can_build_shared=no
13581 fi # End of if cc_produces_so = no
13584 if test "$xe_gnu_ld" = yes; then
13585 if test "$ld_shlibs" = yes; then
13586 ld_dynamic_link_flags="${wl}-export-dynamic"
13590 if test -z "$ld_dynamic_link_flags"; then
13591 case "$xehost_os" in
13593 ld_dynamic_link_flags=
13597 ld_dynamic_link_flags=
13601 ld_dynamic_link_flags=
13605 ld_dynamic_link_flags=
13609 ld_dynamic_link_flags=
13613 ld_dynamic_link_flags="${wl}-E"
13617 ld_dynamic_link_flags=
13621 ld_dynamic_link_flags=
13625 ld_dynamic_link_flags=
13629 ld_dynamic_link_flags=
13632 solaris2* | solaris7*)
13633 ld_dynamic_link_flags=
13636 sco3.2v5* | unixware* | sysv5* | sysv4*)
13637 ld_dynamic_link_flags="${wl}-Bexport"
13641 ld_dynamic_link_flags=
13645 ld_dynamic_link_flags=
13649 ld_dynamic_link_flags=
13653 fi # End of if -z ld_dynamic_link_flags
13654 fi # End of if test "$can_build_shared" = "yes"
13665 if test "$can_build_shared" = "yes"; then
13666 { test "$extra_verbose" = "yes" && cat << \EOF
13667 Defining HAVE_SHLIB
13669 cat >> confdefs.h <<\EOF
13670 #define HAVE_SHLIB 1
13674 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
13675 echo " xemacs will be linked with \"sysdll.o emodules.o\""
13677 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13678 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13679 for ac_func in dlerror _dlerror
13681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13682 echo "configure:13683: checking for $ac_func" >&5
13684 cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure"
13686 #include "confdefs.h"
13687 /* System header to define __stub macros and hopefully few prototypes,
13688 which can conflict with char $ac_func(); below. */
13689 #include <assert.h>
13690 /* Override any gcc2 internal prototype to avoid an error. */
13691 /* We use char because int might match the return type of a gcc2
13692 builtin and then its argument prototype would still apply. */
13697 /* The GNU C library defines this for functions which it implements
13698 to always fail with ENOSYS. Some functions are actually named
13699 something starting with __ and the normal name is an alias. */
13700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13708 if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13710 eval "ac_cv_func_$ac_func=yes"
13712 echo "configure: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13715 eval "ac_cv_func_$ac_func=no"
13719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13720 echo "$ac_t""yes" 1>&6
13721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13722 { test "$extra_verbose" = "yes" && cat << EOF
13723 Defining $ac_tr_func
13725 cat >> confdefs.h <<EOF
13726 #define $ac_tr_func 1
13731 echo "$ac_t""no" 1>&6
13737 if test "$with_modules" = "yes"; then
13738 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
13740 echo "configure: warning: "Module support cannot be provided."" 1>&2
13746 cat > conftest.$ac_ext <<EOF
13747 #line 13748 "configure"
13748 #include "confdefs.h"
13749 int main(int c,char *v[]){return 0;}
13751 if { (eval echo configure:13752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13756 echo "configure: failed program was:" >&5
13757 cat conftest.$ac_ext >&5
13761 echo "*** PANIC *** The C compiler can no longer build working executables."
13762 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
13763 echo "*** PANIC *** The most likely reason for this problem is that configure"
13764 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
13765 echo "*** PANIC *** found at run time."
13766 echo "*** PANIC ***"
13767 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
13768 echo "*** PANIC *** On other systems, try telling configure where to find the"
13769 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
13770 echo "*** PANIC ***"
13771 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
13772 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
13773 echo "*** PANIC *** on your system. Don't do that."
13778 if test "$win32_processes" = "yes"; then
13779 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
13780 echo " xemacs will be linked with \"process-nt.o\""
13783 { test "$extra_verbose" = "yes" && cat << \EOF
13784 Defining HAVE_UNIX_PROCESSES
13786 cat >> confdefs.h <<\EOF
13787 #define HAVE_UNIX_PROCESSES 1
13791 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
13792 echo " xemacs will be linked with \"process-unix.o\""
13799 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13804 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13809 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
13810 c_switch_general="$T"
13814 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13815 c_switch_window_system="$T"
13819 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13824 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
13825 ld_switch_general="$T"
13829 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13830 ld_switch_window_system="$T"
13834 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13839 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13840 ld_libs_general="$T"
13844 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
13845 ld_libs_window_system="$T"
13849 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13854 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
13855 internal_makefile_list="Makefile.in"
13856 SUBDIR_MAKEFILES=''
13857 test -d lock || mkdir lock
13858 for dir in $MAKE_SUBDIR; do
13859 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
13860 test -d "$d" || mkdir "$d"; cd "$d"
13862 * ) test -d "$dir" || mkdir "$dir" ;;
13866 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13867 SUBDIR_MAKEFILES="$T"
13871 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13872 internal_makefile_list="$T"
13879 for dir in src/s src/m; do
13880 if test ! -d "$dir" ; then
13881 echo Making symbolic link to "$srcdir/$dir"
13882 ${LN_S} "$srcdir/$dir" "$dir"
13886 if test "$extra_verbose" = "yes"; then
13888 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
13893 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
13894 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
13895 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
13898 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
13899 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
13900 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
13903 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
13904 test "$extra_verbose" = "yes" && echo "creating TAGS"
13906 $srcdir/TAGS,include" > "TAGS"
13909 if test "$__SUNPRO_C" = "yes"; then
13910 test "$extra_verbose" = "yes" && echo "creating .sbinit"
13911 ( echo "# For use with Sun WorkShop's Source browser."
13912 echo "# See sbquery(1) and sbinit(4) for more information"
13913 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13940 *\$* ) eval "PREFIX=$PREFIX" ;;
13948 EXEC_PREFIX=$exec_prefix
13950 case "$EXEC_PREFIX" in
13951 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13962 *\$* ) eval "INFODIR=$INFODIR" ;;
13972 case "$INFOPATH" in
13973 *\$* ) eval "INFOPATH=$INFOPATH" ;;
13981 PACKAGE_PATH=$package_path
13983 case "$PACKAGE_PATH" in
13984 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
13995 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14003 MODULEDIR=$moduledir
14005 case "$MODULEDIR" in
14006 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14014 SITELISPDIR=$sitelispdir
14016 case "$SITELISPDIR" in
14017 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14025 SITEMODULEDIR=$sitemoduledir
14027 case "$SITEMODULEDIR" in
14028 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14039 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14050 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14058 ARCHLIBDIR=$archlibdir
14060 case "$ARCHLIBDIR" in
14061 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14085 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14093 : ${XEMACS_CC:=$CC}
14096 if test "$with_prefix" = "yes"; then
14097 { test "$extra_verbose" = "yes" && cat << \EOF
14098 Defining PREFIX_USER_DEFINED
14100 cat >> confdefs.h <<\EOF
14101 #define PREFIX_USER_DEFINED 1
14107 if test "$with_site_lisp" = "no"; then
14108 { test "$extra_verbose" = "yes" && cat << \EOF
14109 Defining INHIBIT_SITE_LISP
14111 cat >> confdefs.h <<\EOF
14112 #define INHIBIT_SITE_LISP 1
14117 if test "$with_site_modules" = "no"; then
14118 { test "$extra_verbose" = "yes" && cat << \EOF
14119 Defining INHIBIT_SITE_MODULES
14121 cat >> confdefs.h <<\EOF
14122 #define INHIBIT_SITE_MODULES 1
14130 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14131 ac_configure_args="$T"
14133 { test "$extra_verbose" = "yes" && cat << EOF
14134 Defining EMACS_CONFIGURATION = "$configuration"
14136 cat >> confdefs.h <<EOF
14137 #define EMACS_CONFIGURATION "$configuration"
14141 { test "$extra_verbose" = "yes" && cat << EOF
14142 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14144 cat >> confdefs.h <<EOF
14145 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14149 { test "$extra_verbose" = "yes" && cat << EOF
14150 Defining config_machfile = "$machfile"
14152 cat >> confdefs.h <<EOF
14153 #define config_machfile "$machfile"
14157 { test "$extra_verbose" = "yes" && cat << EOF
14158 Defining config_opsysfile = "$opsysfile"
14160 cat >> confdefs.h <<EOF
14161 #define config_opsysfile "$opsysfile"
14168 { test "$extra_verbose" = "yes" && cat << EOF
14169 Defining LD_SWITCH_X_SITE = $null_string
14171 cat >> confdefs.h <<EOF
14172 #define LD_SWITCH_X_SITE $null_string
14176 { test "$extra_verbose" = "yes" && cat << EOF
14177 Defining LD_SWITCH_X_SITE_AUX = $null_string
14179 cat >> confdefs.h <<EOF
14180 #define LD_SWITCH_X_SITE_AUX $null_string
14184 { test "$extra_verbose" = "yes" && cat << EOF
14185 Defining C_SWITCH_X_SITE = $null_string
14187 cat >> confdefs.h <<EOF
14188 #define C_SWITCH_X_SITE $null_string
14192 { test "$extra_verbose" = "yes" && cat << EOF
14193 Defining LD_SWITCH_SITE = $null_string
14195 cat >> confdefs.h <<EOF
14196 #define LD_SWITCH_SITE $null_string
14200 { test "$extra_verbose" = "yes" && cat << EOF
14201 Defining C_SWITCH_SITE = $null_string
14203 cat >> confdefs.h <<EOF
14204 #define C_SWITCH_SITE $null_string
14210 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14211 Defining GNU_MALLOC
14213 cat >> confdefs.h <<\EOF
14214 #define GNU_MALLOC 1
14218 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14219 Defining USE_SYSTEM_MALLOC
14221 cat >> confdefs.h <<\EOF
14222 #define USE_SYSTEM_MALLOC 1
14226 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14227 Defining USE_DEBUG_MALLOC
14229 cat >> confdefs.h <<\EOF
14230 #define USE_DEBUG_MALLOC 1
14234 { test "$extra_verbose" = "yes" && cat << \EOF
14235 Defining USE_SYSTEM_MALLOC
14237 cat >> confdefs.h <<\EOF
14238 #define USE_SYSTEM_MALLOC 1
14243 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14246 cat >> confdefs.h <<\EOF
14251 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14254 cat >> confdefs.h <<\EOF
14259 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14260 Defining EXTERNAL_WIDGET
14262 cat >> confdefs.h <<\EOF
14263 #define EXTERNAL_WIDGET 1
14267 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14268 Defining QUICK_BUILD
14270 cat >> confdefs.h <<\EOF
14271 #define QUICK_BUILD 1
14275 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14278 cat >> confdefs.h <<\EOF
14283 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14286 cat >> confdefs.h <<\EOF
14291 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14292 Defining MAIL_USE_POP
14294 cat >> confdefs.h <<\EOF
14295 #define MAIL_USE_POP 1
14299 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14302 cat >> confdefs.h <<\EOF
14307 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14310 cat >> confdefs.h <<\EOF
14315 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14316 Defining USE_UNION_TYPE
14318 cat >> confdefs.h <<\EOF
14319 #define USE_UNION_TYPE 1
14323 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14326 cat >> confdefs.h <<\EOF
14334 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
14336 echo "uname -a: `uname -a`"
14339 echo "$0 $quoted_arguments"
14342 if test ! -z ${emacs_beta_version} ; then
14343 if test -z "${emacs_is_beta}" ; then
14344 xemacs_betaname=".${emacs_beta_version}"
14346 xemacs_betaname="-b${emacs_beta_version}"
14355 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
14358 Compilation / Installation:"
14359 echo " Source code location: $srcdir"
14360 echo " Installation prefix: $prefix"
14361 if test -n "$site_includes"; then
14362 echo " Additional header files: $site_includes"
14364 if test -n "$site_libraries"; then
14365 echo " Additional libraries: $site_libraries"
14367 if test -n "$site_prefixes"; then
14368 echo " Additional prefixes: $site_prefixes"
14370 if test -n "$runpath"; then
14371 echo " Runtime library search path: $runpath"
14373 echo " Operating system description file: \`$opsysfile'"
14374 echo " Machine description file: \`$machfile'"
14375 echo " Compiler: $CC $CFLAGS"
14376 echo " Relocating allocator for buffers: $rel_alloc"
14377 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
14381 if test "$with_msw" = "yes"; then
14382 echo " Compiling in support for the Microsoft window system."
14384 if test "$with_x11" = "yes"; then
14385 echo " Compiling in support for the X window system:"
14386 echo " - X Windows headers location: $x_includes"
14387 echo " - X Windows libraries location: $x_libraries"
14388 if test "$with_xauth" != yes; then
14389 echo " - Xau (X authority) not available."
14391 if test "$with_xmu" != yes; then
14392 echo " - Xmu library not available; substituting equivalent routines."
14394 if test "$with_wmcommand" != no; then
14395 echo " - Handling WM_COMMAND properly."
14398 if test "$need_athena" = "yes"; then
14399 echo " Compiling in support for the Athena widget set:"
14400 echo " - Athena headers location: $athena_h_path"
14401 echo " - Athena library to link: $athena_lib"
14403 case "$with_menubars" in
14404 lucid ) echo " Using Lucid menubars." ;;
14405 motif ) echo " Using Motif menubars."
14406 echo " *WARNING* The Motif menubar implementation is currently buggy."
14407 echo " We recommend using the Lucid menubar instead."
14408 echo " Re-run configure with --with-menubars='lucid'." ;;
14409 msw ) echo " Using MS-Windows menubars." ;;
14411 case "$with_scrollbars" in
14412 lucid ) echo " Using Lucid scrollbars." ;;
14413 motif ) echo " Using Motif scrollbars." ;;
14414 athena ) echo " Using Athena scrollbars." ;;
14415 msw ) echo " Using MS-Windows scrollbars." ;;
14417 case "$with_dialogs" in
14418 motif ) echo " Using Motif dialog boxes."
14419 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
14420 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
14421 echo " We recommend using the Athena dialog boxes instead."
14422 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
14423 echo " Read the PROBLEMS file for more information."
14425 athena ) echo " Using Athena dialog boxes." ;;
14426 msw ) echo " Using MS-Windows dialog boxes." ;;
14428 case "$with_widgets" in
14429 motif ) echo " Using Motif native widgets." ;;
14430 athena ) echo " Using Athena native widgets." ;;
14431 msw ) echo " Using MS-Windows native widgets." ;;
14433 if test "$with_dragndrop" = yes; then
14434 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
14435 echo " - Drag'n'Drop prototype: $dragndrop_proto."
14440 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
14441 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
14445 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
14446 if test "$with_xpm" = yes; then
14447 echo " Compiling in support for XPM images."
14448 elif test "$with_x11" = yes; then
14449 echo " WARNING: -----------------------------------------------------------"
14450 echo " WARNING: Compiling without XPM image support."
14451 if test "$xpm_problem" != ""; then
14452 echo " Reason: $xpm_problem"
14454 echo " WARNING: You should strongly consider installing XPM."
14455 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
14456 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14457 echo " WARNING: -----------------------------------------------------------"
14459 if test "$with_png" = yes; then
14460 echo " Compiling in support for PNG images."
14461 elif test "$window_system" != "none"; then
14462 echo " WARNING: -----------------------------------------------------------"
14463 echo " WARNING: Compiling without PNG image support."
14464 if test "$png_problem" != ""; then
14465 echo " Reason: $png_problem"
14467 echo " WARNING: You should strongly consider installing the PNG libraries."
14468 echo " WARNING: Otherwise certain images and glyphs may not display."
14469 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14470 echo " WARNING: -----------------------------------------------------------"
14472 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
14473 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
14474 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
14478 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
14479 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
14480 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
14481 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
14485 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
14486 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
14487 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
14488 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
14489 if test "$with_postgresql" = yes; then
14490 echo " Compiling in support for PostgreSQL."
14491 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
14492 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
14496 Internationalization:"
14497 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
14498 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
14499 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
14500 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
14501 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
14502 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
14503 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
14504 if test "$with_wnn" = yes; then
14505 echo " Compiling in support for the WNN input method on Mule."
14506 test "$with_wnn6" = yes && echo " - Using WNN version 6."
14508 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
14512 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
14513 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
14514 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
14515 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
14519 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
14520 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
14521 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
14522 test "$with_dnet" = yes && echo " Compiling in support for DNET."
14523 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
14524 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
14525 test "$pdump" = yes && echo " Using the new portable dumper."
14526 test "$debug" = yes && echo " Compiling in support for extra debugging code."
14527 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
14528 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
14529 != "no no no no no no"; then
14530 echo " WARNING: ---------------------------------------------------------"
14531 echo " WARNING: Compiling in support for runtime error checking."
14532 echo " WARNING: XEmacs will run noticeably more slowly as a result."
14533 echo " WARNING: Error checking is on by default for XEmacs beta releases."
14534 echo " WARNING: ---------------------------------------------------------"
14537 ) | tee -a Installation
14541 # Remove any trailing slashes in these variables.
14542 test -n "$prefix" &&
14543 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14544 test -n "$exec_prefix" &&
14545 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14548 for file in $internal_makefile_list; do
14549 test "$file" = src/Makefile.in && \
14550 file="src/Makefile.in:src/Makefile.in.in:src/depend"
14551 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
14553 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
14554 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
14558 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14561 # Let make expand exec_prefix.
14562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14564 # Any assignment to VPATH causes Sun make to only execute
14565 # the first set of double-colon rules, so remove it if not needed.
14566 # If there is a colon in the path, we need to keep it.
14567 if test "x$srcdir" = x.; then
14568 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14571 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14573 DEFS=-DHAVE_CONFIG_H
14575 # Without the "./", some shells look in PATH for config.status.
14576 : ${CONFIG_STATUS=./config.status}
14578 echo creating $CONFIG_STATUS
14579 rm -f $CONFIG_STATUS
14580 cat > $CONFIG_STATUS <<EOF
14582 # Generated automatically by configure.
14583 # Run this file to recreate the current configuration.
14584 # This directory was configured as follows,
14585 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14587 # $0 $ac_configure_args
14589 # Compiler output produced by configure, useful for debugging
14590 # configure, is in ./config.log if it exists.
14592 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14595 case "\$ac_option" in
14596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14597 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14598 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14599 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14600 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14602 -help | --help | --hel | --he | --h)
14603 echo "\$ac_cs_usage"; exit 0 ;;
14604 *) echo "\$ac_cs_usage"; exit 1 ;;
14608 ac_given_srcdir=$srcdir
14609 ac_given_INSTALL="$INSTALL"
14611 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14613 cat >> $CONFIG_STATUS <<EOF
14615 # Protect against being on the right side of a sed subst in config.status.
14616 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14617 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14621 s%@CFLAGS@%$CFLAGS%g
14622 s%@CPPFLAGS@%$CPPFLAGS%g
14623 s%@CXXFLAGS@%$CXXFLAGS%g
14624 s%@FFLAGS@%$FFLAGS%g
14626 s%@LDFLAGS@%$LDFLAGS%g
14628 s%@exec_prefix@%$exec_prefix%g
14629 s%@prefix@%$prefix%g
14630 s%@program_transform_name@%$program_transform_name%g
14631 s%@bindir@%$bindir%g
14632 s%@sbindir@%$sbindir%g
14633 s%@libexecdir@%$libexecdir%g
14634 s%@datadir@%$datadir%g
14635 s%@sysconfdir@%$sysconfdir%g
14636 s%@sharedstatedir@%$sharedstatedir%g
14637 s%@localstatedir@%$localstatedir%g
14638 s%@libdir@%$libdir%g
14639 s%@includedir@%$includedir%g
14640 s%@oldincludedir@%$oldincludedir%g
14641 s%@infodir@%$infodir%g
14642 s%@mandir@%$mandir%g
14644 s%@blddir@%$blddir%g
14647 s%@start_flags@%$start_flags%g
14648 s%@ld_switch_shared@%$ld_switch_shared%g
14649 s%@start_files@%$start_files%g
14651 s%@lib_gcc@%$lib_gcc%g
14652 s%@RANLIB@%$RANLIB%g
14653 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14654 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14655 s%@INSTALL_DATA@%$INSTALL_DATA%g
14657 s%@SET_MAKE@%$SET_MAKE%g
14658 s%@X_CFLAGS@%$X_CFLAGS%g
14659 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14660 s%@X_LIBS@%$X_LIBS%g
14661 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
14662 s%@install_pp@%$install_pp%g
14663 s%@libs_xauth@%$libs_xauth%g
14664 s%@dnd_objs@%$dnd_objs%g
14665 s%@lwlib_objs@%$lwlib_objs%g
14666 s%@ALLOCA@%$ALLOCA%g
14667 s%@have_esd_config@%$have_esd_config%g
14668 s%@dll_ld@%$dll_ld%g
14669 s%@dll_cflags@%$dll_cflags%g
14670 s%@dll_ldflags@%$dll_ldflags%g
14671 s%@dll_post@%$dll_post%g
14672 s%@dll_ldo@%$dll_ldo%g
14673 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
14674 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
14675 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
14676 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
14677 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
14678 s%@PROGNAME@%$PROGNAME%g
14679 s%@version@%$version%g
14680 s%@configuration@%$configuration%g
14681 s%@canonical@%$canonical%g
14682 s%@inststaticdir@%$inststaticdir%g
14683 s%@instvardir@%$instvardir%g
14684 s%@srcdir@%$srcdir%g
14685 s%@pkgdir@%$pkgdir%g
14686 s%@statedir@%$statedir%g
14687 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
14688 s%@PREFIX@%$PREFIX%g
14689 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
14690 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
14691 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
14692 s%@INFODIR@%$INFODIR%g
14693 s%@infopath@%$infopath%g
14694 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
14695 s%@INFOPATH@%$INFOPATH%g
14696 s%@package_path@%$package_path%g
14697 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
14698 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
14699 s%@lispdir@%$lispdir%g
14700 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
14701 s%@LISPDIR@%$LISPDIR%g
14702 s%@moduledir@%$moduledir%g
14703 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
14704 s%@MODULEDIR@%$MODULEDIR%g
14705 s%@sitelispdir@%$sitelispdir%g
14706 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
14707 s%@SITELISPDIR@%$SITELISPDIR%g
14708 s%@sitemoduledir@%$sitemoduledir%g
14709 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
14710 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
14711 s%@etcdir@%$etcdir%g
14712 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
14713 s%@ETCDIR@%$ETCDIR%g
14714 s%@docdir@%$docdir%g
14715 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
14716 s%@DOCDIR@%$DOCDIR%g
14717 s%@archlibdir@%$archlibdir%g
14718 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
14719 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
14720 s%@bitmapdir@%$bitmapdir%g
14721 s%@extra_objs@%$extra_objs%g
14722 s%@machfile@%$machfile%g
14723 s%@opsysfile@%$opsysfile%g
14724 s%@c_switch_general@%$c_switch_general%g
14725 s%@c_switch_window_system@%$c_switch_window_system%g
14726 s%@c_switch_all@%$c_switch_all%g
14727 s%@ld_switch_general@%$ld_switch_general%g
14728 s%@ld_switch_window_system@%$ld_switch_window_system%g
14729 s%@ld_switch_all@%$ld_switch_all%g
14730 s%@ld_libs_general@%$ld_libs_general%g
14731 s%@ld_libs_window_system@%$ld_libs_window_system%g
14732 s%@ld_libs_all@%$ld_libs_all%g
14733 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
14734 s%@native_sound_lib@%$native_sound_lib%g
14735 s%@sound_cflags@%$sound_cflags%g
14736 s%@dynodump_arch@%$dynodump_arch%g
14737 s%@XEMACS_CC@%$XEMACS_CC%g
14738 s%@internal_makefile_list@%$internal_makefile_list%g
14743 cat >> $CONFIG_STATUS <<\EOF
14745 # Split the substitutions into bite-sized pieces for seds with
14746 # small command number limits, like on Digital OSF/1 and HP-UX.
14747 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14748 ac_file=1 # Number of current file.
14749 ac_beg=1 # First line for current file.
14750 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14753 while $ac_more_lines; do
14754 if test $ac_beg -gt 1; then
14755 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14757 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14759 if test ! -s conftest.s$ac_file; then
14760 ac_more_lines=false
14761 rm -f conftest.s$ac_file
14763 if test -z "$ac_sed_cmds"; then
14764 ac_sed_cmds="sed -f conftest.s$ac_file"
14766 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14768 ac_file=`expr $ac_file + 1`
14770 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14773 if test -z "$ac_sed_cmds"; then
14778 cat >> $CONFIG_STATUS <<EOF
14780 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
14782 cat >> $CONFIG_STATUS <<\EOF
14783 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14786 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14787 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14788 *) ac_file_in="${ac_file}.in" ;;
14791 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14793 # Remove last slash and all that follows it. Not all systems have dirname.
14794 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14795 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14796 # The file is in a subdirectory.
14797 test ! -d "$ac_dir" && mkdir "$ac_dir"
14798 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14799 # A "../" for each directory in $ac_dir_suffix.
14800 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14802 ac_dir_suffix= ac_dots=
14805 case "$ac_given_srcdir" in
14807 if test -z "$ac_dots"; then top_srcdir=.
14808 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14809 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14810 *) # Relative path.
14811 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14812 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14815 case "$ac_given_INSTALL" in
14816 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14817 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14820 echo creating "$ac_file"
14822 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14824 *Makefile*) ac_comsub="1i\\
14825 # $configure_input" ;;
14829 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14831 s%@configure_input@%$configure_input%g
14832 s%@srcdir@%$srcdir%g
14833 s%@top_srcdir@%$top_srcdir%g
14834 s%@INSTALL@%$INSTALL%g
14835 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14839 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14840 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14842 # ac_d sets the value in "#define NAME VALUE" lines.
14843 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14844 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14847 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14848 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14849 ac_uB='\([ ]\)%\1#\2define\3'
14852 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14853 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14854 ac_eB='$%\1#\2define\3'
14858 if test "${CONFIG_HEADERS+set}" != set; then
14860 cat >> $CONFIG_STATUS <<EOF
14861 CONFIG_HEADERS="src/config.h lwlib/config.h"
14863 cat >> $CONFIG_STATUS <<\EOF
14865 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14866 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14868 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14869 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14870 *) ac_file_in="${ac_file}.in" ;;
14873 echo creating $ac_file
14875 rm -f conftest.frag conftest.in conftest.out
14876 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14877 cat $ac_file_inputs > conftest.in
14881 # Transform confdefs.h into a sed script conftest.vals that substitutes
14882 # the proper values into config.h.in to produce config.h. And first:
14883 # Protect against being on the right side of a sed subst in config.status.
14884 # Protect against being in an unquoted here document in config.status.
14885 rm -f conftest.vals
14886 cat > conftest.hdr <<\EOF
14889 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14893 sed -n -f conftest.hdr confdefs.h > conftest.vals
14896 # This sed command replaces #undef with comments. This is necessary, for
14897 # example, in the case of _POSIX_SOURCE, which is predefined and required
14898 # on some systems where configure will not decide to define it.
14899 cat >> conftest.vals <<\EOF
14900 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14903 # Break up conftest.vals because some shells have a limit on
14904 # the size of here documents, and old seds have small limits too.
14906 rm -f conftest.tail
14909 ac_lines=`grep -c . conftest.vals`
14910 # grep -c gives empty output for an empty file on some AIX systems.
14911 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14912 # Write a limited-size here document to conftest.frag.
14913 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14914 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14916 sed -f conftest.frag conftest.in > conftest.out
14918 mv conftest.out conftest.in
14919 ' >> $CONFIG_STATUS
14920 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14921 rm -f conftest.vals
14922 mv conftest.tail conftest.vals
14924 rm -f conftest.vals
14926 cat >> $CONFIG_STATUS <<\EOF
14927 rm -f conftest.frag conftest.h
14928 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14929 cat conftest.in >> conftest.h
14931 if cmp -s $ac_file conftest.h 2>/dev/null; then
14932 echo "$ac_file is unchanged"
14935 # Remove last slash and all that follows it. Not all systems have dirname.
14936 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14937 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14938 # The file is in a subdirectory.
14939 test ! -d "$ac_dir" && mkdir "$ac_dir"
14942 mv conftest.h $ac_file
14947 cat >> $CONFIG_STATUS <<EOF
14949 top_srcdir="$srcdir"
14950 MAKE_SUBDIR="$MAKE_SUBDIR"
14953 cat >> $CONFIG_STATUS <<\EOF
14954 for dir in . $MAKE_SUBDIR; do
14959 sed -e '/^# Generated/d' \
14960 -e 's%/\*\*/#.*%%' \
14975 echo creating $dir/Makefile
14976 $CPP -I. -I${top_srcdir}/src junk.c \
14977 | sed -e 's/^\#.*//' \
14978 -e 's/^[ ][ ]*$//'\
14980 | sed -n -e '/^..*$/p' \
14986 chmod 444 Makefile.new
14987 mv -f Makefile.new Makefile
14989 echo creating $dir/GNUmakefile
14990 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
14991 | sed -e 's/^\#.*//' \
14992 -e 's/^[ ][ ]*$//'\
14994 | sed -n -e '/^..*$/p' \
15000 chmod 444 Makefile.new
15001 mv -f Makefile.new GNUmakefile
15007 sed < config.status >> lib-src/config.values \
15008 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15009 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15010 -e 's/^\([^ ]*\) $/\1 ""/' \
15016 chmod +x $CONFIG_STATUS
15017 rm -fr confdefs* $ac_clean_files
15018 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1