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 ;;
1132 case "$canonical" in
1133 *-*-linux* ) opsys=linux ;;
1134 *-*-netbsd* ) opsys=netbsd ;;
1135 *-*-openbsd* ) opsys=openbsd ;;
1136 *-*-nextstep* ) opsys=nextstep ;;
1137 *-*-vms ) opsys=vms ;;
1139 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1140 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1141 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1142 *-dec-osf3* ) opsys=decosf3-1 ;;
1143 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1145 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1146 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1147 *-*-ultrix* ) opsys=ultrix4-3 ;;
1149 *-*-aix3.1* ) opsys=aix3-1 ;;
1150 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1151 *-*-aix3* ) opsys=aix3-2 ;;
1152 *-*-aix4.0* ) opsys=aix4 ;;
1153 *-*-aix4.1* ) opsys=aix4-1 ;;
1154 *-*-aix4* ) opsys=aix4-2 ;;
1156 *-gnu* ) opsys=gnu ;;
1157 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1158 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1159 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1160 *-*-aos4.2 ) opsys=bsd4-2 ;;
1161 *-*-aos* ) opsys=bsd4-3 ;;
1162 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1163 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1164 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1165 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1166 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1167 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1168 if test -z "$NON_GNU_CPP" ; then
1169 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1170 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1174 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1175 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1178 case "$canonical" in
1181 case "$canonical" in
1182 i[3-9]86-*-netbsd*) machine=intel386 ;;
1183 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1184 machine=hp9000s300 ;;
1185 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1186 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1191 case "${canonical}" in
1192 i386-*-openbsd*) machine=intel386 ;;
1193 m68k-*-openbsd*) machine=hp9000s300 ;;
1194 mipsel-*-openbsd*) machine=pmax ;;
1198 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1199 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1201 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1202 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1204 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1206 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1208 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1210 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1212 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1214 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1215 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1216 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1219 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1221 *-convex-bsd* | *-convex-convexos* )
1222 machine=convex opsys=bsd4-3
1223 NON_GNU_CPP="cc -E -P"
1226 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1228 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1229 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1230 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1231 m88k-dg-dgux* ) opsys=dgux ;;
1233 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1234 m88k-motorola-sysv4* )
1235 machine=delta88k opsys=usg5-4-2
1237 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1239 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1240 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1242 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1244 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1245 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1246 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1249 case "`uname -r`" in
1250 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1251 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1253 NON_GNU_CPP="/lib/cpp"
1255 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1256 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1258 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1260 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1263 case "$canonical" in
1264 m68* ) machine=hp9000s300 ;;
1265 hppa* ) machine=hp800 ;;
1268 case "$canonical" in
1269 *-hp-hpux7* ) opsys=hpux ;;
1270 *-hp-hpux8* ) opsys=hpux8 ;;
1271 *-hp-hpux9* ) opsys=hpux9 ;;
1272 *-hp-hpux10* ) opsys=hpux10 ;;
1273 *-hp-hpux11* ) opsys=hpux11 ;;
1277 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1278 echo " xemacs will be linked with \"strcat.o\""
1281 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1282 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1283 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1285 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1288 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1289 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1291 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1292 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1293 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1294 romp-ibm-aos* ) opsys=bsd4-3 ;;
1295 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1296 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1298 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1299 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1301 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1303 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1305 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1307 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1309 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1311 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1313 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1315 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1317 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1319 mips-mips-usg* ) machine=mips4 ;;
1322 NON_GNU_CC="cc -systype bsd43"
1323 NON_GNU_CPP="cc -systype bsd43 -E"
1324 case "$canonical" in
1325 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1326 mips-mips-riscos5* ) opsys=riscos5 ;;
1329 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1330 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1332 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1334 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1336 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1337 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1339 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1341 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1343 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1345 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1347 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1348 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1350 mips-siemens-sysv* | mips-sni-sysv*)
1351 machine=mips-siemens opsys=usg5-4
1352 NON_GNU_CC=/usr/ccs/bin/cc
1353 NON_GNU_CPP=/usr/ccs/lib/cpp
1358 NON_GNU_CC=/usr/ccs/bin/cc
1359 NON_GNU_CPP=/usr/ccs/lib/cpp
1362 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1363 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1364 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1365 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1366 mips-sgi-irix6* ) opsys=irix6-0 ;;
1367 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1368 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1369 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1370 mips-sgi-irix* ) opsys=irix5-0 ;;
1372 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1373 *-sony-news* ) opsys=newsos5 ;;
1375 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1377 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1378 case "$canonical" in
1379 m68*-sunos1* ) machine=sun1 ;;
1380 m68*-sunos2* ) machine=sun2 ;;
1381 m68* ) machine=sun3 ;;
1382 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1383 i*86-*-* ) machine=intel386 ;;
1384 rs6000* ) machine=rs6000 ;;
1387 case "$canonical" in *-sunos5*)
1388 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1391 case "$canonical" in
1393 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1396 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1400 case "$canonical" in
1403 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1404 { test "$extra_verbose" = "yes" && cat << EOF
1405 Defining OS_RELEASE = $os_release
1407 cat >> confdefs.h <<EOF
1408 #define OS_RELEASE $os_release
1413 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1414 *-sunos4.0* ) opsys=sunos4-0 ;;
1415 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1416 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1417 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1418 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1419 *-mach* ) opsys=mach-bsd4-3 ;;
1423 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1425 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1428 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1430 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1431 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1433 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1435 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1437 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1438 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1440 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1442 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1445 case "$canonical" in
1446 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1447 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1448 *-mach* ) opsys=mach-bsd4-3 ;;
1452 ns16k-whitechapel-* ) machine=mg1 ;;
1454 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1458 case "$canonical" in
1459 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1460 *-isc2.2* ) opsys=isc2-2 ;;
1461 *-isc4.0* ) opsys=isc4-0 ;;
1462 *-isc4.* ) opsys=isc4-1
1463 GCC_TEST_OPTIONS=-posix
1464 NON_GCC_TEST_OPTIONS=-Xp
1466 *-isc* ) opsys=isc3-0 ;;
1467 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1468 *-esix* ) opsys=esix ;;
1469 *-mach* ) opsys=mach-bsd4-3 ;;
1470 *-xenix* ) opsys=xenix ;;
1471 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1472 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1473 *-bsdi4* ) opsys=bsdos4 ;;
1474 *-bsdi3* ) opsys=bsdos3 ;;
1475 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1476 *-bsdi2* ) opsys=bsdos2 ;;
1477 *-sco3.2v5* ) opsys=sco5 ;
1478 if test "$dynamic" = "yes" ; then
1479 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1481 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1483 *-sysv5* ) opsys=sco7 ;;
1484 *-386bsd* ) opsys=386bsd ;;
1485 *-freebsd* ) opsys=freebsd ;;
1486 *-nextstep* ) opsys=nextstep ;;
1487 *-pc-cygwin* ) opsys=cygwin32 ;;
1488 *-pc-mingw* ) opsys=mingw32 ;
1489 test -z "$with_tty" && with_tty="no";;
1493 m68k-*-linux* ) machine=m68k opsys=linux ;;
1497 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1498 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1500 if test -r "${srcdir}/src/m/${machine}.h"; then
1501 machfile="m/${machine}.h"
1502 { test "$extra_verbose" = "yes" && cat << EOF
1503 Defining config_machfile = "$machfile"
1505 cat >> confdefs.h <<EOF
1506 #define config_machfile "$machfile"
1511 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1512 echo "Using configure-time autodetection only."
1515 if test -r "${srcdir}/src/s/${opsys}.h"; then
1516 opsysfile="s/${opsys}.h"
1517 { test "$extra_verbose" = "yes" && cat << EOF
1518 Defining config_opsysfile = "$opsysfile"
1520 cat >> confdefs.h <<EOF
1521 #define config_opsysfile "$opsysfile"
1526 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1527 echo "Using configure-time autodetection only."
1531 if test -z "$dynamic"; then
1533 hpux* | sunos4* ) dynamic=no ;;
1537 if test "$dynamic" = "yes"; then
1539 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1540 decosf* ) ld_call_shared="-call_shared" ;;
1542 else case "$opsys" in
1544 echo "Static linking is not supported on Solaris 2."
1545 echo "Rerun configure without specifying --dynamic=no."
1547 linux ) ld_call_shared="-Bstatic" ;;
1548 decosf* ) ld_call_shared="-non_shared" ;;
1552 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1554 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1555 { test "$extra_verbose" = "yes" && cat << EOF
1556 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1558 cat >> confdefs.h <<EOF
1559 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1565 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1566 if test "$with_workshop $with_tooltalk" = "yes no"; then
1567 (echo "$progname: Usage error:"
1568 echo " " "--with-workshop requires --with-tooltalk"
1569 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1570 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1571 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1574 if test "$with_workshop" = "yes"; then
1575 { test "$extra_verbose" = "yes" && cat << \EOF
1578 cat >> confdefs.h <<\EOF
1583 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1584 echo " xemacs will be linked with \"sunpro.o\""
1588 if test "$with_clash_detection" != "no"; then
1589 { test "$extra_verbose" = "yes" && cat << \EOF
1590 Defining CLASH_DETECTION
1592 cat >> confdefs.h <<\EOF
1593 #define CLASH_DETECTION 1
1597 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1598 echo " xemacs will be linked with \"filelock.o\""
1602 test -n "$compiler" && CC="$compiler"
1603 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1606 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1607 if test "${CFLAGS-unset}" != unset
1608 then cflags_specified=yes;
1609 else cflags_specified=no;
1612 xe_save_CFLAGS="$CFLAGS"
1614 # Extract the first word of "gcc", so it can be a program name with args.
1615 set dummy gcc; ac_word=$2
1616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1617 echo "configure:1618: checking for $ac_word" >&5
1619 if test -n "$CC"; then
1620 ac_cv_prog_CC="$CC" # Let the user override the test.
1622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1624 for ac_dir in $ac_dummy; do
1625 test -z "$ac_dir" && ac_dir=.
1626 if test -f $ac_dir/$ac_word; then
1634 if test -n "$CC"; then
1635 echo "$ac_t""$CC" 1>&6
1637 echo "$ac_t""no" 1>&6
1640 if test -z "$CC"; then
1641 # Extract the first word of "cc", so it can be a program name with args.
1642 set dummy cc; ac_word=$2
1643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1644 echo "configure:1645: checking for $ac_word" >&5
1646 if test -n "$CC"; then
1647 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1652 for ac_dir in $ac_dummy; do
1653 test -z "$ac_dir" && ac_dir=.
1654 if test -f $ac_dir/$ac_word; then
1655 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1656 ac_prog_rejected=yes
1664 if test $ac_prog_rejected = yes; then
1665 # We found a bogon in the path, so make sure we never use it.
1666 set dummy $ac_cv_prog_CC
1668 if test $# -gt 0; then
1669 # We chose a different compiler from the bogus one.
1670 # However, it has the same basename, so the bogon will be chosen
1671 # first if we set CC to just the basename; use the full file name.
1673 set dummy "$ac_dir/$ac_word" "$@"
1680 if test -n "$CC"; then
1681 echo "$ac_t""$CC" 1>&6
1683 echo "$ac_t""no" 1>&6
1686 if test -z "$CC"; then
1687 case "`uname -s`" in
1689 # Extract the first word of "cl", so it can be a program name with args.
1690 set dummy cl; ac_word=$2
1691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1692 echo "configure:1693: checking for $ac_word" >&5
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1699 for ac_dir in $ac_dummy; do
1700 test -z "$ac_dir" && ac_dir=.
1701 if test -f $ac_dir/$ac_word; then
1709 if test -n "$CC"; then
1710 echo "$ac_t""$CC" 1>&6
1712 echo "$ac_t""no" 1>&6
1717 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1720 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1721 echo "configure:1722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1724 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1725 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1726 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1727 ac_cpp='$CPP '"$xe_cppflags"
1728 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1729 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1732 cat > conftest.$ac_ext << EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740 ac_cv_prog_cc_works=yes
1741 # If we can't run a trivial program, we are probably using a cross compiler.
1742 if (./conftest; exit) 2>/dev/null; then
1743 ac_cv_prog_cc_cross=no
1745 ac_cv_prog_cc_cross=yes
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1750 ac_cv_prog_cc_works=no
1754 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1755 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1756 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1757 ac_cpp='$CPP '"$xe_cppflags"
1758 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1759 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1762 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1763 if test $ac_cv_prog_cc_works = no; then
1764 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1766 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1767 echo "configure:1768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1768 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1769 cross_compiling=$ac_cv_prog_cc_cross
1771 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1772 echo "configure:1773: checking whether we are using GNU C" >&5
1774 cat > conftest.c <<EOF
1779 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1785 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1787 if test $ac_cv_prog_gcc = yes; then
1793 ac_test_CFLAGS="${CFLAGS+set}"
1794 ac_save_CFLAGS="$CFLAGS"
1796 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1797 echo "configure:1798: checking whether ${CC-cc} accepts -g" >&5
1799 echo 'void f(){}' > conftest.c
1800 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1808 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1809 if test "$ac_test_CFLAGS" = set; then
1810 CFLAGS="$ac_save_CFLAGS"
1811 elif test $ac_cv_prog_cc_g = yes; then
1812 if test "$GCC" = yes; then
1818 if test "$GCC" = yes; then
1825 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1827 # Extract the first word of "gcc", so it can be a program name with args.
1828 set dummy gcc; ac_word=$2
1829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1830 echo "configure:1831: checking for $ac_word" >&5
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1837 for ac_dir in $ac_dummy; do
1838 test -z "$ac_dir" && ac_dir=.
1839 if test -f $ac_dir/$ac_word; then
1847 if test -n "$CC"; then
1848 echo "$ac_t""$CC" 1>&6
1850 echo "$ac_t""no" 1>&6
1853 if test -z "$CC"; then
1854 # Extract the first word of "cc", so it can be a program name with args.
1855 set dummy cc; ac_word=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1865 for ac_dir in $ac_dummy; do
1866 test -z "$ac_dir" && ac_dir=.
1867 if test -f $ac_dir/$ac_word; then
1868 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1869 ac_prog_rejected=yes
1877 if test $ac_prog_rejected = yes; then
1878 # We found a bogon in the path, so make sure we never use it.
1879 set dummy $ac_cv_prog_CC
1881 if test $# -gt 0; then
1882 # We chose a different compiler from the bogus one.
1883 # However, it has the same basename, so the bogon will be chosen
1884 # first if we set CC to just the basename; use the full file name.
1886 set dummy "$ac_dir/$ac_word" "$@"
1893 if test -n "$CC"; then
1894 echo "$ac_t""$CC" 1>&6
1896 echo "$ac_t""no" 1>&6
1899 if test -z "$CC"; then
1900 case "`uname -s`" in
1902 # Extract the first word of "cl", so it can be a program name with args.
1903 set dummy cl; ac_word=$2
1904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_word" >&5
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1912 for ac_dir in $ac_dummy; do
1913 test -z "$ac_dir" && ac_dir=.
1914 if test -f $ac_dir/$ac_word; then
1922 if test -n "$CC"; then
1923 echo "$ac_t""$CC" 1>&6
1925 echo "$ac_t""no" 1>&6
1930 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1934 echo "configure:1935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1937 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1938 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1939 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1940 ac_cpp='$CPP '"$xe_cppflags"
1941 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1942 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1945 cat > conftest.$ac_ext << EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1953 ac_cv_prog_cc_works=yes
1954 # If we can't run a trivial program, we are probably using a cross compiler.
1955 if (./conftest; exit) 2>/dev/null; then
1956 ac_cv_prog_cc_cross=no
1958 ac_cv_prog_cc_cross=yes
1961 echo "configure: failed program was:" >&5
1962 cat conftest.$ac_ext >&5
1963 ac_cv_prog_cc_works=no
1967 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1968 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1969 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1970 ac_cpp='$CPP '"$xe_cppflags"
1971 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1972 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1975 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1976 if test $ac_cv_prog_cc_works = no; then
1977 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1979 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1980 echo "configure:1981: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1981 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1982 cross_compiling=$ac_cv_prog_cc_cross
1984 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1985 echo "configure:1986: checking whether we are using GNU C" >&5
1987 cat > conftest.c <<EOF
1992 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1998 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2000 if test $ac_cv_prog_gcc = yes; then
2006 ac_test_CFLAGS="${CFLAGS+set}"
2007 ac_save_CFLAGS="$CFLAGS"
2009 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether ${CC-cc} accepts -g" >&5
2012 echo 'void f(){}' > conftest.c
2013 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2021 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2022 if test "$ac_test_CFLAGS" = set; then
2023 CFLAGS="$ac_save_CFLAGS"
2024 elif test $ac_cv_prog_cc_g = yes; then
2025 if test "$GCC" = yes; then
2031 if test "$GCC" = yes; then
2038 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2040 # Extract the first word of "gcc", so it can be a program name with args.
2041 set dummy gcc; ac_word=$2
2042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_word" >&5
2045 if test -n "$CC"; then
2046 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2050 for ac_dir in $ac_dummy; do
2051 test -z "$ac_dir" && ac_dir=.
2052 if test -f $ac_dir/$ac_word; then
2060 if test -n "$CC"; then
2061 echo "$ac_t""$CC" 1>&6
2063 echo "$ac_t""no" 1>&6
2066 if test -z "$CC"; then
2067 # Extract the first word of "cc", so it can be a program name with args.
2068 set dummy cc; ac_word=$2
2069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2070 echo "configure:2071: checking for $ac_word" >&5
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2078 for ac_dir in $ac_dummy; do
2079 test -z "$ac_dir" && ac_dir=.
2080 if test -f $ac_dir/$ac_word; then
2081 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2082 ac_prog_rejected=yes
2090 if test $ac_prog_rejected = yes; then
2091 # We found a bogon in the path, so make sure we never use it.
2092 set dummy $ac_cv_prog_CC
2094 if test $# -gt 0; then
2095 # We chose a different compiler from the bogus one.
2096 # However, it has the same basename, so the bogon will be chosen
2097 # first if we set CC to just the basename; use the full file name.
2099 set dummy "$ac_dir/$ac_word" "$@"
2106 if test -n "$CC"; then
2107 echo "$ac_t""$CC" 1>&6
2109 echo "$ac_t""no" 1>&6
2112 if test -z "$CC"; then
2113 case "`uname -s`" in
2115 # Extract the first word of "cl", so it can be a program name with args.
2116 set dummy cl; ac_word=$2
2117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_word" >&5
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2125 for ac_dir in $ac_dummy; do
2126 test -z "$ac_dir" && ac_dir=.
2127 if test -f $ac_dir/$ac_word; then
2135 if test -n "$CC"; then
2136 echo "$ac_t""$CC" 1>&6
2138 echo "$ac_t""no" 1>&6
2143 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2146 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2147 echo "configure:2148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2150 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2151 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2152 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2153 ac_cpp='$CPP '"$xe_cppflags"
2154 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2155 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2158 cat > conftest.$ac_ext << EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2165 if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2166 ac_cv_prog_cc_works=yes
2167 # If we can't run a trivial program, we are probably using a cross compiler.
2168 if (./conftest; exit) 2>/dev/null; then
2169 ac_cv_prog_cc_cross=no
2171 ac_cv_prog_cc_cross=yes
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 ac_cv_prog_cc_works=no
2180 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2181 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2182 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2183 ac_cpp='$CPP '"$xe_cppflags"
2184 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2185 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2188 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2189 if test $ac_cv_prog_cc_works = no; then
2190 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2192 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2193 echo "configure:2194: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2194 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2195 cross_compiling=$ac_cv_prog_cc_cross
2197 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2198 echo "configure:2199: checking whether we are using GNU C" >&5
2200 cat > conftest.c <<EOF
2205 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2211 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2213 if test $ac_cv_prog_gcc = yes; then
2219 ac_test_CFLAGS="${CFLAGS+set}"
2220 ac_save_CFLAGS="$CFLAGS"
2222 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2223 echo "configure:2224: checking whether ${CC-cc} accepts -g" >&5
2225 echo 'void f(){}' > conftest.c
2226 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2234 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2235 if test "$ac_test_CFLAGS" = set; then
2236 CFLAGS="$ac_save_CFLAGS"
2237 elif test $ac_cv_prog_cc_g = yes; then
2238 if test "$GCC" = yes; then
2244 if test "$GCC" = yes; then
2252 CFLAGS="$xe_save_CFLAGS"
2255 test -n "$CPP" -a -d "$CPP" && CPP=
2257 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2259 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2260 echo "configure:2261: checking how to run the C preprocessor" >&5
2261 # On Suns, sometimes $CPP names a directory.
2262 if test -n "$CPP" && test -d "$CPP"; then
2265 if test -z "$CPP"; then
2267 # This must be in double quotes, not single quotes, because CPP may get
2268 # substituted into the Makefile and "${CC-cc}" will confuse make.
2270 # On the NeXT, cc -E runs the code through the compiler's parser,
2271 # not just through cpp.
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2288 CPP="${CC-cc} -E -traditional-cpp"
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2296 { (eval echo configure:2297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2298 if test -z "$ac_err"; then
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2305 CPP="${CC-cc} -nologo -E"
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2313 { (eval echo configure:2314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2315 if test -z "$ac_err"; then
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2329 ac_cv_prog_CPP="$CPP"
2330 CPP="$ac_cv_prog_CPP"
2332 ac_cv_prog_CPP="$CPP"
2334 echo "$ac_t""$CPP" 1>&6
2338 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2339 echo "configure:2340: checking for AIX" >&5
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2349 egrep "yes" >/dev/null 2>&1; then
2351 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2352 Defining _ALL_SOURCE
2354 cat >> confdefs.h <<\EOF
2355 #define _ALL_SOURCE 1
2361 echo "$ac_t""no" 1>&6
2367 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2368 echo "configure:2369: checking for GNU libc" >&5
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 #include <features.h>
2375 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2376 #error Not a GNU libc system :-(
2377 ******* ======= ******** &&&&&&&&
2382 if { (eval echo configure:2383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2392 echo "$ac_t""$have_glibc" 1>&6
2393 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2394 Defining _GNU_SOURCE
2396 cat >> confdefs.h <<\EOF
2397 #define _GNU_SOURCE 1
2404 { test "$extra_verbose" = "yes" && cat << \EOF
2405 Defining __EXTENSIONS__
2407 cat >> confdefs.h <<\EOF
2408 #define __EXTENSIONS__ 1
2412 if test "$os_release" -ge 55; then
2413 { test "$extra_verbose" = "yes" && cat << \EOF
2414 Defining _XOPEN_SOURCE = 500
2416 cat >> confdefs.h <<\EOF
2417 #define _XOPEN_SOURCE 500
2421 { test "$extra_verbose" = "yes" && cat << \EOF
2422 Defining _XOPEN_SOURCE_EXTENDED
2424 cat >> confdefs.h <<\EOF
2425 #define _XOPEN_SOURCE_EXTENDED 1
2431 { test "$extra_verbose" = "yes" && cat << \EOF
2432 Defining _POSIX_C_SOURCE = 199506L
2434 cat >> confdefs.h <<\EOF
2435 #define _POSIX_C_SOURCE 199506L
2439 { test "$extra_verbose" = "yes" && cat << \EOF
2440 Defining _XOPEN_SOURCE = 500
2442 cat >> confdefs.h <<\EOF
2443 #define _XOPEN_SOURCE 500
2447 { test "$extra_verbose" = "yes" && cat << \EOF
2448 Defining _XOPEN_SOURCE_EXTENDED
2450 cat >> confdefs.h <<\EOF
2451 #define _XOPEN_SOURCE_EXTENDED 1
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2462 #if defined __SUNPRO_C
2464 #elif defined __DECC
2466 #elif defined __USLC__ && defined __SCO_VERSION__
2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 case "$conftest_rc" in
2482 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2483 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2484 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2492 echo "Extracting information from the machine- and system-dependent headers..."
2494 tempcname="conftest.c"
2498 cat > $tempcname < confdefs.h
2499 cat >> $tempcname <<EOF
2501 #define C_SWITCH_SITE
2502 #define C_SWITCH_X_SITE
2503 #define LD_SWITCH_SITE
2504 #define LD_SWITCH_X_SITE
2505 #define LD_SWITCH_X_SITE_AUX
2506 #define OS_RELEASE $os_release
2508 #ifdef config_opsysfile
2509 #include "$srcdir/src/$opsysfile"
2512 #ifdef config_machfile
2513 #include "$srcdir/src/$machfile"
2516 #ifndef LIBS_MACHINE
2517 #define LIBS_MACHINE
2519 configure___ libs_machine=LIBS_MACHINE
2524 configure___ libs_system=LIBS_SYSTEM
2526 #ifndef LIBS_TERMCAP
2527 #define LIBS_TERMCAP
2529 configure___ libs_termcap=LIBS_TERMCAP
2531 #ifndef LIB_STANDARD
2532 #define LIB_STANDARD
2534 configure___ libs_standard=LIB_STANDARD
2537 #ifndef OBJECTS_MACHINE
2538 #define OBJECTS_MACHINE
2540 configure___ objects_machine=OBJECTS_MACHINE
2542 #ifndef OBJECTS_SYSTEM
2543 #define OBJECTS_SYSTEM
2545 configure___ objects_system=OBJECTS_SYSTEM
2548 #ifndef C_SWITCH_MACHINE
2549 #define C_SWITCH_MACHINE
2551 configure___ c_switch_machine=C_SWITCH_MACHINE
2553 #ifndef C_SWITCH_SYSTEM
2554 #define C_SWITCH_SYSTEM
2556 configure___ c_switch_system=C_SWITCH_SYSTEM
2559 #ifndef LD_SWITCH_MACHINE
2560 #define LD_SWITCH_MACHINE
2562 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2564 #ifndef LD_SWITCH_SYSTEM
2565 #define LD_SWITCH_SYSTEM
2567 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2571 #define UNEXEC "unexec.o"
2573 configure___ unexec=UNEXEC
2576 #ifndef LD_SWITCH_SHARED
2577 #define LD_SWITCH_SHARED "-c"
2579 configure___ ld_switch_shared=LD_SWITCH_SHARED
2582 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2583 configure___ ordinary_ld=ORDINARY_LD
2585 #ifdef ORDINARY_LINK
2586 #define LD ORDINARY_LD
2587 #else /* no ORDINARY LINK */
2588 #ifdef COFF_ENCAPSULATE
2589 #define LD "\$(CC) -nostdlib"
2590 #else /* not COFF_ENCAPSULATE */
2593 #else /* ! defined (LINKER) */
2595 #endif /* ! defined (LINKER) */
2596 #endif /* ! defined (COFF_ENCAPSULATE) */
2597 #endif /* not ORDINARY_LINK */
2603 configure___ lib_gcc=LIB_GCC
2605 #ifndef LD_TEXT_START_ADDR
2606 #define LD_TEXT_START_ADDR
2608 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2611 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2613 #ifdef COFF_ENCAPSULATE
2614 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2615 #else /* ! defined (COFF_ENCAPSULATE) */
2616 #define START_FILES "pre-crt0.o /lib/crt0.o"
2617 #endif /* ! defined (COFF_ENCAPSULATE) */
2618 #else /* ! defined (NO_REMAP) */
2619 #define START_FILES "ecrt0.o"
2620 #endif /* ! defined (NO_REMAP) */
2621 #endif /* no ORDINARY_LINK */
2625 configure___ start_files=START_FILES
2627 #ifdef ORDINARY_LINK
2628 configure___ ordinary_link=yes
2630 configure___ ordinary_link=no
2633 #ifdef SYSTEM_MALLOC
2634 configure___ system_malloc=yes
2636 configure___ system_malloc=no
2640 configure___ have_terminfo=yes
2642 configure___ have_terminfo=no
2645 #ifdef MAIL_USE_FLOCK
2646 configure___ mail_use_flock=yes
2648 configure___ mail_use_flock=no
2651 #ifdef MAIL_USE_LOCKF
2652 configure___ mail_use_lockf=yes
2654 configure___ mail_use_lockf=no
2657 #ifdef MAIL_USE_LOCKING
2658 configure___ mail_use_locking=yes
2660 configure___ mail_use_locking=no
2663 #ifdef HAVE_WIN32_PROCESSES
2664 configure___ win32_processes=yes
2666 configure___ win32_processes=no
2671 CPP=`eval "echo $CPP $CPPFLAGS"`
2672 eval `$CPP -Isrc $tempcname \
2673 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2677 if test "$pdump" = "yes"; then
2686 test "$extra_verbose" = "yes" && \
2687 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 ""
2689 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2690 mingw_include=`eval "dirname $mingw_include"` ;
2691 mingw_include="-I$mingw_include/../include/mingw32" ;
2692 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2695 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2698 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2700 if test "$__USLC__" = yes; then
2701 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2702 echo "configure:2703: checking for whether the -Kalloca compiler flag is needed" >&5
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2709 void *x = alloca(4);
2712 if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2720 xe_save_c_switch_system="$c_switch_system"
2721 c_switch_system="$c_switch_system -Kalloca"
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2727 void *x = alloca(4);
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2738 c_switch_system="$xe_save_c_switch_system"
2741 echo "$ac_t""$need_kalloca" 1>&6
2742 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2745 if test "$cflags_specified" = "no"; then
2746 if test "$GCC" = "yes"; then
2747 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2748 elif test "$__SUNPRO_C" = "yes"; then
2750 sol2 ) CFLAGS="-v -xO4" ;;
2751 sunos4* ) CFLAGS="-xO2";;
2753 elif test "$__DECC" = "yes"; then
2755 elif test "$CC" = "xlc"; then
2756 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2761 if test "$GCC" = "yes"; then
2762 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2763 echo "configure:2764: checking for buggy gcc versions" >&5
2764 GCC_VERSION=`$CC --version`
2765 case `uname -s`:`uname -m`:$GCC_VERSION in
2766 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2770 *-fno-schedule-insns*) ;;
2772 echo "$ac_t""yes" 1>&6
2773 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2774 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2775 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2781 Linux:alpha:egcs-2.91.*)
2782 echo "$ac_t""yes" 1>&6
2783 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2784 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2785 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2788 case "$GCC_VERSION" in
2793 *-fno-strength-reduce*) ;;
2795 echo "$ac_t""yes" 1>&6
2796 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2797 echo "configure: warning: -fno-strength-reduce." 1>&2
2798 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2806 *-fno-caller-saves*) ;;
2808 echo "$ac_t""yes" 1>&6
2809 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2810 echo "configure: warning: -fno-caller-saves." 1>&2
2811 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2816 echo "$ac_t""no" 1>&6
2820 if test "$GCC" = "yes"; then
2821 set x $ld_switch_system; shift; ld_switch_system=""
2822 while test -n "$1"; do
2824 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2825 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2827 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2833 if test "$GCC" = "yes"; then
2834 set x $ld_switch_machine; shift; ld_switch_machine=""
2835 while test -n "$1"; do
2837 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2838 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2840 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2846 if test "$GCC" = "yes"; then
2847 set x $LDFLAGS; shift; LDFLAGS=""
2848 while test -n "$1"; do
2850 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2851 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2853 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2859 if test "$GCC" = "yes"; then
2860 set x $ld_call_shared; shift; ld_call_shared=""
2861 while test -n "$1"; do
2863 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2864 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2866 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2872 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2873 echo " xemacs will be linked with \"$objects_machine\""
2875 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2876 echo " xemacs will be linked with \"$objects_system\""
2878 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2879 echo " xemacs will be linked with \"$unexec\""
2881 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2882 echo " xemacs will be linked with \"dumper.o\""
2885 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2886 echo "configure:2887: checking for dynodump" >&5
2887 if test "$unexec" != "unexsol2.o"; then
2888 echo "$ac_t""no" 1>&6
2890 echo "$ac_t""yes" 1>&6
2891 { test "$extra_verbose" = "yes" && cat << \EOF
2894 cat >> confdefs.h <<\EOF
2899 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2900 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2902 sparc ) dynodump_arch=sparc ;;
2903 *86* ) dynodump_arch=i386 ;;
2904 powerpc ) dynodump_arch=ppc ;;
2906 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
2910 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2912 if test "$unexec" = "unexaix.o"; then
2913 if test "$dynamic" = "no"; then
2914 start_flags="-Wl,-bnso,-bnodelcsect"
2915 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2916 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2917 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2919 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2920 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2923 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2924 echo "configure:2925: checking for terminateAndUnload in -lC" >&5
2925 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2927 xe_check_libs=" -lC "
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 /* Override any gcc2 internal prototype to avoid an error. */
2932 /* We use char because int might match the return type of a gcc2
2933 builtin and then its argument prototype would still apply. */
2934 char terminateAndUnload();
2937 terminateAndUnload()
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2942 eval "ac_cv_lib_$ac_lib_var=yes"
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2947 eval "ac_cv_lib_$ac_lib_var=no"
2952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2953 echo "$ac_t""yes" 1>&6
2954 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2956 echo "$ac_t""no" 1>&6
2961 elif test -n "$ld_text_start_addr"; then
2962 start_flags="-T $ld_text_start_addr -e __start"
2968 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2969 test -z "$linker" && linker='$(CC) -nostdlib'
2970 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2972 test "$GCC" != "yes" && lib_gcc=
2978 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2979 if test -n "$site_libraries"; then
2980 for arg in $site_libraries; do
2983 * ) test -d "$arg" || \
2984 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2987 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2991 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2992 if test -n "$site_includes"; then
2993 for arg in $site_includes; do
2996 * ) test -d "$arg" || \
2997 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3000 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3004 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3005 if test -n "$site_prefixes"; then
3006 for dir in $site_prefixes; do
3007 lib_dir="${dir}/lib"
3008 inc_dir="${dir}/include"
3009 if test ! -d "$dir"; then
3010 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3011 elif test ! -d "$lib_dir"; then
3012 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3014 if test -d "$inc_dir"; then
3015 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
3017 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
3023 for dir in "/usr/ccs/lib"; do
3024 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
3027 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3028 if test -n "$site_runtime_libraries"; then
3029 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3037 if test -n "$add_runtime_path"; then :;
3038 elif test "$dynamic" = "no"; then add_runtime_path=no
3039 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3040 else case "$opsys" in
3041 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3042 * ) add_runtime_path=no ;;
3046 if test "$add_runtime_path" = "yes"; then
3047 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3048 echo "configure:3049: checking "for runtime libraries flag"" >&5
3050 sol2 ) dash_r="-R" ;;
3051 decosf* | linux* | irix*) dash_r="-rpath " ;;
3054 for try_dash_r in "-R" "-R " "-rpath "; do
3055 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3057 if test "$GCC" = "yes"; then
3058 set x $xe_check_libs; shift; xe_check_libs=""
3059 while test -n "$1"; do
3061 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3062 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3064 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3079 dash_r="$try_dash_r"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3086 test -n "$dash_r" && break
3089 if test -n "$dash_r";
3090 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3091 else echo "$ac_t""NONE" 1>&6
3095 xe_add_unique_runpath_dir='
3097 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3099 if test "$xe_add_p" = "yes"; then
3100 test -n "$runpath" && runpath="${runpath}:"
3101 runpath="${runpath}${xe_runpath_dir}"
3102 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3108 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3109 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3110 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3112 runpath="" runpath_dirs=""
3113 if test -n "$LD_RUN_PATH"; then
3114 runpath="$LD_RUN_PATH"
3115 elif test "$GCC" = "yes"; then
3116 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3117 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3118 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3119 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3120 case "$arg" in P,* | -L* | -R* )
3121 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3123 xe_runpath_dir="$dir"
3124 test "$xe_runpath_dir" != "/lib" -a \
3125 "$xe_runpath_dir" != "/usr/lib" -a \
3126 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3127 eval "$xe_add_unique_runpath_dir"
3132 ld_switch_run="$ld_switch_run_save"
3135 for arg in $ld_switch_site $ld_switch_x_site; do
3136 case "$arg" in -L*) {
3137 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3138 test "$xe_runpath_dir" != "/lib" -a \
3139 "$xe_runpath_dir" != "/usr/lib" -a \
3140 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3141 eval "$xe_add_unique_runpath_dir"
3144 if test "$opsys $need_motif" = "sol2 yes"; then
3145 xe_runpath_dir="/opt/SUNWdt/lib";
3146 eval "$xe_add_unique_runpath_dir";
3149 if test -n "$runpath"; then
3150 ld_switch_run="${dash_r}${runpath}"
3152 if test "$GCC" = "yes"; then
3153 set x $ld_switch_run; shift; ld_switch_run=""
3154 while test -n "$1"; do
3156 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3157 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3159 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3164 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3172 if test "$with_dlmalloc" != "no"; then
3177 after_morecore_hook_exists=yes
3178 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3179 echo "configure:3180: checking for malloc_set_state" >&5
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 /* System header to define __stub macros and hopefully few prototypes,
3185 which can conflict with char malloc_set_state(); below. */
3187 /* Override any gcc2 internal prototype to avoid an error. */
3188 /* We use char because int might match the return type of a gcc2
3189 builtin and then its argument prototype would still apply. */
3190 char malloc_set_state();
3194 /* The GNU C library defines this for functions which it implements
3195 to always fail with ENOSYS. Some functions are actually named
3196 something starting with __ and the normal name is an alias. */
3197 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3207 eval "ac_cv_func_malloc_set_state=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3212 eval "ac_cv_func_malloc_set_state=no"
3216 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3220 echo "$ac_t""no" 1>&6
3224 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3225 echo "configure:3226: checking whether __after_morecore_hook exists" >&5
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 extern void (* __after_morecore_hook)();
3231 __after_morecore_hook = 0
3234 if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3236 echo "$ac_t""yes" 1>&6
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3241 echo "$ac_t""no" 1>&6
3242 after_morecore_hook_exists=no
3245 if test "$system_malloc" = "yes" ; then
3248 - The GNU allocators don't work with this system configuration."
3249 elif test "$with_system_malloc" = "yes" ; then
3252 - User chose not to use GNU allocators."
3253 elif test "$with_debug_malloc" = "yes" ; then
3256 - User chose to use Debugging Malloc."
3259 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3261 - Using Doug Lea's new malloc from the GNU C Library."
3262 { test "$extra_verbose" = "yes" && cat << \EOF
3263 Defining DOUG_LEA_MALLOC
3265 cat >> confdefs.h <<\EOF
3266 #define DOUG_LEA_MALLOC 1
3270 if test "$after_morecore_hook_exists" = "no" ; then
3272 - Using Doug Lea's new malloc from the Linux C Library."
3273 { test "$extra_verbose" = "yes" && cat << \EOF
3274 Defining _NO_MALLOC_WARNING_
3276 cat >> confdefs.h <<\EOF
3277 #define _NO_MALLOC_WARNING_ 1
3287 # Extract the first word of "ranlib", so it can be a program name with args.
3288 set dummy ranlib; ac_word=$2
3289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_word" >&5
3292 if test -n "$RANLIB"; then
3293 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3297 for ac_dir in $ac_dummy; do
3298 test -z "$ac_dir" && ac_dir=.
3299 if test -f $ac_dir/$ac_word; then
3300 ac_cv_prog_RANLIB="ranlib"
3305 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3307 RANLIB="$ac_cv_prog_RANLIB"
3308 if test -n "$RANLIB"; then
3309 echo "$ac_t""$RANLIB" 1>&6
3311 echo "$ac_t""no" 1>&6
3315 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3316 if test -f $ac_dir/install-sh; then
3318 ac_install_sh="$ac_aux_dir/install-sh -c"
3320 elif test -f $ac_dir/install.sh; then
3322 ac_install_sh="$ac_aux_dir/install.sh -c"
3326 if test -z "$ac_aux_dir"; then
3327 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3329 ac_config_guess=$ac_aux_dir/config.guess
3330 ac_config_sub=$ac_aux_dir/config.sub
3331 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3333 # Find a good install program. We prefer a C program (faster),
3334 # so one script is as good as another. But avoid the broken or
3335 # incompatible versions:
3336 # SysV /etc/install, /usr/sbin/install
3337 # SunOS /usr/etc/install
3338 # IRIX /sbin/install
3340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3343 # ./install, which can be erroneously created by make from ./install.sh.
3344 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3345 echo "configure:3346: checking for a BSD compatible install" >&5
3346 if test -z "$INSTALL"; then
3348 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3349 for ac_dir in $PATH; do
3350 # Account for people who put trailing slashes in PATH elements.
3352 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3354 # OSF1 and SCO ODT 3.0 have their own names for install.
3355 # Don't use installbsd from OSF since it installs stuff as root
3357 for ac_prog in ginstall scoinst install; do
3358 if test -f $ac_dir/$ac_prog; then
3359 if test $ac_prog = install &&
3360 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3361 # AIX install. It has an incompatible calling convention.
3364 ac_cv_path_install="$ac_dir/$ac_prog -c"
3374 if test "${ac_cv_path_install+set}" = set; then
3375 INSTALL="$ac_cv_path_install"
3377 # As a last resort, use the slow shell script. We don't cache a
3378 # path for INSTALL within a source directory, because that will
3379 # break other packages using the cache if that directory is
3380 # removed, or if the path is relative.
3381 INSTALL="$ac_install_sh"
3384 echo "$ac_t""$INSTALL" 1>&6
3386 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3387 # It thinks the first close brace ends the variable substitution.
3388 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3390 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3392 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3394 for ac_prog in 'bison -y' byacc
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_word" >&5
3401 if test -n "$YACC"; then
3402 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3406 for ac_dir in $ac_dummy; do
3407 test -z "$ac_dir" && ac_dir=.
3408 if test -f $ac_dir/$ac_word; then
3409 ac_cv_prog_YACC="$ac_prog"
3415 YACC="$ac_cv_prog_YACC"
3416 if test -n "$YACC"; then
3417 echo "$ac_t""$YACC" 1>&6
3419 echo "$ac_t""no" 1>&6
3422 test -n "$YACC" && break
3424 test -n "$YACC" || YACC="yacc"
3427 for ac_hdr in a.out.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h utime.h
3429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3431 echo "configure:3432: checking for $ac_hdr" >&5
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3439 { (eval echo configure:3440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3441 if test -z "$ac_err"; then
3443 eval "ac_cv_header_$ac_safe=yes"
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3449 eval "ac_cv_header_$ac_safe=no"
3452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3455 { test "$extra_verbose" = "yes" && cat << EOF
3458 cat >> confdefs.h <<EOF
3459 #define $ac_tr_hdr 1
3464 echo "$ac_t""no" 1>&6
3468 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3469 echo "configure:3470: checking for sys/wait.h that is POSIX.1 compatible" >&5
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include <sys/types.h>
3475 #include <sys/wait.h>
3477 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3480 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3485 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3488 if { (eval echo configure:3489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3490 ac_cv_header_sys_wait_h=yes
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3495 ac_cv_header_sys_wait_h=no
3499 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3500 if test $ac_cv_header_sys_wait_h = yes; then
3501 { test "$extra_verbose" = "yes" && cat << \EOF
3502 Defining HAVE_SYS_WAIT_H
3504 cat >> confdefs.h <<\EOF
3505 #define HAVE_SYS_WAIT_H 1
3511 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3512 echo "configure:3513: checking for ANSI C header files" >&5
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3523 { (eval echo configure:3524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3525 if test -z "$ac_err"; then
3527 ac_cv_header_stdc=yes
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 ac_cv_header_stdc=no
3537 if test $ac_cv_header_stdc = yes; then
3538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 egrep "memchr" >/dev/null 2>&1; then
3549 ac_cv_header_stdc=no
3555 if test $ac_cv_header_stdc = yes; then
3556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3563 egrep "free" >/dev/null 2>&1; then
3567 ac_cv_header_stdc=no
3573 if test $ac_cv_header_stdc = yes; then
3574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3579 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3580 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3582 int main () { int i; for (i = 0; i < 256; i++)
3583 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3587 if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3595 ac_cv_header_stdc=no
3600 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3601 if test $ac_cv_header_stdc = yes; then
3602 { test "$extra_verbose" = "yes" && cat << \EOF
3603 Defining STDC_HEADERS
3605 cat >> confdefs.h <<\EOF
3606 #define STDC_HEADERS 1
3612 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3613 echo "configure:3614: checking whether time.h and sys/time.h may both be included" >&5
3615 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 #include <sys/types.h>
3619 #include <sys/time.h>
3625 if { (eval echo configure:3626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3627 ac_cv_header_time=yes
3629 echo "configure: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3632 ac_cv_header_time=no
3636 echo "$ac_t""$ac_cv_header_time" 1>&6
3637 if test $ac_cv_header_time = yes; then
3638 { test "$extra_verbose" = "yes" && cat << \EOF
3639 Defining TIME_WITH_SYS_TIME
3641 cat >> confdefs.h <<\EOF
3642 #define TIME_WITH_SYS_TIME 1
3648 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3649 echo "configure:3650: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 #include <sys/types.h>
3656 /* NetBSD declares sys_siglist in unistd.h. */
3657 #ifdef HAVE_UNISTD_H
3661 char *msg = *(sys_siglist + 1);
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666 ac_cv_decl_sys_siglist=yes
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 ac_cv_decl_sys_siglist=no
3675 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3676 if test $ac_cv_decl_sys_siglist = yes; then
3677 { test "$extra_verbose" = "yes" && cat << \EOF
3678 Defining SYS_SIGLIST_DECLARED
3680 cat >> confdefs.h <<\EOF
3681 #define SYS_SIGLIST_DECLARED 1
3688 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3689 echo "configure:3690: checking for struct utimbuf" >&5
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 #ifdef TIME_WITH_SYS_TIME
3694 #include <sys/time.h>
3697 #ifdef HAVE_SYS_TIME_H
3698 #include <sys/time.h>
3707 static struct utimbuf x; x.actime = x.modtime;
3710 if { (eval echo configure:3711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3712 echo "$ac_t""yes" 1>&6
3713 { test "$extra_verbose" = "yes" && cat << \EOF
3714 Defining HAVE_STRUCT_UTIMBUF
3716 cat >> confdefs.h <<\EOF
3717 #define HAVE_STRUCT_UTIMBUF 1
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 echo "$ac_t""no" 1>&6
3729 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3730 echo "configure:3731: checking return type of signal handlers" >&5
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 #include <sys/types.h>
3741 extern "C" void (*signal (int, void (*)(int)))(int);
3743 void (*signal ()) ();
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752 ac_cv_type_signal=void
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3757 ac_cv_type_signal=int
3761 echo "$ac_t""$ac_cv_type_signal" 1>&6
3762 { test "$extra_verbose" = "yes" && cat << EOF
3763 Defining RETSIGTYPE = $ac_cv_type_signal
3765 cat >> confdefs.h <<EOF
3766 #define RETSIGTYPE $ac_cv_type_signal
3771 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3772 echo "configure:3773: checking for size_t" >&5
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #include <sys/types.h>
3783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3784 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3786 ac_cv_type_size_t=yes
3789 ac_cv_type_size_t=no
3793 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3794 if test $ac_cv_type_size_t = no; then
3795 { test "$extra_verbose" = "yes" && cat << \EOF
3796 Defining size_t = unsigned
3798 cat >> confdefs.h <<\EOF
3799 #define size_t unsigned
3805 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3806 echo "configure:3807: checking for pid_t" >&5
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 #include <sys/types.h>
3817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3818 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3820 ac_cv_type_pid_t=yes
3827 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3828 if test $ac_cv_type_pid_t = no; then
3829 { test "$extra_verbose" = "yes" && cat << \EOF
3830 Defining pid_t = int
3832 cat >> confdefs.h <<\EOF
3839 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3840 echo "configure:3841: checking for uid_t in sys/types.h" >&5
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 #include <sys/types.h>
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 egrep "uid_t" >/dev/null 2>&1; then
3850 ac_cv_type_uid_t=yes
3858 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3859 if test $ac_cv_type_uid_t = no; then
3860 { test "$extra_verbose" = "yes" && cat << \EOF
3861 Defining uid_t = int
3863 cat >> confdefs.h <<\EOF
3868 { test "$extra_verbose" = "yes" && cat << \EOF
3869 Defining gid_t = int
3871 cat >> confdefs.h <<\EOF
3878 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3879 echo "configure:3880: checking for mode_t" >&5
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3884 #include <sys/types.h>
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3893 ac_cv_type_mode_t=yes
3896 ac_cv_type_mode_t=no
3900 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3901 if test $ac_cv_type_mode_t = no; then
3902 { test "$extra_verbose" = "yes" && cat << \EOF
3903 Defining mode_t = int
3905 cat >> confdefs.h <<\EOF
3912 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3913 echo "configure:3914: checking for off_t" >&5
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 #include <sys/types.h>
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3927 ac_cv_type_off_t=yes
3934 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3935 if test $ac_cv_type_off_t = no; then
3936 { test "$extra_verbose" = "yes" && cat << \EOF
3937 Defining off_t = long
3939 cat >> confdefs.h <<\EOF
3946 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3947 echo "configure:3948: checking for ssize_t" >&5
3949 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 #include <sys/types.h>
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3961 ac_cv_type_ssize_t=yes
3964 ac_cv_type_ssize_t=no
3968 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3969 if test $ac_cv_type_ssize_t = no; then
3970 { test "$extra_verbose" = "yes" && cat << \EOF
3971 Defining ssize_t = int
3973 cat >> confdefs.h <<\EOF
3981 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3982 echo "configure:3983: checking for socklen_t" >&5
3983 cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3986 #include <sys/socket.h>
3993 if { (eval echo configure:3994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3995 echo "$ac_t""yes" 1>&6
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 #include <sys/socket.h>
4005 int accept (int, struct sockaddr *, size_t *);
4011 if { (eval echo configure:4012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4014 echo "$ac_t""size_t" 1>&6
4015 { test "$extra_verbose" = "yes" && cat << \EOF
4016 Defining socklen_t = size_t
4018 cat >> confdefs.h <<\EOF
4019 #define socklen_t size_t
4024 echo "configure: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4028 echo "$ac_t""int" 1>&6
4029 { test "$extra_verbose" = "yes" && cat << \EOF
4030 Defining socklen_t = int
4032 cat >> confdefs.h <<\EOF
4033 #define socklen_t int
4042 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4043 echo "configure:4044: checking for struct timeval" >&5
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 #ifdef TIME_WITH_SYS_TIME
4048 #include <sys/time.h>
4051 #ifdef HAVE_SYS_TIME_H
4052 #include <sys/time.h>
4058 static struct timeval x; x.tv_sec = x.tv_usec;
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 echo "$ac_t""yes" 1>&6
4065 { test "$extra_verbose" = "yes" && cat << \EOF
4066 Defining HAVE_TIMEVAL
4068 cat >> confdefs.h <<\EOF
4069 #define HAVE_TIMEVAL 1
4074 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4077 echo "$ac_t""no" 1>&6
4082 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4083 echo "configure:4084: checking whether struct tm is in sys/time.h or time.h" >&5
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4088 #include <sys/types.h>
4091 struct tm *tp; tp->tm_sec;
4094 if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4096 ac_cv_struct_tm=time.h
4098 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4101 ac_cv_struct_tm=sys/time.h
4105 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4106 if test $ac_cv_struct_tm = sys/time.h; then
4107 { test "$extra_verbose" = "yes" && cat << \EOF
4108 Defining TM_IN_SYS_TIME
4110 cat >> confdefs.h <<\EOF
4111 #define TM_IN_SYS_TIME 1
4117 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4118 echo "configure:4119: checking for tm_zone in struct tm" >&5
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4123 #include <sys/types.h>
4124 #include <$ac_cv_struct_tm>
4126 struct tm tm; tm.tm_zone;
4129 if { (eval echo configure:4130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4131 ac_cv_struct_tm_zone=yes
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4136 ac_cv_struct_tm_zone=no
4140 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4141 if test "$ac_cv_struct_tm_zone" = yes; then
4142 { test "$extra_verbose" = "yes" && cat << \EOF
4143 Defining HAVE_TM_ZONE
4145 cat >> confdefs.h <<\EOF
4146 #define HAVE_TM_ZONE 1
4151 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4152 echo "configure:4153: checking for tzname" >&5
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4158 #ifndef tzname /* For SGI. */
4159 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4167 ac_cv_var_tzname=yes
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4176 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4177 if test $ac_cv_var_tzname = yes; then
4178 { test "$extra_verbose" = "yes" && cat << \EOF
4179 Defining HAVE_TZNAME
4181 cat >> confdefs.h <<\EOF
4182 #define HAVE_TZNAME 1
4190 echo $ac_n "checking for working const""... $ac_c" 1>&6
4191 echo "configure:4192: checking for working const" >&5
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4199 /* Ultrix mips cc rejects this. */
4200 typedef int charset[2]; const charset x;
4201 /* SunOS 4.1.1 cc rejects this. */
4202 char const *const *ccp;
4204 /* NEC SVR4.0.2 mips cc rejects this. */
4205 struct point {int x, y;};
4206 static struct point const zero = {0,0};
4207 /* AIX XL C 1.02.0.0 rejects this.
4208 It does not let you subtract one const X* pointer from another in an arm
4209 of an if-expression whose if-part is not a constant expression */
4210 const char *g = "string";
4211 ccp = &g + (g ? g-g : 0);
4212 /* HPUX 7.0 cc rejects these. */
4215 ccp = (char const *const *) p;
4216 { /* SCO 3.2v4 cc rejects this. */
4218 char const *s = 0 ? (char *) 0 : (char const *) 0;
4222 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4224 const int *foo = &x[0];
4227 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4228 typedef const int *iptr;
4232 { /* AIX XL C 1.02.0.0 rejects this saying
4233 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4234 struct s { int j; const int *ap[3]; };
4235 struct s *b; b->j = 5;
4237 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4243 if { (eval echo configure:4244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4254 echo "$ac_t""$ac_cv_c_const" 1>&6
4255 if test $ac_cv_c_const = no; then
4256 { test "$extra_verbose" = "yes" && cat << \EOF
4259 cat >> confdefs.h <<\EOF
4267 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4268 echo "configure:4269: checking whether ${MAKE-make} sets \${MAKE}" >&5
4269 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4271 cat > conftestmake <<\EOF
4273 @echo 'ac_maketemp="${MAKE}"'
4275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4276 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4277 if test -n "$ac_maketemp"; then
4278 eval ac_cv_prog_make_${ac_make}_set=yes
4280 eval ac_cv_prog_make_${ac_make}_set=no
4283 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4287 echo "$ac_t""no" 1>&6
4288 SET_MAKE="MAKE=${MAKE-make}"
4292 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4293 echo "configure:4294: checking whether byte ordering is bigendian" >&5
4295 ac_cv_c_bigendian=unknown
4296 # See if sys/param.h defines the BYTE_ORDER macro.
4297 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 #include <sys/types.h>
4301 #include <sys/param.h>
4304 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4309 if { (eval echo configure:4310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4311 # It does; now see whether it defined to BIG_ENDIAN or not.
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 #include <sys/types.h>
4316 #include <sys/param.h>
4319 #if BYTE_ORDER != BIG_ENDIAN
4324 if { (eval echo configure:4325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4326 ac_cv_c_bigendian=yes
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4331 ac_cv_c_bigendian=no
4335 echo "configure: failed program was:" >&5
4336 cat conftest.$ac_ext >&5
4339 if test $ac_cv_c_bigendian = unknown; then
4340 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4344 /* Are we little or big endian? From Harbison&Steele. */
4348 char c[sizeof (long)];
4351 exit (u.c[sizeof (long) - 1] == 1);
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4356 ac_cv_c_bigendian=no
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4362 ac_cv_c_bigendian=yes
4367 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4368 if test $ac_cv_c_bigendian = yes; then
4369 { test "$extra_verbose" = "yes" && cat << \EOF
4370 Defining WORDS_BIGENDIAN
4372 cat >> confdefs.h <<\EOF
4373 #define WORDS_BIGENDIAN 1
4380 echo $ac_n "checking size of short""... $ac_c" 1>&6
4381 echo "configure:4382: checking size of short" >&5
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4389 FILE *f=fopen("conftestval", "w");
4391 fprintf(f, "%d\n", sizeof(short));
4395 if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4397 ac_cv_sizeof_short=`cat conftestval`
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4403 ac_cv_sizeof_short=0
4406 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4407 { test "$extra_verbose" = "yes" && cat << EOF
4408 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4410 cat >> confdefs.h <<EOF
4411 #define SIZEOF_SHORT $ac_cv_sizeof_short
4416 if test "$ac_cv_sizeof_short" = 0; then
4418 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4419 echo "*** PANIC *** Please examine config.log for compilation errors."
4422 echo $ac_n "checking size of int""... $ac_c" 1>&6
4423 echo "configure:4424: checking size of int" >&5
4425 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4431 FILE *f=fopen("conftestval", "w");
4433 fprintf(f, "%d\n", sizeof(int));
4437 if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4439 ac_cv_sizeof_int=`cat conftestval`
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4448 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4449 { test "$extra_verbose" = "yes" && cat << EOF
4450 Defining SIZEOF_INT = $ac_cv_sizeof_int
4452 cat >> confdefs.h <<EOF
4453 #define SIZEOF_INT $ac_cv_sizeof_int
4458 echo $ac_n "checking size of long""... $ac_c" 1>&6
4459 echo "configure:4460: checking size of long" >&5
4461 cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4467 FILE *f=fopen("conftestval", "w");
4469 fprintf(f, "%d\n", sizeof(long));
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4475 ac_cv_sizeof_long=`cat conftestval`
4478 echo "configure: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4484 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4485 { test "$extra_verbose" = "yes" && cat << EOF
4486 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4488 cat >> confdefs.h <<EOF
4489 #define SIZEOF_LONG $ac_cv_sizeof_long
4494 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4495 echo "configure:4496: checking size of long long" >&5
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4503 FILE *f=fopen("conftestval", "w");
4505 fprintf(f, "%d\n", sizeof(long long));
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4511 ac_cv_sizeof_long_long=`cat conftestval`
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4517 ac_cv_sizeof_long_long=0
4520 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4521 { test "$extra_verbose" = "yes" && cat << EOF
4522 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4524 cat >> confdefs.h <<EOF
4525 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4530 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4531 echo "configure:4532: checking size of void *" >&5
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4539 FILE *f=fopen("conftestval", "w");
4541 fprintf(f, "%d\n", sizeof(void *));
4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4547 ac_cv_sizeof_void_p=`cat conftestval`
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4553 ac_cv_sizeof_void_p=0
4556 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4557 { test "$extra_verbose" = "yes" && cat << EOF
4558 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4560 cat >> confdefs.h <<EOF
4561 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4567 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4568 echo "configure:4569: checking for long file names" >&5
4570 ac_cv_sys_long_file_names=yes
4571 # Test for long file names in all the places we know might matter:
4572 # . the current directory, where building will happen
4573 # $prefix/lib where we will be installing things
4574 # $exec_prefix/lib likewise
4575 # eval it to expand exec_prefix.
4576 # $TMPDIR if set, where it might want to write temporary files
4577 # if $TMPDIR is not set:
4578 # /tmp where it might want to write temporary files
4581 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4582 ac_tmpdirs="$TMPDIR"
4584 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4586 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4587 test -d $ac_dir || continue
4588 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4589 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4590 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4591 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4592 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4593 ac_cv_sys_long_file_names=no
4594 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4597 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4600 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4601 if test $ac_cv_sys_long_file_names = yes; then
4602 { test "$extra_verbose" = "yes" && cat << \EOF
4603 Defining HAVE_LONG_FILE_NAMES
4605 cat >> confdefs.h <<\EOF
4606 #define HAVE_LONG_FILE_NAMES 1
4613 echo $ac_n "checking for sin""... $ac_c" 1>&6
4614 echo "configure:4615: checking for sin" >&5
4616 cat > conftest.$ac_ext <<EOF
4617 #line 4618 "configure"
4618 #include "confdefs.h"
4619 /* System header to define __stub macros and hopefully few prototypes,
4620 which can conflict with char sin(); below. */
4622 /* Override any gcc2 internal prototype to avoid an error. */
4623 /* We use char because int might match the return type of a gcc2
4624 builtin and then its argument prototype would still apply. */
4629 /* The GNU C library defines this for functions which it implements
4630 to always fail with ENOSYS. Some functions are actually named
4631 something starting with __ and the normal name is an alias. */
4632 #if defined (__stub_sin) || defined (__stub___sin)
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4642 eval "ac_cv_func_sin=yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 eval "ac_cv_func_sin=no"
4651 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4655 echo "$ac_t""no" 1>&6
4657 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4658 echo "configure:4659: checking for sin in -lm" >&5
4659 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4661 xe_check_libs=" -lm "
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 /* Override any gcc2 internal prototype to avoid an error. */
4666 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4676 eval "ac_cv_lib_$ac_lib_var=yes"
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4681 eval "ac_cv_lib_$ac_lib_var=no"
4686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4687 echo "$ac_t""yes" 1>&6
4688 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4689 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4690 { test "$extra_verbose" = "yes" && cat << EOF
4693 cat >> confdefs.h <<EOF
4694 #define $ac_tr_lib 1
4698 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4701 echo "$ac_t""no" 1>&6
4708 { test "$extra_verbose" = "yes" && cat << \EOF
4709 Defining LISP_FLOAT_TYPE
4711 cat >> confdefs.h <<\EOF
4712 #define LISP_FLOAT_TYPE 1
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4722 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727 { test "$extra_verbose" = "yes" && cat << \EOF
4728 Defining HAVE_INVERSE_HYPERBOLIC
4730 cat >> confdefs.h <<\EOF
4731 #define HAVE_INVERSE_HYPERBOLIC 1
4736 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5
4741 echo "checking type of mail spool file locking" 1>&6
4742 echo "configure:4743: checking type of mail spool file locking" >&5
4743 for ac_func in lockf flock
4745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4746 echo "configure:4747: checking for $ac_func" >&5
4748 cat > conftest.$ac_ext <<EOF
4749 #line 4750 "configure"
4750 #include "confdefs.h"
4751 /* System header to define __stub macros and hopefully few prototypes,
4752 which can conflict with char $ac_func(); below. */
4754 /* Override any gcc2 internal prototype to avoid an error. */
4755 /* We use char because int might match the return type of a gcc2
4756 builtin and then its argument prototype would still apply. */
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4772 if { (eval echo configure:4773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4774 eval "ac_cv_func_$ac_func=yes"
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4779 eval "ac_cv_func_$ac_func=no"
4783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4784 echo "$ac_t""yes" 1>&6
4785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4786 { test "$extra_verbose" = "yes" && cat << EOF
4787 Defining $ac_tr_func
4789 cat >> confdefs.h <<EOF
4790 #define $ac_tr_func 1
4795 echo "$ac_t""no" 1>&6
4799 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4800 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4801 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4802 if test -z "$mail_locking"; then
4803 case "$opsys" in cygwin* | mingw*)
4808 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4809 Defining MAIL_LOCK_LOCKF
4811 cat >> confdefs.h <<\EOF
4812 #define MAIL_LOCK_LOCKF 1
4816 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4817 Defining MAIL_LOCK_FLOCK
4819 cat >> confdefs.h <<\EOF
4820 #define MAIL_LOCK_FLOCK 1
4824 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4825 Defining MAIL_LOCK_LOCKING
4827 cat >> confdefs.h <<\EOF
4828 #define MAIL_LOCK_LOCKING 1
4832 elif test "$mail_locking" = "pop"; then
4835 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4836 Defining MAIL_LOCK_DOT
4838 cat >> confdefs.h <<\EOF
4839 #define MAIL_LOCK_DOT 1
4844 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4845 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4846 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4847 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4848 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4849 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4851 case "$opsys" in decosf*)
4853 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4854 echo "configure:4855: checking for cma_open in -lpthreads" >&5
4855 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4857 xe_check_libs=" -lpthreads "
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 /* Override any gcc2 internal prototype to avoid an error. */
4862 /* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */
4870 if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4872 eval "ac_cv_lib_$ac_lib_var=yes"
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4877 eval "ac_cv_lib_$ac_lib_var=no"
4882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4883 echo "$ac_t""yes" 1>&6
4884 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4885 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4886 { test "$extra_verbose" = "yes" && cat << EOF
4889 cat >> confdefs.h <<EOF
4890 #define $ac_tr_lib 1
4894 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4897 echo "$ac_t""no" 1>&6
4901 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4902 c_switch_site="$c_switch_site -threads" ;;
4905 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4906 echo "configure:4907: checking whether the -xildoff compiler flag is required" >&5
4907 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4908 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4909 then echo "$ac_t""no" 1>&6;
4910 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
4912 else echo "$ac_t""no" 1>&6
4915 if test "$opsys" = "sol2"; then
4916 if test "$os_release" -ge 56; then
4917 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4918 echo "configure:4919: checking for \"-z ignore\" linker flag" >&5
4919 case "`ld -h 2>&1`" in
4920 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4921 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4922 *) echo "$ac_t""no" 1>&6 ;;
4928 echo "checking "for specified window system"" 1>&6
4929 echo "configure:4930: checking "for specified window system"" >&5
4931 if test "$with_x11" != "no"; then
4932 test "$x_includes $x_libraries" != "NONE NONE" && \
4933 window_system=x11 with_x11=yes
4936 if test "$x_includes $x_libraries" = "NONE NONE" \
4937 -a -n "$OPENWINHOME" \
4938 -a "$OPENWINHOME" != "/usr/openwin" \
4939 -a -d "$OPENWINHOME"; then
4940 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4941 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4942 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4945 if test "$x_includes" = "NONE"; then
4946 for dir in "/usr/X11" "/usr/X11R6"; do
4947 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4951 if test "$x_libraries" = "NONE"; then
4952 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4953 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4957 # If we find X, set shell vars x_includes and x_libraries to the
4958 # paths, otherwise set no_x=yes.
4959 # Uses ac_ vars as temps to allow command line to override cache and checks.
4960 # --without-x overrides everything else, but does not touch the cache.
4961 echo $ac_n "checking for X""... $ac_c" 1>&6
4962 echo "configure:4963: checking for X" >&5
4964 # Check whether --with-x or --without-x was given.
4965 if test "${with_x+set}" = set; then
4970 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4971 if test "x$with_x" = xno; then
4972 # The user explicitly disabled X.
4975 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4976 # Both variables are already set.
4980 # One or both of the vars are not set, and there is no cached value.
4981 ac_x_includes=NO ac_x_libraries=NO
4983 if mkdir conftestdir; then
4985 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4986 cat > Imakefile <<'EOF'
4988 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4990 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4991 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4992 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4993 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4994 for ac_extension in a so sl; do
4995 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4996 test -f $ac_im_libdir/libX11.$ac_extension; then
4997 ac_im_usrlibdir=$ac_im_libdir; break
5000 # Screen out bogus values from the imake configuration. They are
5001 # bogus both because they are the default anyway, and because
5002 # using them would break gcc on systems where it needs fixed includes.
5003 case "$ac_im_incroot" in
5005 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5007 case "$ac_im_usrlibdir" in
5009 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5016 if test "$ac_x_includes" = NO; then
5017 # Guess where to find include files, by looking for this one X11 .h file.
5018 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5020 # First, try using that file with no special directory specified.
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 #include <$x_direct_test_include>
5026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5027 { (eval echo configure:5028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5029 if test -z "$ac_err"; then
5031 # We can compile using X headers with no special include directory.
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 # Look for the header file in a standard set of common directories.
5039 # Check X11 before X11Rn because it is often a symlink to the current release.
5042 /usr/X11R6/include \
5043 /usr/X11R5/include \
5044 /usr/X11R4/include \
5047 /usr/include/X11R6 \
5048 /usr/include/X11R5 \
5049 /usr/include/X11R4 \
5051 /usr/local/X11/include \
5052 /usr/local/X11R6/include \
5053 /usr/local/X11R5/include \
5054 /usr/local/X11R4/include \
5056 /usr/local/include/X11 \
5057 /usr/local/include/X11R6 \
5058 /usr/local/include/X11R5 \
5059 /usr/local/include/X11R4 \
5063 /usr/XFree86/include/X11 \
5066 /usr/local/include \
5067 /usr/unsupported/include \
5068 /usr/athena/include \
5069 /usr/local/x11r5/include \
5070 /usr/lpp/Xamples/include \
5072 /usr/openwin/include \
5073 /usr/openwin/share/include \
5076 if test -r "$ac_dir/$x_direct_test_include"; then
5077 ac_x_includes=$ac_dir
5083 fi # $ac_x_includes = NO
5085 if test "$ac_x_libraries" = NO; then
5086 # Check for the libraries.
5088 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5089 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5091 # See if we find them without any special options.
5092 # Don't add to $LIBS permanently.
5093 ac_save_LIBS="$LIBS"
5094 LIBS="-l$x_direct_test_library $LIBS"
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5100 ${x_direct_test_function}()
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5105 LIBS="$ac_save_LIBS"
5106 # We can link X programs with no special library path.
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5112 LIBS="$ac_save_LIBS"
5113 # First see if replacing the include by lib works.
5114 # Check X11 before X11Rn because it is often a symlink to the current release.
5115 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5126 /usr/local/X11/lib \
5127 /usr/local/X11R6/lib \
5128 /usr/local/X11R5/lib \
5129 /usr/local/X11R4/lib \
5131 /usr/local/lib/X11 \
5132 /usr/local/lib/X11R6 \
5133 /usr/local/lib/X11R5 \
5134 /usr/local/lib/X11R4 \
5138 /usr/XFree86/lib/X11 \
5142 /usr/unsupported/lib \
5144 /usr/local/x11r5/lib \
5145 /usr/lpp/Xamples/lib \
5149 /usr/openwin/share/lib \
5152 for ac_extension in a so sl; do
5153 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5154 ac_x_libraries=$ac_dir
5161 fi # $ac_x_libraries = NO
5163 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5164 # Didn't find X anywhere. Cache the known absence of X.
5165 ac_cv_have_x="have_x=no"
5167 # Record where we found X for the cache.
5168 ac_cv_have_x="have_x=yes \
5169 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5172 eval "$ac_cv_have_x"
5175 if test "$have_x" != yes; then
5176 echo "$ac_t""$have_x" 1>&6
5179 # If each of the values was on the command line, it overrides each guess.
5180 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5181 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5182 # Update the cache value to reflect the command line values.
5183 ac_cv_have_x="have_x=yes \
5184 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5185 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5188 if test "$no_x" = yes; then
5189 # Not all programs may use this symbol, but it does not hurt to define it.
5190 { test "$extra_verbose" = "yes" && cat << \EOF
5191 Defining X_DISPLAY_MISSING
5193 cat >> confdefs.h <<\EOF
5194 #define X_DISPLAY_MISSING 1
5198 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5200 if test -n "$x_includes"; then
5201 X_CFLAGS="$X_CFLAGS -I$x_includes"
5204 # It would also be nice to do this for all -L options, not just this one.
5205 if test -n "$x_libraries"; then
5206 X_LIBS="$X_LIBS -L$x_libraries"
5207 # For Solaris; some versions of Sun CC require a space after -R and
5208 # others require no space. Words are not sufficient . . . .
5209 case "`(uname -sr) 2>/dev/null`" in
5211 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5212 echo "configure:5213: checking whether -R must be followed by a space" >&5
5213 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5222 if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5232 if test $ac_R_nospace = yes; then
5233 echo "$ac_t""no" 1>&6
5234 X_LIBS="$X_LIBS -R$x_libraries"
5236 LIBS="$ac_xsave_LIBS -R $x_libraries"
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5249 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5255 if test $ac_R_space = yes; then
5256 echo "$ac_t""yes" 1>&6
5257 X_LIBS="$X_LIBS -R $x_libraries"
5259 echo "$ac_t""neither works" 1>&6
5262 LIBS="$ac_xsave_LIBS"
5266 # Check for system-dependent libraries X programs must link with.
5267 # Do this before checking for the system-independent R6 libraries
5268 # (-lICE), since we may need -lsocket or whatever for X linking.
5270 if test "$ISC" = yes; then
5271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5273 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5274 # libraries were built with DECnet support. And karl@cs.umb.edu says
5275 # the Alpha needs dnet_stub (dnet does not exist).
5276 if test "$with_dnet" = "no" ; then
5277 ac_cv_lib_dnet_dnet_ntoa=no
5280 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5281 echo "configure:5282: checking for dnet_ntoa in -ldnet" >&5
5282 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5284 xe_check_libs=" -ldnet "
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5288 /* Override any gcc2 internal prototype to avoid an error. */
5289 /* We use char because int might match the return type of a gcc2
5290 builtin and then its argument prototype would still apply. */
5297 if { (eval echo configure:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5299 eval "ac_cv_lib_$ac_lib_var=yes"
5301 echo "configure: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5304 eval "ac_cv_lib_$ac_lib_var=no"
5309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5310 echo "$ac_t""yes" 1>&6
5311 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5313 echo "$ac_t""no" 1>&6
5318 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5320 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5321 echo "configure:5322: checking for dnet_ntoa in -ldnet_stub" >&5
5322 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5324 xe_check_libs=" -ldnet_stub "
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5339 eval "ac_cv_lib_$ac_lib_var=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 eval "ac_cv_lib_$ac_lib_var=no"
5349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5350 echo "$ac_t""yes" 1>&6
5351 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5353 echo "$ac_t""no" 1>&6
5359 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5360 # to get the SysV transport functions.
5361 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5363 # The nsl library prevents programs from opening the X display
5364 # on Irix 5.2, according to dickey@clark.net.
5365 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5366 echo "configure:5367: checking for gethostbyname" >&5
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 /* System header to define __stub macros and hopefully few prototypes,
5372 which can conflict with char gethostbyname(); below. */
5374 /* Override any gcc2 internal prototype to avoid an error. */
5375 /* We use char because int might match the return type of a gcc2
5376 builtin and then its argument prototype would still apply. */
5377 char gethostbyname();
5381 /* The GNU C library defines this for functions which it implements
5382 to always fail with ENOSYS. Some functions are actually named
5383 something starting with __ and the normal name is an alias. */
5384 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5394 eval "ac_cv_func_gethostbyname=yes"
5396 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5399 eval "ac_cv_func_gethostbyname=no"
5403 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5404 echo "$ac_t""yes" 1>&6
5407 echo "$ac_t""no" 1>&6
5410 if test $ac_cv_func_gethostbyname = no; then
5412 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5413 echo "configure:5414: checking for gethostbyname in -lnsl" >&5
5414 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5416 xe_check_libs=" -lnsl "
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 /* Override any gcc2 internal prototype to avoid an error. */
5421 /* We use char because int might match the return type of a gcc2
5422 builtin and then its argument prototype would still apply. */
5423 char gethostbyname();
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431 eval "ac_cv_lib_$ac_lib_var=yes"
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5436 eval "ac_cv_lib_$ac_lib_var=no"
5441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5442 echo "$ac_t""yes" 1>&6
5443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5445 echo "$ac_t""no" 1>&6
5451 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5452 # socket/setsockopt and other routines are undefined under SCO ODT
5453 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5454 # on later versions), says simon@lia.di.epfl.ch: it contains
5455 # gethostby* variants that don't use the nameserver (or something).
5456 # -lsocket must be given before -lnsl if both are needed.
5457 # We assume that if connect needs -lnsl, so does gethostbyname.
5458 echo $ac_n "checking for connect""... $ac_c" 1>&6
5459 echo "configure:5460: checking for connect" >&5
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 /* System header to define __stub macros and hopefully few prototypes,
5465 which can conflict with char connect(); below. */
5467 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5474 /* The GNU C library defines this for functions which it implements
5475 to always fail with ENOSYS. Some functions are actually named
5476 something starting with __ and the normal name is an alias. */
5477 #if defined (__stub_connect) || defined (__stub___connect)
5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5487 eval "ac_cv_func_connect=yes"
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5492 eval "ac_cv_func_connect=no"
5496 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5497 echo "$ac_t""yes" 1>&6
5500 echo "$ac_t""no" 1>&6
5503 if test $ac_cv_func_connect = no; then
5505 xe_msg_checking="for connect in -lsocket"
5506 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5507 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5508 echo "configure:5509: checking "$xe_msg_checking"" >&5
5509 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5511 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5526 eval "ac_cv_lib_$ac_lib_var=yes"
5528 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5531 eval "ac_cv_lib_$ac_lib_var=no"
5536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5537 echo "$ac_t""yes" 1>&6
5538 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5540 echo "$ac_t""no" 1>&6
5546 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5547 echo $ac_n "checking for remove""... $ac_c" 1>&6
5548 echo "configure:5549: checking for remove" >&5
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 /* System header to define __stub macros and hopefully few prototypes,
5554 which can conflict with char remove(); below. */
5556 /* Override any gcc2 internal prototype to avoid an error. */
5557 /* We use char because int might match the return type of a gcc2
5558 builtin and then its argument prototype would still apply. */
5563 /* The GNU C library defines this for functions which it implements
5564 to always fail with ENOSYS. Some functions are actually named
5565 something starting with __ and the normal name is an alias. */
5566 #if defined (__stub_remove) || defined (__stub___remove)
5574 if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5576 eval "ac_cv_func_remove=yes"
5578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 eval "ac_cv_func_remove=no"
5585 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5586 echo "$ac_t""yes" 1>&6
5589 echo "$ac_t""no" 1>&6
5592 if test $ac_cv_func_remove = no; then
5594 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5595 echo "configure:5596: checking for remove in -lposix" >&5
5596 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5598 xe_check_libs=" -lposix "
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5611 if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5613 eval "ac_cv_lib_$ac_lib_var=yes"
5615 echo "configure: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5618 eval "ac_cv_lib_$ac_lib_var=no"
5623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5624 echo "$ac_t""yes" 1>&6
5625 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5627 echo "$ac_t""no" 1>&6
5633 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5634 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5635 echo "configure:5636: checking for shmat" >&5
5637 cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5640 /* System header to define __stub macros and hopefully few prototypes,
5641 which can conflict with char shmat(); below. */
5643 /* Override any gcc2 internal prototype to avoid an error. */
5644 /* We use char because int might match the return type of a gcc2
5645 builtin and then its argument prototype would still apply. */
5650 /* The GNU C library defines this for functions which it implements
5651 to always fail with ENOSYS. Some functions are actually named
5652 something starting with __ and the normal name is an alias. */
5653 #if defined (__stub_shmat) || defined (__stub___shmat)
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5663 eval "ac_cv_func_shmat=yes"
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 eval "ac_cv_func_shmat=no"
5672 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5673 echo "$ac_t""yes" 1>&6
5676 echo "$ac_t""no" 1>&6
5679 if test $ac_cv_func_shmat = no; then
5681 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5682 echo "configure:5683: checking for shmat in -lipc" >&5
5683 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5685 xe_check_libs=" -lipc "
5686 cat > conftest.$ac_ext <<EOF
5687 #line 5688 "configure"
5688 #include "confdefs.h"
5689 /* Override any gcc2 internal prototype to avoid an error. */
5690 /* We use char because int might match the return type of a gcc2
5691 builtin and then its argument prototype would still apply. */
5698 if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5700 eval "ac_cv_lib_$ac_lib_var=yes"
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5705 eval "ac_cv_lib_$ac_lib_var=no"
5710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5711 echo "$ac_t""yes" 1>&6
5712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5714 echo "$ac_t""no" 1>&6
5721 # Check for libraries that X11R6 Xt/Xaw programs need.
5722 ac_save_LDFLAGS="$LDFLAGS"
5723 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5724 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5725 # check for ICE first), but we must link in the order -lSM -lICE or
5726 # we get undefined symbols. So assume we have SM if we have ICE.
5727 # These have to be linked with before -lX11, unlike the other
5728 # libraries we check for below, so use a different variable.
5729 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5731 xe_msg_checking="for IceConnectionNumber in -lICE"
5732 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5733 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5734 echo "configure:5735: checking "$xe_msg_checking"" >&5
5735 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5737 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 /* Override any gcc2 internal prototype to avoid an error. */
5742 /* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */
5744 char IceConnectionNumber();
5747 IceConnectionNumber()
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 eval "ac_cv_lib_$ac_lib_var=yes"
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5757 eval "ac_cv_lib_$ac_lib_var=no"
5762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5763 echo "$ac_t""yes" 1>&6
5764 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5766 echo "$ac_t""no" 1>&6
5770 LDFLAGS="$ac_save_LDFLAGS"
5773 # Autoconf claims to find X library and include dirs for us.
5774 if test "$no_x" = "yes"
5775 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5776 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5781 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5782 no ) window_system=none HAVE_X_WINDOWS=no ;;
5785 if test "$with_x11" = "yes"; then
5786 { test "$extra_verbose" = "yes" && cat << \EOF
5787 Defining HAVE_X_WINDOWS
5789 cat >> confdefs.h <<\EOF
5790 #define HAVE_X_WINDOWS 1
5794 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5795 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5797 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5798 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5799 if test -d "$lib_dir" -a -d "$inc_dir"; then
5800 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5801 x_libraries="$lib_dir $x_libraries"
5802 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5804 case "$x_includes" in "$inc_dir"* ) ;; *)
5805 x_includes="$inc_dir $x_includes"
5806 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5811 for rel in "X11R6" "X11R5" "X11R4"; do
5812 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5813 if test -d "$lib_dir" -a -d "$inc_dir"; then
5814 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5815 x_libraries="$x_libraries $lib_dir"
5816 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5818 case "$x_includes" in "$inc_dir"* ) ;; *)
5819 x_includes="$x_includes $inc_dir"
5820 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5826 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
5829 ld_switch_x_site="$X_LIBS"
5832 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5833 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5834 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5836 runpath="" runpath_dirs=""
5837 if test -n "$LD_RUN_PATH"; then
5838 runpath="$LD_RUN_PATH"
5839 elif test "$GCC" = "yes"; then
5840 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5841 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5842 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5843 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5844 case "$arg" in P,* | -L* | -R* )
5845 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5847 xe_runpath_dir="$dir"
5848 test "$xe_runpath_dir" != "/lib" -a \
5849 "$xe_runpath_dir" != "/usr/lib" -a \
5850 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5851 eval "$xe_add_unique_runpath_dir"
5856 ld_switch_run="$ld_switch_run_save"
5859 for arg in $ld_switch_site $ld_switch_x_site; do
5860 case "$arg" in -L*) {
5861 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5862 test "$xe_runpath_dir" != "/lib" -a \
5863 "$xe_runpath_dir" != "/usr/lib" -a \
5864 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5865 eval "$xe_add_unique_runpath_dir"
5868 if test "$opsys $need_motif" = "sol2 yes"; then
5869 xe_runpath_dir="/opt/SUNWdt/lib";
5870 eval "$xe_add_unique_runpath_dir";
5873 if test -n "$runpath"; then
5874 ld_switch_run="${dash_r}${runpath}"
5876 if test "$GCC" = "yes"; then
5877 set x $ld_switch_run; shift; ld_switch_run=""
5878 while test -n "$1"; do
5880 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5881 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5883 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5888 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5893 if test "$extra_verbose" = "yes"; then
5894 echo; echo "X11 compilation variables:"
5895 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5900 if test "$x_includes" != NONE; then
5901 for i in $x_includes; do
5902 if test -d "$i/bitmaps"; then
5903 bitmapdirs="$i/bitmaps:$bitmapdirs"
5905 if test -d "$i/X11/bitmaps"; then
5906 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5909 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5911 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5912 Defining BITMAPDIR = "$bitmapdirs"
5914 cat >> confdefs.h <<EOF
5915 #define BITMAPDIR "$bitmapdirs"
5920 echo "checking for X defines extracted by xmkmf" 1>&6
5921 echo "configure:5922: checking for X defines extracted by xmkmf" >&5
5923 if mkdir conftestdir; then
5925 cat > Imakefile <<'EOF'
5927 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5929 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5931 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5935 for word in $xmkmf_defines; do
5936 case "$word" in -D* )
5937 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
5939 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
5942 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5943 if test "$val" = "1"
5944 then { test "$extra_verbose" = "yes" && cat << EOF
5947 cat >> confdefs.h <<EOF
5952 else { test "$extra_verbose" = "yes" && cat << EOF
5953 Defining $sym = $val
5955 cat >> confdefs.h <<EOF
5966 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5967 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5968 echo "configure:5969: checking for X11/Intrinsic.h" >&5
5970 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 #include <X11/Intrinsic.h>
5975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5976 { (eval echo configure:5977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5978 if test -z "$ac_err"; then
5980 eval "ac_cv_header_$ac_safe=yes"
5983 echo "configure: failed program was:" >&5
5984 cat conftest.$ac_ext >&5
5986 eval "ac_cv_header_$ac_safe=no"
5989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5990 echo "$ac_t""yes" 1>&6
5993 echo "$ac_t""no" 1>&6
5994 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5999 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6000 echo "configure:6001: checking for XOpenDisplay in -lX11" >&5
6001 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6003 xe_check_libs=" -lX11 "
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6007 /* Override any gcc2 internal prototype to avoid an error. */
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6010 char XOpenDisplay();
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6018 eval "ac_cv_lib_$ac_lib_var=yes"
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6023 eval "ac_cv_lib_$ac_lib_var=no"
6028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6029 echo "$ac_t""yes" 1>&6
6032 echo "$ac_t""no" 1>&6
6036 if test "$have_lib_x11" != "yes"; then
6038 xe_msg_checking="for XGetFontProperty in -lX11"
6039 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6040 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6041 echo "configure:6042: checking "$xe_msg_checking"" >&5
6042 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6044 xe_check_libs=" -lX11 -b i486-linuxaout"
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051 char XGetFontProperty();
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6059 eval "ac_cv_lib_$ac_lib_var=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6064 eval "ac_cv_lib_$ac_lib_var=no"
6069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6070 echo "$ac_t""yes" 1>&6
6071 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6073 echo "$ac_t""no" 1>&6
6074 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6080 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6083 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6084 echo "configure:6085: checking for XShapeSelectInput in -lXext" >&5
6085 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6087 xe_check_libs=" -lXext "
6088 cat > conftest.$ac_ext <<EOF
6089 #line 6090 "configure"
6090 #include "confdefs.h"
6091 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6094 char XShapeSelectInput();
6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6102 eval "ac_cv_lib_$ac_lib_var=yes"
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6107 eval "ac_cv_lib_$ac_lib_var=no"
6112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6113 echo "$ac_t""yes" 1>&6
6114 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6116 echo "$ac_t""no" 1>&6
6122 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6123 echo "configure:6124: checking for XtOpenDisplay in -lXt" >&5
6124 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6126 xe_check_libs=" -lXt "
6127 cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6133 char XtOpenDisplay();
6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6141 eval "ac_cv_lib_$ac_lib_var=yes"
6143 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6146 eval "ac_cv_lib_$ac_lib_var=no"
6151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6152 echo "$ac_t""yes" 1>&6
6153 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6155 echo "$ac_t""no" 1>&6
6156 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6161 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6162 echo "configure:6163: checking the version of X11 being used" >&5
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6166 #include <X11/Intrinsic.h>
6167 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6171 ./conftest foobar; x11_release=$?
6174 echo "configure: failed program was:" >&5
6175 cat conftest.$ac_ext >&5
6180 echo "$ac_t""R${x11_release}" 1>&6
6181 { test "$extra_verbose" = "yes" && cat << EOF
6182 Defining THIS_IS_X11R${x11_release}
6184 cat >> confdefs.h <<EOF
6185 #define THIS_IS_X11R${x11_release} 1
6190 if test "${x11_release}" = "4"; then
6191 case "$with_widgets" in
6192 "" | "no") with_widgets=no ;;
6193 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6197 for ac_func in XConvertCase
6199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6200 echo "configure:6201: checking for $ac_func" >&5
6202 cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6205 /* System header to define __stub macros and hopefully few prototypes,
6206 which can conflict with char $ac_func(); below. */
6208 /* Override any gcc2 internal prototype to avoid an error. */
6209 /* We use char because int might match the return type of a gcc2
6210 builtin and then its argument prototype would still apply. */
6215 /* The GNU C library defines this for functions which it implements
6216 to always fail with ENOSYS. Some functions are actually named
6217 something starting with __ and the normal name is an alias. */
6218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6226 if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228 eval "ac_cv_func_$ac_func=yes"
6230 echo "configure: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 eval "ac_cv_func_$ac_func=no"
6237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6240 { test "$extra_verbose" = "yes" && cat << EOF
6241 Defining $ac_tr_func
6243 cat >> confdefs.h <<EOF
6244 #define $ac_tr_func 1
6249 echo "$ac_t""no" 1>&6
6254 for ac_hdr in X11/Xlocale.h
6256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_hdr" >&5
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6266 { (eval echo configure:6267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6268 if test -z "$ac_err"; then
6270 eval "ac_cv_header_$ac_safe=yes"
6273 echo "configure: failed program was:" >&5
6274 cat conftest.$ac_ext >&5
6276 eval "ac_cv_header_$ac_safe=no"
6279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6280 echo "$ac_t""yes" 1>&6
6281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6282 { test "$extra_verbose" = "yes" && cat << EOF
6285 cat >> confdefs.h <<EOF
6286 #define $ac_tr_hdr 1
6291 echo "$ac_t""no" 1>&6
6296 for ac_func in XRegisterIMInstantiateCallback
6298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_func" >&5
6301 cat > conftest.$ac_ext <<EOF
6302 #line 6303 "configure"
6303 #include "confdefs.h"
6304 /* System header to define __stub macros and hopefully few prototypes,
6305 which can conflict with char $ac_func(); below. */
6307 /* Override any gcc2 internal prototype to avoid an error. */
6308 /* We use char because int might match the return type of a gcc2
6309 builtin and then its argument prototype would still apply. */
6314 /* The GNU C library defines this for functions which it implements
6315 to always fail with ENOSYS. Some functions are actually named
6316 something starting with __ and the normal name is an alias. */
6317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6327 eval "ac_cv_func_$ac_func=yes"
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6332 eval "ac_cv_func_$ac_func=no"
6336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6337 echo "$ac_t""yes" 1>&6
6338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6339 { test "$extra_verbose" = "yes" && cat << EOF
6340 Defining $ac_tr_func
6342 cat >> confdefs.h <<EOF
6343 #define $ac_tr_func 1
6348 echo "$ac_t""no" 1>&6
6352 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6353 echo "configure:6354: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6354 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6358 #define NeedFunctionPrototypes 1
6359 #include <X11/Xlib.h>
6360 extern Bool XRegisterIMInstantiateCallback(
6361 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6367 if { (eval echo configure:6368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6369 echo "$ac_t""yes" 1>&6
6371 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6374 echo "$ac_t""no" 1>&6
6375 { test "$extra_verbose" = "yes" && cat << \EOF
6376 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6378 cat >> confdefs.h <<\EOF
6379 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6386 test -z "$with_xmu" && {
6387 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6388 echo "configure:6389: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6389 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6391 xe_check_libs=" -lXmu "
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6398 char XmuReadBitmapDataFromFile();
6401 XmuReadBitmapDataFromFile()
6404 if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6406 eval "ac_cv_lib_$ac_lib_var=yes"
6408 echo "configure: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6411 eval "ac_cv_lib_$ac_lib_var=no"
6416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6417 echo "$ac_t""yes" 1>&6
6420 echo "$ac_t""no" 1>&6
6425 if test "$with_xmu" = "no"; then
6426 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6427 echo " xemacs will be linked with \"xmu.o\""
6430 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6431 { test "$extra_verbose" = "yes" && cat << \EOF
6434 cat >> confdefs.h <<\EOF
6442 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6443 echo "configure:6444: checking for main in -lXbsd" >&5
6444 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6446 xe_check_libs=" -lXbsd "
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6455 if { (eval echo configure:6456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6457 eval "ac_cv_lib_$ac_lib_var=yes"
6459 echo "configure: failed program was:" >&5
6460 cat conftest.$ac_ext >&5
6462 eval "ac_cv_lib_$ac_lib_var=no"
6467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6468 echo "$ac_t""yes" 1>&6
6469 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6471 echo "$ac_t""no" 1>&6
6476 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6477 if test "$GCC" = "yes"; then
6478 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6479 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6482 "xlc" ) CC="xlc_r" ;;
6483 "xlC" ) CC="xlC_r" ;;
6490 if test "$with_msw" != "no"; then
6491 echo "checking for MS-Windows" 1>&6
6492 echo "configure:6493: checking for MS-Windows" >&5
6494 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6495 echo "configure:6496: checking for main in -lgdi32" >&5
6496 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6498 xe_check_libs=" -lgdi32 "
6499 cat > conftest.$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 eval "ac_cv_lib_$ac_lib_var=yes"
6511 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6514 eval "ac_cv_lib_$ac_lib_var=no"
6519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6520 echo "$ac_t""yes" 1>&6
6523 echo "$ac_t""no" 1>&6
6527 if test "$with_msw" = "yes"; then
6528 { test "$extra_verbose" = "yes" && cat << \EOF
6529 Defining HAVE_MS_WINDOWS
6531 cat >> confdefs.h <<\EOF
6532 #define HAVE_MS_WINDOWS 1
6536 install_pp="$blddir/lib-src/installexe.sh"
6537 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
6538 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6539 if test "$window_system" != x11; then
6541 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6542 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6543 echo " xemacs will be linked with \"scrollbar-msw.o\""
6545 test "$with_menubars" != "no" && with_menubars=msw \
6546 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6547 echo " xemacs will be linked with \"menubar-msw.o\""
6549 test "$with_toolbars" != "no" && with_toolbars=msw \
6550 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6551 echo " xemacs will be linked with \"toolbar-msw.o\""
6553 test "$with_dialogs" != "no" && with_dialogs=msw \
6554 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6555 echo " xemacs will be linked with \"dialog-msw.o\""
6557 test "$with_widgets" != "no" && with_widgets=msw
6559 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6560 echo " xemacs will be linked with \"scrollbar-msw.o\""
6562 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6563 echo " xemacs will be linked with \"menubar-msw.o\""
6565 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6566 echo " xemacs will be linked with \"toolbar-msw.o\""
6568 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6569 echo " xemacs will be linked with \"dialog-msw.o\""
6572 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6576 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6580 { test "$extra_verbose" = "yes" && cat << \EOF
6581 Defining HAVE_MSG_SELECT
6583 cat >> confdefs.h <<\EOF
6584 #define HAVE_MSG_SELECT 1
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6594 with_file_coding=yes
6595 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
6596 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\""
6603 test -z "$window_system" && window_system="none"
6605 if test "$window_system" = "none"; then
6606 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6608 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6609 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6611 eval "with_${feature}=no"
6614 test -z "$with_toolbars" && with_toolbars=yes
6617 if test "$with_msw" != "yes"; then
6618 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6620 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6621 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6623 eval "with_${feature}=no"
6629 if test "$with_x11" != "yes"; then
6630 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6632 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6633 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6635 eval "with_${feature}=no"
6639 if test "$with_x11" = "yes"; then
6640 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6641 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6642 echo "configure:6643: checking for X11/extensions/shape.h" >&5
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 #include <X11/extensions/shape.h>
6649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6650 { (eval echo configure:6651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6652 if test -z "$ac_err"; then
6654 eval "ac_cv_header_$ac_safe=yes"
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6660 eval "ac_cv_header_$ac_safe=no"
6663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6664 echo "$ac_t""yes" 1>&6
6666 { test "$extra_verbose" = "yes" && cat << \EOF
6667 Defining HAVE_BALLOON_HELP
6669 cat >> confdefs.h <<\EOF
6670 #define HAVE_BALLOON_HELP 1
6674 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
6675 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
6678 echo "$ac_t""no" 1>&6
6685 case "$window_system" in
6686 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6687 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6688 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6691 case "$x_libraries" in *X11R4* )
6692 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6693 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6696 echo "checking for WM_COMMAND option" 1>&6
6697 echo "configure:6698: checking for WM_COMMAND option" >&5;
6698 if test "$with_wmcommand" != "no"; then
6699 { test "$extra_verbose" = "yes" && cat << \EOF
6700 Defining HAVE_WMCOMMAND
6702 cat >> confdefs.h <<\EOF
6703 #define HAVE_WMCOMMAND 1
6709 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6710 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6711 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6712 echo "configure:6713: checking for X11/Xauth.h" >&5
6714 cat > conftest.$ac_ext <<EOF
6715 #line 6716 "configure"
6716 #include "confdefs.h"
6717 #include <X11/Xauth.h>
6719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6720 { (eval echo configure:6721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6722 if test -z "$ac_err"; then
6724 eval "ac_cv_header_$ac_safe=yes"
6727 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6730 eval "ac_cv_header_$ac_safe=no"
6733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6734 echo "$ac_t""yes" 1>&6
6737 echo "$ac_t""no" 1>&6
6741 test -z "$with_xauth" && {
6742 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6743 echo "configure:6744: checking for XauGetAuthByAddr in -lXau" >&5
6744 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6746 xe_check_libs=" -lXau "
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6753 char XauGetAuthByAddr();
6759 if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761 eval "ac_cv_lib_$ac_lib_var=yes"
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6766 eval "ac_cv_lib_$ac_lib_var=no"
6771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6772 echo "$ac_t""yes" 1>&6
6775 echo "$ac_t""no" 1>&6
6780 test -z "$with_xauth" && with_xauth=yes
6781 if test "$with_xauth" = "yes"; then
6782 { test "$extra_verbose" = "yes" && cat << \EOF
6785 cat >> confdefs.h <<\EOF
6786 #define HAVE_XAUTH 1
6792 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
6800 if test "$with_tooltalk" != "no" ; then
6801 for dir in "" "Tt/" "desktop/" ; do
6802 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6803 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6804 echo "configure:6805: checking for ${dir}tt_c.h" >&5
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 #include <${dir}tt_c.h>
6811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6812 { (eval echo configure:6813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6814 if test -z "$ac_err"; then
6816 eval "ac_cv_header_$ac_safe=yes"
6819 echo "configure: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 eval "ac_cv_header_$ac_safe=no"
6825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 tt_c_h_file="${dir}tt_c.h"; break
6829 echo "$ac_t""no" 1>&6
6833 if test -z "$tt_c_h_file"; then
6834 if test "$with_tooltalk" = "yes"; then
6835 (echo "$progname: Usage error:"
6836 echo " " "Unable to find required tooltalk header files."
6837 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6842 if test "$with_tooltalk" != "no" ; then
6843 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6845 xe_msg_checking="for tt_message_create in -ltt"
6846 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6847 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6848 echo "configure:6849: checking "$xe_msg_checking"" >&5
6849 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6851 xe_check_libs=" -ltt $extra_libs"
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* Override any gcc2 internal prototype to avoid an error. */
6856 /* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6858 char tt_message_create();
6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6866 eval "ac_cv_lib_$ac_lib_var=yes"
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6871 eval "ac_cv_lib_$ac_lib_var=no"
6876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6877 echo "$ac_t""yes" 1>&6
6878 tt_libs="-ltt $extra_libs"; break
6880 echo "$ac_t""no" 1>&6
6886 if test -z "$tt_libs"; then
6887 if test "$with_tooltalk" = "yes"; then
6888 (echo "$progname: Usage error:"
6889 echo " " "Unable to find required tooltalk libraries."
6890 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6895 test -z "$with_tooltalk" && with_tooltalk=yes
6896 if test "$with_tooltalk" = "yes"; then
6897 { test "$extra_verbose" = "yes" && cat << \EOF
6900 cat >> confdefs.h <<\EOF
6905 { test "$extra_verbose" = "yes" && cat << EOF
6906 Defining TT_C_H_FILE = "$tt_c_h_file"
6908 cat >> confdefs.h <<EOF
6909 #define TT_C_H_FILE "$tt_c_h_file"
6913 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6914 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6915 echo " xemacs will be linked with \"tooltalk.o\""
6919 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6920 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6921 echo "configure:6922: checking for Dt/Dt.h" >&5
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6929 { (eval echo configure:6930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6931 if test -z "$ac_err"; then
6933 eval "ac_cv_header_$ac_safe=yes"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6939 eval "ac_cv_header_$ac_safe=no"
6942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6943 echo "$ac_t""yes" 1>&6
6946 echo "$ac_t""no" 1>&6
6950 test -z "$with_cde" && {
6951 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6952 echo "configure:6953: checking for DtDndDragStart in -lDtSvc" >&5
6953 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6955 xe_check_libs=" -lDtSvc "
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 /* Override any gcc2 internal prototype to avoid an error. */
6960 /* We use char because int might match the return type of a gcc2
6961 builtin and then its argument prototype would still apply. */
6962 char DtDndDragStart();
6968 if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6970 eval "ac_cv_lib_$ac_lib_var=yes"
6972 echo "configure: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6975 eval "ac_cv_lib_$ac_lib_var=no"
6980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6981 echo "$ac_t""yes" 1>&6
6984 echo "$ac_t""no" 1>&6
6989 test -z "$with_cde" && with_cde=yes
6990 if test "$with_dragndrop" = no; then
6991 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6994 if test "$with_cde" = "yes" ; then
6995 { test "$extra_verbose" = "yes" && cat << \EOF
6998 cat >> confdefs.h <<\EOF
7003 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7004 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7005 with_tooltalk=yes # CDE requires Tooltalk
7006 need_motif=yes # CDE requires Motif
7009 test "$window_system" != "x11" && with_offix=no
7010 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7011 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7014 if test "$with_dragndrop" = no; then
7015 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7018 if test "$with_cde" = yes; then
7019 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7022 test -z "$with_offix" && with_offix=no
7023 if test "$with_offix" = "yes"; then
7024 { test "$extra_verbose" = "yes" && cat << \EOF
7025 Defining HAVE_OFFIX_DND
7027 cat >> confdefs.h <<\EOF
7028 #define HAVE_OFFIX_DND 1
7032 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7033 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7036 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7037 echo "configure:7038: checking if drag and drop API is needed" >&5
7038 if test "$with_dragndrop" != "no" ; then
7039 if test -n "$dragndrop_proto" ; then
7041 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7042 { test "$extra_verbose" = "yes" && cat << \EOF
7043 Defining HAVE_DRAGNDROP
7045 cat >> confdefs.h <<\EOF
7046 #define HAVE_DRAGNDROP 1
7050 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7053 echo "$ac_t""no" 1>&6
7057 echo "checking for LDAP" 1>&6
7058 echo "configure:7059: checking for LDAP" >&5
7059 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7060 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7061 echo "configure:7062: checking for ldap.h" >&5
7063 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7069 { (eval echo configure:7070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7071 if test -z "$ac_err"; then
7073 eval "ac_cv_header_$ac_safe=yes"
7076 echo "configure: failed program was:" >&5
7077 cat conftest.$ac_ext >&5
7079 eval "ac_cv_header_$ac_safe=no"
7082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7083 echo "$ac_t""yes" 1>&6
7086 echo "$ac_t""no" 1>&6
7090 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7091 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7092 echo "configure:7093: checking for lber.h" >&5
7094 cat > conftest.$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7100 { (eval echo configure:7101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7102 if test -z "$ac_err"; then
7104 eval "ac_cv_header_$ac_safe=yes"
7107 echo "configure: failed program was:" >&5
7108 cat conftest.$ac_ext >&5
7110 eval "ac_cv_header_$ac_safe=no"
7113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7114 echo "$ac_t""yes" 1>&6
7117 echo "$ac_t""no" 1>&6
7121 if test "$with_ldap" != "no"; then
7123 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7124 echo "configure:7125: checking for ldap_search in -lldap" >&5
7125 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7127 xe_check_libs=" -lldap "
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7131 /* Override any gcc2 internal prototype to avoid an error. */
7132 /* We use char because int might match the return type of a gcc2
7133 builtin and then its argument prototype would still apply. */
7140 if { (eval echo configure:7141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7142 eval "ac_cv_lib_$ac_lib_var=yes"
7144 echo "configure: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 eval "ac_cv_lib_$ac_lib_var=no"
7152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7153 echo "$ac_t""yes" 1>&6
7154 with_ldap_nolber=yes
7156 echo "$ac_t""no" 1>&6
7161 test "$with_ldap_nolber" = "no" && {
7162 xe_msg_checking="for ldap_open in -lldap"
7163 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7164 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7165 echo "configure:7166: checking "$xe_msg_checking"" >&5
7166 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7168 xe_check_libs=" -lldap -llber"
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* Override any gcc2 internal prototype to avoid an error. */
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7181 if { (eval echo configure:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7183 eval "ac_cv_lib_$ac_lib_var=yes"
7185 echo "configure: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7188 eval "ac_cv_lib_$ac_lib_var=no"
7193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7194 echo "$ac_t""yes" 1>&6
7197 echo "$ac_t""no" 1>&6
7202 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7203 xe_msg_checking="for ldap_open in -lldap"
7204 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7205 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7206 echo "configure:7207: checking "$xe_msg_checking"" >&5
7207 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7209 xe_check_libs=" -lldap -llber -lkrb"
7210 cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7213 /* Override any gcc2 internal prototype to avoid an error. */
7214 /* We use char because int might match the return type of a gcc2
7215 builtin and then its argument prototype would still apply. */
7222 if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7224 eval "ac_cv_lib_$ac_lib_var=yes"
7226 echo "configure: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7229 eval "ac_cv_lib_$ac_lib_var=no"
7234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7235 echo "$ac_t""yes" 1>&6
7238 echo "$ac_t""no" 1>&6
7243 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7244 xe_msg_checking="for ldap_open in -lldap"
7245 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7246 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7247 echo "configure:7248: checking "$xe_msg_checking"" >&5
7248 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7250 xe_check_libs=" -lldap -llber -lkrb -ldes"
7251 cat > conftest.$ac_ext <<EOF
7252 #line 7253 "configure"
7253 #include "confdefs.h"
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7263 if { (eval echo configure:7264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265 eval "ac_cv_lib_$ac_lib_var=yes"
7267 echo "configure: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7270 eval "ac_cv_lib_$ac_lib_var=no"
7275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7276 echo "$ac_t""yes" 1>&6
7277 with_ldap_krbdes=yes
7279 echo "$ac_t""no" 1>&6
7284 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
7286 if test "$with_ldap" = "yes"; then
7287 { test "$extra_verbose" = "yes" && cat << \EOF
7290 cat >> confdefs.h <<\EOF
7295 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7296 echo " xemacs will be linked with \"eldap.o\""
7298 if test "$with_ldap_nolber" = "yes" ; then
7299 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7301 if test "$with_ldap_krb" = "yes" ; then
7302 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7304 if test "$with_ldap_krbdes" = "yes" ; then
7305 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7306 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7308 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7309 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7311 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7314 echo "configure:7315: checking for $ac_func" >&5
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7319 /* System header to define __stub macros and hopefully few prototypes,
7320 which can conflict with char $ac_func(); below. */
7322 /* Override any gcc2 internal prototype to avoid an error. */
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7329 /* The GNU C library defines this for functions which it implements
7330 to always fail with ENOSYS. Some functions are actually named
7331 something starting with __ and the normal name is an alias. */
7332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7340 if { (eval echo configure:7341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7342 eval "ac_cv_func_$ac_func=yes"
7344 echo "configure: failed program was:" >&5
7345 cat conftest.$ac_ext >&5
7347 eval "ac_cv_func_$ac_func=no"
7351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7352 echo "$ac_t""yes" 1>&6
7353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7354 { test "$extra_verbose" = "yes" && cat << EOF
7355 Defining $ac_tr_func
7357 cat >> confdefs.h <<EOF
7358 #define $ac_tr_func 1
7363 echo "$ac_t""no" 1>&6
7369 if test "$with_postgresql" != "no"; then
7370 echo "checking for PostgreSQL" 1>&6
7371 echo "configure:7372: checking for PostgreSQL" >&5
7373 for header_dir in "" "pgsql/" "postgresql/"; do
7374 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7375 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7376 echo "configure:7377: checking for ${header_dir}libpq-fe.h" >&5
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7381 #include <${header_dir}libpq-fe.h>
7383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7384 { (eval echo configure:7385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7386 if test -z "$ac_err"; then
7388 eval "ac_cv_header_$ac_safe=yes"
7391 echo "configure: failed program was:" >&5
7392 cat conftest.$ac_ext >&5
7394 eval "ac_cv_header_$ac_safe=no"
7397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7398 echo "$ac_t""yes" 1>&6
7399 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7401 echo "$ac_t""no" 1>&6
7406 test -n "$libpq_fe_h_file" && {
7407 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7408 echo "configure:7409: checking for PQconnectdb in -lpq" >&5
7409 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7411 xe_check_libs=" -lpq "
7412 cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7415 /* Override any gcc2 internal prototype to avoid an error. */
7416 /* We use char because int might match the return type of a gcc2
7417 builtin and then its argument prototype would still apply. */
7424 if { (eval echo configure:7425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7426 eval "ac_cv_lib_$ac_lib_var=yes"
7428 echo "configure: failed program was:" >&5
7429 cat conftest.$ac_ext >&5
7431 eval "ac_cv_lib_$ac_lib_var=no"
7436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7437 echo "$ac_t""yes" 1>&6
7440 echo "$ac_t""no" 1>&6
7445 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7447 { test "$extra_verbose" = "yes" && cat << \EOF
7448 Defining HAVE_POSTGRESQL
7450 cat >> confdefs.h <<\EOF
7451 #define HAVE_POSTGRESQL 1
7456 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7457 echo "configure:7458: checking for PQconnectStart in -lpq" >&5
7458 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7460 xe_check_libs=" -lpq "
7461 cat > conftest.$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7464 /* Override any gcc2 internal prototype to avoid an error. */
7465 /* We use char because int might match the return type of a gcc2
7466 builtin and then its argument prototype would still apply. */
7467 char PQconnectStart();
7473 if { (eval echo configure:7474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7475 eval "ac_cv_lib_$ac_lib_var=yes"
7477 echo "configure: failed program was:" >&5
7478 cat conftest.$ac_ext >&5
7480 eval "ac_cv_lib_$ac_lib_var=no"
7485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7486 echo "$ac_t""yes" 1>&6
7487 with_postgresqlv7=yes;
7488 { test "$extra_verbose" = "yes" && cat << \EOF
7489 Defining HAVE_POSTGRESQLV7
7491 cat >> confdefs.h <<\EOF
7492 #define HAVE_POSTGRESQLV7 1
7497 echo "$ac_t""no" 1>&6
7501 { test "$extra_verbose" = "yes" && cat << EOF
7502 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7504 cat >> confdefs.h <<EOF
7505 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7509 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7510 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7511 echo " xemacs will be linked with \"postgresql.o\""
7513 elif test "$with_postgresql" = "yes"; then
7514 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7519 if test "$window_system" != "none"; then
7520 echo "checking for graphics libraries" 1>&6
7521 echo "configure:7522: checking for graphics libraries" >&5
7524 if test -z "$with_xpm"; then
7525 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7526 echo "configure:7527: checking for Xpm - no older than 3.4f" >&5
7528 cat > conftest.$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7532 #include <X11/xpm.h>
7533 int main(int c, char **v) {
7535 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7536 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7540 ./conftest dummy_arg; xpm_status=$?;
7541 if test "$xpm_status" = "0"; then
7545 if test "$xpm_status" = "1"; then
7546 xpm_problem="Xpm library version and header file version don't match!"
7547 elif test "$xpm_status" = "2"; then
7548 xpm_problem="Xpm library version is too old!"
7550 xpm_problem="Internal xpm detection logic error!"
7553 *** WARNING *** $xpm_problem
7554 I'm not touching that with a 10-foot pole!
7555 If you really want to use the installed version of Xpm, rerun
7556 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7560 echo "configure: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7567 echo "$ac_t""$with_xpm" 1>&6
7569 if test "$with_xpm" = "yes"; then
7570 { test "$extra_verbose" = "yes" && cat << \EOF
7573 cat >> confdefs.h <<\EOF
7578 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7579 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7580 echo "configure:7581: checking for \"FOR_MSW\" xpm" >&5
7582 cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7587 XpmCreatePixmapFromData()
7590 if { (eval echo configure:7591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7594 echo "configure: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7601 echo "$ac_t""$xpm_for_msw" 1>&6
7602 if test "$xpm_for_msw" = "yes"; then
7603 { test "$extra_verbose" = "yes" && cat << \EOF
7606 cat >> confdefs.h <<\EOF
7614 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7615 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7616 echo "configure:7617: checking for compface.h" >&5
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621 #include <compface.h>
7623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7624 { (eval echo configure:7625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7626 if test -z "$ac_err"; then
7628 eval "ac_cv_header_$ac_safe=yes"
7631 echo "configure: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7634 eval "ac_cv_header_$ac_safe=no"
7637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7638 echo "$ac_t""yes" 1>&6
7641 echo "$ac_t""no" 1>&6
7645 test -z "$with_xface" && {
7646 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7647 echo "configure:7648: checking for UnGenFace in -lcompface" >&5
7648 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7650 xe_check_libs=" -lcompface "
7651 cat > conftest.$ac_ext <<EOF
7652 #line 7653 "configure"
7653 #include "confdefs.h"
7654 /* Override any gcc2 internal prototype to avoid an error. */
7655 /* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7663 if { (eval echo configure:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7665 eval "ac_cv_lib_$ac_lib_var=yes"
7667 echo "configure: failed program was:" >&5
7668 cat conftest.$ac_ext >&5
7670 eval "ac_cv_lib_$ac_lib_var=no"
7675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7676 echo "$ac_t""yes" 1>&6
7679 echo "$ac_t""no" 1>&6
7684 test -z "$with_xface" && with_xface=yes
7685 if test "$with_xface" = "yes"; then
7686 { test "$extra_verbose" = "yes" && cat << \EOF
7689 cat >> confdefs.h <<\EOF
7690 #define HAVE_XFACE 1
7694 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7697 if test "$with_gif" != "no"; then
7699 { test "$extra_verbose" = "yes" && cat << \EOF
7702 cat >> confdefs.h <<\EOF
7707 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7708 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7712 if test "$with_png $with_tiff" != "no no"; then
7714 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7715 echo "configure:7716: checking for inflate in -lc" >&5
7716 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7718 xe_check_libs=" -lc "
7719 cat > conftest.$ac_ext <<EOF
7720 #line 7721 "configure"
7721 #include "confdefs.h"
7722 /* Override any gcc2 internal prototype to avoid an error. */
7723 /* We use char because int might match the return type of a gcc2
7724 builtin and then its argument prototype would still apply. */
7731 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7733 eval "ac_cv_lib_$ac_lib_var=yes"
7735 echo "configure: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7738 eval "ac_cv_lib_$ac_lib_var=no"
7743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7744 echo "$ac_t""yes" 1>&6
7747 echo "$ac_t""no" 1>&6
7749 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7750 echo "configure:7751: checking for inflate in -lz" >&5
7751 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7753 xe_check_libs=" -lz "
7754 cat > conftest.$ac_ext <<EOF
7755 #line 7756 "configure"
7756 #include "confdefs.h"
7757 /* Override any gcc2 internal prototype to avoid an error. */
7758 /* We use char because int might match the return type of a gcc2
7759 builtin and then its argument prototype would still apply. */
7766 if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7768 eval "ac_cv_lib_$ac_lib_var=yes"
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7773 eval "ac_cv_lib_$ac_lib_var=no"
7778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7779 echo "$ac_t""yes" 1>&6
7780 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7782 echo "$ac_t""no" 1>&6
7784 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7785 echo "configure:7786: checking for inflate in -lgz" >&5
7786 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7788 xe_check_libs=" -lgz "
7789 cat > conftest.$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7792 /* Override any gcc2 internal prototype to avoid an error. */
7793 /* We use char because int might match the return type of a gcc2
7794 builtin and then its argument prototype would still apply. */
7801 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7803 eval "ac_cv_lib_$ac_lib_var=yes"
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7808 eval "ac_cv_lib_$ac_lib_var=no"
7813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7814 echo "$ac_t""yes" 1>&6
7815 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7817 echo "$ac_t""no" 1>&6
7829 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7830 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7831 echo "configure:7832: checking for jpeglib.h" >&5
7833 cat > conftest.$ac_ext <<EOF
7834 #line 7835 "configure"
7835 #include "confdefs.h"
7836 #include <jpeglib.h>
7838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7839 { (eval echo configure:7840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7841 if test -z "$ac_err"; then
7843 eval "ac_cv_header_$ac_safe=yes"
7846 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7849 eval "ac_cv_header_$ac_safe=no"
7852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7853 echo "$ac_t""yes" 1>&6
7856 echo "$ac_t""no" 1>&6
7860 test -z "$with_jpeg" && {
7861 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7862 echo "configure:7863: checking for jpeg_destroy_decompress in -ljpeg" >&5
7863 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7865 xe_check_libs=" -ljpeg "
7866 cat > conftest.$ac_ext <<EOF
7867 #line 7868 "configure"
7868 #include "confdefs.h"
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7872 char jpeg_destroy_decompress();
7875 jpeg_destroy_decompress()
7878 if { (eval echo configure:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7880 eval "ac_cv_lib_$ac_lib_var=yes"
7882 echo "configure: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7885 eval "ac_cv_lib_$ac_lib_var=no"
7890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7891 echo "$ac_t""yes" 1>&6
7894 echo "$ac_t""no" 1>&6
7899 test -z "$with_jpeg" && with_jpeg=yes
7900 if test "$with_jpeg" = "yes"; then
7901 { test "$extra_verbose" = "yes" && cat << \EOF
7904 cat >> confdefs.h <<\EOF
7909 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7913 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7914 echo "configure:7915: checking for pow" >&5
7916 cat > conftest.$ac_ext <<EOF
7917 #line 7918 "configure"
7918 #include "confdefs.h"
7919 /* System header to define __stub macros and hopefully few prototypes,
7920 which can conflict with char pow(); below. */
7922 /* Override any gcc2 internal prototype to avoid an error. */
7923 /* We use char because int might match the return type of a gcc2
7924 builtin and then its argument prototype would still apply. */
7929 /* The GNU C library defines this for functions which it implements
7930 to always fail with ENOSYS. Some functions are actually named
7931 something starting with __ and the normal name is an alias. */
7932 #if defined (__stub_pow) || defined (__stub___pow)
7940 if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7942 eval "ac_cv_func_pow=yes"
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7947 eval "ac_cv_func_pow=no"
7951 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7952 echo "$ac_t""yes" 1>&6
7955 echo "$ac_t""no" 1>&6
7959 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7960 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7961 echo "configure:7962: checking for png.h" >&5
7963 cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure"
7965 #include "confdefs.h"
7968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7969 { (eval echo configure:7970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7971 if test -z "$ac_err"; then
7973 eval "ac_cv_header_$ac_safe=yes"
7976 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7979 eval "ac_cv_header_$ac_safe=no"
7982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7983 echo "$ac_t""yes" 1>&6
7986 echo "$ac_t""no" 1>&6
7990 test -z "$with_png" && {
7991 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7992 echo "configure:7993: checking for png_read_image in -lpng" >&5
7993 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7995 xe_check_libs=" -lpng "
7996 cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999 /* Override any gcc2 internal prototype to avoid an error. */
8000 /* We use char because int might match the return type of a gcc2
8001 builtin and then its argument prototype would still apply. */
8002 char png_read_image();
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8010 eval "ac_cv_lib_$ac_lib_var=yes"
8012 echo "configure: failed program was:" >&5
8013 cat conftest.$ac_ext >&5
8015 eval "ac_cv_lib_$ac_lib_var=no"
8020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8021 echo "$ac_t""yes" 1>&6
8024 echo "$ac_t""no" 1>&6
8029 if test -z "$with_png"; then
8030 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8031 echo "configure:8032: checking for workable png version information" >&5
8032 xe_check_libs="-lpng -lz"
8033 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8037 int main(int c, char **v) {
8038 if (c == 1) return 0;
8039 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8040 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8044 ./conftest dummy_arg; png_status=$?;
8045 if test "$png_status" = "0"; then
8049 if test "$png_status" = "1"; then
8050 png_problem="PNG library version and header file don't match!"
8051 elif test "$png_status" = "2"; then
8052 png_problem="PNG library version too old (pre 1.0.2)!"
8055 *** WARNING *** $png_problem
8056 I'm not touching that with a 10-foot pole!
8057 If you really want to use the installed version of libPNG, rerun
8058 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8062 echo "configure: failed program was:" >&5
8063 cat conftest.$ac_ext >&5
8069 echo "$ac_t""$with_png" 1>&6
8071 if test "$with_png" = "yes"; then
8072 { test "$extra_verbose" = "yes" && cat << \EOF
8075 cat >> confdefs.h <<\EOF
8080 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8083 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8084 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8085 echo "configure:8086: checking for tiffio.h" >&5
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8093 { (eval echo configure:8094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8095 if test -z "$ac_err"; then
8097 eval "ac_cv_header_$ac_safe=yes"
8100 echo "configure: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8103 eval "ac_cv_header_$ac_safe=no"
8106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8107 echo "$ac_t""yes" 1>&6
8110 echo "$ac_t""no" 1>&6
8114 test -z "$with_tiff" && {
8115 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8116 echo "configure:8117: checking for TIFFClientOpen in -ltiff" >&5
8117 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8119 xe_check_libs=" -ltiff "
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8126 char TIFFClientOpen();
8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8134 eval "ac_cv_lib_$ac_lib_var=yes"
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8139 eval "ac_cv_lib_$ac_lib_var=no"
8144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8145 echo "$ac_t""yes" 1>&6
8148 echo "$ac_t""no" 1>&6
8153 test -z "$with_tiff" && with_tiff=yes
8154 if test "$with_tiff" = "yes"; then
8155 { test "$extra_verbose" = "yes" && cat << \EOF
8158 cat >> confdefs.h <<\EOF
8163 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8168 if test "$with_x11" = "yes"; then
8170 echo "checking for X11 graphics libraries" 1>&6
8171 echo "configure:8172: checking for X11 graphics libraries" >&5
8173 echo "checking for the Athena widgets" 1>&6
8174 echo "configure:8175: checking for the Athena widgets" >&5
8176 case "$with_athena" in
8177 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8178 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8179 "next") athena_variant=neXtaw athena_3d=yes ;;
8180 "95") athena_variant=Xaw95 athena_3d=yes ;;
8181 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8182 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8185 if test "$athena_3d" = "no"; then
8187 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8188 echo "configure:8189: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8189 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8191 xe_check_libs=" -l$athena_variant "
8192 cat > conftest.$ac_ext <<EOF
8193 #line 8194 "configure"
8194 #include "confdefs.h"
8195 /* Override any gcc2 internal prototype to avoid an error. */
8196 /* We use char because int might match the return type of a gcc2
8197 builtin and then its argument prototype would still apply. */
8198 char XawScrollbarSetThumb();
8201 XawScrollbarSetThumb()
8204 if { (eval echo configure:8205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8206 eval "ac_cv_lib_$ac_lib_var=yes"
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8211 eval "ac_cv_lib_$ac_lib_var=no"
8216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8217 echo "$ac_t""yes" 1>&6
8219 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8220 echo "configure:8221: checking for threeDClassRec in -l$athena_variant" >&5
8221 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8223 xe_check_libs=" -l$athena_variant "
8224 cat > conftest.$ac_ext <<EOF
8225 #line 8226 "configure"
8226 #include "confdefs.h"
8227 /* Override any gcc2 internal prototype to avoid an error. */
8228 /* We use char because int might match the return type of a gcc2
8229 builtin and then its argument prototype would still apply. */
8230 char threeDClassRec();
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8238 eval "ac_cv_lib_$ac_lib_var=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 eval "ac_cv_lib_$ac_lib_var=no"
8248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8249 echo "$ac_t""yes" 1>&6
8250 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8252 echo "$ac_t""no" 1>&6
8253 athena_lib=$athena_variant
8259 echo "$ac_t""no" 1>&6
8260 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8266 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8267 echo "configure:8268: checking for threeDClassRec in -l$athena_variant" >&5
8268 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8270 xe_check_libs=" -l$athena_variant "
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 /* Override any gcc2 internal prototype to avoid an error. */
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8277 char threeDClassRec();
8283 if { (eval echo configure:8284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8285 eval "ac_cv_lib_$ac_lib_var=yes"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8290 eval "ac_cv_lib_$ac_lib_var=no"
8295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8296 echo "$ac_t""yes" 1>&6
8297 athena_lib=$athena_variant
8299 echo "$ac_t""no" 1>&6
8300 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8301 echo "configure:8302: checking for threeDClassRec in -lXaw" >&5
8302 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8304 xe_check_libs=" -lXaw "
8305 cat > conftest.$ac_ext <<EOF
8306 #line 8307 "configure"
8307 #include "confdefs.h"
8308 /* Override any gcc2 internal prototype to avoid an error. */
8309 /* We use char because int might match the return type of a gcc2
8310 builtin and then its argument prototype would still apply. */
8311 char threeDClassRec();
8317 if { (eval echo configure:8318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8319 eval "ac_cv_lib_$ac_lib_var=yes"
8321 echo "configure: failed program was:" >&5
8322 cat conftest.$ac_ext >&5
8324 eval "ac_cv_lib_$ac_lib_var=no"
8329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8330 echo "$ac_t""yes" 1>&6
8332 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8335 echo "$ac_t""no" 1>&6
8336 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8345 if test "$athena_3d" = "no"; then
8346 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8347 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8348 echo "configure:8349: checking for X11/Xaw/ThreeD.h" >&5
8350 cat > conftest.$ac_ext <<EOF
8351 #line 8352 "configure"
8352 #include "confdefs.h"
8353 #include <X11/Xaw/ThreeD.h>
8355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8356 { (eval echo configure:8357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8358 if test -z "$ac_err"; then
8360 eval "ac_cv_header_$ac_safe=yes"
8363 echo "configure: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8366 eval "ac_cv_header_$ac_safe=no"
8369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8370 echo "$ac_t""yes" 1>&6
8371 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8373 echo "$ac_t""no" 1>&6
8374 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8375 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8376 echo "configure:8377: checking for X11/Xaw/XawInit.h" >&5
8378 cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 #include <X11/Xaw/XawInit.h>
8383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8384 { (eval echo configure:8385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8386 if test -z "$ac_err"; then
8388 eval "ac_cv_header_$ac_safe=yes"
8391 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8394 eval "ac_cv_header_$ac_safe=no"
8397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8398 echo "$ac_t""yes" 1>&6
8399 athena_h_path=X11/Xaw
8401 echo "$ac_t""no" 1>&6
8402 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8408 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8409 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8410 echo "configure:8411: checking for X11/$athena_variant/XawInit.h" >&5
8412 cat > conftest.$ac_ext <<EOF
8413 #line 8414 "configure"
8414 #include "confdefs.h"
8415 #include <X11/$athena_variant/XawInit.h>
8417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8418 { (eval echo configure:8419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8420 if test -z "$ac_err"; then
8422 eval "ac_cv_header_$ac_safe=yes"
8425 echo "configure: failed program was:" >&5
8426 cat conftest.$ac_ext >&5
8428 eval "ac_cv_header_$ac_safe=no"
8431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8432 echo "$ac_t""yes" 1>&6
8433 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8434 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8435 echo "configure:8436: checking for X11/$athena_variant/ThreeD.h" >&5
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 #include <X11/$athena_variant/ThreeD.h>
8442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8443 { (eval echo configure:8444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8445 if test -z "$ac_err"; then
8447 eval "ac_cv_header_$ac_safe=yes"
8450 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8453 eval "ac_cv_header_$ac_safe=no"
8456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8457 echo "$ac_t""yes" 1>&6
8458 athena_h_path=X11/$athena_variant
8460 echo "$ac_t""no" 1>&6
8464 echo "$ac_t""no" 1>&6
8468 if test -z "$athena_h_path"; then
8469 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8470 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8471 echo "configure:8472: checking for $athena_variant/XawInit.h" >&5
8473 cat > conftest.$ac_ext <<EOF
8474 #line 8475 "configure"
8475 #include "confdefs.h"
8476 #include <$athena_variant/XawInit.h>
8478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8479 { (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8481 if test -z "$ac_err"; then
8483 eval "ac_cv_header_$ac_safe=yes"
8486 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8489 eval "ac_cv_header_$ac_safe=no"
8492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8493 echo "$ac_t""yes" 1>&6
8494 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8495 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8496 echo "configure:8497: checking for $athena_variant/ThreeD.h" >&5
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 #include <$athena_variant/ThreeD.h>
8503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8504 { (eval echo configure:8505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8506 if test -z "$ac_err"; then
8508 eval "ac_cv_header_$ac_safe=yes"
8511 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8514 eval "ac_cv_header_$ac_safe=no"
8517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8518 echo "$ac_t""yes" 1>&6
8519 athena_h_path=$athena_variant
8521 echo "$ac_t""no" 1>&6
8525 echo "$ac_t""no" 1>&6
8530 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8531 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8532 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8533 echo "configure:8534: checking for X11/Xaw3d/XawInit.h" >&5
8535 cat > conftest.$ac_ext <<EOF
8536 #line 8537 "configure"
8537 #include "confdefs.h"
8538 #include <X11/Xaw3d/XawInit.h>
8540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8541 { (eval echo configure:8542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8543 if test -z "$ac_err"; then
8545 eval "ac_cv_header_$ac_safe=yes"
8548 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8551 eval "ac_cv_header_$ac_safe=no"
8554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8555 echo "$ac_t""yes" 1>&6
8556 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8557 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8558 echo "configure:8559: checking for X11/Xaw3d/ThreeD.h" >&5
8560 cat > conftest.$ac_ext <<EOF
8561 #line 8562 "configure"
8562 #include "confdefs.h"
8563 #include <X11/Xaw3d/ThreeD.h>
8565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8566 { (eval echo configure:8567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8568 if test -z "$ac_err"; then
8570 eval "ac_cv_header_$ac_safe=yes"
8573 echo "configure: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8576 eval "ac_cv_header_$ac_safe=no"
8579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8580 echo "$ac_t""yes" 1>&6
8582 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8583 athena_h_path=X11/Xaw3d
8586 echo "$ac_t""no" 1>&6
8590 echo "$ac_t""no" 1>&6
8595 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8596 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8597 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8598 echo "configure:8599: checking for Xaw3d/XawInit.h" >&5
8600 cat > conftest.$ac_ext <<EOF
8601 #line 8602 "configure"
8602 #include "confdefs.h"
8603 #include <Xaw3d/XawInit.h>
8605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8606 { (eval echo configure:8607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8608 if test -z "$ac_err"; then
8610 eval "ac_cv_header_$ac_safe=yes"
8613 echo "configure: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8616 eval "ac_cv_header_$ac_safe=no"
8619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8620 echo "$ac_t""yes" 1>&6
8621 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8622 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8623 echo "configure:8624: checking for Xaw3d/ThreeD.h" >&5
8625 cat > conftest.$ac_ext <<EOF
8626 #line 8627 "configure"
8627 #include "confdefs.h"
8628 #include <Xaw3d/ThreeD.h>
8630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8631 { (eval echo configure:8632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8633 if test -z "$ac_err"; then
8635 eval "ac_cv_header_$ac_safe=yes"
8638 echo "configure: failed program was:" >&5
8639 cat conftest.$ac_ext >&5
8641 eval "ac_cv_header_$ac_safe=no"
8644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8645 echo "$ac_t""yes" 1>&6
8647 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8651 echo "$ac_t""no" 1>&6
8655 echo "$ac_t""no" 1>&6
8660 if test -z "$athena_h_path"; then
8661 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8662 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8663 echo "configure:8664: checking for X11/Xaw/ThreeD.h" >&5
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 #include <X11/Xaw/ThreeD.h>
8670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8671 { (eval echo configure:8672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8673 if test -z "$ac_err"; then
8675 eval "ac_cv_header_$ac_safe=yes"
8678 echo "configure: failed program was:" >&5
8679 cat conftest.$ac_ext >&5
8681 eval "ac_cv_header_$ac_safe=no"
8684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8685 echo "$ac_t""yes" 1>&6
8687 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8688 athena_h_path=X11/Xaw
8691 echo "$ac_t""no" 1>&6
8692 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8698 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8704 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8705 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8706 echo "configure:8707: checking for Xm/Xm.h" >&5
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8714 { (eval echo configure:8715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8716 if test -z "$ac_err"; then
8718 eval "ac_cv_header_$ac_safe=yes"
8721 echo "configure: failed program was:" >&5
8722 cat conftest.$ac_ext >&5
8724 eval "ac_cv_header_$ac_safe=no"
8727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8728 echo "$ac_t""yes" 1>&6
8730 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8731 echo "configure:8732: checking for XmStringFree in -lXm" >&5
8732 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8734 xe_check_libs=" -lXm "
8735 cat > conftest.$ac_ext <<EOF
8736 #line 8737 "configure"
8737 #include "confdefs.h"
8738 /* Override any gcc2 internal prototype to avoid an error. */
8739 /* We use char because int might match the return type of a gcc2
8740 builtin and then its argument prototype would still apply. */
8741 char XmStringFree();
8747 if { (eval echo configure:8748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8749 eval "ac_cv_lib_$ac_lib_var=yes"
8751 echo "configure: failed program was:" >&5
8752 cat conftest.$ac_ext >&5
8754 eval "ac_cv_lib_$ac_lib_var=no"
8759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8760 echo "$ac_t""yes" 1>&6
8763 echo "$ac_t""no" 1>&6
8769 echo "$ac_t""no" 1>&6
8774 if test "$have_motif" = "yes"; then
8775 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8776 echo "configure:8777: checking for Lesstif" >&5
8777 cat > conftest.$ac_ext <<EOF
8778 #line 8779 "configure"
8779 #include "confdefs.h"
8781 #ifdef LESSTIF_VERSION
8786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8787 egrep "yes" >/dev/null 2>&1; then
8796 echo "$ac_t""$have_lesstif" 1>&6
8801 case "$with_menubars" in "" | "yes" | "athena" )
8802 with_menubars="lucid" ;;
8804 case "$with_dialogs" in "" | "yes" | "lucid" )
8805 if test "$have_motif" = "yes"; then with_dialogs="motif"
8806 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8807 else with_dialogs=no
8810 case "$with_scrollbars" in "" | "yes" )
8811 with_scrollbars="lucid" ;;
8813 case "$with_widgets" in "" | "yes" | "lucid")
8814 if test "$have_motif" = "yes"; then with_widgets="motif"
8815 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8816 else with_widgets=no
8820 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8822 case "$all_widgets" in
8824 if test "$have_xaw" != "yes"; then
8825 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8828 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8830 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8832 { test "$extra_verbose" = "yes" && cat << EOF
8833 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8835 cat >> confdefs.h <<EOF
8836 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8840 { test "$extra_verbose" = "yes" && cat << EOF
8841 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8843 cat >> confdefs.h <<EOF
8844 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8848 { test "$extra_verbose" = "yes" && cat << EOF
8849 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8851 cat >> confdefs.h <<EOF
8852 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8856 { test "$extra_verbose" = "yes" && cat << EOF
8857 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8859 cat >> confdefs.h <<EOF
8860 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8864 { test "$extra_verbose" = "yes" && cat << EOF
8865 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8867 cat >> confdefs.h <<EOF
8868 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8872 { test "$extra_verbose" = "yes" && cat << EOF
8873 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8875 cat >> confdefs.h <<EOF
8876 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8880 { test "$extra_verbose" = "yes" && cat << EOF
8881 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8883 cat >> confdefs.h <<EOF
8884 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8888 { test "$extra_verbose" = "yes" && cat << EOF
8889 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8891 cat >> confdefs.h <<EOF
8892 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8896 { test "$extra_verbose" = "yes" && cat << EOF
8897 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8899 cat >> confdefs.h <<EOF
8900 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8904 { test "$extra_verbose" = "yes" && cat << EOF
8905 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8907 cat >> confdefs.h <<EOF
8908 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8913 { test "$extra_verbose" = "yes" && cat << \EOF
8914 Defining LWLIB_USES_ATHENA
8916 cat >> confdefs.h <<\EOF
8917 #define LWLIB_USES_ATHENA 1
8921 { test "$extra_verbose" = "yes" && cat << \EOF
8922 Defining NEED_ATHENA
8924 cat >> confdefs.h <<\EOF
8925 #define NEED_ATHENA 1
8931 if test "$athena_3d" = "yes"; then
8932 { test "$extra_verbose" = "yes" && cat << \EOF
8933 Defining HAVE_ATHENA_3D
8935 cat >> confdefs.h <<\EOF
8936 #define HAVE_ATHENA_3D 1
8944 case "$all_widgets" in *motif* )
8945 { test "$extra_verbose" = "yes" && cat << \EOF
8946 Defining LWLIB_USES_MOTIF
8948 cat >> confdefs.h <<\EOF
8949 #define LWLIB_USES_MOTIF 1
8953 { test "$extra_verbose" = "yes" && cat << \EOF
8956 cat >> confdefs.h <<\EOF
8957 #define NEED_MOTIF 1
8961 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8965 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8966 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8967 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8968 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8969 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8970 case "$with_widgets" in athena* )
8971 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;;
8973 case "$all_widgets" in *lucid* )
8974 { test "$extra_verbose" = "yes" && cat << \EOF
8977 cat >> confdefs.h <<\EOF
8978 #define NEED_LUCID 1
8982 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8987 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8988 Defining LWLIB_SCROLLBARS_ATHENA
8990 cat >> confdefs.h <<\EOF
8991 #define LWLIB_SCROLLBARS_ATHENA 1
8995 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8996 Defining LWLIB_DIALOGS_ATHENA
8998 cat >> confdefs.h <<\EOF
8999 #define LWLIB_DIALOGS_ATHENA 1
9004 if test "$athena_3d" = "yes"; then
9005 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9006 Defining LWLIB_SCROLLBARS_ATHENA3D
9008 cat >> confdefs.h <<\EOF
9009 #define LWLIB_SCROLLBARS_ATHENA3D 1
9013 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9014 Defining LWLIB_DIALOGS_ATHENA3D
9016 cat >> confdefs.h <<\EOF
9017 #define LWLIB_DIALOGS_ATHENA3D 1
9023 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9024 Defining LWLIB_WIDGETS_ATHENA
9026 cat >> confdefs.h <<\EOF
9027 #define LWLIB_WIDGETS_ATHENA 1
9031 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9032 { test "$extra_verbose" = "yes" && cat << \EOF
9033 Defining LWLIB_TABS_LUCID
9035 cat >> confdefs.h <<\EOF
9036 #define LWLIB_TABS_LUCID 1
9041 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9042 Defining HAVE_MENUBARS
9044 cat >> confdefs.h <<\EOF
9045 #define HAVE_MENUBARS 1
9049 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9050 Defining HAVE_SCROLLBARS
9052 cat >> confdefs.h <<\EOF
9053 #define HAVE_SCROLLBARS 1
9057 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9058 Defining HAVE_DIALOGS
9060 cat >> confdefs.h <<\EOF
9061 #define HAVE_DIALOGS 1
9065 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9066 Defining HAVE_TOOLBARS
9068 cat >> confdefs.h <<\EOF
9069 #define HAVE_TOOLBARS 1
9073 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9074 Defining HAVE_WIDGETS
9076 cat >> confdefs.h <<\EOF
9077 #define HAVE_WIDGETS 1
9082 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9083 Defining LWLIB_MENUBARS_LUCID
9085 cat >> confdefs.h <<\EOF
9086 #define LWLIB_MENUBARS_LUCID 1
9090 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9091 Defining LWLIB_SCROLLBARS_LUCID
9093 cat >> confdefs.h <<\EOF
9094 #define LWLIB_SCROLLBARS_LUCID 1
9099 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9100 Defining LWLIB_MENUBARS_MOTIF
9102 cat >> confdefs.h <<\EOF
9103 #define LWLIB_MENUBARS_MOTIF 1
9107 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9108 Defining LWLIB_SCROLLBARS_MOTIF
9110 cat >> confdefs.h <<\EOF
9111 #define LWLIB_SCROLLBARS_MOTIF 1
9115 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9116 Defining LWLIB_DIALOGS_MOTIF
9118 cat >> confdefs.h <<\EOF
9119 #define LWLIB_DIALOGS_MOTIF 1
9123 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9124 Defining LWLIB_WIDGETS_MOTIF
9126 cat >> confdefs.h <<\EOF
9127 #define LWLIB_WIDGETS_MOTIF 1
9132 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9133 echo " xemacs will be linked with \"menubar.o\""
9135 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9136 echo " xemacs will be linked with \"scrollbar.o\""
9138 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9139 echo " xemacs will be linked with \"dialog.o\""
9141 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9142 echo " xemacs will be linked with \"toolbar.o\""
9145 if test "$with_x11" = "yes"; then
9146 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9147 echo " xemacs will be linked with \"menubar-x.o\""
9149 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9150 echo " xemacs will be linked with \"scrollbar-x.o\""
9152 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9153 echo " xemacs will be linked with \"dialog-x.o\""
9155 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9156 echo " xemacs will be linked with \"toolbar-x.o\""
9158 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9159 echo " xemacs will be linked with \"gui-x.o\""
9164 test -z "$with_mule" && with_mule=no
9165 test -z "$with_file_coding" && with_file_coding=no
9168 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9169 { test "$extra_verbose" = "yes" && cat << \EOF
9170 Defining FILE_CODING
9172 cat >> confdefs.h <<\EOF
9173 #define FILE_CODING 1
9177 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9178 echo " xemacs will be linked with \"file-coding.o\""
9182 if test "$with_mule" = "yes" ; then
9183 echo "checking for Mule-related features" 1>&6
9184 echo "configure:9185: checking for Mule-related features" >&5
9185 { test "$extra_verbose" = "yes" && cat << \EOF
9188 cat >> confdefs.h <<\EOF
9193 { test "$extra_verbose" = "yes" && cat << \EOF
9194 Defining FILE_CODING
9196 cat >> confdefs.h <<\EOF
9197 #define FILE_CODING 1
9201 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9202 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9205 for ac_hdr in libintl.h
9207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9209 echo "configure:9210: checking for $ac_hdr" >&5
9211 cat > conftest.$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9217 { (eval echo configure:9218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9219 if test -z "$ac_err"; then
9221 eval "ac_cv_header_$ac_safe=yes"
9224 echo "configure: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9227 eval "ac_cv_header_$ac_safe=no"
9230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9231 echo "$ac_t""yes" 1>&6
9232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9233 { test "$extra_verbose" = "yes" && cat << EOF
9236 cat >> confdefs.h <<EOF
9237 #define $ac_tr_hdr 1
9242 echo "$ac_t""no" 1>&6
9247 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9248 echo "configure:9249: checking for strerror in -lintl" >&5
9249 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9251 xe_check_libs=" -lintl "
9252 cat > conftest.$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9255 /* Override any gcc2 internal prototype to avoid an error. */
9256 /* We use char because int might match the return type of a gcc2
9257 builtin and then its argument prototype would still apply. */
9264 if { (eval echo configure:9265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9266 eval "ac_cv_lib_$ac_lib_var=yes"
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9271 eval "ac_cv_lib_$ac_lib_var=no"
9276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9277 echo "$ac_t""yes" 1>&6
9278 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9279 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9280 { test "$extra_verbose" = "yes" && cat << EOF
9283 cat >> confdefs.h <<EOF
9284 #define $ac_tr_lib 1
9288 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9291 echo "$ac_t""no" 1>&6
9296 echo "checking for Mule input methods" 1>&6
9297 echo "configure:9298: checking for Mule input methods" >&5
9298 case "$with_xim" in "" | "yes" )
9299 echo "checking for XIM" 1>&6
9300 echo "configure:9301: checking for XIM" >&5
9302 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9303 echo "configure:9304: checking for XOpenIM in -lX11" >&5
9304 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9306 xe_check_libs=" -lX11 "
9307 cat > conftest.$ac_ext <<EOF
9308 #line 9309 "configure"
9309 #include "confdefs.h"
9310 /* Override any gcc2 internal prototype to avoid an error. */
9311 /* We use char because int might match the return type of a gcc2
9312 builtin and then its argument prototype would still apply. */
9319 if { (eval echo configure:9320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9321 eval "ac_cv_lib_$ac_lib_var=yes"
9323 echo "configure: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9326 eval "ac_cv_lib_$ac_lib_var=no"
9331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9332 echo "$ac_t""yes" 1>&6
9335 echo "$ac_t""no" 1>&6
9340 if test "$have_motif $have_lesstif" = "yes no"; then
9342 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9343 echo "configure:9344: checking for XmImMbLookupString in -lXm" >&5
9344 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9346 xe_check_libs=" -lXm "
9347 cat > conftest.$ac_ext <<EOF
9348 #line 9349 "configure"
9349 #include "confdefs.h"
9350 /* Override any gcc2 internal prototype to avoid an error. */
9351 /* We use char because int might match the return type of a gcc2
9352 builtin and then its argument prototype would still apply. */
9353 char XmImMbLookupString();
9356 XmImMbLookupString()
9359 if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9361 eval "ac_cv_lib_$ac_lib_var=yes"
9363 echo "configure: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9366 eval "ac_cv_lib_$ac_lib_var=no"
9371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9372 echo "$ac_t""yes" 1>&6
9375 echo "$ac_t""no" 1>&6
9381 if test "$with_xim" != "no"; then
9382 { test "$extra_verbose" = "yes" && cat << \EOF
9385 cat >> confdefs.h <<\EOF
9390 if test "$with_xim" = "xlib"; then
9391 { test "$extra_verbose" = "yes" && cat << \EOF
9394 cat >> confdefs.h <<\EOF
9399 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9400 echo " xemacs will be linked with \"input-method-xlib.o\""
9403 if test "$with_xim" = "motif"; then
9404 { test "$extra_verbose" = "yes" && cat << \EOF
9407 cat >> confdefs.h <<\EOF
9413 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9414 echo " xemacs will be linked with \"input-method-motif.o\""
9417 if test "$with_xim" = "motif"; then
9422 if test "$with_xfs" = "yes" ; then
9423 echo "checking for XFontSet" 1>&6
9424 echo "configure:9425: checking for XFontSet" >&5
9426 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9427 echo "configure:9428: checking for XmbDrawString in -lX11" >&5
9428 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9430 xe_check_libs=" -lX11 "
9431 cat > conftest.$ac_ext <<EOF
9432 #line 9433 "configure"
9433 #include "confdefs.h"
9434 /* Override any gcc2 internal prototype to avoid an error. */
9435 /* We use char because int might match the return type of a gcc2
9436 builtin and then its argument prototype would still apply. */
9437 char XmbDrawString();
9443 if { (eval echo configure:9444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9445 eval "ac_cv_lib_$ac_lib_var=yes"
9447 echo "configure: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9450 eval "ac_cv_lib_$ac_lib_var=no"
9455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9456 echo "$ac_t""yes" 1>&6
9459 echo "$ac_t""no" 1>&6
9464 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9465 { test "$extra_verbose" = "yes" && cat << \EOF
9466 Defining USE_XFONTSET
9468 cat >> confdefs.h <<\EOF
9469 #define USE_XFONTSET 1
9473 if test "$with_xim" = "no" ; then
9474 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
9475 echo " xemacs will be linked with \"input-method-xfs.o\""
9480 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9481 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9482 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9483 echo "configure:9484: checking for wnn/jllib.h" >&5
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 #include <wnn/jllib.h>
9490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9491 { (eval echo configure:9492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9493 if test -z "$ac_err"; then
9495 eval "ac_cv_header_$ac_safe=yes"
9498 echo "configure: failed program was:" >&5
9499 cat conftest.$ac_ext >&5
9501 eval "ac_cv_header_$ac_safe=no"
9504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9505 echo "$ac_t""yes" 1>&6
9508 echo "$ac_t""no" 1>&6
9512 if test "$with_wnn" != "no"; then
9513 for ac_func in crypt
9515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9516 echo "configure:9517: checking for $ac_func" >&5
9518 cat > conftest.$ac_ext <<EOF
9519 #line 9520 "configure"
9520 #include "confdefs.h"
9521 /* System header to define __stub macros and hopefully few prototypes,
9522 which can conflict with char $ac_func(); below. */
9524 /* Override any gcc2 internal prototype to avoid an error. */
9525 /* We use char because int might match the return type of a gcc2
9526 builtin and then its argument prototype would still apply. */
9531 /* The GNU C library defines this for functions which it implements
9532 to always fail with ENOSYS. Some functions are actually named
9533 something starting with __ and the normal name is an alias. */
9534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9542 if { (eval echo configure:9543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9544 eval "ac_cv_func_$ac_func=yes"
9546 echo "configure: failed program was:" >&5
9547 cat conftest.$ac_ext >&5
9549 eval "ac_cv_func_$ac_func=no"
9553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9554 echo "$ac_t""yes" 1>&6
9555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9556 { test "$extra_verbose" = "yes" && cat << EOF
9557 Defining $ac_tr_func
9559 cat >> confdefs.h <<EOF
9560 #define $ac_tr_func 1
9565 echo "$ac_t""no" 1>&6
9569 test "$ac_cv_func_crypt" != "yes" && {
9570 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9571 echo "configure:9572: checking for crypt in -lcrypt" >&5
9572 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9574 xe_check_libs=" -lcrypt "
9575 cat > conftest.$ac_ext <<EOF
9576 #line 9577 "configure"
9577 #include "confdefs.h"
9578 /* Override any gcc2 internal prototype to avoid an error. */
9579 /* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9587 if { (eval echo configure:9588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9589 eval "ac_cv_lib_$ac_lib_var=yes"
9591 echo "configure: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9594 eval "ac_cv_lib_$ac_lib_var=no"
9599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9600 echo "$ac_t""yes" 1>&6
9601 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9602 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9603 { test "$extra_verbose" = "yes" && cat << EOF
9606 cat >> confdefs.h <<EOF
9607 #define $ac_tr_lib 1
9611 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9614 echo "$ac_t""no" 1>&6
9619 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9621 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9622 echo "configure:9623: checking for jl_dic_list_e in -lwnn" >&5
9623 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9625 xe_check_libs=" -lwnn "
9626 cat > conftest.$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9629 /* Override any gcc2 internal prototype to avoid an error. */
9630 /* We use char because int might match the return type of a gcc2
9631 builtin and then its argument prototype would still apply. */
9632 char jl_dic_list_e();
9638 if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9640 eval "ac_cv_lib_$ac_lib_var=yes"
9642 echo "configure: failed program was:" >&5
9643 cat conftest.$ac_ext >&5
9645 eval "ac_cv_lib_$ac_lib_var=no"
9650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9651 echo "$ac_t""yes" 1>&6
9654 echo "$ac_t""no" 1>&6
9655 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9656 echo "configure:9657: checking for jl_dic_list_e in -lwnn4" >&5
9657 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9659 xe_check_libs=" -lwnn4 "
9660 cat > conftest.$ac_ext <<EOF
9661 #line 9662 "configure"
9662 #include "confdefs.h"
9663 /* Override any gcc2 internal prototype to avoid an error. */
9664 /* We use char because int might match the return type of a gcc2
9665 builtin and then its argument prototype would still apply. */
9666 char jl_dic_list_e();
9672 if { (eval echo configure:9673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9674 eval "ac_cv_lib_$ac_lib_var=yes"
9676 echo "configure: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9679 eval "ac_cv_lib_$ac_lib_var=no"
9684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9685 echo "$ac_t""yes" 1>&6
9688 echo "$ac_t""no" 1>&6
9689 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9690 echo "configure:9691: checking for jl_dic_list_e in -lwnn6" >&5
9691 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9693 xe_check_libs=" -lwnn6 "
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 /* Override any gcc2 internal prototype to avoid an error. */
9698 /* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */
9700 char jl_dic_list_e();
9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9708 eval "ac_cv_lib_$ac_lib_var=yes"
9710 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9713 eval "ac_cv_lib_$ac_lib_var=no"
9718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9719 echo "$ac_t""yes" 1>&6
9722 echo "$ac_t""no" 1>&6
9723 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9724 echo "configure:9725: checking for dic_list_e in -lwnn6_fromsrc" >&5
9725 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9727 xe_check_libs=" -lwnn6_fromsrc "
9728 cat > conftest.$ac_ext <<EOF
9729 #line 9730 "configure"
9730 #include "confdefs.h"
9731 /* Override any gcc2 internal prototype to avoid an error. */
9732 /* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9740 if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9742 eval "ac_cv_lib_$ac_lib_var=yes"
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9747 eval "ac_cv_lib_$ac_lib_var=no"
9752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9753 echo "$ac_t""yes" 1>&6
9756 echo "$ac_t""no" 1>&6
9771 test -z "$with_wnn" && with_wnn=yes
9772 if test "$with_wnn" = "yes"; then
9773 { test "$extra_verbose" = "yes" && cat << \EOF
9776 cat >> confdefs.h <<\EOF
9781 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9782 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9783 echo " xemacs will be linked with \"mule-wnnfns.o\""
9785 if test "$with_wnn6" != "no"; then
9787 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9788 echo "configure:9789: checking for jl_fi_dic_list in -l$libwnn" >&5
9789 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9791 xe_check_libs=" -l$libwnn "
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 /* Override any gcc2 internal prototype to avoid an error. */
9796 /* We use char because int might match the return type of a gcc2
9797 builtin and then its argument prototype would still apply. */
9798 char jl_fi_dic_list();
9804 if { (eval echo configure:9805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9806 eval "ac_cv_lib_$ac_lib_var=yes"
9808 echo "configure: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9811 eval "ac_cv_lib_$ac_lib_var=no"
9816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9817 echo "$ac_t""yes" 1>&6
9820 echo "$ac_t""no" 1>&6
9824 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9827 cat >> confdefs.h <<\EOF
9835 canna_includes_found=no
9836 if test "$with_canna" != "no"; then
9837 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9838 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9839 echo "configure:9840: checking for canna/jrkanji.h" >&5
9841 cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 #include <canna/jrkanji.h>
9846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9847 { (eval echo configure:9848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9849 if test -z "$ac_err"; then
9851 eval "ac_cv_header_$ac_safe=yes"
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9857 eval "ac_cv_header_$ac_safe=no"
9860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9861 echo "$ac_t""yes" 1>&6
9862 canna_includes_found=yes
9864 echo "$ac_t""no" 1>&6
9868 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9869 -d "/usr/local/canna/include"; then
9870 save_c_switch_site="$c_switch_site"
9871 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9872 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9873 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9874 echo "configure:9875: checking for canna/jrkanji.h" >&5
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9879 #include <canna/jrkanji.h>
9881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9882 { (eval echo configure:9883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9884 if test -z "$ac_err"; then
9886 eval "ac_cv_header_$ac_safe=yes"
9889 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9892 eval "ac_cv_header_$ac_safe=no"
9895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9896 echo "$ac_t""yes" 1>&6
9897 canna_includes_found=yes
9899 echo "$ac_t""no" 1>&6
9902 if test "$canna_includes_found" != "yes"; then
9903 c_switch_site="$save_c_switch_site"
9908 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9909 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9910 echo "configure:9911: checking for canna/RK.h" >&5
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 #include <canna/RK.h>
9917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9918 { (eval echo configure:9919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9920 if test -z "$ac_err"; then
9922 eval "ac_cv_header_$ac_safe=yes"
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9928 eval "ac_cv_header_$ac_safe=no"
9931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9932 echo "$ac_t""yes" 1>&6
9935 echo "$ac_t""no" 1>&6
9939 test -z "$with_canna" && {
9940 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9941 echo "configure:9942: checking for RkBgnBun in -lRKC" >&5
9942 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9944 xe_check_libs=" -lRKC "
9945 cat > conftest.$ac_ext <<EOF
9946 #line 9947 "configure"
9947 #include "confdefs.h"
9948 /* Override any gcc2 internal prototype to avoid an error. */
9949 /* We use char because int might match the return type of a gcc2
9950 builtin and then its argument prototype would still apply. */
9957 if { (eval echo configure:9958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9959 eval "ac_cv_lib_$ac_lib_var=yes"
9961 echo "configure: failed program was:" >&5
9962 cat conftest.$ac_ext >&5
9964 eval "ac_cv_lib_$ac_lib_var=no"
9969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9970 echo "$ac_t""yes" 1>&6
9973 echo "$ac_t""no" 1>&6
9978 test -z "$with_canna" && {
9979 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9980 echo "configure:9981: checking for jrKanjiControl in -lcanna" >&5
9981 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9983 xe_check_libs=" -lcanna "
9984 cat > conftest.$ac_ext <<EOF
9985 #line 9986 "configure"
9986 #include "confdefs.h"
9987 /* Override any gcc2 internal prototype to avoid an error. */
9988 /* We use char because int might match the return type of a gcc2
9989 builtin and then its argument prototype would still apply. */
9990 char jrKanjiControl();
9996 if { (eval echo configure:9997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9998 eval "ac_cv_lib_$ac_lib_var=yes"
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10003 eval "ac_cv_lib_$ac_lib_var=no"
10008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10009 echo "$ac_t""yes" 1>&6
10012 echo "$ac_t""no" 1>&6
10017 test -z "$with_canna" && with_canna=yes
10018 if test "$with_canna" = "yes"; then
10019 { test "$extra_verbose" = "yes" && cat << \EOF
10020 Defining HAVE_CANNA
10022 cat >> confdefs.h <<\EOF
10023 #define HAVE_CANNA 1
10027 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10028 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10029 echo " xemacs will be linked with \"mule-canna.o\""
10033 else for feature in xim canna wnn; do
10034 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10035 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10037 eval "with_${feature}=no"
10041 if test "$need_motif" = "yes" ; then
10042 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10044 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10045 echo "configure:10046: checking for layout_object_getvalue in -li18n" >&5
10046 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10048 xe_check_libs=" -li18n "
10049 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10052 /* Override any gcc2 internal prototype to avoid an error. */
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10055 char layout_object_getvalue();
10058 layout_object_getvalue()
10061 if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10063 eval "ac_cv_lib_$ac_lib_var=yes"
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10068 eval "ac_cv_lib_$ac_lib_var=no"
10073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10074 echo "$ac_t""yes" 1>&6
10075 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10077 echo "$ac_t""no" 1>&6
10082 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10083 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10084 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10086 runpath="" runpath_dirs=""
10087 if test -n "$LD_RUN_PATH"; then
10088 runpath="$LD_RUN_PATH"
10089 elif test "$GCC" = "yes"; then
10090 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10091 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10092 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10093 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10094 case "$arg" in P,* | -L* | -R* )
10095 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10097 xe_runpath_dir="$dir"
10098 test "$xe_runpath_dir" != "/lib" -a \
10099 "$xe_runpath_dir" != "/usr/lib" -a \
10100 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10101 eval "$xe_add_unique_runpath_dir"
10106 ld_switch_run="$ld_switch_run_save"
10109 for arg in $ld_switch_site $ld_switch_x_site; do
10110 case "$arg" in -L*) {
10111 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10112 test "$xe_runpath_dir" != "/lib" -a \
10113 "$xe_runpath_dir" != "/usr/lib" -a \
10114 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10115 eval "$xe_add_unique_runpath_dir"
10118 if test "$opsys $need_motif" = "sol2 yes"; then
10119 xe_runpath_dir="/opt/SUNWdt/lib";
10120 eval "$xe_add_unique_runpath_dir";
10123 if test -n "$runpath"; then
10124 ld_switch_run="${dash_r}${runpath}"
10126 if test "$GCC" = "yes"; then
10127 set x $ld_switch_run; shift; ld_switch_run=""
10128 while test -n "$1"; do
10130 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10131 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10133 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10138 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10144 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
10146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10147 echo "configure:10148: checking for $ac_func" >&5
10149 cat > conftest.$ac_ext <<EOF
10150 #line 10151 "configure"
10151 #include "confdefs.h"
10152 /* System header to define __stub macros and hopefully few prototypes,
10153 which can conflict with char $ac_func(); below. */
10154 #include <assert.h>
10155 /* Override any gcc2 internal prototype to avoid an error. */
10156 /* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10162 /* The GNU C library defines this for functions which it implements
10163 to always fail with ENOSYS. Some functions are actually named
10164 something starting with __ and the normal name is an alias. */
10165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10173 if { (eval echo configure:10174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10175 eval "ac_cv_func_$ac_func=yes"
10177 echo "configure: failed program was:" >&5
10178 cat conftest.$ac_ext >&5
10180 eval "ac_cv_func_$ac_func=no"
10184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10185 echo "$ac_t""yes" 1>&6
10186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10187 { test "$extra_verbose" = "yes" && cat << EOF
10188 Defining $ac_tr_func
10190 cat >> confdefs.h <<EOF
10191 #define $ac_tr_func 1
10196 echo "$ac_t""no" 1>&6
10201 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10204 echo "configure:10205: checking for $ac_func" >&5
10206 cat > conftest.$ac_ext <<EOF
10207 #line 10208 "configure"
10208 #include "confdefs.h"
10209 /* System header to define __stub macros and hopefully few prototypes,
10210 which can conflict with char $ac_func(); below. */
10211 #include <assert.h>
10212 /* Override any gcc2 internal prototype to avoid an error. */
10213 /* We use char because int might match the return type of a gcc2
10214 builtin and then its argument prototype would still apply. */
10219 /* The GNU C library defines this for functions which it implements
10220 to always fail with ENOSYS. Some functions are actually named
10221 something starting with __ and the normal name is an alias. */
10222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10230 if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10232 eval "ac_cv_func_$ac_func=yes"
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10237 eval "ac_cv_func_$ac_func=no"
10241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10242 echo "$ac_t""yes" 1>&6
10243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10244 { test "$extra_verbose" = "yes" && cat << EOF
10245 Defining $ac_tr_func
10247 cat >> confdefs.h <<EOF
10248 #define $ac_tr_func 1
10253 echo "$ac_t""no" 1>&6
10258 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10259 echo "configure:10260: checking for openpty" >&5
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 /* System header to define __stub macros and hopefully few prototypes,
10265 which can conflict with char openpty(); below. */
10266 #include <assert.h>
10267 /* Override any gcc2 internal prototype to avoid an error. */
10268 /* We use char because int might match the return type of a gcc2
10269 builtin and then its argument prototype would still apply. */
10274 /* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277 #if defined (__stub_openpty) || defined (__stub___openpty)
10285 if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10287 eval "ac_cv_func_openpty=yes"
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10292 eval "ac_cv_func_openpty=no"
10296 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10300 echo "$ac_t""no" 1>&6
10303 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10304 echo "configure:10305: checking for openpty in -lutil" >&5
10305 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10307 xe_check_libs=" -lutil "
10308 cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10311 /* Override any gcc2 internal prototype to avoid an error. */
10312 /* We use char because int might match the return type of a gcc2
10313 builtin and then its argument prototype would still apply. */
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10322 eval "ac_cv_lib_$ac_lib_var=yes"
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10327 eval "ac_cv_lib_$ac_lib_var=no"
10332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10333 echo "$ac_t""yes" 1>&6
10334 have_openpty=yes need_libutil=yes
10336 echo "$ac_t""no" 1>&6
10342 if test "$have_openpty" = "yes"; then
10343 { test "$extra_verbose" = "yes" && cat << \EOF
10344 Defining HAVE_OPENPTY
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_OPENPTY 1
10351 for ac_hdr in pty.h libutil.h
10353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10355 echo "configure:10356: checking for $ac_hdr" >&5
10357 cat > conftest.$ac_ext <<EOF
10358 #line 10359 "configure"
10359 #include "confdefs.h"
10362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10363 { (eval echo configure:10364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10365 if test -z "$ac_err"; then
10367 eval "ac_cv_header_$ac_safe=yes"
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10373 eval "ac_cv_header_$ac_safe=no"
10376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10377 echo "$ac_t""yes" 1>&6
10378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10379 { test "$extra_verbose" = "yes" && cat << EOF
10380 Defining $ac_tr_hdr
10382 cat >> confdefs.h <<EOF
10383 #define $ac_tr_hdr 1
10388 echo "$ac_t""no" 1>&6
10392 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
10395 for ac_hdr in stropts.h
10397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10399 echo "configure:10400: checking for $ac_hdr" >&5
10401 cat > conftest.$ac_ext <<EOF
10402 #line 10403 "configure"
10403 #include "confdefs.h"
10406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10407 { (eval echo configure:10408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10409 if test -z "$ac_err"; then
10411 eval "ac_cv_header_$ac_safe=yes"
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10417 eval "ac_cv_header_$ac_safe=no"
10420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10421 echo "$ac_t""yes" 1>&6
10422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10423 { test "$extra_verbose" = "yes" && cat << EOF
10424 Defining $ac_tr_hdr
10426 cat >> confdefs.h <<EOF
10427 #define $ac_tr_hdr 1
10432 echo "$ac_t""no" 1>&6
10436 if test "$ac_cv_header_stropts_h" = "yes"; then
10437 for ac_func in isastream
10439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10440 echo "configure:10441: checking for $ac_func" >&5
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10445 /* System header to define __stub macros and hopefully few prototypes,
10446 which can conflict with char $ac_func(); below. */
10447 #include <assert.h>
10448 /* Override any gcc2 internal prototype to avoid an error. */
10449 /* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10455 /* The GNU C library defines this for functions which it implements
10456 to always fail with ENOSYS. Some functions are actually named
10457 something starting with __ and the normal name is an alias. */
10458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10466 if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10468 eval "ac_cv_func_$ac_func=yes"
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10473 eval "ac_cv_func_$ac_func=no"
10477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10478 echo "$ac_t""yes" 1>&6
10479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10480 { test "$extra_verbose" = "yes" && cat << EOF
10481 Defining $ac_tr_func
10483 cat >> confdefs.h <<EOF
10484 #define $ac_tr_func 1
10489 echo "$ac_t""no" 1>&6
10493 for ac_hdr in strtio.h
10495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10497 echo "configure:10498: checking for $ac_hdr" >&5
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10505 { (eval echo configure:10506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10507 if test -z "$ac_err"; then
10509 eval "ac_cv_header_$ac_safe=yes"
10512 echo "configure: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10515 eval "ac_cv_header_$ac_safe=no"
10518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10519 echo "$ac_t""yes" 1>&6
10520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10521 { test "$extra_verbose" = "yes" && cat << EOF
10522 Defining $ac_tr_hdr
10524 cat >> confdefs.h <<EOF
10525 #define $ac_tr_hdr 1
10530 echo "$ac_t""no" 1>&6
10535 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
10536 echo " xemacs will be linked with \"realpath.o\""
10539 for ac_func in getloadavg
10541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10542 echo "configure:10543: checking for $ac_func" >&5
10544 cat > conftest.$ac_ext <<EOF
10545 #line 10546 "configure"
10546 #include "confdefs.h"
10547 /* System header to define __stub macros and hopefully few prototypes,
10548 which can conflict with char $ac_func(); below. */
10549 #include <assert.h>
10550 /* Override any gcc2 internal prototype to avoid an error. */
10551 /* We use char because int might match the return type of a gcc2
10552 builtin and then its argument prototype would still apply. */
10557 /* The GNU C library defines this for functions which it implements
10558 to always fail with ENOSYS. Some functions are actually named
10559 something starting with __ and the normal name is an alias. */
10560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10568 if { (eval echo configure:10569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10570 eval "ac_cv_func_$ac_func=yes"
10572 echo "configure: failed program was:" >&5
10573 cat conftest.$ac_ext >&5
10575 eval "ac_cv_func_$ac_func=no"
10579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10580 echo "$ac_t""yes" 1>&6
10581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10582 { test "$extra_verbose" = "yes" && cat << EOF
10583 Defining $ac_tr_func
10585 cat >> confdefs.h <<EOF
10586 #define $ac_tr_func 1
10591 echo "$ac_t""no" 1>&6
10596 if test "$ac_cv_func_getloadavg" = "yes"; then
10597 for ac_hdr in sys/loadavg.h
10599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10601 echo "configure:10602: checking for $ac_hdr" >&5
10603 cat > conftest.$ac_ext <<EOF
10604 #line 10605 "configure"
10605 #include "confdefs.h"
10608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10609 { (eval echo configure:10610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10611 if test -z "$ac_err"; then
10613 eval "ac_cv_header_$ac_safe=yes"
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 eval "ac_cv_header_$ac_safe=no"
10622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10623 echo "$ac_t""yes" 1>&6
10624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10625 { test "$extra_verbose" = "yes" && cat << EOF
10626 Defining $ac_tr_hdr
10628 cat >> confdefs.h <<EOF
10629 #define $ac_tr_hdr 1
10634 echo "$ac_t""no" 1>&6
10639 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10640 echo " xemacs will be linked with \"getloadavg.o\""
10644 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10645 echo "configure:10646: checking for kstat_open in -lkstat" >&5
10646 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10648 xe_check_libs=" -lkstat "
10649 cat > conftest.$ac_ext <<EOF
10650 #line 10651 "configure"
10651 #include "confdefs.h"
10652 /* Override any gcc2 internal prototype to avoid an error. */
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10661 if { (eval echo configure:10662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10663 eval "ac_cv_lib_$ac_lib_var=yes"
10665 echo "configure: failed program was:" >&5
10666 cat conftest.$ac_ext >&5
10668 eval "ac_cv_lib_$ac_lib_var=no"
10673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10674 echo "$ac_t""yes" 1>&6
10675 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10676 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10677 { test "$extra_verbose" = "yes" && cat << EOF
10678 Defining $ac_tr_lib
10680 cat >> confdefs.h <<EOF
10681 #define $ac_tr_lib 1
10685 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10688 echo "$ac_t""no" 1>&6
10692 for ac_hdr in kstat.h
10694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10696 echo "configure:10697: checking for $ac_hdr" >&5
10698 cat > conftest.$ac_ext <<EOF
10699 #line 10700 "configure"
10700 #include "confdefs.h"
10703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10704 { (eval echo configure:10705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10706 if test -z "$ac_err"; then
10708 eval "ac_cv_header_$ac_safe=yes"
10711 echo "configure: failed program was:" >&5
10712 cat conftest.$ac_ext >&5
10714 eval "ac_cv_header_$ac_safe=no"
10717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10718 echo "$ac_t""yes" 1>&6
10719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10720 { test "$extra_verbose" = "yes" && cat << EOF
10721 Defining $ac_tr_hdr
10723 cat >> confdefs.h <<EOF
10724 #define $ac_tr_hdr 1
10729 echo "$ac_t""no" 1>&6
10735 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10736 echo "configure:10737: checking for kvm_read in -lkvm" >&5
10737 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10739 xe_check_libs=" -lkvm "
10740 cat > conftest.$ac_ext <<EOF
10741 #line 10742 "configure"
10742 #include "confdefs.h"
10743 /* Override any gcc2 internal prototype to avoid an error. */
10744 /* We use char because int might match the return type of a gcc2
10745 builtin and then its argument prototype would still apply. */
10752 if { (eval echo configure:10753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10754 eval "ac_cv_lib_$ac_lib_var=yes"
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 eval "ac_cv_lib_$ac_lib_var=no"
10764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10765 echo "$ac_t""yes" 1>&6
10766 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10767 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10768 { test "$extra_verbose" = "yes" && cat << EOF
10769 Defining $ac_tr_lib
10771 cat >> confdefs.h <<EOF
10772 #define $ac_tr_lib 1
10776 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10779 echo "$ac_t""no" 1>&6
10785 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10786 echo "configure:10787: checking whether netdb declares h_errno" >&5
10787 cat > conftest.$ac_ext <<EOF
10788 #line 10789 "configure"
10789 #include "confdefs.h"
10795 if { (eval echo configure:10796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10797 echo "$ac_t""yes" 1>&6
10798 { test "$extra_verbose" = "yes" && cat << \EOF
10799 Defining HAVE_H_ERRNO
10801 cat >> confdefs.h <<\EOF
10802 #define HAVE_H_ERRNO 1
10807 echo "configure: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10810 echo "$ac_t""no" 1>&6
10814 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10815 echo "configure:10816: checking for sigsetjmp" >&5
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10819 #include <setjmp.h>
10821 sigjmp_buf bar; sigsetjmp (bar, 0);
10824 if { (eval echo configure:10825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10826 echo "$ac_t""yes" 1>&6
10827 { test "$extra_verbose" = "yes" && cat << \EOF
10828 Defining HAVE_SIGSETJMP
10830 cat >> confdefs.h <<\EOF
10831 #define HAVE_SIGSETJMP 1
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10839 echo "$ac_t""no" 1>&6
10843 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10844 echo "configure:10845: checking whether localtime caches TZ" >&5
10846 if test "$ac_cv_func_tzset" = "yes"; then
10847 cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10852 # include <stdlib.h>
10854 extern char **environ;
10858 for (to = from = environ; (*to = *from); from++)
10859 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10862 char TZ_GMT0[] = "TZ=GMT0";
10863 char TZ_PST8[] = "TZ=PST8";
10866 time_t now = time ((time_t *) 0);
10867 int hour_GMT0, hour_unset;
10868 if (putenv (TZ_GMT0) != 0)
10870 hour_GMT0 = localtime (&now)->tm_hour;
10872 hour_unset = localtime (&now)->tm_hour;
10873 if (putenv (TZ_PST8) != 0)
10875 if (localtime (&now)->tm_hour == hour_GMT0)
10878 if (localtime (&now)->tm_hour != hour_unset)
10883 if { (eval echo configure:10884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10885 emacs_cv_localtime_cache=no
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10891 emacs_cv_localtime_cache=yes
10895 # If we lack tzset, report that localtime does not cache TZ,
10896 # since we can't invalidate the cache if we don't have tzset.
10897 emacs_cv_localtime_cache=no
10899 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10900 if test $emacs_cv_localtime_cache = yes; then
10901 { test "$extra_verbose" = "yes" && cat << \EOF
10902 Defining LOCALTIME_CACHE
10904 cat >> confdefs.h <<\EOF
10905 #define LOCALTIME_CACHE 1
10911 if test "$HAVE_TIMEVAL" = "yes"; then
10912 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10913 echo "configure:10914: checking whether gettimeofday accepts one or two arguments" >&5
10914 cat > conftest.$ac_ext <<EOF
10915 #line 10916 "configure"
10916 #include "confdefs.h"
10918 #ifdef TIME_WITH_SYS_TIME
10919 #include <sys/time.h>
10922 #ifdef HAVE_SYS_TIME_H
10923 #include <sys/time.h>
10931 struct timeval time;
10932 gettimeofday (&time, 0);
10936 if { (eval echo configure:10937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10938 echo "$ac_t""two" 1>&6
10940 echo "configure: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10943 echo "$ac_t""one" 1>&6
10944 { test "$extra_verbose" = "yes" && cat << \EOF
10945 Defining GETTIMEOFDAY_ONE_ARGUMENT
10947 cat >> confdefs.h <<\EOF
10948 #define GETTIMEOFDAY_ONE_ARGUMENT 1
10957 echo $ac_n "checking for inline""... $ac_c" 1>&6
10958 echo "configure:10959: checking for inline" >&5
10961 for ac_kw in inline __inline__ __inline; do
10962 cat > conftest.$ac_ext <<EOF
10963 #line 10964 "configure"
10964 #include "confdefs.h"
10970 if { (eval echo configure:10971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10972 ac_cv_c_inline=$ac_kw; break
10974 echo "configure: failed program was:" >&5
10975 cat conftest.$ac_ext >&5
10981 echo "$ac_t""$ac_cv_c_inline" 1>&6
10982 case "$ac_cv_c_inline" in
10984 no) { test "$extra_verbose" = "yes" && cat << \EOF
10987 cat >> confdefs.h <<\EOF
10992 *) { test "$extra_verbose" = "yes" && cat << EOF
10993 Defining inline = $ac_cv_c_inline
10995 cat >> confdefs.h <<EOF
10996 #define inline $ac_cv_c_inline
11002 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11003 echo " xemacs will be linked with \"inline.o\""
11007 if test "$__DECC" != "yes"; then
11008 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11009 # for constant arguments. Useless!
11010 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11011 echo "configure:11012: checking for working alloca.h" >&5
11013 cat > conftest.$ac_ext <<EOF
11014 #line 11015 "configure"
11015 #include "confdefs.h"
11016 #include <alloca.h>
11018 char *p = alloca(2 * sizeof(int));
11021 if { (eval echo configure:11022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11023 ac_cv_header_alloca_h=yes
11025 echo "configure: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11028 ac_cv_header_alloca_h=no
11032 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11033 if test $ac_cv_header_alloca_h = yes; then
11034 { test "$extra_verbose" = "yes" && cat << \EOF
11035 Defining HAVE_ALLOCA_H
11037 cat >> confdefs.h <<\EOF
11038 #define HAVE_ALLOCA_H 1
11044 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11045 echo "configure:11046: checking for alloca" >&5
11047 cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11052 # define alloca __builtin_alloca
11055 # include <malloc.h>
11056 # define alloca _alloca
11059 # include <alloca.h>
11064 # ifndef alloca /* predefined by HP cc +Olibcalls */
11073 char *p = (char *) alloca(1);
11076 if { (eval echo configure:11077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11078 ac_cv_func_alloca_works=yes
11080 echo "configure: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11083 ac_cv_func_alloca_works=no
11087 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11088 if test $ac_cv_func_alloca_works = yes; then
11089 { test "$extra_verbose" = "yes" && cat << \EOF
11090 Defining HAVE_ALLOCA
11092 cat >> confdefs.h <<\EOF
11093 #define HAVE_ALLOCA 1
11099 if test $ac_cv_func_alloca_works = no; then
11100 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11101 # that cause trouble. Some versions do not even contain alloca or
11102 # contain a buggy version. If you still want to use their alloca,
11103 # use ar to extract alloca.o from them instead of compiling alloca.c.
11104 ALLOCA=alloca.${ac_objext}
11105 { test "$extra_verbose" = "yes" && cat << \EOF
11108 cat >> confdefs.h <<\EOF
11114 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11115 echo "configure:11116: checking whether alloca needs Cray hooks" >&5
11117 cat > conftest.$ac_ext <<EOF
11118 #line 11119 "configure"
11119 #include "confdefs.h"
11120 #if defined(CRAY) && ! defined(CRAY2)
11127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11128 egrep "webecray" >/dev/null 2>&1; then
11138 echo "$ac_t""$ac_cv_os_cray" 1>&6
11139 if test $ac_cv_os_cray = yes; then
11140 for ac_func in _getb67 GETB67 getb67; do
11141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11142 echo "configure:11143: checking for $ac_func" >&5
11144 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11147 /* System header to define __stub macros and hopefully few prototypes,
11148 which can conflict with char $ac_func(); below. */
11149 #include <assert.h>
11150 /* Override any gcc2 internal prototype to avoid an error. */
11151 /* We use char because int might match the return type of a gcc2
11152 builtin and then its argument prototype would still apply. */
11157 /* The GNU C library defines this for functions which it implements
11158 to always fail with ENOSYS. Some functions are actually named
11159 something starting with __ and the normal name is an alias. */
11160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11168 if { (eval echo configure:11169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11170 eval "ac_cv_func_$ac_func=yes"
11172 echo "configure: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11175 eval "ac_cv_func_$ac_func=no"
11179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11180 echo "$ac_t""yes" 1>&6
11181 { test "$extra_verbose" = "yes" && cat << EOF
11182 Defining CRAY_STACKSEG_END = $ac_func
11184 cat >> confdefs.h <<EOF
11185 #define CRAY_STACKSEG_END $ac_func
11191 echo "$ac_t""no" 1>&6
11197 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11198 echo "configure:11199: checking stack direction for C alloca" >&5
11200 cat > conftest.$ac_ext <<EOF
11201 #line 11202 "configure"
11202 #include "confdefs.h"
11203 find_stack_direction ()
11205 static char *addr = 0;
11210 return find_stack_direction ();
11213 return (&dummy > addr) ? 1 : -1;
11217 exit (find_stack_direction() < 0);
11220 if { (eval echo configure:11221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11222 ac_cv_c_stack_direction=1
11225 echo "configure: failed program was:" >&5
11226 cat conftest.$ac_ext >&5
11228 ac_cv_c_stack_direction=-1
11232 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11233 { test "$extra_verbose" = "yes" && cat << EOF
11234 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11236 cat >> confdefs.h <<EOF
11237 #define STACK_DIRECTION $ac_cv_c_stack_direction
11243 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11244 echo " xemacs will be linked with \"$ALLOCA\""
11248 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11249 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11250 echo "configure:11251: checking for vfork.h" >&5
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11258 { (eval echo configure:11259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11260 if test -z "$ac_err"; then
11262 eval "ac_cv_header_$ac_safe=yes"
11265 echo "configure: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11268 eval "ac_cv_header_$ac_safe=no"
11271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11272 echo "$ac_t""yes" 1>&6
11273 { test "$extra_verbose" = "yes" && cat << \EOF
11274 Defining HAVE_VFORK_H
11276 cat >> confdefs.h <<\EOF
11277 #define HAVE_VFORK_H 1
11282 echo "$ac_t""no" 1>&6
11285 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11286 echo "configure:11287: checking for working vfork" >&5
11288 cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11291 /* Thanks to Paul Eggert for this test. */
11293 #include <sys/types.h>
11294 #include <sys/stat.h>
11295 #ifdef HAVE_UNISTD_H
11296 #include <unistd.h>
11298 #ifdef HAVE_VFORK_H
11301 /* On some sparc systems, changes by the child to local and incoming
11302 argument registers are propagated back to the parent.
11303 The compiler is told about this with #include <vfork.h>,
11304 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11305 Test for this by using a static variable whose address
11306 is put into a register that is clobbered by the vfork. */
11309 sparc_address_test (int arg)
11311 sparc_address_test (arg) int arg;
11314 static pid_t child;
11329 pid_t parent = getpid ();
11332 sparc_address_test ();
11337 /* Here is another test for sparc vfork register problems.
11338 This test uses lots of local variables, at least
11339 as many local variables as main has allocated so far
11340 including compiler temporaries. 4 locals are enough for
11341 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11342 A buggy compiler should reuse the register of parent
11343 for one of the local variables, since it will think that
11344 parent can't possibly be used any more in this routine.
11345 Assigning to the local variable will thus munge parent
11346 in the parent process. */
11348 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11349 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11350 /* Convince the compiler that p..p7 are live; otherwise, it might
11351 use the same hardware register for all 8 local variables. */
11352 if (p != p1 || p != p2 || p != p3 || p != p4
11353 || p != p5 || p != p6 || p != p7)
11356 /* On some systems (e.g. IRIX 3.3),
11357 vfork doesn't separate parent from child file descriptors.
11358 If the child closes a descriptor before it execs or exits,
11359 this munges the parent's descriptor as well.
11360 Test for this by closing stdout in the child. */
11361 _exit(close(fileno(stdout)) != 0);
11366 while (wait(&status) != child)
11369 /* Was there some problem with vforking? */
11372 /* Did the child fail? (This shouldn't happen.) */
11375 /* Did the vfork/compiler bug occur? */
11376 || parent != getpid()
11378 /* Did the file descriptor bug occur? */
11379 || fstat(fileno(stdout), &st) != 0
11384 if { (eval echo configure:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11386 ac_cv_func_vfork_works=yes
11389 echo "configure: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11392 ac_cv_func_vfork_works=no
11396 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
11397 if test $ac_cv_func_vfork_works = no; then
11398 { test "$extra_verbose" = "yes" && cat << \EOF
11399 Defining vfork = fork
11401 cat >> confdefs.h <<\EOF
11409 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11410 echo "configure:11411: checking for working strcoll" >&5
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 #include <string.h>
11418 exit (strcoll ("abc", "def") >= 0 ||
11419 strcoll ("ABC", "DEF") >= 0 ||
11420 strcoll ("123", "456") >= 0);
11423 if { (eval echo configure:11424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11425 ac_cv_func_strcoll_works=yes
11428 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11431 ac_cv_func_strcoll_works=no
11435 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
11436 if test $ac_cv_func_strcoll_works = yes; then
11437 { test "$extra_verbose" = "yes" && cat << \EOF
11438 Defining HAVE_STRCOLL
11440 cat >> confdefs.h <<\EOF
11441 #define HAVE_STRCOLL 1
11448 for ac_func in getpgrp
11450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11451 echo "configure:11452: checking for $ac_func" >&5
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 /* System header to define __stub macros and hopefully few prototypes,
11457 which can conflict with char $ac_func(); below. */
11458 #include <assert.h>
11459 /* Override any gcc2 internal prototype to avoid an error. */
11460 /* We use char because int might match the return type of a gcc2
11461 builtin and then its argument prototype would still apply. */
11466 /* The GNU C library defines this for functions which it implements
11467 to always fail with ENOSYS. Some functions are actually named
11468 something starting with __ and the normal name is an alias. */
11469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11477 if { (eval echo configure:11478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11479 eval "ac_cv_func_$ac_func=yes"
11481 echo "configure: failed program was:" >&5
11482 cat conftest.$ac_ext >&5
11484 eval "ac_cv_func_$ac_func=no"
11488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11489 echo "$ac_t""yes" 1>&6
11490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11491 { test "$extra_verbose" = "yes" && cat << EOF
11492 Defining $ac_tr_func
11494 cat >> confdefs.h <<EOF
11495 #define $ac_tr_func 1
11500 echo "$ac_t""no" 1>&6
11504 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11505 echo "configure:11506: checking whether getpgrp takes no argument" >&5
11507 cat > conftest.$ac_ext <<EOF
11508 #line 11509 "configure"
11509 #include "confdefs.h"
11512 * If this system has a BSD-style getpgrp(),
11513 * which takes a pid argument, exit unsuccessfully.
11515 * Snarfed from Chet Ramey's bash pgrp.c test program
11518 #include <sys/types.h>
11521 int pg1, pg2, pg3, pg4;
11522 int ng, np, s, child;
11529 pg3 = getpgrp(pid);
11533 * If all of these values are the same, it's pretty sure that
11534 * we're on a system that ignores getpgrp's first argument.
11536 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
11542 else if (child == 0) {
11545 * If this is Sys V, this will not work; pgrp will be
11546 * set to np because setpgrp just changes a pgrp to be
11547 * the same as the pid.
11550 ng = getpgrp(0); /* Same result for Sys V and BSD */
11563 if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11565 ac_cv_func_getpgrp_void=yes
11568 echo "configure: failed program was:" >&5
11569 cat conftest.$ac_ext >&5
11571 ac_cv_func_getpgrp_void=no
11576 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
11577 if test $ac_cv_func_getpgrp_void = yes; then
11578 { test "$extra_verbose" = "yes" && cat << \EOF
11579 Defining GETPGRP_VOID
11581 cat >> confdefs.h <<\EOF
11582 #define GETPGRP_VOID 1
11589 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11590 echo "configure:11591: checking for working mmap" >&5
11591 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11594 "configure"
11594 #include "confdefs.h"
11596 #include <unistd.h>
11598 #include <sys/mman.h>
11600 #ifndef MAP_VARIABLE
11601 #define MAP_VARIABLE 0
11605 #define MAP_FAILED -1
11608 int main (int argc, char *argv[])
11612 #ifndef MAP_ANONYMOUS
11613 fd = open ("/dev/zero", O_RDWR);
11616 #define MAP_ANONYMOUS 0
11618 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
11619 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
11620 fd, 0) != (void *) MAP_FAILED)
11622 perror ("conftest: mmap failed");
11626 if { (eval echo configure:11627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11631 echo "configure: failed program was:" >&5
11632 cat conftest.$ac_ext >&5
11636 rm -fr conftest* ;;
11638 echo "$ac_t""$have_mmap" 1>&6
11639 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11642 cat >> confdefs.h <<\EOF
11643 #define HAVE_MMAP 1
11648 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11649 if test "$rel_alloc $have_mmap" = "default yes"; then
11650 if test "$doug_lea_malloc" = "yes"; then
11651 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11652 echo "configure:11653: checking for M_MMAP_THRESHOLD" >&5
11653 cat > conftest.$ac_ext <<EOF
11654 #line 11655 "configure"
11655 #include "confdefs.h"
11656 #include <malloc.h>
11659 #ifndef M_MMAP_THRESHOLD
11660 #error No M_MMAP_THRESHOLD :-(
11661 !@+$%^&*_)(_ - unlikely to compile...
11666 if { (eval echo configure:11667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11668 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11670 echo "configure: failed program was:" >&5
11671 cat conftest.$ac_ext >&5
11673 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11680 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11683 cat >> confdefs.h <<\EOF
11684 #define REL_ALLOC 1
11689 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11690 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11691 echo "configure:11692: checking for termios.h" >&5
11693 cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11696 #include <termios.h>
11698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11699 { (eval echo configure:11700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11701 if test -z "$ac_err"; then
11703 eval "ac_cv_header_$ac_safe=yes"
11706 echo "configure: failed program was:" >&5
11707 cat conftest.$ac_ext >&5
11709 eval "ac_cv_header_$ac_safe=no"
11712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11713 echo "$ac_t""yes" 1>&6
11714 { test "$extra_verbose" = "yes" && cat << \EOF
11715 Defining HAVE_TERMIOS
11717 cat >> confdefs.h <<\EOF
11718 #define HAVE_TERMIOS 1
11722 { test "$extra_verbose" = "yes" && cat << \EOF
11723 Defining SIGNALS_VIA_CHARACTERS
11725 cat >> confdefs.h <<\EOF
11726 #define SIGNALS_VIA_CHARACTERS 1
11730 { test "$extra_verbose" = "yes" && cat << \EOF
11733 cat >> confdefs.h <<\EOF
11734 #define NO_TERMIO 1
11739 echo "$ac_t""no" 1>&6
11740 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11741 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11742 echo "configure:11743: checking for termio.h" >&5
11744 cat > conftest.$ac_ext <<EOF
11745 #line 11746 "configure"
11746 #include "confdefs.h"
11747 #include <termio.h>
11749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11750 { (eval echo configure:11751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11752 if test -z "$ac_err"; then
11754 eval "ac_cv_header_$ac_safe=yes"
11757 echo "configure: failed program was:" >&5
11758 cat conftest.$ac_ext >&5
11760 eval "ac_cv_header_$ac_safe=no"
11763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11764 echo "$ac_t""yes" 1>&6
11765 { test "$extra_verbose" = "yes" && cat << \EOF
11766 Defining HAVE_TERMIO
11768 cat >> confdefs.h <<\EOF
11769 #define HAVE_TERMIO 1
11774 echo "$ac_t""no" 1>&6
11781 echo $ac_n "checking for socket""... $ac_c" 1>&6
11782 echo "configure:11783: checking for socket" >&5
11784 cat > conftest.$ac_ext <<EOF
11785 #line 11786 "configure"
11786 #include "confdefs.h"
11787 /* System header to define __stub macros and hopefully few prototypes,
11788 which can conflict with char socket(); below. */
11789 #include <assert.h>
11790 /* Override any gcc2 internal prototype to avoid an error. */
11791 /* We use char because int might match the return type of a gcc2
11792 builtin and then its argument prototype would still apply. */
11797 /* The GNU C library defines this for functions which it implements
11798 to always fail with ENOSYS. Some functions are actually named
11799 something starting with __ and the normal name is an alias. */
11800 #if defined (__stub_socket) || defined (__stub___socket)
11808 if { (eval echo configure:11809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11810 eval "ac_cv_func_socket=yes"
11812 echo "configure: failed program was:" >&5
11813 cat conftest.$ac_ext >&5
11815 eval "ac_cv_func_socket=no"
11819 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11820 echo "$ac_t""yes" 1>&6
11821 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11822 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11823 echo "configure:11824: checking for netinet/in.h" >&5
11825 cat > conftest.$ac_ext <<EOF
11826 #line 11827 "configure"
11827 #include "confdefs.h"
11828 #include <netinet/in.h>
11830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11831 { (eval echo configure:11832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11833 if test -z "$ac_err"; then
11835 eval "ac_cv_header_$ac_safe=yes"
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11841 eval "ac_cv_header_$ac_safe=no"
11844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11845 echo "$ac_t""yes" 1>&6
11846 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11847 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11848 echo "configure:11849: checking for arpa/inet.h" >&5
11850 cat > conftest.$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11853 #include <arpa/inet.h>
11855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11856 { (eval echo configure:11857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11858 if test -z "$ac_err"; then
11860 eval "ac_cv_header_$ac_safe=yes"
11863 echo "configure: failed program was:" >&5
11864 cat conftest.$ac_ext >&5
11866 eval "ac_cv_header_$ac_safe=no"
11869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11870 echo "$ac_t""yes" 1>&6
11872 { test "$extra_verbose" = "yes" && cat << \EOF
11873 Defining HAVE_SOCKETS
11875 cat >> confdefs.h <<\EOF
11876 #define HAVE_SOCKETS 1
11880 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11881 echo "configure:11882: checking "for sun_len member in struct sockaddr_un"" >&5
11882 cat > conftest.$ac_ext <<EOF
11883 #line 11884 "configure"
11884 #include "confdefs.h"
11886 #include <sys/types.h>
11887 #include <sys/socket.h>
11888 #include <sys/un.h>
11891 static struct sockaddr_un x; x.sun_len = 1;
11894 if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11896 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11897 Defining HAVE_SOCKADDR_SUN_LEN
11899 cat >> confdefs.h <<\EOF
11900 #define HAVE_SOCKADDR_SUN_LEN 1
11905 echo "configure: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11908 echo "$ac_t""no" 1>&6
11911 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11912 echo "configure:11913: checking "for ip_mreq struct in netinet/in.h"" >&5
11913 cat > conftest.$ac_ext <<EOF
11914 #line 11915 "configure"
11915 #include "confdefs.h"
11917 #include <sys/types.h>
11918 #include <netinet/in.h>
11921 static struct ip_mreq x;
11924 if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11926 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11927 Defining HAVE_MULTICAST
11929 cat >> confdefs.h <<\EOF
11930 #define HAVE_MULTICAST 1
11935 echo "configure: failed program was:" >&5
11936 cat conftest.$ac_ext >&5
11938 echo "$ac_t""no" 1>&6
11942 echo "$ac_t""no" 1>&6
11946 echo "$ac_t""no" 1>&6
11950 echo "$ac_t""no" 1>&6
11954 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11955 echo "configure:11956: checking for msgget" >&5
11957 cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11960 /* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char msgget(); below. */
11962 #include <assert.h>
11963 /* Override any gcc2 internal prototype to avoid an error. */
11964 /* We use char because int might match the return type of a gcc2
11965 builtin and then its argument prototype would still apply. */
11970 /* The GNU C library defines this for functions which it implements
11971 to always fail with ENOSYS. Some functions are actually named
11972 something starting with __ and the normal name is an alias. */
11973 #if defined (__stub_msgget) || defined (__stub___msgget)
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11983 eval "ac_cv_func_msgget=yes"
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11988 eval "ac_cv_func_msgget=no"
11992 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11993 echo "$ac_t""yes" 1>&6
11994 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
11995 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
11996 echo "configure:11997: checking for sys/ipc.h" >&5
11998 cat > conftest.$ac_ext <<EOF
11999 #line 12000 "configure"
12000 #include "confdefs.h"
12001 #include <sys/ipc.h>
12003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12004 { (eval echo configure:12005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12006 if test -z "$ac_err"; then
12008 eval "ac_cv_header_$ac_safe=yes"
12011 echo "configure: failed program was:" >&5
12012 cat conftest.$ac_ext >&5
12014 eval "ac_cv_header_$ac_safe=no"
12017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12018 echo "$ac_t""yes" 1>&6
12019 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12020 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12021 echo "configure:12022: checking for sys/msg.h" >&5
12023 cat > conftest.$ac_ext <<EOF
12024 #line 12025 "configure"
12025 #include "confdefs.h"
12026 #include <sys/msg.h>
12028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12029 { (eval echo configure:12030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12031 if test -z "$ac_err"; then
12033 eval "ac_cv_header_$ac_safe=yes"
12036 echo "configure: failed program was:" >&5
12037 cat conftest.$ac_ext >&5
12039 eval "ac_cv_header_$ac_safe=no"
12042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12043 echo "$ac_t""yes" 1>&6
12044 { test "$extra_verbose" = "yes" && cat << \EOF
12045 Defining HAVE_SYSVIPC
12047 cat >> confdefs.h <<\EOF
12048 #define HAVE_SYSVIPC 1
12053 echo "$ac_t""no" 1>&6
12057 echo "$ac_t""no" 1>&6
12061 echo "$ac_t""no" 1>&6
12065 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12066 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12067 echo "configure:12068: checking for dirent.h" >&5
12069 cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 #include <dirent.h>
12074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12075 { (eval echo configure:12076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12077 if test -z "$ac_err"; then
12079 eval "ac_cv_header_$ac_safe=yes"
12082 echo "configure: failed program was:" >&5
12083 cat conftest.$ac_ext >&5
12085 eval "ac_cv_header_$ac_safe=no"
12088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12089 echo "$ac_t""yes" 1>&6
12090 { test "$extra_verbose" = "yes" && cat << \EOF
12091 Defining SYSV_SYSTEM_DIR
12093 cat >> confdefs.h <<\EOF
12094 #define SYSV_SYSTEM_DIR 1
12099 echo "$ac_t""no" 1>&6
12100 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12101 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12102 echo "configure:12103: checking for sys/dir.h" >&5
12104 cat > conftest.$ac_ext <<EOF
12105 #line 12106 "configure"
12106 #include "confdefs.h"
12107 #include <sys/dir.h>
12109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12110 { (eval echo configure:12111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12112 if test -z "$ac_err"; then
12114 eval "ac_cv_header_$ac_safe=yes"
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12120 eval "ac_cv_header_$ac_safe=no"
12123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12124 echo "$ac_t""yes" 1>&6
12127 echo "$ac_t""no" 1>&6
12128 { test "$extra_verbose" = "yes" && cat << \EOF
12129 Defining NONSYSTEM_DIR_LIBRARY
12131 cat >> confdefs.h <<\EOF
12132 #define NONSYSTEM_DIR_LIBRARY 1
12141 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12142 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12143 echo "configure:12144: checking for nlist.h" >&5
12145 cat > conftest.$ac_ext <<EOF
12146 #line 12147 "configure"
12147 #include "confdefs.h"
12150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12151 { (eval echo configure:12152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12153 if test -z "$ac_err"; then
12155 eval "ac_cv_header_$ac_safe=yes"
12158 echo "configure: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12161 eval "ac_cv_header_$ac_safe=no"
12164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12165 echo "$ac_t""yes" 1>&6
12166 { test "$extra_verbose" = "yes" && cat << \EOF
12167 Defining NLIST_STRUCT
12169 cat >> confdefs.h <<\EOF
12170 #define NLIST_STRUCT 1
12175 echo "$ac_t""no" 1>&6
12180 echo "checking "for sound support"" 1>&6
12181 echo "configure:12182: checking "for sound support"" >&5
12182 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12184 if test "$with_native_sound" != "no"; then
12185 if test -n "$native_sound_lib"; then
12186 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12187 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12188 echo "configure:12189: checking for multimedia/audio_device.h" >&5
12190 cat > conftest.$ac_ext <<EOF
12191 #line 12192 "configure"
12192 #include "confdefs.h"
12193 #include <multimedia/audio_device.h>
12195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12196 { (eval echo configure:12197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12198 if test -z "$ac_err"; then
12200 eval "ac_cv_header_$ac_safe=yes"
12203 echo "configure: failed program was:" >&5
12204 cat conftest.$ac_ext >&5
12206 eval "ac_cv_header_$ac_safe=no"
12209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12210 echo "$ac_t""yes" 1>&6
12211 sound_found=yes sound_cflags=""
12212 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12213 echo " xemacs will be linked with \"sunplay.o\""
12216 echo "$ac_t""no" 1>&6
12221 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12223 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12224 echo " xemacs will be linked with \"sunplay.o\""
12226 if test -d "/usr/demo/SOUND/include"
12227 then sound_cflags="-I/usr/demo/SOUND/include"
12228 else sound_cflags="-I/usr/demo/SOUND"
12230 if test -z "$native_sound_lib" ; then
12231 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12232 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12233 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12238 if test -z "$sound_found"; then
12239 case "$canonical" in
12241 if test -z "$native_sound_lib"; then
12243 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12244 echo "configure:12245: checking for ALopenport in -laudio" >&5
12245 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12247 xe_check_libs=" -laudio "
12248 cat > conftest.$ac_ext <<EOF
12249 #line 12250 "configure"
12250 #include "confdefs.h"
12251 /* Override any gcc2 internal prototype to avoid an error. */
12252 /* We use char because int might match the return type of a gcc2
12253 builtin and then its argument prototype would still apply. */
12260 if { (eval echo configure:12261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12262 eval "ac_cv_lib_$ac_lib_var=yes"
12264 echo "configure: failed program was:" >&5
12265 cat conftest.$ac_ext >&5
12267 eval "ac_cv_lib_$ac_lib_var=no"
12272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12273 echo "$ac_t""yes" 1>&6
12274 native_sound_lib="-laudio"
12276 echo "$ac_t""no" 1>&6
12281 if test -n "$native_sound_lib"; then
12282 sound_found=yes sound_cflags=""
12283 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12284 echo " xemacs will be linked with \"sgiplay.o\""
12288 if test -z "$native_sound_lib"; then
12290 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12291 echo "configure:12292: checking for AOpenAudio in -lAlib" >&5
12292 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12294 xe_check_libs=" -lAlib "
12295 cat > conftest.$ac_ext <<EOF
12296 #line 12297 "configure"
12297 #include "confdefs.h"
12298 /* Override any gcc2 internal prototype to avoid an error. */
12299 /* We use char because int might match the return type of a gcc2
12300 builtin and then its argument prototype would still apply. */
12307 if { (eval echo configure:12308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12309 eval "ac_cv_lib_$ac_lib_var=yes"
12311 echo "configure: failed program was:" >&5
12312 cat conftest.$ac_ext >&5
12314 eval "ac_cv_lib_$ac_lib_var=no"
12319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12320 echo "$ac_t""yes" 1>&6
12321 native_sound_lib="-lAlib"
12323 echo "$ac_t""no" 1>&6
12328 if test -n "$native_sound_lib"; then
12330 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12331 echo " xemacs will be linked with \"hpplay.o\""
12333 if test "$GCC" = "yes" # Kludge city
12334 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12335 else sound_cflags="+e -I/usr/audio/examples"
12341 if test -z "$sound_found"; then
12342 for dir in "machine" "sys" "linux"; do
12343 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12344 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12345 echo "configure:12346: checking for ${dir}/soundcard.h" >&5
12347 cat > conftest.$ac_ext <<EOF
12348 #line 12349 "configure"
12349 #include "confdefs.h"
12350 #include <${dir}/soundcard.h>
12352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12353 { (eval echo configure:12354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12355 if test -z "$ac_err"; then
12357 eval "ac_cv_header_$ac_safe=yes"
12360 echo "configure: failed program was:" >&5
12361 cat conftest.$ac_ext >&5
12363 eval "ac_cv_header_$ac_safe=no"
12366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12367 echo "$ac_t""yes" 1>&6
12370 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
12371 echo " xemacs will be linked with \"linuxplay.o\""
12373 { test "$extra_verbose" = "yes" && cat << EOF
12374 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
12376 cat >> confdefs.h <<EOF
12377 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
12383 echo "$ac_t""no" 1>&6
12389 if test -z "$sound_found"; then
12390 if test "$with_msw" = "yes"; then
12396 test "$sound_found" = "yes" && with_native_sound=yes
12399 if test "$with_native_sound" = "yes"; then
12400 { test "$extra_verbose" = "yes" && cat << \EOF
12401 Defining HAVE_NATIVE_SOUND
12403 cat >> confdefs.h <<\EOF
12404 #define HAVE_NATIVE_SOUND 1
12408 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
12411 if test "$with_nas_sound" != "no"; then
12412 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12413 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12414 echo "configure:12415: checking for audio/audiolib.h" >&5
12416 cat > conftest.$ac_ext <<EOF
12417 #line 12418 "configure"
12418 #include "confdefs.h"
12419 #include <audio/audiolib.h>
12421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12422 { (eval echo configure:12423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12424 if test -z "$ac_err"; then
12426 eval "ac_cv_header_$ac_safe=yes"
12429 echo "configure: failed program was:" >&5
12430 cat conftest.$ac_ext >&5
12432 eval "ac_cv_header_$ac_safe=no"
12435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12436 echo "$ac_t""yes" 1>&6
12439 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12440 echo "configure:12441: checking for AuOpenServer in -laudio" >&5
12441 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12443 xe_check_libs=" -laudio "
12444 cat > conftest.$ac_ext <<EOF
12445 #line 12446 "configure"
12446 #include "confdefs.h"
12447 /* Override any gcc2 internal prototype to avoid an error. */
12448 /* We use char because int might match the return type of a gcc2
12449 builtin and then its argument prototype would still apply. */
12450 char AuOpenServer();
12456 if { (eval echo configure:12457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12458 eval "ac_cv_lib_$ac_lib_var=yes"
12460 echo "configure: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12463 eval "ac_cv_lib_$ac_lib_var=no"
12468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12469 echo "$ac_t""yes" 1>&6
12472 echo "$ac_t""no" 1>&6
12477 echo "$ac_t""no" 1>&6
12480 if test "$have_nas_sound" = "yes"; then
12482 { test "$extra_verbose" = "yes" && cat << \EOF
12483 Defining HAVE_NAS_SOUND
12485 cat >> confdefs.h <<\EOF
12486 #define HAVE_NAS_SOUND 1
12490 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12491 echo " xemacs will be linked with \"nas.o\""
12493 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12494 cat > conftest.$ac_ext <<EOF
12495 #line 12496 "configure"
12496 #include "confdefs.h"
12497 #include <audio/Xtutil.h>
12499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12500 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12504 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
12505 Defining NAS_NO_ERROR_JUMP
12507 cat >> confdefs.h <<\EOF
12508 #define NAS_NO_ERROR_JUMP 1
12516 test "$with_nas_sound" = "yes" && \
12517 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12522 if test "$with_esd_sound" != "no"; then
12523 # Extract the first word of "esd-config", so it can be a program name with args.
12524 set dummy esd-config; ac_word=$2
12525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12526 echo "configure:12527: checking for $ac_word" >&5
12528 if test -n "$have_esd_config"; then
12529 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12533 for ac_dir in $ac_dummy; do
12534 test -z "$ac_dir" && ac_dir=.
12535 if test -f $ac_dir/$ac_word; then
12536 ac_cv_prog_have_esd_config="yes"
12541 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
12543 have_esd_config="$ac_cv_prog_have_esd_config"
12544 if test -n "$have_esd_config"; then
12545 echo "$ac_t""$have_esd_config" 1>&6
12547 echo "$ac_t""no" 1>&6
12550 if test "$have_esd_config" = "yes"; then
12551 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12552 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
12553 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12554 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12555 echo "configure:12556: checking for esd_play_stream" >&5
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12559 "configure"
12559 #include "confdefs.h"
12560 /* System header to define __stub macros and hopefully few prototypes,
12561 which can conflict with char esd_play_stream(); below. */
12562 #include <assert.h>
12563 /* Override any gcc2 internal prototype to avoid an error. */
12564 /* We use char because int might match the return type of a gcc2
12565 builtin and then its argument prototype would still apply. */
12566 char esd_play_stream();
12570 /* The GNU C library defines this for functions which it implements
12571 to always fail with ENOSYS. Some functions are actually named
12572 something starting with __ and the normal name is an alias. */
12573 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
12581 if { (eval echo configure:12582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12583 eval "ac_cv_func_esd_play_stream=yes"
12585 echo "configure: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12588 eval "ac_cv_func_esd_play_stream=no"
12592 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
12593 echo "$ac_t""yes" 1>&6
12596 echo "$ac_t""no" 1>&6
12597 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
12602 if test "$have_esd_sound" = "yes"; then
12605 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
12606 echo " xemacs will be linked with \"esd.o\""
12608 { test "$extra_verbose" = "yes" && cat << \EOF
12609 Defining HAVE_ESD_SOUND
12611 cat >> confdefs.h <<\EOF
12612 #define HAVE_ESD_SOUND 1
12617 test "$with_esd_sound" = "yes" && \
12618 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12623 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12624 echo " xemacs will be linked with \"miscplay.o\""
12628 test -z "$with_tty" && with_tty=yes
12630 if test "$with_tty" = "yes" ; then
12631 echo "checking for TTY-related features" 1>&6
12632 echo "configure:12633: checking for TTY-related features" >&5
12633 { test "$extra_verbose" = "yes" && cat << \EOF
12636 cat >> confdefs.h <<\EOF
12641 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
12642 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\""
12645 if test -z "$with_ncurses"; then
12647 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12648 echo "configure:12649: checking for tgetent in -lncurses" >&5
12649 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12651 xe_check_libs=" -lncurses "
12652 cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12655 /* Override any gcc2 internal prototype to avoid an error. */
12656 /* We use char because int might match the return type of a gcc2
12657 builtin and then its argument prototype would still apply. */
12664 if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12666 eval "ac_cv_lib_$ac_lib_var=yes"
12668 echo "configure: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12671 eval "ac_cv_lib_$ac_lib_var=no"
12676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12677 echo "$ac_t""yes" 1>&6
12680 echo "$ac_t""no" 1>&6
12686 if test "$with_ncurses" = "yes"; then
12687 { test "$extra_verbose" = "yes" && cat << \EOF
12688 Defining HAVE_NCURSES
12690 cat >> confdefs.h <<\EOF
12691 #define HAVE_NCURSES 1
12695 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12696 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12697 echo "configure:12698: checking for ncurses/curses.h" >&5
12699 cat > conftest.$ac_ext <<EOF
12700 #line 12701 "configure"
12701 #include "confdefs.h"
12702 #include <ncurses/curses.h>
12704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12705 { (eval echo configure:12706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12707 if test -z "$ac_err"; then
12709 eval "ac_cv_header_$ac_safe=yes"
12712 echo "configure: failed program was:" >&5
12713 cat conftest.$ac_ext >&5
12715 eval "ac_cv_header_$ac_safe=no"
12718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12719 echo "$ac_t""yes" 1>&6
12720 curses_h_file=ncurses/curses.h
12722 echo "$ac_t""no" 1>&6
12725 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12726 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12727 echo "configure:12728: checking for ncurses/term.h" >&5
12729 cat > conftest.$ac_ext <<EOF
12730 #line 12731 "configure"
12731 #include "confdefs.h"
12732 #include <ncurses/term.h>
12734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12735 { (eval echo configure:12736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12737 if test -z "$ac_err"; then
12739 eval "ac_cv_header_$ac_safe=yes"
12742 echo "configure: failed program was:" >&5
12743 cat conftest.$ac_ext >&5
12745 eval "ac_cv_header_$ac_safe=no"
12748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12749 echo "$ac_t""yes" 1>&6
12750 term_h_file=ncurses/term.h
12752 echo "$ac_t""no" 1>&6
12755 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12756 echo " xemacs will be linked with \"terminfo.o\""
12758 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12760 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12761 save_c_switch_site="$c_switch_site"
12762 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12763 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12764 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12765 echo "configure:12766: checking for ncurses/curses.h" >&5
12767 cat > conftest.$ac_ext <<EOF
12768 #line 12769 "configure"
12769 #include "confdefs.h"
12770 #include <ncurses/curses.h>
12772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12773 { (eval echo configure:12774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12775 if test -z "$ac_err"; then
12777 eval "ac_cv_header_$ac_safe=yes"
12780 echo "configure: failed program was:" >&5
12781 cat conftest.$ac_ext >&5
12783 eval "ac_cv_header_$ac_safe=no"
12786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12787 echo "$ac_t""yes" 1>&6
12788 curses_h_file=ncurses/curses.h
12790 echo "$ac_t""no" 1>&6
12793 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12794 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12795 else c_switch_site="$save_c_switch_site"
12798 else if test "$have_terminfo" = "yes"; then
12799 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12800 echo " xemacs will be linked with \"terminfo.o\""
12802 if test -n "$libs_termcap"; then
12803 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12805 for lib in curses termlib termcap; do
12807 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12808 echo "configure:12809: checking for tgetent in -l$lib" >&5
12809 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12811 xe_check_libs=" -l$lib "
12812 cat > conftest.$ac_ext <<EOF
12813 #line 12814 "configure"
12814 #include "confdefs.h"
12815 /* Override any gcc2 internal prototype to avoid an error. */
12816 /* We use char because int might match the return type of a gcc2
12817 builtin and then its argument prototype would still apply. */
12824 if { (eval echo configure:12825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12826 eval "ac_cv_lib_$ac_lib_var=yes"
12828 echo "configure: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12831 eval "ac_cv_lib_$ac_lib_var=no"
12836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12837 echo "$ac_t""yes" 1>&6
12838 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12840 echo "$ac_t""no" 1>&6
12846 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12847 echo " xemacs will be linked with \"tparam.o\""
12849 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12850 if test -n "$libs_termcap"; then
12851 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12854 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12855 echo "configure:12856: checking for tgetent in -lcurses" >&5
12856 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12858 xe_check_libs=" -lcurses "
12859 cat > conftest.$ac_ext <<EOF
12860 #line 12861 "configure"
12861 #include "confdefs.h"
12862 /* Override any gcc2 internal prototype to avoid an error. */
12863 /* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12871 if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12873 eval "ac_cv_lib_$ac_lib_var=yes"
12875 echo "configure: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12878 eval "ac_cv_lib_$ac_lib_var=no"
12883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12884 echo "$ac_t""yes" 1>&6
12885 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12887 echo "$ac_t""no" 1>&6
12888 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12889 echo "configure:12890: checking for tgetent in -ltermcap" >&5
12890 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12892 xe_check_libs=" -ltermcap "
12893 cat > conftest.$ac_ext <<EOF
12894 #line 12895 "configure"
12895 #include "confdefs.h"
12896 /* Override any gcc2 internal prototype to avoid an error. */
12897 /* We use char because int might match the return type of a gcc2
12898 builtin and then its argument prototype would still apply. */
12905 if { (eval echo configure:12906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12907 eval "ac_cv_lib_$ac_lib_var=yes"
12909 echo "configure: failed program was:" >&5
12910 cat conftest.$ac_ext >&5
12912 eval "ac_cv_lib_$ac_lib_var=no"
12917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12918 echo "$ac_t""yes" 1>&6
12919 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12921 echo "$ac_t""no" 1>&6
12922 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12923 echo " xemacs will be linked with \"termcap.o\""
12934 { test "$extra_verbose" = "yes" && cat << EOF
12935 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
12937 cat >> confdefs.h <<EOF
12938 #define CURSES_H_FILE "${curses_h_file-curses.h}"
12942 { test "$extra_verbose" = "yes" && cat << EOF
12943 Defining TERM_H_FILE = "${term_h_file-term.h}"
12945 cat >> confdefs.h <<EOF
12946 #define TERM_H_FILE "${term_h_file-term.h}"
12951 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12952 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12953 echo "configure:12954: checking for gpm.h" >&5
12955 cat > conftest.$ac_ext <<EOF
12956 #line 12957 "configure"
12957 #include "confdefs.h"
12960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12961 { (eval echo configure:12962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12963 if test -z "$ac_err"; then
12965 eval "ac_cv_header_$ac_safe=yes"
12968 echo "configure: failed program was:" >&5
12969 cat conftest.$ac_ext >&5
12971 eval "ac_cv_header_$ac_safe=no"
12974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12975 echo "$ac_t""yes" 1>&6
12978 echo "$ac_t""no" 1>&6
12982 test -z "$with_gpm" && {
12983 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12984 echo "configure:12985: checking for Gpm_Open in -lgpm" >&5
12985 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12987 xe_check_libs=" -lgpm "
12988 cat > conftest.$ac_ext <<EOF
12989 #line 12990 "configure"
12990 #include "confdefs.h"
12991 /* Override any gcc2 internal prototype to avoid an error. */
12992 /* We use char because int might match the return type of a gcc2
12993 builtin and then its argument prototype would still apply. */
13000 if { (eval echo configure:13001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13002 eval "ac_cv_lib_$ac_lib_var=yes"
13004 echo "configure: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13007 eval "ac_cv_lib_$ac_lib_var=no"
13012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13013 echo "$ac_t""yes" 1>&6
13016 echo "$ac_t""no" 1>&6
13021 if test "$with_gpm" = "yes"; then
13022 { test "$extra_verbose" = "yes" && cat << \EOF
13025 cat >> confdefs.h <<\EOF
13030 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13031 echo " xemacs will be linked with \"gpmevent.o\""
13033 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13036 else for feature in ncurses gpm; do
13037 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13038 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13040 eval "with_${feature}=no"
13043 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13044 echo " xemacs will be linked with \"event-unixoid.o\""
13048 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13049 != "no no no" && echo "checking for database support" 1>&6
13050 echo "configure:13051: checking for database support" >&5
13052 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13053 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13054 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13055 echo "configure:13056: checking for ndbm.h" >&5
13057 cat > conftest.$ac_ext <<EOF
13058 #line 13059 "configure"
13059 #include "confdefs.h"
13062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13063 { (eval echo configure:13064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13065 if test -z "$ac_err"; then
13067 eval "ac_cv_header_$ac_safe=yes"
13070 echo "configure: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13073 eval "ac_cv_header_$ac_safe=no"
13076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13077 echo "$ac_t""yes" 1>&6
13080 echo "$ac_t""no" 1>&6
13082 test "$with_database_gdbm" = "yes" -o \
13083 "$with_database_dbm" = "yes" && \
13084 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13085 with_database_gdbm=no with_database_dbm=no
13090 if test "$with_database_gdbm" != "no"; then
13092 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13093 echo "configure:13094: checking for dbm_open in -lgdbm" >&5
13094 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13096 xe_check_libs=" -lgdbm "
13097 cat > conftest.$ac_ext <<EOF
13098 #line 13099 "configure"
13099 #include "confdefs.h"
13100 /* Override any gcc2 internal prototype to avoid an error. */
13101 /* We use char because int might match the return type of a gcc2
13102 builtin and then its argument prototype would still apply. */
13109 if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13111 eval "ac_cv_lib_$ac_lib_var=yes"
13113 echo "configure: failed program was:" >&5
13114 cat conftest.$ac_ext >&5
13116 eval "ac_cv_lib_$ac_lib_var=no"
13121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13122 echo "$ac_t""yes" 1>&6
13123 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13125 echo "$ac_t""no" 1>&6
13126 if test "$with_database_gdbm" = "yes"; then
13127 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13129 with_database_gdbm=no
13135 if test "$with_database_dbm" != "no"; then
13136 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13137 echo "configure:13138: checking for dbm_open" >&5
13139 cat > conftest.$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13142 /* System header to define __stub macros and hopefully few prototypes,
13143 which can conflict with char dbm_open(); below. */
13144 #include <assert.h>
13145 /* Override any gcc2 internal prototype to avoid an error. */
13146 /* We use char because int might match the return type of a gcc2
13147 builtin and then its argument prototype would still apply. */
13152 /* The GNU C library defines this for functions which it implements
13153 to always fail with ENOSYS. Some functions are actually named
13154 something starting with __ and the normal name is an alias. */
13155 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13163 if { (eval echo configure:13164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13165 eval "ac_cv_func_dbm_open=yes"
13167 echo "configure: failed program was:" >&5
13168 cat conftest.$ac_ext >&5
13170 eval "ac_cv_func_dbm_open=no"
13174 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13175 echo "$ac_t""yes" 1>&6
13176 with_database_dbm=yes libdbm=
13178 echo "$ac_t""no" 1>&6
13181 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13182 echo "configure:13183: checking for dbm_open in -ldbm" >&5
13183 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13185 xe_check_libs=" -ldbm "
13186 cat > conftest.$ac_ext <<EOF
13187 #line 13188 "configure"
13188 #include "confdefs.h"
13189 /* Override any gcc2 internal prototype to avoid an error. */
13190 /* We use char because int might match the return type of a gcc2
13191 builtin and then its argument prototype would still apply. */
13198 if { (eval echo configure:13199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13200 eval "ac_cv_lib_$ac_lib_var=yes"
13202 echo "configure: failed program was:" >&5
13203 cat conftest.$ac_ext >&5
13205 eval "ac_cv_lib_$ac_lib_var=no"
13210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13211 echo "$ac_t""yes" 1>&6
13212 with_database_dbm=yes libdbm=-ldbm
13214 echo "$ac_t""no" 1>&6
13215 test "$with_database_dbm" = "yes" && \
13216 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13217 with_database_dbm=no
13225 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13226 test "$with_database_gdbm" = "yes" -o \
13227 "$with_database_dbm" = "yes" && \
13228 { test "$extra_verbose" = "yes" && cat << \EOF
13231 cat >> confdefs.h <<\EOF
13237 if test "$with_database_berkdb" != "no"; then
13238 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13239 echo "configure:13240: checking for Berkeley db.h" >&5
13240 for header in "db/db.h" "db.h"; do
13241 cat > conftest.$ac_ext <<EOF
13242 #line 13243 "configure"
13243 #include "confdefs.h"
13245 #include <stdlib.h>
13246 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13247 #ifdef HAVE_INTTYPES_H
13248 #define __BIT_TYPES_DEFINED__
13249 #include <inttypes.h>
13250 typedef uint8_t u_int8_t;
13251 typedef uint16_t u_int16_t;
13252 typedef uint32_t u_int32_t;
13253 #ifdef WE_DONT_NEED_QUADS
13254 typedef uint64_t u_int64_t;
13264 if { (eval echo configure:13265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13266 db_h_file="$header"; break
13268 echo "configure: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13273 if test -z "$db_h_file"
13274 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13275 else echo "$ac_t""$db_h_file" 1>&6
13278 if test "$with_database_berkdb" != "no"; then
13279 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13280 echo "configure:13281: checking for Berkeley DB version" >&5
13281 cat > conftest.$ac_ext <<EOF
13282 #line 13283 "configure"
13283 #include "confdefs.h"
13284 #include <$db_h_file>
13285 #if DB_VERSION_MAJOR > 1
13290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13291 egrep "yes" >/dev/null 2>&1; then
13293 echo "$ac_t""2" 1>&6; dbfunc=db_open
13296 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13300 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13301 echo "configure:13302: checking for $dbfunc" >&5
13303 cat > conftest.$ac_ext <<EOF
13304 #line 13305 "configure"
13305 #include "confdefs.h"
13306 /* System header to define __stub macros and hopefully few prototypes,
13307 which can conflict with char $dbfunc(); below. */
13308 #include <assert.h>
13309 /* Override any gcc2 internal prototype to avoid an error. */
13310 /* We use char because int might match the return type of a gcc2
13311 builtin and then its argument prototype would still apply. */
13316 /* The GNU C library defines this for functions which it implements
13317 to always fail with ENOSYS. Some functions are actually named
13318 something starting with __ and the normal name is an alias. */
13319 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13327 if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13329 eval "ac_cv_func_$dbfunc=yes"
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13334 eval "ac_cv_func_$dbfunc=no"
13338 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13339 echo "$ac_t""yes" 1>&6
13340 with_database_berkdb=yes need_libdb=no
13342 echo "$ac_t""no" 1>&6
13345 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13346 echo "configure:13347: checking for $dbfunc in -ldb" >&5
13347 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13349 xe_check_libs=" -ldb "
13350 cat > conftest.$ac_ext <<EOF
13351 #line 13352 "configure"
13352 #include "confdefs.h"
13353 /* Override any gcc2 internal prototype to avoid an error. */
13354 /* We use char because int might match the return type of a gcc2
13355 builtin and then its argument prototype would still apply. */
13362 if { (eval echo configure:13363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13364 eval "ac_cv_lib_$ac_lib_var=yes"
13366 echo "configure: failed program was:" >&5
13367 cat conftest.$ac_ext >&5
13369 eval "ac_cv_lib_$ac_lib_var=no"
13374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13375 echo "$ac_t""yes" 1>&6
13376 with_database_berkdb=yes need_libdb=yes
13378 echo "$ac_t""no" 1>&6
13386 if test "$with_database_berkdb" = "yes"; then
13387 { test "$extra_verbose" = "yes" && cat << EOF
13388 Defining DB_H_FILE = "$db_h_file"
13390 cat >> confdefs.h <<EOF
13391 #define DB_H_FILE "$db_h_file"
13395 { test "$extra_verbose" = "yes" && cat << \EOF
13396 Defining HAVE_BERKELEY_DB
13398 cat >> confdefs.h <<\EOF
13399 #define HAVE_BERKELEY_DB 1
13403 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
13404 else with_database_berkdb=no
13408 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13409 != "no no no"; then
13410 { test "$extra_verbose" = "yes" && cat << \EOF
13411 Defining HAVE_DATABASE
13413 cat >> confdefs.h <<\EOF
13414 #define HAVE_DATABASE 1
13418 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
13419 echo " xemacs will be linked with \"database.o\""
13423 if test "$with_socks" = "yes"; then
13425 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13426 echo "configure:13427: checking for SOCKSinit in -lsocks" >&5
13427 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13429 xe_check_libs=" -lsocks "
13430 cat > conftest.$ac_ext <<EOF
13431 #line 13432 "configure"
13432 #include "confdefs.h"
13433 /* Override any gcc2 internal prototype to avoid an error. */
13434 /* We use char because int might match the return type of a gcc2
13435 builtin and then its argument prototype would still apply. */
13442 if { (eval echo configure:13443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13444 eval "ac_cv_lib_$ac_lib_var=yes"
13446 echo "configure: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13449 eval "ac_cv_lib_$ac_lib_var=no"
13454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13455 echo "$ac_t""yes" 1>&6
13456 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13457 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13458 { test "$extra_verbose" = "yes" && cat << EOF
13459 Defining $ac_tr_lib
13461 cat >> confdefs.h <<EOF
13462 #define $ac_tr_lib 1
13466 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
13469 echo "$ac_t""no" 1>&6
13473 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
13474 Defining HAVE_SOCKS
13476 cat >> confdefs.h <<\EOF
13477 #define HAVE_SOCKS 1
13483 if test "$usage_tracking" = "yes"; then
13484 { test "$extra_verbose" = "yes" && cat << \EOF
13485 Defining USAGE_TRACKING
13487 cat >> confdefs.h <<\EOF
13488 #define USAGE_TRACKING 1
13492 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13495 if test "$with_modules" != "no"; then
13496 echo "checking for module support" 1>&6
13497 echo "configure:13498: checking for module support" >&5
13499 if test "$with_msw" = "yes"; then
13502 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13503 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13504 echo "configure:13505: checking for dlfcn.h" >&5
13506 cat > conftest.$ac_ext <<EOF
13507 #line 13508 "configure"
13508 #include "confdefs.h"
13511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13512 { (eval echo configure:13513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13514 if test -z "$ac_err"; then
13516 eval "ac_cv_header_$ac_safe=yes"
13519 echo "configure: failed program was:" >&5
13520 cat conftest.$ac_ext >&5
13522 eval "ac_cv_header_$ac_safe=no"
13525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13526 echo "$ac_t""yes" 1>&6
13529 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13530 echo "configure:13531: checking for dlopen in -ldl" >&5
13531 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
13533 xe_check_libs=" -ldl "
13534 cat > conftest.$ac_ext <<EOF
13535 #line 13536 "configure"
13536 #include "confdefs.h"
13537 /* Override any gcc2 internal prototype to avoid an error. */
13538 /* We use char because int might match the return type of a gcc2
13539 builtin and then its argument prototype would still apply. */
13546 if { (eval echo configure:13547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13548 eval "ac_cv_lib_$ac_lib_var=yes"
13550 echo "configure: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13553 eval "ac_cv_lib_$ac_lib_var=no"
13558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13559 echo "$ac_t""yes" 1>&6
13560 have_dl=yes libdl=dl
13562 echo "$ac_t""no" 1>&6
13564 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13565 echo "configure:13566: checking for dlopen in -lc" >&5
13566 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
13568 xe_check_libs=" -lc "
13569 cat > conftest.$ac_ext <<EOF
13570 #line 13571 "configure"
13571 #include "confdefs.h"
13572 /* Override any gcc2 internal prototype to avoid an error. */
13573 /* We use char because int might match the return type of a gcc2
13574 builtin and then its argument prototype would still apply. */
13581 if { (eval echo configure:13582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13583 eval "ac_cv_lib_$ac_lib_var=yes"
13585 echo "configure: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13588 eval "ac_cv_lib_$ac_lib_var=no"
13593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13594 echo "$ac_t""yes" 1>&6
13597 echo "$ac_t""no" 1>&6
13605 echo "$ac_t""no" 1>&6
13608 if test -n "$have_dl"; then
13609 { test "$extra_verbose" = "yes" && cat << \EOF
13610 Defining HAVE_DLOPEN
13612 cat >> confdefs.h <<\EOF
13613 #define HAVE_DLOPEN 1
13619 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13620 echo "configure:13621: checking for shl_load in -ldld" >&5
13621 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13623 xe_check_libs=" -ldld "
13624 cat > conftest.$ac_ext <<EOF
13625 #line 13626 "configure"
13626 #include "confdefs.h"
13627 /* Override any gcc2 internal prototype to avoid an error. */
13628 /* We use char because int might match the return type of a gcc2
13629 builtin and then its argument prototype would still apply. */
13636 if { (eval echo configure:13637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13638 eval "ac_cv_lib_$ac_lib_var=yes"
13640 echo "configure: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13643 eval "ac_cv_lib_$ac_lib_var=no"
13648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13649 echo "$ac_t""yes" 1>&6
13650 libdl=dld have_dl=yes;
13651 { test "$extra_verbose" = "yes" && cat << \EOF
13652 Defining HAVE_SHL_LOAD
13654 cat >> confdefs.h <<\EOF
13655 #define HAVE_SHL_LOAD 1
13660 echo "$ac_t""no" 1>&6
13662 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13663 echo "configure:13664: checking for dld_init in -ldld" >&5
13664 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13666 xe_check_libs=" -ldld "
13667 cat > conftest.$ac_ext <<EOF
13668 #line 13669 "configure"
13669 #include "confdefs.h"
13670 /* Override any gcc2 internal prototype to avoid an error. */
13671 /* We use char because int might match the return type of a gcc2
13672 builtin and then its argument prototype would still apply. */
13679 if { (eval echo configure:13680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13681 eval "ac_cv_lib_$ac_lib_var=yes"
13683 echo "configure: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13686 eval "ac_cv_lib_$ac_lib_var=no"
13691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13692 echo "$ac_t""yes" 1>&6
13693 libdl=dld have_dl=yes;
13694 { test "$extra_verbose" = "yes" && cat << \EOF
13695 Defining HAVE_DLD_INIT
13697 cat >> confdefs.h <<\EOF
13698 #define HAVE_DLD_INIT 1
13703 echo "$ac_t""no" 1>&6
13712 if test -n "$have_dl"; then
13719 ld_dynamic_link_flags=
13721 xealias=$internal_configuration
13723 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13724 echo "configure:13725: checking how to build dynamic libraries for ${xehost}" >&5
13725 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13728 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13731 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13732 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13733 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13735 case "$xehost_os" in
13737 # AIX sometimes has problems with the GCC collect2 program. For some
13738 # reason, if we set the COLLECT_NAMES environment variable, the problems
13739 # vanish in a puff of smoke.
13740 if test "${COLLECT_NAMES+set}" != set; then
13742 export COLLECT_NAMES
13747 # Now see if the compiler is really GCC.
13748 if test "$GCC" = "yes"; then
13751 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13752 echo "configure:13753: checking checking whether we are using GNU C" >&5
13753 cat > conftest.$ac_ext <<EOF
13754 #line 13755 "configure"
13755 #include "confdefs.h"
13762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13763 egrep "yes" >/dev/null 2>&1; then
13772 echo "$ac_t""${XEGCC}" 1>&6
13775 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13776 echo "configure:13777: checking how to produce PIC code" >&5
13779 can_build_shared=yes
13780 if test "$XEGCC" = yes; then
13783 case "$xehost_os" in
13784 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13785 # PIC is the default for these OSes.
13788 aix3* | aix4* | os2*)
13789 # We can build DLLs from non-PIC.
13792 # FIXME: we need at least 68020 code to build shared libraries, but
13793 # adding the `-m68020' flag to GCC prevents building anything better,
13795 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13797 *cygwin* | *mingw* )
13798 # PIC is the default
13805 # PORTME Check for PIC flags for the system compiler.
13806 case "$xehost_os" in
13807 hpux9* | hpux1[0-9]*)
13808 # Is there a better link_static_flag that works with the bundled CC?
13815 # PIC (with -KPIC) is the default.
13819 # We can build DLLs from non-PIC.
13823 # All OSF/1 code is PIC.
13828 dll_cflags='-belf -Kpic'
13862 can_build_shared=no
13867 if test -n "$dll_cflags"; then
13868 echo "$ac_t""${dll_cflags}" 1>&6
13870 # Check to make sure the dll_cflags actually works.
13871 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13872 echo "configure:13873: checking if PIC flag ${dll_cflags} really works" >&5
13873 save_CFLAGS="$CFLAGS"
13874 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13875 cat > conftest.$ac_ext <<EOF
13876 #line 13877 "configure"
13877 #include "confdefs.h"
13883 if { (eval echo configure:13884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13886 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13887 # reports no error. So, we need to grep stderr for (Bundled).
13888 if grep '(Bundled)' config.log >/dev/null; then
13889 echo "$ac_t""no" 1>&6
13890 can_build_shared=no
13893 echo "$ac_t""yes" 1>&6
13896 echo "configure: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13899 echo "$ac_t""no" 1>&6
13900 can_build_shared=no
13904 CFLAGS="$save_CFLAGS"
13906 echo "$ac_t""none" 1>&6
13909 if test "$can_build_shared" = "yes"; then
13913 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13914 echo "configure:13915: checking if C compiler can produce shared libraries" >&5
13915 if test "$XEGCC" = yes; then
13918 else # Not using GCC
13919 case "$xehost_os" in
13921 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13922 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
13925 freebsd2* | netbsd* | openbsd*)
13927 xcldf="${wl}-Bshareable"
13936 xcldf="${wl}-b ${wl}+s"
13939 irix5* | irix6* | osf3* | osf4*)
13940 xcldf="${wl}-shared"
13944 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
13950 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
13951 xldf="-assert pure-text -Bstatic"
13954 fi # End if if we are using gcc
13956 if test -n "$xcldf"; then
13957 save_LDFLAGS=$LDFLAGS
13959 save_xe_libs=$xe_libs
13960 LDFLAGS="$xcldf $LDFLAGS"
13963 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13964 cat > conftest.$ac_ext <<EOF
13965 #line 13966 "configure"
13966 #include "confdefs.h"
13972 if { (eval echo configure:13973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13976 echo "configure: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13982 LDFLAGS=$save_LDFLAGS
13984 xe_libs=$save_xe_libs
13985 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13989 echo "$ac_t""${cc_produces_so}" 1>&6
13992 if test -z "$LTLD"; then
13994 if test "$XEGCC" = yes; then
13995 # Check if gcc -print-prog-name=ld gives a path.
13996 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13997 echo "configure:13998: checking for ld used by GCC" >&5
13998 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14000 # Accept absolute paths.
14002 if test -z "$LTLD"; then
14004 *gcc-lib*) LTLD="$CC"
14012 # If it fails, then pretend we aren't using GCC.
14016 # If it is relative, then search for the first ld in PATH.
14017 with_gnu_ld=unknown
14021 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14022 echo "configure:14023: checking for GNU ld" >&5
14025 if test -z "$LTLD"; then
14026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14027 for ac_dir in $PATH; do
14028 test -z "$ac_dir" && ac_dir=.
14029 if test -f "$ac_dir/$ac_prog"; then
14030 LTLD="$ac_dir/$ac_prog"
14031 # Check to see if the program is GNU ld. I'd rather use --version,
14032 # but apparently some GNU ld's only accept -v.
14033 # Break only if it was the GNU/non-GNU ld that we prefer.
14034 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14044 if test -n "$LTLD"; then
14045 echo "$ac_t""${LTLD}" 1>&6
14047 echo "$ac_t""no" 1>&6
14050 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14051 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14056 ld_dynamic_link_flags=
14058 # Check to see if it really is or isn't GNU ld.
14059 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14060 echo "configure:14061: checking if the linker is GNU ld" >&5
14061 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14062 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14067 echo "$ac_t""${xe_gnu_ld}" 1>&6
14069 case "$xehost_os" in
14070 amigaos* | sunos4*)
14071 # On these operating systems, we should treat GNU ld like the system ld.
14072 gnu_ld_acts_native=yes
14075 gnu_ld_acts_native=no
14079 if test "$cc_produces_so" = "yes"; then
14082 can_build_shared=yes
14085 # OK - only NOW do we futz about with ld.
14086 # See if the linker supports building shared libraries.
14087 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14088 echo "configure:14089: checking whether the linker supports shared libraries" >&5
14090 dll_ldflags=$LDFLAGS
14092 can_build_shared=yes
14093 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14094 # See if GNU ld supports shared libraries.
14095 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14097 dll_ldflags="-shared"
14103 # PORTME fill in a description of your system's linker (not GNU ld)
14104 case "$xehost_os" in
14114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14115 # support. Future versions do this automatically, but an explicit c++rt0.o
14116 # doesn't break anything, and helps significantly (at the cost of a little
14121 dll_post="/usr/lib/c++rt0.o"
14124 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14127 dll_ldflags="-Bshareable"
14130 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14132 dll_ldflags="-shared"
14146 # Tested with NetBSD 1.2 ld
14161 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14162 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14165 *gcc*) dll_ldflags="-shared"
14168 *) dll_ldflags="-G"
14174 if test "$XEGCC" = yes; then
14194 can_build_shared=no
14198 echo "$ac_t""${ld_shlibs}" 1>&6
14199 if test "$ld_shlibs" = "no"; then
14200 can_build_shared=no
14202 fi # End of if cc_produces_so = no
14205 if test "$xe_gnu_ld" = yes; then
14206 if test "$ld_shlibs" = yes; then
14207 ld_dynamic_link_flags="${wl}-export-dynamic"
14211 if test -z "$ld_dynamic_link_flags"; then
14212 case "$xehost_os" in
14214 ld_dynamic_link_flags=
14218 ld_dynamic_link_flags=
14222 ld_dynamic_link_flags=
14226 ld_dynamic_link_flags=
14230 ld_dynamic_link_flags=
14234 ld_dynamic_link_flags="${wl}-E"
14238 ld_dynamic_link_flags=
14242 ld_dynamic_link_flags=
14246 ld_dynamic_link_flags=
14250 ld_dynamic_link_flags=
14253 solaris2* | solaris7*)
14254 ld_dynamic_link_flags=
14257 sco3.2v5* | unixware* | sysv5* | sysv4*)
14258 ld_dynamic_link_flags="${wl}-Bexport"
14262 ld_dynamic_link_flags=
14266 ld_dynamic_link_flags=
14270 ld_dynamic_link_flags=
14274 fi # End of if -z ld_dynamic_link_flags
14275 fi # End of if test "$can_build_shared" = "yes"
14286 if test "$can_build_shared" = "yes"; then
14287 { test "$extra_verbose" = "yes" && cat << \EOF
14288 Defining HAVE_SHLIB
14290 cat >> confdefs.h <<\EOF
14291 #define HAVE_SHLIB 1
14295 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14296 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14298 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14299 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14300 for ac_func in dlerror _dlerror
14302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14303 echo "configure:14304: checking for $ac_func" >&5
14305 cat > conftest.$ac_ext <<EOF
14306 #line 14307 "configure"
14307 #include "confdefs.h"
14308 /* System header to define __stub macros and hopefully few prototypes,
14309 which can conflict with char $ac_func(); below. */
14310 #include <assert.h>
14311 /* Override any gcc2 internal prototype to avoid an error. */
14312 /* We use char because int might match the return type of a gcc2
14313 builtin and then its argument prototype would still apply. */
14318 /* The GNU C library defines this for functions which it implements
14319 to always fail with ENOSYS. Some functions are actually named
14320 something starting with __ and the normal name is an alias. */
14321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14329 if { (eval echo configure:14330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14331 eval "ac_cv_func_$ac_func=yes"
14333 echo "configure: failed program was:" >&5
14334 cat conftest.$ac_ext >&5
14336 eval "ac_cv_func_$ac_func=no"
14340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14341 echo "$ac_t""yes" 1>&6
14342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14343 { test "$extra_verbose" = "yes" && cat << EOF
14344 Defining $ac_tr_func
14346 cat >> confdefs.h <<EOF
14347 #define $ac_tr_func 1
14352 echo "$ac_t""no" 1>&6
14358 if test "$with_modules" = "yes"; then
14359 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14361 echo "configure: warning: "Module support cannot be provided."" 1>&2
14367 cat > conftest.$ac_ext <<EOF
14368 #line 14369 "configure"
14369 #include "confdefs.h"
14370 int main(int c,char *v[]){return 0;}
14372 if { (eval echo configure:14373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14377 echo "configure: failed program was:" >&5
14378 cat conftest.$ac_ext >&5
14382 echo "*** PANIC *** The C compiler can no longer build working executables."
14383 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
14384 echo "*** PANIC *** The most likely reason for this problem is that configure"
14385 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
14386 echo "*** PANIC *** found at run time."
14387 echo "*** PANIC ***"
14388 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
14389 echo "*** PANIC *** On other systems, try telling configure where to find the"
14390 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
14391 echo "*** PANIC ***"
14392 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
14393 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
14394 echo "*** PANIC *** on your system. Don't do that."
14399 if test "$win32_processes" = "yes"; then
14400 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
14401 echo " xemacs will be linked with \"process-nt.o\""
14404 { test "$extra_verbose" = "yes" && cat << \EOF
14405 Defining HAVE_UNIX_PROCESSES
14407 cat >> confdefs.h <<\EOF
14408 #define HAVE_UNIX_PROCESSES 1
14412 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
14413 echo " xemacs will be linked with \"process-unix.o\""
14420 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14425 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14430 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
14431 c_switch_general="$T"
14435 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14436 c_switch_window_system="$T"
14440 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14445 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
14446 ld_switch_general="$T"
14450 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14451 ld_switch_window_system="$T"
14455 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14460 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14461 ld_libs_general="$T"
14465 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
14466 ld_libs_window_system="$T"
14470 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14475 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14476 internal_makefile_list="Makefile.in"
14477 SUBDIR_MAKEFILES=''
14478 test -d lock || mkdir lock
14479 for dir in $MAKE_SUBDIR; do
14480 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
14481 test -d "$d" || mkdir "$d"; cd "$d"
14483 * ) test -d "$dir" || mkdir "$dir" ;;
14487 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14488 SUBDIR_MAKEFILES="$T"
14492 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14493 internal_makefile_list="$T"
14500 for dir in src/s src/m; do
14501 if test ! -d "$dir" ; then
14502 echo Making symbolic link to "$srcdir/$dir"
14503 ${LN_S} "$srcdir/$dir" "$dir"
14507 if test "$extra_verbose" = "yes"; then
14509 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
14514 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
14515 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
14516 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
14519 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
14520 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
14521 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
14524 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
14525 test "$extra_verbose" = "yes" && echo "creating TAGS"
14527 $srcdir/TAGS,include" > "TAGS"
14530 if test "$__SUNPRO_C" = "yes"; then
14531 test "$extra_verbose" = "yes" && echo "creating .sbinit"
14532 ( echo "# For use with Sun WorkShop's Source browser."
14533 echo "# See sbquery(1) and sbinit(4) for more information"
14534 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14561 *\$* ) eval "PREFIX=$PREFIX" ;;
14569 EXEC_PREFIX=$exec_prefix
14571 case "$EXEC_PREFIX" in
14572 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
14583 *\$* ) eval "INFODIR=$INFODIR" ;;
14593 case "$INFOPATH" in
14594 *\$* ) eval "INFOPATH=$INFOPATH" ;;
14602 PACKAGE_PATH=$package_path
14604 case "$PACKAGE_PATH" in
14605 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
14616 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14624 MODULEDIR=$moduledir
14626 case "$MODULEDIR" in
14627 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14635 SITELISPDIR=$sitelispdir
14637 case "$SITELISPDIR" in
14638 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14646 SITEMODULEDIR=$sitemoduledir
14648 case "$SITEMODULEDIR" in
14649 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14660 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14671 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14679 ARCHLIBDIR=$archlibdir
14681 case "$ARCHLIBDIR" in
14682 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14706 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14714 : ${XEMACS_CC:=$CC}
14717 if test "$with_prefix" = "yes"; then
14718 { test "$extra_verbose" = "yes" && cat << \EOF
14719 Defining PREFIX_USER_DEFINED
14721 cat >> confdefs.h <<\EOF
14722 #define PREFIX_USER_DEFINED 1
14728 if test "$with_site_lisp" = "no"; then
14729 { test "$extra_verbose" = "yes" && cat << \EOF
14730 Defining INHIBIT_SITE_LISP
14732 cat >> confdefs.h <<\EOF
14733 #define INHIBIT_SITE_LISP 1
14738 if test "$with_site_modules" = "no"; then
14739 { test "$extra_verbose" = "yes" && cat << \EOF
14740 Defining INHIBIT_SITE_MODULES
14742 cat >> confdefs.h <<\EOF
14743 #define INHIBIT_SITE_MODULES 1
14751 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14752 ac_configure_args="$T"
14754 { test "$extra_verbose" = "yes" && cat << EOF
14755 Defining EMACS_CONFIGURATION = "$configuration"
14757 cat >> confdefs.h <<EOF
14758 #define EMACS_CONFIGURATION "$configuration"
14762 { test "$extra_verbose" = "yes" && cat << EOF
14763 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14765 cat >> confdefs.h <<EOF
14766 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14773 { test "$extra_verbose" = "yes" && cat << EOF
14774 Defining LD_SWITCH_X_SITE = $null_string
14776 cat >> confdefs.h <<EOF
14777 #define LD_SWITCH_X_SITE $null_string
14781 { test "$extra_verbose" = "yes" && cat << EOF
14782 Defining LD_SWITCH_X_SITE_AUX = $null_string
14784 cat >> confdefs.h <<EOF
14785 #define LD_SWITCH_X_SITE_AUX $null_string
14789 { test "$extra_verbose" = "yes" && cat << EOF
14790 Defining C_SWITCH_X_SITE = $null_string
14792 cat >> confdefs.h <<EOF
14793 #define C_SWITCH_X_SITE $null_string
14797 { test "$extra_verbose" = "yes" && cat << EOF
14798 Defining LD_SWITCH_SITE = $null_string
14800 cat >> confdefs.h <<EOF
14801 #define LD_SWITCH_SITE $null_string
14805 { test "$extra_verbose" = "yes" && cat << EOF
14806 Defining C_SWITCH_SITE = $null_string
14808 cat >> confdefs.h <<EOF
14809 #define C_SWITCH_SITE $null_string
14815 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14816 Defining GNU_MALLOC
14818 cat >> confdefs.h <<\EOF
14819 #define GNU_MALLOC 1
14823 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14824 Defining USE_SYSTEM_MALLOC
14826 cat >> confdefs.h <<\EOF
14827 #define USE_SYSTEM_MALLOC 1
14831 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14832 Defining USE_DEBUG_MALLOC
14834 cat >> confdefs.h <<\EOF
14835 #define USE_DEBUG_MALLOC 1
14839 { test "$extra_verbose" = "yes" && cat << \EOF
14840 Defining USE_SYSTEM_MALLOC
14842 cat >> confdefs.h <<\EOF
14843 #define USE_SYSTEM_MALLOC 1
14848 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14851 cat >> confdefs.h <<\EOF
14856 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14859 cat >> confdefs.h <<\EOF
14864 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14865 Defining EXTERNAL_WIDGET
14867 cat >> confdefs.h <<\EOF
14868 #define EXTERNAL_WIDGET 1
14872 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14873 Defining QUICK_BUILD
14875 cat >> confdefs.h <<\EOF
14876 #define QUICK_BUILD 1
14880 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14883 cat >> confdefs.h <<\EOF
14888 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14891 cat >> confdefs.h <<\EOF
14896 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14897 Defining MAIL_USE_POP
14899 cat >> confdefs.h <<\EOF
14900 #define MAIL_USE_POP 1
14904 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14907 cat >> confdefs.h <<\EOF
14912 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14915 cat >> confdefs.h <<\EOF
14920 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14921 Defining USE_UNION_TYPE
14923 cat >> confdefs.h <<\EOF
14924 #define USE_UNION_TYPE 1
14928 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14931 cat >> confdefs.h <<\EOF
14939 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
14941 echo "uname -a: `uname -a`"
14944 echo "$0 $quoted_arguments"
14947 if test ! -z ${emacs_beta_version} ; then
14948 if test -z "${emacs_is_beta}" ; then
14949 xemacs_betaname=".${emacs_beta_version}"
14951 xemacs_betaname="-b${emacs_beta_version}"
14960 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
14963 Compilation / Installation:"
14964 echo " Source code location: $srcdir"
14965 echo " Installation prefix: $prefix"
14966 if test -n "$site_includes"; then
14967 echo " Additional header files: $site_includes"
14969 if test -n "$site_libraries"; then
14970 echo " Additional libraries: $site_libraries"
14972 if test -n "$site_prefixes"; then
14973 echo " Additional prefixes: $site_prefixes"
14975 if test -n "$runpath"; then
14976 echo " Runtime library search path: $runpath"
14979 if test -n "$opsysfile"
14980 then echo " Operating system description file: \`$opsysfile'"
14981 else echo " Not using any operating system description file"
14983 if test -n "$machfile"
14984 then echo " Machine description file: \`$machfile'"
14985 else echo " Not using any machine description file"
14988 echo " Compiler: $CC $CFLAGS"
14989 echo " Relocating allocator for buffers: $rel_alloc"
14990 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
14994 if test "$with_msw" = "yes"; then
14995 echo " Compiling in support for the Microsoft window system."
14997 if test "$with_x11" = "yes"; then
14998 echo " Compiling in support for the X window system:"
14999 echo " - X Windows headers location: $x_includes"
15000 echo " - X Windows libraries location: $x_libraries"
15001 if test "$with_xauth" != yes; then
15002 echo " - Xau (X authority) not available."
15004 if test "$with_xmu" != yes; then
15005 echo " - Xmu library not available; substituting equivalent routines."
15007 if test "$with_wmcommand" != no; then
15008 echo " - Handling WM_COMMAND properly."
15011 if test "$need_athena" = "yes"; then
15012 echo " Compiling in support for the Athena widget set:"
15013 echo " - Athena headers location: $athena_h_path"
15014 echo " - Athena library to link: $athena_lib"
15016 case "$with_menubars" in
15017 lucid ) echo " Using Lucid menubars." ;;
15018 motif ) echo " Using Motif menubars."
15019 echo " *WARNING* The Motif menubar implementation is currently buggy."
15020 echo " We recommend using the Lucid menubar instead."
15021 echo " Re-run configure with --with-menubars='lucid'." ;;
15022 msw ) echo " Using MS-Windows menubars." ;;
15024 case "$with_scrollbars" in
15025 lucid ) echo " Using Lucid scrollbars." ;;
15026 motif ) echo " Using Motif scrollbars." ;;
15027 athena ) echo " Using Athena scrollbars." ;;
15028 msw ) echo " Using MS-Windows scrollbars." ;;
15030 case "$with_dialogs" in
15031 motif ) echo " Using Motif dialog boxes."
15032 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15033 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15034 echo " We recommend using the Athena dialog boxes instead."
15035 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15036 echo " Read the PROBLEMS file for more information."
15038 athena ) echo " Using Athena dialog boxes." ;;
15039 msw ) echo " Using MS-Windows dialog boxes." ;;
15041 case "$with_widgets" in
15042 motif ) echo " Using Motif native widgets." ;;
15043 athena ) echo " Using Athena native widgets." ;;
15044 msw ) echo " Using MS-Windows native widgets." ;;
15046 if test "$with_dragndrop" = yes; then
15047 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15048 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15053 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15054 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15058 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15059 if test "$with_xpm" = yes; then
15060 echo " Compiling in support for XPM images."
15061 elif test "$with_x11" = yes; then
15062 echo " WARNING: -----------------------------------------------------------"
15063 echo " WARNING: Compiling without XPM image support."
15064 if test "$xpm_problem" != ""; then
15065 echo " Reason: $xpm_problem"
15067 echo " WARNING: You should strongly consider installing XPM."
15068 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15069 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15070 echo " WARNING: -----------------------------------------------------------"
15072 if test "$with_png" = yes; then
15073 echo " Compiling in support for PNG images."
15074 elif test "$window_system" != "none"; then
15075 echo " WARNING: -----------------------------------------------------------"
15076 echo " WARNING: Compiling without PNG image support."
15077 if test "$png_problem" != ""; then
15078 echo " Reason: $png_problem"
15080 echo " WARNING: You should strongly consider installing the PNG libraries."
15081 echo " WARNING: Otherwise certain images and glyphs may not display."
15082 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15083 echo " WARNING: -----------------------------------------------------------"
15085 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15086 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15087 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15091 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15092 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15093 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15094 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15098 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15099 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15100 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15101 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15102 if test "$with_postgresql" = yes; then
15103 echo " Compiling in support for PostgreSQL."
15104 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15105 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15109 Internationalization:"
15110 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15111 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15112 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15113 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15114 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15115 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15116 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15117 if test "$with_wnn" = yes; then
15118 echo " Compiling in support for the WNN input method on Mule."
15119 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15121 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15125 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15126 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15127 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15128 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15132 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15133 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15134 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15135 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15136 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15137 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15138 test "$pdump" = yes && echo " Using the new portable dumper."
15139 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15140 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15141 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15142 != "no no no no no no"; then
15143 echo " WARNING: ---------------------------------------------------------"
15144 echo " WARNING: Compiling in support for runtime error checking."
15145 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15146 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15147 echo " WARNING: ---------------------------------------------------------"
15150 ) | tee -a Installation
15154 # Remove any trailing slashes in these variables.
15155 test -n "$prefix" &&
15156 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15157 test -n "$exec_prefix" &&
15158 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15161 for file in $internal_makefile_list; do
15162 test "$file" = src/Makefile.in && \
15163 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15164 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15166 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15167 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
15171 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15174 # Let make expand exec_prefix.
15175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15177 # Any assignment to VPATH causes Sun make to only execute
15178 # the first set of double-colon rules, so remove it if not needed.
15179 # If there is a colon in the path, we need to keep it.
15180 if test "x$srcdir" = x.; then
15181 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15184 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15186 DEFS=-DHAVE_CONFIG_H
15188 # Without the "./", some shells look in PATH for config.status.
15189 : ${CONFIG_STATUS=./config.status}
15191 echo creating $CONFIG_STATUS
15192 rm -f $CONFIG_STATUS
15193 cat > $CONFIG_STATUS <<EOF
15195 # Generated automatically by configure.
15196 # Run this file to recreate the current configuration.
15197 # This directory was configured as follows,
15198 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15200 # $0 $ac_configure_args
15202 # Compiler output produced by configure, useful for debugging
15203 # configure, is in ./config.log if it exists.
15205 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15208 case "\$ac_option" in
15209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15210 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15211 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15212 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15213 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15215 -help | --help | --hel | --he | --h)
15216 echo "\$ac_cs_usage"; exit 0 ;;
15217 *) echo "\$ac_cs_usage"; exit 1 ;;
15221 ac_given_srcdir=$srcdir
15222 ac_given_INSTALL="$INSTALL"
15224 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15226 cat >> $CONFIG_STATUS <<EOF
15228 # Protect against being on the right side of a sed subst in config.status.
15229 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15230 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15234 s%@CFLAGS@%$CFLAGS%g
15235 s%@CPPFLAGS@%$CPPFLAGS%g
15236 s%@CXXFLAGS@%$CXXFLAGS%g
15237 s%@FFLAGS@%$FFLAGS%g
15239 s%@LDFLAGS@%$LDFLAGS%g
15241 s%@exec_prefix@%$exec_prefix%g
15242 s%@prefix@%$prefix%g
15243 s%@program_transform_name@%$program_transform_name%g
15244 s%@bindir@%$bindir%g
15245 s%@sbindir@%$sbindir%g
15246 s%@libexecdir@%$libexecdir%g
15247 s%@datadir@%$datadir%g
15248 s%@sysconfdir@%$sysconfdir%g
15249 s%@sharedstatedir@%$sharedstatedir%g
15250 s%@localstatedir@%$localstatedir%g
15251 s%@libdir@%$libdir%g
15252 s%@includedir@%$includedir%g
15253 s%@oldincludedir@%$oldincludedir%g
15254 s%@infodir@%$infodir%g
15255 s%@mandir@%$mandir%g
15257 s%@blddir@%$blddir%g
15260 s%@start_flags@%$start_flags%g
15261 s%@ld_switch_shared@%$ld_switch_shared%g
15262 s%@start_files@%$start_files%g
15264 s%@lib_gcc@%$lib_gcc%g
15265 s%@RANLIB@%$RANLIB%g
15266 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15267 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15268 s%@INSTALL_DATA@%$INSTALL_DATA%g
15270 s%@SET_MAKE@%$SET_MAKE%g
15271 s%@X_CFLAGS@%$X_CFLAGS%g
15272 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15273 s%@X_LIBS@%$X_LIBS%g
15274 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15275 s%@install_pp@%$install_pp%g
15276 s%@libs_xauth@%$libs_xauth%g
15277 s%@dnd_objs@%$dnd_objs%g
15278 s%@lwlib_objs@%$lwlib_objs%g
15279 s%@ALLOCA@%$ALLOCA%g
15280 s%@have_esd_config@%$have_esd_config%g
15281 s%@dll_ld@%$dll_ld%g
15282 s%@dll_cflags@%$dll_cflags%g
15283 s%@dll_ldflags@%$dll_ldflags%g
15284 s%@dll_post@%$dll_post%g
15285 s%@dll_ldo@%$dll_ldo%g
15286 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15287 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15288 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15289 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15290 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15291 s%@PROGNAME@%$PROGNAME%g
15292 s%@version@%$version%g
15293 s%@configuration@%$configuration%g
15294 s%@canonical@%$canonical%g
15295 s%@inststaticdir@%$inststaticdir%g
15296 s%@instvardir@%$instvardir%g
15297 s%@srcdir@%$srcdir%g
15298 s%@pkgdir@%$pkgdir%g
15299 s%@statedir@%$statedir%g
15300 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15301 s%@PREFIX@%$PREFIX%g
15302 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15303 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15304 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15305 s%@INFODIR@%$INFODIR%g
15306 s%@infopath@%$infopath%g
15307 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15308 s%@INFOPATH@%$INFOPATH%g
15309 s%@package_path@%$package_path%g
15310 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15311 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15312 s%@lispdir@%$lispdir%g
15313 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15314 s%@LISPDIR@%$LISPDIR%g
15315 s%@moduledir@%$moduledir%g
15316 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15317 s%@MODULEDIR@%$MODULEDIR%g
15318 s%@sitelispdir@%$sitelispdir%g
15319 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15320 s%@SITELISPDIR@%$SITELISPDIR%g
15321 s%@sitemoduledir@%$sitemoduledir%g
15322 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15323 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15324 s%@etcdir@%$etcdir%g
15325 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15326 s%@ETCDIR@%$ETCDIR%g
15327 s%@docdir@%$docdir%g
15328 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15329 s%@DOCDIR@%$DOCDIR%g
15330 s%@archlibdir@%$archlibdir%g
15331 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15332 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15333 s%@bitmapdir@%$bitmapdir%g
15334 s%@extra_objs@%$extra_objs%g
15335 s%@machfile@%$machfile%g
15336 s%@opsysfile@%$opsysfile%g
15337 s%@c_switch_general@%$c_switch_general%g
15338 s%@c_switch_window_system@%$c_switch_window_system%g
15339 s%@c_switch_all@%$c_switch_all%g
15340 s%@ld_switch_general@%$ld_switch_general%g
15341 s%@ld_switch_window_system@%$ld_switch_window_system%g
15342 s%@ld_switch_all@%$ld_switch_all%g
15343 s%@ld_libs_general@%$ld_libs_general%g
15344 s%@ld_libs_window_system@%$ld_libs_window_system%g
15345 s%@ld_libs_all@%$ld_libs_all%g
15346 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15347 s%@native_sound_lib@%$native_sound_lib%g
15348 s%@sound_cflags@%$sound_cflags%g
15349 s%@dynodump_arch@%$dynodump_arch%g
15350 s%@XEMACS_CC@%$XEMACS_CC%g
15351 s%@internal_makefile_list@%$internal_makefile_list%g
15356 cat >> $CONFIG_STATUS <<\EOF
15358 # Split the substitutions into bite-sized pieces for seds with
15359 # small command number limits, like on Digital OSF/1 and HP-UX.
15360 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15361 ac_file=1 # Number of current file.
15362 ac_beg=1 # First line for current file.
15363 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15366 while $ac_more_lines; do
15367 if test $ac_beg -gt 1; then
15368 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15370 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15372 if test ! -s conftest.s$ac_file; then
15373 ac_more_lines=false
15374 rm -f conftest.s$ac_file
15376 if test -z "$ac_sed_cmds"; then
15377 ac_sed_cmds="sed -f conftest.s$ac_file"
15379 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15381 ac_file=`expr $ac_file + 1`
15383 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15386 if test -z "$ac_sed_cmds"; then
15391 cat >> $CONFIG_STATUS <<EOF
15393 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
15395 cat >> $CONFIG_STATUS <<\EOF
15396 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15399 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15400 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15401 *) ac_file_in="${ac_file}.in" ;;
15404 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15406 # Remove last slash and all that follows it. Not all systems have dirname.
15407 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15408 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15409 # The file is in a subdirectory.
15410 test ! -d "$ac_dir" && mkdir "$ac_dir"
15411 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15412 # A "../" for each directory in $ac_dir_suffix.
15413 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15415 ac_dir_suffix= ac_dots=
15418 case "$ac_given_srcdir" in
15420 if test -z "$ac_dots"; then top_srcdir=.
15421 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15422 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15423 *) # Relative path.
15424 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15425 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15428 case "$ac_given_INSTALL" in
15429 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15430 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15433 echo creating "$ac_file"
15435 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15437 *Makefile*) ac_comsub="1i\\
15438 # $configure_input" ;;
15442 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15444 s%@configure_input@%$configure_input%g
15445 s%@srcdir@%$srcdir%g
15446 s%@top_srcdir@%$top_srcdir%g
15447 s%@INSTALL@%$INSTALL%g
15448 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15452 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15453 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15455 # ac_d sets the value in "#define NAME VALUE" lines.
15456 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15457 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15460 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15461 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15462 ac_uB='\([ ]\)%\1#\2define\3'
15465 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15466 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15467 ac_eB='$%\1#\2define\3'
15471 if test "${CONFIG_HEADERS+set}" != set; then
15473 cat >> $CONFIG_STATUS <<EOF
15474 CONFIG_HEADERS="src/config.h lwlib/config.h"
15476 cat >> $CONFIG_STATUS <<\EOF
15478 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15479 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15481 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15482 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15483 *) ac_file_in="${ac_file}.in" ;;
15486 echo creating $ac_file
15488 rm -f conftest.frag conftest.in conftest.out
15489 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15490 cat $ac_file_inputs > conftest.in
15494 # Transform confdefs.h into a sed script conftest.vals that substitutes
15495 # the proper values into config.h.in to produce config.h. And first:
15496 # Protect against being on the right side of a sed subst in config.status.
15497 # Protect against being in an unquoted here document in config.status.
15498 rm -f conftest.vals
15499 cat > conftest.hdr <<\EOF
15502 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15506 sed -n -f conftest.hdr confdefs.h > conftest.vals
15509 # This sed command replaces #undef with comments. This is necessary, for
15510 # example, in the case of _POSIX_SOURCE, which is predefined and required
15511 # on some systems where configure will not decide to define it.
15512 cat >> conftest.vals <<\EOF
15513 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15516 # Break up conftest.vals because some shells have a limit on
15517 # the size of here documents, and old seds have small limits too.
15519 rm -f conftest.tail
15522 ac_lines=`grep -c . conftest.vals`
15523 # grep -c gives empty output for an empty file on some AIX systems.
15524 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15525 # Write a limited-size here document to conftest.frag.
15526 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15527 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15529 sed -f conftest.frag conftest.in > conftest.out
15531 mv conftest.out conftest.in
15532 ' >> $CONFIG_STATUS
15533 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15534 rm -f conftest.vals
15535 mv conftest.tail conftest.vals
15537 rm -f conftest.vals
15539 cat >> $CONFIG_STATUS <<\EOF
15540 rm -f conftest.frag conftest.h
15541 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15542 cat conftest.in >> conftest.h
15544 if cmp -s $ac_file conftest.h 2>/dev/null; then
15545 echo "$ac_file is unchanged"
15548 # Remove last slash and all that follows it. Not all systems have dirname.
15549 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15550 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15551 # The file is in a subdirectory.
15552 test ! -d "$ac_dir" && mkdir "$ac_dir"
15555 mv conftest.h $ac_file
15560 cat >> $CONFIG_STATUS <<EOF
15562 top_srcdir="$srcdir"
15563 MAKE_SUBDIR="$MAKE_SUBDIR"
15566 cat >> $CONFIG_STATUS <<\EOF
15567 for dir in . $MAKE_SUBDIR; do
15572 sed -e '/^# Generated/d' \
15573 -e 's%/\*\*/#.*%%' \
15588 echo creating $dir/Makefile
15589 $CPP -I. -I${top_srcdir}/src junk.c \
15590 | sed -e 's/^\#.*//' \
15591 -e 's/^[ ][ ]*$//'\
15599 chmod 444 Makefile.new
15600 mv -f Makefile.new Makefile
15602 echo creating $dir/GNUmakefile
15603 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
15604 | sed -e 's/^\#.*//' \
15605 -e 's/^[ ][ ]*$//'\
15613 chmod 444 Makefile.new
15614 mv -f Makefile.new GNUmakefile
15620 sed < config.status >> lib-src/config.values \
15621 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15622 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15623 -e 's/^\([^ ]*\) $/\1 ""/' \
15629 chmod +x $CONFIG_STATUS
15630 rm -fr confdefs* $ac_clean_files
15631 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1