3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
95 SHELL=${CONFIG_SHELL-/bin/sh}
98 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
100 # File descriptor usage:
103 # 2 errors and warnings
104 # 3 some systems may open it to /dev/tty
105 # 4 used on the Kubota Titan
106 # 6 checking for... messages and results
107 # 5 compiler messages saved in config.log
108 if test "$silent" = yes; then
116 This file contains any messages produced by compilers while
117 running configure, to aid debugging if configure makes a mistake.
120 # Strip out --no-create and --no-recursion so they do not pile up.
121 # Also quote any args containing shell metacharacters.
126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
127 | --no-cr | --no-c) ;;
128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
131 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
132 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
137 # Only set these to C if already set. These must not be set unconditionally
138 # because not all systems understand e.g. LANG=C (notably SCO).
139 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
140 # Non-C LC_CTYPE values break the ctype check.
141 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
142 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
143 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
144 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
147 rm -rf conftest* confdefs.h
148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
151 # A filename unique to this package, relative to the directory that
152 # configure is in, which we can look for to find out if srcdir is correct.
153 ac_unique_file=src/lisp.h
155 # Find the source files, if location was not specified.
156 if test -z "$srcdir"; then
157 ac_srcdir_defaulted=yes
158 # Try the directory containing this script, then its parent.
160 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
161 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
163 if test ! -r $srcdir/$ac_unique_file; then
167 ac_srcdir_defaulted=no
169 if test ! -r $srcdir/$ac_unique_file; then
170 if test "$ac_srcdir_defaulted" = yes; then
171 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
173 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
176 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
178 # Prefer explicitly selected file to automatically selected ones.
179 if test -z "$CONFIG_SITE"; then
180 if test "x$prefix" != xNONE; then
181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
186 for ac_site_file in $CONFIG_SITE; do
187 if test -r "$ac_site_file"; then
188 echo "loading site script $ac_site_file"
195 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
196 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
197 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
198 ac_cpp='$CPP '"$xe_cppflags"
199 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
200 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
205 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
206 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
207 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
214 ac_n= ac_c='\c' ac_t=
218 progname="`echo $0 | sed 's:^\./\./:\./:'`"
221 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
222 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
225 exec_prefix='${prefix}'
226 bindir='${exec_prefix}/bin'
227 datadir='${prefix}/lib'
228 statedir='${prefix}/lib'
229 libdir='${exec_prefix}/lib'
230 mandir='${prefix}/man/man1'
231 inststaticdir='${PROGNAME}'
232 instvardir='${PROGNAME}-${version}'
233 infodir='${datadir}/${instvardir}/info'
236 lispdir='${datadir}/${instvardir}/lisp'
237 moduledir='${datadir}/${instvardir}/${configuration}/modules'
238 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
239 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
240 pkgdir='${datadir}/${instvardir}/lisp'
242 etcdir='${datadir}/${instvardir}/etc'
243 lockdir='${statedir}/${inststaticdir}/lock'
244 archlibdir='${datadir}/${instvardir}/${configuration}'
245 docdir='${archlibdir}'
248 with_site_modules='yes'
254 cpp='' cppflags='' libs='' ldflags=''
259 with_system_malloc='default'
260 with_dlmalloc='default'
275 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 | --no-cr | --no-c) ;;
281 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
284 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
285 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
289 while test $# != 0; do
292 --no-create|--no-recursion) ;;
296 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
297 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
301 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
302 val="yes" valomitted=yes
307 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
309 case "${valomitted}-${opt}" in yes-without_* )
310 opt=`echo $opt | sed 's/without/with/'`
311 valomitted="no" val="no" ;;
318 with_site_modules | \
370 memory_usage_stats | \
371 with_clash_detection | \
375 y | ye | yes ) val=yes ;;
377 * ) (echo "$progname: Usage error:"
378 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
379 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
381 eval "$opt=\"$val\"" ;;
399 site_runtime_libraries )
400 if test "$valomitted" = "yes" ; then
401 if test "$#" = 0 ; then
402 (echo "$progname: Usage error:"
403 echo " " "The \`--$optname' option requires a value."
404 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
413 with_debug_malloc | use_debug_malloc | \
414 with_system_malloc | use_system_malloc )
416 y | ye | yes ) val=yes ;;
418 d | de | def | defa | defau | defaul | default ) val=default ;;
419 * ) (echo "$progname: Usage error:"
420 echo " " "The \`--$optname' option requires one of these values:
421 \`yes', \`no', or \`default'."
422 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
424 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
429 with_database_berkdb=no
431 with_database_gdbm=no
432 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
435 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
436 d | db | dbm ) with_database_dbm=yes ;;
437 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
438 * ) (echo "$progname: Usage error:"
439 echo " " "The \`--$optname' option value
440 must be either \`no' or a comma-separated list
441 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
445 if test "$with_database_dbm" = "yes" -a \
446 "$with_database_gdbm" = "yes"; then
447 (echo "$progname: Usage error:"
448 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
449 with the \`--$optname' option."
450 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
455 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
457 n | no | non | none ) new_sdefault=no ;;
458 a | al | all | both ) new_sdefault=yes ;;
460 native ) with_native_sound=yes ;;
461 nonative ) with_native_sound=no ;;
463 nas ) with_nas_sound=yes ;;
464 nonas ) with_nas_sound=no ;;
466 esd ) with_esd_sound=yes ;;
467 noesd ) with_esd_sound=no ;;
469 * ) bogus_sound=yes ;;
471 if test "$bogus_sound" -o \
472 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
473 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
474 (echo "$progname: Usage error:"
475 echo " " "Valid types for the \`--$optname' option are:
477 The default is to autodetect all sound support."
478 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
479 elif test -n "$new_sdefault" ; then
480 with_native_sound=$new_sdefault
481 with_nas_sound=$new_sdefault
482 with_esd_sound=$new_sdefault
483 new_sdefault= # reset this
491 xa | xaw ) val=xaw ;;
492 3 | 3d | xaw3d ) val=3d ;;
493 ne | nex | next | naxtaw) val=next ;;
494 9 | 95 | xaw95 ) val=95 ;;
495 xp | xpm | xawxpm ) val=xpm ;;
496 * ) (echo "$progname: Usage error:"
497 echo " " "The \`--$optname' option must have one of these values:
498 \`xaw', \`3d', \`next', \`95', or \`xpm'."
499 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
506 y | ye | yes ) val=yes ;;
507 n | no | non | none ) val=no ;;
508 x | xl | xli | xlib ) val=xlib ;;
509 m | mo | mot | moti | motif ) val=motif ;;
510 * ) (echo "$progname: Usage error:"
511 echo " " "The \`--$optname' option must have one of these values:
512 \`motif', \`xlib', \`yes', or \`no'."
513 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
522 file | dot ) val=file ;;
523 locking ) val=locking ;;
524 * ) (echo "$progname: Usage error:"
525 echo " " "The \`--$optname' option must have one of these values:
526 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
527 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
534 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
536 n | no | non | none ) new_default=no ;;
537 a | al | all ) new_default=yes ;;
539 extents ) error_check_extents=yes ;;
540 noextents ) error_check_extents=no ;;
542 typecheck ) error_check_typecheck=yes ;;
543 notypecheck ) error_check_typecheck=no ;;
545 bufpos ) error_check_bufpos=yes ;;
546 nobufpos ) error_check_bufpos=no ;;
548 gc ) error_check_gc=yes ;;
549 nogc ) error_check_gc=no ;;
551 malloc ) error_check_malloc=yes ;;
552 nomalloc ) error_check_malloc=no ;;
554 byte_code ) error_check_byte_code=yes ;;
555 nobyte_code ) error_check_byte_code=no ;;
557 glyphs ) error_check_glyphs=yes ;;
558 noglyphs ) error_check_glyphs=no ;;
560 * ) bogus_error_check=yes ;;
562 if test "$bogus_error_check" -o \
563 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
564 if test "$error_check_default" = yes ; then
565 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
567 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
569 (echo "$progname: Usage error:"
570 echo " " "Valid types for the \`--$optname' option are:
572 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
573 elif test -n "$new_default" ; then
574 error_check_extents=$new_default
575 error_check_typecheck=$new_default
576 error_check_bufpos=$new_default
577 error_check_gc=$new_default
578 error_check_malloc=$new_default
579 error_check_byte_code=$new_default
580 error_check_glyphs=$new_default
581 new_default= # reset this
588 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
589 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
590 archlibdir | docdir | package_path )
591 if test "$valomitted" = "yes"; then
592 if test "$#" = 0; then
593 (echo "$progname: Usage error:"
594 echo " " "The \`--$optname' option requires a value."
595 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
602 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
603 Defining EXEC_PREFIX_USER_DEFINED
605 cat >> confdefs.h <<\EOF
606 #define EXEC_PREFIX_USER_DEFINED 1
610 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
611 Defining LISPDIR_USER_DEFINED
613 cat >> confdefs.h <<\EOF
614 #define LISPDIR_USER_DEFINED 1
618 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
619 Defining SITELISPDIR_USER_DEFINED
621 cat >> confdefs.h <<\EOF
622 #define SITELISPDIR_USER_DEFINED 1
626 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
627 Defining MODULEDIR_USER_DEFINED
629 cat >> confdefs.h <<\EOF
630 #define MODULEDIR_USER_DEFINED 1
634 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
635 Defining ETCDIR_USER_DEFINED
637 cat >> confdefs.h <<\EOF
638 #define ETCDIR_USER_DEFINED 1
642 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
643 Defining INFODIR_USER_DEFINED
645 cat >> confdefs.h <<\EOF
646 #define INFODIR_USER_DEFINED 1
650 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
651 Defining INFOPATH_USER_DEFINED
653 cat >> confdefs.h <<\EOF
654 #define INFOPATH_USER_DEFINED 1
658 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
659 Defining PACKAGE_PATH_USER_DEFINED
661 cat >> confdefs.h <<\EOF
662 #define PACKAGE_PATH_USER_DEFINED 1
667 { test "$extra_verbose" = "yes" && cat << \EOF
668 Defining INFODIR_USER_DEFINED
670 cat >> confdefs.h <<\EOF
671 #define INFODIR_USER_DEFINED 1
675 { test "$extra_verbose" = "yes" && cat << \EOF
676 Defining LISPDIR_USER_DEFINED
678 cat >> confdefs.h <<\EOF
679 #define LISPDIR_USER_DEFINED 1
683 { test "$extra_verbose" = "yes" && cat << \EOF
684 Defining MODULEDIR_USER_DEFINED
686 cat >> confdefs.h <<\EOF
687 #define MODULEDIR_USER_DEFINED 1
691 { test "$extra_verbose" = "yes" && cat << \EOF
692 Defining ETCDIR_USER_DEFINED
694 cat >> confdefs.h <<\EOF
695 #define ETCDIR_USER_DEFINED 1
699 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
700 Defining LOCKDIR_USER_DEFINED
702 cat >> confdefs.h <<\EOF
703 #define LOCKDIR_USER_DEFINED 1
707 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
708 Defining DOCDIR_USER_DEFINED
710 cat >> confdefs.h <<\EOF
711 #define DOCDIR_USER_DEFINED 1
715 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
716 Defining ARCHLIBDIR_USER_DEFINED
718 cat >> confdefs.h <<\EOF
719 #define ARCHLIBDIR_USER_DEFINED 1
728 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
731 "with_scrollbars" | \
735 l | lu | luc | luci | lucid ) val=lucid ;;
736 m | mo | mot | moti | motif ) val=motif ;;
737 a | at | ath | athe | athen | athena ) val=athena ;;
738 n | no | non | none ) val=no ;;
739 * ) (echo "$progname: Usage error:"
740 echo " " "The \`--$optname' option must have one of these values:
741 \`lucid', \`motif', \`athena', or \`no'."
742 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
747 "use_minimal_tagbits" | \
748 "use_indexed_lrecord_implementation" | \
750 "const_is_losing" | \
752 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
755 * ) (echo "$progname: Usage error:"
756 echo " " "Unrecognized option: $arg"
757 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
762 *-*-*) configuration="$arg" ;;
764 *) (echo "$progname: Usage error:"
765 echo " " "Unrecognized argument: $arg"
766 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
772 test -n "$cpp" && CPP="$cpp"
773 test -n "$cppflags" && CPPFLAGS="$cppflags"
774 test -n "$libs" && LIBS="$libs"
775 test -n "$ldflags" && LDFLAGS="$ldflags"
777 eval set x "$quoted_arguments"; shift
779 test "$extra_verbose" = "yes" && verbose=yes
781 test -n "$with_x" && with_x11="$with_x"
783 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
784 test "$with_system_malloc" = "default" && with_system_malloc=yes
789 if test "$with_cde $with_tooltalk" = "yes no"; then
790 (echo "$progname: Usage error:"
791 echo " " "--with-cde requires --with-tooltalk"
792 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
793 elif test "$with_tooltalk" = "no" ; then with_cde=no
794 elif test "$with_cde" = "yes"; then with_tooltalk=yes
801 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
802 if test -f "$dir/src/lisp.h" -a \
803 -f "$dir/lisp/version.el" ; then
808 if test -z "$srcdir" ; then
809 (echo "$progname: Usage error:"
810 echo " " "Neither the current directory nor its parent seem to
811 contain the XEmacs sources. If you do not want to build XEmacs in its
812 source tree, you should run \`$progname' in the directory in which
813 you wish to build XEmacs, using the \`--srcdir' option to say where the
814 sources may be found."
815 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
820 if test ! -f "$srcdir/src/lisp.h" -o \
821 ! -f "$srcdir/lisp/version.el" ; then
822 (echo "$progname: Usage error:"
823 echo " " "The directory specified with the \`--srcdir' option,
824 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
825 either run the \`$progname' script at the top of the XEmacs source
826 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
827 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
832 if test -z "$configuration"; then
833 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
834 if test -z "$configuration"; then
835 (echo "$progname: Usage error:"
836 echo " " "XEmacs has not been ported to this host type.
837 Try explicitly specifying the CONFIGURATION when rerunning configure."
838 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
842 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
843 echo "configure:844: checking whether ln -s works" >&5
846 if ln -s X conftestdata 2>/dev/null
849 ac_cv_prog_LN_S="ln -s"
853 LN_S="$ac_cv_prog_LN_S"
854 if test "$ac_cv_prog_LN_S" = "ln -s"; then
855 echo "$ac_t""yes" 1>&6
857 echo "$ac_t""no" 1>&6
861 for dir in lisp etc man info tests; do
862 if test ! -d "$dir" ; then
863 echo Making symbolic link to "$srcdir/$dir"
864 ${LN_S} "$srcdir/$dir" "$dir"
869 absolute_pwd="`pwd`";
870 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
872 else blddir="$absolute_pwd"; if test -d "/net"; then
873 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
874 blddir=`echo "$blddir" | \
875 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
882 . ) srcdir="$blddir" ;;
883 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
884 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
885 srcdir=`echo "$srcdir" | \
886 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
890 if test `pwd` != `sh -c cd $srcdir && pwd` \
891 && test -f "$srcdir/src/config.h"; then
892 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
893 echo " as a build directory right now; it has been configured in its own"
894 echo " right. To configure in another directory as well, you MUST"
895 echo " use GNU make. If you do not have GNU make, then you must"
896 echo " now do \`make distclean' in $srcdir,"
897 echo " and then run $progname again.") >&2
898 extrasub='/^VPATH[ ]*=/c\
904 vpath %.in $(srcdir)'
907 . "$srcdir/version.sh" || exit 1;
908 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
909 : "${extra_verbose=$beta}"
910 version="${emacs_major_version}.${emacs_minor_version}"
911 { test "$extra_verbose" = "yes" && cat << EOF
912 Defining EMACS_MAJOR_VERSION = $emacs_major_version
914 cat >> confdefs.h <<EOF
915 #define EMACS_MAJOR_VERSION $emacs_major_version
919 { test "$extra_verbose" = "yes" && cat << EOF
920 Defining EMACS_MINOR_VERSION = $emacs_minor_version
922 cat >> confdefs.h <<EOF
923 #define EMACS_MINOR_VERSION $emacs_minor_version
927 if test -n "$emacs_beta_version" ; then
928 if test "$beta" = "yes"; then
929 version="${version}-b${emacs_beta_version}"
930 { test "$extra_verbose" = "yes" && cat << EOF
931 Defining EMACS_BETA_VERSION = $emacs_beta_version
933 cat >> confdefs.h <<EOF
934 #define EMACS_BETA_VERSION $emacs_beta_version
939 version="${version}.${emacs_beta_version}"
940 { test "$extra_verbose" = "yes" && cat << EOF
941 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
943 cat >> confdefs.h <<EOF
944 #define EMACS_PATCH_LEVEL $emacs_beta_version
950 { test "$extra_verbose" = "yes" && cat << EOF
951 Defining XEMACS_CODENAME = "$xemacs_codename"
953 cat >> confdefs.h <<EOF
954 #define XEMACS_CODENAME "$xemacs_codename"
958 { test "$extra_verbose" = "yes" && cat << EOF
959 Defining EMACS_VERSION = "$version"
961 cat >> confdefs.h <<EOF
962 #define EMACS_VERSION "$version"
967 if test "$with_infodock" = "yes"; then
968 if test ! -f ../../ID-INSTALL; then
969 echo "Cannot build InfoDock without InfoDock sources"
974 if test "$with_infodock" = "yes"; then
975 { test "$extra_verbose" = "yes" && cat << EOF
976 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
978 cat >> confdefs.h <<EOF
979 #define INFODOCK_MAJOR_VERSION $infodock_major_version
983 { test "$extra_verbose" = "yes" && cat << EOF
984 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
986 cat >> confdefs.h <<EOF
987 #define INFODOCK_MINOR_VERSION $infodock_minor_version
991 { test "$extra_verbose" = "yes" && cat << EOF
992 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
994 cat >> confdefs.h <<EOF
995 #define INFODOCK_BUILD_VERSION $infodock_build_version
999 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1001 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1006 { test "$extra_verbose" = "yes" && cat << EOF
1007 Defining EMACS_PROGNAME = "$PROGNAME"
1009 cat >> confdefs.h <<EOF
1010 #define EMACS_PROGNAME "$PROGNAME"
1015 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1016 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1017 Defining ERROR_CHECK_EXTENTS
1019 cat >> confdefs.h <<\EOF
1020 #define ERROR_CHECK_EXTENTS 1
1024 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1025 Defining ERROR_CHECK_TYPECHECK
1027 cat >> confdefs.h <<\EOF
1028 #define ERROR_CHECK_TYPECHECK 1
1032 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1033 Defining ERROR_CHECK_BUFPOS
1035 cat >> confdefs.h <<\EOF
1036 #define ERROR_CHECK_BUFPOS 1
1040 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1041 Defining ERROR_CHECK_GC
1043 cat >> confdefs.h <<\EOF
1044 #define ERROR_CHECK_GC 1
1048 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1049 Defining ERROR_CHECK_MALLOC
1051 cat >> confdefs.h <<\EOF
1052 #define ERROR_CHECK_MALLOC 1
1056 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1057 Defining ERROR_CHECK_BYTE_CODE
1059 cat >> confdefs.h <<\EOF
1060 #define ERROR_CHECK_BYTE_CODE 1
1064 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1065 Defining ERROR_CHECK_GLYPHS
1067 cat >> confdefs.h <<\EOF
1068 #define ERROR_CHECK_GLYPHS 1
1072 if test "${debug:=$beta}" = "yes"; then
1073 use_assertions=yes memory_usage_stats=yes
1074 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1075 echo " xemacs will be linked with \"debug.o\""
1077 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1078 echo " xemacs will be linked with \"tests.o\""
1080 { test "$extra_verbose" = "yes" && cat << \EOF
1081 Defining DEBUG_XEMACS
1083 cat >> confdefs.h <<\EOF
1084 #define DEBUG_XEMACS 1
1089 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1090 Defining USE_ASSERTIONS
1092 cat >> confdefs.h <<\EOF
1093 #define USE_ASSERTIONS 1
1097 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1098 Defining MEMORY_USAGE_STATS
1100 cat >> confdefs.h <<\EOF
1101 #define MEMORY_USAGE_STATS 1
1107 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1108 echo "configure:1109: checking "host system type"" >&5
1109 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1110 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1111 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1112 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1113 echo "$ac_t""$configuration" 1>&6
1121 case "$canonical" in
1122 sparc-*-* ) machine=sparc ;;
1123 alpha*-*-* ) machine=alpha ;;
1124 vax-*-* ) machine=vax ;;
1125 mips-dec-* ) machine=pmax ;;
1126 mips-sgi-irix6* ) machine=iris6d ;;
1127 mips-sgi-* ) machine=iris4d ;;
1128 mips*-linux ) machine=mips ;;
1129 romp-ibm-* ) machine=ibmrt ;;
1130 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1131 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1132 powerpc*-* ) machine=powerpc ;;
1133 hppa-*-* ) machine=hp800 ;;
1134 m88k-dg-* ) machine=aviion ;;
1135 m68*-sony-* ) machine=news ;;
1136 mips-sony-* ) machine=news-risc ;;
1137 clipper-* ) machine=clipper ;;
1138 arm* ) machine=arm ;;
1139 ns32k-* ) machine=ns32000 ;;
1142 case "$canonical" in
1143 *-*-linux* ) opsys=linux ;;
1144 *-*-netbsd* ) opsys=netbsd ;;
1145 *-*-openbsd* ) opsys=openbsd ;;
1146 *-*-nextstep* ) opsys=nextstep ;;
1147 *-*-vms ) opsys=vms ;;
1149 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1150 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1151 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1152 *-dec-osf3* ) opsys=decosf3-1 ;;
1153 *-dec-osf4* ) opsys=decosf4-0 ;;
1155 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1156 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1157 *-*-ultrix* ) opsys=ultrix4-3 ;;
1159 *-*-aix3.1* ) opsys=aix3-1 ;;
1160 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1161 *-*-aix3* ) opsys=aix3-2 ;;
1162 *-*-aix4.0* ) opsys=aix4 ;;
1163 *-*-aix4.1* ) opsys=aix4-1 ;;
1164 *-*-aix4* ) opsys=aix4-2 ;;
1166 *-gnu* ) opsys=gnu ;;
1167 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1168 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1169 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1170 *-*-aos4.2 ) opsys=bsd4-2 ;;
1171 *-*-aos* ) opsys=bsd4-3 ;;
1172 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1173 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1174 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1175 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1176 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1177 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1178 if test -z "$NON_GNU_CPP" ; then
1179 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1180 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1184 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1185 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1188 case "$canonical" in
1191 case "$canonical" in
1192 i[3-9]86-*-netbsd*) machine=intel386 ;;
1193 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1194 machine=hp9000s300 ;;
1195 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1196 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1201 case "${canonical}" in
1202 i386-*-openbsd*) machine=intel386 ;;
1203 m68k-*-openbsd*) machine=hp9000s300 ;;
1204 mipsel-*-openbsd*) machine=pmax ;;
1208 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1209 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1211 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1212 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1214 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1216 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1218 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1220 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1222 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1224 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1225 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1226 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1229 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1231 *-convex-bsd* | *-convex-convexos* )
1232 machine=convex opsys=bsd4-3
1233 NON_GNU_CPP="cc -E -P"
1236 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1238 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1239 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1240 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1241 m88k-dg-dgux* ) opsys=dgux ;;
1243 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1244 m88k-motorola-sysv4* )
1245 machine=delta88k opsys=usg5-4-2
1247 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1249 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1250 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1252 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1254 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1255 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1256 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1259 case "`uname -r`" in
1260 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1261 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1263 NON_GNU_CPP="/lib/cpp"
1265 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1266 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1268 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1270 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1273 case "$canonical" in
1274 m68* ) machine=hp9000s300 ;;
1275 hppa* ) machine=hp800 ;;
1278 case "$canonical" in
1279 *-hp-hpux7* ) opsys=hpux ;;
1280 *-hp-hpux8* ) opsys=hpux8 ;;
1281 *-hp-hpux9* ) opsys=hpux9 ;;
1282 *-hp-hpux10* ) opsys=hpux10 ;;
1283 *-hp-hpux11* ) opsys=hpux11 ;;
1287 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1288 echo " xemacs will be linked with \"strcat.o\""
1291 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1292 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1293 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1295 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1298 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1299 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1301 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1302 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1303 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1304 romp-ibm-aos* ) opsys=bsd4-3 ;;
1305 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1306 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1308 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1309 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1311 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1313 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1315 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1317 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1319 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1321 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1323 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1325 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1327 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1329 mips-mips-usg* ) machine=mips4 ;;
1332 NON_GNU_CC="cc -systype bsd43"
1333 NON_GNU_CPP="cc -systype bsd43 -E"
1334 case "$canonical" in
1335 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1336 mips-mips-riscos5* ) opsys=riscos5 ;;
1339 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1340 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1342 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1344 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1346 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1347 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1349 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1351 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1353 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1355 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1357 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1358 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1360 mips-siemens-sysv* | mips-sni-sysv*)
1361 machine=mips-siemens opsys=usg5-4
1362 NON_GNU_CC=/usr/ccs/bin/cc
1363 NON_GNU_CPP=/usr/ccs/lib/cpp
1368 NON_GNU_CC=/usr/ccs/bin/cc
1369 NON_GNU_CPP=/usr/ccs/lib/cpp
1372 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1373 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1374 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1375 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1376 mips-sgi-irix6* ) opsys=irix6-0 ;;
1377 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1378 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1379 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1380 mips-sgi-irix* ) opsys=irix5-0 ;;
1382 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1383 *-sony-news* ) opsys=newsos5 ;;
1385 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1387 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1388 case "$canonical" in
1389 m68*-sunos1* ) machine=sun1 ;;
1390 m68*-sunos2* ) machine=sun2 ;;
1391 m68* ) machine=sun3 ;;
1392 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1393 i*86-*-* ) machine=intel386 ;;
1394 rs6000* ) machine=rs6000 ;;
1397 case "$canonical" in *-sunos5*)
1398 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1401 case "$canonical" in
1403 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1406 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1410 case "$canonical" in
1413 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1414 { test "$extra_verbose" = "yes" && cat << EOF
1415 Defining OS_RELEASE = $os_release
1417 cat >> confdefs.h <<EOF
1418 #define OS_RELEASE $os_release
1423 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1424 *-sunos4.0* ) opsys=sunos4-0 ;;
1425 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1426 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1427 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1428 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1429 *-mach* ) opsys=mach-bsd4-3 ;;
1433 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1435 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1438 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1440 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1441 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1443 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1445 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1447 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1448 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1450 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1452 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1455 case "$canonical" in
1456 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1457 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1458 *-mach* ) opsys=mach-bsd4-3 ;;
1462 ns16k-whitechapel-* ) machine=mg1 ;;
1464 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1468 case "$canonical" in
1469 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1470 *-isc2.2* ) opsys=isc2-2 ;;
1471 *-isc4.0* ) opsys=isc4-0 ;;
1472 *-isc4.* ) opsys=isc4-1
1473 GCC_TEST_OPTIONS=-posix
1474 NON_GCC_TEST_OPTIONS=-Xp
1476 *-isc* ) opsys=isc3-0 ;;
1477 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1478 *-esix* ) opsys=esix ;;
1479 *-mach* ) opsys=mach-bsd4-3 ;;
1480 *-xenix* ) opsys=xenix ;;
1481 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1482 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1483 *-bsdi4* ) opsys=bsdos4 ;;
1484 *-bsdi3* ) opsys=bsdos3 ;;
1485 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1486 *-bsdi2* ) opsys=bsdos2 ;;
1487 *-sco3.2v5* ) opsys=sco5 ;
1488 if test "$dynamic" = "yes" ; then
1489 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1491 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1493 *-sysv5* ) opsys=sco7 ;;
1494 *-386bsd* ) opsys=386bsd ;;
1495 *-freebsd* ) opsys=freebsd ;;
1496 *-nextstep* ) opsys=nextstep ;;
1497 *-pc-cygwin* ) opsys=cygwin32 ;;
1498 *-pc-mingw* ) opsys=mingw32 ;
1499 test -z "$with_tty" && with_tty="no";;
1503 m68k-*-linux* ) machine=m68k opsys=linux ;;
1507 if test -z "$machine" -o -z "$opsys"; then
1508 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1509 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1514 if test -z "$dynamic"; then
1516 hpux* | sunos4* ) dynamic=no ;;
1520 if test "$dynamic" = "yes"; then
1522 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1523 decosf* ) ld_call_shared="-call_shared" ;;
1525 else case "$opsys" in
1527 echo "Static linking is not supported on Solaris 2."
1528 echo "Rerun configure without specifying --dynamic=no."
1530 linux ) ld_call_shared="-Bstatic" ;;
1531 decosf* ) ld_call_shared="-non_shared" ;;
1535 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1537 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1538 { test "$extra_verbose" = "yes" && cat << EOF
1539 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1541 cat >> confdefs.h <<EOF
1542 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1547 machfile="m/${machine}.h"
1548 opsysfile="s/${opsys}.h"
1551 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1552 if test "$with_workshop $with_tooltalk" = "yes no"; then
1553 (echo "$progname: Usage error:"
1554 echo " " "--with-workshop requires --with-tooltalk"
1555 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1556 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1557 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1560 if test "$with_workshop" = "yes"; then
1561 { test "$extra_verbose" = "yes" && cat << \EOF
1564 cat >> confdefs.h <<\EOF
1569 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1570 echo " xemacs will be linked with \"sunpro.o\""
1574 if test "$with_clash_detection" != "no"; then
1575 { test "$extra_verbose" = "yes" && cat << \EOF
1576 Defining CLASH_DETECTION
1578 cat >> confdefs.h <<\EOF
1579 #define CLASH_DETECTION 1
1583 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1584 echo " xemacs will be linked with \"filelock.o\""
1588 test -n "$compiler" && CC="$compiler"
1589 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1592 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1593 if test "${CFLAGS-unset}" != unset
1594 then cflags_specified=yes;
1595 else cflags_specified=no;
1598 xe_save_CFLAGS="$CFLAGS"
1600 # Extract the first word of "gcc", so it can be a program name with args.
1601 set dummy gcc; ac_word=$2
1602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1603 echo "configure:1604: checking for $ac_word" >&5
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1610 for ac_dir in $ac_dummy; do
1611 test -z "$ac_dir" && ac_dir=.
1612 if test -f $ac_dir/$ac_word; then
1620 if test -n "$CC"; then
1621 echo "$ac_t""$CC" 1>&6
1623 echo "$ac_t""no" 1>&6
1626 if test -z "$CC"; then
1627 # Extract the first word of "cc", so it can be a program name with args.
1628 set dummy cc; ac_word=$2
1629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1630 echo "configure:1631: checking for $ac_word" >&5
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1638 for ac_dir in $ac_dummy; do
1639 test -z "$ac_dir" && ac_dir=.
1640 if test -f $ac_dir/$ac_word; then
1641 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1642 ac_prog_rejected=yes
1650 if test $ac_prog_rejected = yes; then
1651 # We found a bogon in the path, so make sure we never use it.
1652 set dummy $ac_cv_prog_CC
1654 if test $# -gt 0; then
1655 # We chose a different compiler from the bogus one.
1656 # However, it has the same basename, so the bogon will be chosen
1657 # first if we set CC to just the basename; use the full file name.
1659 set dummy "$ac_dir/$ac_word" "$@"
1666 if test -n "$CC"; then
1667 echo "$ac_t""$CC" 1>&6
1669 echo "$ac_t""no" 1>&6
1672 if test -z "$CC"; then
1673 case "`uname -s`" in
1675 # Extract the first word of "cl", so it can be a program name with args.
1676 set dummy cl; ac_word=$2
1677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_word" >&5
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1685 for ac_dir in $ac_dummy; do
1686 test -z "$ac_dir" && ac_dir=.
1687 if test -f $ac_dir/$ac_word; then
1695 if test -n "$CC"; then
1696 echo "$ac_t""$CC" 1>&6
1698 echo "$ac_t""no" 1>&6
1703 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1706 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1707 echo "configure:1708: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1710 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1711 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1712 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1713 ac_cpp='$CPP '"$xe_cppflags"
1714 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1715 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1718 cat > conftest.$ac_ext << EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1725 if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1726 ac_cv_prog_cc_works=yes
1727 # If we can't run a trivial program, we are probably using a cross compiler.
1728 if (./conftest; exit) 2>/dev/null; then
1729 ac_cv_prog_cc_cross=no
1731 ac_cv_prog_cc_cross=yes
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1736 ac_cv_prog_cc_works=no
1740 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1741 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1742 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1743 ac_cpp='$CPP '"$xe_cppflags"
1744 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1745 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1748 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1749 if test $ac_cv_prog_cc_works = no; then
1750 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1752 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1753 echo "configure:1754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1754 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1755 cross_compiling=$ac_cv_prog_cc_cross
1757 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1758 echo "configure:1759: checking whether we are using GNU C" >&5
1760 cat > conftest.c <<EOF
1765 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1771 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1773 if test $ac_cv_prog_gcc = yes; then
1779 ac_test_CFLAGS="${CFLAGS+set}"
1780 ac_save_CFLAGS="$CFLAGS"
1782 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether ${CC-cc} accepts -g" >&5
1785 echo 'void f(){}' > conftest.c
1786 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1794 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1795 if test "$ac_test_CFLAGS" = set; then
1796 CFLAGS="$ac_save_CFLAGS"
1797 elif test $ac_cv_prog_cc_g = yes; then
1798 if test "$GCC" = yes; then
1804 if test "$GCC" = yes; then
1811 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1813 # Extract the first word of "gcc", so it can be a program name with args.
1814 set dummy gcc; ac_word=$2
1815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1816 echo "configure:1817: checking for $ac_word" >&5
1818 if test -n "$CC"; then
1819 ac_cv_prog_CC="$CC" # Let the user override the test.
1821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823 for ac_dir in $ac_dummy; do
1824 test -z "$ac_dir" && ac_dir=.
1825 if test -f $ac_dir/$ac_word; then
1833 if test -n "$CC"; then
1834 echo "$ac_t""$CC" 1>&6
1836 echo "$ac_t""no" 1>&6
1839 if test -z "$CC"; then
1840 # Extract the first word of "cc", so it can be a program name with args.
1841 set dummy cc; ac_word=$2
1842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_word" >&5
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC="$CC" # Let the user override the test.
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1851 for ac_dir in $ac_dummy; do
1852 test -z "$ac_dir" && ac_dir=.
1853 if test -f $ac_dir/$ac_word; then
1854 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1855 ac_prog_rejected=yes
1863 if test $ac_prog_rejected = yes; then
1864 # We found a bogon in the path, so make sure we never use it.
1865 set dummy $ac_cv_prog_CC
1867 if test $# -gt 0; then
1868 # We chose a different compiler from the bogus one.
1869 # However, it has the same basename, so the bogon will be chosen
1870 # first if we set CC to just the basename; use the full file name.
1872 set dummy "$ac_dir/$ac_word" "$@"
1879 if test -n "$CC"; then
1880 echo "$ac_t""$CC" 1>&6
1882 echo "$ac_t""no" 1>&6
1885 if test -z "$CC"; then
1886 case "`uname -s`" in
1888 # Extract the first word of "cl", so it can be a program name with args.
1889 set dummy cl; ac_word=$2
1890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1891 echo "configure:1892: checking for $ac_word" >&5
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1898 for ac_dir in $ac_dummy; do
1899 test -z "$ac_dir" && ac_dir=.
1900 if test -f $ac_dir/$ac_word; then
1908 if test -n "$CC"; then
1909 echo "$ac_t""$CC" 1>&6
1911 echo "$ac_t""no" 1>&6
1916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1920 echo "configure:1921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1923 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1924 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1925 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1926 ac_cpp='$CPP '"$xe_cppflags"
1927 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1928 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1931 cat > conftest.$ac_ext << EOF
1933 #line 1934 "configure"
1934 #include "confdefs.h"
1938 if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1939 ac_cv_prog_cc_works=yes
1940 # If we can't run a trivial program, we are probably using a cross compiler.
1941 if (./conftest; exit) 2>/dev/null; then
1942 ac_cv_prog_cc_cross=no
1944 ac_cv_prog_cc_cross=yes
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1949 ac_cv_prog_cc_works=no
1953 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1954 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1955 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1956 ac_cpp='$CPP '"$xe_cppflags"
1957 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1958 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1961 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1962 if test $ac_cv_prog_cc_works = no; then
1963 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1965 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1966 echo "configure:1967: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1967 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1968 cross_compiling=$ac_cv_prog_cc_cross
1970 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether we are using GNU C" >&5
1973 cat > conftest.c <<EOF
1978 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1984 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1986 if test $ac_cv_prog_gcc = yes; then
1992 ac_test_CFLAGS="${CFLAGS+set}"
1993 ac_save_CFLAGS="$CFLAGS"
1995 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1996 echo "configure:1997: checking whether ${CC-cc} accepts -g" >&5
1998 echo 'void f(){}' > conftest.c
1999 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2008 if test "$ac_test_CFLAGS" = set; then
2009 CFLAGS="$ac_save_CFLAGS"
2010 elif test $ac_cv_prog_cc_g = yes; then
2011 if test "$GCC" = yes; then
2017 if test "$GCC" = yes; then
2024 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2026 # Extract the first word of "gcc", so it can be a program name with args.
2027 set dummy gcc; ac_word=$2
2028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_word" >&5
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC="$CC" # Let the user override the test.
2034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2036 for ac_dir in $ac_dummy; do
2037 test -z "$ac_dir" && ac_dir=.
2038 if test -f $ac_dir/$ac_word; then
2046 if test -n "$CC"; then
2047 echo "$ac_t""$CC" 1>&6
2049 echo "$ac_t""no" 1>&6
2052 if test -z "$CC"; then
2053 # Extract the first word of "cc", so it can be a program name with args.
2054 set dummy cc; ac_word=$2
2055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_word" >&5
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2064 for ac_dir in $ac_dummy; do
2065 test -z "$ac_dir" && ac_dir=.
2066 if test -f $ac_dir/$ac_word; then
2067 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2068 ac_prog_rejected=yes
2076 if test $ac_prog_rejected = yes; then
2077 # We found a bogon in the path, so make sure we never use it.
2078 set dummy $ac_cv_prog_CC
2080 if test $# -gt 0; then
2081 # We chose a different compiler from the bogus one.
2082 # However, it has the same basename, so the bogon will be chosen
2083 # first if we set CC to just the basename; use the full file name.
2085 set dummy "$ac_dir/$ac_word" "$@"
2092 if test -n "$CC"; then
2093 echo "$ac_t""$CC" 1>&6
2095 echo "$ac_t""no" 1>&6
2098 if test -z "$CC"; then
2099 case "`uname -s`" in
2101 # Extract the first word of "cl", so it can be a program name with args.
2102 set dummy cl; ac_word=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2106 if test -n "$CC"; then
2107 ac_cv_prog_CC="$CC" # Let the user override the test.
2109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2111 for ac_dir in $ac_dummy; do
2112 test -z "$ac_dir" && ac_dir=.
2113 if test -f $ac_dir/$ac_word; then
2121 if test -n "$CC"; then
2122 echo "$ac_t""$CC" 1>&6
2124 echo "$ac_t""no" 1>&6
2129 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2132 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2133 echo "configure:2134: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2136 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2137 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2138 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2139 ac_cpp='$CPP '"$xe_cppflags"
2140 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2141 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2144 cat > conftest.$ac_ext << EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2152 ac_cv_prog_cc_works=yes
2153 # If we can't run a trivial program, we are probably using a cross compiler.
2154 if (./conftest; exit) 2>/dev/null; then
2155 ac_cv_prog_cc_cross=no
2157 ac_cv_prog_cc_cross=yes
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 ac_cv_prog_cc_works=no
2166 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2167 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2168 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2169 ac_cpp='$CPP '"$xe_cppflags"
2170 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2171 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2174 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2175 if test $ac_cv_prog_cc_works = no; then
2176 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2178 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2179 echo "configure:2180: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2180 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2181 cross_compiling=$ac_cv_prog_cc_cross
2183 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2184 echo "configure:2185: checking whether we are using GNU C" >&5
2186 cat > conftest.c <<EOF
2191 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2197 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2199 if test $ac_cv_prog_gcc = yes; then
2205 ac_test_CFLAGS="${CFLAGS+set}"
2206 ac_save_CFLAGS="$CFLAGS"
2208 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2209 echo "configure:2210: checking whether ${CC-cc} accepts -g" >&5
2211 echo 'void f(){}' > conftest.c
2212 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2220 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2221 if test "$ac_test_CFLAGS" = set; then
2222 CFLAGS="$ac_save_CFLAGS"
2223 elif test $ac_cv_prog_cc_g = yes; then
2224 if test "$GCC" = yes; then
2230 if test "$GCC" = yes; then
2238 CFLAGS="$xe_save_CFLAGS"
2241 test -n "$CPP" -a -d "$CPP" && CPP=
2243 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2245 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2246 echo "configure:2247: checking how to run the C preprocessor" >&5
2247 # On Suns, sometimes $CPP names a directory.
2248 if test -n "$CPP" && test -d "$CPP"; then
2251 if test -z "$CPP"; then
2253 # This must be in double quotes, not single quotes, because CPP may get
2254 # substituted into the Makefile and "${CC-cc}" will confuse make.
2256 # On the NeXT, cc -E runs the code through the compiler's parser,
2257 # not just through cpp.
2258 cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2265 { (eval echo configure:2266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2267 if test -z "$ac_err"; then
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2274 CPP="${CC-cc} -E -traditional-cpp"
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2282 { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2284 if test -z "$ac_err"; then
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2291 CPP="${CC-cc} -nologo -E"
2292 cat > conftest.$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2299 { (eval echo configure:2300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2301 if test -z "$ac_err"; then
2305 echo "configure: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2315 ac_cv_prog_CPP="$CPP"
2316 CPP="$ac_cv_prog_CPP"
2318 ac_cv_prog_CPP="$CPP"
2320 echo "$ac_t""$CPP" 1>&6
2324 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2325 echo "configure:2326: checking for AIX" >&5
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2335 egrep "yes" >/dev/null 2>&1; then
2337 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2338 Defining _ALL_SOURCE
2340 cat >> confdefs.h <<\EOF
2341 #define _ALL_SOURCE 1
2347 echo "$ac_t""no" 1>&6
2352 cat > $srcdir/conffoo.h <<EOF
2355 echo $ac_n "checking for a working inclusion macro""... $ac_c" 1>&6
2356 echo "configure:2357: checking for a working inclusion macro" >&5
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2363 #define SMART_INCLUDE(path,file) <path/file>
2364 #define CONFFOO_H_PATH $srcdir
2365 #define CONFFOO_INCLUDE(file) SMART_INCLUDE (CONFFOO_H_PATH,file)
2366 #include CONFFOO_INCLUDE(conffoo.h)
2370 if { (eval echo configure:2371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2372 echo "$ac_t""direct" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2373 Defining SMART_INCLUDE_INDIRECTIONS = 0
2375 cat >> confdefs.h <<\EOF
2376 #define SMART_INCLUDE_INDIRECTIONS 0
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2390 #define GLUE_INCLUDE(path,file) <##path##/##file##>
2391 #define SMART_INCLUDE(path,file) GLUE_INCLUDE(path,file)
2392 #define CONFFOO_H_PATH $srcdir
2393 #define CONFFOO_INCLUDE(file) SMART_INCLUDE(CONFFOO_H_PATH,file)
2394 #include CONFFOO_INCLUDE(conffoo.h)
2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2400 echo "$ac_t""simple" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2401 Defining SMART_INCLUDE_INDIRECTIONS = 1
2403 cat >> confdefs.h <<\EOF
2404 #define SMART_INCLUDE_INDIRECTIONS 1
2409 echo "configure: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2418 #define GLUE_INCLUDE_2(path,file) <##path##/##file##>
2419 #define GLUE_INCLUDE_1(path,file) GLUE_INCLUDE_2(path,file)
2420 #define SMART_INCLUDE(path,file) GLUE_INCLUDE_1(path,file)
2421 #define CONFFOO_H_PATH $srcdir
2422 #define CONFFOO_INCLUDE(file) SMART_INCLUDE (CONFFOO_H_PATH,file)
2423 #include CONFFOO_INCLUDE(conffoo.h)
2427 if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2429 echo "$ac_t""double" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2430 Defining SMART_INCLUDE_INDIRECTIONS = 2
2432 cat >> confdefs.h <<\EOF
2433 #define SMART_INCLUDE_INDIRECTIONS 2
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2441 { echo "configure: error: Cannot define a proper SMART_INCLUDE macro. Please report." 1>&2; exit 1; }
2448 rm -f $srcdir/conffoo.h
2452 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2453 echo "configure:2454: checking for GNU libc" >&5
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457 #include <features.h>
2460 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2461 #error Not a GNU libc system :-(
2462 ******* ======= ******** &&&&&&&&
2467 if { (eval echo configure:2468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2477 echo "$ac_t""$have_glibc" 1>&6
2478 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2479 Defining _GNU_SOURCE
2481 cat >> confdefs.h <<\EOF
2482 #define _GNU_SOURCE 1
2489 { test "$extra_verbose" = "yes" && cat << \EOF
2490 Defining __EXTENSIONS__
2492 cat >> confdefs.h <<\EOF
2493 #define __EXTENSIONS__ 1
2497 if test "$os_release" -ge 55; then
2498 { test "$extra_verbose" = "yes" && cat << \EOF
2499 Defining _XOPEN_SOURCE = 500
2501 cat >> confdefs.h <<\EOF
2502 #define _XOPEN_SOURCE 500
2506 { test "$extra_verbose" = "yes" && cat << \EOF
2507 Defining _XOPEN_SOURCE_EXTENDED
2509 cat >> confdefs.h <<\EOF
2510 #define _XOPEN_SOURCE_EXTENDED 1
2516 { test "$extra_verbose" = "yes" && cat << \EOF
2517 Defining _POSIX_C_SOURCE = 199506L
2519 cat >> confdefs.h <<\EOF
2520 #define _POSIX_C_SOURCE 199506L
2524 { test "$extra_verbose" = "yes" && cat << \EOF
2525 Defining _XOPEN_SOURCE = 500
2527 cat >> confdefs.h <<\EOF
2528 #define _XOPEN_SOURCE 500
2532 { test "$extra_verbose" = "yes" && cat << \EOF
2533 Defining _XOPEN_SOURCE_EXTENDED
2535 cat >> confdefs.h <<\EOF
2536 #define _XOPEN_SOURCE_EXTENDED 1
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2547 #if defined __SUNPRO_C
2549 #elif defined __DECC
2556 if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2564 case "$conftest_rc" in
2565 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2566 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2574 echo "Extracting information from the machine- and system-dependent headers..."
2576 tempcname="conftest.c"
2580 cat > $tempcname <<EOF
2582 #define C_SWITCH_SITE
2583 #define C_SWITCH_X_SITE
2584 #define LD_SWITCH_SITE
2585 #define LD_SWITCH_X_SITE
2586 #define LD_SWITCH_X_SITE_AUX
2587 #define OS_RELEASE $os_release
2588 #include "$srcdir/src/$opsysfile"
2589 #include "$srcdir/src/$machfile"
2591 #ifndef LIBS_MACHINE
2592 #define LIBS_MACHINE
2594 configure___ libs_machine=LIBS_MACHINE
2599 configure___ libs_system=LIBS_SYSTEM
2601 #ifndef LIBS_TERMCAP
2602 #define LIBS_TERMCAP
2604 configure___ libs_termcap=LIBS_TERMCAP
2606 #ifndef LIB_STANDARD
2607 #define LIB_STANDARD
2609 configure___ libs_standard=LIB_STANDARD
2612 #ifndef OBJECTS_MACHINE
2613 #define OBJECTS_MACHINE
2615 configure___ objects_machine=OBJECTS_MACHINE
2617 #ifndef OBJECTS_SYSTEM
2618 #define OBJECTS_SYSTEM
2620 configure___ objects_system=OBJECTS_SYSTEM
2623 #ifndef C_SWITCH_MACHINE
2624 #define C_SWITCH_MACHINE
2626 configure___ c_switch_machine=C_SWITCH_MACHINE
2628 #ifndef C_SWITCH_SYSTEM
2629 #define C_SWITCH_SYSTEM
2631 configure___ c_switch_system=C_SWITCH_SYSTEM
2634 #ifndef LD_SWITCH_MACHINE
2635 #define LD_SWITCH_MACHINE
2637 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2639 #ifndef LD_SWITCH_SYSTEM
2640 #define LD_SWITCH_SYSTEM
2642 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2646 #define UNEXEC "unexec.o"
2648 configure___ unexec=UNEXEC
2651 #ifndef LD_SWITCH_SHARED
2652 #define LD_SWITCH_SHARED "-c"
2654 configure___ ld_switch_shared=LD_SWITCH_SHARED
2657 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2658 configure___ ordinary_ld=ORDINARY_LD
2660 #ifdef ORDINARY_LINK
2661 #define LD ORDINARY_LD
2662 #else /* no ORDINARY LINK */
2663 #ifdef COFF_ENCAPSULATE
2664 #define LD "\$(CC) -nostdlib"
2665 #else /* not COFF_ENCAPSULATE */
2668 #else /* ! defined (LINKER) */
2670 #endif /* ! defined (LINKER) */
2671 #endif /* ! defined (COFF_ENCAPSULATE) */
2672 #endif /* not ORDINARY_LINK */
2678 configure___ lib_gcc=LIB_GCC
2680 #ifndef LD_TEXT_START_ADDR
2681 #define LD_TEXT_START_ADDR
2683 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2686 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2688 #ifdef COFF_ENCAPSULATE
2689 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2690 #else /* ! defined (COFF_ENCAPSULATE) */
2691 #define START_FILES "pre-crt0.o /lib/crt0.o"
2692 #endif /* ! defined (COFF_ENCAPSULATE) */
2693 #else /* ! defined (NO_REMAP) */
2694 #define START_FILES "ecrt0.o"
2695 #endif /* ! defined (NO_REMAP) */
2696 #endif /* no ORDINARY_LINK */
2700 configure___ start_files=START_FILES
2702 #ifdef ORDINARY_LINK
2703 configure___ ordinary_link=yes
2705 configure___ ordinary_link=no
2708 #ifdef SYSTEM_MALLOC
2709 configure___ system_malloc=yes
2711 configure___ system_malloc=no
2715 configure___ have_terminfo=yes
2717 configure___ have_terminfo=no
2720 #ifdef MAIL_USE_FLOCK
2721 configure___ mail_use_flock=yes
2723 configure___ mail_use_flock=no
2726 #ifdef MAIL_USE_LOCKF
2727 configure___ mail_use_lockf=yes
2729 configure___ mail_use_lockf=no
2732 #ifdef MAIL_USE_LOCKING
2733 configure___ mail_use_locking=yes
2735 configure___ mail_use_locking=no
2738 #ifdef HAVE_WIN32_PROCESSES
2739 configure___ win32_processes=yes
2741 configure___ win32_processes=no
2746 CPP=`eval "echo $CPP $CPPFLAGS"`
2747 eval `$CPP -Isrc $tempcname \
2748 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2752 if test "$pdump" = "yes"; then
2761 test "$extra_verbose" = "yes" && \
2762 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 ""
2764 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2765 mingw_include=`eval "dirname $mingw_include"` ;
2766 mingw_include="-I$mingw_include/../include/mingw32" ;
2767 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2770 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2772 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2774 if test "$cflags_specified" = "no"; then
2775 if test "$GCC" = "yes"; then
2776 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2777 elif test "$__SUNPRO_C" = "yes"; then
2779 sol2 ) CFLAGS="-v -xO4" ;;
2780 sunos4* ) CFLAGS="-xO2";;
2782 elif test "$__DECC" = "yes"; then
2784 elif test "$CC" = "xlc"; then
2785 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2790 if test "$GCC" = "yes"; then
2791 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2792 echo "configure:2793: checking for buggy gcc versions" >&5
2793 GCC_VERSION=`$CC --version`
2794 case `uname -s`:`uname -m`:$GCC_VERSION in
2795 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2799 *-fno-schedule-insns*) ;;
2801 echo "$ac_t""Yes" 1>&6
2802 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2803 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2804 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2810 Linux:alpha:egcs-2.91.*)
2811 echo "$ac_t""Yes" 1>&6
2812 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2813 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2814 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2817 case "$GCC_VERSION" in
2822 *-fno-strength-reduce*) ;;
2824 echo "$ac_t""Yes" 1>&6
2825 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2826 echo "configure: warning: -fno-strength-reduce." 1>&2
2827 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2835 *-fno-caller-saves*) ;;
2837 echo "$ac_t""Yes" 1>&6
2838 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2839 echo "configure: warning: -fno-caller-saves." 1>&2
2840 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2846 echo "$ac_t""No" 1>&6
2849 if test "$GCC" = "yes"; then
2850 set x $ld_switch_system; shift; ld_switch_system=""
2851 while test -n "$1"; do
2853 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2854 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2856 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2862 if test "$GCC" = "yes"; then
2863 set x $ld_switch_machine; shift; ld_switch_machine=""
2864 while test -n "$1"; do
2866 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2867 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2869 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2875 if test "$GCC" = "yes"; then
2876 set x $LDFLAGS; shift; LDFLAGS=""
2877 while test -n "$1"; do
2879 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2880 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2882 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2888 if test "$GCC" = "yes"; then
2889 set x $ld_call_shared; shift; ld_call_shared=""
2890 while test -n "$1"; do
2892 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2893 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2895 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2901 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2902 echo " xemacs will be linked with \"$objects_machine\""
2904 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2905 echo " xemacs will be linked with \"$objects_system\""
2907 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2908 echo " xemacs will be linked with \"$unexec\""
2910 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2911 echo " xemacs will be linked with \"dumper.o\""
2914 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2915 echo "configure:2916: checking for dynodump" >&5
2916 if test "$unexec" != "unexsol2.o"; then
2917 echo "$ac_t""no" 1>&6
2919 echo "$ac_t""yes" 1>&6
2920 { test "$extra_verbose" = "yes" && cat << \EOF
2923 cat >> confdefs.h <<\EOF
2928 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2929 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2931 sparc ) dynodump_arch=sparc ;;
2932 *86* ) dynodump_arch=i386 ;;
2933 powerpc ) dynodump_arch=ppc ;;
2935 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
2939 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2941 if test "$unexec" = "unexaix.o"; then
2942 if test "$dynamic" = "no"; then
2943 start_flags="-Wl,-bnso,-bnodelcsect"
2944 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2945 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2946 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2948 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2949 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2952 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2953 echo "configure:2954: checking for terminateAndUnload in -lC" >&5
2954 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2956 xe_check_libs=" -lC "
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 /* Override any gcc2 internal prototype to avoid an error. */
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2963 char terminateAndUnload();
2966 terminateAndUnload()
2969 if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2971 eval "ac_cv_lib_$ac_lib_var=yes"
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 eval "ac_cv_lib_$ac_lib_var=no"
2981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2982 echo "$ac_t""yes" 1>&6
2983 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2985 echo "$ac_t""no" 1>&6
2990 elif test -n "$ld_text_start_addr"; then
2991 start_flags="-T $ld_text_start_addr -e __start"
2997 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2998 test -z "$linker" && linker='$(CC) -nostdlib'
2999 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3001 test "$GCC" != "yes" && lib_gcc=
3007 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3008 if test -n "$site_libraries"; then
3009 for arg in $site_libraries; do
3012 * ) test -d "$arg" || \
3013 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3016 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3020 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3021 if test -n "$site_includes"; then
3022 for arg in $site_includes; do
3025 * ) test -d "$arg" || \
3026 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3029 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3033 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3034 if test -n "$site_prefixes"; then
3035 for dir in $site_prefixes; do
3036 lib_dir="${dir}/lib"
3037 inc_dir="${dir}/include"
3038 if test ! -d "$dir"; then
3039 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3040 elif test ! -d "$lib_dir"; then
3041 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3043 if test -d "$inc_dir"; then
3044 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
3046 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
3052 for dir in "/usr/ccs/lib"; do
3053 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
3056 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3057 if test -n "$site_runtime_libraries"; then
3058 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3066 if test -n "$add_runtime_path"; then :;
3067 elif test "$dynamic" = "no"; then add_runtime_path=no
3068 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3069 else case "$opsys" in
3070 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3071 * ) add_runtime_path=no ;;
3075 if test "$add_runtime_path" = "yes"; then
3076 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3077 echo "configure:3078: checking "for runtime libraries flag"" >&5
3079 sol2 ) dash_r="-R" ;;
3080 decosf* | linux* | irix*) dash_r="-rpath " ;;
3083 for try_dash_r in "-R" "-R " "-rpath "; do
3084 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3086 if test "$GCC" = "yes"; then
3087 set x $xe_check_libs; shift; xe_check_libs=""
3088 while test -n "$1"; do
3090 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3091 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3093 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3108 dash_r="$try_dash_r"
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3115 test -n "$dash_r" && break
3118 if test -n "$dash_r";
3119 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3120 else echo "$ac_t""NONE" 1>&6
3124 xe_add_unique_runpath_dir='
3126 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3128 if test "$xe_add_p" = "yes"; then
3129 test -n "$runpath" && runpath="${runpath}:"
3130 runpath="${runpath}${xe_runpath_dir}"
3131 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3137 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3138 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3139 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3141 runpath="" runpath_dirs=""
3142 if test -n "$LD_RUN_PATH"; then
3143 runpath="$LD_RUN_PATH"
3144 elif test "$GCC" = "yes"; then
3145 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3146 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3147 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3148 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3149 case "$arg" in P,* | -L* | -R* )
3150 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3152 xe_runpath_dir="$dir"
3153 test "$xe_runpath_dir" != "/lib" -a \
3154 "$xe_runpath_dir" != "/usr/lib" -a \
3155 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3156 eval "$xe_add_unique_runpath_dir"
3161 ld_switch_run="$ld_switch_run_save"
3164 for arg in $ld_switch_site $ld_switch_x_site; do
3165 case "$arg" in -L*) {
3166 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3167 test "$xe_runpath_dir" != "/lib" -a \
3168 "$xe_runpath_dir" != "/usr/lib" -a \
3169 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3170 eval "$xe_add_unique_runpath_dir"
3173 if test "$opsys $need_motif" = "sol2 yes"; then
3174 xe_runpath_dir="/opt/SUNWdt/lib";
3175 eval "$xe_add_unique_runpath_dir";
3178 if test -n "$runpath"; then
3179 ld_switch_run="${dash_r}${runpath}"
3181 if test "$GCC" = "yes"; then
3182 set x $ld_switch_run; shift; ld_switch_run=""
3183 while test -n "$1"; do
3185 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3186 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3188 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3193 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3201 if test "$with_dlmalloc" != "no"; then
3206 after_morecore_hook_exists=yes
3207 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3208 echo "configure:3209: checking for malloc_get_state" >&5
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 /* System header to define __stub macros and hopefully few prototypes,
3214 which can conflict with char malloc_get_state(); below. */
3216 /* Override any gcc2 internal prototype to avoid an error. */
3217 /* We use char because int might match the return type of a gcc2
3218 builtin and then its argument prototype would still apply. */
3219 char malloc_get_state();
3223 /* The GNU C library defines this for functions which it implements
3224 to always fail with ENOSYS. Some functions are actually named
3225 something starting with __ and the normal name is an alias. */
3226 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3234 if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3236 eval "ac_cv_func_malloc_get_state=yes"
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3241 eval "ac_cv_func_malloc_get_state=no"
3245 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3246 echo "$ac_t""yes" 1>&6
3249 echo "$ac_t""no" 1>&6
3253 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3254 echo "configure:3255: checking for malloc_set_state" >&5
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char malloc_set_state(); below. */
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3265 char malloc_set_state();
3269 /* The GNU C library defines this for functions which it implements
3270 to always fail with ENOSYS. Some functions are actually named
3271 something starting with __ and the normal name is an alias. */
3272 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3282 eval "ac_cv_func_malloc_set_state=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_func_malloc_set_state=no"
3291 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3295 echo "$ac_t""no" 1>&6
3299 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3300 echo "configure:3301: checking whether __after_morecore_hook exists" >&5
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 extern void (* __after_morecore_hook)();
3306 __after_morecore_hook = 0
3309 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3311 echo "$ac_t""yes" 1>&6
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 echo "$ac_t""no" 1>&6
3317 after_morecore_hook_exists=no
3320 if test "$system_malloc" = "yes" ; then
3323 - The GNU allocators don't work with this system configuration."
3324 elif test "$with_system_malloc" = "yes" ; then
3327 - User chose not to use GNU allocators."
3328 elif test "$with_debug_malloc" = "yes" ; then
3331 - User chose to use Debugging Malloc."
3334 if test "$doug_lea_malloc" = "yes" ; then
3335 if test "$GNU_MALLOC" = yes ; then
3337 - Using Doug Lea's new malloc from the GNU C Library."
3339 { test "$extra_verbose" = "yes" && cat << \EOF
3340 Defining DOUG_LEA_MALLOC
3342 cat >> confdefs.h <<\EOF
3343 #define DOUG_LEA_MALLOC 1
3347 if test "$after_morecore_hook_exists" = "no" ; then
3349 - Using Doug Lea's new malloc from the Linux C Library."
3350 { test "$extra_verbose" = "yes" && cat << \EOF
3351 Defining _NO_MALLOC_WARNING_
3353 cat >> confdefs.h <<\EOF
3354 #define _NO_MALLOC_WARNING_ 1
3359 use_minimal_tagbits=yes
3365 # Extract the first word of "ranlib", so it can be a program name with args.
3366 set dummy ranlib; ac_word=$2
3367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3368 echo "configure:3369: checking for $ac_word" >&5
3370 if test -n "$RANLIB"; then
3371 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3375 for ac_dir in $ac_dummy; do
3376 test -z "$ac_dir" && ac_dir=.
3377 if test -f $ac_dir/$ac_word; then
3378 ac_cv_prog_RANLIB="ranlib"
3383 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3385 RANLIB="$ac_cv_prog_RANLIB"
3386 if test -n "$RANLIB"; then
3387 echo "$ac_t""$RANLIB" 1>&6
3389 echo "$ac_t""no" 1>&6
3393 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3394 if test -f $ac_dir/install-sh; then
3396 ac_install_sh="$ac_aux_dir/install-sh -c"
3398 elif test -f $ac_dir/install.sh; then
3400 ac_install_sh="$ac_aux_dir/install.sh -c"
3404 if test -z "$ac_aux_dir"; then
3405 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3407 ac_config_guess=$ac_aux_dir/config.guess
3408 ac_config_sub=$ac_aux_dir/config.sub
3409 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3411 # Find a good install program. We prefer a C program (faster),
3412 # so one script is as good as another. But avoid the broken or
3413 # incompatible versions:
3414 # SysV /etc/install, /usr/sbin/install
3415 # SunOS /usr/etc/install
3416 # IRIX /sbin/install
3418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3421 # ./install, which can be erroneously created by make from ./install.sh.
3422 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3423 echo "configure:3424: checking for a BSD compatible install" >&5
3424 if test -z "$INSTALL"; then
3426 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3427 for ac_dir in $PATH; do
3428 # Account for people who put trailing slashes in PATH elements.
3430 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3432 # OSF1 and SCO ODT 3.0 have their own names for install.
3433 # Don't use installbsd from OSF since it installs stuff as root
3435 for ac_prog in ginstall scoinst install; do
3436 if test -f $ac_dir/$ac_prog; then
3437 if test $ac_prog = install &&
3438 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3439 # AIX install. It has an incompatible calling convention.
3442 ac_cv_path_install="$ac_dir/$ac_prog -c"
3452 if test "${ac_cv_path_install+set}" = set; then
3453 INSTALL="$ac_cv_path_install"
3455 # As a last resort, use the slow shell script. We don't cache a
3456 # path for INSTALL within a source directory, because that will
3457 # break other packages using the cache if that directory is
3458 # removed, or if the path is relative.
3459 INSTALL="$ac_install_sh"
3462 echo "$ac_t""$INSTALL" 1>&6
3464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3465 # It thinks the first close brace ends the variable substitution.
3466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3468 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3470 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3472 for ac_prog in 'bison -y' byacc
3474 # Extract the first word of "$ac_prog", so it can be a program name with args.
3475 set dummy $ac_prog; ac_word=$2
3476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3477 echo "configure:3478: checking for $ac_word" >&5
3479 if test -n "$YACC"; then
3480 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3484 for ac_dir in $ac_dummy; do
3485 test -z "$ac_dir" && ac_dir=.
3486 if test -f $ac_dir/$ac_word; then
3487 ac_cv_prog_YACC="$ac_prog"
3493 YACC="$ac_cv_prog_YACC"
3494 if test -n "$YACC"; then
3495 echo "$ac_t""$YACC" 1>&6
3497 echo "$ac_t""no" 1>&6
3500 test -n "$YACC" && break
3502 test -n "$YACC" || YACC="yacc"
3505 for ac_hdr in a.out.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/stropts.h sys/time.h sys/timeb.h sys/un.h kstat.h ulimit.h unistd.h utime.h
3507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3509 echo "configure:3510: checking for $ac_hdr" >&5
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3517 { (eval echo configure:3518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3519 if test -z "$ac_err"; then
3521 eval "ac_cv_header_$ac_safe=yes"
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 eval "ac_cv_header_$ac_safe=no"
3530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3531 echo "$ac_t""yes" 1>&6
3532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3533 { test "$extra_verbose" = "yes" && cat << EOF
3536 cat >> confdefs.h <<EOF
3537 #define $ac_tr_hdr 1
3542 echo "$ac_t""no" 1>&6
3546 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3547 echo "configure:3548: checking for sys/wait.h that is POSIX.1 compatible" >&5
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 #include <sys/types.h>
3553 #include <sys/wait.h>
3555 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3558 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3563 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3568 ac_cv_header_sys_wait_h=yes
3570 echo "configure: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3573 ac_cv_header_sys_wait_h=no
3577 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3578 if test $ac_cv_header_sys_wait_h = yes; then
3579 { test "$extra_verbose" = "yes" && cat << \EOF
3580 Defining HAVE_SYS_WAIT_H
3582 cat >> confdefs.h <<\EOF
3583 #define HAVE_SYS_WAIT_H 1
3589 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3590 echo "configure:3591: checking for ANSI C header files" >&5
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3601 { (eval echo configure:3602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3603 if test -z "$ac_err"; then
3605 ac_cv_header_stdc=yes
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 ac_cv_header_stdc=no
3615 if test $ac_cv_header_stdc = yes; then
3616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623 egrep "memchr" >/dev/null 2>&1; then
3627 ac_cv_header_stdc=no
3633 if test $ac_cv_header_stdc = yes; then
3634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641 egrep "free" >/dev/null 2>&1; then
3645 ac_cv_header_stdc=no
3651 if test $ac_cv_header_stdc = yes; then
3652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3657 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3658 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3660 int main () { int i; for (i = 0; i < 256; i++)
3661 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3673 ac_cv_header_stdc=no
3678 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3679 if test $ac_cv_header_stdc = yes; then
3680 { test "$extra_verbose" = "yes" && cat << \EOF
3681 Defining STDC_HEADERS
3683 cat >> confdefs.h <<\EOF
3684 #define STDC_HEADERS 1
3690 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3691 echo "configure:3692: checking whether time.h and sys/time.h may both be included" >&5
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <sys/types.h>
3697 #include <sys/time.h>
3703 if { (eval echo configure:3704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705 ac_cv_header_time=yes
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3710 ac_cv_header_time=no
3714 echo "$ac_t""$ac_cv_header_time" 1>&6
3715 if test $ac_cv_header_time = yes; then
3716 { test "$extra_verbose" = "yes" && cat << \EOF
3717 Defining TIME_WITH_SYS_TIME
3719 cat >> confdefs.h <<\EOF
3720 #define TIME_WITH_SYS_TIME 1
3726 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3727 echo "configure:3728: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 #include <sys/types.h>
3734 /* NetBSD declares sys_siglist in unistd.h. */
3735 #ifdef HAVE_UNISTD_H
3739 char *msg = *(sys_siglist + 1);
3742 if { (eval echo configure:3743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3744 ac_cv_decl_sys_siglist=yes
3746 echo "configure: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3749 ac_cv_decl_sys_siglist=no
3753 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3754 if test $ac_cv_decl_sys_siglist = yes; then
3755 { test "$extra_verbose" = "yes" && cat << \EOF
3756 Defining SYS_SIGLIST_DECLARED
3758 cat >> confdefs.h <<\EOF
3759 #define SYS_SIGLIST_DECLARED 1
3766 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3767 echo "configure:3768: checking for struct utimbuf" >&5
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3771 #ifdef TIME_WITH_SYS_TIME
3772 #include <sys/time.h>
3775 #ifdef HAVE_SYS_TIME_H
3776 #include <sys/time.h>
3785 static struct utimbuf x; x.actime = x.modtime;
3788 if { (eval echo configure:3789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3790 echo "$ac_t""yes" 1>&6
3791 { test "$extra_verbose" = "yes" && cat << \EOF
3792 Defining HAVE_STRUCT_UTIMBUF
3794 cat >> confdefs.h <<\EOF
3795 #define HAVE_STRUCT_UTIMBUF 1
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3803 echo "$ac_t""no" 1>&6
3807 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3808 echo "configure:3809: checking return type of signal handlers" >&5
3810 cat > conftest.$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 #include <sys/types.h>
3819 extern "C" void (*signal (int, void (*)(int)))(int);
3821 void (*signal ()) ();
3828 if { (eval echo configure:3829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3830 ac_cv_type_signal=void
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3835 ac_cv_type_signal=int
3839 echo "$ac_t""$ac_cv_type_signal" 1>&6
3840 { test "$extra_verbose" = "yes" && cat << EOF
3841 Defining RETSIGTYPE = $ac_cv_type_signal
3843 cat >> confdefs.h <<EOF
3844 #define RETSIGTYPE $ac_cv_type_signal
3849 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3850 echo "configure:3851: checking for size_t" >&5
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3855 #include <sys/types.h>
3861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3864 ac_cv_type_size_t=yes
3867 ac_cv_type_size_t=no
3871 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3872 if test $ac_cv_type_size_t = no; then
3873 { test "$extra_verbose" = "yes" && cat << \EOF
3874 Defining size_t = unsigned
3876 cat >> confdefs.h <<\EOF
3877 #define size_t unsigned
3883 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3884 echo "configure:3885: checking for pid_t" >&5
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 #include <sys/types.h>
3895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3896 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3898 ac_cv_type_pid_t=yes
3905 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3906 if test $ac_cv_type_pid_t = no; then
3907 { test "$extra_verbose" = "yes" && cat << \EOF
3908 Defining pid_t = int
3910 cat >> confdefs.h <<\EOF
3917 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3918 echo "configure:3919: checking for uid_t in sys/types.h" >&5
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 #include <sys/types.h>
3925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926 egrep "uid_t" >/dev/null 2>&1; then
3928 ac_cv_type_uid_t=yes
3936 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3937 if test $ac_cv_type_uid_t = no; then
3938 { test "$extra_verbose" = "yes" && cat << \EOF
3939 Defining uid_t = int
3941 cat >> confdefs.h <<\EOF
3946 { test "$extra_verbose" = "yes" && cat << \EOF
3947 Defining gid_t = int
3949 cat >> confdefs.h <<\EOF
3956 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3957 echo "configure:3958: checking for mode_t" >&5
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 #include <sys/types.h>
3968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3971 ac_cv_type_mode_t=yes
3974 ac_cv_type_mode_t=no
3978 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3979 if test $ac_cv_type_mode_t = no; then
3980 { test "$extra_verbose" = "yes" && cat << \EOF
3981 Defining mode_t = int
3983 cat >> confdefs.h <<\EOF
3990 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3991 echo "configure:3992: checking for off_t" >&5
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 #include <sys/types.h>
4002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4003 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4005 ac_cv_type_off_t=yes
4012 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4013 if test $ac_cv_type_off_t = no; then
4014 { test "$extra_verbose" = "yes" && cat << \EOF
4015 Defining off_t = long
4017 cat >> confdefs.h <<\EOF
4024 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4025 echo "configure:4026: checking for ssize_t" >&5
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4030 #include <sys/types.h>
4036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4039 ac_cv_type_ssize_t=yes
4042 ac_cv_type_ssize_t=no
4046 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4047 if test $ac_cv_type_ssize_t = no; then
4048 { test "$extra_verbose" = "yes" && cat << \EOF
4049 Defining ssize_t = int
4051 cat >> confdefs.h <<\EOF
4059 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4060 echo "configure:4061: checking for struct timeval" >&5
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 #ifdef TIME_WITH_SYS_TIME
4065 #include <sys/time.h>
4068 #ifdef HAVE_SYS_TIME_H
4069 #include <sys/time.h>
4075 static struct timeval x; x.tv_sec = x.tv_usec;
4078 if { (eval echo configure:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4080 echo "$ac_t""yes" 1>&6
4082 { test "$extra_verbose" = "yes" && cat << \EOF
4083 Defining HAVE_TIMEVAL
4085 cat >> confdefs.h <<\EOF
4086 #define HAVE_TIMEVAL 1
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4094 echo "$ac_t""no" 1>&6
4099 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4100 echo "configure:4101: checking whether struct tm is in sys/time.h or time.h" >&5
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4105 #include <sys/types.h>
4108 struct tm *tp; tp->tm_sec;
4111 if { (eval echo configure:4112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4113 ac_cv_struct_tm=time.h
4115 echo "configure: failed program was:" >&5
4116 cat conftest.$ac_ext >&5
4118 ac_cv_struct_tm=sys/time.h
4122 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4123 if test $ac_cv_struct_tm = sys/time.h; then
4124 { test "$extra_verbose" = "yes" && cat << \EOF
4125 Defining TM_IN_SYS_TIME
4127 cat >> confdefs.h <<\EOF
4128 #define TM_IN_SYS_TIME 1
4134 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4135 echo "configure:4136: checking for tm_zone in struct tm" >&5
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <sys/types.h>
4141 #include <$ac_cv_struct_tm>
4143 struct tm tm; tm.tm_zone;
4146 if { (eval echo configure:4147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4148 ac_cv_struct_tm_zone=yes
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4153 ac_cv_struct_tm_zone=no
4157 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4158 if test "$ac_cv_struct_tm_zone" = yes; then
4159 { test "$extra_verbose" = "yes" && cat << \EOF
4160 Defining HAVE_TM_ZONE
4162 cat >> confdefs.h <<\EOF
4163 #define HAVE_TM_ZONE 1
4168 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4169 echo "configure:4170: checking for tzname" >&5
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4175 #ifndef tzname /* For SGI. */
4176 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4184 ac_cv_var_tzname=yes
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4193 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4194 if test $ac_cv_var_tzname = yes; then
4195 { test "$extra_verbose" = "yes" && cat << \EOF
4196 Defining HAVE_TZNAME
4198 cat >> confdefs.h <<\EOF
4199 #define HAVE_TZNAME 1
4207 echo $ac_n "checking for working const""... $ac_c" 1>&6
4208 echo "configure:4209: checking for working const" >&5
4210 cat > conftest.$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4216 /* Ultrix mips cc rejects this. */
4217 typedef int charset[2]; const charset x = {0,0};
4218 /* SunOS 4.1.1 cc rejects this. */
4219 char const *const *ccp;
4221 /* NEC SVR4.0.2 mips cc rejects this. */
4222 struct point {int x, y;};
4223 static struct point const zero = {0,0};
4224 /* AIX XL C 1.02.0.0 rejects this.
4225 It does not let you subtract one const X* pointer from another in an arm
4226 of an if-expression whose if-part is not a constant expression */
4227 const char *g = "string";
4228 ccp = &g + (g ? g-g : 0);
4229 /* HPUX 7.0 cc rejects these. */
4232 ccp = (char const *const *) p;
4233 { /* SCO 3.2v4 cc rejects this. */
4235 char const *s = 0 ? (char *) 0 : (char const *) 0;
4239 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4241 const int *foo = &x[0];
4244 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4245 typedef const int *iptr;
4249 { /* AIX XL C 1.02.0.0 rejects this saying
4250 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4251 struct s { int j; const int *ap[3]; };
4252 struct s *b; b->j = 5;
4254 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4260 if { (eval echo configure:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4271 echo "$ac_t""$ac_cv_c_const" 1>&6
4272 if test $ac_cv_c_const = no; then
4273 { test "$extra_verbose" = "yes" && cat << \EOF
4276 cat >> confdefs.h <<\EOF
4284 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4285 echo "configure:4286: checking whether ${MAKE-make} sets \${MAKE}" >&5
4286 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4288 cat > conftestmake <<\EOF
4290 @echo 'ac_maketemp="${MAKE}"'
4292 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4293 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4294 if test -n "$ac_maketemp"; then
4295 eval ac_cv_prog_make_${ac_make}_set=yes
4297 eval ac_cv_prog_make_${ac_make}_set=no
4300 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4301 echo "$ac_t""yes" 1>&6
4304 echo "$ac_t""no" 1>&6
4305 SET_MAKE="MAKE=${MAKE-make}"
4309 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4310 echo "configure:4311: checking whether byte ordering is bigendian" >&5
4312 ac_cv_c_bigendian=unknown
4313 # See if sys/param.h defines the BYTE_ORDER macro.
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 #include <sys/types.h>
4318 #include <sys/param.h>
4321 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4326 if { (eval echo configure:4327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4328 # It does; now see whether it defined to BIG_ENDIAN or not.
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 #include <sys/types.h>
4333 #include <sys/param.h>
4336 #if BYTE_ORDER != BIG_ENDIAN
4341 if { (eval echo configure:4342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4343 ac_cv_c_bigendian=yes
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 ac_cv_c_bigendian=no
4352 echo "configure: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4356 if test $ac_cv_c_bigendian = unknown; then
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4361 /* Are we little or big endian? From Harbison&Steele. */
4365 char c[sizeof (long)];
4368 exit (u.c[sizeof (long) - 1] == 1);
4371 if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4373 ac_cv_c_bigendian=no
4376 echo "configure: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4379 ac_cv_c_bigendian=yes
4384 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4385 if test $ac_cv_c_bigendian = yes; then
4386 { test "$extra_verbose" = "yes" && cat << \EOF
4387 Defining WORDS_BIGENDIAN
4389 cat >> confdefs.h <<\EOF
4390 #define WORDS_BIGENDIAN 1
4397 echo $ac_n "checking size of short""... $ac_c" 1>&6
4398 echo "configure:4399: checking size of short" >&5
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4406 FILE *f=fopen("conftestval", "w");
4408 fprintf(f, "%d\n", sizeof(short));
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4414 ac_cv_sizeof_short=`cat conftestval`
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4420 ac_cv_sizeof_short=0
4423 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4424 { test "$extra_verbose" = "yes" && cat << EOF
4425 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4427 cat >> confdefs.h <<EOF
4428 #define SIZEOF_SHORT $ac_cv_sizeof_short
4433 if test "$ac_cv_sizeof_short" = 0; then
4435 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4436 echo "*** PANIC *** Please examine config.log for compilation errors."
4439 echo $ac_n "checking size of int""... $ac_c" 1>&6
4440 echo "configure:4441: checking size of int" >&5
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4448 FILE *f=fopen("conftestval", "w");
4450 fprintf(f, "%d\n", sizeof(int));
4454 if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4456 ac_cv_sizeof_int=`cat conftestval`
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4465 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4466 { test "$extra_verbose" = "yes" && cat << EOF
4467 Defining SIZEOF_INT = $ac_cv_sizeof_int
4469 cat >> confdefs.h <<EOF
4470 #define SIZEOF_INT $ac_cv_sizeof_int
4475 echo $ac_n "checking size of long""... $ac_c" 1>&6
4476 echo "configure:4477: checking size of long" >&5
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4484 FILE *f=fopen("conftestval", "w");
4486 fprintf(f, "%d\n", sizeof(long));
4490 if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4492 ac_cv_sizeof_long=`cat conftestval`
4495 echo "configure: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4501 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4502 { test "$extra_verbose" = "yes" && cat << EOF
4503 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4505 cat >> confdefs.h <<EOF
4506 #define SIZEOF_LONG $ac_cv_sizeof_long
4511 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4512 echo "configure:4513: checking size of long long" >&5
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4520 FILE *f=fopen("conftestval", "w");
4522 fprintf(f, "%d\n", sizeof(long long));
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4528 ac_cv_sizeof_long_long=`cat conftestval`
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4534 ac_cv_sizeof_long_long=0
4537 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4538 { test "$extra_verbose" = "yes" && cat << EOF
4539 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4541 cat >> confdefs.h <<EOF
4542 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4547 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4548 echo "configure:4549: checking size of void *" >&5
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4556 FILE *f=fopen("conftestval", "w");
4558 fprintf(f, "%d\n", sizeof(void *));
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4564 ac_cv_sizeof_void_p=`cat conftestval`
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4570 ac_cv_sizeof_void_p=0
4573 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4574 { test "$extra_verbose" = "yes" && cat << EOF
4575 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4577 cat >> confdefs.h <<EOF
4578 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4584 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4585 echo "configure:4586: checking for long file names" >&5
4587 ac_cv_sys_long_file_names=yes
4588 # Test for long file names in all the places we know might matter:
4589 # . the current directory, where building will happen
4590 # $prefix/lib where we will be installing things
4591 # $exec_prefix/lib likewise
4592 # eval it to expand exec_prefix.
4593 # $TMPDIR if set, where it might want to write temporary files
4594 # if $TMPDIR is not set:
4595 # /tmp where it might want to write temporary files
4598 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4599 ac_tmpdirs="$TMPDIR"
4601 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4603 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4604 test -d $ac_dir || continue
4605 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4606 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4607 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4608 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4609 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4610 ac_cv_sys_long_file_names=no
4611 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4614 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4617 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4618 if test $ac_cv_sys_long_file_names = yes; then
4619 { test "$extra_verbose" = "yes" && cat << \EOF
4620 Defining HAVE_LONG_FILE_NAMES
4622 cat >> confdefs.h <<\EOF
4623 #define HAVE_LONG_FILE_NAMES 1
4630 echo $ac_n "checking for sin""... $ac_c" 1>&6
4631 echo "configure:4632: checking for sin" >&5
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* System header to define __stub macros and hopefully few prototypes,
4637 which can conflict with char sin(); below. */
4639 /* Override any gcc2 internal prototype to avoid an error. */
4640 /* We use char because int might match the return type of a gcc2
4641 builtin and then its argument prototype would still apply. */
4646 /* The GNU C library defines this for functions which it implements
4647 to always fail with ENOSYS. Some functions are actually named
4648 something starting with __ and the normal name is an alias. */
4649 #if defined (__stub_sin) || defined (__stub___sin)
4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4659 eval "ac_cv_func_sin=yes"
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4664 eval "ac_cv_func_sin=no"
4668 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4672 echo "$ac_t""no" 1>&6
4674 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4675 echo "configure:4676: checking for sin in -lm" >&5
4676 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4678 xe_check_libs=" -lm "
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 /* Override any gcc2 internal prototype to avoid an error. */
4683 /* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 eval "ac_cv_lib_$ac_lib_var=yes"
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 eval "ac_cv_lib_$ac_lib_var=no"
4703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4704 echo "$ac_t""yes" 1>&6
4705 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4706 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4707 { test "$extra_verbose" = "yes" && cat << EOF
4710 cat >> confdefs.h <<EOF
4711 #define $ac_tr_lib 1
4715 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4718 echo "$ac_t""no" 1>&6
4725 { test "$extra_verbose" = "yes" && cat << \EOF
4726 Defining LISP_FLOAT_TYPE
4728 cat >> confdefs.h <<\EOF
4729 #define LISP_FLOAT_TYPE 1
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4739 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744 { test "$extra_verbose" = "yes" && cat << \EOF
4745 Defining HAVE_INVERSE_HYPERBOLIC
4747 cat >> confdefs.h <<\EOF
4748 #define HAVE_INVERSE_HYPERBOLIC 1
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4758 echo "checking type of mail spool file locking" 1>&6
4759 echo "configure:4760: checking type of mail spool file locking" >&5
4760 for ac_func in lockf flock
4762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4763 echo "configure:4764: checking for $ac_func" >&5
4765 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4768 /* System header to define __stub macros and hopefully few prototypes,
4769 which can conflict with char $ac_func(); below. */
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4778 /* The GNU C library defines this for functions which it implements
4779 to always fail with ENOSYS. Some functions are actually named
4780 something starting with __ and the normal name is an alias. */
4781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 eval "ac_cv_func_$ac_func=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_func_$ac_func=no"
4800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4803 { test "$extra_verbose" = "yes" && cat << EOF
4804 Defining $ac_tr_func
4806 cat >> confdefs.h <<EOF
4807 #define $ac_tr_func 1
4812 echo "$ac_t""no" 1>&6
4816 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4817 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4818 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4819 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4820 Defining MAIL_LOCK_LOCKF
4822 cat >> confdefs.h <<\EOF
4823 #define MAIL_LOCK_LOCKF 1
4827 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4828 Defining MAIL_LOCK_FLOCK
4830 cat >> confdefs.h <<\EOF
4831 #define MAIL_LOCK_FLOCK 1
4835 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4836 Defining MAIL_LOCK_LOCKING
4838 cat >> confdefs.h <<\EOF
4839 #define MAIL_LOCK_LOCKING 1
4843 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4844 Defining MAIL_LOCK_DOT
4846 cat >> confdefs.h <<\EOF
4847 #define MAIL_LOCK_DOT 1
4852 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4853 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4854 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4855 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4856 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4857 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4859 case "$opsys" in decosf*)
4861 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4862 echo "configure:4863: checking for cma_open in -lpthreads" >&5
4863 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4865 xe_check_libs=" -lpthreads "
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 /* Override any gcc2 internal prototype to avoid an error. */
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 eval "ac_cv_lib_$ac_lib_var=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_lib_$ac_lib_var=no"
4890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4891 echo "$ac_t""yes" 1>&6
4892 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4893 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4894 { test "$extra_verbose" = "yes" && cat << EOF
4897 cat >> confdefs.h <<EOF
4898 #define $ac_tr_lib 1
4902 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4905 echo "$ac_t""no" 1>&6
4909 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4910 c_switch_site="$c_switch_site -threads" ;;
4913 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4914 echo "configure:4915: checking whether the -xildoff compiler flag is required" >&5
4915 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4916 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4917 then echo "$ac_t""no" 1>&6;
4918 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
4920 else echo "$ac_t""no" 1>&6
4923 if test "$opsys" = "sol2"; then
4924 if test "$os_release" -ge 56; then
4925 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4926 echo "configure:4927: checking for \"-z ignore\" linker flag" >&5
4927 case "`ld -h 2>&1`" in
4928 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4929 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4930 *) echo "$ac_t""no" 1>&6 ;;
4936 echo "checking "for specified window system"" 1>&6
4937 echo "configure:4938: checking "for specified window system"" >&5
4939 if test "$with_x11" != "no"; then
4940 test "$x_includes $x_libraries" != "NONE NONE" && \
4941 window_system=x11 with_x11=yes
4944 if test "$x_includes $x_libraries" = "NONE NONE" \
4945 -a -n "$OPENWINHOME" \
4946 -a "$OPENWINHOME" != "/usr/openwin" \
4947 -a -d "$OPENWINHOME"; then
4948 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4949 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4950 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4953 if test "$x_includes" = "NONE"; then
4954 for dir in "/usr/X11" "/usr/X11R6"; do
4955 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4959 if test "$x_libraries" = "NONE"; then
4960 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4961 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4965 # If we find X, set shell vars x_includes and x_libraries to the
4966 # paths, otherwise set no_x=yes.
4967 # Uses ac_ vars as temps to allow command line to override cache and checks.
4968 # --without-x overrides everything else, but does not touch the cache.
4969 echo $ac_n "checking for X""... $ac_c" 1>&6
4970 echo "configure:4971: checking for X" >&5
4972 # Check whether --with-x or --without-x was given.
4973 if test "${with_x+set}" = set; then
4978 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4979 if test "x$with_x" = xno; then
4980 # The user explicitly disabled X.
4983 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4984 # Both variables are already set.
4988 # One or both of the vars are not set, and there is no cached value.
4989 ac_x_includes=NO ac_x_libraries=NO
4991 if mkdir conftestdir; then
4993 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4994 cat > Imakefile <<'EOF'
4996 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4998 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4999 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5000 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5001 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5002 for ac_extension in a so sl; do
5003 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5004 test -f $ac_im_libdir/libX11.$ac_extension; then
5005 ac_im_usrlibdir=$ac_im_libdir; break
5008 # Screen out bogus values from the imake configuration. They are
5009 # bogus both because they are the default anyway, and because
5010 # using them would break gcc on systems where it needs fixed includes.
5011 case "$ac_im_incroot" in
5013 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5015 case "$ac_im_usrlibdir" in
5017 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5024 if test "$ac_x_includes" = NO; then
5025 # Guess where to find include files, by looking for this one X11 .h file.
5026 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5028 # First, try using that file with no special directory specified.
5029 cat > conftest.$ac_ext <<EOF
5030 #line 5031 "configure"
5031 #include "confdefs.h"
5032 #include <$x_direct_test_include>
5034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5035 { (eval echo configure:5036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5037 if test -z "$ac_err"; then
5039 # We can compile using X headers with no special include directory.
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5046 # Look for the header file in a standard set of common directories.
5047 # Check X11 before X11Rn because it is often a symlink to the current release.
5050 /usr/X11R6/include \
5051 /usr/X11R5/include \
5052 /usr/X11R4/include \
5055 /usr/include/X11R6 \
5056 /usr/include/X11R5 \
5057 /usr/include/X11R4 \
5059 /usr/local/X11/include \
5060 /usr/local/X11R6/include \
5061 /usr/local/X11R5/include \
5062 /usr/local/X11R4/include \
5064 /usr/local/include/X11 \
5065 /usr/local/include/X11R6 \
5066 /usr/local/include/X11R5 \
5067 /usr/local/include/X11R4 \
5071 /usr/XFree86/include/X11 \
5074 /usr/local/include \
5075 /usr/unsupported/include \
5076 /usr/athena/include \
5077 /usr/local/x11r5/include \
5078 /usr/lpp/Xamples/include \
5080 /usr/openwin/include \
5081 /usr/openwin/share/include \
5084 if test -r "$ac_dir/$x_direct_test_include"; then
5085 ac_x_includes=$ac_dir
5091 fi # $ac_x_includes = NO
5093 if test "$ac_x_libraries" = NO; then
5094 # Check for the libraries.
5096 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5097 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5099 # See if we find them without any special options.
5100 # Don't add to $LIBS permanently.
5101 ac_save_LIBS="$LIBS"
5102 LIBS="-l$x_direct_test_library $LIBS"
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5108 ${x_direct_test_function}()
5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5113 LIBS="$ac_save_LIBS"
5114 # We can link X programs with no special library path.
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5120 LIBS="$ac_save_LIBS"
5121 # First see if replacing the include by lib works.
5122 # Check X11 before X11Rn because it is often a symlink to the current release.
5123 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5134 /usr/local/X11/lib \
5135 /usr/local/X11R6/lib \
5136 /usr/local/X11R5/lib \
5137 /usr/local/X11R4/lib \
5139 /usr/local/lib/X11 \
5140 /usr/local/lib/X11R6 \
5141 /usr/local/lib/X11R5 \
5142 /usr/local/lib/X11R4 \
5146 /usr/XFree86/lib/X11 \
5150 /usr/unsupported/lib \
5152 /usr/local/x11r5/lib \
5153 /usr/lpp/Xamples/lib \
5157 /usr/openwin/share/lib \
5160 for ac_extension in a so sl; do
5161 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5162 ac_x_libraries=$ac_dir
5169 fi # $ac_x_libraries = NO
5171 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5172 # Didn't find X anywhere. Cache the known absence of X.
5173 ac_cv_have_x="have_x=no"
5175 # Record where we found X for the cache.
5176 ac_cv_have_x="have_x=yes \
5177 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5180 eval "$ac_cv_have_x"
5183 if test "$have_x" != yes; then
5184 echo "$ac_t""$have_x" 1>&6
5187 # If each of the values was on the command line, it overrides each guess.
5188 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5189 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5190 # Update the cache value to reflect the command line values.
5191 ac_cv_have_x="have_x=yes \
5192 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5193 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5196 if test "$no_x" = yes; then
5197 # Not all programs may use this symbol, but it does not hurt to define it.
5198 { test "$extra_verbose" = "yes" && cat << \EOF
5199 Defining X_DISPLAY_MISSING
5201 cat >> confdefs.h <<\EOF
5202 #define X_DISPLAY_MISSING 1
5206 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5208 if test -n "$x_includes"; then
5209 X_CFLAGS="$X_CFLAGS -I$x_includes"
5212 # It would also be nice to do this for all -L options, not just this one.
5213 if test -n "$x_libraries"; then
5214 X_LIBS="$X_LIBS -L$x_libraries"
5215 # For Solaris; some versions of Sun CC require a space after -R and
5216 # others require no space. Words are not sufficient . . . .
5217 case "`(uname -sr) 2>/dev/null`" in
5219 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5220 echo "configure:5221: checking whether -R must be followed by a space" >&5
5221 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5222 cat > conftest.$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5230 if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5240 if test $ac_R_nospace = yes; then
5241 echo "$ac_t""no" 1>&6
5242 X_LIBS="$X_LIBS -R$x_libraries"
5244 LIBS="$ac_xsave_LIBS -R $x_libraries"
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5263 if test $ac_R_space = yes; then
5264 echo "$ac_t""yes" 1>&6
5265 X_LIBS="$X_LIBS -R $x_libraries"
5267 echo "$ac_t""neither works" 1>&6
5270 LIBS="$ac_xsave_LIBS"
5274 # Check for system-dependent libraries X programs must link with.
5275 # Do this before checking for the system-independent R6 libraries
5276 # (-lICE), since we may need -lsocket or whatever for X linking.
5278 if test "$ISC" = yes; then
5279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5281 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5282 # libraries were built with DECnet support. And karl@cs.umb.edu says
5283 # the Alpha needs dnet_stub (dnet does not exist).
5284 if test "$with_dnet" = "no" ; then
5285 ac_cv_lib_dnet_dnet_ntoa=no
5288 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5289 echo "configure:5290: checking for dnet_ntoa in -ldnet" >&5
5290 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5292 xe_check_libs=" -ldnet "
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5296 /* Override any gcc2 internal prototype to avoid an error. */
5297 /* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5305 if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5307 eval "ac_cv_lib_$ac_lib_var=yes"
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5312 eval "ac_cv_lib_$ac_lib_var=no"
5317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5318 echo "$ac_t""yes" 1>&6
5319 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5321 echo "$ac_t""no" 1>&6
5326 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5328 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5329 echo "configure:5330: checking for dnet_ntoa in -ldnet_stub" >&5
5330 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5332 xe_check_libs=" -ldnet_stub "
5333 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5336 /* Override any gcc2 internal prototype to avoid an error. */
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5347 eval "ac_cv_lib_$ac_lib_var=yes"
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5352 eval "ac_cv_lib_$ac_lib_var=no"
5357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5358 echo "$ac_t""yes" 1>&6
5359 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5361 echo "$ac_t""no" 1>&6
5367 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5368 # to get the SysV transport functions.
5369 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5371 # The nsl library prevents programs from opening the X display
5372 # on Irix 5.2, according to dickey@clark.net.
5373 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5374 echo "configure:5375: checking for gethostbyname" >&5
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5379 /* System header to define __stub macros and hopefully few prototypes,
5380 which can conflict with char gethostbyname(); below. */
5382 /* Override any gcc2 internal prototype to avoid an error. */
5383 /* We use char because int might match the return type of a gcc2
5384 builtin and then its argument prototype would still apply. */
5385 char gethostbyname();
5389 /* The GNU C library defines this for functions which it implements
5390 to always fail with ENOSYS. Some functions are actually named
5391 something starting with __ and the normal name is an alias. */
5392 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5400 if { (eval echo configure:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5402 eval "ac_cv_func_gethostbyname=yes"
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5407 eval "ac_cv_func_gethostbyname=no"
5411 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5415 echo "$ac_t""no" 1>&6
5418 if test $ac_cv_func_gethostbyname = no; then
5420 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5421 echo "configure:5422: checking for gethostbyname in -lnsl" >&5
5422 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5424 xe_check_libs=" -lnsl "
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* Override any gcc2 internal prototype to avoid an error. */
5429 /* We use char because int might match the return type of a gcc2
5430 builtin and then its argument prototype would still apply. */
5431 char gethostbyname();
5437 if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5439 eval "ac_cv_lib_$ac_lib_var=yes"
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5444 eval "ac_cv_lib_$ac_lib_var=no"
5449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5450 echo "$ac_t""yes" 1>&6
5451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5453 echo "$ac_t""no" 1>&6
5459 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5460 # socket/setsockopt and other routines are undefined under SCO ODT
5461 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5462 # on later versions), says simon@lia.di.epfl.ch: it contains
5463 # gethostby* variants that don't use the nameserver (or something).
5464 # -lsocket must be given before -lnsl if both are needed.
5465 # We assume that if connect needs -lnsl, so does gethostbyname.
5466 echo $ac_n "checking for connect""... $ac_c" 1>&6
5467 echo "configure:5468: checking for connect" >&5
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 /* System header to define __stub macros and hopefully few prototypes,
5473 which can conflict with char connect(); below. */
5475 /* Override any gcc2 internal prototype to avoid an error. */
5476 /* We use char because int might match the return type of a gcc2
5477 builtin and then its argument prototype would still apply. */
5482 /* The GNU C library defines this for functions which it implements
5483 to always fail with ENOSYS. Some functions are actually named
5484 something starting with __ and the normal name is an alias. */
5485 #if defined (__stub_connect) || defined (__stub___connect)
5493 if { (eval echo configure:5494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5495 eval "ac_cv_func_connect=yes"
5497 echo "configure: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5500 eval "ac_cv_func_connect=no"
5504 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5505 echo "$ac_t""yes" 1>&6
5508 echo "$ac_t""no" 1>&6
5511 if test $ac_cv_func_connect = no; then
5513 xe_msg_checking="for connect in -lsocket"
5514 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5515 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5516 echo "configure:5517: checking "$xe_msg_checking"" >&5
5517 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5519 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5520 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5534 eval "ac_cv_lib_$ac_lib_var=yes"
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5539 eval "ac_cv_lib_$ac_lib_var=no"
5544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5545 echo "$ac_t""yes" 1>&6
5546 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5548 echo "$ac_t""no" 1>&6
5554 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5555 echo $ac_n "checking for remove""... $ac_c" 1>&6
5556 echo "configure:5557: checking for remove" >&5
5558 cat > conftest.$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 /* System header to define __stub macros and hopefully few prototypes,
5562 which can conflict with char remove(); below. */
5564 /* Override any gcc2 internal prototype to avoid an error. */
5565 /* We use char because int might match the return type of a gcc2
5566 builtin and then its argument prototype would still apply. */
5571 /* The GNU C library defines this for functions which it implements
5572 to always fail with ENOSYS. Some functions are actually named
5573 something starting with __ and the normal name is an alias. */
5574 #if defined (__stub_remove) || defined (__stub___remove)
5582 if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5584 eval "ac_cv_func_remove=yes"
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5589 eval "ac_cv_func_remove=no"
5593 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5594 echo "$ac_t""yes" 1>&6
5597 echo "$ac_t""no" 1>&6
5600 if test $ac_cv_func_remove = no; then
5602 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5603 echo "configure:5604: checking for remove in -lposix" >&5
5604 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5606 xe_check_libs=" -lposix "
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5610 /* Override any gcc2 internal prototype to avoid an error. */
5611 /* We use char because int might match the return type of a gcc2
5612 builtin and then its argument prototype would still apply. */
5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621 eval "ac_cv_lib_$ac_lib_var=yes"
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 eval "ac_cv_lib_$ac_lib_var=no"
5631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5632 echo "$ac_t""yes" 1>&6
5633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5635 echo "$ac_t""no" 1>&6
5641 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5642 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5643 echo "configure:5644: checking for shmat" >&5
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char shmat(); below. */
5651 /* Override any gcc2 internal prototype to avoid an error. */
5652 /* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */
5658 /* The GNU C library defines this for functions which it implements
5659 to always fail with ENOSYS. Some functions are actually named
5660 something starting with __ and the normal name is an alias. */
5661 #if defined (__stub_shmat) || defined (__stub___shmat)
5669 if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5671 eval "ac_cv_func_shmat=yes"
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 eval "ac_cv_func_shmat=no"
5680 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5681 echo "$ac_t""yes" 1>&6
5684 echo "$ac_t""no" 1>&6
5687 if test $ac_cv_func_shmat = no; then
5689 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5690 echo "configure:5691: checking for shmat in -lipc" >&5
5691 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5693 xe_check_libs=" -lipc "
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5697 /* Override any gcc2 internal prototype to avoid an error. */
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5706 if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5708 eval "ac_cv_lib_$ac_lib_var=yes"
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5713 eval "ac_cv_lib_$ac_lib_var=no"
5718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5719 echo "$ac_t""yes" 1>&6
5720 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5722 echo "$ac_t""no" 1>&6
5729 # Check for libraries that X11R6 Xt/Xaw programs need.
5730 ac_save_LDFLAGS="$LDFLAGS"
5731 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5732 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5733 # check for ICE first), but we must link in the order -lSM -lICE or
5734 # we get undefined symbols. So assume we have SM if we have ICE.
5735 # These have to be linked with before -lX11, unlike the other
5736 # libraries we check for below, so use a different variable.
5737 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5739 xe_msg_checking="for IceConnectionNumber in -lICE"
5740 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5741 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5742 echo "configure:5743: checking "$xe_msg_checking"" >&5
5743 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5745 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5746 cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5749 /* Override any gcc2 internal prototype to avoid an error. */
5750 /* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5752 char IceConnectionNumber();
5755 IceConnectionNumber()
5758 if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5760 eval "ac_cv_lib_$ac_lib_var=yes"
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5765 eval "ac_cv_lib_$ac_lib_var=no"
5770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5771 echo "$ac_t""yes" 1>&6
5772 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5774 echo "$ac_t""no" 1>&6
5778 LDFLAGS="$ac_save_LDFLAGS"
5781 # Autoconf claims to find X library and include dirs for us.
5782 if test "$no_x" = "yes"
5783 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5784 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5789 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5790 no ) window_system=none HAVE_X_WINDOWS=no ;;
5793 if test "$with_x11" = "yes"; then
5794 { test "$extra_verbose" = "yes" && cat << \EOF
5795 Defining HAVE_X_WINDOWS
5797 cat >> confdefs.h <<\EOF
5798 #define HAVE_X_WINDOWS 1
5802 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5803 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5805 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5806 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5807 if test -d "$lib_dir" -a -d "$inc_dir"; then
5808 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5809 x_libraries="$lib_dir $x_libraries"
5810 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5812 case "$x_includes" in "$inc_dir"* ) ;; *)
5813 x_includes="$inc_dir $x_includes"
5814 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5819 for rel in "X11R6" "X11R5" "X11R4"; do
5820 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5821 if test -d "$lib_dir" -a -d "$inc_dir"; then
5822 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5823 x_libraries="$x_libraries $lib_dir"
5824 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5826 case "$x_includes" in "$inc_dir"* ) ;; *)
5827 x_includes="$x_includes $inc_dir"
5828 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5833 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
5835 ld_switch_x_site="$X_LIBS"
5838 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5839 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5840 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5842 runpath="" runpath_dirs=""
5843 if test -n "$LD_RUN_PATH"; then
5844 runpath="$LD_RUN_PATH"
5845 elif test "$GCC" = "yes"; then
5846 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5847 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5848 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5849 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5850 case "$arg" in P,* | -L* | -R* )
5851 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5853 xe_runpath_dir="$dir"
5854 test "$xe_runpath_dir" != "/lib" -a \
5855 "$xe_runpath_dir" != "/usr/lib" -a \
5856 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5857 eval "$xe_add_unique_runpath_dir"
5862 ld_switch_run="$ld_switch_run_save"
5865 for arg in $ld_switch_site $ld_switch_x_site; do
5866 case "$arg" in -L*) {
5867 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5868 test "$xe_runpath_dir" != "/lib" -a \
5869 "$xe_runpath_dir" != "/usr/lib" -a \
5870 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5871 eval "$xe_add_unique_runpath_dir"
5874 if test "$opsys $need_motif" = "sol2 yes"; then
5875 xe_runpath_dir="/opt/SUNWdt/lib";
5876 eval "$xe_add_unique_runpath_dir";
5879 if test -n "$runpath"; then
5880 ld_switch_run="${dash_r}${runpath}"
5882 if test "$GCC" = "yes"; then
5883 set x $ld_switch_run; shift; ld_switch_run=""
5884 while test -n "$1"; do
5886 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5887 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5889 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5894 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5899 if test "$extra_verbose" = "yes"; then
5900 echo; echo "X11 compilation variables:"
5901 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5906 if test "$x_includes" != NONE; then
5907 for i in $x_includes; do
5908 if test -d "$i/bitmaps"; then
5909 bitmapdirs="$i/bitmaps:$bitmapdirs"
5911 if test -d "$i/X11/bitmaps"; then
5912 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5915 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5917 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5918 Defining BITMAPDIR = "$bitmapdirs"
5920 cat >> confdefs.h <<EOF
5921 #define BITMAPDIR "$bitmapdirs"
5926 echo "checking for X defines extracted by xmkmf" 1>&6
5927 echo "configure:5928: checking for X defines extracted by xmkmf" >&5
5929 if mkdir conftestdir; then
5931 cat > Imakefile <<'EOF'
5933 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5935 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5936 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5937 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5941 for word in $xmkmf_defines; do
5944 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5945 { test "$extra_verbose" = "yes" && cat << EOF
5948 cat >> confdefs.h <<EOF
5957 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5958 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5959 echo "configure:5960: checking for X11/Intrinsic.h" >&5
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 #include <X11/Intrinsic.h>
5966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5967 { (eval echo configure:5968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5969 if test -z "$ac_err"; then
5971 eval "ac_cv_header_$ac_safe=yes"
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5977 eval "ac_cv_header_$ac_safe=no"
5980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5981 echo "$ac_t""yes" 1>&6
5984 echo "$ac_t""no" 1>&6
5985 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5990 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5991 echo "configure:5992: checking for XOpenDisplay in -lX11" >&5
5992 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5994 xe_check_libs=" -lX11 "
5995 cat > conftest.$ac_ext <<EOF
5996 #line 5997 "configure"
5997 #include "confdefs.h"
5998 /* Override any gcc2 internal prototype to avoid an error. */
5999 /* We use char because int might match the return type of a gcc2
6000 builtin and then its argument prototype would still apply. */
6001 char XOpenDisplay();
6007 if { (eval echo configure:6008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6009 eval "ac_cv_lib_$ac_lib_var=yes"
6011 echo "configure: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6014 eval "ac_cv_lib_$ac_lib_var=no"
6019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6020 echo "$ac_t""yes" 1>&6
6023 echo "$ac_t""no" 1>&6
6027 if test "$have_lib_x11" != "yes"; then
6029 xe_msg_checking="for XGetFontProperty in -lX11"
6030 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6031 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6032 echo "configure:6033: checking "$xe_msg_checking"" >&5
6033 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6035 xe_check_libs=" -lX11 -b i486-linuxaout"
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 /* Override any gcc2 internal prototype to avoid an error. */
6040 /* We use char because int might match the return type of a gcc2
6041 builtin and then its argument prototype would still apply. */
6042 char XGetFontProperty();
6048 if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6050 eval "ac_cv_lib_$ac_lib_var=yes"
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6055 eval "ac_cv_lib_$ac_lib_var=no"
6060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6061 echo "$ac_t""yes" 1>&6
6062 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6064 echo "$ac_t""no" 1>&6
6065 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6071 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6074 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6075 echo "configure:6076: checking for XShapeSelectInput in -lXext" >&5
6076 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6078 xe_check_libs=" -lXext "
6079 cat > conftest.$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6082 /* Override any gcc2 internal prototype to avoid an error. */
6083 /* We use char because int might match the return type of a gcc2
6084 builtin and then its argument prototype would still apply. */
6085 char XShapeSelectInput();
6091 if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6093 eval "ac_cv_lib_$ac_lib_var=yes"
6095 echo "configure: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6098 eval "ac_cv_lib_$ac_lib_var=no"
6103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6104 echo "$ac_t""yes" 1>&6
6105 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6107 echo "$ac_t""no" 1>&6
6113 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6114 echo "configure:6115: checking for XtOpenDisplay in -lXt" >&5
6115 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6117 xe_check_libs=" -lXt "
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 /* Override any gcc2 internal prototype to avoid an error. */
6122 /* We use char because int might match the return type of a gcc2
6123 builtin and then its argument prototype would still apply. */
6124 char XtOpenDisplay();
6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6132 eval "ac_cv_lib_$ac_lib_var=yes"
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6137 eval "ac_cv_lib_$ac_lib_var=no"
6142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6143 echo "$ac_t""yes" 1>&6
6144 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6146 echo "$ac_t""no" 1>&6
6147 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6152 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6153 echo "configure:6154: checking the version of X11 being used" >&5
6154 cat > conftest.$ac_ext <<EOF
6155 #line 6156 "configure"
6156 #include "confdefs.h"
6157 #include <X11/Intrinsic.h>
6158 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6160 if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6162 ./conftest foobar; x11_release=$?
6165 echo "configure: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6171 echo "$ac_t""R${x11_release}" 1>&6
6172 { test "$extra_verbose" = "yes" && cat << EOF
6173 Defining THIS_IS_X11R${x11_release}
6175 cat >> confdefs.h <<EOF
6176 #define THIS_IS_X11R${x11_release} 1
6181 for ac_func in XConvertCase
6183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6184 echo "configure:6185: checking for $ac_func" >&5
6186 cat > conftest.$ac_ext <<EOF
6187 #line 6188 "configure"
6188 #include "confdefs.h"
6189 /* System header to define __stub macros and hopefully few prototypes,
6190 which can conflict with char $ac_func(); below. */
6192 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6199 /* The GNU C library defines this for functions which it implements
6200 to always fail with ENOSYS. Some functions are actually named
6201 something starting with __ and the normal name is an alias. */
6202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6210 if { (eval echo configure:6211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6212 eval "ac_cv_func_$ac_func=yes"
6214 echo "configure: failed program was:" >&5
6215 cat conftest.$ac_ext >&5
6217 eval "ac_cv_func_$ac_func=no"
6221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6222 echo "$ac_t""yes" 1>&6
6223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6224 { test "$extra_verbose" = "yes" && cat << EOF
6225 Defining $ac_tr_func
6227 cat >> confdefs.h <<EOF
6228 #define $ac_tr_func 1
6233 echo "$ac_t""no" 1>&6
6238 for ac_hdr in X11/Xlocale.h
6240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6242 echo "configure:6243: checking for $ac_hdr" >&5
6244 cat > conftest.$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6250 { (eval echo configure:6251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6252 if test -z "$ac_err"; then
6254 eval "ac_cv_header_$ac_safe=yes"
6257 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6260 eval "ac_cv_header_$ac_safe=no"
6263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6264 echo "$ac_t""yes" 1>&6
6265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6266 { test "$extra_verbose" = "yes" && cat << EOF
6269 cat >> confdefs.h <<EOF
6270 #define $ac_tr_hdr 1
6275 echo "$ac_t""no" 1>&6
6280 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6281 echo "configure:6282: checking for XFree86" >&5
6282 if test -d "/usr/X386/include" -o \
6283 -f "/etc/XF86Config" -o \
6284 -f "/etc/X11/XF86Config" -o \
6285 -f "/usr/X11R6/lib/X11/XF86Config"; then
6286 echo "$ac_t""yes" 1>&6
6287 { test "$extra_verbose" = "yes" && cat << \EOF
6288 Defining HAVE_XFREE386
6290 cat >> confdefs.h <<\EOF
6291 #define HAVE_XFREE386 1
6296 echo "$ac_t""no" 1>&6
6299 test -z "$with_xmu" && {
6300 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6301 echo "configure:6302: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6302 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6304 xe_check_libs=" -lXmu "
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6311 char XmuReadBitmapDataFromFile();
6314 XmuReadBitmapDataFromFile()
6317 if { (eval echo configure:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6319 eval "ac_cv_lib_$ac_lib_var=yes"
6321 echo "configure: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6324 eval "ac_cv_lib_$ac_lib_var=no"
6329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6330 echo "$ac_t""yes" 1>&6
6333 echo "$ac_t""no" 1>&6
6338 if test "$with_xmu" = "no"; then
6339 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6340 echo " xemacs will be linked with \"xmu.o\""
6343 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6344 { test "$extra_verbose" = "yes" && cat << \EOF
6347 cat >> confdefs.h <<\EOF
6355 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6356 echo "configure:6357: checking for main in -lXbsd" >&5
6357 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6359 xe_check_libs=" -lXbsd "
6360 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6368 if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6370 eval "ac_cv_lib_$ac_lib_var=yes"
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6375 eval "ac_cv_lib_$ac_lib_var=no"
6380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6381 echo "$ac_t""yes" 1>&6
6382 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6384 echo "$ac_t""no" 1>&6
6389 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6390 if test "$GCC" = "yes"; then
6391 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6392 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6395 "xlc" ) CC="xlc_r" ;;
6396 "xlC" ) CC="xlC_r" ;;
6403 if test "$with_msw" != "no"; then
6404 echo "checking for MS-Windows" 1>&6
6405 echo "configure:6406: checking for MS-Windows" >&5
6407 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6408 echo "configure:6409: checking for main in -lgdi32" >&5
6409 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6411 xe_check_libs=" -lgdi32 "
6412 cat > conftest.$ac_ext <<EOF
6413 #line 6414 "configure"
6414 #include "confdefs.h"
6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6422 eval "ac_cv_lib_$ac_lib_var=yes"
6424 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6427 eval "ac_cv_lib_$ac_lib_var=no"
6432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6433 echo "$ac_t""yes" 1>&6
6436 echo "$ac_t""no" 1>&6
6440 if test "$with_msw" = "yes"; then
6441 { test "$extra_verbose" = "yes" && cat << \EOF
6442 Defining HAVE_MS_WINDOWS
6444 cat >> confdefs.h <<\EOF
6445 #define HAVE_MS_WINDOWS 1
6449 install_pp="$blddir/lib-src/installexe.sh"
6450 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6451 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6452 if test "$window_system" != x11; then
6454 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6455 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6456 echo " xemacs will be linked with \"scrollbar-msw.o\""
6458 test "$with_menubars" != "no" && with_menubars=msw \
6459 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6460 echo " xemacs will be linked with \"menubar-msw.o\""
6462 test "$with_toolbars" != "no" && with_toolbars=msw \
6463 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6464 echo " xemacs will be linked with \"toolbar-msw.o\""
6466 test "$with_dialogs" != "no" && with_dialogs=msw \
6467 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6468 echo " xemacs will be linked with \"dialog-msw.o\""
6470 test "$with_widgets" != "no" && with_widgets=msw
6472 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6473 echo " xemacs will be linked with \"scrollbar-msw.o\""
6475 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6476 echo " xemacs will be linked with \"menubar-msw.o\""
6478 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6479 echo " xemacs will be linked with \"toolbar-msw.o\""
6481 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6482 echo " xemacs will be linked with \"dialog-msw.o\""
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6489 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6493 { test "$extra_verbose" = "yes" && cat << \EOF
6494 Defining HAVE_MSG_SELECT
6496 cat >> confdefs.h <<\EOF
6497 #define HAVE_MSG_SELECT 1
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6507 with_file_coding=yes
6508 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
6509 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\""
6516 test -z "$window_system" && window_system="none"
6518 if test "$window_system" = "none"; then
6519 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6521 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6522 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6524 eval "with_${feature}=no"
6527 test -z "$with_toolbars" && with_toolbars=yes
6530 if test "$with_msw" != "yes"; then
6531 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6533 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6534 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6536 eval "with_${feature}=no"
6542 if test "$with_x11" != "yes"; then
6543 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6545 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6546 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6548 eval "with_${feature}=no"
6554 case "$window_system" in
6555 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6556 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6557 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6560 case "$x_libraries" in *X11R4* )
6561 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6562 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6565 echo "checking for WM_COMMAND option" 1>&6
6566 echo "configure:6567: checking for WM_COMMAND option" >&5;
6567 if test "$with_wmcommand" != "no"; then
6568 { test "$extra_verbose" = "yes" && cat << \EOF
6569 Defining HAVE_WMCOMMAND
6571 cat >> confdefs.h <<\EOF
6572 #define HAVE_WMCOMMAND 1
6578 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6579 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6580 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6581 echo "configure:6582: checking for X11/Xauth.h" >&5
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 #include <X11/Xauth.h>
6588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6589 { (eval echo configure:6590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6591 if test -z "$ac_err"; then
6593 eval "ac_cv_header_$ac_safe=yes"
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 eval "ac_cv_header_$ac_safe=no"
6602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6603 echo "$ac_t""yes" 1>&6
6606 echo "$ac_t""no" 1>&6
6610 test -z "$with_xauth" && {
6611 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6612 echo "configure:6613: checking for XauGetAuthByAddr in -lXau" >&5
6613 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6615 xe_check_libs=" -lXau "
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6619 /* Override any gcc2 internal prototype to avoid an error. */
6620 /* We use char because int might match the return type of a gcc2
6621 builtin and then its argument prototype would still apply. */
6622 char XauGetAuthByAddr();
6628 if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6630 eval "ac_cv_lib_$ac_lib_var=yes"
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6635 eval "ac_cv_lib_$ac_lib_var=no"
6640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6641 echo "$ac_t""yes" 1>&6
6644 echo "$ac_t""no" 1>&6
6649 test -z "$with_xauth" && with_xauth=yes
6650 if test "$with_xauth" = "yes"; then
6651 { test "$extra_verbose" = "yes" && cat << \EOF
6654 cat >> confdefs.h <<\EOF
6655 #define HAVE_XAUTH 1
6661 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
6669 if test "$with_tooltalk" != "no" ; then
6670 for dir in "" "Tt/" "desktop/" ; do
6671 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6672 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6673 echo "configure:6674: checking for ${dir}tt_c.h" >&5
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6678 #include <${dir}tt_c.h>
6680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6681 { (eval echo configure:6682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6683 if test -z "$ac_err"; then
6685 eval "ac_cv_header_$ac_safe=yes"
6688 echo "configure: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6691 eval "ac_cv_header_$ac_safe=no"
6694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 tt_c_h_file="${dir}tt_c.h"; break
6698 echo "$ac_t""no" 1>&6
6702 if test -z "$tt_c_h_file"; then
6703 if test "$with_tooltalk" = "yes"; then
6704 (echo "$progname: Usage error:"
6705 echo " " "Unable to find required tooltalk header files."
6706 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6711 if test "$with_tooltalk" != "no" ; then
6712 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6714 xe_msg_checking="for tt_message_create in -ltt"
6715 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6716 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6717 echo "configure:6718: checking "$xe_msg_checking"" >&5
6718 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6720 xe_check_libs=" -ltt $extra_libs"
6721 cat > conftest.$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6724 /* Override any gcc2 internal prototype to avoid an error. */
6725 /* We use char because int might match the return type of a gcc2
6726 builtin and then its argument prototype would still apply. */
6727 char tt_message_create();
6733 if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6735 eval "ac_cv_lib_$ac_lib_var=yes"
6737 echo "configure: failed program was:" >&5
6738 cat conftest.$ac_ext >&5
6740 eval "ac_cv_lib_$ac_lib_var=no"
6745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6746 echo "$ac_t""yes" 1>&6
6747 tt_libs="-ltt $extra_libs"; break
6749 echo "$ac_t""no" 1>&6
6755 if test -z "$tt_libs"; then
6756 if test "$with_tooltalk" = "yes"; then
6757 (echo "$progname: Usage error:"
6758 echo " " "Unable to find required tooltalk libraries."
6759 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6764 test -z "$with_tooltalk" && with_tooltalk=yes
6765 if test "$with_tooltalk" = "yes"; then
6766 { test "$extra_verbose" = "yes" && cat << \EOF
6769 cat >> confdefs.h <<\EOF
6774 { test "$extra_verbose" = "yes" && cat << EOF
6775 Defining TT_C_H_FILE = "$tt_c_h_file"
6777 cat >> confdefs.h <<EOF
6778 #define TT_C_H_FILE "$tt_c_h_file"
6782 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6783 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6784 echo " xemacs will be linked with \"tooltalk.o\""
6788 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6789 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6790 echo "configure:6791: checking for Dt/Dt.h" >&5
6792 cat > conftest.$ac_ext <<EOF
6793 #line 6794 "configure"
6794 #include "confdefs.h"
6797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6798 { (eval echo configure:6799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6800 if test -z "$ac_err"; then
6802 eval "ac_cv_header_$ac_safe=yes"
6805 echo "configure: failed program was:" >&5
6806 cat conftest.$ac_ext >&5
6808 eval "ac_cv_header_$ac_safe=no"
6811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6812 echo "$ac_t""yes" 1>&6
6815 echo "$ac_t""no" 1>&6
6819 test -z "$with_cde" && {
6820 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6821 echo "configure:6822: checking for DtDndDragStart in -lDtSvc" >&5
6822 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6824 xe_check_libs=" -lDtSvc "
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6828 /* Override any gcc2 internal prototype to avoid an error. */
6829 /* We use char because int might match the return type of a gcc2
6830 builtin and then its argument prototype would still apply. */
6831 char DtDndDragStart();
6837 if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6839 eval "ac_cv_lib_$ac_lib_var=yes"
6841 echo "configure: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6844 eval "ac_cv_lib_$ac_lib_var=no"
6849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6850 echo "$ac_t""yes" 1>&6
6853 echo "$ac_t""no" 1>&6
6858 test -z "$with_cde" && with_cde=yes
6859 if test "$with_dragndrop" = no; then
6860 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6863 if test "$with_cde" = "yes" ; then
6864 { test "$extra_verbose" = "yes" && cat << \EOF
6867 cat >> confdefs.h <<\EOF
6872 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6873 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6874 with_tooltalk=yes # CDE requires Tooltalk
6875 need_motif=yes # CDE requires Motif
6878 test "$window_system" != "x11" && with_offix=no
6879 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6880 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6883 if test "$with_dragndrop" = no; then
6884 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6887 if test "$with_cde" = yes; then
6888 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6891 test -z "$with_offix" && with_offix=no
6892 if test "$with_offix" = "yes"; then
6893 { test "$extra_verbose" = "yes" && cat << \EOF
6894 Defining HAVE_OFFIX_DND
6896 cat >> confdefs.h <<\EOF
6897 #define HAVE_OFFIX_DND 1
6901 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6902 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6905 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6906 echo "configure:6907: checking if drag and drop API is needed" >&5
6907 if test "$with_dragndrop" != "no" ; then
6908 if test -n "$dragndrop_proto" ; then
6910 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6911 { test "$extra_verbose" = "yes" && cat << \EOF
6912 Defining HAVE_DRAGNDROP
6914 cat >> confdefs.h <<\EOF
6915 #define HAVE_DRAGNDROP 1
6919 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6922 echo "$ac_t""no" 1>&6
6926 echo "checking for LDAP" 1>&6
6927 echo "configure:6928: checking for LDAP" >&5
6928 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6929 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6930 echo "configure:6931: checking for ldap.h" >&5
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6938 { (eval echo configure:6939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6940 if test -z "$ac_err"; then
6942 eval "ac_cv_header_$ac_safe=yes"
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 eval "ac_cv_header_$ac_safe=no"
6951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6952 echo "$ac_t""yes" 1>&6
6955 echo "$ac_t""no" 1>&6
6959 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6960 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6961 echo "configure:6962: checking for lber.h" >&5
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6969 { (eval echo configure:6970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6971 if test -z "$ac_err"; then
6973 eval "ac_cv_header_$ac_safe=yes"
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 eval "ac_cv_header_$ac_safe=no"
6982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6983 echo "$ac_t""yes" 1>&6
6986 echo "$ac_t""no" 1>&6
6990 if test "$with_ldap" != "no"; then
6992 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6993 echo "configure:6994: checking for ldap_search in -lldap" >&5
6994 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6996 xe_check_libs=" -lldap "
6997 cat > conftest.$ac_ext <<EOF
6998 #line 6999 "configure"
6999 #include "confdefs.h"
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7011 eval "ac_cv_lib_$ac_lib_var=yes"
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7016 eval "ac_cv_lib_$ac_lib_var=no"
7021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7022 echo "$ac_t""yes" 1>&6
7023 with_ldap_nolber=yes
7025 echo "$ac_t""no" 1>&6
7030 test "$with_ldap_nolber" = "no" && {
7031 xe_msg_checking="for ldap_open in -lldap"
7032 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7033 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7034 echo "configure:7035: checking "$xe_msg_checking"" >&5
7035 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7037 xe_check_libs=" -lldap -llber"
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7041 /* Override any gcc2 internal prototype to avoid an error. */
7042 /* We use char because int might match the return type of a gcc2
7043 builtin and then its argument prototype would still apply. */
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 eval "ac_cv_lib_$ac_lib_var=yes"
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 eval "ac_cv_lib_$ac_lib_var=no"
7062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7063 echo "$ac_t""yes" 1>&6
7066 echo "$ac_t""no" 1>&6
7071 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7072 xe_msg_checking="for ldap_open in -lldap"
7073 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7074 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7075 echo "configure:7076: checking "$xe_msg_checking"" >&5
7076 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7078 xe_check_libs=" -lldap -llber -lkrb"
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7093 eval "ac_cv_lib_$ac_lib_var=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7098 eval "ac_cv_lib_$ac_lib_var=no"
7103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7104 echo "$ac_t""yes" 1>&6
7107 echo "$ac_t""no" 1>&6
7112 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7113 xe_msg_checking="for ldap_open in -lldap"
7114 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7115 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7116 echo "configure:7117: checking "$xe_msg_checking"" >&5
7117 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7119 xe_check_libs=" -lldap -llber -lkrb -ldes"
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 /* Override any gcc2 internal prototype to avoid an error. */
7124 /* We use char because int might match the return type of a gcc2
7125 builtin and then its argument prototype would still apply. */
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7134 eval "ac_cv_lib_$ac_lib_var=yes"
7136 echo "configure: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7139 eval "ac_cv_lib_$ac_lib_var=no"
7144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7145 echo "$ac_t""yes" 1>&6
7146 with_ldap_krbdes=yes
7148 echo "$ac_t""no" 1>&6
7153 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
7155 if test "$with_ldap" = "yes"; then
7156 { test "$extra_verbose" = "yes" && cat << \EOF
7159 cat >> confdefs.h <<\EOF
7164 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7165 echo " xemacs will be linked with \"eldap.o\""
7167 if test "$with_ldap_nolber" = "yes" ; then
7168 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7170 if test "$with_ldap_krb" = "yes" ; then
7171 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7173 if test "$with_ldap_krbdes" = "yes" ; then
7174 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7175 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7177 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7178 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7180 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7183 echo "configure:7184: checking for $ac_func" >&5
7185 cat > conftest.$ac_ext <<EOF
7186 #line 7187 "configure"
7187 #include "confdefs.h"
7188 /* System header to define __stub macros and hopefully few prototypes,
7189 which can conflict with char $ac_func(); below. */
7191 /* Override any gcc2 internal prototype to avoid an error. */
7192 /* We use char because int might match the return type of a gcc2
7193 builtin and then its argument prototype would still apply. */
7198 /* The GNU C library defines this for functions which it implements
7199 to always fail with ENOSYS. Some functions are actually named
7200 something starting with __ and the normal name is an alias. */
7201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7209 if { (eval echo configure:7210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7211 eval "ac_cv_func_$ac_func=yes"
7213 echo "configure: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7216 eval "ac_cv_func_$ac_func=no"
7220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7221 echo "$ac_t""yes" 1>&6
7222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7223 { test "$extra_verbose" = "yes" && cat << EOF
7224 Defining $ac_tr_func
7226 cat >> confdefs.h <<EOF
7227 #define $ac_tr_func 1
7232 echo "$ac_t""no" 1>&6
7238 echo "checking for PostgreSQL" 1>&6
7239 echo "configure:7240: checking for PostgreSQL" >&5
7241 postgres_includes_found=no
7242 save_c_switch_site="$c_switch_site"
7244 if test "$with_postgresql" != "no"; then
7245 ac_safe=`echo "libpq-fe.h" | sed 'y%./+-%__p_%'`
7246 echo $ac_n "checking for libpq-fe.h""... $ac_c" 1>&6
7247 echo "configure:7248: checking for libpq-fe.h" >&5
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 #include <libpq-fe.h>
7254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7255 { (eval echo configure:7256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7257 if test -z "$ac_err"; then
7259 eval "ac_cv_header_$ac_safe=yes"
7262 echo "configure: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 eval "ac_cv_header_$ac_safe=no"
7268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7269 echo "$ac_t""yes" 1>&6
7270 postgres_includes_found=yes
7272 echo "$ac_t""no" 1>&6
7277 if test "$postgres_includes_found" = "no" -a "$with_postgresql" != "no" -a \
7278 -d "/usr/local/pgsql/include"; then
7279 c_switch_site="$c_switch_site -I/usr/local/pgsql/include"
7280 ac_safe=`echo "libpq-fe.h" | sed 'y%./+-%__p_%'`
7281 echo $ac_n "checking for libpq-fe.h""... $ac_c" 1>&6
7282 echo "configure:7283: checking for libpq-fe.h" >&5
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 #include <libpq-fe.h>
7289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7290 { (eval echo configure:7291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7292 if test -z "$ac_err"; then
7294 eval "ac_cv_header_$ac_safe=yes"
7297 echo "configure: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7300 eval "ac_cv_header_$ac_safe=no"
7303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7304 echo "$ac_t""yes" 1>&6
7305 postgres_includes_found=yes
7307 echo "$ac_t""no" 1>&6
7310 if test "$postgres_includes_found" != "yes"; then
7311 postgres_h_path="/usr/local/pgsql/include"
7313 c_switch_site="$save_c_switch_site"
7315 if test "$postgres_includes_found" = "no" -a "$with_postgresql" != "no" -a \
7316 -d "/usr/include/pgsql"; then
7317 c_switch_site="$c_switch_site -I/usr/include/pgsql"
7318 ac_safe=`echo "libpq-fe.h" | sed 'y%./+-%__p_%'`
7319 echo $ac_n "checking for libpq-fe.h""... $ac_c" 1>&6
7320 echo "configure:7321: checking for libpq-fe.h" >&5
7322 cat > conftest.$ac_ext <<EOF
7323 #line 7324 "configure"
7324 #include "confdefs.h"
7325 #include <libpq-fe.h>
7327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7328 { (eval echo configure:7329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7330 if test -z "$ac_err"; then
7332 eval "ac_cv_header_$ac_safe=yes"
7335 echo "configure: failed program was:" >&5
7336 cat conftest.$ac_ext >&5
7338 eval "ac_cv_header_$ac_safe=no"
7341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7342 echo "$ac_t""yes" 1>&6
7343 postgres_includes_found=yes
7345 echo "$ac_t""no" 1>&6
7348 if test "$postgres_includes_found" = "yes"; then
7349 postgres_h_path="pgsql"
7351 c_switch_site="$save_c_switch_site"
7353 if test "$postgres_includes_found" = "no" -a "$with_postgresql" != "no" -a \
7354 -d "/usr/include/postgresql"; then
7355 c_switch_site="$c_switch_site -I/usr/include/postgresql"
7356 ac_safe=`echo "libpq-fe.h" | sed 'y%./+-%__p_%'`
7357 echo $ac_n "checking for libpq-fe.h""... $ac_c" 1>&6
7358 echo "configure:7359: checking for libpq-fe.h" >&5
7360 cat > conftest.$ac_ext <<EOF
7361 #line 7362 "configure"
7362 #include "confdefs.h"
7363 #include <libpq-fe.h>
7365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7366 { (eval echo configure:7367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7368 if test -z "$ac_err"; then
7370 eval "ac_cv_header_$ac_safe=yes"
7373 echo "configure: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7376 eval "ac_cv_header_$ac_safe=no"
7379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7380 echo "$ac_t""yes" 1>&6
7381 postgres_includes_found=yes
7383 echo "$ac_t""no" 1>&6
7386 if test "$postgres_includes_found" = "yes"; then
7387 postgres_h_path="postgresql"
7389 c_switch_site="$save_c_switch_site"
7392 if test "$postgres_includes_found" = "yes"; then
7394 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7395 echo "configure:7396: checking for PQconnectdb in -lpq" >&5
7396 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7398 xe_check_libs=" -lpq "
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7402 /* Override any gcc2 internal prototype to avoid an error. */
7403 /* We use char because int might match the return type of a gcc2
7404 builtin and then its argument prototype would still apply. */
7411 if { (eval echo configure:7412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7413 eval "ac_cv_lib_$ac_lib_var=yes"
7415 echo "configure: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7418 eval "ac_cv_lib_$ac_lib_var=no"
7423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7424 echo "$ac_t""yes" 1>&6
7427 echo "$ac_t""no" 1>&6
7433 if test "$with_postgresql" = "yes"; then
7435 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7436 echo "configure:7437: checking for PQconnectStart in -lpq" >&5
7437 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7439 xe_check_libs=" -lpq "
7440 cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7443 /* Override any gcc2 internal prototype to avoid an error. */
7444 /* We use char because int might match the return type of a gcc2
7445 builtin and then its argument prototype would still apply. */
7446 char PQconnectStart();
7452 if { (eval echo configure:7453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7454 eval "ac_cv_lib_$ac_lib_var=yes"
7456 echo "configure: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7459 eval "ac_cv_lib_$ac_lib_var=no"
7464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7465 echo "$ac_t""yes" 1>&6
7466 with_postgresqlv7=yes
7468 echo "$ac_t""no" 1>&6
7469 with_postgresqlv7=no
7474 if test "$with_postgresql" = "yes"; then
7475 if test -n "$postgres_h_path"; then
7476 { test "$extra_verbose" = "yes" && cat << EOF
7477 Defining POSTGRES_H_PATH = $postgres_h_path
7479 cat >> confdefs.h <<EOF
7480 #define POSTGRES_H_PATH $postgres_h_path
7485 { test "$extra_verbose" = "yes" && cat << \EOF
7486 Defining HAVE_POSTGRESQL
7488 cat >> confdefs.h <<\EOF
7489 #define HAVE_POSTGRESQL 1
7493 if test "$with_postgresqlv7" = "yes"; then
7494 { test "$extra_verbose" = "yes" && cat << \EOF
7495 Defining HAVE_POSTGRESQLV7
7497 cat >> confdefs.h <<\EOF
7498 #define HAVE_POSTGRESQLV7 1
7503 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7504 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7505 echo " xemacs will be linked with \"postgresql.o\""
7510 if test "$window_system" != "none"; then
7511 echo "checking for graphics libraries" 1>&6
7512 echo "configure:7513: checking for graphics libraries" >&5
7515 if test -z "$with_xpm"; then
7516 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7517 echo "configure:7518: checking for Xpm - no older than 3.4f" >&5
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7523 #include <X11/xpm.h>
7524 int main(int c, char **v) {
7526 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7527 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7529 if { (eval echo configure:7530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7531 ./conftest dummy_arg; xpm_status=$?;
7532 if test "$xpm_status" = "0"; then
7536 if test "$xpm_status" = "1"; then
7537 xpm_problem="Xpm library version and header file version don't match!"
7538 elif test "$xpm_status" = "2"; then
7539 xpm_problem="Xpm library version is too old!"
7541 xpm_problem="Internal xpm detection logic error!"
7544 *** WARNING *** $xpm_problem
7545 I'm not touching that with a 10-foot pole!
7546 If you really want to use the installed version of Xpm, rerun
7547 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7551 echo "configure: failed program was:" >&5
7552 cat conftest.$ac_ext >&5
7558 echo "$ac_t""$with_xpm" 1>&6
7560 if test "$with_xpm" = "yes"; then
7561 { test "$extra_verbose" = "yes" && cat << \EOF
7564 cat >> confdefs.h <<\EOF
7569 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7570 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7571 echo "configure:7572: checking for \"FOR_MSW\" xpm" >&5
7573 cat > conftest.$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7578 XpmCreatePixmapFromData()
7581 if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7592 echo "$ac_t""$xpm_for_msw" 1>&6
7593 if test "$xpm_for_msw" = "yes"; then
7594 { test "$extra_verbose" = "yes" && cat << \EOF
7597 cat >> confdefs.h <<\EOF
7605 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7606 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7607 echo "configure:7608: checking for compface.h" >&5
7609 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure"
7611 #include "confdefs.h"
7612 #include <compface.h>
7614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7615 { (eval echo configure:7616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7617 if test -z "$ac_err"; then
7619 eval "ac_cv_header_$ac_safe=yes"
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7625 eval "ac_cv_header_$ac_safe=no"
7628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7629 echo "$ac_t""yes" 1>&6
7632 echo "$ac_t""no" 1>&6
7636 test -z "$with_xface" && {
7637 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7638 echo "configure:7639: checking for UnGenFace in -lcompface" >&5
7639 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7641 xe_check_libs=" -lcompface "
7642 cat > conftest.$ac_ext <<EOF
7643 #line 7644 "configure"
7644 #include "confdefs.h"
7645 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7654 if { (eval echo configure:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7656 eval "ac_cv_lib_$ac_lib_var=yes"
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7661 eval "ac_cv_lib_$ac_lib_var=no"
7666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7667 echo "$ac_t""yes" 1>&6
7670 echo "$ac_t""no" 1>&6
7675 test -z "$with_xface" && with_xface=yes
7676 if test "$with_xface" = "yes"; then
7677 { test "$extra_verbose" = "yes" && cat << \EOF
7680 cat >> confdefs.h <<\EOF
7681 #define HAVE_XFACE 1
7685 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7688 if test "$with_gif" != "no"; then
7690 { test "$extra_verbose" = "yes" && cat << \EOF
7693 cat >> confdefs.h <<\EOF
7698 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7699 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7703 if test "$with_png $with_tiff" != "no no"; then
7705 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7706 echo "configure:7707: checking for inflate in -lc" >&5
7707 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7709 xe_check_libs=" -lc "
7710 cat > conftest.$ac_ext <<EOF
7711 #line 7712 "configure"
7712 #include "confdefs.h"
7713 /* Override any gcc2 internal prototype to avoid an error. */
7714 /* We use char because int might match the return type of a gcc2
7715 builtin and then its argument prototype would still apply. */
7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7724 eval "ac_cv_lib_$ac_lib_var=yes"
7726 echo "configure: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7729 eval "ac_cv_lib_$ac_lib_var=no"
7734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7735 echo "$ac_t""yes" 1>&6
7738 echo "$ac_t""no" 1>&6
7740 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7741 echo "configure:7742: checking for inflate in -lz" >&5
7742 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7744 xe_check_libs=" -lz "
7745 cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 /* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7757 if { (eval echo configure:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7759 eval "ac_cv_lib_$ac_lib_var=yes"
7761 echo "configure: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7764 eval "ac_cv_lib_$ac_lib_var=no"
7769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7770 echo "$ac_t""yes" 1>&6
7771 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7773 echo "$ac_t""no" 1>&6
7775 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7776 echo "configure:7777: checking for inflate in -lgz" >&5
7777 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7779 xe_check_libs=" -lgz "
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7794 eval "ac_cv_lib_$ac_lib_var=yes"
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7799 eval "ac_cv_lib_$ac_lib_var=no"
7804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7805 echo "$ac_t""yes" 1>&6
7806 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7808 echo "$ac_t""no" 1>&6
7820 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7821 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7822 echo "configure:7823: checking for jpeglib.h" >&5
7824 cat > conftest.$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 #include <jpeglib.h>
7829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7830 { (eval echo configure:7831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7832 if test -z "$ac_err"; then
7834 eval "ac_cv_header_$ac_safe=yes"
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7840 eval "ac_cv_header_$ac_safe=no"
7843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7844 echo "$ac_t""yes" 1>&6
7847 echo "$ac_t""no" 1>&6
7851 test -z "$with_jpeg" && {
7852 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7853 echo "configure:7854: checking for jpeg_destroy_decompress in -ljpeg" >&5
7854 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7856 xe_check_libs=" -ljpeg "
7857 cat > conftest.$ac_ext <<EOF
7858 #line 7859 "configure"
7859 #include "confdefs.h"
7860 /* Override any gcc2 internal prototype to avoid an error. */
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863 char jpeg_destroy_decompress();
7866 jpeg_destroy_decompress()
7869 if { (eval echo configure:7870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7871 eval "ac_cv_lib_$ac_lib_var=yes"
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7876 eval "ac_cv_lib_$ac_lib_var=no"
7881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7882 echo "$ac_t""yes" 1>&6
7885 echo "$ac_t""no" 1>&6
7890 test -z "$with_jpeg" && with_jpeg=yes
7891 if test "$with_jpeg" = "yes"; then
7892 { test "$extra_verbose" = "yes" && cat << \EOF
7895 cat >> confdefs.h <<\EOF
7900 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7904 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7905 echo "configure:7906: checking for pow" >&5
7907 cat > conftest.$ac_ext <<EOF
7908 #line 7909 "configure"
7909 #include "confdefs.h"
7910 /* System header to define __stub macros and hopefully few prototypes,
7911 which can conflict with char pow(); below. */
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7920 /* The GNU C library defines this for functions which it implements
7921 to always fail with ENOSYS. Some functions are actually named
7922 something starting with __ and the normal name is an alias. */
7923 #if defined (__stub_pow) || defined (__stub___pow)
7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7933 eval "ac_cv_func_pow=yes"
7935 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7938 eval "ac_cv_func_pow=no"
7942 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7943 echo "$ac_t""yes" 1>&6
7946 echo "$ac_t""no" 1>&6
7950 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7951 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7952 echo "configure:7953: checking for png.h" >&5
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7960 { (eval echo configure:7961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7962 if test -z "$ac_err"; then
7964 eval "ac_cv_header_$ac_safe=yes"
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7970 eval "ac_cv_header_$ac_safe=no"
7973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7977 echo "$ac_t""no" 1>&6
7981 test -z "$with_png" && {
7982 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7983 echo "configure:7984: checking for png_read_image in -lpng" >&5
7984 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7986 xe_check_libs=" -lpng "
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990 /* Override any gcc2 internal prototype to avoid an error. */
7991 /* We use char because int might match the return type of a gcc2
7992 builtin and then its argument prototype would still apply. */
7993 char png_read_image();
7999 if { (eval echo configure:8000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8001 eval "ac_cv_lib_$ac_lib_var=yes"
8003 echo "configure: failed program was:" >&5
8004 cat conftest.$ac_ext >&5
8006 eval "ac_cv_lib_$ac_lib_var=no"
8011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8012 echo "$ac_t""yes" 1>&6
8015 echo "$ac_t""no" 1>&6
8020 if test -z "$with_png"; then
8021 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8022 echo "configure:8023: checking for workable png version information" >&5
8023 xe_check_libs="-lpng -lz"
8024 cat > conftest.$ac_ext <<EOF
8025 #line 8026 "configure"
8026 #include "confdefs.h"
8028 int main(int c, char **v) {
8029 if (c == 1) return 0;
8030 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8031 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8033 if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8035 ./conftest dummy_arg; png_status=$?;
8036 if test "$png_status" = "0"; then
8040 if test "$png_status" = "1"; then
8041 png_problem="PNG library version and header file don't match!"
8042 elif test "$png_status" = "2"; then
8043 png_problem="PNG library version too old (pre 1.0.2)!"
8046 *** WARNING *** $png_problem
8047 I'm not touching that with a 10-foot pole!
8048 If you really want to use the installed version of libPNG, rerun
8049 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8053 echo "configure: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8060 echo "$ac_t""$with_png" 1>&6
8062 if test "$with_png" = "yes"; then
8063 { test "$extra_verbose" = "yes" && cat << \EOF
8066 cat >> confdefs.h <<\EOF
8071 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8074 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8075 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8076 echo "configure:8077: checking for tiffio.h" >&5
8078 cat > conftest.$ac_ext <<EOF
8079 #line 8080 "configure"
8080 #include "confdefs.h"
8083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8084 { (eval echo configure:8085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8086 if test -z "$ac_err"; then
8088 eval "ac_cv_header_$ac_safe=yes"
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8094 eval "ac_cv_header_$ac_safe=no"
8097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8101 echo "$ac_t""no" 1>&6
8105 test -z "$with_tiff" && {
8106 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8107 echo "configure:8108: checking for TIFFClientOpen in -ltiff" >&5
8108 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8110 xe_check_libs=" -ltiff "
8111 cat > conftest.$ac_ext <<EOF
8112 #line 8113 "configure"
8113 #include "confdefs.h"
8114 /* Override any gcc2 internal prototype to avoid an error. */
8115 /* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8117 char TIFFClientOpen();
8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8125 eval "ac_cv_lib_$ac_lib_var=yes"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 eval "ac_cv_lib_$ac_lib_var=no"
8135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8136 echo "$ac_t""yes" 1>&6
8139 echo "$ac_t""no" 1>&6
8144 test -z "$with_tiff" && with_tiff=yes
8145 if test "$with_tiff" = "yes"; then
8146 { test "$extra_verbose" = "yes" && cat << \EOF
8149 cat >> confdefs.h <<\EOF
8154 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8159 if test "$with_x11" = "yes"; then
8161 echo "checking for X11 graphics libraries" 1>&6
8162 echo "configure:8163: checking for X11 graphics libraries" >&5
8164 echo "checking for the Athena widgets" 1>&6
8165 echo "configure:8166: checking for the Athena widgets" >&5
8167 case "$with_athena" in
8168 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8169 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8170 "next") athena_variant=neXtaw athena_3d=yes ;;
8171 "95") athena_variant=Xaw95 athena_3d=yes ;;
8172 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8173 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8176 if test "$athena_3d" = "no"; then
8178 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8179 echo "configure:8180: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8180 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8182 xe_check_libs=" -l$athena_variant "
8183 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8186 /* Override any gcc2 internal prototype to avoid an error. */
8187 /* We use char because int might match the return type of a gcc2
8188 builtin and then its argument prototype would still apply. */
8189 char XawScrollbarSetThumb();
8192 XawScrollbarSetThumb()
8195 if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8197 eval "ac_cv_lib_$ac_lib_var=yes"
8199 echo "configure: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8202 eval "ac_cv_lib_$ac_lib_var=no"
8207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8208 echo "$ac_t""yes" 1>&6
8210 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8211 echo "configure:8212: checking for threeDClassRec in -l$athena_variant" >&5
8212 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8214 xe_check_libs=" -l$athena_variant "
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8221 char threeDClassRec();
8227 if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8229 eval "ac_cv_lib_$ac_lib_var=yes"
8231 echo "configure: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8234 eval "ac_cv_lib_$ac_lib_var=no"
8239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8240 echo "$ac_t""yes" 1>&6
8241 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8243 echo "$ac_t""no" 1>&6
8244 athena_lib=$athena_variant
8250 echo "$ac_t""no" 1>&6
8251 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8257 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8258 echo "configure:8259: checking for threeDClassRec in -l$athena_variant" >&5
8259 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8261 xe_check_libs=" -l$athena_variant "
8262 cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8265 /* Override any gcc2 internal prototype to avoid an error. */
8266 /* We use char because int might match the return type of a gcc2
8267 builtin and then its argument prototype would still apply. */
8268 char threeDClassRec();
8274 if { (eval echo configure:8275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8276 eval "ac_cv_lib_$ac_lib_var=yes"
8278 echo "configure: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8281 eval "ac_cv_lib_$ac_lib_var=no"
8286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8287 echo "$ac_t""yes" 1>&6
8288 athena_lib=$athena_variant
8290 echo "$ac_t""no" 1>&6
8291 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8292 echo "configure:8293: checking for threeDClassRec in -lXaw" >&5
8293 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8295 xe_check_libs=" -lXaw "
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8299 /* Override any gcc2 internal prototype to avoid an error. */
8300 /* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8302 char threeDClassRec();
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8310 eval "ac_cv_lib_$ac_lib_var=yes"
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8315 eval "ac_cv_lib_$ac_lib_var=no"
8320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8321 echo "$ac_t""yes" 1>&6
8323 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8326 echo "$ac_t""no" 1>&6
8327 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8336 if test "$athena_3d" = "no"; then
8337 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8338 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8339 echo "configure:8340: checking for X11/Xaw/ThreeD.h" >&5
8341 cat > conftest.$ac_ext <<EOF
8342 #line 8343 "configure"
8343 #include "confdefs.h"
8344 #include <X11/Xaw/ThreeD.h>
8346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8347 { (eval echo configure:8348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8349 if test -z "$ac_err"; then
8351 eval "ac_cv_header_$ac_safe=yes"
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8357 eval "ac_cv_header_$ac_safe=no"
8360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8361 echo "$ac_t""yes" 1>&6
8362 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8364 echo "$ac_t""no" 1>&6
8365 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8366 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8367 echo "configure:8368: checking for X11/Xaw/XawInit.h" >&5
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 #include <X11/Xaw/XawInit.h>
8374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8375 { (eval echo configure:8376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8377 if test -z "$ac_err"; then
8379 eval "ac_cv_header_$ac_safe=yes"
8382 echo "configure: failed program was:" >&5
8383 cat conftest.$ac_ext >&5
8385 eval "ac_cv_header_$ac_safe=no"
8388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8389 echo "$ac_t""yes" 1>&6
8390 athena_h_path=X11/Xaw
8392 echo "$ac_t""no" 1>&6
8393 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8399 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8400 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8401 echo "configure:8402: checking for X11/$athena_variant/XawInit.h" >&5
8403 cat > conftest.$ac_ext <<EOF
8404 #line 8405 "configure"
8405 #include "confdefs.h"
8406 #include <X11/$athena_variant/XawInit.h>
8408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8409 { (eval echo configure:8410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8411 if test -z "$ac_err"; then
8413 eval "ac_cv_header_$ac_safe=yes"
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8419 eval "ac_cv_header_$ac_safe=no"
8422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8423 echo "$ac_t""yes" 1>&6
8424 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8425 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8426 echo "configure:8427: checking for X11/$athena_variant/ThreeD.h" >&5
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 #include <X11/$athena_variant/ThreeD.h>
8433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8434 { (eval echo configure:8435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8436 if test -z "$ac_err"; then
8438 eval "ac_cv_header_$ac_safe=yes"
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8444 eval "ac_cv_header_$ac_safe=no"
8447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8448 echo "$ac_t""yes" 1>&6
8449 athena_h_path=X11/$athena_variant
8451 echo "$ac_t""no" 1>&6
8455 echo "$ac_t""no" 1>&6
8459 if test -z "$athena_h_path"; then
8460 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8461 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8462 echo "configure:8463: checking for $athena_variant/XawInit.h" >&5
8464 cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8467 #include <$athena_variant/XawInit.h>
8469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8470 { (eval echo configure:8471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8472 if test -z "$ac_err"; then
8474 eval "ac_cv_header_$ac_safe=yes"
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8480 eval "ac_cv_header_$ac_safe=no"
8483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8484 echo "$ac_t""yes" 1>&6
8485 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8486 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8487 echo "configure:8488: checking for $athena_variant/ThreeD.h" >&5
8489 cat > conftest.$ac_ext <<EOF
8490 #line 8491 "configure"
8491 #include "confdefs.h"
8492 #include <$athena_variant/ThreeD.h>
8494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8495 { (eval echo configure:8496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8497 if test -z "$ac_err"; then
8499 eval "ac_cv_header_$ac_safe=yes"
8502 echo "configure: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8505 eval "ac_cv_header_$ac_safe=no"
8508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8509 echo "$ac_t""yes" 1>&6
8510 athena_h_path=$athena_variant
8512 echo "$ac_t""no" 1>&6
8516 echo "$ac_t""no" 1>&6
8521 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8522 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8523 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8524 echo "configure:8525: checking for X11/Xaw3d/XawInit.h" >&5
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8529 #include <X11/Xaw3d/XawInit.h>
8531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8532 { (eval echo configure:8533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8534 if test -z "$ac_err"; then
8536 eval "ac_cv_header_$ac_safe=yes"
8539 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8542 eval "ac_cv_header_$ac_safe=no"
8545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8546 echo "$ac_t""yes" 1>&6
8547 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8548 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8549 echo "configure:8550: checking for X11/Xaw3d/ThreeD.h" >&5
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 #include <X11/Xaw3d/ThreeD.h>
8556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8557 { (eval echo configure:8558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8559 if test -z "$ac_err"; then
8561 eval "ac_cv_header_$ac_safe=yes"
8564 echo "configure: failed program was:" >&5
8565 cat conftest.$ac_ext >&5
8567 eval "ac_cv_header_$ac_safe=no"
8570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8571 echo "$ac_t""yes" 1>&6
8573 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8574 athena_h_path=X11/Xaw3d
8577 echo "$ac_t""no" 1>&6
8581 echo "$ac_t""no" 1>&6
8586 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8587 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8588 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8589 echo "configure:8590: checking for Xaw3d/XawInit.h" >&5
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 #include <Xaw3d/XawInit.h>
8596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8597 { (eval echo configure:8598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8599 if test -z "$ac_err"; then
8601 eval "ac_cv_header_$ac_safe=yes"
8604 echo "configure: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8607 eval "ac_cv_header_$ac_safe=no"
8610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8611 echo "$ac_t""yes" 1>&6
8612 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8613 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8614 echo "configure:8615: checking for Xaw3d/ThreeD.h" >&5
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8619 #include <Xaw3d/ThreeD.h>
8621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8622 { (eval echo configure:8623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8624 if test -z "$ac_err"; then
8626 eval "ac_cv_header_$ac_safe=yes"
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8632 eval "ac_cv_header_$ac_safe=no"
8635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8636 echo "$ac_t""yes" 1>&6
8638 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8642 echo "$ac_t""no" 1>&6
8646 echo "$ac_t""no" 1>&6
8651 if test -z "$athena_h_path"; then
8652 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8653 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8654 echo "configure:8655: checking for X11/Xaw/ThreeD.h" >&5
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8659 #include <X11/Xaw/ThreeD.h>
8661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8662 { (eval echo configure:8663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8664 if test -z "$ac_err"; then
8666 eval "ac_cv_header_$ac_safe=yes"
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 eval "ac_cv_header_$ac_safe=no"
8675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8676 echo "$ac_t""yes" 1>&6
8678 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8679 athena_h_path=X11/Xaw
8682 echo "$ac_t""no" 1>&6
8683 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8689 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8695 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8696 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8697 echo "configure:8698: checking for Xm/Xm.h" >&5
8699 cat > conftest.$ac_ext <<EOF
8700 #line 8701 "configure"
8701 #include "confdefs.h"
8704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8705 { (eval echo configure:8706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8707 if test -z "$ac_err"; then
8709 eval "ac_cv_header_$ac_safe=yes"
8712 echo "configure: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8715 eval "ac_cv_header_$ac_safe=no"
8718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8719 echo "$ac_t""yes" 1>&6
8721 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8722 echo "configure:8723: checking for XmStringFree in -lXm" >&5
8723 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8725 xe_check_libs=" -lXm "
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 /* Override any gcc2 internal prototype to avoid an error. */
8730 /* We use char because int might match the return type of a gcc2
8731 builtin and then its argument prototype would still apply. */
8732 char XmStringFree();
8738 if { (eval echo configure:8739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8740 eval "ac_cv_lib_$ac_lib_var=yes"
8742 echo "configure: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8745 eval "ac_cv_lib_$ac_lib_var=no"
8750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8751 echo "$ac_t""yes" 1>&6
8754 echo "$ac_t""no" 1>&6
8760 echo "$ac_t""no" 1>&6
8765 if test "$have_motif" = "yes"; then
8766 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8767 echo "configure:8768: checking for Lesstif" >&5
8768 cat > conftest.$ac_ext <<EOF
8769 #line 8770 "configure"
8770 #include "confdefs.h"
8772 #ifdef LESSTIF_VERSION
8777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8778 egrep "yes" >/dev/null 2>&1; then
8787 echo "$ac_t""$have_lesstif" 1>&6
8792 case "$with_menubars" in "" | "yes" | "athena" )
8793 with_menubars="lucid" ;;
8795 case "$with_dialogs" in "" | "yes" | "lucid" )
8796 if test "$have_motif" = "yes"; then with_dialogs="motif"
8797 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8798 else with_dialogs=no
8801 case "$with_scrollbars" in "" | "yes" )
8802 with_scrollbars="lucid" ;;
8804 case "$with_widgets" in "" | "yes" | "lucid")
8805 if test "$have_motif" = "yes"; then with_widgets="motif"
8806 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8807 else with_widgets=no
8811 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8813 case "$all_widgets" in
8815 if test "$have_xaw" != "yes"; then
8816 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8819 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8821 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8823 { test "$extra_verbose" = "yes" && cat << EOF
8824 Defining ATHENA_H_PATH = $athena_h_path
8826 cat >> confdefs.h <<EOF
8827 #define ATHENA_H_PATH $athena_h_path
8832 { test "$extra_verbose" = "yes" && cat << \EOF
8833 Defining LWLIB_USES_ATHENA
8835 cat >> confdefs.h <<\EOF
8836 #define LWLIB_USES_ATHENA 1
8840 { test "$extra_verbose" = "yes" && cat << \EOF
8841 Defining NEED_ATHENA
8843 cat >> confdefs.h <<\EOF
8844 #define NEED_ATHENA 1
8849 if test "$athena_3d" = "yes"; then
8850 { test "$extra_verbose" = "yes" && cat << \EOF
8851 Defining HAVE_ATHENA_3D
8853 cat >> confdefs.h <<\EOF
8854 #define HAVE_ATHENA_3D 1
8862 case "$all_widgets" in *motif* )
8863 { test "$extra_verbose" = "yes" && cat << \EOF
8864 Defining LWLIB_USES_MOTIF
8866 cat >> confdefs.h <<\EOF
8867 #define LWLIB_USES_MOTIF 1
8871 { test "$extra_verbose" = "yes" && cat << \EOF
8874 cat >> confdefs.h <<\EOF
8875 #define NEED_MOTIF 1
8879 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8883 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8884 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8885 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8886 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8887 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8888 case "$with_widgets" in athena* )
8889 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;;
8891 case "$all_widgets" in *lucid* )
8892 { test "$extra_verbose" = "yes" && cat << \EOF
8895 cat >> confdefs.h <<\EOF
8896 #define NEED_LUCID 1
8900 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8905 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8906 Defining LWLIB_SCROLLBARS_ATHENA
8908 cat >> confdefs.h <<\EOF
8909 #define LWLIB_SCROLLBARS_ATHENA 1
8913 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8914 Defining LWLIB_DIALOGS_ATHENA
8916 cat >> confdefs.h <<\EOF
8917 #define LWLIB_DIALOGS_ATHENA 1
8922 if test "$athena_3d" = "yes"; then
8923 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8924 Defining LWLIB_SCROLLBARS_ATHENA3D
8926 cat >> confdefs.h <<\EOF
8927 #define LWLIB_SCROLLBARS_ATHENA3D 1
8931 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8932 Defining LWLIB_DIALOGS_ATHENA3D
8934 cat >> confdefs.h <<\EOF
8935 #define LWLIB_DIALOGS_ATHENA3D 1
8941 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8942 Defining LWLIB_WIDGETS_ATHENA
8944 cat >> confdefs.h <<\EOF
8945 #define LWLIB_WIDGETS_ATHENA 1
8949 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8950 { test "$extra_verbose" = "yes" && cat << \EOF
8951 Defining LWLIB_TABS_LUCID
8953 cat >> confdefs.h <<\EOF
8954 #define LWLIB_TABS_LUCID 1
8959 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8960 Defining HAVE_MENUBARS
8962 cat >> confdefs.h <<\EOF
8963 #define HAVE_MENUBARS 1
8967 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8968 Defining HAVE_SCROLLBARS
8970 cat >> confdefs.h <<\EOF
8971 #define HAVE_SCROLLBARS 1
8975 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8976 Defining HAVE_DIALOGS
8978 cat >> confdefs.h <<\EOF
8979 #define HAVE_DIALOGS 1
8983 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8984 Defining HAVE_TOOLBARS
8986 cat >> confdefs.h <<\EOF
8987 #define HAVE_TOOLBARS 1
8991 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8992 Defining HAVE_WIDGETS
8994 cat >> confdefs.h <<\EOF
8995 #define HAVE_WIDGETS 1
9000 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9001 Defining LWLIB_MENUBARS_LUCID
9003 cat >> confdefs.h <<\EOF
9004 #define LWLIB_MENUBARS_LUCID 1
9008 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9009 Defining LWLIB_SCROLLBARS_LUCID
9011 cat >> confdefs.h <<\EOF
9012 #define LWLIB_SCROLLBARS_LUCID 1
9017 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9018 Defining LWLIB_MENUBARS_MOTIF
9020 cat >> confdefs.h <<\EOF
9021 #define LWLIB_MENUBARS_MOTIF 1
9025 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9026 Defining LWLIB_SCROLLBARS_MOTIF
9028 cat >> confdefs.h <<\EOF
9029 #define LWLIB_SCROLLBARS_MOTIF 1
9033 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9034 Defining LWLIB_DIALOGS_MOTIF
9036 cat >> confdefs.h <<\EOF
9037 #define LWLIB_DIALOGS_MOTIF 1
9041 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9042 Defining LWLIB_WIDGETS_MOTIF
9044 cat >> confdefs.h <<\EOF
9045 #define LWLIB_WIDGETS_MOTIF 1
9050 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9051 echo " xemacs will be linked with \"menubar.o\""
9053 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9054 echo " xemacs will be linked with \"scrollbar.o\""
9056 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9057 echo " xemacs will be linked with \"dialog.o\""
9059 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9060 echo " xemacs will be linked with \"toolbar.o\""
9063 if test "$with_x11" = "yes"; then
9064 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9065 echo " xemacs will be linked with \"menubar-x.o\""
9067 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9068 echo " xemacs will be linked with \"scrollbar-x.o\""
9070 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9071 echo " xemacs will be linked with \"dialog-x.o\""
9073 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9074 echo " xemacs will be linked with \"toolbar-x.o\""
9076 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9077 echo " xemacs will be linked with \"gui-x.o\""
9082 test -z "$with_mule" && with_mule=no
9083 test -z "$with_file_coding" && with_file_coding=no
9086 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9087 { test "$extra_verbose" = "yes" && cat << \EOF
9088 Defining FILE_CODING
9090 cat >> confdefs.h <<\EOF
9091 #define FILE_CODING 1
9095 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9096 echo " xemacs will be linked with \"file-coding.o\""
9100 if test "$with_mule" = "yes" ; then
9101 echo "checking for Mule-related features" 1>&6
9102 echo "configure:9103: checking for Mule-related features" >&5
9103 { test "$extra_verbose" = "yes" && cat << \EOF
9106 cat >> confdefs.h <<\EOF
9111 { test "$extra_verbose" = "yes" && cat << \EOF
9112 Defining FILE_CODING
9114 cat >> confdefs.h <<\EOF
9115 #define FILE_CODING 1
9119 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9120 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9122 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9123 { test "$extra_verbose" = "yes" && cat << \EOF
9124 Defining TEXT_CODING
9126 cat >> confdefs.h <<\EOF
9127 #define TEXT_CODING 1
9131 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9132 echo " xemacs will be linked with \"text-coding.o\""
9135 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9136 echo " xemacs will be linked with \"file-coding.o\""
9139 for ac_hdr in libintl.h
9141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9143 echo "configure:9144: checking for $ac_hdr" >&5
9145 cat > conftest.$ac_ext <<EOF
9146 #line 9147 "configure"
9147 #include "confdefs.h"
9150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9151 { (eval echo configure:9152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9153 if test -z "$ac_err"; then
9155 eval "ac_cv_header_$ac_safe=yes"
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9161 eval "ac_cv_header_$ac_safe=no"
9164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9165 echo "$ac_t""yes" 1>&6
9166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9167 { test "$extra_verbose" = "yes" && cat << EOF
9170 cat >> confdefs.h <<EOF
9171 #define $ac_tr_hdr 1
9176 echo "$ac_t""no" 1>&6
9181 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9182 echo "configure:9183: checking for strerror in -lintl" >&5
9183 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9185 xe_check_libs=" -lintl "
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 /* Override any gcc2 internal prototype to avoid an error. */
9190 /* We use char because int might match the return type of a gcc2
9191 builtin and then its argument prototype would still apply. */
9198 if { (eval echo configure:9199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9200 eval "ac_cv_lib_$ac_lib_var=yes"
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9205 eval "ac_cv_lib_$ac_lib_var=no"
9210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9211 echo "$ac_t""yes" 1>&6
9212 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9213 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9214 { test "$extra_verbose" = "yes" && cat << EOF
9217 cat >> confdefs.h <<EOF
9218 #define $ac_tr_lib 1
9222 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9225 echo "$ac_t""no" 1>&6
9230 if test "$with_utf_2000" = "yes" ; then
9231 { test "$extra_verbose" = "yes" && cat << \EOF
9232 Defining CHAR_IS_UCS4
9234 cat >> confdefs.h <<\EOF
9235 #define CHAR_IS_UCS4 1
9239 { test "$extra_verbose" = "yes" && cat << \EOF
9242 cat >> confdefs.h <<\EOF
9249 echo "checking for Mule input methods" 1>&6
9250 echo "configure:9251: checking for Mule input methods" >&5
9251 case "$with_xim" in "" | "yes" )
9252 echo "checking for XIM" 1>&6
9253 echo "configure:9254: checking for XIM" >&5
9255 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9256 echo "configure:9257: checking for XOpenIM in -lX11" >&5
9257 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9259 xe_check_libs=" -lX11 "
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9263 /* Override any gcc2 internal prototype to avoid an error. */
9264 /* We use char because int might match the return type of a gcc2
9265 builtin and then its argument prototype would still apply. */
9272 if { (eval echo configure:9273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9274 eval "ac_cv_lib_$ac_lib_var=yes"
9276 echo "configure: failed program was:" >&5
9277 cat conftest.$ac_ext >&5
9279 eval "ac_cv_lib_$ac_lib_var=no"
9284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9285 echo "$ac_t""yes" 1>&6
9288 echo "$ac_t""no" 1>&6
9293 if test "$have_motif $have_lesstif" = "yes no"; then
9295 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9296 echo "configure:9297: checking for XmImMbLookupString in -lXm" >&5
9297 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9299 xe_check_libs=" -lXm "
9300 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9303 /* Override any gcc2 internal prototype to avoid an error. */
9304 /* We use char because int might match the return type of a gcc2
9305 builtin and then its argument prototype would still apply. */
9306 char XmImMbLookupString();
9309 XmImMbLookupString()
9312 if { (eval echo configure:9313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9314 eval "ac_cv_lib_$ac_lib_var=yes"
9316 echo "configure: failed program was:" >&5
9317 cat conftest.$ac_ext >&5
9319 eval "ac_cv_lib_$ac_lib_var=no"
9324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9325 echo "$ac_t""yes" 1>&6
9328 echo "$ac_t""no" 1>&6
9334 if test "$with_xim" != "no"; then
9335 { test "$extra_verbose" = "yes" && cat << \EOF
9338 cat >> confdefs.h <<\EOF
9343 if test "$with_xim" = "xlib"; then
9344 { test "$extra_verbose" = "yes" && cat << \EOF
9347 cat >> confdefs.h <<\EOF
9352 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9353 echo " xemacs will be linked with \"input-method-xlib.o\""
9356 if test "$with_xim" = "motif"; then
9357 { test "$extra_verbose" = "yes" && cat << \EOF
9360 cat >> confdefs.h <<\EOF
9366 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9367 echo " xemacs will be linked with \"input-method-motif.o\""
9370 if test "$with_xim" = "motif"; then
9375 if test "$with_xfs" = "yes" ; then
9376 echo "checking for XFontSet" 1>&6
9377 echo "configure:9378: checking for XFontSet" >&5
9379 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9380 echo "configure:9381: checking for XmbDrawString in -lX11" >&5
9381 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9383 xe_check_libs=" -lX11 "
9384 cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure"
9386 #include "confdefs.h"
9387 /* Override any gcc2 internal prototype to avoid an error. */
9388 /* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
9390 char XmbDrawString();
9396 if { (eval echo configure:9397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9398 eval "ac_cv_lib_$ac_lib_var=yes"
9400 echo "configure: failed program was:" >&5
9401 cat conftest.$ac_ext >&5
9403 eval "ac_cv_lib_$ac_lib_var=no"
9408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9409 echo "$ac_t""yes" 1>&6
9412 echo "$ac_t""no" 1>&6
9417 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9418 { test "$extra_verbose" = "yes" && cat << \EOF
9419 Defining USE_XFONTSET
9421 cat >> confdefs.h <<\EOF
9422 #define USE_XFONTSET 1
9426 if test "$with_xim" = "no" ; then
9427 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
9428 echo " xemacs will be linked with \"input-method-xfs.o\""
9433 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9434 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9435 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9436 echo "configure:9437: checking for wnn/jllib.h" >&5
9438 cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441 #include <wnn/jllib.h>
9443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9444 { (eval echo configure:9445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9446 if test -z "$ac_err"; then
9448 eval "ac_cv_header_$ac_safe=yes"
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9454 eval "ac_cv_header_$ac_safe=no"
9457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9458 echo "$ac_t""yes" 1>&6
9461 echo "$ac_t""no" 1>&6
9465 if test "$with_wnn" != "no"; then
9466 for ac_func in crypt
9468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9469 echo "configure:9470: checking for $ac_func" >&5
9471 cat > conftest.$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9474 /* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char $ac_func(); below. */
9477 /* Override any gcc2 internal prototype to avoid an error. */
9478 /* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9484 /* The GNU C library defines this for functions which it implements
9485 to always fail with ENOSYS. Some functions are actually named
9486 something starting with __ and the normal name is an alias. */
9487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9495 if { (eval echo configure:9496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9497 eval "ac_cv_func_$ac_func=yes"
9499 echo "configure: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9502 eval "ac_cv_func_$ac_func=no"
9506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9507 echo "$ac_t""yes" 1>&6
9508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9509 { test "$extra_verbose" = "yes" && cat << EOF
9510 Defining $ac_tr_func
9512 cat >> confdefs.h <<EOF
9513 #define $ac_tr_func 1
9518 echo "$ac_t""no" 1>&6
9522 test "$ac_cv_func_crypt" != "yes" && {
9523 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9524 echo "configure:9525: checking for crypt in -lcrypt" >&5
9525 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9527 xe_check_libs=" -lcrypt "
9528 cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9531 /* Override any gcc2 internal prototype to avoid an error. */
9532 /* We use char because int might match the return type of a gcc2
9533 builtin and then its argument prototype would still apply. */
9540 if { (eval echo configure:9541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9542 eval "ac_cv_lib_$ac_lib_var=yes"
9544 echo "configure: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9547 eval "ac_cv_lib_$ac_lib_var=no"
9552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9553 echo "$ac_t""yes" 1>&6
9554 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9556 { test "$extra_verbose" = "yes" && cat << EOF
9559 cat >> confdefs.h <<EOF
9560 #define $ac_tr_lib 1
9564 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9567 echo "$ac_t""no" 1>&6
9572 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9574 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9575 echo "configure:9576: checking for jl_dic_list_e in -lwnn" >&5
9576 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9578 xe_check_libs=" -lwnn "
9579 cat > conftest.$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9582 /* Override any gcc2 internal prototype to avoid an error. */
9583 /* We use char because int might match the return type of a gcc2
9584 builtin and then its argument prototype would still apply. */
9585 char jl_dic_list_e();
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9593 eval "ac_cv_lib_$ac_lib_var=yes"
9595 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9598 eval "ac_cv_lib_$ac_lib_var=no"
9603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9604 echo "$ac_t""yes" 1>&6
9607 echo "$ac_t""no" 1>&6
9608 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9609 echo "configure:9610: checking for jl_dic_list_e in -lwnn4" >&5
9610 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9612 xe_check_libs=" -lwnn4 "
9613 cat > conftest.$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 /* Override any gcc2 internal prototype to avoid an error. */
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9619 char jl_dic_list_e();
9625 if { (eval echo configure:9626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9627 eval "ac_cv_lib_$ac_lib_var=yes"
9629 echo "configure: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9632 eval "ac_cv_lib_$ac_lib_var=no"
9637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9638 echo "$ac_t""yes" 1>&6
9641 echo "$ac_t""no" 1>&6
9642 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9643 echo "configure:9644: checking for jl_dic_list_e in -lwnn6" >&5
9644 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9646 xe_check_libs=" -lwnn6 "
9647 cat > conftest.$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9650 /* Override any gcc2 internal prototype to avoid an error. */
9651 /* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9653 char jl_dic_list_e();
9659 if { (eval echo configure:9660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9661 eval "ac_cv_lib_$ac_lib_var=yes"
9663 echo "configure: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9666 eval "ac_cv_lib_$ac_lib_var=no"
9671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9672 echo "$ac_t""yes" 1>&6
9675 echo "$ac_t""no" 1>&6
9676 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9677 echo "configure:9678: checking for dic_list_e in -lwnn6_fromsrc" >&5
9678 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9680 xe_check_libs=" -lwnn6_fromsrc "
9681 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9684 /* Override any gcc2 internal prototype to avoid an error. */
9685 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9693 if { (eval echo configure:9694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9695 eval "ac_cv_lib_$ac_lib_var=yes"
9697 echo "configure: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9700 eval "ac_cv_lib_$ac_lib_var=no"
9705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9706 echo "$ac_t""yes" 1>&6
9709 echo "$ac_t""no" 1>&6
9724 test -z "$with_wnn" && with_wnn=yes
9725 if test "$with_wnn" = "yes"; then
9726 { test "$extra_verbose" = "yes" && cat << \EOF
9729 cat >> confdefs.h <<\EOF
9734 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9735 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9736 echo " xemacs will be linked with \"mule-wnnfns.o\""
9738 if test "$with_wnn6" != "no"; then
9740 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9741 echo "configure:9742: checking for jl_fi_dic_list in -l$libwnn" >&5
9742 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9744 xe_check_libs=" -l$libwnn "
9745 cat > conftest.$ac_ext <<EOF
9746 #line 9747 "configure"
9747 #include "confdefs.h"
9748 /* Override any gcc2 internal prototype to avoid an error. */
9749 /* We use char because int might match the return type of a gcc2
9750 builtin and then its argument prototype would still apply. */
9751 char jl_fi_dic_list();
9757 if { (eval echo configure:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9759 eval "ac_cv_lib_$ac_lib_var=yes"
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9764 eval "ac_cv_lib_$ac_lib_var=no"
9769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9770 echo "$ac_t""yes" 1>&6
9773 echo "$ac_t""no" 1>&6
9777 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9780 cat >> confdefs.h <<\EOF
9788 canna_includes_found=no
9789 if test "$with_canna" != "no"; then
9790 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9791 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9792 echo "configure:9793: checking for canna/jrkanji.h" >&5
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9797 #include <canna/jrkanji.h>
9799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9800 { (eval echo configure:9801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9802 if test -z "$ac_err"; then
9804 eval "ac_cv_header_$ac_safe=yes"
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9810 eval "ac_cv_header_$ac_safe=no"
9813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9814 echo "$ac_t""yes" 1>&6
9815 canna_includes_found=yes
9817 echo "$ac_t""no" 1>&6
9821 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9822 -d "/usr/local/canna/include"; then
9823 save_c_switch_site="$c_switch_site"
9824 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9825 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9826 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9827 echo "configure:9828: checking for canna/jrkanji.h" >&5
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 #include <canna/jrkanji.h>
9834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9835 { (eval echo configure:9836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9837 if test -z "$ac_err"; then
9839 eval "ac_cv_header_$ac_safe=yes"
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9845 eval "ac_cv_header_$ac_safe=no"
9848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9849 echo "$ac_t""yes" 1>&6
9850 canna_includes_found=yes
9852 echo "$ac_t""no" 1>&6
9855 if test "$canna_includes_found" != "yes"; then
9856 c_switch_site="$save_c_switch_site"
9861 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9862 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9863 echo "configure:9864: checking for canna/RK.h" >&5
9865 cat > conftest.$ac_ext <<EOF
9866 #line 9867 "configure"
9867 #include "confdefs.h"
9868 #include <canna/RK.h>
9870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9871 { (eval echo configure:9872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9873 if test -z "$ac_err"; then
9875 eval "ac_cv_header_$ac_safe=yes"
9878 echo "configure: failed program was:" >&5
9879 cat conftest.$ac_ext >&5
9881 eval "ac_cv_header_$ac_safe=no"
9884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9885 echo "$ac_t""yes" 1>&6
9888 echo "$ac_t""no" 1>&6
9892 test -z "$with_canna" && {
9893 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9894 echo "configure:9895: checking for RkBgnBun in -lRKC" >&5
9895 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9897 xe_check_libs=" -lRKC "
9898 cat > conftest.$ac_ext <<EOF
9899 #line 9900 "configure"
9900 #include "confdefs.h"
9901 /* Override any gcc2 internal prototype to avoid an error. */
9902 /* We use char because int might match the return type of a gcc2
9903 builtin and then its argument prototype would still apply. */
9910 if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9912 eval "ac_cv_lib_$ac_lib_var=yes"
9914 echo "configure: failed program was:" >&5
9915 cat conftest.$ac_ext >&5
9917 eval "ac_cv_lib_$ac_lib_var=no"
9922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9923 echo "$ac_t""yes" 1>&6
9926 echo "$ac_t""no" 1>&6
9931 test -z "$with_canna" && {
9932 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9933 echo "configure:9934: checking for jrKanjiControl in -lcanna" >&5
9934 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9936 xe_check_libs=" -lcanna "
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 /* Override any gcc2 internal prototype to avoid an error. */
9941 /* We use char because int might match the return type of a gcc2
9942 builtin and then its argument prototype would still apply. */
9943 char jrKanjiControl();
9949 if { (eval echo configure:9950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9951 eval "ac_cv_lib_$ac_lib_var=yes"
9953 echo "configure: failed program was:" >&5
9954 cat conftest.$ac_ext >&5
9956 eval "ac_cv_lib_$ac_lib_var=no"
9961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9962 echo "$ac_t""yes" 1>&6
9965 echo "$ac_t""no" 1>&6
9970 test -z "$with_canna" && with_canna=yes
9971 if test "$with_canna" = "yes"; then
9972 { test "$extra_verbose" = "yes" && cat << \EOF
9975 cat >> confdefs.h <<\EOF
9976 #define HAVE_CANNA 1
9980 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
9981 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
9982 echo " xemacs will be linked with \"mule-canna.o\""
9986 else for feature in xim canna wnn; do
9987 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
9988 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
9990 eval "with_${feature}=no"
9994 if test "$need_motif" = "yes" ; then
9995 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9997 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9998 echo "configure:9999: checking for layout_object_getvalue in -li18n" >&5
9999 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10001 xe_check_libs=" -li18n "
10002 cat > conftest.$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10005 /* Override any gcc2 internal prototype to avoid an error. */
10006 /* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
10008 char layout_object_getvalue();
10011 layout_object_getvalue()
10014 if { (eval echo configure:10015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10016 eval "ac_cv_lib_$ac_lib_var=yes"
10018 echo "configure: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10021 eval "ac_cv_lib_$ac_lib_var=no"
10026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10027 echo "$ac_t""yes" 1>&6
10028 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10030 echo "$ac_t""no" 1>&6
10035 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10036 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10037 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10039 runpath="" runpath_dirs=""
10040 if test -n "$LD_RUN_PATH"; then
10041 runpath="$LD_RUN_PATH"
10042 elif test "$GCC" = "yes"; then
10043 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10044 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10045 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10046 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10047 case "$arg" in P,* | -L* | -R* )
10048 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10050 xe_runpath_dir="$dir"
10051 test "$xe_runpath_dir" != "/lib" -a \
10052 "$xe_runpath_dir" != "/usr/lib" -a \
10053 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10054 eval "$xe_add_unique_runpath_dir"
10059 ld_switch_run="$ld_switch_run_save"
10062 for arg in $ld_switch_site $ld_switch_x_site; do
10063 case "$arg" in -L*) {
10064 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10065 test "$xe_runpath_dir" != "/lib" -a \
10066 "$xe_runpath_dir" != "/usr/lib" -a \
10067 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10068 eval "$xe_add_unique_runpath_dir"
10071 if test "$opsys $need_motif" = "sol2 yes"; then
10072 xe_runpath_dir="/opt/SUNWdt/lib";
10073 eval "$xe_add_unique_runpath_dir";
10076 if test -n "$runpath"; then
10077 ld_switch_run="${dash_r}${runpath}"
10079 if test "$GCC" = "yes"; then
10080 set x $ld_switch_run; shift; ld_switch_run=""
10081 while test -n "$1"; do
10083 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10084 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10086 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10091 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10097 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
10099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10100 echo "configure:10101: checking for $ac_func" >&5
10102 cat > conftest.$ac_ext <<EOF
10103 #line 10104 "configure"
10104 #include "confdefs.h"
10105 /* System header to define __stub macros and hopefully few prototypes,
10106 which can conflict with char $ac_func(); below. */
10107 #include <assert.h>
10108 /* Override any gcc2 internal prototype to avoid an error. */
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10115 /* The GNU C library defines this for functions which it implements
10116 to always fail with ENOSYS. Some functions are actually named
10117 something starting with __ and the normal name is an alias. */
10118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10126 if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10128 eval "ac_cv_func_$ac_func=yes"
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10133 eval "ac_cv_func_$ac_func=no"
10137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10138 echo "$ac_t""yes" 1>&6
10139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10140 { test "$extra_verbose" = "yes" && cat << EOF
10141 Defining $ac_tr_func
10143 cat >> confdefs.h <<EOF
10144 #define $ac_tr_func 1
10149 echo "$ac_t""no" 1>&6
10154 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
10155 echo " xemacs will be linked with \"realpath.o\""
10158 for ac_func in getloadavg
10160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10161 echo "configure:10162: checking for $ac_func" >&5
10163 cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 /* System header to define __stub macros and hopefully few prototypes,
10167 which can conflict with char $ac_func(); below. */
10168 #include <assert.h>
10169 /* Override any gcc2 internal prototype to avoid an error. */
10170 /* We use char because int might match the return type of a gcc2
10171 builtin and then its argument prototype would still apply. */
10176 /* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
10179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10187 if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10189 eval "ac_cv_func_$ac_func=yes"
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10194 eval "ac_cv_func_$ac_func=no"
10198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10199 echo "$ac_t""yes" 1>&6
10200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10201 { test "$extra_verbose" = "yes" && cat << EOF
10202 Defining $ac_tr_func
10204 cat >> confdefs.h <<EOF
10205 #define $ac_tr_func 1
10210 echo "$ac_t""no" 1>&6
10215 if test "$ac_cv_func_getloadavg" != "yes"
10217 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10218 echo " xemacs will be linked with \"getloadavg.o\""
10222 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10223 echo "configure:10224: checking for kstat_open in -lkstat" >&5
10224 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10226 xe_check_libs=" -lkstat "
10227 cat > conftest.$ac_ext <<EOF
10228 #line 10229 "configure"
10229 #include "confdefs.h"
10230 /* Override any gcc2 internal prototype to avoid an error. */
10231 /* We use char because int might match the return type of a gcc2
10232 builtin and then its argument prototype would still apply. */
10239 if { (eval echo configure:10240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10241 eval "ac_cv_lib_$ac_lib_var=yes"
10243 echo "configure: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10246 eval "ac_cv_lib_$ac_lib_var=no"
10251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10252 echo "$ac_t""yes" 1>&6
10253 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10254 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10255 { test "$extra_verbose" = "yes" && cat << EOF
10256 Defining $ac_tr_lib
10258 cat >> confdefs.h <<EOF
10259 #define $ac_tr_lib 1
10263 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10266 echo "$ac_t""no" 1>&6
10272 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10273 echo "configure:10274: checking for kvm_read in -lkvm" >&5
10274 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10276 xe_check_libs=" -lkvm "
10277 cat > conftest.$ac_ext <<EOF
10278 #line 10279 "configure"
10279 #include "confdefs.h"
10280 /* Override any gcc2 internal prototype to avoid an error. */
10281 /* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
10289 if { (eval echo configure:10290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10291 eval "ac_cv_lib_$ac_lib_var=yes"
10293 echo "configure: failed program was:" >&5
10294 cat conftest.$ac_ext >&5
10296 eval "ac_cv_lib_$ac_lib_var=no"
10301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10302 echo "$ac_t""yes" 1>&6
10303 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10305 { test "$extra_verbose" = "yes" && cat << EOF
10306 Defining $ac_tr_lib
10308 cat >> confdefs.h <<EOF
10309 #define $ac_tr_lib 1
10313 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10316 echo "$ac_t""no" 1>&6
10322 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10323 echo "configure:10324: checking whether netdb declares h_errno" >&5
10324 cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10332 if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10334 echo "$ac_t""yes" 1>&6
10335 { test "$extra_verbose" = "yes" && cat << \EOF
10336 Defining HAVE_H_ERRNO
10338 cat >> confdefs.h <<\EOF
10339 #define HAVE_H_ERRNO 1
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10347 echo "$ac_t""no" 1>&6
10351 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10352 echo "configure:10353: checking for sigsetjmp" >&5
10353 cat > conftest.$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10356 #include <setjmp.h>
10358 sigjmp_buf bar; sigsetjmp (bar, 0);
10361 if { (eval echo configure:10362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10363 echo "$ac_t""yes" 1>&6
10364 { test "$extra_verbose" = "yes" && cat << \EOF
10365 Defining HAVE_SIGSETJMP
10367 cat >> confdefs.h <<\EOF
10368 #define HAVE_SIGSETJMP 1
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10376 echo "$ac_t""no" 1>&6
10380 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10381 echo "configure:10382: checking whether localtime caches TZ" >&5
10383 if test "$ac_cv_func_tzset" = "yes"; then
10384 cat > conftest.$ac_ext <<EOF
10385 #line 10386 "configure"
10386 #include "confdefs.h"
10389 # include <stdlib.h>
10391 extern char **environ;
10395 for (to = from = environ; (*to = *from); from++)
10396 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10399 char TZ_GMT0[] = "TZ=GMT0";
10400 char TZ_PST8[] = "TZ=PST8";
10403 time_t now = time ((time_t *) 0);
10404 int hour_GMT0, hour_unset;
10405 if (putenv (TZ_GMT0) != 0)
10407 hour_GMT0 = localtime (&now)->tm_hour;
10409 hour_unset = localtime (&now)->tm_hour;
10410 if (putenv (TZ_PST8) != 0)
10412 if (localtime (&now)->tm_hour == hour_GMT0)
10415 if (localtime (&now)->tm_hour != hour_unset)
10420 if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10422 emacs_cv_localtime_cache=no
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10428 emacs_cv_localtime_cache=yes
10432 # If we lack tzset, report that localtime does not cache TZ,
10433 # since we can't invalidate the cache if we don't have tzset.
10434 emacs_cv_localtime_cache=no
10436 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10437 if test $emacs_cv_localtime_cache = yes; then
10438 { test "$extra_verbose" = "yes" && cat << \EOF
10439 Defining LOCALTIME_CACHE
10441 cat >> confdefs.h <<\EOF
10442 #define LOCALTIME_CACHE 1
10448 if test "$HAVE_TIMEVAL" = "yes"; then
10449 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10450 echo "configure:10451: checking whether gettimeofday accepts one or two arguments" >&5
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10455 #ifdef TIME_WITH_SYS_TIME
10456 #include <sys/time.h>
10459 #ifdef HAVE_SYS_TIME_H
10460 #include <sys/time.h>
10468 struct timeval time;
10469 gettimeofday (&time, 0);
10473 if { (eval echo configure:10474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10475 echo "$ac_t""two" 1>&6
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10480 echo "$ac_t""one" 1>&6
10481 { test "$extra_verbose" = "yes" && cat << \EOF
10482 Defining GETTIMEOFDAY_ONE_ARGUMENT
10484 cat >> confdefs.h <<\EOF
10485 #define GETTIMEOFDAY_ONE_ARGUMENT 1
10494 echo $ac_n "checking for inline""... $ac_c" 1>&6
10495 echo "configure:10496: checking for inline" >&5
10498 for ac_kw in inline __inline__ __inline; do
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10504 } int $ac_kw foo() {
10507 if { (eval echo configure:10508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10509 ac_cv_c_inline=$ac_kw; break
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10518 echo "$ac_t""$ac_cv_c_inline" 1>&6
10519 case "$ac_cv_c_inline" in
10521 no) { test "$extra_verbose" = "yes" && cat << \EOF
10524 cat >> confdefs.h <<\EOF
10529 *) { test "$extra_verbose" = "yes" && cat << EOF
10530 Defining inline = $ac_cv_c_inline
10532 cat >> confdefs.h <<EOF
10533 #define inline $ac_cv_c_inline
10539 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
10540 echo " xemacs will be linked with \"inline.o\""
10544 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10545 # for constant arguments. Useless!
10546 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
10547 echo "configure:10548: checking for working alloca.h" >&5
10549 cat > conftest.$ac_ext <<EOF
10550 #line 10551 "configure"
10551 #include "confdefs.h"
10552 #include <alloca.h>
10554 void *p = alloca(2 * sizeof(int));
10557 if { (eval echo configure:10558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10559 ac_cv_header_alloca_h=yes
10561 echo "configure: failed program was:" >&5
10562 cat conftest.$ac_ext >&5
10564 ac_cv_header_alloca_h=no
10568 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
10569 if test $ac_cv_header_alloca_h = yes; then
10570 { test "$extra_verbose" = "yes" && cat << \EOF
10571 Defining HAVE_ALLOCA_H
10573 cat >> confdefs.h <<\EOF
10574 #define HAVE_ALLOCA_H 1
10580 echo $ac_n "checking for alloca""... $ac_c" 1>&6
10581 echo "configure:10582: checking for alloca" >&5
10583 cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure"
10585 #include "confdefs.h"
10588 # define alloca __builtin_alloca
10591 # include <malloc.h>
10592 # define alloca _alloca
10595 # include <alloca.h>
10600 # ifndef alloca /* predefined by HP cc +Olibcalls */
10609 char *p = (char *) alloca(1);
10612 if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614 ac_cv_func_alloca_works=yes
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 ac_cv_func_alloca_works=no
10623 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
10624 if test $ac_cv_func_alloca_works = yes; then
10625 { test "$extra_verbose" = "yes" && cat << \EOF
10626 Defining HAVE_ALLOCA
10628 cat >> confdefs.h <<\EOF
10629 #define HAVE_ALLOCA 1
10635 if test $ac_cv_func_alloca_works = no; then
10636 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10637 # that cause trouble. Some versions do not even contain alloca or
10638 # contain a buggy version. If you still want to use their alloca,
10639 # use ar to extract alloca.o from them instead of compiling alloca.c.
10640 ALLOCA=alloca.${ac_objext}
10641 { test "$extra_verbose" = "yes" && cat << \EOF
10644 cat >> confdefs.h <<\EOF
10650 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10651 echo "configure:10652: checking whether alloca needs Cray hooks" >&5
10653 cat > conftest.$ac_ext <<EOF
10654 #line 10655 "configure"
10655 #include "confdefs.h"
10656 #if defined(CRAY) && ! defined(CRAY2)
10663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10664 egrep "webecray" >/dev/null 2>&1; then
10674 echo "$ac_t""$ac_cv_os_cray" 1>&6
10675 if test $ac_cv_os_cray = yes; then
10676 for ac_func in _getb67 GETB67 getb67; do
10677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10678 echo "configure:10679: checking for $ac_func" >&5
10680 cat > conftest.$ac_ext <<EOF
10681 #line 10682 "configure"
10682 #include "confdefs.h"
10683 /* System header to define __stub macros and hopefully few prototypes,
10684 which can conflict with char $ac_func(); below. */
10685 #include <assert.h>
10686 /* Override any gcc2 internal prototype to avoid an error. */
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10693 /* The GNU C library defines this for functions which it implements
10694 to always fail with ENOSYS. Some functions are actually named
10695 something starting with __ and the normal name is an alias. */
10696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10704 if { (eval echo configure:10705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10706 eval "ac_cv_func_$ac_func=yes"
10708 echo "configure: failed program was:" >&5
10709 cat conftest.$ac_ext >&5
10711 eval "ac_cv_func_$ac_func=no"
10715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10716 echo "$ac_t""yes" 1>&6
10717 { test "$extra_verbose" = "yes" && cat << EOF
10718 Defining CRAY_STACKSEG_END = $ac_func
10720 cat >> confdefs.h <<EOF
10721 #define CRAY_STACKSEG_END $ac_func
10727 echo "$ac_t""no" 1>&6
10733 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10734 echo "configure:10735: checking stack direction for C alloca" >&5
10736 cat > conftest.$ac_ext <<EOF
10737 #line 10738 "configure"
10738 #include "confdefs.h"
10739 find_stack_direction ()
10741 static char *addr = 0;
10746 return find_stack_direction ();
10749 return (&dummy > addr) ? 1 : -1;
10753 exit (find_stack_direction() < 0);
10756 if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10758 ac_cv_c_stack_direction=1
10761 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10764 ac_cv_c_stack_direction=-1
10768 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
10769 { test "$extra_verbose" = "yes" && cat << EOF
10770 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
10772 cat >> confdefs.h <<EOF
10773 #define STACK_DIRECTION $ac_cv_c_stack_direction
10779 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
10780 echo " xemacs will be linked with \"$ALLOCA\""
10783 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10784 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10785 echo "configure:10786: checking for vfork.h" >&5
10787 cat > conftest.$ac_ext <<EOF
10788 #line 10789 "configure"
10789 #include "confdefs.h"
10792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10793 { (eval echo configure:10794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10795 if test -z "$ac_err"; then
10797 eval "ac_cv_header_$ac_safe=yes"
10800 echo "configure: failed program was:" >&5
10801 cat conftest.$ac_ext >&5
10803 eval "ac_cv_header_$ac_safe=no"
10806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10807 echo "$ac_t""yes" 1>&6
10808 { test "$extra_verbose" = "yes" && cat << \EOF
10809 Defining HAVE_VFORK_H
10811 cat >> confdefs.h <<\EOF
10812 #define HAVE_VFORK_H 1
10817 echo "$ac_t""no" 1>&6
10820 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10821 echo "configure:10822: checking for working vfork" >&5
10823 cat > conftest.$ac_ext <<EOF
10824 #line 10825 "configure"
10825 #include "confdefs.h"
10826 /* Thanks to Paul Eggert for this test. */
10828 #include <sys/types.h>
10829 #include <sys/stat.h>
10830 #ifdef HAVE_UNISTD_H
10831 #include <unistd.h>
10833 #ifdef HAVE_VFORK_H
10836 /* On some sparc systems, changes by the child to local and incoming
10837 argument registers are propagated back to the parent.
10838 The compiler is told about this with #include <vfork.h>,
10839 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
10840 Test for this by using a static variable whose address
10841 is put into a register that is clobbered by the vfork. */
10844 sparc_address_test (int arg)
10846 sparc_address_test (arg) int arg;
10849 static pid_t child;
10864 pid_t parent = getpid ();
10867 sparc_address_test ();
10872 /* Here is another test for sparc vfork register problems.
10873 This test uses lots of local variables, at least
10874 as many local variables as main has allocated so far
10875 including compiler temporaries. 4 locals are enough for
10876 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
10877 A buggy compiler should reuse the register of parent
10878 for one of the local variables, since it will think that
10879 parent can't possibly be used any more in this routine.
10880 Assigning to the local variable will thus munge parent
10881 in the parent process. */
10883 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10884 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10885 /* Convince the compiler that p..p7 are live; otherwise, it might
10886 use the same hardware register for all 8 local variables. */
10887 if (p != p1 || p != p2 || p != p3 || p != p4
10888 || p != p5 || p != p6 || p != p7)
10891 /* On some systems (e.g. IRIX 3.3),
10892 vfork doesn't separate parent from child file descriptors.
10893 If the child closes a descriptor before it execs or exits,
10894 this munges the parent's descriptor as well.
10895 Test for this by closing stdout in the child. */
10896 _exit(close(fileno(stdout)) != 0);
10901 while (wait(&status) != child)
10904 /* Was there some problem with vforking? */
10907 /* Did the child fail? (This shouldn't happen.) */
10910 /* Did the vfork/compiler bug occur? */
10911 || parent != getpid()
10913 /* Did the file descriptor bug occur? */
10914 || fstat(fileno(stdout), &st) != 0
10919 if { (eval echo configure:10920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10921 ac_cv_func_vfork_works=yes
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10927 ac_cv_func_vfork_works=no
10931 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
10932 if test $ac_cv_func_vfork_works = no; then
10933 { test "$extra_verbose" = "yes" && cat << \EOF
10934 Defining vfork = fork
10936 cat >> confdefs.h <<\EOF
10944 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10945 echo "configure:10946: checking for working strcoll" >&5
10947 cat > conftest.$ac_ext <<EOF
10948 #line 10949 "configure"
10949 #include "confdefs.h"
10950 #include <string.h>
10953 exit (strcoll ("abc", "def") >= 0 ||
10954 strcoll ("ABC", "DEF") >= 0 ||
10955 strcoll ("123", "456") >= 0);
10958 if { (eval echo configure:10959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10960 ac_cv_func_strcoll_works=yes
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10966 ac_cv_func_strcoll_works=no
10970 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
10971 if test $ac_cv_func_strcoll_works = yes; then
10972 { test "$extra_verbose" = "yes" && cat << \EOF
10973 Defining HAVE_STRCOLL
10975 cat >> confdefs.h <<\EOF
10976 #define HAVE_STRCOLL 1
10983 for ac_func in getpgrp
10985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10986 echo "configure:10987: checking for $ac_func" >&5
10988 cat > conftest.$ac_ext <<EOF
10989 #line 10990 "configure"
10990 #include "confdefs.h"
10991 /* System header to define __stub macros and hopefully few prototypes,
10992 which can conflict with char $ac_func(); below. */
10993 #include <assert.h>
10994 /* Override any gcc2 internal prototype to avoid an error. */
10995 /* We use char because int might match the return type of a gcc2
10996 builtin and then its argument prototype would still apply. */
11001 /* The GNU C library defines this for functions which it implements
11002 to always fail with ENOSYS. Some functions are actually named
11003 something starting with __ and the normal name is an alias. */
11004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11014 eval "ac_cv_func_$ac_func=yes"
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11019 eval "ac_cv_func_$ac_func=no"
11023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11024 echo "$ac_t""yes" 1>&6
11025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11026 { test "$extra_verbose" = "yes" && cat << EOF
11027 Defining $ac_tr_func
11029 cat >> confdefs.h <<EOF
11030 #define $ac_tr_func 1
11035 echo "$ac_t""no" 1>&6
11039 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11040 echo "configure:11041: checking whether getpgrp takes no argument" >&5
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure"
11044 #include "confdefs.h"
11047 * If this system has a BSD-style getpgrp(),
11048 * which takes a pid argument, exit unsuccessfully.
11050 * Snarfed from Chet Ramey's bash pgrp.c test program
11053 #include <sys/types.h>
11056 int pg1, pg2, pg3, pg4;
11057 int ng, np, s, child;
11064 pg3 = getpgrp(pid);
11068 * If all of these values are the same, it's pretty sure that
11069 * we're on a system that ignores getpgrp's first argument.
11071 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
11077 else if (child == 0) {
11080 * If this is Sys V, this will not work; pgrp will be
11081 * set to np because setpgrp just changes a pgrp to be
11082 * the same as the pid.
11085 ng = getpgrp(0); /* Same result for Sys V and BSD */
11098 if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11100 ac_cv_func_getpgrp_void=yes
11103 echo "configure: failed program was:" >&5
11104 cat conftest.$ac_ext >&5
11106 ac_cv_func_getpgrp_void=no
11111 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
11112 if test $ac_cv_func_getpgrp_void = yes; then
11113 { test "$extra_verbose" = "yes" && cat << \EOF
11114 Defining GETPGRP_VOID
11116 cat >> confdefs.h <<\EOF
11117 #define GETPGRP_VOID 1
11124 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11125 echo "configure:11126: checking for working mmap" >&5
11126 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11131 #include <unistd.h>
11133 #include <sys/mman.h>
11135 #ifndef MAP_VARIABLE
11136 #define MAP_VARIABLE 0
11140 #define MAP_FAILED -1
11143 int main (int argc, char *argv[])
11147 #ifndef MAP_ANONYMOUS
11148 fd = open ("/dev/zero", O_RDWR);
11151 #define MAP_ANONYMOUS 0
11153 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
11154 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
11155 fd, 0) != (void *) MAP_FAILED)
11157 perror ("conftest: mmap failed");
11161 if { (eval echo configure:11162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11171 rm -fr conftest* ;;
11173 echo "$ac_t""$have_mmap" 1>&6
11174 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11177 cat >> confdefs.h <<\EOF
11178 #define HAVE_MMAP 1
11183 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11184 if test "$rel_alloc $have_mmap" = "default yes"; then
11185 if test "$doug_lea_malloc" = "yes"; then
11186 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11187 echo "configure:11188: checking for M_MMAP_THRESHOLD" >&5
11188 cat > conftest.$ac_ext <<EOF
11189 #line 11190 "configure"
11190 #include "confdefs.h"
11191 #include <malloc.h>
11194 #ifndef M_MMAP_THRESHOLD
11195 #error No M_MMAP_THRESHOLD :-(
11196 !@+$%^&*_)(_ - unlikely to compile...
11201 if { (eval echo configure:11202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11203 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11205 echo "configure: failed program was:" >&5
11206 cat conftest.$ac_ext >&5
11208 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11215 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11218 cat >> confdefs.h <<\EOF
11219 #define REL_ALLOC 1
11224 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11225 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11226 echo "configure:11227: checking for termios.h" >&5
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 #include <termios.h>
11233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11234 { (eval echo configure:11235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11236 if test -z "$ac_err"; then
11238 eval "ac_cv_header_$ac_safe=yes"
11241 echo "configure: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11244 eval "ac_cv_header_$ac_safe=no"
11247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11249 { test "$extra_verbose" = "yes" && cat << \EOF
11250 Defining HAVE_TERMIOS
11252 cat >> confdefs.h <<\EOF
11253 #define HAVE_TERMIOS 1
11257 { test "$extra_verbose" = "yes" && cat << \EOF
11258 Defining SIGNALS_VIA_CHARACTERS
11260 cat >> confdefs.h <<\EOF
11261 #define SIGNALS_VIA_CHARACTERS 1
11265 { test "$extra_verbose" = "yes" && cat << \EOF
11268 cat >> confdefs.h <<\EOF
11269 #define NO_TERMIO 1
11274 echo "$ac_t""no" 1>&6
11275 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11276 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11277 echo "configure:11278: checking for termio.h" >&5
11279 cat > conftest.$ac_ext <<EOF
11280 #line 11281 "configure"
11281 #include "confdefs.h"
11282 #include <termio.h>
11284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11285 { (eval echo configure:11286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11287 if test -z "$ac_err"; then
11289 eval "ac_cv_header_$ac_safe=yes"
11292 echo "configure: failed program was:" >&5
11293 cat conftest.$ac_ext >&5
11295 eval "ac_cv_header_$ac_safe=no"
11298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11299 echo "$ac_t""yes" 1>&6
11300 { test "$extra_verbose" = "yes" && cat << \EOF
11301 Defining HAVE_TERMIO
11303 cat >> confdefs.h <<\EOF
11304 #define HAVE_TERMIO 1
11309 echo "$ac_t""no" 1>&6
11316 echo $ac_n "checking for socket""... $ac_c" 1>&6
11317 echo "configure:11318: checking for socket" >&5
11319 cat > conftest.$ac_ext <<EOF
11320 #line 11321 "configure"
11321 #include "confdefs.h"
11322 /* System header to define __stub macros and hopefully few prototypes,
11323 which can conflict with char socket(); below. */
11324 #include <assert.h>
11325 /* Override any gcc2 internal prototype to avoid an error. */
11326 /* We use char because int might match the return type of a gcc2
11327 builtin and then its argument prototype would still apply. */
11332 /* The GNU C library defines this for functions which it implements
11333 to always fail with ENOSYS. Some functions are actually named
11334 something starting with __ and the normal name is an alias. */
11335 #if defined (__stub_socket) || defined (__stub___socket)
11343 if { (eval echo configure:11344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11345 eval "ac_cv_func_socket=yes"
11347 echo "configure: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11350 eval "ac_cv_func_socket=no"
11354 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11355 echo "$ac_t""yes" 1>&6
11356 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11357 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11358 echo "configure:11359: checking for netinet/in.h" >&5
11360 cat > conftest.$ac_ext <<EOF
11361 #line 11362 "configure"
11362 #include "confdefs.h"
11363 #include <netinet/in.h>
11365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11366 { (eval echo configure:11367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11368 if test -z "$ac_err"; then
11370 eval "ac_cv_header_$ac_safe=yes"
11373 echo "configure: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11376 eval "ac_cv_header_$ac_safe=no"
11379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11380 echo "$ac_t""yes" 1>&6
11381 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11382 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11383 echo "configure:11384: checking for arpa/inet.h" >&5
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388 #include <arpa/inet.h>
11390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11391 { (eval echo configure:11392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11393 if test -z "$ac_err"; then
11395 eval "ac_cv_header_$ac_safe=yes"
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11401 eval "ac_cv_header_$ac_safe=no"
11404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11405 echo "$ac_t""yes" 1>&6
11407 { test "$extra_verbose" = "yes" && cat << \EOF
11408 Defining HAVE_SOCKETS
11410 cat >> confdefs.h <<\EOF
11411 #define HAVE_SOCKETS 1
11415 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11416 echo "configure:11417: checking "for sun_len member in struct sockaddr_un"" >&5
11417 cat > conftest.$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11421 #include <sys/types.h>
11422 #include <sys/socket.h>
11423 #include <sys/un.h>
11426 static struct sockaddr_un x; x.sun_len = 1;
11429 if { (eval echo configure:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11431 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11432 Defining HAVE_SOCKADDR_SUN_LEN
11434 cat >> confdefs.h <<\EOF
11435 #define HAVE_SOCKADDR_SUN_LEN 1
11440 echo "configure: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11443 echo "$ac_t""no" 1>&6
11446 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11447 echo "configure:11448: checking "for ip_mreq struct in netinet/in.h"" >&5
11448 cat > conftest.$ac_ext <<EOF
11449 #line 11450 "configure"
11450 #include "confdefs.h"
11452 #include <sys/types.h>
11453 #include <netinet/in.h>
11456 static struct ip_mreq x;
11459 if { (eval echo configure:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11461 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11462 Defining HAVE_MULTICAST
11464 cat >> confdefs.h <<\EOF
11465 #define HAVE_MULTICAST 1
11470 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11473 echo "$ac_t""no" 1>&6
11477 echo "$ac_t""no" 1>&6
11481 echo "$ac_t""no" 1>&6
11485 echo "$ac_t""no" 1>&6
11489 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11490 echo "configure:11491: checking for msgget" >&5
11492 cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 /* System header to define __stub macros and hopefully few prototypes,
11496 which can conflict with char msgget(); below. */
11497 #include <assert.h>
11498 /* Override any gcc2 internal prototype to avoid an error. */
11499 /* We use char because int might match the return type of a gcc2
11500 builtin and then its argument prototype would still apply. */
11505 /* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
11508 #if defined (__stub_msgget) || defined (__stub___msgget)
11516 if { (eval echo configure:11517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11518 eval "ac_cv_func_msgget=yes"
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11523 eval "ac_cv_func_msgget=no"
11527 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11528 echo "$ac_t""yes" 1>&6
11529 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
11530 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
11531 echo "configure:11532: checking for sys/ipc.h" >&5
11533 cat > conftest.$ac_ext <<EOF
11534 #line 11535 "configure"
11535 #include "confdefs.h"
11536 #include <sys/ipc.h>
11538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11539 { (eval echo configure:11540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11541 if test -z "$ac_err"; then
11543 eval "ac_cv_header_$ac_safe=yes"
11546 echo "configure: failed program was:" >&5
11547 cat conftest.$ac_ext >&5
11549 eval "ac_cv_header_$ac_safe=no"
11552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11553 echo "$ac_t""yes" 1>&6
11554 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
11555 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
11556 echo "configure:11557: checking for sys/msg.h" >&5
11558 cat > conftest.$ac_ext <<EOF
11559 #line 11560 "configure"
11560 #include "confdefs.h"
11561 #include <sys/msg.h>
11563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11564 { (eval echo configure:11565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11566 if test -z "$ac_err"; then
11568 eval "ac_cv_header_$ac_safe=yes"
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11574 eval "ac_cv_header_$ac_safe=no"
11577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11578 echo "$ac_t""yes" 1>&6
11579 { test "$extra_verbose" = "yes" && cat << \EOF
11580 Defining HAVE_SYSVIPC
11582 cat >> confdefs.h <<\EOF
11583 #define HAVE_SYSVIPC 1
11588 echo "$ac_t""no" 1>&6
11592 echo "$ac_t""no" 1>&6
11596 echo "$ac_t""no" 1>&6
11600 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
11601 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
11602 echo "configure:11603: checking for dirent.h" >&5
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11607 #include <dirent.h>
11609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11610 { (eval echo configure:11611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11612 if test -z "$ac_err"; then
11614 eval "ac_cv_header_$ac_safe=yes"
11617 echo "configure: failed program was:" >&5
11618 cat conftest.$ac_ext >&5
11620 eval "ac_cv_header_$ac_safe=no"
11623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11624 echo "$ac_t""yes" 1>&6
11625 { test "$extra_verbose" = "yes" && cat << \EOF
11626 Defining SYSV_SYSTEM_DIR
11628 cat >> confdefs.h <<\EOF
11629 #define SYSV_SYSTEM_DIR 1
11634 echo "$ac_t""no" 1>&6
11635 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11636 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11637 echo "configure:11638: checking for sys/dir.h" >&5
11639 cat > conftest.$ac_ext <<EOF
11640 #line 11641 "configure"
11641 #include "confdefs.h"
11642 #include <sys/dir.h>
11644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11645 { (eval echo configure:11646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11647 if test -z "$ac_err"; then
11649 eval "ac_cv_header_$ac_safe=yes"
11652 echo "configure: failed program was:" >&5
11653 cat conftest.$ac_ext >&5
11655 eval "ac_cv_header_$ac_safe=no"
11658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11659 echo "$ac_t""yes" 1>&6
11662 echo "$ac_t""no" 1>&6
11663 { test "$extra_verbose" = "yes" && cat << \EOF
11664 Defining NONSYSTEM_DIR_LIBRARY
11666 cat >> confdefs.h <<\EOF
11667 #define NONSYSTEM_DIR_LIBRARY 1
11676 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11677 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11678 echo "configure:11679: checking for nlist.h" >&5
11680 cat > conftest.$ac_ext <<EOF
11681 #line 11682 "configure"
11682 #include "confdefs.h"
11685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11686 { (eval echo configure:11687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11688 if test -z "$ac_err"; then
11690 eval "ac_cv_header_$ac_safe=yes"
11693 echo "configure: failed program was:" >&5
11694 cat conftest.$ac_ext >&5
11696 eval "ac_cv_header_$ac_safe=no"
11699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11700 echo "$ac_t""yes" 1>&6
11701 { test "$extra_verbose" = "yes" && cat << \EOF
11702 Defining NLIST_STRUCT
11704 cat >> confdefs.h <<\EOF
11705 #define NLIST_STRUCT 1
11710 echo "$ac_t""no" 1>&6
11715 echo "checking "for sound support"" 1>&6
11716 echo "configure:11717: checking "for sound support"" >&5
11717 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11719 if test "$with_native_sound" != "no"; then
11720 if test -n "$native_sound_lib"; then
11721 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11722 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11723 echo "configure:11724: checking for multimedia/audio_device.h" >&5
11725 cat > conftest.$ac_ext <<EOF
11726 #line 11727 "configure"
11727 #include "confdefs.h"
11728 #include <multimedia/audio_device.h>
11730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11731 { (eval echo configure:11732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11733 if test -z "$ac_err"; then
11735 eval "ac_cv_header_$ac_safe=yes"
11738 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11741 eval "ac_cv_header_$ac_safe=no"
11744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11745 echo "$ac_t""yes" 1>&6
11746 sound_found=yes sound_cflags=""
11747 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11748 echo " xemacs will be linked with \"sunplay.o\""
11751 echo "$ac_t""no" 1>&6
11756 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
11758 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11759 echo " xemacs will be linked with \"sunplay.o\""
11761 if test -d "/usr/demo/SOUND/include"
11762 then sound_cflags="-I/usr/demo/SOUND/include"
11763 else sound_cflags="-I/usr/demo/SOUND"
11765 if test -z "$native_sound_lib" ; then
11766 if test -r "/usr/demo/SOUND/lib/libaudio.a"
11767 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
11768 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
11773 if test -z "$sound_found"; then
11774 case "$canonical" in
11776 if test -z "$native_sound_lib"; then
11778 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11779 echo "configure:11780: checking for ALopenport in -laudio" >&5
11780 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11782 xe_check_libs=" -laudio "
11783 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11786 /* Override any gcc2 internal prototype to avoid an error. */
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11795 if { (eval echo configure:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11797 eval "ac_cv_lib_$ac_lib_var=yes"
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11802 eval "ac_cv_lib_$ac_lib_var=no"
11807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11808 echo "$ac_t""yes" 1>&6
11809 native_sound_lib="-laudio"
11811 echo "$ac_t""no" 1>&6
11816 if test -n "$native_sound_lib"; then
11817 sound_found=yes sound_cflags=""
11818 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
11819 echo " xemacs will be linked with \"sgiplay.o\""
11823 if test -z "$native_sound_lib"; then
11825 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11826 echo "configure:11827: checking for AOpenAudio in -lAlib" >&5
11827 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11829 xe_check_libs=" -lAlib "
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 /* Override any gcc2 internal prototype to avoid an error. */
11834 /* We use char because int might match the return type of a gcc2
11835 builtin and then its argument prototype would still apply. */
11842 if { (eval echo configure:11843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11844 eval "ac_cv_lib_$ac_lib_var=yes"
11846 echo "configure: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11849 eval "ac_cv_lib_$ac_lib_var=no"
11854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11855 echo "$ac_t""yes" 1>&6
11856 native_sound_lib="-lAlib"
11858 echo "$ac_t""no" 1>&6
11863 if test -n "$native_sound_lib"; then
11865 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
11866 echo " xemacs will be linked with \"hpplay.o\""
11868 if test "$GCC" = "yes" # Kludge city
11869 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
11870 else sound_cflags="+e -I/usr/audio/examples"
11876 if test -z "$sound_found"; then
11877 for dir in "machine" "sys" "linux"; do
11878 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11879 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11880 echo "configure:11881: checking for ${dir}/soundcard.h" >&5
11882 cat > conftest.$ac_ext <<EOF
11883 #line 11884 "configure"
11884 #include "confdefs.h"
11885 #include <${dir}/soundcard.h>
11887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11888 { (eval echo configure:11889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11890 if test -z "$ac_err"; then
11892 eval "ac_cv_header_$ac_safe=yes"
11895 echo "configure: failed program was:" >&5
11896 cat conftest.$ac_ext >&5
11898 eval "ac_cv_header_$ac_safe=no"
11901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11902 echo "$ac_t""yes" 1>&6
11905 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
11906 echo " xemacs will be linked with \"linuxplay.o\""
11908 { test "$extra_verbose" = "yes" && cat << EOF
11909 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
11911 cat >> confdefs.h <<EOF
11912 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
11918 echo "$ac_t""no" 1>&6
11924 test "$sound_found" = "yes" && with_native_sound=yes
11927 if test "$with_native_sound" = "yes"; then
11928 { test "$extra_verbose" = "yes" && cat << \EOF
11929 Defining HAVE_NATIVE_SOUND
11931 cat >> confdefs.h <<\EOF
11932 #define HAVE_NATIVE_SOUND 1
11936 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
11939 if test "$with_nas_sound" != "no"; then
11940 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11941 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11942 echo "configure:11943: checking for audio/audiolib.h" >&5
11944 cat > conftest.$ac_ext <<EOF
11945 #line 11946 "configure"
11946 #include "confdefs.h"
11947 #include <audio/audiolib.h>
11949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11950 { (eval echo configure:11951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11952 if test -z "$ac_err"; then
11954 eval "ac_cv_header_$ac_safe=yes"
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11960 eval "ac_cv_header_$ac_safe=no"
11963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11964 echo "$ac_t""yes" 1>&6
11967 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11968 echo "configure:11969: checking for AuOpenServer in -laudio" >&5
11969 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11971 xe_check_libs=" -laudio "
11972 cat > conftest.$ac_ext <<EOF
11973 #line 11974 "configure"
11974 #include "confdefs.h"
11975 /* Override any gcc2 internal prototype to avoid an error. */
11976 /* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11978 char AuOpenServer();
11984 if { (eval echo configure:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11986 eval "ac_cv_lib_$ac_lib_var=yes"
11988 echo "configure: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11991 eval "ac_cv_lib_$ac_lib_var=no"
11996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11997 echo "$ac_t""yes" 1>&6
12000 echo "$ac_t""no" 1>&6
12005 echo "$ac_t""no" 1>&6
12008 if test "$have_nas_sound" = "yes"; then
12010 { test "$extra_verbose" = "yes" && cat << \EOF
12011 Defining HAVE_NAS_SOUND
12013 cat >> confdefs.h <<\EOF
12014 #define HAVE_NAS_SOUND 1
12018 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12019 echo " xemacs will be linked with \"nas.o\""
12021 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12022 cat > conftest.$ac_ext <<EOF
12023 #line 12024 "configure"
12024 #include "confdefs.h"
12025 #include <audio/Xtutil.h>
12027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12028 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12032 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
12033 Defining NAS_NO_ERROR_JUMP
12035 cat >> confdefs.h <<\EOF
12036 #define NAS_NO_ERROR_JUMP 1
12044 test "$with_nas_sound" = "yes" && \
12045 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12050 if test "$with_esd_sound" != "no"; then
12051 # Extract the first word of "esd-config", so it can be a program name with args.
12052 set dummy esd-config; ac_word=$2
12053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12054 echo "configure:12055: checking for $ac_word" >&5
12056 if test -n "$have_esd_config"; then
12057 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12061 for ac_dir in $ac_dummy; do
12062 test -z "$ac_dir" && ac_dir=.
12063 if test -f $ac_dir/$ac_word; then
12064 ac_cv_prog_have_esd_config="yes"
12069 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
12071 have_esd_config="$ac_cv_prog_have_esd_config"
12072 if test -n "$have_esd_config"; then
12073 echo "$ac_t""$have_esd_config" 1>&6
12075 echo "$ac_t""no" 1>&6
12078 if test "$have_esd_config" = "yes"; then
12079 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12080 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
12081 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12082 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12083 echo "configure:12084: checking for esd_play_stream" >&5
12085 cat > conftest.$ac_ext <<EOF
12086 #line 12087 "configure"
12087 #include "confdefs.h"
12088 /* System header to define __stub macros and hopefully few prototypes,
12089 which can conflict with char esd_play_stream(); below. */
12090 #include <assert.h>
12091 /* Override any gcc2 internal prototype to avoid an error. */
12092 /* We use char because int might match the return type of a gcc2
12093 builtin and then its argument prototype would still apply. */
12094 char esd_play_stream();
12098 /* The GNU C library defines this for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
12109 if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12111 eval "ac_cv_func_esd_play_stream=yes"
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12116 eval "ac_cv_func_esd_play_stream=no"
12120 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
12121 echo "$ac_t""yes" 1>&6
12124 echo "$ac_t""no" 1>&6
12125 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
12130 if test "$have_esd_sound" = "yes"; then
12133 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
12134 echo " xemacs will be linked with \"esd.o\""
12136 { test "$extra_verbose" = "yes" && cat << \EOF
12137 Defining HAVE_ESD_SOUND
12139 cat >> confdefs.h <<\EOF
12140 #define HAVE_ESD_SOUND 1
12145 test "$with_esd_sound" = "yes" && \
12146 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12151 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12152 echo " xemacs will be linked with \"miscplay.o\""
12156 test -z "$with_tty" && with_tty=yes
12158 if test "$with_tty" = "yes" ; then
12159 echo "checking for TTY-related features" 1>&6
12160 echo "configure:12161: checking for TTY-related features" >&5
12161 { test "$extra_verbose" = "yes" && cat << \EOF
12164 cat >> confdefs.h <<\EOF
12169 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
12170 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\""
12173 if test -z "$with_ncurses"; then
12175 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12176 echo "configure:12177: checking for tgetent in -lncurses" >&5
12177 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12179 xe_check_libs=" -lncurses "
12180 cat > conftest.$ac_ext <<EOF
12181 #line 12182 "configure"
12182 #include "confdefs.h"
12183 /* Override any gcc2 internal prototype to avoid an error. */
12184 /* We use char because int might match the return type of a gcc2
12185 builtin and then its argument prototype would still apply. */
12192 if { (eval echo configure:12193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12194 eval "ac_cv_lib_$ac_lib_var=yes"
12196 echo "configure: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12199 eval "ac_cv_lib_$ac_lib_var=no"
12204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12205 echo "$ac_t""yes" 1>&6
12208 echo "$ac_t""no" 1>&6
12214 if test "$with_ncurses" = "yes"; then
12215 { test "$extra_verbose" = "yes" && cat << \EOF
12216 Defining HAVE_NCURSES
12218 cat >> confdefs.h <<\EOF
12219 #define HAVE_NCURSES 1
12223 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12224 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12225 echo "configure:12226: checking for ncurses/curses.h" >&5
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12230 #include <ncurses/curses.h>
12232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12233 { (eval echo configure:12234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12235 if test -z "$ac_err"; then
12237 eval "ac_cv_header_$ac_safe=yes"
12240 echo "configure: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12243 eval "ac_cv_header_$ac_safe=no"
12246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12247 echo "$ac_t""yes" 1>&6
12248 curses_h_file=ncurses/curses.h
12250 echo "$ac_t""no" 1>&6
12253 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12254 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12255 echo "configure:12256: checking for ncurses/term.h" >&5
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 #include <ncurses/term.h>
12262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12263 { (eval echo configure:12264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12265 if test -z "$ac_err"; then
12267 eval "ac_cv_header_$ac_safe=yes"
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12273 eval "ac_cv_header_$ac_safe=no"
12276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12277 echo "$ac_t""yes" 1>&6
12278 term_h_file=ncurses/term.h
12280 echo "$ac_t""no" 1>&6
12283 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12284 echo " xemacs will be linked with \"terminfo.o\""
12286 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12288 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12289 save_c_switch_site="$c_switch_site"
12290 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12291 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12292 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12293 echo "configure:12294: checking for ncurses/curses.h" >&5
12295 cat > conftest.$ac_ext <<EOF
12296 #line 12297 "configure"
12297 #include "confdefs.h"
12298 #include <ncurses/curses.h>
12300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12301 { (eval echo configure:12302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12303 if test -z "$ac_err"; then
12305 eval "ac_cv_header_$ac_safe=yes"
12308 echo "configure: failed program was:" >&5
12309 cat conftest.$ac_ext >&5
12311 eval "ac_cv_header_$ac_safe=no"
12314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12315 echo "$ac_t""yes" 1>&6
12316 curses_h_file=ncurses/curses.h
12318 echo "$ac_t""no" 1>&6
12321 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12322 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12323 else c_switch_site="$save_c_switch_site"
12326 else if test "$have_terminfo" = "yes"; then
12327 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12328 echo " xemacs will be linked with \"terminfo.o\""
12330 if test -n "$libs_termcap"; then
12331 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12333 for lib in curses termlib termcap; do
12335 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12336 echo "configure:12337: checking for tgetent in -l$lib" >&5
12337 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12339 xe_check_libs=" -l$lib "
12340 cat > conftest.$ac_ext <<EOF
12341 #line 12342 "configure"
12342 #include "confdefs.h"
12343 /* Override any gcc2 internal prototype to avoid an error. */
12344 /* We use char because int might match the return type of a gcc2
12345 builtin and then its argument prototype would still apply. */
12352 if { (eval echo configure:12353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12354 eval "ac_cv_lib_$ac_lib_var=yes"
12356 echo "configure: failed program was:" >&5
12357 cat conftest.$ac_ext >&5
12359 eval "ac_cv_lib_$ac_lib_var=no"
12364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12365 echo "$ac_t""yes" 1>&6
12366 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12368 echo "$ac_t""no" 1>&6
12374 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12375 echo " xemacs will be linked with \"tparam.o\""
12377 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12378 if test -n "$libs_termcap"; then
12379 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12382 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12383 echo "configure:12384: checking for tgetent in -lcurses" >&5
12384 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12386 xe_check_libs=" -lcurses "
12387 cat > conftest.$ac_ext <<EOF
12388 #line 12389 "configure"
12389 #include "confdefs.h"
12390 /* Override any gcc2 internal prototype to avoid an error. */
12391 /* We use char because int might match the return type of a gcc2
12392 builtin and then its argument prototype would still apply. */
12399 if { (eval echo configure:12400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12401 eval "ac_cv_lib_$ac_lib_var=yes"
12403 echo "configure: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12406 eval "ac_cv_lib_$ac_lib_var=no"
12411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12412 echo "$ac_t""yes" 1>&6
12413 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12415 echo "$ac_t""no" 1>&6
12416 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12417 echo "configure:12418: checking for tgetent in -ltermcap" >&5
12418 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12420 xe_check_libs=" -ltermcap "
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12424 /* Override any gcc2 internal prototype to avoid an error. */
12425 /* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12433 if { (eval echo configure:12434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12435 eval "ac_cv_lib_$ac_lib_var=yes"
12437 echo "configure: failed program was:" >&5
12438 cat conftest.$ac_ext >&5
12440 eval "ac_cv_lib_$ac_lib_var=no"
12445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12446 echo "$ac_t""yes" 1>&6
12447 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12449 echo "$ac_t""no" 1>&6
12450 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12451 echo " xemacs will be linked with \"termcap.o\""
12462 { test "$extra_verbose" = "yes" && cat << EOF
12463 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
12465 cat >> confdefs.h <<EOF
12466 #define CURSES_H_FILE "${curses_h_file-curses.h}"
12470 { test "$extra_verbose" = "yes" && cat << EOF
12471 Defining TERM_H_FILE = "${term_h_file-term.h}"
12473 cat >> confdefs.h <<EOF
12474 #define TERM_H_FILE "${term_h_file-term.h}"
12479 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12480 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12481 echo "configure:12482: checking for gpm.h" >&5
12483 cat > conftest.$ac_ext <<EOF
12484 #line 12485 "configure"
12485 #include "confdefs.h"
12488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12489 { (eval echo configure:12490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12491 if test -z "$ac_err"; then
12493 eval "ac_cv_header_$ac_safe=yes"
12496 echo "configure: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12499 eval "ac_cv_header_$ac_safe=no"
12502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12503 echo "$ac_t""yes" 1>&6
12506 echo "$ac_t""no" 1>&6
12510 test -z "$with_gpm" && {
12511 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12512 echo "configure:12513: checking for Gpm_Open in -lgpm" >&5
12513 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12515 xe_check_libs=" -lgpm "
12516 cat > conftest.$ac_ext <<EOF
12517 #line 12518 "configure"
12518 #include "confdefs.h"
12519 /* Override any gcc2 internal prototype to avoid an error. */
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12528 if { (eval echo configure:12529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12530 eval "ac_cv_lib_$ac_lib_var=yes"
12532 echo "configure: failed program was:" >&5
12533 cat conftest.$ac_ext >&5
12535 eval "ac_cv_lib_$ac_lib_var=no"
12540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12541 echo "$ac_t""yes" 1>&6
12544 echo "$ac_t""no" 1>&6
12549 if test "$with_gpm" = "yes"; then
12550 { test "$extra_verbose" = "yes" && cat << \EOF
12553 cat >> confdefs.h <<\EOF
12558 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
12559 echo " xemacs will be linked with \"gpmevent.o\""
12561 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
12564 else for feature in ncurses gpm; do
12565 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
12566 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
12568 eval "with_${feature}=no"
12571 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
12572 echo " xemacs will be linked with \"event-unixoid.o\""
12576 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12577 != "no no no" && echo "checking for database support" 1>&6
12578 echo "configure:12579: checking for database support" >&5
12580 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
12581 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
12582 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
12583 echo "configure:12584: checking for ndbm.h" >&5
12585 cat > conftest.$ac_ext <<EOF
12586 #line 12587 "configure"
12587 #include "confdefs.h"
12590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12591 { (eval echo configure:12592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12593 if test -z "$ac_err"; then
12595 eval "ac_cv_header_$ac_safe=yes"
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12601 eval "ac_cv_header_$ac_safe=no"
12604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12605 echo "$ac_t""yes" 1>&6
12608 echo "$ac_t""no" 1>&6
12610 test "$with_database_gdbm" = "yes" -o \
12611 "$with_database_dbm" = "yes" && \
12612 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12613 with_database_gdbm=no with_database_dbm=no
12618 if test "$with_database_gdbm" != "no"; then
12620 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
12621 echo "configure:12622: checking for dbm_open in -lgdbm" >&5
12622 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12624 xe_check_libs=" -lgdbm "
12625 cat > conftest.$ac_ext <<EOF
12626 #line 12627 "configure"
12627 #include "confdefs.h"
12628 /* Override any gcc2 internal prototype to avoid an error. */
12629 /* We use char because int might match the return type of a gcc2
12630 builtin and then its argument prototype would still apply. */
12637 if { (eval echo configure:12638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12639 eval "ac_cv_lib_$ac_lib_var=yes"
12641 echo "configure: failed program was:" >&5
12642 cat conftest.$ac_ext >&5
12644 eval "ac_cv_lib_$ac_lib_var=no"
12649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12650 echo "$ac_t""yes" 1>&6
12651 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
12653 echo "$ac_t""no" 1>&6
12654 if test "$with_database_gdbm" = "yes"; then
12655 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
12657 with_database_gdbm=no
12663 if test "$with_database_dbm" != "no"; then
12664 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12665 echo "configure:12666: checking for dbm_open" >&5
12667 cat > conftest.$ac_ext <<EOF
12668 #line 12669 "configure"
12669 #include "confdefs.h"
12670 /* System header to define __stub macros and hopefully few prototypes,
12671 which can conflict with char dbm_open(); below. */
12672 #include <assert.h>
12673 /* Override any gcc2 internal prototype to avoid an error. */
12674 /* We use char because int might match the return type of a gcc2
12675 builtin and then its argument prototype would still apply. */
12680 /* The GNU C library defines this for functions which it implements
12681 to always fail with ENOSYS. Some functions are actually named
12682 something starting with __ and the normal name is an alias. */
12683 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12691 if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12693 eval "ac_cv_func_dbm_open=yes"
12695 echo "configure: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12698 eval "ac_cv_func_dbm_open=no"
12702 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12703 echo "$ac_t""yes" 1>&6
12704 with_database_dbm=yes libdbm=
12706 echo "$ac_t""no" 1>&6
12709 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12710 echo "configure:12711: checking for dbm_open in -ldbm" >&5
12711 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12713 xe_check_libs=" -ldbm "
12714 cat > conftest.$ac_ext <<EOF
12715 #line 12716 "configure"
12716 #include "confdefs.h"
12717 /* Override any gcc2 internal prototype to avoid an error. */
12718 /* We use char because int might match the return type of a gcc2
12719 builtin and then its argument prototype would still apply. */
12726 if { (eval echo configure:12727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12728 eval "ac_cv_lib_$ac_lib_var=yes"
12730 echo "configure: failed program was:" >&5
12731 cat conftest.$ac_ext >&5
12733 eval "ac_cv_lib_$ac_lib_var=no"
12738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12739 echo "$ac_t""yes" 1>&6
12740 with_database_dbm=yes libdbm=-ldbm
12742 echo "$ac_t""no" 1>&6
12743 test "$with_database_dbm" = "yes" && \
12744 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12745 with_database_dbm=no
12753 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
12754 test "$with_database_gdbm" = "yes" -o \
12755 "$with_database_dbm" = "yes" && \
12756 { test "$extra_verbose" = "yes" && cat << \EOF
12759 cat >> confdefs.h <<\EOF
12765 if test "$with_database_berkdb" != "no"; then
12766 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12767 echo "configure:12768: checking for Berkeley db.h" >&5
12768 for header in "db/db.h" "db.h"; do
12769 cat > conftest.$ac_ext <<EOF
12770 #line 12771 "configure"
12771 #include "confdefs.h"
12773 #include <stdlib.h>
12774 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
12775 #ifdef HAVE_INTTYPES_H
12776 #define __BIT_TYPES_DEFINED__
12777 #include <inttypes.h>
12778 typedef uint8_t u_int8_t;
12779 typedef uint16_t u_int16_t;
12780 typedef uint32_t u_int32_t;
12781 #ifdef WE_DONT_NEED_QUADS
12782 typedef uint64_t u_int64_t;
12792 if { (eval echo configure:12793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12794 db_h_file="$header"; break
12796 echo "configure: failed program was:" >&5
12797 cat conftest.$ac_ext >&5
12801 if test -z "$db_h_file"
12802 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
12803 else echo "$ac_t""$db_h_file" 1>&6
12806 if test "$with_database_berkdb" != "no"; then
12807 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12808 echo "configure:12809: checking for Berkeley DB version" >&5
12809 cat > conftest.$ac_ext <<EOF
12810 #line 12811 "configure"
12811 #include "confdefs.h"
12812 #include <$db_h_file>
12813 #if DB_VERSION_MAJOR > 1
12818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12819 egrep "yes" >/dev/null 2>&1; then
12821 echo "$ac_t""2" 1>&6; dbfunc=db_open
12824 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12828 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12829 echo "configure:12830: checking for $dbfunc" >&5
12831 cat > conftest.$ac_ext <<EOF
12832 #line 12833 "configure"
12833 #include "confdefs.h"
12834 /* System header to define __stub macros and hopefully few prototypes,
12835 which can conflict with char $dbfunc(); below. */
12836 #include <assert.h>
12837 /* Override any gcc2 internal prototype to avoid an error. */
12838 /* We use char because int might match the return type of a gcc2
12839 builtin and then its argument prototype would still apply. */
12844 /* The GNU C library defines this for functions which it implements
12845 to always fail with ENOSYS. Some functions are actually named
12846 something starting with __ and the normal name is an alias. */
12847 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
12855 if { (eval echo configure:12856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12857 eval "ac_cv_func_$dbfunc=yes"
12859 echo "configure: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12862 eval "ac_cv_func_$dbfunc=no"
12866 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
12867 echo "$ac_t""yes" 1>&6
12868 with_database_berkdb=yes need_libdb=no
12870 echo "$ac_t""no" 1>&6
12873 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12874 echo "configure:12875: checking for $dbfunc in -ldb" >&5
12875 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12877 xe_check_libs=" -ldb "
12878 cat > conftest.$ac_ext <<EOF
12879 #line 12880 "configure"
12880 #include "confdefs.h"
12881 /* Override any gcc2 internal prototype to avoid an error. */
12882 /* We use char because int might match the return type of a gcc2
12883 builtin and then its argument prototype would still apply. */
12890 if { (eval echo configure:12891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12892 eval "ac_cv_lib_$ac_lib_var=yes"
12894 echo "configure: failed program was:" >&5
12895 cat conftest.$ac_ext >&5
12897 eval "ac_cv_lib_$ac_lib_var=no"
12902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12903 echo "$ac_t""yes" 1>&6
12904 with_database_berkdb=yes need_libdb=yes
12906 echo "$ac_t""no" 1>&6
12914 if test "$with_database_berkdb" = "yes"; then
12915 { test "$extra_verbose" = "yes" && cat << EOF
12916 Defining DB_H_FILE = "$db_h_file"
12918 cat >> confdefs.h <<EOF
12919 #define DB_H_FILE "$db_h_file"
12923 { test "$extra_verbose" = "yes" && cat << \EOF
12924 Defining HAVE_BERKELEY_DB
12926 cat >> confdefs.h <<\EOF
12927 #define HAVE_BERKELEY_DB 1
12931 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
12932 else with_database_berkdb=no
12936 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12937 != "no no no"; then
12938 { test "$extra_verbose" = "yes" && cat << \EOF
12939 Defining HAVE_DATABASE
12941 cat >> confdefs.h <<\EOF
12942 #define HAVE_DATABASE 1
12946 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
12947 echo " xemacs will be linked with \"database.o\""
12951 if test "$with_socks" = "yes"; then
12953 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12954 echo "configure:12955: checking for SOCKSinit in -lsocks" >&5
12955 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12957 xe_check_libs=" -lsocks "
12958 cat > conftest.$ac_ext <<EOF
12959 #line 12960 "configure"
12960 #include "confdefs.h"
12961 /* Override any gcc2 internal prototype to avoid an error. */
12962 /* We use char because int might match the return type of a gcc2
12963 builtin and then its argument prototype would still apply. */
12970 if { (eval echo configure:12971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12972 eval "ac_cv_lib_$ac_lib_var=yes"
12974 echo "configure: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12977 eval "ac_cv_lib_$ac_lib_var=no"
12982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12983 echo "$ac_t""yes" 1>&6
12984 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12985 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12986 { test "$extra_verbose" = "yes" && cat << EOF
12987 Defining $ac_tr_lib
12989 cat >> confdefs.h <<EOF
12990 #define $ac_tr_lib 1
12994 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
12997 echo "$ac_t""no" 1>&6
13001 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
13002 Defining HAVE_SOCKS
13004 cat >> confdefs.h <<\EOF
13005 #define HAVE_SOCKS 1
13011 if test "$usage_tracking" = "yes"; then
13012 { test "$extra_verbose" = "yes" && cat << \EOF
13013 Defining USAGE_TRACKING
13015 cat >> confdefs.h <<\EOF
13016 #define USAGE_TRACKING 1
13020 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13023 if test "$with_modules" != "no"; then
13024 echo "checking for module support" 1>&6
13025 echo "configure:13026: checking for module support" >&5
13027 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13028 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13029 echo "configure:13030: checking for dlfcn.h" >&5
13031 cat > conftest.$ac_ext <<EOF
13032 #line 13033 "configure"
13033 #include "confdefs.h"
13036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13037 { (eval echo configure:13038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13039 if test -z "$ac_err"; then
13041 eval "ac_cv_header_$ac_safe=yes"
13044 echo "configure: failed program was:" >&5
13045 cat conftest.$ac_ext >&5
13047 eval "ac_cv_header_$ac_safe=no"
13050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13051 echo "$ac_t""yes" 1>&6
13054 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13055 echo "configure:13056: checking for dlopen in -ldl" >&5
13056 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
13058 xe_check_libs=" -ldl "
13059 cat > conftest.$ac_ext <<EOF
13060 #line 13061 "configure"
13061 #include "confdefs.h"
13062 /* Override any gcc2 internal prototype to avoid an error. */
13063 /* We use char because int might match the return type of a gcc2
13064 builtin and then its argument prototype would still apply. */
13071 if { (eval echo configure:13072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13073 eval "ac_cv_lib_$ac_lib_var=yes"
13075 echo "configure: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13078 eval "ac_cv_lib_$ac_lib_var=no"
13083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13084 echo "$ac_t""yes" 1>&6
13085 have_dl=yes libdl=dl
13087 echo "$ac_t""no" 1>&6
13089 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13090 echo "configure:13091: checking for dlopen in -lc" >&5
13091 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
13093 xe_check_libs=" -lc "
13094 cat > conftest.$ac_ext <<EOF
13095 #line 13096 "configure"
13096 #include "confdefs.h"
13097 /* Override any gcc2 internal prototype to avoid an error. */
13098 /* We use char because int might match the return type of a gcc2
13099 builtin and then its argument prototype would still apply. */
13106 if { (eval echo configure:13107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13108 eval "ac_cv_lib_$ac_lib_var=yes"
13110 echo "configure: failed program was:" >&5
13111 cat conftest.$ac_ext >&5
13113 eval "ac_cv_lib_$ac_lib_var=no"
13118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13119 echo "$ac_t""yes" 1>&6
13122 echo "$ac_t""no" 1>&6
13130 echo "$ac_t""no" 1>&6
13133 if test -n "$have_dl"; then
13134 { test "$extra_verbose" = "yes" && cat << \EOF
13135 Defining HAVE_DLOPEN
13137 cat >> confdefs.h <<\EOF
13138 #define HAVE_DLOPEN 1
13144 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13145 echo "configure:13146: checking for shl_load in -ldld" >&5
13146 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13148 xe_check_libs=" -ldld "
13149 cat > conftest.$ac_ext <<EOF
13150 #line 13151 "configure"
13151 #include "confdefs.h"
13152 /* Override any gcc2 internal prototype to avoid an error. */
13153 /* We use char because int might match the return type of a gcc2
13154 builtin and then its argument prototype would still apply. */
13161 if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13163 eval "ac_cv_lib_$ac_lib_var=yes"
13165 echo "configure: failed program was:" >&5
13166 cat conftest.$ac_ext >&5
13168 eval "ac_cv_lib_$ac_lib_var=no"
13173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13174 echo "$ac_t""yes" 1>&6
13175 libdl=dld have_dl=yes;
13176 { test "$extra_verbose" = "yes" && cat << \EOF
13177 Defining HAVE_SHL_LOAD
13179 cat >> confdefs.h <<\EOF
13180 #define HAVE_SHL_LOAD 1
13185 echo "$ac_t""no" 1>&6
13187 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13188 echo "configure:13189: checking for dld_init in -ldld" >&5
13189 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13191 xe_check_libs=" -ldld "
13192 cat > conftest.$ac_ext <<EOF
13193 #line 13194 "configure"
13194 #include "confdefs.h"
13195 /* Override any gcc2 internal prototype to avoid an error. */
13196 /* We use char because int might match the return type of a gcc2
13197 builtin and then its argument prototype would still apply. */
13204 if { (eval echo configure:13205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13206 eval "ac_cv_lib_$ac_lib_var=yes"
13208 echo "configure: failed program was:" >&5
13209 cat conftest.$ac_ext >&5
13211 eval "ac_cv_lib_$ac_lib_var=no"
13216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13217 echo "$ac_t""yes" 1>&6
13218 libdl=dld have_dl=yes;
13219 { test "$extra_verbose" = "yes" && cat << \EOF
13220 Defining HAVE_DLD_INIT
13222 cat >> confdefs.h <<\EOF
13223 #define HAVE_DLD_INIT 1
13228 echo "$ac_t""no" 1>&6
13237 if test -n "$have_dl"; then
13244 ld_dynamic_link_flags=
13246 xealias=$internal_configuration
13248 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13249 echo "configure:13250: checking how to build dynamic libraries for ${xehost}" >&5
13250 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13253 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13256 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13257 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13258 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13260 case "$xehost_os" in
13262 # AIX sometimes has problems with the GCC collect2 program. For some
13263 # reason, if we set the COLLECT_NAMES environment variable, the problems
13264 # vanish in a puff of smoke.
13265 if test "${COLLECT_NAMES+set}" != set; then
13267 export COLLECT_NAMES
13272 # Now see if the compiler is really GCC.
13273 if test "$GCC" = "yes"; then
13276 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13277 echo "configure:13278: checking checking whether we are using GNU C" >&5
13278 cat > conftest.$ac_ext <<EOF
13279 #line 13280 "configure"
13280 #include "confdefs.h"
13287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13288 egrep "yes" >/dev/null 2>&1; then
13297 echo "$ac_t""${XEGCC}" 1>&6
13300 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13301 echo "configure:13302: checking how to produce PIC code" >&5
13304 can_build_shared=yes
13305 if test "$XEGCC" = yes; then
13308 case "$xehost_os" in
13309 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13310 # PIC is the default for these OSes.
13313 aix3* | aix4* | os2*)
13314 # We can build DLLs from non-PIC.
13317 # FIXME: we need at least 68020 code to build shared libraries, but
13318 # adding the `-m68020' flag to GCC prevents building anything better,
13320 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13327 # PORTME Check for PIC flags for the system compiler.
13328 case "$xehost_os" in
13329 hpux9* | hpux1[0-9]*)
13330 # Is there a better link_static_flag that works with the bundled CC?
13337 # PIC (with -KPIC) is the default.
13341 # We can build DLLs from non-PIC.
13345 # All OSF/1 code is PIC.
13350 dll_cflags='-belf -Kpic'
13384 can_build_shared=no
13389 if test -n "$dll_cflags"; then
13390 echo "$ac_t""${dll_cflags}" 1>&6
13392 # Check to make sure the dll_cflags actually works.
13393 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13394 echo "configure:13395: checking if PIC flag ${dll_cflags} really works" >&5
13395 save_CFLAGS="$CFLAGS"
13396 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13397 cat > conftest.$ac_ext <<EOF
13398 #line 13399 "configure"
13399 #include "confdefs.h"
13405 if { (eval echo configure:13406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13408 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13409 # reports no error. So, we need to grep stderr for (Bundled).
13410 if grep '(Bundled)' config.log >/dev/null; then
13411 echo "$ac_t""no" 1>&6
13412 can_build_shared=no
13415 echo "$ac_t""yes" 1>&6
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13421 echo "$ac_t""no" 1>&6
13422 can_build_shared=no
13426 CFLAGS="$save_CFLAGS"
13428 echo "$ac_t""none" 1>&6
13431 if test "$can_build_shared" = "yes"; then
13435 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13436 echo "configure:13437: checking if C compiler can produce shared libraries" >&5
13437 if test "$XEGCC" = yes; then
13440 else # Not using GCC
13441 case "$xehost_os" in
13443 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13444 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
13447 freebsd2* | netbsd* | openbsd*)
13449 xcldf="${wl}-Bshareable"
13458 xcldf="${wl}-b ${wl}+s"
13461 irix5* | irix6* | osf3* | osf4*)
13462 xcldf="${wl}-shared"
13466 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
13472 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
13473 xldf="-assert pure-text -Bstatic"
13476 fi # End if if we are using gcc
13478 if test -n "$xcldf"; then
13479 save_LDFLAGS=$LDFLAGS
13481 save_xe_libs=$xe_libs
13482 LDFLAGS="$xcldf $LDFLAGS"
13485 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13486 cat > conftest.$ac_ext <<EOF
13487 #line 13488 "configure"
13488 #include "confdefs.h"
13494 if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13504 LDFLAGS=$save_LDFLAGS
13506 xe_libs=$save_xe_libs
13507 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13511 echo "$ac_t""${cc_produces_so}" 1>&6
13514 if test -z "$LTLD"; then
13516 if test "$XEGCC" = yes; then
13517 # Check if gcc -print-prog-name=ld gives a path.
13518 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13519 echo "configure:13520: checking for ld used by GCC" >&5
13520 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13522 # Accept absolute paths.
13524 if test -z "$LTLD"; then
13526 *gcc-lib*) LTLD="$CC"
13534 # If it fails, then pretend we aren't using GCC.
13538 # If it is relative, then search for the first ld in PATH.
13539 with_gnu_ld=unknown
13543 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
13544 echo "configure:13545: checking for GNU ld" >&5
13547 if test -z "$LTLD"; then
13548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13549 for ac_dir in $PATH; do
13550 test -z "$ac_dir" && ac_dir=.
13551 if test -f "$ac_dir/$ac_prog"; then
13552 LTLD="$ac_dir/$ac_prog"
13553 # Check to see if the program is GNU ld. I'd rather use --version,
13554 # but apparently some GNU ld's only accept -v.
13555 # Break only if it was the GNU/non-GNU ld that we prefer.
13556 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13566 if test -n "$LTLD"; then
13567 echo "$ac_t""${LTLD}" 1>&6
13569 echo "$ac_t""no" 1>&6
13572 if test -z "$LTLD" -a "$cc_produces_so" = no; then
13573 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
13578 ld_dynamic_link_flags=
13580 # Check to see if it really is or isn't GNU ld.
13581 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
13582 echo "configure:13583: checking if the linker is GNU ld" >&5
13583 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13584 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13589 echo "$ac_t""${xe_gnu_ld}" 1>&6
13591 case "$xehost_os" in
13592 amigaos* | sunos4*)
13593 # On these operating systems, we should treat GNU ld like the system ld.
13594 gnu_ld_acts_native=yes
13597 gnu_ld_acts_native=no
13601 if test "$cc_produces_so" = "yes"; then
13604 can_build_shared=yes
13607 # OK - only NOW do we futz about with ld.
13608 # See if the linker supports building shared libraries.
13609 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
13610 echo "configure:13611: checking whether the linker supports shared libraries" >&5
13612 dll_ldflags=$LDFLAGS
13614 can_build_shared=yes
13615 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
13616 # See if GNU ld supports shared libraries.
13617 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13619 dll_ldflags="-shared"
13625 # PORTME fill in a description of your system's linker (not GNU ld)
13626 case "$xehost_os" in
13636 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13637 # support. Future versions do this automatically, but an explicit c++rt0.o
13638 # doesn't break anything, and helps significantly (at the cost of a little
13643 dll_post="/usr/lib/c++rt0.o"
13646 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
13649 dll_ldflags="-Bshareable"
13652 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
13654 dll_ldflags="-shared"
13668 # Tested with NetBSD 1.2 ld
13683 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
13684 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
13687 *gcc*) dll_ldflags="-shared"
13690 *) dll_ldflags="-G"
13696 if test "$XEGCC" = yes; then
13716 can_build_shared=no
13720 echo "$ac_t""${ld_shlibs}" 1>&6
13721 if test "$ld_shlibs" = "no"; then
13722 can_build_shared=no
13724 fi # End of if cc_produces_so = no
13727 if test "$xe_gnu_ld" = yes; then
13728 if test "$ld_shlibs" = yes; then
13729 ld_dynamic_link_flags="${wl}-export-dynamic"
13733 if test -z "$ld_dynamic_link_flags"; then
13734 case "$xehost_os" in
13736 ld_dynamic_link_flags=
13740 ld_dynamic_link_flags=
13744 ld_dynamic_link_flags=
13748 ld_dynamic_link_flags=
13752 ld_dynamic_link_flags=
13756 ld_dynamic_link_flags="${wl}-E"
13760 ld_dynamic_link_flags=
13764 ld_dynamic_link_flags=
13768 ld_dynamic_link_flags=
13772 ld_dynamic_link_flags=
13775 solaris2* | solaris7*)
13776 ld_dynamic_link_flags=
13779 sco3.2v5* | unixware* | sysv5* | sysv4*)
13780 ld_dynamic_link_flags="${wl}-Bexport"
13784 ld_dynamic_link_flags=
13788 ld_dynamic_link_flags=
13792 ld_dynamic_link_flags=
13796 fi # End of if -z ld_dynamic_link_flags
13797 fi # End of if test "$can_build_shared" = "yes"
13808 if test "$can_build_shared" = "yes"; then
13809 { test "$extra_verbose" = "yes" && cat << \EOF
13810 Defining HAVE_SHLIB
13812 cat >> confdefs.h <<\EOF
13813 #define HAVE_SHLIB 1
13817 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
13818 echo " xemacs will be linked with \"sysdll.o emodules.o\""
13820 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13821 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13822 for ac_func in dlerror _dlerror
13824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13825 echo "configure:13826: checking for $ac_func" >&5
13827 cat > conftest.$ac_ext <<EOF
13828 #line 13829 "configure"
13829 #include "confdefs.h"
13830 /* System header to define __stub macros and hopefully few prototypes,
13831 which can conflict with char $ac_func(); below. */
13832 #include <assert.h>
13833 /* Override any gcc2 internal prototype to avoid an error. */
13834 /* We use char because int might match the return type of a gcc2
13835 builtin and then its argument prototype would still apply. */
13840 /* The GNU C library defines this for functions which it implements
13841 to always fail with ENOSYS. Some functions are actually named
13842 something starting with __ and the normal name is an alias. */
13843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13851 if { (eval echo configure:13852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13853 eval "ac_cv_func_$ac_func=yes"
13855 echo "configure: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13858 eval "ac_cv_func_$ac_func=no"
13862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13863 echo "$ac_t""yes" 1>&6
13864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13865 { test "$extra_verbose" = "yes" && cat << EOF
13866 Defining $ac_tr_func
13868 cat >> confdefs.h <<EOF
13869 #define $ac_tr_func 1
13874 echo "$ac_t""no" 1>&6
13880 if test "$with_modules" = "yes"; then
13881 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
13883 echo "configure: warning: "Module support cannot be provided."" 1>&2
13889 cat > conftest.$ac_ext <<EOF
13890 #line 13891 "configure"
13891 #include "confdefs.h"
13892 int main(int c,char *v[]){return 0;}
13894 if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13899 echo "configure: failed program was:" >&5
13900 cat conftest.$ac_ext >&5
13904 echo "*** PANIC *** The C compiler can no longer build working executables."
13905 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
13906 echo "*** PANIC *** The most likely reason for this problem is that configure"
13907 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
13908 echo "*** PANIC *** found at run time."
13909 echo "*** PANIC ***"
13910 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
13911 echo "*** PANIC *** On other systems, try telling configure where to find the"
13912 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
13913 echo "*** PANIC ***"
13914 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
13915 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
13916 echo "*** PANIC *** on your system. Don't do that."
13921 if test "$win32_processes" = "yes"; then
13922 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
13923 echo " xemacs will be linked with \"process-nt.o\""
13926 { test "$extra_verbose" = "yes" && cat << \EOF
13927 Defining HAVE_UNIX_PROCESSES
13929 cat >> confdefs.h <<\EOF
13930 #define HAVE_UNIX_PROCESSES 1
13934 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
13935 echo " xemacs will be linked with \"process-unix.o\""
13942 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13947 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13952 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
13953 c_switch_general="$T"
13957 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13958 c_switch_window_system="$T"
13962 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13967 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
13968 ld_switch_general="$T"
13972 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13973 ld_switch_window_system="$T"
13977 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13982 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13983 ld_libs_general="$T"
13987 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
13988 ld_libs_window_system="$T"
13992 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13997 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
13998 internal_makefile_list="Makefile.in"
13999 SUBDIR_MAKEFILES=''
14000 test -d lock || mkdir lock
14001 for dir in $MAKE_SUBDIR; do
14002 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
14003 test -d "$d" || mkdir "$d"; cd "$d"
14005 * ) test -d "$dir" || mkdir "$dir" ;;
14009 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14010 SUBDIR_MAKEFILES="$T"
14014 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14015 internal_makefile_list="$T"
14022 for dir in src/s src/m; do
14023 if test ! -d "$dir" ; then
14024 echo Making symbolic link to "$srcdir/$dir"
14025 ${LN_S} "$srcdir/$dir" "$dir"
14029 if test "$extra_verbose" = "yes"; then
14031 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
14036 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
14037 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
14038 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
14041 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
14042 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
14043 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
14046 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
14047 test "$extra_verbose" = "yes" && echo "creating TAGS"
14049 $srcdir/TAGS,include" > "TAGS"
14052 if test "$__SUNPRO_C" = "yes"; then
14053 test "$extra_verbose" = "yes" && echo "creating .sbinit"
14054 ( echo "# For use with Sun WorkShop's Source browser."
14055 echo "# See sbquery(1) and sbinit(4) for more information"
14056 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14083 *\$* ) eval "PREFIX=$PREFIX" ;;
14091 EXEC_PREFIX=$exec_prefix
14093 case "$EXEC_PREFIX" in
14094 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
14105 *\$* ) eval "INFODIR=$INFODIR" ;;
14115 case "$INFOPATH" in
14116 *\$* ) eval "INFOPATH=$INFOPATH" ;;
14124 PACKAGE_PATH=$package_path
14126 case "$PACKAGE_PATH" in
14127 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
14138 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14146 MODULEDIR=$moduledir
14148 case "$MODULEDIR" in
14149 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14157 SITELISPDIR=$sitelispdir
14159 case "$SITELISPDIR" in
14160 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14168 SITEMODULEDIR=$sitemoduledir
14170 case "$SITEMODULEDIR" in
14171 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14182 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14193 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
14204 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14212 ARCHLIBDIR=$archlibdir
14214 case "$ARCHLIBDIR" in
14215 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14239 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14247 : ${XEMACS_CC:=$CC}
14250 if test "$with_prefix" = "yes"; then
14251 { test "$extra_verbose" = "yes" && cat << \EOF
14252 Defining PREFIX_USER_DEFINED
14254 cat >> confdefs.h <<\EOF
14255 #define PREFIX_USER_DEFINED 1
14261 if test "$with_site_lisp" = "no"; then
14262 { test "$extra_verbose" = "yes" && cat << \EOF
14263 Defining INHIBIT_SITE_LISP
14265 cat >> confdefs.h <<\EOF
14266 #define INHIBIT_SITE_LISP 1
14271 if test "$with_site_modules" = "no"; then
14272 { test "$extra_verbose" = "yes" && cat << \EOF
14273 Defining INHIBIT_SITE_MODULES
14275 cat >> confdefs.h <<\EOF
14276 #define INHIBIT_SITE_MODULES 1
14284 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14285 ac_configure_args="$T"
14287 { test "$extra_verbose" = "yes" && cat << EOF
14288 Defining EMACS_CONFIGURATION = "$configuration"
14290 cat >> confdefs.h <<EOF
14291 #define EMACS_CONFIGURATION "$configuration"
14295 { test "$extra_verbose" = "yes" && cat << EOF
14296 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14298 cat >> confdefs.h <<EOF
14299 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14303 { test "$extra_verbose" = "yes" && cat << EOF
14304 Defining config_machfile = "$machfile"
14306 cat >> confdefs.h <<EOF
14307 #define config_machfile "$machfile"
14311 { test "$extra_verbose" = "yes" && cat << EOF
14312 Defining config_opsysfile = "$opsysfile"
14314 cat >> confdefs.h <<EOF
14315 #define config_opsysfile "$opsysfile"
14322 { test "$extra_verbose" = "yes" && cat << EOF
14323 Defining LD_SWITCH_X_SITE = $null_string
14325 cat >> confdefs.h <<EOF
14326 #define LD_SWITCH_X_SITE $null_string
14330 { test "$extra_verbose" = "yes" && cat << EOF
14331 Defining LD_SWITCH_X_SITE_AUX = $null_string
14333 cat >> confdefs.h <<EOF
14334 #define LD_SWITCH_X_SITE_AUX $null_string
14338 { test "$extra_verbose" = "yes" && cat << EOF
14339 Defining C_SWITCH_X_SITE = $null_string
14341 cat >> confdefs.h <<EOF
14342 #define C_SWITCH_X_SITE $null_string
14346 { test "$extra_verbose" = "yes" && cat << EOF
14347 Defining LD_SWITCH_SITE = $null_string
14349 cat >> confdefs.h <<EOF
14350 #define LD_SWITCH_SITE $null_string
14354 { test "$extra_verbose" = "yes" && cat << EOF
14355 Defining C_SWITCH_SITE = $null_string
14357 cat >> confdefs.h <<EOF
14358 #define C_SWITCH_SITE $null_string
14364 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14365 Defining GNU_MALLOC
14367 cat >> confdefs.h <<\EOF
14368 #define GNU_MALLOC 1
14372 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14373 Defining USE_SYSTEM_MALLOC
14375 cat >> confdefs.h <<\EOF
14376 #define USE_SYSTEM_MALLOC 1
14380 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14381 Defining USE_DEBUG_MALLOC
14383 cat >> confdefs.h <<\EOF
14384 #define USE_DEBUG_MALLOC 1
14388 { test "$extra_verbose" = "yes" && cat << \EOF
14389 Defining USE_SYSTEM_MALLOC
14391 cat >> confdefs.h <<\EOF
14392 #define USE_SYSTEM_MALLOC 1
14397 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14400 cat >> confdefs.h <<\EOF
14405 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14408 cat >> confdefs.h <<\EOF
14413 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14414 Defining EXTERNAL_WIDGET
14416 cat >> confdefs.h <<\EOF
14417 #define EXTERNAL_WIDGET 1
14421 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14422 Defining QUICK_BUILD
14424 cat >> confdefs.h <<\EOF
14425 #define QUICK_BUILD 1
14429 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14432 cat >> confdefs.h <<\EOF
14437 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14440 cat >> confdefs.h <<\EOF
14445 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14446 Defining MAIL_USE_POP
14448 cat >> confdefs.h <<\EOF
14449 #define MAIL_USE_POP 1
14453 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14456 cat >> confdefs.h <<\EOF
14461 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14464 cat >> confdefs.h <<\EOF
14469 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14470 Defining USE_UNION_TYPE
14472 cat >> confdefs.h <<\EOF
14473 #define USE_UNION_TYPE 1
14477 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14480 cat >> confdefs.h <<\EOF
14488 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
14490 echo "uname -a: `uname -a`"
14493 echo "$0 $quoted_arguments"
14496 if test ! -z ${emacs_beta_version} ; then
14497 if test -z "${emacs_is_beta}" ; then
14498 xemacs_betaname=".${emacs_beta_version}"
14500 xemacs_betaname="-b${emacs_beta_version}"
14509 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
14512 Compilation / Installation:"
14513 echo " Source code location: $srcdir"
14514 echo " Installation prefix: $prefix"
14515 if test -n "$site_includes"; then
14516 echo " Additional header files: $site_includes"
14518 if test -n "$site_libraries"; then
14519 echo " Additional libraries: $site_libraries"
14521 if test -n "$site_prefixes"; then
14522 echo " Additional prefixes: $site_prefixes"
14524 if test -n "$runpath"; then
14525 echo " Runtime library search path: $runpath"
14527 echo " Operating system description file: \`$opsysfile'"
14528 echo " Machine description file: \`$machfile'"
14529 echo " Compiler: $CC $CFLAGS"
14530 echo " Relocating allocator for buffers: $rel_alloc"
14531 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
14535 if test "$with_msw" = "yes"; then
14536 echo " Compiling in support for the Microsoft window system."
14538 if test "$with_x11" = "yes"; then
14539 echo " Compiling in support for the X window system:"
14540 echo " - X Windows headers location: $x_includes"
14541 echo " - X Windows libraries location: $x_libraries"
14542 if test "$with_xauth" != yes; then
14543 echo " - Xau (X authority) not available."
14545 if test "$with_xmu" != yes; then
14546 echo " - Xmu library not available; substituting equivalent routines."
14548 if test "$with_wmcommand" != no; then
14549 echo " - Handling WM_COMMAND properly."
14552 if test "$have_xaw" = "yes"; then
14553 echo " Compiling in support for the Athena widget set:"
14554 echo " - Athena headers location: $athena_h_path"
14555 echo " - Athena library to link: $athena_lib"
14557 case "$with_menubars" in
14558 lucid ) echo " Using Lucid menubars." ;;
14559 motif ) echo " Using Motif menubars."
14560 echo " *WARNING* The Motif menubar implementation is currently buggy."
14561 echo " We recommend using the Lucid menubar instead."
14562 echo " Re-run configure with --with-menubars='lucid'." ;;
14563 msw ) echo " Using MS-Windows menubars." ;;
14565 case "$with_scrollbars" in
14566 lucid ) echo " Using Lucid scrollbars." ;;
14567 motif ) echo " Using Motif scrollbars." ;;
14568 athena ) echo " Using Athena scrollbars." ;;
14569 msw ) echo " Using MS-Windows scrollbars." ;;
14571 case "$with_dialogs" in
14572 motif ) echo " Using Motif dialog boxes."
14573 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
14574 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
14575 echo " We recommend using the Athena dialog boxes instead."
14576 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
14577 echo " Read the PROBLEMS file for more information."
14579 athena ) echo " Using Athena dialog boxes." ;;
14580 msw ) echo " Using MS-Windows dialog boxes." ;;
14582 case "$with_widgets" in
14583 motif ) echo " Using Motif native widgets." ;;
14584 athena ) echo " Using Athena native widgets." ;;
14585 msw ) echo " Using MS-Windows native widgets." ;;
14587 if test "$with_dragndrop" = yes; then
14588 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
14589 echo " - Drag'n'Drop prototype: $dragndrop_proto."
14594 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
14595 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
14599 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
14600 if test "$with_xpm" = yes; then
14601 echo " Compiling in support for XPM images."
14602 elif test "$with_x11" = yes; then
14603 echo " WARNING: -----------------------------------------------------------"
14604 echo " WARNING: Compiling without XPM image support."
14605 if test "$xpm_problem" != ""; then
14606 echo " Reason: $xpm_problem"
14608 echo " WARNING: You should strongly consider installing XPM."
14609 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
14610 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14611 echo " WARNING: -----------------------------------------------------------"
14613 if test "$with_png" = yes; then
14614 echo " Compiling in support for PNG images."
14615 elif test "$window_system" != "none"; then
14616 echo " WARNING: -----------------------------------------------------------"
14617 echo " WARNING: Compiling without PNG image support."
14618 if test "$png_problem" != ""; then
14619 echo " Reason: $png_problem"
14621 echo " WARNING: You should strongly consider installing the PNG libraries."
14622 echo " WARNING: Otherwise certain images and glyphs may not display."
14623 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14624 echo " WARNING: -----------------------------------------------------------"
14626 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
14627 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
14628 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
14632 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
14633 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
14634 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
14635 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
14639 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
14640 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
14641 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
14642 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
14643 if test "$with_postgresql" = yes; then
14644 echo " Compiling in support for PostgreSQL."
14645 if test "$with_postgresqlv7" = yes; then
14646 echo " - Using PostgreSQL V7 bindings."
14648 if test -n "$postgres_h_path"; then
14649 echo " - PostgreSQL headers location: $postgres_h_path"
14654 Internationalization:"
14655 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
14656 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
14657 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
14658 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
14659 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
14660 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
14661 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
14662 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
14663 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
14664 if test "$with_wnn" = yes; then
14665 echo " Compiling in support for the WNN input method on Mule."
14666 test "$with_wnn6" = yes && echo " - Using WNN version 6."
14668 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
14672 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
14673 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
14674 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
14675 echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
14679 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
14680 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
14681 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
14682 test "$with_dnet" = yes && echo " Compiling in support for DNET."
14683 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
14684 test "$with_clash_detection" != "no" && \
14685 echo " Clash detection will use \"$lockdir\" for locking files."
14686 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
14687 test "$pdump" = yes && echo " Using the new portable dumper."
14688 test "$debug" = yes && echo " Compiling in support for extra debugging code."
14689 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
14690 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
14691 != "no no no no no no"; then
14692 echo " WARNING: ---------------------------------------------------------"
14693 echo " WARNING: Compiling in support for runtime error checking."
14694 echo " WARNING: XEmacs will run noticeably more slowly as a result."
14695 echo " WARNING: Error checking is on by default for XEmacs beta releases."
14696 echo " WARNING: ---------------------------------------------------------"
14699 ) | tee -a Installation
14703 # Remove any trailing slashes in these variables.
14704 test -n "$prefix" &&
14705 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14706 test -n "$exec_prefix" &&
14707 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14710 for file in $internal_makefile_list; do
14711 test "$file" = src/Makefile.in && \
14712 file="src/Makefile.in:src/Makefile.in.in:src/depend"
14713 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
14715 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
14716 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
14720 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14722 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14723 # Let make expand exec_prefix.
14724 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14726 # Any assignment to VPATH causes Sun make to only execute
14727 # the first set of double-colon rules, so remove it if not needed.
14728 # If there is a colon in the path, we need to keep it.
14729 if test "x$srcdir" = x.; then
14730 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14733 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14735 DEFS=-DHAVE_CONFIG_H
14737 # Without the "./", some shells look in PATH for config.status.
14738 : ${CONFIG_STATUS=./config.status}
14740 echo creating $CONFIG_STATUS
14741 rm -f $CONFIG_STATUS
14742 cat > $CONFIG_STATUS <<EOF
14744 # Generated automatically by configure.
14745 # Run this file to recreate the current configuration.
14746 # This directory was configured as follows,
14747 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14749 # $0 $ac_configure_args
14751 # Compiler output produced by configure, useful for debugging
14752 # configure, is in ./config.log if it exists.
14754 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14757 case "\$ac_option" in
14758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14759 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14760 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14761 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14762 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14764 -help | --help | --hel | --he | --h)
14765 echo "\$ac_cs_usage"; exit 0 ;;
14766 *) echo "\$ac_cs_usage"; exit 1 ;;
14770 ac_given_srcdir=$srcdir
14771 ac_given_INSTALL="$INSTALL"
14773 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14775 cat >> $CONFIG_STATUS <<EOF
14777 # Protect against being on the right side of a sed subst in config.status.
14778 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14779 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14783 s%@CFLAGS@%$CFLAGS%g
14784 s%@CPPFLAGS@%$CPPFLAGS%g
14785 s%@CXXFLAGS@%$CXXFLAGS%g
14786 s%@FFLAGS@%$FFLAGS%g
14788 s%@LDFLAGS@%$LDFLAGS%g
14790 s%@exec_prefix@%$exec_prefix%g
14791 s%@prefix@%$prefix%g
14792 s%@program_transform_name@%$program_transform_name%g
14793 s%@bindir@%$bindir%g
14794 s%@sbindir@%$sbindir%g
14795 s%@libexecdir@%$libexecdir%g
14796 s%@datadir@%$datadir%g
14797 s%@sysconfdir@%$sysconfdir%g
14798 s%@sharedstatedir@%$sharedstatedir%g
14799 s%@localstatedir@%$localstatedir%g
14800 s%@libdir@%$libdir%g
14801 s%@includedir@%$includedir%g
14802 s%@oldincludedir@%$oldincludedir%g
14803 s%@infodir@%$infodir%g
14804 s%@mandir@%$mandir%g
14806 s%@blddir@%$blddir%g
14809 s%@start_flags@%$start_flags%g
14810 s%@ld_switch_shared@%$ld_switch_shared%g
14811 s%@start_files@%$start_files%g
14813 s%@lib_gcc@%$lib_gcc%g
14814 s%@RANLIB@%$RANLIB%g
14815 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14816 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14817 s%@INSTALL_DATA@%$INSTALL_DATA%g
14819 s%@SET_MAKE@%$SET_MAKE%g
14820 s%@X_CFLAGS@%$X_CFLAGS%g
14821 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14822 s%@X_LIBS@%$X_LIBS%g
14823 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
14824 s%@install_pp@%$install_pp%g
14825 s%@libs_xauth@%$libs_xauth%g
14826 s%@dnd_objs@%$dnd_objs%g
14827 s%@lwlib_objs@%$lwlib_objs%g
14828 s%@ALLOCA@%$ALLOCA%g
14829 s%@have_esd_config@%$have_esd_config%g
14830 s%@dll_ld@%$dll_ld%g
14831 s%@dll_cflags@%$dll_cflags%g
14832 s%@dll_ldflags@%$dll_ldflags%g
14833 s%@dll_post@%$dll_post%g
14834 s%@dll_ldo@%$dll_ldo%g
14835 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
14836 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
14837 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
14838 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
14839 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
14840 s%@PROGNAME@%$PROGNAME%g
14841 s%@version@%$version%g
14842 s%@configuration@%$configuration%g
14843 s%@canonical@%$canonical%g
14844 s%@inststaticdir@%$inststaticdir%g
14845 s%@instvardir@%$instvardir%g
14846 s%@srcdir@%$srcdir%g
14847 s%@pkgdir@%$pkgdir%g
14848 s%@statedir@%$statedir%g
14849 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
14850 s%@PREFIX@%$PREFIX%g
14851 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
14852 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
14853 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
14854 s%@INFODIR@%$INFODIR%g
14855 s%@infopath@%$infopath%g
14856 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
14857 s%@INFOPATH@%$INFOPATH%g
14858 s%@package_path@%$package_path%g
14859 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
14860 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
14861 s%@lispdir@%$lispdir%g
14862 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
14863 s%@LISPDIR@%$LISPDIR%g
14864 s%@moduledir@%$moduledir%g
14865 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
14866 s%@MODULEDIR@%$MODULEDIR%g
14867 s%@sitelispdir@%$sitelispdir%g
14868 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
14869 s%@SITELISPDIR@%$SITELISPDIR%g
14870 s%@sitemoduledir@%$sitemoduledir%g
14871 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
14872 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
14873 s%@etcdir@%$etcdir%g
14874 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
14875 s%@ETCDIR@%$ETCDIR%g
14876 s%@lockdir@%$lockdir%g
14877 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
14878 s%@LOCKDIR@%$LOCKDIR%g
14879 s%@docdir@%$docdir%g
14880 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
14881 s%@DOCDIR@%$DOCDIR%g
14882 s%@archlibdir@%$archlibdir%g
14883 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
14884 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
14885 s%@bitmapdir@%$bitmapdir%g
14886 s%@extra_objs@%$extra_objs%g
14887 s%@machfile@%$machfile%g
14888 s%@opsysfile@%$opsysfile%g
14889 s%@c_switch_general@%$c_switch_general%g
14890 s%@c_switch_window_system@%$c_switch_window_system%g
14891 s%@c_switch_all@%$c_switch_all%g
14892 s%@ld_switch_general@%$ld_switch_general%g
14893 s%@ld_switch_window_system@%$ld_switch_window_system%g
14894 s%@ld_switch_all@%$ld_switch_all%g
14895 s%@ld_libs_general@%$ld_libs_general%g
14896 s%@ld_libs_window_system@%$ld_libs_window_system%g
14897 s%@ld_libs_all@%$ld_libs_all%g
14898 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
14899 s%@native_sound_lib@%$native_sound_lib%g
14900 s%@sound_cflags@%$sound_cflags%g
14901 s%@dynodump_arch@%$dynodump_arch%g
14902 s%@XEMACS_CC@%$XEMACS_CC%g
14903 s%@internal_makefile_list@%$internal_makefile_list%g
14908 cat >> $CONFIG_STATUS <<\EOF
14910 # Split the substitutions into bite-sized pieces for seds with
14911 # small command number limits, like on Digital OSF/1 and HP-UX.
14912 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14913 ac_file=1 # Number of current file.
14914 ac_beg=1 # First line for current file.
14915 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14918 while $ac_more_lines; do
14919 if test $ac_beg -gt 1; then
14920 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14922 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14924 if test ! -s conftest.s$ac_file; then
14925 ac_more_lines=false
14926 rm -f conftest.s$ac_file
14928 if test -z "$ac_sed_cmds"; then
14929 ac_sed_cmds="sed -f conftest.s$ac_file"
14931 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14933 ac_file=`expr $ac_file + 1`
14935 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14938 if test -z "$ac_sed_cmds"; then
14943 cat >> $CONFIG_STATUS <<EOF
14945 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
14947 cat >> $CONFIG_STATUS <<\EOF
14948 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14949 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14951 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14952 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14953 *) ac_file_in="${ac_file}.in" ;;
14956 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14958 # Remove last slash and all that follows it. Not all systems have dirname.
14959 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14960 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14961 # The file is in a subdirectory.
14962 test ! -d "$ac_dir" && mkdir "$ac_dir"
14963 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14964 # A "../" for each directory in $ac_dir_suffix.
14965 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14967 ac_dir_suffix= ac_dots=
14970 case "$ac_given_srcdir" in
14972 if test -z "$ac_dots"; then top_srcdir=.
14973 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14974 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14975 *) # Relative path.
14976 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14977 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14980 case "$ac_given_INSTALL" in
14981 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14982 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14985 echo creating "$ac_file"
14987 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14989 *Makefile*) ac_comsub="1i\\
14990 # $configure_input" ;;
14994 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14996 s%@configure_input@%$configure_input%g
14997 s%@srcdir@%$srcdir%g
14998 s%@top_srcdir@%$top_srcdir%g
14999 s%@INSTALL@%$INSTALL%g
15000 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15004 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15005 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15007 # ac_d sets the value in "#define NAME VALUE" lines.
15008 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15009 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15012 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15013 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15014 ac_uB='\([ ]\)%\1#\2define\3'
15017 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15018 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15019 ac_eB='$%\1#\2define\3'
15023 if test "${CONFIG_HEADERS+set}" != set; then
15025 cat >> $CONFIG_STATUS <<EOF
15026 CONFIG_HEADERS="src/config.h lwlib/config.h"
15028 cat >> $CONFIG_STATUS <<\EOF
15030 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15033 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15034 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15035 *) ac_file_in="${ac_file}.in" ;;
15038 echo creating $ac_file
15040 rm -f conftest.frag conftest.in conftest.out
15041 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15042 cat $ac_file_inputs > conftest.in
15046 # Transform confdefs.h into a sed script conftest.vals that substitutes
15047 # the proper values into config.h.in to produce config.h. And first:
15048 # Protect against being on the right side of a sed subst in config.status.
15049 # Protect against being in an unquoted here document in config.status.
15050 rm -f conftest.vals
15051 cat > conftest.hdr <<\EOF
15054 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15058 sed -n -f conftest.hdr confdefs.h > conftest.vals
15061 # This sed command replaces #undef with comments. This is necessary, for
15062 # example, in the case of _POSIX_SOURCE, which is predefined and required
15063 # on some systems where configure will not decide to define it.
15064 cat >> conftest.vals <<\EOF
15065 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15068 # Break up conftest.vals because some shells have a limit on
15069 # the size of here documents, and old seds have small limits too.
15071 rm -f conftest.tail
15074 ac_lines=`grep -c . conftest.vals`
15075 # grep -c gives empty output for an empty file on some AIX systems.
15076 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15077 # Write a limited-size here document to conftest.frag.
15078 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15079 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15081 sed -f conftest.frag conftest.in > conftest.out
15083 mv conftest.out conftest.in
15084 ' >> $CONFIG_STATUS
15085 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15086 rm -f conftest.vals
15087 mv conftest.tail conftest.vals
15089 rm -f conftest.vals
15091 cat >> $CONFIG_STATUS <<\EOF
15092 rm -f conftest.frag conftest.h
15093 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15094 cat conftest.in >> conftest.h
15096 if cmp -s $ac_file conftest.h 2>/dev/null; then
15097 echo "$ac_file is unchanged"
15100 # Remove last slash and all that follows it. Not all systems have dirname.
15101 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15102 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15103 # The file is in a subdirectory.
15104 test ! -d "$ac_dir" && mkdir "$ac_dir"
15107 mv conftest.h $ac_file
15112 cat >> $CONFIG_STATUS <<EOF
15114 top_srcdir="$srcdir"
15115 MAKE_SUBDIR="$MAKE_SUBDIR"
15118 cat >> $CONFIG_STATUS <<\EOF
15119 for dir in . $MAKE_SUBDIR; do
15124 sed -e '/^# Generated/d' \
15125 -e 's%/\*\*/#.*%%' \
15140 echo creating $dir/Makefile
15141 $CPP -I. -I${top_srcdir}/src junk.c \
15142 | sed -e 's/^\#.*//' \
15143 -e 's/^[ ][ ]*$//'\
15145 | sed -n -e '/^..*$/p' \
15151 chmod 444 Makefile.new
15152 mv -f Makefile.new Makefile
15154 echo creating $dir/GNUmakefile
15155 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
15156 | sed -e 's/^\#.*//' \
15157 -e 's/^[ ][ ]*$//'\
15159 | sed -n -e '/^..*$/p' \
15165 chmod 444 Makefile.new
15166 mv -f Makefile.new GNUmakefile
15172 sed < config.status >> lib-src/config.values \
15173 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15174 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15175 -e 's/^\([^ ]*\) $/\1 ""/' \
15181 chmod +x $CONFIG_STATUS
15182 rm -fr confdefs* $ac_clean_files
15183 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1