3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.12 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
97 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
99 # File descriptor usage:
102 # 2 errors and warnings
103 # 3 some systems may open it to /dev/tty
104 # 4 used on the Kubota Titan
105 # 6 checking for... messages and results
106 # 5 compiler messages saved in config.log
107 if test "$silent" = yes; then
115 This file contains any messages produced by compilers while
116 running configure, to aid debugging if configure makes a mistake.
119 # Strip out --no-create and --no-recursion so they do not pile up.
120 # Also quote any args containing shell metacharacters.
125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
126 | --no-cr | --no-c) ;;
127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
130 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
131 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
136 # Only set these to C if already set. These must not be set unconditionally
137 # because not all systems understand e.g. LANG=C (notably SCO).
138 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
139 # Non-C LC_CTYPE values break the ctype check.
140 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
141 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
142 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
143 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
146 rm -rf conftest* confdefs.h
147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
150 # A filename unique to this package, relative to the directory that
151 # configure is in, which we can look for to find out if srcdir is correct.
152 ac_unique_file=src/lisp.h
154 # Find the source files, if location was not specified.
155 if test -z "$srcdir"; then
156 ac_srcdir_defaulted=yes
157 # Try the directory containing this script, then its parent.
159 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
160 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
162 if test ! -r $srcdir/$ac_unique_file; then
166 ac_srcdir_defaulted=no
168 if test ! -r $srcdir/$ac_unique_file; then
169 if test "$ac_srcdir_defaulted" = yes; then
170 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
172 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
175 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
177 # Prefer explicitly selected file to automatically selected ones.
178 if test -z "$CONFIG_SITE"; then
179 if test "x$prefix" != xNONE; then
180 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
182 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
185 for ac_site_file in $CONFIG_SITE; do
186 if test -r "$ac_site_file"; then
187 echo "loading site script $ac_site_file"
194 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
197 ac_cpp='$CPP '"$xe_cppflags"
198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
204 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
205 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
206 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
213 ac_n= ac_c='\c' ac_t=
217 progname="`echo $0 | sed 's:^\./\./:\./:'`"
220 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
221 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
224 exec_prefix='${prefix}'
225 bindir='${exec_prefix}/bin'
226 datadir='${prefix}/lib'
227 statedir='${prefix}/lib'
228 libdir='${exec_prefix}/lib'
229 mandir='${prefix}/man/man1'
230 inststaticdir='${PROGNAME}'
231 instvardir='${PROGNAME}-${version}'
232 infodir='${datadir}/${instvardir}/info'
235 lispdir='${datadir}/${instvardir}/lisp'
236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
239 pkgdir='${datadir}/${instvardir}/lisp'
241 etcdir='${datadir}/${instvardir}/etc'
242 lockdir='${statedir}/${inststaticdir}/lock'
243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
247 with_site_modules='yes'
253 cpp='' cppflags='' libs='' ldflags=''
258 with_system_malloc='default'
259 with_dlmalloc='default'
273 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 | --no-cr | --no-c) ;;
279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
282 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
283 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
287 while test $# != 0; do
290 --no-create|--no-recursion) ;;
294 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
295 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
299 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
300 val="yes" valomitted=yes
305 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
307 case "${valomitted}-${opt}" in yes-without_* )
308 opt=`echo $opt | sed 's/without/with/'`
309 valomitted="no" val="no" ;;
316 with_site_modules | \
368 memory_usage_stats | \
369 with_clash_detection | \
373 y | ye | yes ) val=yes ;;
375 * ) (echo "$progname: Usage error:"
376 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
377 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
379 eval "$opt=\"$val\"" ;;
397 site_runtime_libraries )
398 if test "$valomitted" = "yes" ; then
399 if test "$#" = 0 ; then
400 (echo "$progname: Usage error:"
401 echo " " "The \`--$optname' option requires a value."
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
411 with_debug_malloc | use_debug_malloc | \
412 with_system_malloc | use_system_malloc )
414 y | ye | yes ) val=yes ;;
416 d | de | def | defa | defau | defaul | default ) val=default ;;
417 * ) (echo "$progname: Usage error:"
418 echo " " "The \`--$optname' option requires one of these values:
419 \`yes', \`no', or \`default'."
420 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
422 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
427 with_database_berkdb=no
429 with_database_gdbm=no
430 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
433 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
434 d | db | dbm ) with_database_dbm=yes ;;
435 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
436 * ) (echo "$progname: Usage error:"
437 echo " " "The \`--$optname' option value
438 must be either \`no' or a comma-separated list
439 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
440 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
443 if test "$with_database_dbm" = "yes" -a \
444 "$with_database_gdbm" = "yes"; then
445 (echo "$progname: Usage error:"
446 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
447 with the \`--$optname' option."
448 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
453 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
455 n | no | non | none ) new_sdefault=no ;;
456 a | al | all | both ) new_sdefault=yes ;;
458 native ) with_native_sound=yes ;;
459 nonative ) with_native_sound=no ;;
461 nas ) with_nas_sound=yes ;;
462 nonas ) with_nas_sound=no ;;
464 esd ) with_esd_sound=yes ;;
465 noesd ) with_esd_sound=no ;;
467 * ) bogus_sound=yes ;;
469 if test "$bogus_sound" -o \
470 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
471 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
472 (echo "$progname: Usage error:"
473 echo " " "Valid types for the \`--$optname' option are:
475 The default is to autodetect all sound support."
476 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
477 elif test -n "$new_sdefault" ; then
478 with_native_sound=$new_sdefault
479 with_nas_sound=$new_sdefault
480 with_esd_sound=$new_sdefault
481 new_sdefault= # reset this
489 y | ye | yes ) val=yes ;;
490 n | no | non | none ) val=no ;;
491 x | xl | xli | xlib ) val=xlib ;;
492 m | mo | mot | moti | motif ) val=motif ;;
493 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values:
495 \`motif', \`xlib', \`yes', or \`no'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
506 * ) (echo "$progname: Usage error:"
507 echo " " "The \`--$optname' option must have one of these values:
508 \`lockf', \`flock', or \`file'."
509 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
516 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
518 n | no | non | none ) new_default=no ;;
519 a | al | all ) new_default=yes ;;
521 extents ) error_check_extents=yes ;;
522 noextents ) error_check_extents=no ;;
524 typecheck ) error_check_typecheck=yes ;;
525 notypecheck ) error_check_typecheck=no ;;
527 bufpos ) error_check_bufpos=yes ;;
528 nobufpos ) error_check_bufpos=no ;;
530 gc ) error_check_gc=yes ;;
531 nogc ) error_check_gc=no ;;
533 malloc ) error_check_malloc=yes ;;
534 nomalloc ) error_check_malloc=no ;;
536 byte_code ) error_check_byte_code=yes ;;
537 nobyte_code ) error_check_byte_code=no ;;
539 * ) bogus_error_check=yes ;;
541 if test "$bogus_error_check" -o \
542 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
543 if test "$error_check_default" = yes ; then
544 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
546 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
548 (echo "$progname: Usage error:"
549 echo " " "Valid types for the \`--$optname' option are:
551 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
552 elif test -n "$new_default" ; then
553 error_check_extents=$new_default
554 error_check_typecheck=$new_default
555 error_check_bufpos=$new_default
556 error_check_gc=$new_default
557 error_check_malloc=$new_default
558 error_check_byte_code=$new_default
559 new_default= # reset this
566 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
567 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
568 archlibdir | docdir | package_path )
569 if test "$valomitted" = "yes"; then
570 if test "$#" = 0; then
571 (echo "$progname: Usage error:"
572 echo " " "The \`--$optname' option requires a value."
573 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
580 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
581 Defining EXEC_PREFIX_USER_DEFINED
583 cat >> confdefs.h <<\EOF
584 #define EXEC_PREFIX_USER_DEFINED 1
588 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
589 Defining LISPDIR_USER_DEFINED
591 cat >> confdefs.h <<\EOF
592 #define LISPDIR_USER_DEFINED 1
596 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
597 Defining SITELISPDIR_USER_DEFINED
599 cat >> confdefs.h <<\EOF
600 #define SITELISPDIR_USER_DEFINED 1
604 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
605 Defining MODULEDIR_USER_DEFINED
607 cat >> confdefs.h <<\EOF
608 #define MODULEDIR_USER_DEFINED 1
612 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
613 Defining ETCDIR_USER_DEFINED
615 cat >> confdefs.h <<\EOF
616 #define ETCDIR_USER_DEFINED 1
620 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
621 Defining INFODIR_USER_DEFINED
623 cat >> confdefs.h <<\EOF
624 #define INFODIR_USER_DEFINED 1
628 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
629 Defining INFOPATH_USER_DEFINED
631 cat >> confdefs.h <<\EOF
632 #define INFOPATH_USER_DEFINED 1
636 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
637 Defining PACKAGE_PATH_USER_DEFINED
639 cat >> confdefs.h <<\EOF
640 #define PACKAGE_PATH_USER_DEFINED 1
645 { test "$extra_verbose" = "yes" && cat << \EOF
646 Defining INFODIR_USER_DEFINED
648 cat >> confdefs.h <<\EOF
649 #define INFODIR_USER_DEFINED 1
653 { test "$extra_verbose" = "yes" && cat << \EOF
654 Defining LISPDIR_USER_DEFINED
656 cat >> confdefs.h <<\EOF
657 #define LISPDIR_USER_DEFINED 1
661 { test "$extra_verbose" = "yes" && cat << \EOF
662 Defining MODULEDIR_USER_DEFINED
664 cat >> confdefs.h <<\EOF
665 #define MODULEDIR_USER_DEFINED 1
669 { test "$extra_verbose" = "yes" && cat << \EOF
670 Defining ETCDIR_USER_DEFINED
672 cat >> confdefs.h <<\EOF
673 #define ETCDIR_USER_DEFINED 1
677 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
678 Defining LOCKDIR_USER_DEFINED
680 cat >> confdefs.h <<\EOF
681 #define LOCKDIR_USER_DEFINED 1
685 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
686 Defining DOCDIR_USER_DEFINED
688 cat >> confdefs.h <<\EOF
689 #define DOCDIR_USER_DEFINED 1
693 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
694 Defining ARCHLIBDIR_USER_DEFINED
696 cat >> confdefs.h <<\EOF
697 #define ARCHLIBDIR_USER_DEFINED 1
706 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
709 "with_scrollbars" | \
713 l | lu | luc | luci | lucid ) val=lucid ;;
714 m | mo | mot | moti | motif ) val=motif ;;
715 athena3d | athena-3d ) val=athena3d ;;
716 a | at | ath | athe | athen | athena ) val=athena ;;
717 n | no | non | none ) val=no ;;
718 * ) (echo "$progname: Usage error:"
719 echo " " "The \`--$optname' option must have one of these values:
720 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
721 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
726 "use_minimal_tagbits" | \
727 "use_indexed_lrecord_implementation" | \
730 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
733 * ) (echo "$progname: Usage error:"
734 echo " " "Unrecognized option: $arg"
735 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
740 *-*-*) configuration="$arg" ;;
742 *) (echo "$progname: Usage error:"
743 echo " " "Unrecognized argument: $arg"
744 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
750 test -n "$cpp" && CPP="$cpp"
751 test -n "$cppflags" && CPPFLAGS="$cppflags"
752 test -n "$libs" && LIBS="$libs"
753 test -n "$ldflags" && LDFLAGS="$ldflags"
755 eval set x "$quoted_arguments"; shift
757 test "$extra_verbose" = "yes" && verbose=yes
759 test -n "$with_x" && with_x11="$with_x"
761 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
762 test "$with_system_malloc" = "default" && with_system_malloc=yes
767 if test "$with_cde $with_tooltalk" = "yes no"; then
768 (echo "$progname: Usage error:"
769 echo " " "--with-cde requires --with-tooltalk"
770 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
771 elif test "$with_tooltalk" = "no" ; then with_cde=no
772 elif test "$with_cde" = "yes"; then with_tooltalk=yes
779 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
780 if test -f "$dir/src/lisp.h" -a \
781 -f "$dir/lisp/version.el" ; then
786 if test -z "$srcdir" ; then
787 (echo "$progname: Usage error:"
788 echo " " "Neither the current directory nor its parent seem to
789 contain the XEmacs sources. If you do not want to build XEmacs in its
790 source tree, you should run \`$progname' in the directory in which
791 you wish to build XEmacs, using the \`--srcdir' option to say where the
792 sources may be found."
793 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
798 if test ! -f "$srcdir/src/lisp.h" -o \
799 ! -f "$srcdir/lisp/version.el" ; then
800 (echo "$progname: Usage error:"
801 echo " " "The directory specified with the \`--srcdir' option,
802 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
803 either run the \`$progname' script at the top of the XEmacs source
804 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
805 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
810 if test -z "$configuration"; then
811 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
812 if test -z "$configuration"; then
813 (echo "$progname: Usage error:"
814 echo " " "XEmacs has not been ported to this host type.
815 Try explicitly specifying the CONFIGURATION when rerunning configure."
816 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
820 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
821 echo "configure:822: checking whether ln -s works" >&5
824 if ln -s X conftestdata 2>/dev/null
827 ac_cv_prog_LN_S="ln -s"
831 LN_S="$ac_cv_prog_LN_S"
832 if test "$ac_cv_prog_LN_S" = "ln -s"; then
833 echo "$ac_t""yes" 1>&6
835 echo "$ac_t""no" 1>&6
839 for dir in lisp etc man info; do
840 if test ! -d "$dir" ; then
841 echo Making symbolic link to "$srcdir/$dir"
842 ${LN_S} "$srcdir/$dir" "$dir"
847 absolute_pwd="`pwd`";
848 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
850 else blddir="$absolute_pwd"; if test -d "/net"; then
851 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
852 blddir=`echo "$blddir" | \
853 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
860 . ) srcdir="$blddir" ;;
861 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
862 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
863 srcdir=`echo "$srcdir" | \
864 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
868 if test `pwd` != `sh -c cd $srcdir && pwd` \
869 && test -f "$srcdir/src/config.h"; then
870 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
871 echo " as a build directory right now; it has been configured in its own"
872 echo " right. To configure in another directory as well, you MUST"
873 echo " use GNU make. If you do not have GNU make, then you must"
874 echo " now do \`make distclean' in $srcdir,"
875 echo " and then run $progname again.") >&2
876 extrasub='/^VPATH[ ]*=/c\
882 vpath %.in $(srcdir)'
885 . "$srcdir/version.sh" || exit 1;
886 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
887 : "${extra_verbose=$beta}"
888 version="${emacs_major_version}.${emacs_minor_version}"
889 { test "$extra_verbose" = "yes" && cat << EOF
890 Defining EMACS_MAJOR_VERSION = $emacs_major_version
892 cat >> confdefs.h <<EOF
893 #define EMACS_MAJOR_VERSION $emacs_major_version
897 { test "$extra_verbose" = "yes" && cat << EOF
898 Defining EMACS_MINOR_VERSION = $emacs_minor_version
900 cat >> confdefs.h <<EOF
901 #define EMACS_MINOR_VERSION $emacs_minor_version
905 if test -n "$emacs_beta_version" ; then
906 if test "$beta" = "yes"; then
907 version="${version}-b${emacs_beta_version}"
908 { test "$extra_verbose" = "yes" && cat << EOF
909 Defining EMACS_BETA_VERSION = $emacs_beta_version
911 cat >> confdefs.h <<EOF
912 #define EMACS_BETA_VERSION $emacs_beta_version
917 version="${version}.${emacs_beta_version}"
918 { test "$extra_verbose" = "yes" && cat << EOF
919 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
921 cat >> confdefs.h <<EOF
922 #define EMACS_PATCH_LEVEL $emacs_beta_version
928 { test "$extra_verbose" = "yes" && cat << EOF
929 Defining XEMACS_CODENAME = "$xemacs_codename"
931 cat >> confdefs.h <<EOF
932 #define XEMACS_CODENAME "$xemacs_codename"
936 { test "$extra_verbose" = "yes" && cat << EOF
937 Defining EMACS_VERSION = "$version"
939 cat >> confdefs.h <<EOF
940 #define EMACS_VERSION "$version"
945 if test "$with_infodock" = "yes"; then
946 if test ! -f ../../ID-INSTALL; then
947 echo "Cannot build InfoDock without InfoDock sources"
952 if test "$with_infodock" = "yes"; then
953 { test "$extra_verbose" = "yes" && cat << EOF
954 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
956 cat >> confdefs.h <<EOF
957 #define INFODOCK_MAJOR_VERSION $infodock_major_version
961 { test "$extra_verbose" = "yes" && cat << EOF
962 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
964 cat >> confdefs.h <<EOF
965 #define INFODOCK_MINOR_VERSION $infodock_minor_version
969 { test "$extra_verbose" = "yes" && cat << EOF
970 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
972 cat >> confdefs.h <<EOF
973 #define INFODOCK_BUILD_VERSION $infodock_build_version
977 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
979 CPPFLAGS="$CPPFLAGS -DINFODOCK"
984 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
985 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
986 Defining ERROR_CHECK_EXTENTS
988 cat >> confdefs.h <<\EOF
989 #define ERROR_CHECK_EXTENTS 1
993 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
994 Defining ERROR_CHECK_TYPECHECK
996 cat >> confdefs.h <<\EOF
997 #define ERROR_CHECK_TYPECHECK 1
1001 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1002 Defining ERROR_CHECK_BUFPOS
1004 cat >> confdefs.h <<\EOF
1005 #define ERROR_CHECK_BUFPOS 1
1009 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1010 Defining ERROR_CHECK_GC
1012 cat >> confdefs.h <<\EOF
1013 #define ERROR_CHECK_GC 1
1017 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1018 Defining ERROR_CHECK_MALLOC
1020 cat >> confdefs.h <<\EOF
1021 #define ERROR_CHECK_MALLOC 1
1025 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1026 Defining ERROR_CHECK_BYTE_CODE
1028 cat >> confdefs.h <<\EOF
1029 #define ERROR_CHECK_BYTE_CODE 1
1033 if test "${debug:=$beta}" = "yes"; then
1034 use_assertions=yes memory_usage_stats=yes
1035 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1036 echo " xemacs will be linked with \"debug.o\""
1038 { test "$extra_verbose" = "yes" && cat << \EOF
1039 Defining DEBUG_XEMACS
1041 cat >> confdefs.h <<\EOF
1042 #define DEBUG_XEMACS 1
1047 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1048 Defining USE_ASSERTIONS
1050 cat >> confdefs.h <<\EOF
1051 #define USE_ASSERTIONS 1
1055 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1056 Defining MEMORY_USAGE_STATS
1058 cat >> confdefs.h <<\EOF
1059 #define MEMORY_USAGE_STATS 1
1065 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1066 echo "configure:1067: checking "host system type"" >&5
1067 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1068 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1069 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1070 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1071 echo "$ac_t""$configuration" 1>&6
1079 case "$canonical" in
1080 sparc-*-* ) machine=sparc ;;
1081 alpha*-*-* ) machine=alpha ;;
1082 vax-*-* ) machine=vax ;;
1083 mips-dec-* ) machine=pmax ;;
1084 mips-sgi-* ) machine=iris4d ;;
1085 mips*-linux ) machine=mips ;;
1086 romp-ibm-* ) machine=ibmrt ;;
1087 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1088 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1089 powerpc*-* ) machine=powerpc ;;
1090 hppa-*-* ) machine=hp800 ;;
1091 m88k-dg-* ) machine=aviion ;;
1092 m68*-sony-* ) machine=news ;;
1093 mips-sony-* ) machine=news-risc ;;
1094 clipper-* ) machine=clipper ;;
1095 arm-* ) machine=arm ;;
1096 ns32k-* ) machine=ns32000 ;;
1099 case "$canonical" in
1100 *-*-linux* ) opsys=linux ;;
1101 *-*-netbsd* ) opsys=netbsd ;;
1102 *-*-openbsd* ) opsys=openbsd ;;
1103 *-*-nextstep* ) opsys=nextstep ;;
1104 *-*-vms ) opsys=vms ;;
1106 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1107 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1108 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1109 *-dec-osf3* ) opsys=decosf3-1 ;;
1110 *-dec-osf4* ) opsys=decosf4-0 ;;
1112 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1113 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1114 *-*-ultrix* ) opsys=ultrix4-3 ;;
1116 *-*-aix3.1* ) opsys=aix3-1 ;;
1117 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1118 *-*-aix3* ) opsys=aix3-2 ;;
1119 *-*-aix4.0* ) opsys=aix4 ;;
1120 *-*-aix4.1* ) opsys=aix4-1 ;;
1121 *-*-aix4* ) opsys=aix4-2 ;;
1123 *-gnu* ) opsys=gnu ;;
1124 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1125 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1126 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1127 *-*-aos4.2 ) opsys=bsd4-2 ;;
1128 *-*-aos* ) opsys=bsd4-3 ;;
1129 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1130 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1131 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1132 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1133 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1134 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1135 if test -z "$NON_GNU_CPP" ; then
1136 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1137 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1141 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1142 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1145 case "$canonical" in
1148 case "$canonical" in
1149 i[3-9]86-*-netbsd*) machine=intel386 ;;
1150 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1151 machine=hp9000s300 ;;
1152 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1153 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1158 case "${canonical}" in
1159 i386-*-openbsd*) machine=intel386 ;;
1160 m68k-*-openbsd*) machine=hp9000s300 ;;
1161 mipsel-*-openbsd*) machine=pmax ;;
1165 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1166 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1168 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1169 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1171 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1173 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1175 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1177 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1179 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1181 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1182 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1183 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1186 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1188 *-convex-bsd* | *-convex-convexos* )
1189 machine=convex opsys=bsd4-3
1190 NON_GNU_CPP="cc -E -P"
1193 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1195 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1196 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1197 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1198 m88k-dg-dgux* ) opsys=dgux ;;
1200 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1201 m88k-motorola-sysv4* )
1202 machine=delta88k opsys=usg5-4-2
1204 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1206 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1207 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1209 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1211 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1212 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1213 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1216 case "`uname -r`" in
1217 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1218 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1220 NON_GNU_CPP="/lib/cpp"
1222 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1223 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1225 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1227 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1230 case "$canonical" in
1231 m68* ) machine=hp9000s300 ;;
1232 hppa* ) machine=hp800 ;;
1235 case "$canonical" in
1236 *-hp-hpux7* ) opsys=hpux ;;
1237 *-hp-hpux8* ) opsys=hpux8 ;;
1238 *-hp-hpux9* ) opsys=hpux9 ;;
1239 *-hp-hpux10* ) opsys=hpux10 ;;
1240 *-hp-hpux11* ) opsys=hpux11 ;;
1244 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1245 echo " xemacs will be linked with \"strcat.o\""
1248 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1249 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1250 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1252 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1255 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1256 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1258 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1259 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1260 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1261 romp-ibm-aos* ) opsys=bsd4-3 ;;
1262 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1263 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1265 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1266 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1268 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1270 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1272 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1274 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1276 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1278 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1280 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1282 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1284 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1286 mips-mips-usg* ) machine=mips4 ;;
1289 NON_GNU_CC="cc -systype bsd43"
1290 NON_GNU_CPP="cc -systype bsd43 -E"
1291 case "$canonical" in
1292 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1293 mips-mips-riscos5* ) opsys=riscos5 ;;
1296 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1297 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1299 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1301 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1303 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1304 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1306 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1308 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1310 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1312 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1314 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1315 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1317 mips-siemens-sysv* | mips-sni-sysv*)
1318 machine=mips-siemens opsys=usg5-4
1319 NON_GNU_CC=/usr/ccs/bin/cc
1320 NON_GNU_CPP=/usr/ccs/lib/cpp
1325 NON_GNU_CC=/usr/ccs/bin/cc
1326 NON_GNU_CPP=/usr/ccs/lib/cpp
1329 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1330 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1331 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1332 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1333 mips-sgi-irix6* ) opsys=irix6-0 ;;
1334 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1335 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1336 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1337 mips-sgi-irix* ) opsys=irix5-0 ;;
1339 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1340 *-sony-news* ) opsys=newsos5 ;;
1342 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1344 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1345 case "$canonical" in
1346 m68*-sunos1* ) machine=sun1 ;;
1347 m68*-sunos2* ) machine=sun2 ;;
1348 m68* ) machine=sun3 ;;
1349 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1350 i*86-*-* ) machine=intel386 ;;
1351 rs6000* ) machine=rs6000 ;;
1354 case "$canonical" in *-sunos5*)
1355 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1358 case "$canonical" in
1360 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1363 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1367 case "$canonical" in
1370 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1371 { test "$extra_verbose" = "yes" && cat << EOF
1372 Defining OS_RELEASE = $os_release
1374 cat >> confdefs.h <<EOF
1375 #define OS_RELEASE $os_release
1380 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1381 *-sunos4.0* ) opsys=sunos4-0 ;;
1382 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1383 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1384 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1385 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1386 *-mach* ) opsys=mach-bsd4-3 ;;
1390 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1392 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1395 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1397 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1398 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1400 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1402 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1404 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1405 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1407 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1409 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1412 case "$canonical" in
1413 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1414 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1415 *-mach* ) opsys=mach-bsd4-3 ;;
1419 ns16k-whitechapel-* ) machine=mg1 ;;
1421 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1425 case "$canonical" in
1426 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1427 *-isc2.2* ) opsys=isc2-2 ;;
1428 *-isc4.0* ) opsys=isc4-0 ;;
1429 *-isc4.* ) opsys=isc4-1
1430 GCC_TEST_OPTIONS=-posix
1431 NON_GCC_TEST_OPTIONS=-Xp
1433 *-isc* ) opsys=isc3-0 ;;
1434 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1435 *-esix* ) opsys=esix ;;
1436 *-mach* ) opsys=mach-bsd4-3 ;;
1437 *-xenix* ) opsys=xenix ;;
1438 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1439 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1440 *-bsdi4* ) opsys=bsdos4 ;;
1441 *-bsdi3* ) opsys=bsdos3 ;;
1442 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1443 *-bsdi2* ) opsys=bsdos2 ;;
1444 *-sco3.2v5* ) opsys=sco5 ;
1445 if test "$dynamic" = "yes" ; then
1446 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1448 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1450 *-sysv5* ) opsys=sco7 ;;
1451 *-386bsd* ) opsys=386bsd ;;
1452 *-freebsd* ) opsys=freebsd ;;
1453 *-nextstep* ) opsys=nextstep ;;
1454 *-pc-cygwin* ) opsys=cygwin32 ;;
1455 *-pc-mingw* ) opsys=mingw32 ;
1456 test -z "$with_tty" && with_tty="no";;
1460 m68k-*-linux* ) machine=m68k opsys=linux ;;
1464 if test -z "$machine" -o -z "$opsys"; then
1465 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1466 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1471 if test -z "$dynamic"; then
1473 hpux* | sunos4* ) dynamic=no ;;
1477 if test "$dynamic" = "yes"; then
1479 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1480 decosf* ) ld_call_shared="-call_shared" ;;
1482 else case "$opsys" in
1484 echo "Static linking is not supported on Solaris 2."
1485 echo "Rerun configure without specifying --dynamic=no."
1487 linux ) ld_call_shared="-Bstatic" ;;
1488 decosf* ) ld_call_shared="-non_shared" ;;
1492 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1494 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1495 { test "$extra_verbose" = "yes" && cat << EOF
1496 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1498 cat >> confdefs.h <<EOF
1499 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1504 machfile="m/${machine}.h"
1505 opsysfile="s/${opsys}.h"
1508 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1509 if test "$with_workshop $with_tooltalk" = "yes no"; then
1510 (echo "$progname: Usage error:"
1511 echo " " "--with-workshop requires --with-tooltalk"
1512 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1513 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1514 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1517 if test "$with_workshop" = "yes"; then
1518 { test "$extra_verbose" = "yes" && cat << \EOF
1521 cat >> confdefs.h <<\EOF
1526 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1527 echo " xemacs will be linked with \"sunpro.o\""
1531 if test "$with_clash_detection" = "yes"; then
1532 { test "$extra_verbose" = "yes" && cat << \EOF
1533 Defining CLASH_DETECTION
1535 cat >> confdefs.h <<\EOF
1536 #define CLASH_DETECTION 1
1540 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1541 echo " xemacs will be linked with \"filelock.o\""
1545 test -n "$compiler" && CC="$compiler"
1546 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1549 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1550 if test "${CFLAGS-unset}" != unset
1551 then cflags_specified=yes;
1552 else cflags_specified=no;
1555 xe_save_CFLAGS="$CFLAGS"
1557 # Extract the first word of "gcc", so it can be a program name with args.
1558 set dummy gcc; ac_word=$2
1559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1560 echo "configure:1561: checking for $ac_word" >&5
1562 if test -n "$CC"; then
1563 ac_cv_prog_CC="$CC" # Let the user override the test.
1565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1567 for ac_dir in $ac_dummy; do
1568 test -z "$ac_dir" && ac_dir=.
1569 if test -f $ac_dir/$ac_word; then
1577 if test -n "$CC"; then
1578 echo "$ac_t""$CC" 1>&6
1580 echo "$ac_t""no" 1>&6
1583 if test -z "$CC"; then
1584 # Extract the first word of "cc", so it can be a program name with args.
1585 set dummy cc; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1589 if test -n "$CC"; then
1590 ac_cv_prog_CC="$CC" # Let the user override the test.
1592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1595 for ac_dir in $ac_dummy; do
1596 test -z "$ac_dir" && ac_dir=.
1597 if test -f $ac_dir/$ac_word; then
1598 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1599 ac_prog_rejected=yes
1607 if test $ac_prog_rejected = yes; then
1608 # We found a bogon in the path, so make sure we never use it.
1609 set dummy $ac_cv_prog_CC
1611 if test $# -gt 0; then
1612 # We chose a different compiler from the bogus one.
1613 # However, it has the same basename, so the bogon will be chosen
1614 # first if we set CC to just the basename; use the full file name.
1616 set dummy "$ac_dir/$ac_word" "$@"
1623 if test -n "$CC"; then
1624 echo "$ac_t""$CC" 1>&6
1626 echo "$ac_t""no" 1>&6
1629 if test -z "$CC"; then
1630 case "`uname -s`" in
1632 # Extract the first word of "cl", so it can be a program name with args.
1633 set dummy cl; ac_word=$2
1634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1635 echo "configure:1636: checking for $ac_word" >&5
1637 if test -n "$CC"; then
1638 ac_cv_prog_CC="$CC" # Let the user override the test.
1640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1642 for ac_dir in $ac_dummy; do
1643 test -z "$ac_dir" && ac_dir=.
1644 if test -f $ac_dir/$ac_word; then
1652 if test -n "$CC"; then
1653 echo "$ac_t""$CC" 1>&6
1655 echo "$ac_t""no" 1>&6
1660 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1663 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1664 echo "configure:1665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1667 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1668 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1669 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1670 ac_cpp='$CPP '"$xe_cppflags"
1671 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1672 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1675 cat > conftest.$ac_ext << EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1682 if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683 ac_cv_prog_cc_works=yes
1684 # If we can't run a trivial program, we are probably using a cross compiler.
1685 if (./conftest; exit) 2>/dev/null; then
1686 ac_cv_prog_cc_cross=no
1688 ac_cv_prog_cc_cross=yes
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1693 ac_cv_prog_cc_works=no
1697 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1698 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1699 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1700 ac_cpp='$CPP '"$xe_cppflags"
1701 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1702 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1705 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1706 if test $ac_cv_prog_cc_works = no; then
1707 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1709 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1710 echo "configure:1711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1711 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1712 cross_compiling=$ac_cv_prog_cc_cross
1714 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1715 echo "configure:1716: checking whether we are using GNU C" >&5
1717 cat > conftest.c <<EOF
1722 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1728 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1730 if test $ac_cv_prog_gcc = yes; then
1736 ac_test_CFLAGS="${CFLAGS+set}"
1737 ac_save_CFLAGS="$CFLAGS"
1739 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1740 echo "configure:1741: checking whether ${CC-cc} accepts -g" >&5
1742 echo 'void f(){}' > conftest.c
1743 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1751 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1752 if test "$ac_test_CFLAGS" = set; then
1753 CFLAGS="$ac_save_CFLAGS"
1754 elif test $ac_cv_prog_cc_g = yes; then
1755 if test "$GCC" = yes; then
1761 if test "$GCC" = yes; then
1768 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1770 # Extract the first word of "gcc", so it can be a program name with args.
1771 set dummy gcc; ac_word=$2
1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773 echo "configure:1774: checking for $ac_word" >&5
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1780 for ac_dir in $ac_dummy; do
1781 test -z "$ac_dir" && ac_dir=.
1782 if test -f $ac_dir/$ac_word; then
1790 if test -n "$CC"; then
1791 echo "$ac_t""$CC" 1>&6
1793 echo "$ac_t""no" 1>&6
1796 if test -z "$CC"; then
1797 # Extract the first word of "cc", so it can be a program name with args.
1798 set dummy cc; ac_word=$2
1799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_word" >&5
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1808 for ac_dir in $ac_dummy; do
1809 test -z "$ac_dir" && ac_dir=.
1810 if test -f $ac_dir/$ac_word; then
1811 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1812 ac_prog_rejected=yes
1820 if test $ac_prog_rejected = yes; then
1821 # We found a bogon in the path, so make sure we never use it.
1822 set dummy $ac_cv_prog_CC
1824 if test $# -gt 0; then
1825 # We chose a different compiler from the bogus one.
1826 # However, it has the same basename, so the bogon will be chosen
1827 # first if we set CC to just the basename; use the full file name.
1829 set dummy "$ac_dir/$ac_word" "$@"
1836 if test -n "$CC"; then
1837 echo "$ac_t""$CC" 1>&6
1839 echo "$ac_t""no" 1>&6
1842 if test -z "$CC"; then
1843 case "`uname -s`" in
1845 # Extract the first word of "cl", so it can be a program name with args.
1846 set dummy cl; ac_word=$2
1847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_word" >&5
1850 if test -n "$CC"; then
1851 ac_cv_prog_CC="$CC" # Let the user override the test.
1853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1855 for ac_dir in $ac_dummy; do
1856 test -z "$ac_dir" && ac_dir=.
1857 if test -f $ac_dir/$ac_word; then
1865 if test -n "$CC"; then
1866 echo "$ac_t""$CC" 1>&6
1868 echo "$ac_t""no" 1>&6
1873 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1876 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1877 echo "configure:1878: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1880 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1881 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1882 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1883 ac_cpp='$CPP '"$xe_cppflags"
1884 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1885 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1888 cat > conftest.$ac_ext << EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1895 if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1896 ac_cv_prog_cc_works=yes
1897 # If we can't run a trivial program, we are probably using a cross compiler.
1898 if (./conftest; exit) 2>/dev/null; then
1899 ac_cv_prog_cc_cross=no
1901 ac_cv_prog_cc_cross=yes
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1906 ac_cv_prog_cc_works=no
1910 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1911 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1912 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1913 ac_cpp='$CPP '"$xe_cppflags"
1914 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1915 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1918 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1919 if test $ac_cv_prog_cc_works = no; then
1920 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1922 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1923 echo "configure:1924: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1924 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1925 cross_compiling=$ac_cv_prog_cc_cross
1927 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1928 echo "configure:1929: checking whether we are using GNU C" >&5
1930 cat > conftest.c <<EOF
1935 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1941 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1943 if test $ac_cv_prog_gcc = yes; then
1949 ac_test_CFLAGS="${CFLAGS+set}"
1950 ac_save_CFLAGS="$CFLAGS"
1952 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether ${CC-cc} accepts -g" >&5
1955 echo 'void f(){}' > conftest.c
1956 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1964 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1965 if test "$ac_test_CFLAGS" = set; then
1966 CFLAGS="$ac_save_CFLAGS"
1967 elif test $ac_cv_prog_cc_g = yes; then
1968 if test "$GCC" = yes; then
1974 if test "$GCC" = yes; then
1981 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1983 # Extract the first word of "gcc", so it can be a program name with args.
1984 set dummy gcc; ac_word=$2
1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_word" >&5
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1993 for ac_dir in $ac_dummy; do
1994 test -z "$ac_dir" && ac_dir=.
1995 if test -f $ac_dir/$ac_word; then
2003 if test -n "$CC"; then
2004 echo "$ac_t""$CC" 1>&6
2006 echo "$ac_t""no" 1>&6
2009 if test -z "$CC"; then
2010 # Extract the first word of "cc", so it can be a program name with args.
2011 set dummy cc; ac_word=$2
2012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2013 echo "configure:2014: checking for $ac_word" >&5
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2021 for ac_dir in $ac_dummy; do
2022 test -z "$ac_dir" && ac_dir=.
2023 if test -f $ac_dir/$ac_word; then
2024 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2025 ac_prog_rejected=yes
2033 if test $ac_prog_rejected = yes; then
2034 # We found a bogon in the path, so make sure we never use it.
2035 set dummy $ac_cv_prog_CC
2037 if test $# -gt 0; then
2038 # We chose a different compiler from the bogus one.
2039 # However, it has the same basename, so the bogon will be chosen
2040 # first if we set CC to just the basename; use the full file name.
2042 set dummy "$ac_dir/$ac_word" "$@"
2049 if test -n "$CC"; then
2050 echo "$ac_t""$CC" 1>&6
2052 echo "$ac_t""no" 1>&6
2055 if test -z "$CC"; then
2056 case "`uname -s`" in
2058 # Extract the first word of "cl", so it can be a program name with args.
2059 set dummy cl; ac_word=$2
2060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_word" >&5
2063 if test -n "$CC"; then
2064 ac_cv_prog_CC="$CC" # Let the user override the test.
2066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2068 for ac_dir in $ac_dummy; do
2069 test -z "$ac_dir" && ac_dir=.
2070 if test -f $ac_dir/$ac_word; then
2078 if test -n "$CC"; then
2079 echo "$ac_t""$CC" 1>&6
2081 echo "$ac_t""no" 1>&6
2086 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2089 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2090 echo "configure:2091: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2093 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2094 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2095 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2096 ac_cpp='$CPP '"$xe_cppflags"
2097 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2098 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2101 cat > conftest.$ac_ext << EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2108 if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2109 ac_cv_prog_cc_works=yes
2110 # If we can't run a trivial program, we are probably using a cross compiler.
2111 if (./conftest; exit) 2>/dev/null; then
2112 ac_cv_prog_cc_cross=no
2114 ac_cv_prog_cc_cross=yes
2117 echo "configure: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2119 ac_cv_prog_cc_works=no
2123 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2124 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2125 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2126 ac_cpp='$CPP '"$xe_cppflags"
2127 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2128 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2131 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2132 if test $ac_cv_prog_cc_works = no; then
2133 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2135 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2136 echo "configure:2137: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2137 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2138 cross_compiling=$ac_cv_prog_cc_cross
2140 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2141 echo "configure:2142: checking whether we are using GNU C" >&5
2143 cat > conftest.c <<EOF
2148 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2154 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2156 if test $ac_cv_prog_gcc = yes; then
2162 ac_test_CFLAGS="${CFLAGS+set}"
2163 ac_save_CFLAGS="$CFLAGS"
2165 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2166 echo "configure:2167: checking whether ${CC-cc} accepts -g" >&5
2168 echo 'void f(){}' > conftest.c
2169 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2177 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2178 if test "$ac_test_CFLAGS" = set; then
2179 CFLAGS="$ac_save_CFLAGS"
2180 elif test $ac_cv_prog_cc_g = yes; then
2181 if test "$GCC" = yes; then
2187 if test "$GCC" = yes; then
2195 CFLAGS="$xe_save_CFLAGS"
2198 test -n "$CPP" -a -d "$CPP" && CPP=
2200 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2202 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2203 echo "configure:2204: checking how to run the C preprocessor" >&5
2204 # On Suns, sometimes $CPP names a directory.
2205 if test -n "$CPP" && test -d "$CPP"; then
2208 if test -z "$CPP"; then
2210 # This must be in double quotes, not single quotes, because CPP may get
2211 # substituted into the Makefile and "${CC-cc}" will confuse make.
2213 # On the NeXT, cc -E runs the code through the compiler's parser,
2214 # not just through cpp.
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2222 { (eval echo configure:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2224 if test -z "$ac_err"; then
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2231 CPP="${CC-cc} -E -traditional-cpp"
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239 { (eval echo configure:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2241 if test -z "$ac_err"; then
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 CPP="${CC-cc} -nologo -E"
2249 cat > conftest.$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2256 { (eval echo configure:2257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2258 if test -z "$ac_err"; then
2262 echo "configure: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2272 ac_cv_prog_CPP="$CPP"
2273 CPP="$ac_cv_prog_CPP"
2275 ac_cv_prog_CPP="$CPP"
2277 echo "$ac_t""$CPP" 1>&6
2280 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2281 echo "configure:2282: checking for AIX" >&5
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2291 egrep "yes" >/dev/null 2>&1; then
2293 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2294 Defining _ALL_SOURCE
2296 cat >> confdefs.h <<\EOF
2297 #define _ALL_SOURCE 1
2303 echo "$ac_t""no" 1>&6
2309 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2310 echo "configure:2311: checking for GNU libc" >&5
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 #include <features.h>
2317 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2318 #error Not a GNU libc system :-(
2319 ******* ======= ******** &&&&&&&&
2324 if { (eval echo configure:2325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2334 echo "$ac_t""$have_glibc" 1>&6
2335 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2336 Defining _GNU_SOURCE
2338 cat >> confdefs.h <<\EOF
2339 #define _GNU_SOURCE 1
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2349 #if defined __SUNPRO_C
2351 #elif defined __DECC
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 case "$conftest_rc" in
2367 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2368 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2376 echo "Extracting information from the machine- and system-dependent headers..."
2378 tempcname="conftest.c"
2382 cat > $tempcname <<EOF
2384 #define C_SWITCH_SITE
2385 #define C_SWITCH_X_SITE
2386 #define LD_SWITCH_SITE
2387 #define LD_SWITCH_X_SITE
2388 #define LD_SWITCH_X_SITE_AUX
2389 #define OS_RELEASE $os_release
2390 #include "$srcdir/src/$opsysfile"
2391 #include "$srcdir/src/$machfile"
2393 #ifndef LIBS_MACHINE
2394 #define LIBS_MACHINE
2396 configure___ libs_machine=LIBS_MACHINE
2401 configure___ libs_system=LIBS_SYSTEM
2403 #ifndef LIBS_TERMCAP
2404 #define LIBS_TERMCAP
2406 configure___ libs_termcap=LIBS_TERMCAP
2408 #ifndef LIB_STANDARD
2409 #define LIB_STANDARD
2411 configure___ libs_standard=LIB_STANDARD
2414 #ifndef OBJECTS_MACHINE
2415 #define OBJECTS_MACHINE
2417 configure___ objects_machine=OBJECTS_MACHINE
2419 #ifndef OBJECTS_SYSTEM
2420 #define OBJECTS_SYSTEM
2422 configure___ objects_system=OBJECTS_SYSTEM
2425 #ifndef C_SWITCH_MACHINE
2426 #define C_SWITCH_MACHINE
2428 configure___ c_switch_machine=C_SWITCH_MACHINE
2430 #ifndef C_SWITCH_SYSTEM
2431 #define C_SWITCH_SYSTEM
2433 configure___ c_switch_system=C_SWITCH_SYSTEM
2436 #ifndef LD_SWITCH_MACHINE
2437 #define LD_SWITCH_MACHINE
2439 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2441 #ifndef LD_SWITCH_SYSTEM
2442 #define LD_SWITCH_SYSTEM
2444 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2448 #define UNEXEC "unexec.o"
2450 configure___ unexec=UNEXEC
2453 #ifndef LD_SWITCH_SHARED
2454 #define LD_SWITCH_SHARED "-c"
2456 configure___ ld_switch_shared=LD_SWITCH_SHARED
2459 #ifdef ORDINARY_LINK
2460 #define LD "\$(CC) \$(CFLAGS)"
2461 #else /* no ORDINARY LINK */
2462 #ifdef COFF_ENCAPSULATE
2463 #define LD "\$(CC) -nostdlib"
2464 #else /* not COFF_ENCAPSULATE */
2467 #else /* ! defined (LINKER) */
2469 #endif /* ! defined (LINKER) */
2470 #endif /* ! defined (COFF_ENCAPSULATE) */
2471 #endif /* not ORDINARY_LINK */
2477 configure___ lib_gcc=LIB_GCC
2479 #ifndef LD_TEXT_START_ADDR
2480 #define LD_TEXT_START_ADDR
2482 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2485 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2487 #ifdef COFF_ENCAPSULATE
2488 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2489 #else /* ! defined (COFF_ENCAPSULATE) */
2490 #define START_FILES "pre-crt0.o /lib/crt0.o"
2491 #endif /* ! defined (COFF_ENCAPSULATE) */
2492 #else /* ! defined (NO_REMAP) */
2493 #define START_FILES "ecrt0.o"
2494 #endif /* ! defined (NO_REMAP) */
2495 #endif /* no ORDINARY_LINK */
2499 configure___ start_files=START_FILES
2501 #ifdef ORDINARY_LINK
2502 configure___ ordinary_link=yes
2504 configure___ ordinary_link=no
2507 #ifdef SYSTEM_MALLOC
2508 configure___ system_malloc=yes
2510 configure___ system_malloc=no
2514 configure___ have_terminfo=yes
2516 configure___ have_terminfo=no
2519 #ifdef MAIL_USE_FLOCK
2520 configure___ mail_use_flock=yes
2522 configure___ mail_use_flock=no
2525 #ifdef MAIL_USE_LOCKF
2526 configure___ mail_use_lockf=yes
2528 configure___ mail_use_lockf=no
2531 #ifdef HAVE_WIN32_PROCESSES
2532 configure___ win32_processes=yes
2534 configure___ win32_processes=no
2539 CPP=`eval "echo $CPP $CPPFLAGS"`
2540 eval `$CPP -Isrc $tempcname \
2541 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2545 test "$extra_verbose" = "yes" && \
2546 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 ""
2548 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2550 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2552 if test "$cflags_specified" = "no"; then
2553 if test "$GCC" = "yes"; then
2554 CFLAGS="-g -O3 -Wall -Wno-switch"
2555 elif test "$__SUNPRO_C" = "yes"; then
2557 sol2 ) CFLAGS="-v -xO4" ;;
2558 sunos4* ) CFLAGS="-xO2";;
2560 elif test "$__DECC" = "yes"; then
2562 elif test "$CC" = "xlc"; then
2563 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2569 if test "$GCC" = "yes"; then
2570 set x $ld_switch_system; shift; ld_switch_system=""
2571 while test -n "$1"; do
2573 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2574 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2576 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2582 if test "$GCC" = "yes"; then
2583 set x $ld_switch_machine; shift; ld_switch_machine=""
2584 while test -n "$1"; do
2586 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2587 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2589 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2595 if test "$GCC" = "yes"; then
2596 set x $LDFLAGS; shift; LDFLAGS=""
2597 while test -n "$1"; do
2599 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2600 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2602 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2608 if test "$GCC" = "yes"; then
2609 set x $ld_call_shared; shift; ld_call_shared=""
2610 while test -n "$1"; do
2612 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2613 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2615 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2621 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2622 echo " xemacs will be linked with \"$objects_machine\""
2624 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2625 echo " xemacs will be linked with \"$objects_system\""
2627 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2628 echo " xemacs will be linked with \"$unexec\""
2631 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2632 echo "configure:2633: checking for dynodump" >&5
2633 if test "$unexec" != "unexsol2.o"; then
2634 echo "$ac_t""no" 1>&6
2636 echo "$ac_t""yes" 1>&6
2637 { test "$extra_verbose" = "yes" && cat << \EOF
2640 cat >> confdefs.h <<\EOF
2645 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2646 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2648 sparc ) dynodump_arch=sparc ;;
2649 *86* ) dynodump_arch=i386 ;;
2650 powerpc ) dynodump_arch=ppc ;;
2652 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
2656 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2658 if test "$unexec" = "unexaix.o"; then
2659 if test "$dynamic" = "no"; then
2660 start_flags="-Wl,-bnso,-bnodelcsect"
2661 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2662 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2663 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2665 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2666 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2669 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2670 echo "configure:2671: checking for terminateAndUnload in -lC" >&5
2671 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2673 xe_check_libs=" -lC "
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 /* Override any gcc2 internal prototype to avoid an error. */
2678 /* We use char because int might match the return type of a gcc2
2679 builtin and then its argument prototype would still apply. */
2680 char terminateAndUnload();
2683 terminateAndUnload()
2686 if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2688 eval "ac_cv_lib_$ac_lib_var=yes"
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2693 eval "ac_cv_lib_$ac_lib_var=no"
2698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2699 echo "$ac_t""yes" 1>&6
2700 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2702 echo "$ac_t""no" 1>&6
2707 elif test -n "$ld_text_start_addr"; then
2708 start_flags="-T $ld_text_start_addr -e __start"
2714 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2715 test -z "$linker" && linker='$(CC) -nostdlib'
2716 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2718 test "$GCC" != "yes" && lib_gcc=
2724 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2725 if test -n "$site_libraries"; then
2726 for arg in $site_libraries; do
2729 * ) test -d "$arg" || \
2730 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2733 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2737 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2738 if test -n "$site_includes"; then
2739 for arg in $site_includes; do
2742 * ) test -d "$arg" || \
2743 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2746 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2750 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2751 if test -n "$site_prefixes"; then
2752 for dir in $site_prefixes; do
2753 lib_dir="${dir}/lib"
2754 inc_dir="${dir}/include"
2755 if test ! -d "$dir"; then
2756 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2757 elif test ! -d "$lib_dir"; then
2758 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2760 if test -d "$inc_dir"; then
2761 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
2763 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
2769 for dir in "/usr/ccs/lib"; do
2770 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
2773 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2774 if test -n "$site_runtime_libraries"; then
2775 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2780 if test "$dynamic" = "no"; then add_runtime_path=no
2781 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2782 else case "$opsys" in
2783 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2784 * ) add_runtime_path=no ;;
2788 if test "$add_runtime_path" = "yes"; then
2789 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2790 echo "configure:2791: checking "for runtime libraries flag"" >&5
2792 sol2 ) dash_r="-R" ;;
2793 decosf* | linux* | irix*) dash_r="-rpath " ;;
2796 for try_dash_r in "-R" "-R " "-rpath "; do
2797 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2799 if test "$GCC" = "yes"; then
2800 set x $xe_check_libs; shift; xe_check_libs=""
2801 while test -n "$1"; do
2803 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2804 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2806 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2819 if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2821 dash_r="$try_dash_r"
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2828 test -n "$dash_r" && break
2831 if test -n "$dash_r";
2832 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2833 else echo "$ac_t""NONE" 1>&6
2837 xe_add_unique_runpath_dir='
2839 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2841 if test "$xe_add_p" = "yes"; then
2842 test -n "$runpath" && runpath="${runpath}:"
2843 runpath="${runpath}${xe_runpath_dir}"
2844 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2850 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2851 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2852 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2854 runpath="" runpath_dirs=""
2855 if test -n "$LD_RUN_PATH"; then
2856 runpath="$LD_RUN_PATH"
2857 elif test "$GCC" = "yes"; then
2858 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2859 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2860 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2861 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2862 case "$arg" in P,* | -L* | -R* )
2863 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2865 xe_runpath_dir="$dir"
2866 test "$xe_runpath_dir" != "/lib" -a \
2867 "$xe_runpath_dir" != "/usr/lib" -a \
2868 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2869 eval "$xe_add_unique_runpath_dir"
2874 ld_switch_run="$ld_switch_run_save"
2877 for arg in $ld_switch_site $ld_switch_x_site; do
2878 case "$arg" in -L*) {
2879 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2880 test "$xe_runpath_dir" != "/lib" -a \
2881 "$xe_runpath_dir" != "/usr/lib" -a \
2882 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2883 eval "$xe_add_unique_runpath_dir"
2886 if test "$opsys $need_motif" = "sol2 yes"; then
2887 xe_runpath_dir="/opt/SUNWdt/lib";
2888 eval "$xe_add_unique_runpath_dir";
2891 if test -n "$runpath"; then
2892 ld_switch_run="${dash_r}${runpath}"
2894 if test "$GCC" = "yes"; then
2895 set x $ld_switch_run; shift; ld_switch_run=""
2896 while test -n "$1"; do
2898 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2899 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2901 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2906 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2914 if test "$with_dlmalloc" != "no"; then
2919 after_morecore_hook_exists=yes
2920 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2921 echo "configure:2922: checking for malloc_get_state" >&5
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 /* System header to define __stub macros and hopefully few prototypes,
2927 which can conflict with char malloc_get_state(); below. */
2929 /* Override any gcc2 internal prototype to avoid an error. */
2930 /* We use char because int might match the return type of a gcc2
2931 builtin and then its argument prototype would still apply. */
2932 char malloc_get_state();
2936 /* The GNU C library defines this for functions which it implements
2937 to always fail with ENOSYS. Some functions are actually named
2938 something starting with __ and the normal name is an alias. */
2939 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2949 eval "ac_cv_func_malloc_get_state=yes"
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 eval "ac_cv_func_malloc_get_state=no"
2958 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2959 echo "$ac_t""yes" 1>&6
2962 echo "$ac_t""no" 1>&6
2966 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2967 echo "configure:2968: checking for malloc_set_state" >&5
2969 cat > conftest.$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2972 /* System header to define __stub macros and hopefully few prototypes,
2973 which can conflict with char malloc_set_state(); below. */
2975 /* Override any gcc2 internal prototype to avoid an error. */
2976 /* We use char because int might match the return type of a gcc2
2977 builtin and then its argument prototype would still apply. */
2978 char malloc_set_state();
2982 /* The GNU C library defines this for functions which it implements
2983 to always fail with ENOSYS. Some functions are actually named
2984 something starting with __ and the normal name is an alias. */
2985 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2993 if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2995 eval "ac_cv_func_malloc_set_state=yes"
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 eval "ac_cv_func_malloc_set_state=no"
3004 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3005 echo "$ac_t""yes" 1>&6
3008 echo "$ac_t""no" 1>&6
3012 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3013 echo "configure:3014: checking whether __after_morecore_hook exists" >&5
3014 cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3017 extern void (* __after_morecore_hook)();
3019 __after_morecore_hook = 0
3022 if { (eval echo configure:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3024 echo "$ac_t""yes" 1>&6
3026 echo "configure: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3029 echo "$ac_t""no" 1>&6
3030 after_morecore_hook_exists=no
3033 if test "$system_malloc" = "yes" ; then
3036 (The GNU allocators don't work with this system configuration)."
3037 elif test "$with_system_malloc" = "yes" ; then
3040 (User chose not to use GNU allocators)."
3041 elif test "$with_debug_malloc" = "yes" ; then
3044 (User chose to use Debugging Malloc)."
3047 if test "$doug_lea_malloc" = "yes" ; then
3048 if test "$GNU_MALLOC" = yes ; then
3050 (Using Doug Lea's new malloc from the GNU C Library.)"
3052 { test "$extra_verbose" = "yes" && cat << \EOF
3053 Defining DOUG_LEA_MALLOC
3055 cat >> confdefs.h <<\EOF
3056 #define DOUG_LEA_MALLOC 1
3060 if test "$after_morecore_hook_exists" = "no" ; then
3062 (Using Doug Lea's new malloc from the Linux C Library.)"
3063 { test "$extra_verbose" = "yes" && cat << \EOF
3064 Defining _NO_MALLOC_WARNING_
3066 cat >> confdefs.h <<\EOF
3067 #define _NO_MALLOC_WARNING_ 1
3072 use_minimal_tagbits=yes
3078 # Extract the first word of "ranlib", so it can be a program name with args.
3079 set dummy ranlib; ac_word=$2
3080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3081 echo "configure:3082: checking for $ac_word" >&5
3083 if test -n "$RANLIB"; then
3084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3088 for ac_dir in $ac_dummy; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f $ac_dir/$ac_word; then
3091 ac_cv_prog_RANLIB="ranlib"
3096 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3098 RANLIB="$ac_cv_prog_RANLIB"
3099 if test -n "$RANLIB"; then
3100 echo "$ac_t""$RANLIB" 1>&6
3102 echo "$ac_t""no" 1>&6
3106 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3107 if test -f $ac_dir/install-sh; then
3109 ac_install_sh="$ac_aux_dir/install-sh -c"
3111 elif test -f $ac_dir/install.sh; then
3113 ac_install_sh="$ac_aux_dir/install.sh -c"
3117 if test -z "$ac_aux_dir"; then
3118 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3120 ac_config_guess=$ac_aux_dir/config.guess
3121 ac_config_sub=$ac_aux_dir/config.sub
3122 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3124 # Find a good install program. We prefer a C program (faster),
3125 # so one script is as good as another. But avoid the broken or
3126 # incompatible versions:
3127 # SysV /etc/install, /usr/sbin/install
3128 # SunOS /usr/etc/install
3129 # IRIX /sbin/install
3131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3134 # ./install, which can be erroneously created by make from ./install.sh.
3135 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3136 echo "configure:3137: checking for a BSD compatible install" >&5
3137 if test -z "$INSTALL"; then
3139 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3140 for ac_dir in $PATH; do
3141 # Account for people who put trailing slashes in PATH elements.
3143 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3145 # OSF1 and SCO ODT 3.0 have their own names for install.
3146 # Don't use installbsd from OSF since it installs stuff as root
3148 for ac_prog in ginstall scoinst install; do
3149 if test -f $ac_dir/$ac_prog; then
3150 if test $ac_prog = install &&
3151 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3152 # AIX install. It has an incompatible calling convention.
3155 ac_cv_path_install="$ac_dir/$ac_prog -c"
3165 if test "${ac_cv_path_install+set}" = set; then
3166 INSTALL="$ac_cv_path_install"
3168 # As a last resort, use the slow shell script. We don't cache a
3169 # path for INSTALL within a source directory, because that will
3170 # break other packages using the cache if that directory is
3171 # removed, or if the path is relative.
3172 INSTALL="$ac_install_sh"
3175 echo "$ac_t""$INSTALL" 1>&6
3177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3178 # It thinks the first close brace ends the variable substitution.
3179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3185 for ac_prog in 'bison -y' byacc
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3190 echo "configure:3191: checking for $ac_word" >&5
3192 if test -n "$YACC"; then
3193 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3197 for ac_dir in $ac_dummy; do
3198 test -z "$ac_dir" && ac_dir=.
3199 if test -f $ac_dir/$ac_word; then
3200 ac_cv_prog_YACC="$ac_prog"
3206 YACC="$ac_cv_prog_YACC"
3207 if test -n "$YACC"; then
3208 echo "$ac_t""$YACC" 1>&6
3210 echo "$ac_t""no" 1>&6
3213 test -n "$YACC" && break
3215 test -n "$YACC" || YACC="yacc"
3218 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_hdr" >&5
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3230 { (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3232 if test -z "$ac_err"; then
3234 eval "ac_cv_header_$ac_safe=yes"
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3240 eval "ac_cv_header_$ac_safe=no"
3243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3246 { test "$extra_verbose" = "yes" && cat << EOF
3249 cat >> confdefs.h <<EOF
3250 #define $ac_tr_hdr 1
3255 echo "$ac_t""no" 1>&6
3259 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3263 echo "configure:3264: checking for $ac_hdr" >&5
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3271 { (eval echo configure:3272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3273 if test -z "$ac_err"; then
3275 eval "ac_cv_header_$ac_safe=yes"
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3281 eval "ac_cv_header_$ac_safe=no"
3284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3285 echo "$ac_t""yes" 1>&6
3286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3287 { test "$extra_verbose" = "yes" && cat << EOF
3290 cat >> confdefs.h <<EOF
3291 #define $ac_tr_hdr 1
3296 echo "$ac_t""no" 1>&6
3300 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3304 echo "configure:3305: checking for $ac_hdr" >&5
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3312 { (eval echo configure:3313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3314 if test -z "$ac_err"; then
3316 eval "ac_cv_header_$ac_safe=yes"
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3322 eval "ac_cv_header_$ac_safe=no"
3325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3326 echo "$ac_t""yes" 1>&6
3327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3328 { test "$extra_verbose" = "yes" && cat << EOF
3331 cat >> confdefs.h <<EOF
3332 #define $ac_tr_hdr 1
3337 echo "$ac_t""no" 1>&6
3341 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3342 echo "configure:3343: checking for sys/wait.h that is POSIX.1 compatible" >&5
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <sys/types.h>
3348 #include <sys/wait.h>
3350 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3353 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3358 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3361 if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3363 ac_cv_header_sys_wait_h=yes
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3368 ac_cv_header_sys_wait_h=no
3372 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3373 if test $ac_cv_header_sys_wait_h = yes; then
3374 { test "$extra_verbose" = "yes" && cat << \EOF
3375 Defining HAVE_SYS_WAIT_H
3377 cat >> confdefs.h <<\EOF
3378 #define HAVE_SYS_WAIT_H 1
3384 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3385 echo "configure:3386: checking for ANSI C header files" >&5
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3396 { (eval echo configure:3397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3398 if test -z "$ac_err"; then
3400 ac_cv_header_stdc=yes
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3406 ac_cv_header_stdc=no
3410 if test $ac_cv_header_stdc = yes; then
3411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3418 egrep "memchr" >/dev/null 2>&1; then
3422 ac_cv_header_stdc=no
3428 if test $ac_cv_header_stdc = yes; then
3429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3430 cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3436 egrep "free" >/dev/null 2>&1; then
3440 ac_cv_header_stdc=no
3446 if test $ac_cv_header_stdc = yes; then
3447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3452 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3453 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3455 int main () { int i; for (i = 0; i < 256; i++)
3456 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3460 if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3468 ac_cv_header_stdc=no
3473 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3474 if test $ac_cv_header_stdc = yes; then
3475 { test "$extra_verbose" = "yes" && cat << \EOF
3476 Defining STDC_HEADERS
3478 cat >> confdefs.h <<\EOF
3479 #define STDC_HEADERS 1
3485 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3486 echo "configure:3487: checking whether time.h and sys/time.h may both be included" >&5
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <sys/types.h>
3492 #include <sys/time.h>
3498 if { (eval echo configure:3499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3500 ac_cv_header_time=yes
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 ac_cv_header_time=no
3509 echo "$ac_t""$ac_cv_header_time" 1>&6
3510 if test $ac_cv_header_time = yes; then
3511 { test "$extra_verbose" = "yes" && cat << \EOF
3512 Defining TIME_WITH_SYS_TIME
3514 cat >> confdefs.h <<\EOF
3515 #define TIME_WITH_SYS_TIME 1
3521 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3522 echo "configure:3523: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <sys/types.h>
3529 /* NetBSD declares sys_siglist in unistd.h. */
3530 #ifdef HAVE_UNISTD_H
3534 char *msg = *(sys_siglist + 1);
3537 if { (eval echo configure:3538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3539 ac_cv_decl_sys_siglist=yes
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 ac_cv_decl_sys_siglist=no
3548 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3549 if test $ac_cv_decl_sys_siglist = yes; then
3550 { test "$extra_verbose" = "yes" && cat << \EOF
3551 Defining SYS_SIGLIST_DECLARED
3553 cat >> confdefs.h <<\EOF
3554 #define SYS_SIGLIST_DECLARED 1
3561 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3562 echo "configure:3563: checking for struct utimbuf" >&5
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 #ifdef TIME_WITH_SYS_TIME
3567 #include <sys/time.h>
3570 #ifdef HAVE_SYS_TIME_H
3571 #include <sys/time.h>
3580 static struct utimbuf x; x.actime = x.modtime;
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 echo "$ac_t""yes" 1>&6
3586 { test "$extra_verbose" = "yes" && cat << \EOF
3587 Defining HAVE_STRUCT_UTIMBUF
3589 cat >> confdefs.h <<\EOF
3590 #define HAVE_STRUCT_UTIMBUF 1
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 echo "$ac_t""no" 1>&6
3602 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3603 echo "configure:3604: checking return type of signal handlers" >&5
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <sys/types.h>
3614 extern "C" void (*signal (int, void (*)(int)))(int);
3616 void (*signal ()) ();
3623 if { (eval echo configure:3624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3625 ac_cv_type_signal=void
3627 echo "configure: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3630 ac_cv_type_signal=int
3634 echo "$ac_t""$ac_cv_type_signal" 1>&6
3635 { test "$extra_verbose" = "yes" && cat << EOF
3636 Defining RETSIGTYPE = $ac_cv_type_signal
3638 cat >> confdefs.h <<EOF
3639 #define RETSIGTYPE $ac_cv_type_signal
3644 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3645 echo "configure:3646: checking for size_t" >&5
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <sys/types.h>
3656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3659 ac_cv_type_size_t=yes
3662 ac_cv_type_size_t=no
3666 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3667 if test $ac_cv_type_size_t = no; then
3668 { test "$extra_verbose" = "yes" && cat << \EOF
3669 Defining size_t = unsigned
3671 cat >> confdefs.h <<\EOF
3672 #define size_t unsigned
3678 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3679 echo "configure:3680: checking for pid_t" >&5
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 #include <sys/types.h>
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3693 ac_cv_type_pid_t=yes
3700 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3701 if test $ac_cv_type_pid_t = no; then
3702 { test "$extra_verbose" = "yes" && cat << \EOF
3703 Defining pid_t = int
3705 cat >> confdefs.h <<\EOF
3712 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3713 echo "configure:3714: checking for uid_t in sys/types.h" >&5
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #include <sys/types.h>
3720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3721 egrep "uid_t" >/dev/null 2>&1; then
3723 ac_cv_type_uid_t=yes
3731 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3732 if test $ac_cv_type_uid_t = no; then
3733 { test "$extra_verbose" = "yes" && cat << \EOF
3734 Defining uid_t = int
3736 cat >> confdefs.h <<\EOF
3741 { test "$extra_verbose" = "yes" && cat << \EOF
3742 Defining gid_t = int
3744 cat >> confdefs.h <<\EOF
3751 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3752 echo "configure:3753: checking for mode_t" >&5
3754 cat > conftest.$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3757 #include <sys/types.h>
3763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3764 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3766 ac_cv_type_mode_t=yes
3769 ac_cv_type_mode_t=no
3773 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3774 if test $ac_cv_type_mode_t = no; then
3775 { test "$extra_verbose" = "yes" && cat << \EOF
3776 Defining mode_t = int
3778 cat >> confdefs.h <<\EOF
3785 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3786 echo "configure:3787: checking for off_t" >&5
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <sys/types.h>
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3800 ac_cv_type_off_t=yes
3807 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3808 if test $ac_cv_type_off_t = no; then
3809 { test "$extra_verbose" = "yes" && cat << \EOF
3810 Defining off_t = long
3812 cat >> confdefs.h <<\EOF
3819 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3820 echo "configure:3821: checking for ssize_t" >&5
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 #include <sys/types.h>
3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3834 ac_cv_type_ssize_t=yes
3837 ac_cv_type_ssize_t=no
3841 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3842 if test $ac_cv_type_ssize_t = no; then
3843 { test "$extra_verbose" = "yes" && cat << \EOF
3844 Defining ssize_t = int
3846 cat >> confdefs.h <<\EOF
3854 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3855 echo "configure:3856: checking for struct timeval" >&5
3856 cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3859 #ifdef TIME_WITH_SYS_TIME
3860 #include <sys/time.h>
3863 #ifdef HAVE_SYS_TIME_H
3864 #include <sys/time.h>
3870 static struct timeval x; x.tv_sec = x.tv_usec;
3873 if { (eval echo configure:3874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3875 echo "$ac_t""yes" 1>&6
3877 { test "$extra_verbose" = "yes" && cat << \EOF
3878 Defining HAVE_TIMEVAL
3880 cat >> confdefs.h <<\EOF
3881 #define HAVE_TIMEVAL 1
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 echo "$ac_t""no" 1>&6
3894 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3895 echo "configure:3896: checking whether struct tm is in sys/time.h or time.h" >&5
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 #include <sys/types.h>
3903 struct tm *tp; tp->tm_sec;
3906 if { (eval echo configure:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3908 ac_cv_struct_tm=time.h
3910 echo "configure: failed program was:" >&5
3911 cat conftest.$ac_ext >&5
3913 ac_cv_struct_tm=sys/time.h
3917 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3918 if test $ac_cv_struct_tm = sys/time.h; then
3919 { test "$extra_verbose" = "yes" && cat << \EOF
3920 Defining TM_IN_SYS_TIME
3922 cat >> confdefs.h <<\EOF
3923 #define TM_IN_SYS_TIME 1
3929 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3930 echo "configure:3931: checking for tm_zone in struct tm" >&5
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 #include <sys/types.h>
3936 #include <$ac_cv_struct_tm>
3938 struct tm tm; tm.tm_zone;
3941 if { (eval echo configure:3942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3943 ac_cv_struct_tm_zone=yes
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 ac_cv_struct_tm_zone=no
3952 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3953 if test "$ac_cv_struct_tm_zone" = yes; then
3954 { test "$extra_verbose" = "yes" && cat << \EOF
3955 Defining HAVE_TM_ZONE
3957 cat >> confdefs.h <<\EOF
3958 #define HAVE_TM_ZONE 1
3963 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3964 echo "configure:3965: checking for tzname" >&5
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3970 #ifndef tzname /* For SGI. */
3971 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3979 ac_cv_var_tzname=yes
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3988 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3989 if test $ac_cv_var_tzname = yes; then
3990 { test "$extra_verbose" = "yes" && cat << \EOF
3991 Defining HAVE_TZNAME
3993 cat >> confdefs.h <<\EOF
3994 #define HAVE_TZNAME 1
4002 echo $ac_n "checking for working const""... $ac_c" 1>&6
4003 echo "configure:4004: checking for working const" >&5
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4011 /* Ultrix mips cc rejects this. */
4012 typedef int charset[2]; const charset x;
4013 /* SunOS 4.1.1 cc rejects this. */
4014 char const *const *ccp;
4016 /* NEC SVR4.0.2 mips cc rejects this. */
4017 struct point {int x, y;};
4018 static struct point const zero = {0,0};
4019 /* AIX XL C 1.02.0.0 rejects this.
4020 It does not let you subtract one const X* pointer from another in an arm
4021 of an if-expression whose if-part is not a constant expression */
4022 const char *g = "string";
4023 ccp = &g + (g ? g-g : 0);
4024 /* HPUX 7.0 cc rejects these. */
4027 ccp = (char const *const *) p;
4028 { /* SCO 3.2v4 cc rejects this. */
4030 char const *s = 0 ? (char *) 0 : (char const *) 0;
4034 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4036 const int *foo = &x[0];
4039 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4040 typedef const int *iptr;
4044 { /* AIX XL C 1.02.0.0 rejects this saying
4045 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4046 struct s { int j; const int *ap[3]; };
4047 struct s *b; b->j = 5;
4049 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4066 echo "$ac_t""$ac_cv_c_const" 1>&6
4067 if test $ac_cv_c_const = no; then
4068 { test "$extra_verbose" = "yes" && cat << \EOF
4071 cat >> confdefs.h <<\EOF
4079 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4080 echo "configure:4081: checking whether ${MAKE-make} sets \${MAKE}" >&5
4081 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4083 cat > conftestmake <<\EOF
4085 @echo 'ac_maketemp="${MAKE}"'
4087 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4088 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4089 if test -n "$ac_maketemp"; then
4090 eval ac_cv_prog_make_${ac_make}_set=yes
4092 eval ac_cv_prog_make_${ac_make}_set=no
4095 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4099 echo "$ac_t""no" 1>&6
4100 SET_MAKE="MAKE=${MAKE-make}"
4104 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4105 echo "configure:4106: checking whether byte ordering is bigendian" >&5
4107 ac_cv_c_bigendian=unknown
4108 # See if sys/param.h defines the BYTE_ORDER macro.
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4112 #include <sys/types.h>
4113 #include <sys/param.h>
4116 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 # It does; now see whether it defined to BIG_ENDIAN or not.
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4127 #include <sys/types.h>
4128 #include <sys/param.h>
4131 #if BYTE_ORDER != BIG_ENDIAN
4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4138 ac_cv_c_bigendian=yes
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4143 ac_cv_c_bigendian=no
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4151 if test $ac_cv_c_bigendian = unknown; then
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4156 /* Are we little or big endian? From Harbison&Steele. */
4160 char c[sizeof (long)];
4163 exit (u.c[sizeof (long) - 1] == 1);
4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4168 ac_cv_c_bigendian=no
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4174 ac_cv_c_bigendian=yes
4179 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4180 if test $ac_cv_c_bigendian = yes; then
4181 { test "$extra_verbose" = "yes" && cat << \EOF
4182 Defining WORDS_BIGENDIAN
4184 cat >> confdefs.h <<\EOF
4185 #define WORDS_BIGENDIAN 1
4192 echo $ac_n "checking size of short""... $ac_c" 1>&6
4193 echo "configure:4194: checking size of short" >&5
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4201 FILE *f=fopen("conftestval", "w");
4203 fprintf(f, "%d\n", sizeof(short));
4207 if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4209 ac_cv_sizeof_short=`cat conftestval`
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4215 ac_cv_sizeof_short=0
4218 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4219 { test "$extra_verbose" = "yes" && cat << EOF
4220 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4222 cat >> confdefs.h <<EOF
4223 #define SIZEOF_SHORT $ac_cv_sizeof_short
4228 if test "$ac_cv_sizeof_short" = 0; then
4230 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4231 echo "*** PANIC *** Please examine config.log for compilation errors."
4234 echo $ac_n "checking size of int""... $ac_c" 1>&6
4235 echo "configure:4236: checking size of int" >&5
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4243 FILE *f=fopen("conftestval", "w");
4245 fprintf(f, "%d\n", sizeof(int));
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4251 ac_cv_sizeof_int=`cat conftestval`
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4260 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4261 { test "$extra_verbose" = "yes" && cat << EOF
4262 Defining SIZEOF_INT = $ac_cv_sizeof_int
4264 cat >> confdefs.h <<EOF
4265 #define SIZEOF_INT $ac_cv_sizeof_int
4270 echo $ac_n "checking size of long""... $ac_c" 1>&6
4271 echo "configure:4272: checking size of long" >&5
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4279 FILE *f=fopen("conftestval", "w");
4281 fprintf(f, "%d\n", sizeof(long));
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4287 ac_cv_sizeof_long=`cat conftestval`
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4296 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4297 { test "$extra_verbose" = "yes" && cat << EOF
4298 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4300 cat >> confdefs.h <<EOF
4301 #define SIZEOF_LONG $ac_cv_sizeof_long
4306 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4307 echo "configure:4308: checking size of long long" >&5
4309 cat > conftest.$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4315 FILE *f=fopen("conftestval", "w");
4317 fprintf(f, "%d\n", sizeof(long long));
4321 if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4323 ac_cv_sizeof_long_long=`cat conftestval`
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4329 ac_cv_sizeof_long_long=0
4332 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4333 { test "$extra_verbose" = "yes" && cat << EOF
4334 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4336 cat >> confdefs.h <<EOF
4337 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4342 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4343 echo "configure:4344: checking size of void *" >&5
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4351 FILE *f=fopen("conftestval", "w");
4353 fprintf(f, "%d\n", sizeof(void *));
4357 if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4359 ac_cv_sizeof_void_p=`cat conftestval`
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 ac_cv_sizeof_void_p=0
4368 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4369 { test "$extra_verbose" = "yes" && cat << EOF
4370 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4372 cat >> confdefs.h <<EOF
4373 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4379 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4380 echo "configure:4381: checking for long file names" >&5
4382 ac_cv_sys_long_file_names=yes
4383 # Test for long file names in all the places we know might matter:
4384 # . the current directory, where building will happen
4385 # $prefix/lib where we will be installing things
4386 # $exec_prefix/lib likewise
4387 # eval it to expand exec_prefix.
4388 # $TMPDIR if set, where it might want to write temporary files
4389 # if $TMPDIR is not set:
4390 # /tmp where it might want to write temporary files
4393 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4394 ac_tmpdirs="$TMPDIR"
4396 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4398 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4399 test -d $ac_dir || continue
4400 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4401 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4402 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4403 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4404 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4405 ac_cv_sys_long_file_names=no
4406 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4409 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4412 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4413 if test $ac_cv_sys_long_file_names = yes; then
4414 { test "$extra_verbose" = "yes" && cat << \EOF
4415 Defining HAVE_LONG_FILE_NAMES
4417 cat >> confdefs.h <<\EOF
4418 #define HAVE_LONG_FILE_NAMES 1
4425 echo $ac_n "checking for sin""... $ac_c" 1>&6
4426 echo "configure:4427: checking for sin" >&5
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 /* System header to define __stub macros and hopefully few prototypes,
4432 which can conflict with char sin(); below. */
4434 /* Override any gcc2 internal prototype to avoid an error. */
4435 /* We use char because int might match the return type of a gcc2
4436 builtin and then its argument prototype would still apply. */
4441 /* The GNU C library defines this for functions which it implements
4442 to always fail with ENOSYS. Some functions are actually named
4443 something starting with __ and the normal name is an alias. */
4444 #if defined (__stub_sin) || defined (__stub___sin)
4452 if { (eval echo configure:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4454 eval "ac_cv_func_sin=yes"
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4459 eval "ac_cv_func_sin=no"
4463 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4464 echo "$ac_t""yes" 1>&6
4467 echo "$ac_t""no" 1>&6
4469 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4470 echo "configure:4471: checking for sin in -lm" >&5
4471 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4473 xe_check_libs=" -lm "
4474 cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4477 /* Override any gcc2 internal prototype to avoid an error. */
4478 /* We use char because int might match the return type of a gcc2
4479 builtin and then its argument prototype would still apply. */
4486 if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4488 eval "ac_cv_lib_$ac_lib_var=yes"
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4493 eval "ac_cv_lib_$ac_lib_var=no"
4498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4499 echo "$ac_t""yes" 1>&6
4500 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4502 { test "$extra_verbose" = "yes" && cat << EOF
4505 cat >> confdefs.h <<EOF
4506 #define $ac_tr_lib 1
4510 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4513 echo "$ac_t""no" 1>&6
4520 { test "$extra_verbose" = "yes" && cat << \EOF
4521 Defining LISP_FLOAT_TYPE
4523 cat >> confdefs.h <<\EOF
4524 #define LISP_FLOAT_TYPE 1
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4534 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4539 { test "$extra_verbose" = "yes" && cat << \EOF
4540 Defining HAVE_INVERSE_HYPERBOLIC
4542 cat >> confdefs.h <<\EOF
4543 #define HAVE_INVERSE_HYPERBOLIC 1
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4553 echo "checking type of mail spool file locking" 1>&6
4554 echo "configure:4555: checking type of mail spool file locking" >&5
4555 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4556 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4557 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4558 Defining REAL_MAIL_USE_LOCKF
4560 cat >> confdefs.h <<\EOF
4561 #define REAL_MAIL_USE_LOCKF 1
4565 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4566 Defining REAL_MAIL_USE_FLOCK
4568 cat >> confdefs.h <<\EOF
4569 #define REAL_MAIL_USE_FLOCK 1
4573 else mail_locking="dot-locking"
4576 case "$opsys" in decosf*)
4578 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4579 echo "configure:4580: checking for cma_open in -lpthreads" >&5
4580 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4582 xe_check_libs=" -lpthreads "
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 eval "ac_cv_lib_$ac_lib_var=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4602 eval "ac_cv_lib_$ac_lib_var=no"
4607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4608 echo "$ac_t""yes" 1>&6
4609 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4610 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4611 { test "$extra_verbose" = "yes" && cat << EOF
4614 cat >> confdefs.h <<EOF
4615 #define $ac_tr_lib 1
4619 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4622 echo "$ac_t""no" 1>&6
4626 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4627 c_switch_site="$c_switch_site -threads" ;;
4630 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4631 echo "configure:4632: checking whether the -xildoff compiler flag is required" >&5
4632 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4633 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4634 then echo "$ac_t""no" 1>&6;
4635 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
4637 else echo "$ac_t""no" 1>&6
4640 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4641 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4642 echo "configure:4643: checking for \"-z ignore\" linker flag" >&5
4643 case "`ld -h 2>&1`" in
4644 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4645 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4646 *) echo "$ac_t""no" 1>&6 ;;
4651 echo "checking "for specified window system"" 1>&6
4652 echo "configure:4653: checking "for specified window system"" >&5
4654 if test "$with_x11" != "no"; then
4655 test "$x_includes $x_libraries" != "NONE NONE" && \
4656 window_system=x11 with_x11=yes
4659 if test "$x_includes $x_libraries" = "NONE NONE" \
4660 -a -n "$OPENWINHOME" \
4661 -a "$OPENWINHOME" != "/usr/openwin" \
4662 -a -d "$OPENWINHOME"; then
4663 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4664 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4665 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4668 if test "$x_includes" = "NONE"; then
4669 for dir in "/usr/X11" "/usr/X11R6"; do
4670 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4674 if test "$x_libraries" = "NONE"; then
4675 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4676 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4680 # If we find X, set shell vars x_includes and x_libraries to the
4681 # paths, otherwise set no_x=yes.
4682 # Uses ac_ vars as temps to allow command line to override cache and checks.
4683 # --without-x overrides everything else, but does not touch the cache.
4684 echo $ac_n "checking for X""... $ac_c" 1>&6
4685 echo "configure:4686: checking for X" >&5
4687 # Check whether --with-x or --without-x was given.
4688 if test "${with_x+set}" = set; then
4693 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4694 if test "x$with_x" = xno; then
4695 # The user explicitly disabled X.
4698 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4699 # Both variables are already set.
4703 # One or both of the vars are not set, and there is no cached value.
4704 ac_x_includes=NO ac_x_libraries=NO
4706 if mkdir conftestdir; then
4708 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4709 cat > Imakefile <<'EOF'
4711 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4713 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4715 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4716 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4717 for ac_extension in a so sl; do
4718 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4719 test -f $ac_im_libdir/libX11.$ac_extension; then
4720 ac_im_usrlibdir=$ac_im_libdir; break
4723 # Screen out bogus values from the imake configuration. They are
4724 # bogus both because they are the default anyway, and because
4725 # using them would break gcc on systems where it needs fixed includes.
4726 case "$ac_im_incroot" in
4728 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4730 case "$ac_im_usrlibdir" in
4732 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4739 if test "$ac_x_includes" = NO; then
4740 # Guess where to find include files, by looking for this one X11 .h file.
4741 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4743 # First, try using that file with no special directory specified.
4744 cat > conftest.$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4747 #include <$x_direct_test_include>
4749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4750 { (eval echo configure:4751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4752 if test -z "$ac_err"; then
4754 # We can compile using X headers with no special include directory.
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4761 # Look for the header file in a standard set of common directories.
4762 # Check X11 before X11Rn because it is often a symlink to the current release.
4765 /usr/X11R6/include \
4766 /usr/X11R5/include \
4767 /usr/X11R4/include \
4770 /usr/include/X11R6 \
4771 /usr/include/X11R5 \
4772 /usr/include/X11R4 \
4774 /usr/local/X11/include \
4775 /usr/local/X11R6/include \
4776 /usr/local/X11R5/include \
4777 /usr/local/X11R4/include \
4779 /usr/local/include/X11 \
4780 /usr/local/include/X11R6 \
4781 /usr/local/include/X11R5 \
4782 /usr/local/include/X11R4 \
4786 /usr/XFree86/include/X11 \
4789 /usr/local/include \
4790 /usr/unsupported/include \
4791 /usr/athena/include \
4792 /usr/local/x11r5/include \
4793 /usr/lpp/Xamples/include \
4795 /usr/openwin/include \
4796 /usr/openwin/share/include \
4799 if test -r "$ac_dir/$x_direct_test_include"; then
4800 ac_x_includes=$ac_dir
4806 fi # $ac_x_includes = NO
4808 if test "$ac_x_libraries" = NO; then
4809 # Check for the libraries.
4811 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4812 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4814 # See if we find them without any special options.
4815 # Don't add to $LIBS permanently.
4816 ac_save_LIBS="$LIBS"
4817 LIBS="-l$x_direct_test_library $LIBS"
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4823 ${x_direct_test_function}()
4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4828 LIBS="$ac_save_LIBS"
4829 # We can link X programs with no special library path.
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4835 LIBS="$ac_save_LIBS"
4836 # First see if replacing the include by lib works.
4837 # Check X11 before X11Rn because it is often a symlink to the current release.
4838 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4849 /usr/local/X11/lib \
4850 /usr/local/X11R6/lib \
4851 /usr/local/X11R5/lib \
4852 /usr/local/X11R4/lib \
4854 /usr/local/lib/X11 \
4855 /usr/local/lib/X11R6 \
4856 /usr/local/lib/X11R5 \
4857 /usr/local/lib/X11R4 \
4861 /usr/XFree86/lib/X11 \
4865 /usr/unsupported/lib \
4867 /usr/local/x11r5/lib \
4868 /usr/lpp/Xamples/lib \
4872 /usr/openwin/share/lib \
4875 for ac_extension in a so sl; do
4876 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4877 ac_x_libraries=$ac_dir
4884 fi # $ac_x_libraries = NO
4886 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4887 # Didn't find X anywhere. Cache the known absence of X.
4888 ac_cv_have_x="have_x=no"
4890 # Record where we found X for the cache.
4891 ac_cv_have_x="have_x=yes \
4892 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4895 eval "$ac_cv_have_x"
4898 if test "$have_x" != yes; then
4899 echo "$ac_t""$have_x" 1>&6
4902 # If each of the values was on the command line, it overrides each guess.
4903 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4904 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4905 # Update the cache value to reflect the command line values.
4906 ac_cv_have_x="have_x=yes \
4907 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4908 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4911 if test "$no_x" = yes; then
4912 # Not all programs may use this symbol, but it does not hurt to define it.
4913 { test "$extra_verbose" = "yes" && cat << \EOF
4914 Defining X_DISPLAY_MISSING
4916 cat >> confdefs.h <<\EOF
4917 #define X_DISPLAY_MISSING 1
4921 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4923 if test -n "$x_includes"; then
4924 X_CFLAGS="$X_CFLAGS -I$x_includes"
4927 # It would also be nice to do this for all -L options, not just this one.
4928 if test -n "$x_libraries"; then
4929 X_LIBS="$X_LIBS -L$x_libraries"
4930 # For Solaris; some versions of Sun CC require a space after -R and
4931 # others require no space. Words are not sufficient . . . .
4932 case "`(uname -sr) 2>/dev/null`" in
4934 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4935 echo "configure:4936: checking whether -R must be followed by a space" >&5
4936 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 echo "configure: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4955 if test $ac_R_nospace = yes; then
4956 echo "$ac_t""no" 1>&6
4957 X_LIBS="$X_LIBS -R$x_libraries"
4959 LIBS="$ac_xsave_LIBS -R $x_libraries"
4960 cat > conftest.$ac_ext <<EOF
4961 #line 4962 "configure"
4962 #include "confdefs.h"
4968 if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4978 if test $ac_R_space = yes; then
4979 echo "$ac_t""yes" 1>&6
4980 X_LIBS="$X_LIBS -R $x_libraries"
4982 echo "$ac_t""neither works" 1>&6
4985 LIBS="$ac_xsave_LIBS"
4989 # Check for system-dependent libraries X programs must link with.
4990 # Do this before checking for the system-independent R6 libraries
4991 # (-lICE), since we may need -lsocket or whatever for X linking.
4993 if test "$ISC" = yes; then
4994 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4996 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4997 # libraries were built with DECnet support. And karl@cs.umb.edu says
4998 # the Alpha needs dnet_stub (dnet does not exist).
4999 if test "$with_dnet" = "no" ; then
5000 ac_cv_lib_dnet_dnet_ntoa=no
5003 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5004 echo "configure:5005: checking for dnet_ntoa in -ldnet" >&5
5005 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5007 xe_check_libs=" -ldnet "
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 /* Override any gcc2 internal prototype to avoid an error. */
5012 /* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5022 eval "ac_cv_lib_$ac_lib_var=yes"
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5027 eval "ac_cv_lib_$ac_lib_var=no"
5032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5033 echo "$ac_t""yes" 1>&6
5034 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5036 echo "$ac_t""no" 1>&6
5041 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5043 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5044 echo "configure:5045: checking for dnet_ntoa in -ldnet_stub" >&5
5045 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5047 xe_check_libs=" -ldnet_stub "
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 eval "ac_cv_lib_$ac_lib_var=no"
5072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5073 echo "$ac_t""yes" 1>&6
5074 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5076 echo "$ac_t""no" 1>&6
5082 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5083 # to get the SysV transport functions.
5084 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5086 # The nsl library prevents programs from opening the X display
5087 # on Irix 5.2, according to dickey@clark.net.
5088 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5089 echo "configure:5090: checking for gethostbyname" >&5
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char gethostbyname(); below. */
5097 /* Override any gcc2 internal prototype to avoid an error. */
5098 /* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5100 char gethostbyname();
5104 /* The GNU C library defines this for functions which it implements
5105 to always fail with ENOSYS. Some functions are actually named
5106 something starting with __ and the normal name is an alias. */
5107 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5115 if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5117 eval "ac_cv_func_gethostbyname=yes"
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5122 eval "ac_cv_func_gethostbyname=no"
5126 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5127 echo "$ac_t""yes" 1>&6
5130 echo "$ac_t""no" 1>&6
5133 if test $ac_cv_func_gethostbyname = no; then
5135 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5136 echo "configure:5137: checking for gethostbyname in -lnsl" >&5
5137 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5139 xe_check_libs=" -lnsl "
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 /* Override any gcc2 internal prototype to avoid an error. */
5144 /* We use char because int might match the return type of a gcc2
5145 builtin and then its argument prototype would still apply. */
5146 char gethostbyname();
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154 eval "ac_cv_lib_$ac_lib_var=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 eval "ac_cv_lib_$ac_lib_var=no"
5164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5165 echo "$ac_t""yes" 1>&6
5166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5168 echo "$ac_t""no" 1>&6
5174 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5175 # socket/setsockopt and other routines are undefined under SCO ODT
5176 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5177 # on later versions), says simon@lia.di.epfl.ch: it contains
5178 # gethostby* variants that don't use the nameserver (or something).
5179 # -lsocket must be given before -lnsl if both are needed.
5180 # We assume that if connect needs -lnsl, so does gethostbyname.
5181 echo $ac_n "checking for connect""... $ac_c" 1>&6
5182 echo "configure:5183: checking for connect" >&5
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 /* System header to define __stub macros and hopefully few prototypes,
5188 which can conflict with char connect(); below. */
5190 /* Override any gcc2 internal prototype to avoid an error. */
5191 /* We use char because int might match the return type of a gcc2
5192 builtin and then its argument prototype would still apply. */
5197 /* The GNU C library defines this for functions which it implements
5198 to always fail with ENOSYS. Some functions are actually named
5199 something starting with __ and the normal name is an alias. */
5200 #if defined (__stub_connect) || defined (__stub___connect)
5208 if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5210 eval "ac_cv_func_connect=yes"
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 eval "ac_cv_func_connect=no"
5219 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5220 echo "$ac_t""yes" 1>&6
5223 echo "$ac_t""no" 1>&6
5226 if test $ac_cv_func_connect = no; then
5228 xe_msg_checking="for connect in -lsocket"
5229 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5230 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5231 echo "configure:5232: checking "$xe_msg_checking"" >&5
5232 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5234 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5238 /* Override any gcc2 internal prototype to avoid an error. */
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5249 eval "ac_cv_lib_$ac_lib_var=yes"
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 eval "ac_cv_lib_$ac_lib_var=no"
5259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5260 echo "$ac_t""yes" 1>&6
5261 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5263 echo "$ac_t""no" 1>&6
5269 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5270 echo $ac_n "checking for remove""... $ac_c" 1>&6
5271 echo "configure:5272: checking for remove" >&5
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 /* System header to define __stub macros and hopefully few prototypes,
5277 which can conflict with char remove(); below. */
5279 /* Override any gcc2 internal prototype to avoid an error. */
5280 /* We use char because int might match the return type of a gcc2
5281 builtin and then its argument prototype would still apply. */
5286 /* The GNU C library defines this for functions which it implements
5287 to always fail with ENOSYS. Some functions are actually named
5288 something starting with __ and the normal name is an alias. */
5289 #if defined (__stub_remove) || defined (__stub___remove)
5297 if { (eval echo configure:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5299 eval "ac_cv_func_remove=yes"
5301 echo "configure: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5304 eval "ac_cv_func_remove=no"
5308 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5309 echo "$ac_t""yes" 1>&6
5312 echo "$ac_t""no" 1>&6
5315 if test $ac_cv_func_remove = no; then
5317 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5318 echo "configure:5319: checking for remove in -lposix" >&5
5319 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5321 xe_check_libs=" -lposix "
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5325 /* Override any gcc2 internal prototype to avoid an error. */
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5334 if { (eval echo configure:5335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5336 eval "ac_cv_lib_$ac_lib_var=yes"
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5341 eval "ac_cv_lib_$ac_lib_var=no"
5346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5347 echo "$ac_t""yes" 1>&6
5348 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5350 echo "$ac_t""no" 1>&6
5356 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5357 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5358 echo "configure:5359: checking for shmat" >&5
5360 cat > conftest.$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5363 /* System header to define __stub macros and hopefully few prototypes,
5364 which can conflict with char shmat(); below. */
5366 /* Override any gcc2 internal prototype to avoid an error. */
5367 /* We use char because int might match the return type of a gcc2
5368 builtin and then its argument prototype would still apply. */
5373 /* The GNU C library defines this for functions which it implements
5374 to always fail with ENOSYS. Some functions are actually named
5375 something starting with __ and the normal name is an alias. */
5376 #if defined (__stub_shmat) || defined (__stub___shmat)
5384 if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5386 eval "ac_cv_func_shmat=yes"
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5391 eval "ac_cv_func_shmat=no"
5395 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5396 echo "$ac_t""yes" 1>&6
5399 echo "$ac_t""no" 1>&6
5402 if test $ac_cv_func_shmat = no; then
5404 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5405 echo "configure:5406: checking for shmat in -lipc" >&5
5406 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5408 xe_check_libs=" -lipc "
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5412 /* Override any gcc2 internal prototype to avoid an error. */
5413 /* We use char because int might match the return type of a gcc2
5414 builtin and then its argument prototype would still apply. */
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5423 eval "ac_cv_lib_$ac_lib_var=yes"
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5428 eval "ac_cv_lib_$ac_lib_var=no"
5433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5434 echo "$ac_t""yes" 1>&6
5435 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5437 echo "$ac_t""no" 1>&6
5444 # Check for libraries that X11R6 Xt/Xaw programs need.
5445 ac_save_LDFLAGS="$LDFLAGS"
5446 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5447 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5448 # check for ICE first), but we must link in the order -lSM -lICE or
5449 # we get undefined symbols. So assume we have SM if we have ICE.
5450 # These have to be linked with before -lX11, unlike the other
5451 # libraries we check for below, so use a different variable.
5452 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5454 xe_msg_checking="for IceConnectionNumber in -lICE"
5455 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5456 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5457 echo "configure:5458: checking "$xe_msg_checking"" >&5
5458 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5460 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 /* Override any gcc2 internal prototype to avoid an error. */
5465 /* We use char because int might match the return type of a gcc2
5466 builtin and then its argument prototype would still apply. */
5467 char IceConnectionNumber();
5470 IceConnectionNumber()
5473 if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5475 eval "ac_cv_lib_$ac_lib_var=yes"
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5480 eval "ac_cv_lib_$ac_lib_var=no"
5485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5486 echo "$ac_t""yes" 1>&6
5487 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5489 echo "$ac_t""no" 1>&6
5493 LDFLAGS="$ac_save_LDFLAGS"
5496 # Autoconf claims to find X library and include dirs for us.
5497 if test "$no_x" = "yes"
5498 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5499 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5504 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5505 no ) window_system=none HAVE_X_WINDOWS=no ;;
5508 if test "$with_x11" = "yes"; then
5509 { test "$extra_verbose" = "yes" && cat << \EOF
5510 Defining HAVE_X_WINDOWS
5512 cat >> confdefs.h <<\EOF
5513 #define HAVE_X_WINDOWS 1
5517 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5518 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5520 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5521 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5522 if test -d "$lib_dir" -a -d "$inc_dir"; then
5523 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5524 x_libraries="$lib_dir $x_libraries"
5525 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5527 case "$x_includes" in "$inc_dir"* ) ;; *)
5528 x_includes="$inc_dir $x_includes"
5529 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5534 for rel in "X11R6" "X11R5" "X11R4"; do
5535 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5536 if test -d "$lib_dir" -a -d "$inc_dir"; then
5537 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5538 x_libraries="$x_libraries $lib_dir"
5539 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5541 case "$x_includes" in "$inc_dir"* ) ;; *)
5542 x_includes="$x_includes $inc_dir"
5543 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5548 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
5550 ld_switch_x_site="$X_LIBS"
5553 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5554 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5555 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5557 runpath="" runpath_dirs=""
5558 if test -n "$LD_RUN_PATH"; then
5559 runpath="$LD_RUN_PATH"
5560 elif test "$GCC" = "yes"; then
5561 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5562 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5563 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5564 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5565 case "$arg" in P,* | -L* | -R* )
5566 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5568 xe_runpath_dir="$dir"
5569 test "$xe_runpath_dir" != "/lib" -a \
5570 "$xe_runpath_dir" != "/usr/lib" -a \
5571 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5572 eval "$xe_add_unique_runpath_dir"
5577 ld_switch_run="$ld_switch_run_save"
5580 for arg in $ld_switch_site $ld_switch_x_site; do
5581 case "$arg" in -L*) {
5582 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5583 test "$xe_runpath_dir" != "/lib" -a \
5584 "$xe_runpath_dir" != "/usr/lib" -a \
5585 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5586 eval "$xe_add_unique_runpath_dir"
5589 if test "$opsys $need_motif" = "sol2 yes"; then
5590 xe_runpath_dir="/opt/SUNWdt/lib";
5591 eval "$xe_add_unique_runpath_dir";
5594 if test -n "$runpath"; then
5595 ld_switch_run="${dash_r}${runpath}"
5597 if test "$GCC" = "yes"; then
5598 set x $ld_switch_run; shift; ld_switch_run=""
5599 while test -n "$1"; do
5601 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5602 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5604 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5609 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5614 if test "$extra_verbose" = "yes"; then
5615 echo; echo "X11 compilation variables:"
5616 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5621 if test "$x_includes" != NONE; then
5622 for i in $x_includes; do
5623 if test -d "$i/bitmaps"; then
5624 bitmapdirs="$i/bitmaps:$bitmapdirs"
5626 if test -d "$i/X11/bitmaps"; then
5627 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5630 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5632 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5633 Defining BITMAPDIR = "$bitmapdirs"
5635 cat >> confdefs.h <<EOF
5636 #define BITMAPDIR "$bitmapdirs"
5641 echo "checking for X defines extracted by xmkmf" 1>&6
5642 echo "configure:5643: checking for X defines extracted by xmkmf" >&5
5644 if mkdir conftestdir; then
5646 cat > Imakefile <<'EOF'
5648 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5650 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5651 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5652 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5656 for word in $xmkmf_defines; do
5659 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5660 { test "$extra_verbose" = "yes" && cat << EOF
5663 cat >> confdefs.h <<EOF
5672 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5673 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5674 echo "configure:5675: checking for X11/Intrinsic.h" >&5
5676 cat > conftest.$ac_ext <<EOF
5677 #line 5678 "configure"
5678 #include "confdefs.h"
5679 #include <X11/Intrinsic.h>
5681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5682 { (eval echo configure:5683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5684 if test -z "$ac_err"; then
5686 eval "ac_cv_header_$ac_safe=yes"
5689 echo "configure: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5692 eval "ac_cv_header_$ac_safe=no"
5695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5696 echo "$ac_t""yes" 1>&6
5699 echo "$ac_t""no" 1>&6
5700 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5705 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5706 echo "configure:5707: checking for XOpenDisplay in -lX11" >&5
5707 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5709 xe_check_libs=" -lX11 "
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5713 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5716 char XOpenDisplay();
5722 if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5724 eval "ac_cv_lib_$ac_lib_var=yes"
5726 echo "configure: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5729 eval "ac_cv_lib_$ac_lib_var=no"
5734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5735 echo "$ac_t""yes" 1>&6
5738 echo "$ac_t""no" 1>&6
5742 if test "$have_lib_x11" != "yes"; then
5744 xe_msg_checking="for XGetFontProperty in -lX11"
5745 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5746 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5747 echo "configure:5748: checking "$xe_msg_checking"" >&5
5748 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5750 xe_check_libs=" -lX11 -b i486-linuxaout"
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 /* We use char because int might match the return type of a gcc2
5756 builtin and then its argument prototype would still apply. */
5757 char XGetFontProperty();
5763 if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5765 eval "ac_cv_lib_$ac_lib_var=yes"
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5770 eval "ac_cv_lib_$ac_lib_var=no"
5775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5776 echo "$ac_t""yes" 1>&6
5777 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5779 echo "$ac_t""no" 1>&6
5780 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5786 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5789 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5790 echo "configure:5791: checking for XShapeSelectInput in -lXext" >&5
5791 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5793 xe_check_libs=" -lXext "
5794 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5797 /* Override any gcc2 internal prototype to avoid an error. */
5798 /* We use char because int might match the return type of a gcc2
5799 builtin and then its argument prototype would still apply. */
5800 char XShapeSelectInput();
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5808 eval "ac_cv_lib_$ac_lib_var=yes"
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5813 eval "ac_cv_lib_$ac_lib_var=no"
5818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5819 echo "$ac_t""yes" 1>&6
5820 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5822 echo "$ac_t""no" 1>&6
5828 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5829 echo "configure:5830: checking for XtOpenDisplay in -lXt" >&5
5830 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5832 xe_check_libs=" -lXt "
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 /* Override any gcc2 internal prototype to avoid an error. */
5837 /* We use char because int might match the return type of a gcc2
5838 builtin and then its argument prototype would still apply. */
5839 char XtOpenDisplay();
5845 if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5847 eval "ac_cv_lib_$ac_lib_var=yes"
5849 echo "configure: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 eval "ac_cv_lib_$ac_lib_var=no"
5857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5858 echo "$ac_t""yes" 1>&6
5859 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5861 echo "$ac_t""no" 1>&6
5862 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5867 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5868 echo "configure:5869: checking the version of X11 being used" >&5
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5872 #include <X11/Intrinsic.h>
5873 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5877 ./conftest foobar; x11_release=$?
5880 echo "configure: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5886 echo "$ac_t""R${x11_release}" 1>&6
5887 { test "$extra_verbose" = "yes" && cat << EOF
5888 Defining THIS_IS_X11R${x11_release}
5890 cat >> confdefs.h <<EOF
5891 #define THIS_IS_X11R${x11_release} 1
5896 for ac_hdr in X11/Xlocale.h
5898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5900 echo "configure:5901: checking for $ac_hdr" >&5
5902 cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5908 { (eval echo configure:5909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5910 if test -z "$ac_err"; then
5912 eval "ac_cv_header_$ac_safe=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5918 eval "ac_cv_header_$ac_safe=no"
5921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5922 echo "$ac_t""yes" 1>&6
5923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5924 { test "$extra_verbose" = "yes" && cat << EOF
5927 cat >> confdefs.h <<EOF
5928 #define $ac_tr_hdr 1
5933 echo "$ac_t""no" 1>&6
5938 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5939 echo "configure:5940: checking for XFree86" >&5
5940 if test -d "/usr/X386/include" -o \
5941 -f "/etc/XF86Config" -o \
5942 -f "/etc/X11/XF86Config" -o \
5943 -f "/usr/X11R6/lib/X11/XF86Config"; then
5944 echo "$ac_t""yes" 1>&6
5945 { test "$extra_verbose" = "yes" && cat << \EOF
5946 Defining HAVE_XFREE386
5948 cat >> confdefs.h <<\EOF
5949 #define HAVE_XFREE386 1
5954 echo "$ac_t""no" 1>&6
5957 test -z "$with_xmu" && {
5958 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5959 echo "configure:5960: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5960 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5962 xe_check_libs=" -lXmu "
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 /* Override any gcc2 internal prototype to avoid an error. */
5967 /* We use char because int might match the return type of a gcc2
5968 builtin and then its argument prototype would still apply. */
5969 char XmuReadBitmapDataFromFile();
5972 XmuReadBitmapDataFromFile()
5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5977 eval "ac_cv_lib_$ac_lib_var=yes"
5979 echo "configure: failed program was:" >&5
5980 cat conftest.$ac_ext >&5
5982 eval "ac_cv_lib_$ac_lib_var=no"
5987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5988 echo "$ac_t""yes" 1>&6
5991 echo "$ac_t""no" 1>&6
5996 if test "$with_xmu" = "no"; then
5997 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5998 echo " xemacs will be linked with \"xmu.o\""
6001 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6002 { test "$extra_verbose" = "yes" && cat << \EOF
6005 cat >> confdefs.h <<\EOF
6013 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6014 echo "configure:6015: checking for main in -lXbsd" >&5
6015 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6017 xe_check_libs=" -lXbsd "
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6026 if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6028 eval "ac_cv_lib_$ac_lib_var=yes"
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6033 eval "ac_cv_lib_$ac_lib_var=no"
6038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6039 echo "$ac_t""yes" 1>&6
6040 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6042 echo "$ac_t""no" 1>&6
6047 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6048 if test "$GCC" = "yes"; then
6049 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6050 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6053 "xlc" ) CC="xlc_r" ;;
6054 "xlC" ) CC="xlC_r" ;;
6061 if test "$with_msw" != "no"; then
6062 echo "checking for MS-Windows" 1>&6
6063 echo "configure:6064: checking for MS-Windows" >&5
6065 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6066 echo "configure:6067: checking for main in -lgdi32" >&5
6067 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6069 xe_check_libs=" -lgdi32 "
6070 cat > conftest.$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6078 if { (eval echo configure:6079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6080 eval "ac_cv_lib_$ac_lib_var=yes"
6082 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5
6085 eval "ac_cv_lib_$ac_lib_var=no"
6090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6091 echo "$ac_t""yes" 1>&6
6094 echo "$ac_t""no" 1>&6
6098 if test "$with_msw" = "yes"; then
6099 { test "$extra_verbose" = "yes" && cat << \EOF
6100 Defining HAVE_MS_WINDOWS
6102 cat >> confdefs.h <<\EOF
6103 #define HAVE_MS_WINDOWS 1
6107 install_pp="$blddir/lib-src/installexe.sh"
6108 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6109 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6110 if test "$window_system" != x11; then
6112 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6113 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6114 echo " xemacs will be linked with \"scrollbar-msw.o\""
6116 test "$with_menubars" != "no" && with_menubars=msw \
6117 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6118 echo " xemacs will be linked with \"menubar-msw.o\""
6120 test "$with_toolbars" != "no" && with_toolbars=msw \
6121 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6122 echo " xemacs will be linked with \"toolbar-msw.o\""
6124 test "$with_dialogs" != "no" && with_dialogs=msw \
6125 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6126 echo " xemacs will be linked with \"dialog-msw.o\""
6128 test "$with_widgets" != "no" && with_widgets=msw
6130 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6131 echo " xemacs will be linked with \"scrollbar-msw.o\""
6133 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6134 echo " xemacs will be linked with \"menubar-msw.o\""
6136 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6137 echo " xemacs will be linked with \"toolbar-msw.o\""
6139 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6140 echo " xemacs will be linked with \"dialog-msw.o\""
6143 cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6147 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6151 { test "$extra_verbose" = "yes" && cat << \EOF
6152 Defining HAVE_MSG_SELECT
6154 cat >> confdefs.h <<\EOF
6155 #define HAVE_MSG_SELECT 1
6161 echo "configure: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6166 with_file_coding=yes
6167 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
6168 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\""
6175 test -z "$window_system" && window_system="none"
6177 if test "$window_system" = "none"; then
6178 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6180 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6181 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6183 eval "with_${feature}=no"
6186 test -z "$with_toolbars" && with_toolbars=yes
6189 if test "$with_msw" != "yes"; then
6190 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6192 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6193 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6195 eval "with_${feature}=no"
6201 if test "$with_x11" != "yes"; then
6202 for feature in tooltalk cde offix wmcommand xim xmu xpm nas_sound
6204 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6205 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6207 eval "with_${feature}=no"
6213 case "$window_system" in
6214 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6215 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6216 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6219 case "$x_libraries" in *X11R4* )
6220 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6221 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6224 echo "checking for WM_COMMAND option" 1>&6
6225 echo "configure:6226: checking for WM_COMMAND option" >&5;
6226 if test "$with_wmcommand" != "no"; then
6227 { test "$extra_verbose" = "yes" && cat << \EOF
6228 Defining HAVE_WMCOMMAND
6230 cat >> confdefs.h <<\EOF
6231 #define HAVE_WMCOMMAND 1
6237 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6238 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6239 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6240 echo "configure:6241: checking for X11/Xauth.h" >&5
6242 cat > conftest.$ac_ext <<EOF
6243 #line 6244 "configure"
6244 #include "confdefs.h"
6245 #include <X11/Xauth.h>
6247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6248 { (eval echo configure:6249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6250 if test -z "$ac_err"; then
6252 eval "ac_cv_header_$ac_safe=yes"
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6258 eval "ac_cv_header_$ac_safe=no"
6261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6262 echo "$ac_t""yes" 1>&6
6265 echo "$ac_t""no" 1>&6
6269 test -z "$with_xauth" && {
6270 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6271 echo "configure:6272: checking for XauGetAuthByAddr in -lXau" >&5
6272 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6274 xe_check_libs=" -lXau "
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 /* Override any gcc2 internal prototype to avoid an error. */
6279 /* We use char because int might match the return type of a gcc2
6280 builtin and then its argument prototype would still apply. */
6281 char XauGetAuthByAddr();
6287 if { (eval echo configure:6288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6289 eval "ac_cv_lib_$ac_lib_var=yes"
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6294 eval "ac_cv_lib_$ac_lib_var=no"
6299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6300 echo "$ac_t""yes" 1>&6
6303 echo "$ac_t""no" 1>&6
6308 test -z "$with_xauth" && with_xauth=yes
6309 if test "$with_xauth" = "yes"; then
6310 { test "$extra_verbose" = "yes" && cat << \EOF
6313 cat >> confdefs.h <<\EOF
6314 #define HAVE_XAUTH 1
6320 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
6328 if test "$with_tooltalk" != "no" ; then
6329 for dir in "" "Tt/" "desktop/" ; do
6330 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6331 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6332 echo "configure:6333: checking for ${dir}tt_c.h" >&5
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 #include <${dir}tt_c.h>
6339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6340 { (eval echo configure:6341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6342 if test -z "$ac_err"; then
6344 eval "ac_cv_header_$ac_safe=yes"
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 eval "ac_cv_header_$ac_safe=no"
6353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6354 echo "$ac_t""yes" 1>&6
6355 tt_c_h_path="${dir}tt_c.h"; break
6357 echo "$ac_t""no" 1>&6
6361 if test -z "$tt_c_h_path"; then
6362 if test "$with_tooltalk" = "yes"; then
6363 (echo "$progname: Usage error:"
6364 echo " " "Unable to find required tooltalk header files."
6365 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6370 if test "$with_tooltalk" != "no" ; then
6371 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6373 xe_msg_checking="for tt_message_create in -ltt"
6374 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6375 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6376 echo "configure:6377: checking "$xe_msg_checking"" >&5
6377 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6379 xe_check_libs=" -ltt $extra_libs"
6380 cat > conftest.$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6383 /* Override any gcc2 internal prototype to avoid an error. */
6384 /* We use char because int might match the return type of a gcc2
6385 builtin and then its argument prototype would still apply. */
6386 char tt_message_create();
6392 if { (eval echo configure:6393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394 eval "ac_cv_lib_$ac_lib_var=yes"
6396 echo "configure: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6399 eval "ac_cv_lib_$ac_lib_var=no"
6404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6405 echo "$ac_t""yes" 1>&6
6406 tt_libs="-ltt $extra_libs"; break
6408 echo "$ac_t""no" 1>&6
6414 if test -z "$tt_libs"; then
6415 if test "$with_tooltalk" = "yes"; then
6416 (echo "$progname: Usage error:"
6417 echo " " "Unable to find required tooltalk libraries."
6418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6423 test -z "$with_tooltalk" && with_tooltalk=yes
6424 if test "$with_tooltalk" = "yes"; then
6425 { test "$extra_verbose" = "yes" && cat << \EOF
6428 cat >> confdefs.h <<\EOF
6433 { test "$extra_verbose" = "yes" && cat << EOF
6434 Defining TT_C_H_PATH = "$tt_c_h_path"
6436 cat >> confdefs.h <<EOF
6437 #define TT_C_H_PATH "$tt_c_h_path"
6441 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6442 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6443 echo " xemacs will be linked with \"tooltalk.o\""
6447 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6448 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6449 echo "configure:6450: checking for Dt/Dt.h" >&5
6451 cat > conftest.$ac_ext <<EOF
6452 #line 6453 "configure"
6453 #include "confdefs.h"
6456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6457 { (eval echo configure:6458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6459 if test -z "$ac_err"; then
6461 eval "ac_cv_header_$ac_safe=yes"
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 eval "ac_cv_header_$ac_safe=no"
6470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6471 echo "$ac_t""yes" 1>&6
6474 echo "$ac_t""no" 1>&6
6478 test -z "$with_cde" && {
6479 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6480 echo "configure:6481: checking for DtDndDragStart in -lDtSvc" >&5
6481 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6483 xe_check_libs=" -lDtSvc "
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6490 char DtDndDragStart();
6496 if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6498 eval "ac_cv_lib_$ac_lib_var=yes"
6500 echo "configure: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6503 eval "ac_cv_lib_$ac_lib_var=no"
6508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6509 echo "$ac_t""yes" 1>&6
6512 echo "$ac_t""no" 1>&6
6517 test -z "$with_cde" && with_cde=yes
6518 if test "$with_dragndrop" = no; then
6519 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6522 if test "$with_cde" = "yes" ; then
6523 { test "$extra_verbose" = "yes" && cat << \EOF
6526 cat >> confdefs.h <<\EOF
6531 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6532 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6533 with_tooltalk=yes # CDE requires Tooltalk
6534 need_motif=yes # CDE requires Motif
6537 test "$window_system" != "x11" && with_offix=no
6538 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6539 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6542 if test "$with_dragndrop" = no; then
6543 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6546 if test "$with_cde" = yes; then
6547 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6550 test -z "$with_offix" && with_offix=no
6551 if test "$with_offix" = "yes"; then
6552 { test "$extra_verbose" = "yes" && cat << \EOF
6553 Defining HAVE_OFFIX_DND
6555 cat >> confdefs.h <<\EOF
6556 #define HAVE_OFFIX_DND 1
6560 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6561 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6564 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6565 echo "configure:6566: checking if drag and drop API is needed" >&5
6566 if test "$with_dragndrop" != "no" ; then
6567 if test -n "$dragndrop_proto" ; then
6569 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6570 { test "$extra_verbose" = "yes" && cat << \EOF
6571 Defining HAVE_DRAGNDROP
6573 cat >> confdefs.h <<\EOF
6574 #define HAVE_DRAGNDROP 1
6578 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6581 echo "$ac_t""no" 1>&6
6585 echo "checking for LDAP" 1>&6
6586 echo "configure:6587: checking for LDAP" >&5
6587 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6588 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6589 echo "configure:6590: checking for ldap.h" >&5
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6597 { (eval echo configure:6598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6599 if test -z "$ac_err"; then
6601 eval "ac_cv_header_$ac_safe=yes"
6604 echo "configure: failed program was:" >&5
6605 cat conftest.$ac_ext >&5
6607 eval "ac_cv_header_$ac_safe=no"
6610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6614 echo "$ac_t""no" 1>&6
6618 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6619 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6620 echo "configure:6621: checking for lber.h" >&5
6622 cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6628 { (eval echo configure:6629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6630 if test -z "$ac_err"; then
6632 eval "ac_cv_header_$ac_safe=yes"
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 eval "ac_cv_header_$ac_safe=no"
6641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6642 echo "$ac_t""yes" 1>&6
6645 echo "$ac_t""no" 1>&6
6649 if test "$with_ldap" != "no"; then
6651 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6652 echo "configure:6653: checking for ldap_search in -lldap" >&5
6653 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6655 xe_check_libs=" -lldap "
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6659 /* Override any gcc2 internal prototype to avoid an error. */
6660 /* We use char because int might match the return type of a gcc2
6661 builtin and then its argument prototype would still apply. */
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6670 eval "ac_cv_lib_$ac_lib_var=yes"
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6675 eval "ac_cv_lib_$ac_lib_var=no"
6680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6681 echo "$ac_t""yes" 1>&6
6682 with_ldap_nolber=yes
6684 echo "$ac_t""no" 1>&6
6689 test "$with_ldap_nolber" = "no" && {
6690 xe_msg_checking="for ldap_open in -lldap"
6691 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6692 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6693 echo "configure:6694: checking "$xe_msg_checking"" >&5
6694 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6696 xe_check_libs=" -lldap -llber"
6697 cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure"
6699 #include "confdefs.h"
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 eval "ac_cv_lib_$ac_lib_var=yes"
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 eval "ac_cv_lib_$ac_lib_var=no"
6721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6722 echo "$ac_t""yes" 1>&6
6725 echo "$ac_t""no" 1>&6
6730 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6731 xe_msg_checking="for ldap_open in -lldap"
6732 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6733 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6734 echo "configure:6735: checking "$xe_msg_checking"" >&5
6735 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6737 xe_check_libs=" -lldap -llber -lkrb"
6738 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure"
6740 #include "confdefs.h"
6741 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6750 if { (eval echo configure:6751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6752 eval "ac_cv_lib_$ac_lib_var=yes"
6754 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6757 eval "ac_cv_lib_$ac_lib_var=no"
6762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6763 echo "$ac_t""yes" 1>&6
6766 echo "$ac_t""no" 1>&6
6771 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6772 xe_msg_checking="for ldap_open in -lldap"
6773 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6774 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6775 echo "configure:6776: checking "$xe_msg_checking"" >&5
6776 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6778 xe_check_libs=" -lldap -llber -lkrb -ldes"
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 /* Override any gcc2 internal prototype to avoid an error. */
6783 /* We use char because int might match the return type of a gcc2
6784 builtin and then its argument prototype would still apply. */
6791 if { (eval echo configure:6792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6793 eval "ac_cv_lib_$ac_lib_var=yes"
6795 echo "configure: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6798 eval "ac_cv_lib_$ac_lib_var=no"
6803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6804 echo "$ac_t""yes" 1>&6
6805 with_ldap_krbdes=yes
6807 echo "$ac_t""no" 1>&6
6812 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
6814 if test "$with_ldap" = "yes"; then
6815 { test "$extra_verbose" = "yes" && cat << \EOF
6818 cat >> confdefs.h <<\EOF
6823 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6824 echo " xemacs will be linked with \"eldap.o\""
6826 if test "$with_ldap_nolber" = "yes" ; then
6827 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6829 if test "$with_ldap_krb" = "yes" ; then
6830 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6832 if test "$with_ldap_krbdes" = "yes" ; then
6833 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6834 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6836 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6837 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6839 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6842 echo "configure:6843: checking for $ac_func" >&5
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848 which can conflict with char $ac_func(); below. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6857 /* The GNU C library defines this for functions which it implements
6858 to always fail with ENOSYS. Some functions are actually named
6859 something starting with __ and the normal name is an alias. */
6860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6870 eval "ac_cv_func_$ac_func=yes"
6872 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6875 eval "ac_cv_func_$ac_func=no"
6879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6880 echo "$ac_t""yes" 1>&6
6881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6882 { test "$extra_verbose" = "yes" && cat << EOF
6883 Defining $ac_tr_func
6885 cat >> confdefs.h <<EOF
6886 #define $ac_tr_func 1
6891 echo "$ac_t""no" 1>&6
6898 if test "$window_system" != "none"; then
6899 echo "checking for graphics libraries" 1>&6
6900 echo "configure:6901: checking for graphics libraries" >&5
6903 if test -z "$with_xpm"; then
6904 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6905 echo "configure:6906: checking for Xpm - no older than 3.4f" >&5
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6910 #include <X11/xpm.h>
6911 int main(int c, char **v) {
6913 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6914 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6916 if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6918 ./conftest dummy_arg; xpm_status=$?;
6919 if test "$xpm_status" = "0"; then
6923 if test "$xpm_status" = "1"; then
6924 xpm_problem="Xpm library version and header file version don't match!"
6925 elif test "$xpm_status" = "2"; then
6926 xpm_problem="Xpm library version is too old!"
6928 xpm_problem="Internal xpm detection logic error!"
6931 *** WARNING *** $xpm_problem
6932 I'm not touching that with a 10-foot pole!
6933 If you really want to use the installed version of Xpm, rerun
6934 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6945 echo "$ac_t""$with_xpm" 1>&6
6947 if test "$with_xpm" = "yes"; then
6948 { test "$extra_verbose" = "yes" && cat << \EOF
6951 cat >> confdefs.h <<\EOF
6956 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6957 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6958 echo "configure:6959: checking for \"FOR_MSW\" xpm" >&5
6960 cat > conftest.$ac_ext <<EOF
6961 #line 6962 "configure"
6962 #include "confdefs.h"
6965 XpmCreatePixmapFromData()
6968 if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6972 echo "configure: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6979 echo "$ac_t""$xpm_for_msw" 1>&6
6980 if test "$xpm_for_msw" = "yes"; then
6981 { test "$extra_verbose" = "yes" && cat << \EOF
6984 cat >> confdefs.h <<\EOF
6992 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6993 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6994 echo "configure:6995: checking for compface.h" >&5
6996 cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
6999 #include <compface.h>
7001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7002 { (eval echo configure:7003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7004 if test -z "$ac_err"; then
7006 eval "ac_cv_header_$ac_safe=yes"
7009 echo "configure: failed program was:" >&5
7010 cat conftest.$ac_ext >&5
7012 eval "ac_cv_header_$ac_safe=no"
7015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7016 echo "$ac_t""yes" 1>&6
7019 echo "$ac_t""no" 1>&6
7023 test -z "$with_xface" && {
7024 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7025 echo "configure:7026: checking for UnGenFace in -lcompface" >&5
7026 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7028 xe_check_libs=" -lcompface "
7029 cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7041 if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7043 eval "ac_cv_lib_$ac_lib_var=yes"
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7048 eval "ac_cv_lib_$ac_lib_var=no"
7053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7054 echo "$ac_t""yes" 1>&6
7057 echo "$ac_t""no" 1>&6
7062 test -z "$with_xface" && with_xface=yes
7063 if test "$with_xface" = "yes"; then
7064 { test "$extra_verbose" = "yes" && cat << \EOF
7067 cat >> confdefs.h <<\EOF
7068 #define HAVE_XFACE 1
7072 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7075 if test "$with_gif" != "no"; then
7077 { test "$extra_verbose" = "yes" && cat << \EOF
7080 cat >> confdefs.h <<\EOF
7085 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7086 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7090 if test "$with_png $with_tiff" != "no no"; then
7092 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7093 echo "configure:7094: checking for inflate in -lc" >&5
7094 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7096 xe_check_libs=" -lc "
7097 cat > conftest.$ac_ext <<EOF
7098 #line 7099 "configure"
7099 #include "confdefs.h"
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */
7109 if { (eval echo configure:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7111 eval "ac_cv_lib_$ac_lib_var=yes"
7113 echo "configure: failed program was:" >&5
7114 cat conftest.$ac_ext >&5
7116 eval "ac_cv_lib_$ac_lib_var=no"
7121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7122 echo "$ac_t""yes" 1>&6
7125 echo "$ac_t""no" 1>&6
7127 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7128 echo "configure:7129: checking for inflate in -lz" >&5
7129 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7131 xe_check_libs=" -lz "
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7146 eval "ac_cv_lib_$ac_lib_var=yes"
7148 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7151 eval "ac_cv_lib_$ac_lib_var=no"
7156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7157 echo "$ac_t""yes" 1>&6
7158 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7160 echo "$ac_t""no" 1>&6
7162 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7163 echo "configure:7164: checking for inflate in -lgz" >&5
7164 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7166 xe_check_libs=" -lgz "
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7170 /* Override any gcc2 internal prototype to avoid an error. */
7171 /* We use char because int might match the return type of a gcc2
7172 builtin and then its argument prototype would still apply. */
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7181 eval "ac_cv_lib_$ac_lib_var=yes"
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7186 eval "ac_cv_lib_$ac_lib_var=no"
7191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7192 echo "$ac_t""yes" 1>&6
7193 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7195 echo "$ac_t""no" 1>&6
7207 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7208 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7209 echo "configure:7210: checking for jpeglib.h" >&5
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7214 #include <jpeglib.h>
7216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7217 { (eval echo configure:7218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7219 if test -z "$ac_err"; then
7221 eval "ac_cv_header_$ac_safe=yes"
7224 echo "configure: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7227 eval "ac_cv_header_$ac_safe=no"
7230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7231 echo "$ac_t""yes" 1>&6
7234 echo "$ac_t""no" 1>&6
7238 test -z "$with_jpeg" && {
7239 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7240 echo "configure:7241: checking for jpeg_destroy_decompress in -ljpeg" >&5
7241 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7243 xe_check_libs=" -ljpeg "
7244 cat > conftest.$ac_ext <<EOF
7245 #line 7246 "configure"
7246 #include "confdefs.h"
7247 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7250 char jpeg_destroy_decompress();
7253 jpeg_destroy_decompress()
7256 if { (eval echo configure:7257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7258 eval "ac_cv_lib_$ac_lib_var=yes"
7260 echo "configure: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7263 eval "ac_cv_lib_$ac_lib_var=no"
7268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7269 echo "$ac_t""yes" 1>&6
7272 echo "$ac_t""no" 1>&6
7277 test -z "$with_jpeg" && with_jpeg=yes
7278 if test "$with_jpeg" = "yes"; then
7279 { test "$extra_verbose" = "yes" && cat << \EOF
7282 cat >> confdefs.h <<\EOF
7287 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7291 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7292 echo "configure:7293: checking for pow" >&5
7294 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure"
7296 #include "confdefs.h"
7297 /* System header to define __stub macros and hopefully few prototypes,
7298 which can conflict with char pow(); below. */
7300 /* Override any gcc2 internal prototype to avoid an error. */
7301 /* We use char because int might match the return type of a gcc2
7302 builtin and then its argument prototype would still apply. */
7307 /* The GNU C library defines this for functions which it implements
7308 to always fail with ENOSYS. Some functions are actually named
7309 something starting with __ and the normal name is an alias. */
7310 #if defined (__stub_pow) || defined (__stub___pow)
7318 if { (eval echo configure:7319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7320 eval "ac_cv_func_pow=yes"
7322 echo "configure: failed program was:" >&5
7323 cat conftest.$ac_ext >&5
7325 eval "ac_cv_func_pow=no"
7329 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7333 echo "$ac_t""no" 1>&6
7337 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7338 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7339 echo "configure:7340: checking for png.h" >&5
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7347 { (eval echo configure:7348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7349 if test -z "$ac_err"; then
7351 eval "ac_cv_header_$ac_safe=yes"
7354 echo "configure: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7357 eval "ac_cv_header_$ac_safe=no"
7360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7361 echo "$ac_t""yes" 1>&6
7364 echo "$ac_t""no" 1>&6
7368 test -z "$with_png" && {
7369 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7370 echo "configure:7371: checking for png_read_image in -lpng" >&5
7371 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7373 xe_check_libs=" -lpng "
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 /* Override any gcc2 internal prototype to avoid an error. */
7378 /* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7380 char png_read_image();
7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7388 eval "ac_cv_lib_$ac_lib_var=yes"
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7393 eval "ac_cv_lib_$ac_lib_var=no"
7398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7399 echo "$ac_t""yes" 1>&6
7402 echo "$ac_t""no" 1>&6
7407 if test -z "$with_png"; then
7408 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7409 echo "configure:7410: checking for workable png version information" >&5
7410 xe_check_libs="-lpng -lz"
7411 cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7415 int main(int c, char **v) {
7416 if (c == 1) return 0;
7417 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7418 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7420 if { (eval echo configure:7421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7422 ./conftest dummy_arg; png_status=$?;
7423 if test "$png_status" = "0"; then
7427 if test "$png_status" = "1"; then
7428 png_problem="PNG library version and header file don't match!"
7429 elif test "$png_status" = "2"; then
7430 png_problem="PNG library version too old (pre 1.0.2)!"
7433 *** WARNING *** $png_problem
7434 I'm not touching that with a 10-foot pole!
7435 If you really want to use the installed version of libPNG, rerun
7436 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7447 echo "$ac_t""$with_png" 1>&6
7449 if test "$with_png" = "yes"; then
7450 { test "$extra_verbose" = "yes" && cat << \EOF
7453 cat >> confdefs.h <<\EOF
7458 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7461 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7462 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7463 echo "configure:7464: checking for tiffio.h" >&5
7465 cat > conftest.$ac_ext <<EOF
7466 #line 7467 "configure"
7467 #include "confdefs.h"
7470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7471 { (eval echo configure:7472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7473 if test -z "$ac_err"; then
7475 eval "ac_cv_header_$ac_safe=yes"
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7481 eval "ac_cv_header_$ac_safe=no"
7484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7488 echo "$ac_t""no" 1>&6
7492 test -z "$with_tiff" && {
7493 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7494 echo "configure:7495: checking for TIFFClientOpen in -ltiff" >&5
7495 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7497 xe_check_libs=" -ltiff "
7498 cat > conftest.$ac_ext <<EOF
7499 #line 7500 "configure"
7500 #include "confdefs.h"
7501 /* Override any gcc2 internal prototype to avoid an error. */
7502 /* We use char because int might match the return type of a gcc2
7503 builtin and then its argument prototype would still apply. */
7504 char TIFFClientOpen();
7510 if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7512 eval "ac_cv_lib_$ac_lib_var=yes"
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7517 eval "ac_cv_lib_$ac_lib_var=no"
7522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7523 echo "$ac_t""yes" 1>&6
7526 echo "$ac_t""no" 1>&6
7531 test -z "$with_tiff" && with_tiff=yes
7532 if test "$with_tiff" = "yes"; then
7533 { test "$extra_verbose" = "yes" && cat << \EOF
7536 cat >> confdefs.h <<\EOF
7541 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7546 if test "$with_x11" = "yes"; then
7548 echo "checking for X11 graphics libraries" 1>&6
7549 echo "configure:7550: checking for X11 graphics libraries" >&5
7552 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7553 echo "configure:7554: checking for XawScrollbarSetThumb in -lXaw" >&5
7554 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7556 xe_check_libs=" -lXaw "
7557 cat > conftest.$ac_ext <<EOF
7558 #line 7559 "configure"
7559 #include "confdefs.h"
7560 /* Override any gcc2 internal prototype to avoid an error. */
7561 /* We use char because int might match the return type of a gcc2
7562 builtin and then its argument prototype would still apply. */
7563 char XawScrollbarSetThumb();
7566 XawScrollbarSetThumb()
7569 if { (eval echo configure:7570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7571 eval "ac_cv_lib_$ac_lib_var=yes"
7573 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7576 eval "ac_cv_lib_$ac_lib_var=no"
7581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7582 echo "$ac_t""yes" 1>&6
7585 echo "$ac_t""no" 1>&6
7592 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
7593 echo "configure:7594: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7594 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7596 xe_check_libs=" -lXaw3d "
7597 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7600 /* Override any gcc2 internal prototype to avoid an error. */
7601 /* We use char because int might match the return type of a gcc2
7602 builtin and then its argument prototype would still apply. */
7603 char XawScrollbarSetThumb();
7606 XawScrollbarSetThumb()
7609 if { (eval echo configure:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7611 eval "ac_cv_lib_$ac_lib_var=yes"
7613 echo "configure: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7616 eval "ac_cv_lib_$ac_lib_var=no"
7621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7622 echo "$ac_t""yes" 1>&6
7625 echo "$ac_t""no" 1>&6
7631 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7632 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7633 echo "configure:7634: checking for Xm/Xm.h" >&5
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7641 { (eval echo configure:7642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7643 if test -z "$ac_err"; then
7645 eval "ac_cv_header_$ac_safe=yes"
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7651 eval "ac_cv_header_$ac_safe=no"
7654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7657 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7658 echo "configure:7659: checking for XmStringFree in -lXm" >&5
7659 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7661 xe_check_libs=" -lXm "
7662 cat > conftest.$ac_ext <<EOF
7663 #line 7664 "configure"
7664 #include "confdefs.h"
7665 /* Override any gcc2 internal prototype to avoid an error. */
7666 /* We use char because int might match the return type of a gcc2
7667 builtin and then its argument prototype would still apply. */
7668 char XmStringFree();
7674 if { (eval echo configure:7675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7676 eval "ac_cv_lib_$ac_lib_var=yes"
7678 echo "configure: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7681 eval "ac_cv_lib_$ac_lib_var=no"
7686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7687 echo "$ac_t""yes" 1>&6
7690 echo "$ac_t""no" 1>&6
7696 echo "$ac_t""no" 1>&6
7701 if test "$have_motif" = "yes"; then
7702 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7703 echo "configure:7704: checking for Lesstif" >&5
7704 cat > conftest.$ac_ext <<EOF
7705 #line 7706 "configure"
7706 #include "confdefs.h"
7708 #ifdef LESSTIF_VERSION
7713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7714 egrep "yes" >/dev/null 2>&1; then
7723 echo "$ac_t""$have_lesstif" 1>&6
7728 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7729 with_menubars="lucid" ;;
7731 case "$with_dialogs" in "" | "yes" | "lucid" )
7732 if test "$have_motif" = "yes"; then with_dialogs="motif"
7733 elif test "$have_xaw3d" = "yes"; then with_dialogs="athena3d"
7734 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7735 else with_dialogs=no
7738 case "$with_scrollbars" in "" | "yes" )
7739 with_scrollbars="lucid" ;;
7741 case "$with_widgets" in "" | "yes" | "lucid")
7742 if test "$have_motif" = "yes"; then with_widgets="motif"
7743 elif test "$have_xaw3d" = "yes"; then with_widgets="athena3d"
7744 elif test "$have_xaw" = "yes"; then with_widgets="athena"
7745 else with_widgets=no
7749 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
7751 case "$all_widgets" in
7753 { test "$extra_verbose" = "yes" && cat << \EOF
7754 Defining LWLIB_USES_ATHENA
7756 cat >> confdefs.h <<\EOF
7757 #define LWLIB_USES_ATHENA 1
7761 { test "$extra_verbose" = "yes" && cat << \EOF
7762 Defining NEED_ATHENA
7764 cat >> confdefs.h <<\EOF
7765 #define NEED_ATHENA 1
7769 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7770 if test "$have_xaw3d"; then
7771 libs_x="-lXaw3d $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw3d\" to \$libs_x"; fi
7773 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi
7776 { test "$extra_verbose" = "yes" && cat << \EOF
7777 Defining LWLIB_USES_ATHENA
7779 cat >> confdefs.h <<\EOF
7780 #define LWLIB_USES_ATHENA 1
7784 { test "$extra_verbose" = "yes" && cat << \EOF
7785 Defining NEED_ATHENA
7787 cat >> confdefs.h <<\EOF
7788 #define NEED_ATHENA 1
7792 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7793 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7796 case "$all_widgets" in *motif* )
7797 { test "$extra_verbose" = "yes" && cat << \EOF
7798 Defining LWLIB_USES_MOTIF
7800 cat >> confdefs.h <<\EOF
7801 #define LWLIB_USES_MOTIF 1
7805 { test "$extra_verbose" = "yes" && cat << \EOF
7808 cat >> confdefs.h <<\EOF
7809 #define NEED_MOTIF 1
7813 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7817 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7818 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7819 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7820 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
7821 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
7822 case "$with_widgets" in athena* )
7823 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;;
7825 case "$all_widgets" in *lucid* )
7826 { test "$extra_verbose" = "yes" && cat << \EOF
7829 cat >> confdefs.h <<\EOF
7830 #define NEED_LUCID 1
7834 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7839 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7840 Defining LWLIB_SCROLLBARS_ATHENA
7842 cat >> confdefs.h <<\EOF
7843 #define LWLIB_SCROLLBARS_ATHENA 1
7847 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7848 Defining LWLIB_DIALOGS_ATHENA
7850 cat >> confdefs.h <<\EOF
7851 #define LWLIB_DIALOGS_ATHENA 1
7855 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7856 Defining LWLIB_SCROLLBARS_ATHENA3D
7858 cat >> confdefs.h <<\EOF
7859 #define LWLIB_SCROLLBARS_ATHENA3D 1
7863 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7864 Defining LWLIB_DIALOGS_ATHENA3D
7866 cat >> confdefs.h <<\EOF
7867 #define LWLIB_DIALOGS_ATHENA3D 1
7871 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7872 Defining LWLIB_WIDGETS_ATHENA
7874 cat >> confdefs.h <<\EOF
7875 #define LWLIB_WIDGETS_ATHENA 1
7879 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
7880 { test "$extra_verbose" = "yes" && cat << \EOF
7881 Defining LWLIB_TABS_LUCID
7883 cat >> confdefs.h <<\EOF
7884 #define LWLIB_TABS_LUCID 1
7889 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7890 Defining HAVE_MENUBARS
7892 cat >> confdefs.h <<\EOF
7893 #define HAVE_MENUBARS 1
7897 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7898 Defining HAVE_SCROLLBARS
7900 cat >> confdefs.h <<\EOF
7901 #define HAVE_SCROLLBARS 1
7905 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7906 Defining HAVE_DIALOGS
7908 cat >> confdefs.h <<\EOF
7909 #define HAVE_DIALOGS 1
7913 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7914 Defining HAVE_TOOLBARS
7916 cat >> confdefs.h <<\EOF
7917 #define HAVE_TOOLBARS 1
7921 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7922 Defining HAVE_WIDGETS
7924 cat >> confdefs.h <<\EOF
7925 #define HAVE_WIDGETS 1
7930 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7931 Defining LWLIB_MENUBARS_LUCID
7933 cat >> confdefs.h <<\EOF
7934 #define LWLIB_MENUBARS_LUCID 1
7938 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7939 Defining LWLIB_SCROLLBARS_LUCID
7941 cat >> confdefs.h <<\EOF
7942 #define LWLIB_SCROLLBARS_LUCID 1
7947 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7948 Defining LWLIB_MENUBARS_MOTIF
7950 cat >> confdefs.h <<\EOF
7951 #define LWLIB_MENUBARS_MOTIF 1
7955 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7956 Defining LWLIB_SCROLLBARS_MOTIF
7958 cat >> confdefs.h <<\EOF
7959 #define LWLIB_SCROLLBARS_MOTIF 1
7963 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7964 Defining LWLIB_DIALOGS_MOTIF
7966 cat >> confdefs.h <<\EOF
7967 #define LWLIB_DIALOGS_MOTIF 1
7971 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7972 Defining LWLIB_WIDGETS_MOTIF
7974 cat >> confdefs.h <<\EOF
7975 #define LWLIB_WIDGETS_MOTIF 1
7980 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7981 echo " xemacs will be linked with \"menubar.o\""
7983 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7984 echo " xemacs will be linked with \"scrollbar.o\""
7986 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7987 echo " xemacs will be linked with \"dialog.o\""
7989 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7990 echo " xemacs will be linked with \"toolbar.o\""
7993 if test "$with_x11" = "yes"; then
7994 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7995 echo " xemacs will be linked with \"menubar-x.o\""
7997 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7998 echo " xemacs will be linked with \"scrollbar-x.o\""
8000 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8001 echo " xemacs will be linked with \"dialog-x.o\""
8003 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8004 echo " xemacs will be linked with \"toolbar-x.o\""
8006 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8007 echo " xemacs will be linked with \"gui-x.o\""
8012 test -z "$with_mule" && with_mule=no
8013 test -z "$with_file_coding" && with_file_coding=no
8016 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
8017 { test "$extra_verbose" = "yes" && cat << \EOF
8018 Defining FILE_CODING
8020 cat >> confdefs.h <<\EOF
8021 #define FILE_CODING 1
8025 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8026 echo " xemacs will be linked with \"file-coding.o\""
8030 if test "$with_mule" = "yes" ; then
8031 echo "checking for Mule-related features" 1>&6
8032 echo "configure:8033: checking for Mule-related features" >&5
8033 { test "$extra_verbose" = "yes" && cat << \EOF
8036 cat >> confdefs.h <<\EOF
8041 { test "$extra_verbose" = "yes" && cat << \EOF
8042 Defining FILE_CODING
8044 cat >> confdefs.h <<\EOF
8045 #define FILE_CODING 1
8049 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
8050 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
8052 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
8053 { test "$extra_verbose" = "yes" && cat << \EOF
8054 Defining TEXT_CODING
8056 cat >> confdefs.h <<\EOF
8057 #define TEXT_CODING 1
8061 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
8062 echo " xemacs will be linked with \"text-coding.o\""
8065 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8066 echo " xemacs will be linked with \"file-coding.o\""
8069 for ac_hdr in libintl.h
8071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8073 echo "configure:8074: checking for $ac_hdr" >&5
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8081 { (eval echo configure:8082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8083 if test -z "$ac_err"; then
8085 eval "ac_cv_header_$ac_safe=yes"
8088 echo "configure: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8091 eval "ac_cv_header_$ac_safe=no"
8094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8097 { test "$extra_verbose" = "yes" && cat << EOF
8100 cat >> confdefs.h <<EOF
8101 #define $ac_tr_hdr 1
8106 echo "$ac_t""no" 1>&6
8111 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8112 echo "configure:8113: checking for strerror in -lintl" >&5
8113 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8115 xe_check_libs=" -lintl "
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8119 /* Override any gcc2 internal prototype to avoid an error. */
8120 /* We use char because int might match the return type of a gcc2
8121 builtin and then its argument prototype would still apply. */
8128 if { (eval echo configure:8129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8130 eval "ac_cv_lib_$ac_lib_var=yes"
8132 echo "configure: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8135 eval "ac_cv_lib_$ac_lib_var=no"
8140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8141 echo "$ac_t""yes" 1>&6
8142 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8144 { test "$extra_verbose" = "yes" && cat << EOF
8147 cat >> confdefs.h <<EOF
8148 #define $ac_tr_lib 1
8152 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
8155 echo "$ac_t""no" 1>&6
8160 if test "$with_utf_2000" = "yes" ; then
8161 { test "$extra_verbose" = "yes" && cat << \EOF
8162 Defining CHAR_IS_UCS4
8164 cat >> confdefs.h <<\EOF
8165 #define CHAR_IS_UCS4 1
8169 { test "$extra_verbose" = "yes" && cat << \EOF
8172 cat >> confdefs.h <<\EOF
8179 echo "checking for Mule input methods" 1>&6
8180 echo "configure:8181: checking for Mule input methods" >&5
8181 case "$with_xim" in "" | "yes" )
8182 echo "checking for XIM" 1>&6
8183 echo "configure:8184: checking for XIM" >&5
8185 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8186 echo "configure:8187: checking for XOpenIM in -lX11" >&5
8187 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8189 xe_check_libs=" -lX11 "
8190 cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8193 /* Override any gcc2 internal prototype to avoid an error. */
8194 /* We use char because int might match the return type of a gcc2
8195 builtin and then its argument prototype would still apply. */
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8204 eval "ac_cv_lib_$ac_lib_var=yes"
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 eval "ac_cv_lib_$ac_lib_var=no"
8214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8215 echo "$ac_t""yes" 1>&6
8218 echo "$ac_t""no" 1>&6
8223 if test "$have_motif $have_lesstif" = "yes no"; then
8225 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8226 echo "configure:8227: checking for XmImMbLookupString in -lXm" >&5
8227 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8229 xe_check_libs=" -lXm "
8230 cat > conftest.$ac_ext <<EOF
8231 #line 8232 "configure"
8232 #include "confdefs.h"
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236 char XmImMbLookupString();
8239 XmImMbLookupString()
8242 if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8244 eval "ac_cv_lib_$ac_lib_var=yes"
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8249 eval "ac_cv_lib_$ac_lib_var=no"
8254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8255 echo "$ac_t""yes" 1>&6
8258 echo "$ac_t""no" 1>&6
8264 if test "$with_xim" != "no"; then
8265 { test "$extra_verbose" = "yes" && cat << \EOF
8268 cat >> confdefs.h <<\EOF
8273 if test "$with_xim" = "xlib"; then
8274 { test "$extra_verbose" = "yes" && cat << \EOF
8277 cat >> confdefs.h <<\EOF
8282 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8283 echo " xemacs will be linked with \"input-method-xlib.o\""
8286 if test "$with_xim" = "motif"; then
8287 { test "$extra_verbose" = "yes" && cat << \EOF
8290 cat >> confdefs.h <<\EOF
8296 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8297 echo " xemacs will be linked with \"input-method-motif.o\""
8300 if test "$with_xim" = "motif"; then
8305 if test "$with_xfs" = "yes" ; then
8306 echo "checking for XFontSet" 1>&6
8307 echo "configure:8308: checking for XFontSet" >&5
8309 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8310 echo "configure:8311: checking for XmbDrawString in -lX11" >&5
8311 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8313 xe_check_libs=" -lX11 "
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 /* Override any gcc2 internal prototype to avoid an error. */
8318 /* We use char because int might match the return type of a gcc2
8319 builtin and then its argument prototype would still apply. */
8320 char XmbDrawString();
8326 if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8328 eval "ac_cv_lib_$ac_lib_var=yes"
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8333 eval "ac_cv_lib_$ac_lib_var=no"
8338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8339 echo "$ac_t""yes" 1>&6
8342 echo "$ac_t""no" 1>&6
8347 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8348 { test "$extra_verbose" = "yes" && cat << \EOF
8349 Defining USE_XFONTSET
8351 cat >> confdefs.h <<\EOF
8352 #define USE_XFONTSET 1
8356 if test "$with_xim" = "no" ; then
8357 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8358 echo " xemacs will be linked with \"input-method-xfs.o\""
8363 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8364 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8365 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8366 echo "configure:8367: checking for wnn/jllib.h" >&5
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 #include <wnn/jllib.h>
8373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8374 { (eval echo configure:8375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8376 if test -z "$ac_err"; then
8378 eval "ac_cv_header_$ac_safe=yes"
8381 echo "configure: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8384 eval "ac_cv_header_$ac_safe=no"
8387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8388 echo "$ac_t""yes" 1>&6
8391 echo "$ac_t""no" 1>&6
8395 if test "$with_wnn" != "no"; then
8396 for ac_func in crypt
8398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8399 echo "configure:8400: checking for $ac_func" >&5
8401 cat > conftest.$ac_ext <<EOF
8402 #line 8403 "configure"
8403 #include "confdefs.h"
8404 /* System header to define __stub macros and hopefully few prototypes,
8405 which can conflict with char $ac_func(); below. */
8407 /* Override any gcc2 internal prototype to avoid an error. */
8408 /* We use char because int might match the return type of a gcc2
8409 builtin and then its argument prototype would still apply. */
8414 /* The GNU C library defines this for functions which it implements
8415 to always fail with ENOSYS. Some functions are actually named
8416 something starting with __ and the normal name is an alias. */
8417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8425 if { (eval echo configure:8426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8427 eval "ac_cv_func_$ac_func=yes"
8429 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8432 eval "ac_cv_func_$ac_func=no"
8436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8437 echo "$ac_t""yes" 1>&6
8438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8439 { test "$extra_verbose" = "yes" && cat << EOF
8440 Defining $ac_tr_func
8442 cat >> confdefs.h <<EOF
8443 #define $ac_tr_func 1
8448 echo "$ac_t""no" 1>&6
8452 test "$ac_cv_func_crypt" != "yes" && {
8453 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8454 echo "configure:8455: checking for crypt in -lcrypt" >&5
8455 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8457 xe_check_libs=" -lcrypt "
8458 cat > conftest.$ac_ext <<EOF
8459 #line 8460 "configure"
8460 #include "confdefs.h"
8461 /* Override any gcc2 internal prototype to avoid an error. */
8462 /* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */
8470 if { (eval echo configure:8471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8472 eval "ac_cv_lib_$ac_lib_var=yes"
8474 echo "configure: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8477 eval "ac_cv_lib_$ac_lib_var=no"
8482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8483 echo "$ac_t""yes" 1>&6
8484 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8485 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8486 { test "$extra_verbose" = "yes" && cat << EOF
8489 cat >> confdefs.h <<EOF
8490 #define $ac_tr_lib 1
8494 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8497 echo "$ac_t""no" 1>&6
8502 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8504 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8505 echo "configure:8506: checking for jl_dic_list_e in -lwnn" >&5
8506 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8508 xe_check_libs=" -lwnn "
8509 cat > conftest.$ac_ext <<EOF
8510 #line 8511 "configure"
8511 #include "confdefs.h"
8512 /* Override any gcc2 internal prototype to avoid an error. */
8513 /* We use char because int might match the return type of a gcc2
8514 builtin and then its argument prototype would still apply. */
8515 char jl_dic_list_e();
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8523 eval "ac_cv_lib_$ac_lib_var=yes"
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 eval "ac_cv_lib_$ac_lib_var=no"
8533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8534 echo "$ac_t""yes" 1>&6
8537 echo "$ac_t""no" 1>&6
8538 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8539 echo "configure:8540: checking for jl_dic_list_e in -lwnn4" >&5
8540 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8542 xe_check_libs=" -lwnn4 "
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8545 "configure"
8545 #include "confdefs.h"
8546 /* Override any gcc2 internal prototype to avoid an error. */
8547 /* We use char because int might match the return type of a gcc2
8548 builtin and then its argument prototype would still apply. */
8549 char jl_dic_list_e();
8555 if { (eval echo configure:8556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8557 eval "ac_cv_lib_$ac_lib_var=yes"
8559 echo "configure: failed program was:" >&5
8560 cat conftest.$ac_ext >&5
8562 eval "ac_cv_lib_$ac_lib_var=no"
8567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8568 echo "$ac_t""yes" 1>&6
8571 echo "$ac_t""no" 1>&6
8572 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8573 echo "configure:8574: checking for jl_dic_list_e in -lwnn6" >&5
8574 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8576 xe_check_libs=" -lwnn6 "
8577 cat > conftest.$ac_ext <<EOF
8578 #line 8579 "configure"
8579 #include "confdefs.h"
8580 /* Override any gcc2 internal prototype to avoid an error. */
8581 /* We use char because int might match the return type of a gcc2
8582 builtin and then its argument prototype would still apply. */
8583 char jl_dic_list_e();
8589 if { (eval echo configure:8590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8591 eval "ac_cv_lib_$ac_lib_var=yes"
8593 echo "configure: failed program was:" >&5
8594 cat conftest.$ac_ext >&5
8596 eval "ac_cv_lib_$ac_lib_var=no"
8601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8602 echo "$ac_t""yes" 1>&6
8605 echo "$ac_t""no" 1>&6
8606 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8607 echo "configure:8608: checking for dic_list_e in -lwnn6_fromsrc" >&5
8608 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8610 xe_check_libs=" -lwnn6_fromsrc "
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 /* Override any gcc2 internal prototype to avoid an error. */
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8623 if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8625 eval "ac_cv_lib_$ac_lib_var=yes"
8627 echo "configure: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8630 eval "ac_cv_lib_$ac_lib_var=no"
8635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8636 echo "$ac_t""yes" 1>&6
8639 echo "$ac_t""no" 1>&6
8654 test -z "$with_wnn" && with_wnn=yes
8655 if test "$with_wnn" = "yes"; then
8656 { test "$extra_verbose" = "yes" && cat << \EOF
8659 cat >> confdefs.h <<\EOF
8664 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8665 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8666 echo " xemacs will be linked with \"mule-wnnfns.o\""
8668 if test "$with_wnn6" != "no"; then
8670 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8671 echo "configure:8672: checking for jl_fi_dic_list in -l$libwnn" >&5
8672 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8674 xe_check_libs=" -l$libwnn "
8675 cat > conftest.$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8678 /* Override any gcc2 internal prototype to avoid an error. */
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8681 char jl_fi_dic_list();
8687 if { (eval echo configure:8688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8689 eval "ac_cv_lib_$ac_lib_var=yes"
8691 echo "configure: failed program was:" >&5
8692 cat conftest.$ac_ext >&5
8694 eval "ac_cv_lib_$ac_lib_var=no"
8699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8700 echo "$ac_t""yes" 1>&6
8703 echo "$ac_t""no" 1>&6
8707 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8710 cat >> confdefs.h <<\EOF
8718 canna_includes_found=no
8719 if test "$with_canna" != "no"; then
8720 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8721 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8722 echo "configure:8723: checking for canna/jrkanji.h" >&5
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8727 #include <canna/jrkanji.h>
8729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8730 { (eval echo configure:8731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8732 if test -z "$ac_err"; then
8734 eval "ac_cv_header_$ac_safe=yes"
8737 echo "configure: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8740 eval "ac_cv_header_$ac_safe=no"
8743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8744 echo "$ac_t""yes" 1>&6
8745 canna_includes_found=yes
8747 echo "$ac_t""no" 1>&6
8751 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8752 -d "/usr/local/canna/include"; then
8753 save_c_switch_site="$c_switch_site"
8754 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8755 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8756 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8757 echo "configure:8758: checking for canna/jrkanji.h" >&5
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762 #include <canna/jrkanji.h>
8764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8765 { (eval echo configure:8766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8767 if test -z "$ac_err"; then
8769 eval "ac_cv_header_$ac_safe=yes"
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8775 eval "ac_cv_header_$ac_safe=no"
8778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8779 echo "$ac_t""yes" 1>&6
8780 canna_includes_found=yes
8782 echo "$ac_t""no" 1>&6
8785 if test "$canna_includes_found" != "yes"; then
8786 c_switch_site="$save_c_switch_site"
8791 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8792 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8793 echo "configure:8794: checking for canna/RK.h" >&5
8795 cat > conftest.$ac_ext <<EOF
8796 #line 8797 "configure"
8797 #include "confdefs.h"
8798 #include <canna/RK.h>
8800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8801 { (eval echo configure:8802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8803 if test -z "$ac_err"; then
8805 eval "ac_cv_header_$ac_safe=yes"
8808 echo "configure: failed program was:" >&5
8809 cat conftest.$ac_ext >&5
8811 eval "ac_cv_header_$ac_safe=no"
8814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8815 echo "$ac_t""yes" 1>&6
8818 echo "$ac_t""no" 1>&6
8822 test -z "$with_canna" && {
8823 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8824 echo "configure:8825: checking for RkBgnBun in -lRKC" >&5
8825 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8827 xe_check_libs=" -lRKC "
8828 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8831 /* Override any gcc2 internal prototype to avoid an error. */
8832 /* We use char because int might match the return type of a gcc2
8833 builtin and then its argument prototype would still apply. */
8840 if { (eval echo configure:8841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8842 eval "ac_cv_lib_$ac_lib_var=yes"
8844 echo "configure: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8847 eval "ac_cv_lib_$ac_lib_var=no"
8852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8853 echo "$ac_t""yes" 1>&6
8856 echo "$ac_t""no" 1>&6
8861 test -z "$with_canna" && {
8862 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8863 echo "configure:8864: checking for jrKanjiControl in -lcanna" >&5
8864 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8866 xe_check_libs=" -lcanna "
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 /* Override any gcc2 internal prototype to avoid an error. */
8871 /* We use char because int might match the return type of a gcc2
8872 builtin and then its argument prototype would still apply. */
8873 char jrKanjiControl();
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881 eval "ac_cv_lib_$ac_lib_var=yes"
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8886 eval "ac_cv_lib_$ac_lib_var=no"
8891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8892 echo "$ac_t""yes" 1>&6
8895 echo "$ac_t""no" 1>&6
8900 test -z "$with_canna" && with_canna=yes
8901 if test "$with_canna" = "yes"; then
8902 { test "$extra_verbose" = "yes" && cat << \EOF
8905 cat >> confdefs.h <<\EOF
8906 #define HAVE_CANNA 1
8910 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8911 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8912 echo " xemacs will be linked with \"mule-canna.o\""
8916 else for feature in xim canna wnn; do
8917 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8918 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8920 eval "with_${feature}=no"
8924 if test "$need_motif" = "yes" ; then
8925 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8927 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8928 echo "configure:8929: checking for layout_object_getvalue in -li18n" >&5
8929 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8931 xe_check_libs=" -li18n "
8932 cat > conftest.$ac_ext <<EOF
8933 #line 8934 "configure"
8934 #include "confdefs.h"
8935 /* Override any gcc2 internal prototype to avoid an error. */
8936 /* We use char because int might match the return type of a gcc2
8937 builtin and then its argument prototype would still apply. */
8938 char layout_object_getvalue();
8941 layout_object_getvalue()
8944 if { (eval echo configure:8945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8946 eval "ac_cv_lib_$ac_lib_var=yes"
8948 echo "configure: failed program was:" >&5
8949 cat conftest.$ac_ext >&5
8951 eval "ac_cv_lib_$ac_lib_var=no"
8956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8957 echo "$ac_t""yes" 1>&6
8958 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8960 echo "$ac_t""no" 1>&6
8965 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8966 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8967 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8969 runpath="" runpath_dirs=""
8970 if test -n "$LD_RUN_PATH"; then
8971 runpath="$LD_RUN_PATH"
8972 elif test "$GCC" = "yes"; then
8973 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8974 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8975 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8976 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8977 case "$arg" in P,* | -L* | -R* )
8978 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8980 xe_runpath_dir="$dir"
8981 test "$xe_runpath_dir" != "/lib" -a \
8982 "$xe_runpath_dir" != "/usr/lib" -a \
8983 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8984 eval "$xe_add_unique_runpath_dir"
8989 ld_switch_run="$ld_switch_run_save"
8992 for arg in $ld_switch_site $ld_switch_x_site; do
8993 case "$arg" in -L*) {
8994 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8995 test "$xe_runpath_dir" != "/lib" -a \
8996 "$xe_runpath_dir" != "/usr/lib" -a \
8997 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8998 eval "$xe_add_unique_runpath_dir"
9001 if test "$opsys $need_motif" = "sol2 yes"; then
9002 xe_runpath_dir="/opt/SUNWdt/lib";
9003 eval "$xe_add_unique_runpath_dir";
9006 if test -n "$runpath"; then
9007 ld_switch_run="${dash_r}${runpath}"
9009 if test "$GCC" = "yes"; then
9010 set x $ld_switch_run; shift; ld_switch_run=""
9011 while test -n "$1"; do
9013 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
9014 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
9016 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
9021 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
9027 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname 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
9029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9030 echo "configure:9031: checking for $ac_func" >&5
9032 cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9035 /* System header to define __stub macros and hopefully few prototypes,
9036 which can conflict with char $ac_func(); below. */
9038 /* Override any gcc2 internal prototype to avoid an error. */
9039 /* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9045 /* The GNU C library defines this for functions which it implements
9046 to always fail with ENOSYS. Some functions are actually named
9047 something starting with __ and the normal name is an alias. */
9048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9058 eval "ac_cv_func_$ac_func=yes"
9060 echo "configure: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9063 eval "ac_cv_func_$ac_func=no"
9067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9068 echo "$ac_t""yes" 1>&6
9069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9070 { test "$extra_verbose" = "yes" && cat << EOF
9071 Defining $ac_tr_func
9073 cat >> confdefs.h <<EOF
9074 #define $ac_tr_func 1
9079 echo "$ac_t""no" 1>&6
9086 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9087 echo " xemacs will be linked with \"realpath.o\""
9090 case "$canonical" in
9091 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9092 echo " xemacs will be linked with \"realpath.o\""
9094 * ) for ac_func in realpath
9096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9097 echo "configure:9098: checking for $ac_func" >&5
9099 cat > conftest.$ac_ext <<EOF
9100 #line 9101 "configure"
9101 #include "confdefs.h"
9102 /* System header to define __stub macros and hopefully few prototypes,
9103 which can conflict with char $ac_func(); below. */
9105 /* Override any gcc2 internal prototype to avoid an error. */
9106 /* We use char because int might match the return type of a gcc2
9107 builtin and then its argument prototype would still apply. */
9112 /* The GNU C library defines this for functions which it implements
9113 to always fail with ENOSYS. Some functions are actually named
9114 something starting with __ and the normal name is an alias. */
9115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9123 if { (eval echo configure:9124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9125 eval "ac_cv_func_$ac_func=yes"
9127 echo "configure: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9130 eval "ac_cv_func_$ac_func=no"
9134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9135 echo "$ac_t""yes" 1>&6
9136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9137 { test "$extra_verbose" = "yes" && cat << EOF
9138 Defining $ac_tr_func
9140 cat >> confdefs.h <<EOF
9141 #define $ac_tr_func 1
9146 echo "$ac_t""no" 1>&6
9150 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9151 echo " xemacs will be linked with \"realpath.o\""
9156 for ac_func in getloadavg
9158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9159 echo "configure:9160: checking for $ac_func" >&5
9161 cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure"
9163 #include "confdefs.h"
9164 /* System header to define __stub macros and hopefully few prototypes,
9165 which can conflict with char $ac_func(); below. */
9167 /* Override any gcc2 internal prototype to avoid an error. */
9168 /* We use char because int might match the return type of a gcc2
9169 builtin and then its argument prototype would still apply. */
9174 /* The GNU C library defines this for functions which it implements
9175 to always fail with ENOSYS. Some functions are actually named
9176 something starting with __ and the normal name is an alias. */
9177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9185 if { (eval echo configure:9186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9187 eval "ac_cv_func_$ac_func=yes"
9189 echo "configure: failed program was:" >&5
9190 cat conftest.$ac_ext >&5
9192 eval "ac_cv_func_$ac_func=no"
9196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9197 echo "$ac_t""yes" 1>&6
9198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9199 { test "$extra_verbose" = "yes" && cat << EOF
9200 Defining $ac_tr_func
9202 cat >> confdefs.h <<EOF
9203 #define $ac_tr_func 1
9208 echo "$ac_t""no" 1>&6
9213 if test "$ac_cv_func_getloadavg" != "yes"
9215 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9216 echo " xemacs will be linked with \"getloadavg.o\""
9220 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9221 echo "configure:9222: checking for kstat_open in -lkstat" >&5
9222 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9224 xe_check_libs=" -lkstat "
9225 cat > conftest.$ac_ext <<EOF
9226 #line 9227 "configure"
9227 #include "confdefs.h"
9228 /* Override any gcc2 internal prototype to avoid an error. */
9229 /* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */
9237 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9239 eval "ac_cv_lib_$ac_lib_var=yes"
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9244 eval "ac_cv_lib_$ac_lib_var=no"
9249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9250 echo "$ac_t""yes" 1>&6
9251 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9252 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9253 { test "$extra_verbose" = "yes" && cat << EOF
9256 cat >> confdefs.h <<EOF
9257 #define $ac_tr_lib 1
9261 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9264 echo "$ac_t""no" 1>&6
9270 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9271 echo "configure:9272: checking for kvm_read in -lkvm" >&5
9272 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9274 xe_check_libs=" -lkvm "
9275 cat > conftest.$ac_ext <<EOF
9276 #line 9277 "configure"
9277 #include "confdefs.h"
9278 /* Override any gcc2 internal prototype to avoid an error. */
9279 /* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9287 if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9289 eval "ac_cv_lib_$ac_lib_var=yes"
9291 echo "configure: failed program was:" >&5
9292 cat conftest.$ac_ext >&5
9294 eval "ac_cv_lib_$ac_lib_var=no"
9299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9300 echo "$ac_t""yes" 1>&6
9301 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9302 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9303 { test "$extra_verbose" = "yes" && cat << EOF
9306 cat >> confdefs.h <<EOF
9307 #define $ac_tr_lib 1
9311 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9314 echo "$ac_t""no" 1>&6
9320 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9321 echo "configure:9322: checking whether netdb declares h_errno" >&5
9322 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9330 if { (eval echo configure:9331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9332 echo "$ac_t""yes" 1>&6
9333 { test "$extra_verbose" = "yes" && cat << \EOF
9334 Defining HAVE_H_ERRNO
9336 cat >> confdefs.h <<\EOF
9337 #define HAVE_H_ERRNO 1
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9345 echo "$ac_t""no" 1>&6
9349 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9350 echo "configure:9351: checking for sigsetjmp" >&5
9351 cat > conftest.$ac_ext <<EOF
9352 #line 9353 "configure"
9353 #include "confdefs.h"
9356 sigjmp_buf bar; sigsetjmp (bar, 0);
9359 if { (eval echo configure:9360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9361 echo "$ac_t""yes" 1>&6
9362 { test "$extra_verbose" = "yes" && cat << \EOF
9363 Defining HAVE_SIGSETJMP
9365 cat >> confdefs.h <<\EOF
9366 #define HAVE_SIGSETJMP 1
9371 echo "configure: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9374 echo "$ac_t""no" 1>&6
9378 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9379 echo "configure:9380: checking whether localtime caches TZ" >&5
9381 if test "$ac_cv_func_tzset" = "yes"; then
9382 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure"
9384 #include "confdefs.h"
9387 # include <stdlib.h>
9389 extern char **environ;
9393 for (to = from = environ; (*to = *from); from++)
9394 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9397 char TZ_GMT0[] = "TZ=GMT0";
9398 char TZ_PST8[] = "TZ=PST8";
9401 time_t now = time ((time_t *) 0);
9402 int hour_GMT0, hour_unset;
9403 if (putenv (TZ_GMT0) != 0)
9405 hour_GMT0 = localtime (&now)->tm_hour;
9407 hour_unset = localtime (&now)->tm_hour;
9408 if (putenv (TZ_PST8) != 0)
9410 if (localtime (&now)->tm_hour == hour_GMT0)
9413 if (localtime (&now)->tm_hour != hour_unset)
9418 if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9420 emacs_cv_localtime_cache=no
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9426 emacs_cv_localtime_cache=yes
9430 # If we lack tzset, report that localtime does not cache TZ,
9431 # since we can't invalidate the cache if we don't have tzset.
9432 emacs_cv_localtime_cache=no
9434 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9435 if test $emacs_cv_localtime_cache = yes; then
9436 { test "$extra_verbose" = "yes" && cat << \EOF
9437 Defining LOCALTIME_CACHE
9439 cat >> confdefs.h <<\EOF
9440 #define LOCALTIME_CACHE 1
9446 if test "$HAVE_TIMEVAL" = "yes"; then
9447 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9448 echo "configure:9449: checking whether gettimeofday accepts one or two arguments" >&5
9449 cat > conftest.$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9453 #ifdef TIME_WITH_SYS_TIME
9454 #include <sys/time.h>
9457 #ifdef HAVE_SYS_TIME_H
9458 #include <sys/time.h>
9466 struct timeval time;
9467 struct timezone dummy;
9468 gettimeofday (&time, &dummy);
9472 if { (eval echo configure:9473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9474 echo "$ac_t""two" 1>&6
9476 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9479 echo "$ac_t""one" 1>&6
9480 { test "$extra_verbose" = "yes" && cat << \EOF
9481 Defining GETTIMEOFDAY_ONE_ARGUMENT
9483 cat >> confdefs.h <<\EOF
9484 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9493 echo $ac_n "checking for inline""... $ac_c" 1>&6
9494 echo "configure:9495: checking for inline" >&5
9497 for ac_kw in inline __inline__ __inline; do
9498 cat > conftest.$ac_ext <<EOF
9499 #line 9500 "configure"
9500 #include "confdefs.h"
9506 if { (eval echo configure:9507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9508 ac_cv_c_inline=$ac_kw; break
9510 echo "configure: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9517 echo "$ac_t""$ac_cv_c_inline" 1>&6
9518 case "$ac_cv_c_inline" in
9520 no) { test "$extra_verbose" = "yes" && cat << \EOF
9523 cat >> confdefs.h <<\EOF
9528 *) { test "$extra_verbose" = "yes" && cat << EOF
9529 Defining inline = $ac_cv_c_inline
9531 cat >> confdefs.h <<EOF
9532 #define inline $ac_cv_c_inline
9538 if test "$ac_cv_c_inline" != "no"; then
9539 { test "$extra_verbose" = "yes" && cat << \EOF
9540 Defining HAVE_INLINE
9542 cat >> confdefs.h <<\EOF
9543 #define HAVE_INLINE 1
9547 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9548 echo " xemacs will be linked with \"inline.o\""
9553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9554 # for constant arguments. Useless!
9555 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9556 echo "configure:9557: checking for working alloca.h" >&5
9558 cat > conftest.$ac_ext <<EOF
9559 #line 9560 "configure"
9560 #include "confdefs.h"
9563 char *p = alloca(2 * sizeof(int));
9566 if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9568 ac_cv_header_alloca_h=yes
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9573 ac_cv_header_alloca_h=no
9577 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9578 if test $ac_cv_header_alloca_h = yes; then
9579 { test "$extra_verbose" = "yes" && cat << \EOF
9580 Defining HAVE_ALLOCA_H
9582 cat >> confdefs.h <<\EOF
9583 #define HAVE_ALLOCA_H 1
9589 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9590 echo "configure:9591: checking for alloca" >&5
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9597 # define alloca __builtin_alloca
9600 # include <malloc.h>
9601 # define alloca _alloca
9604 # include <alloca.h>
9609 # ifndef alloca /* predefined by HP cc +Olibcalls */
9618 char *p = (char *) alloca(1);
9621 if { (eval echo configure:9622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9623 ac_cv_func_alloca_works=yes
9625 echo "configure: failed program was:" >&5
9626 cat conftest.$ac_ext >&5
9628 ac_cv_func_alloca_works=no
9632 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9633 if test $ac_cv_func_alloca_works = yes; then
9634 { test "$extra_verbose" = "yes" && cat << \EOF
9635 Defining HAVE_ALLOCA
9637 cat >> confdefs.h <<\EOF
9638 #define HAVE_ALLOCA 1
9644 if test $ac_cv_func_alloca_works = no; then
9645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9646 # that cause trouble. Some versions do not even contain alloca or
9647 # contain a buggy version. If you still want to use their alloca,
9648 # use ar to extract alloca.o from them instead of compiling alloca.c.
9649 ALLOCA=alloca.${ac_objext}
9650 { test "$extra_verbose" = "yes" && cat << \EOF
9653 cat >> confdefs.h <<\EOF
9659 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9660 echo "configure:9661: checking whether alloca needs Cray hooks" >&5
9662 cat > conftest.$ac_ext <<EOF
9663 #line 9664 "configure"
9664 #include "confdefs.h"
9665 #if defined(CRAY) && ! defined(CRAY2)
9672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9673 egrep "webecray" >/dev/null 2>&1; then
9683 echo "$ac_t""$ac_cv_os_cray" 1>&6
9684 if test $ac_cv_os_cray = yes; then
9685 for ac_func in _getb67 GETB67 getb67; do
9686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9687 echo "configure:9688: checking for $ac_func" >&5
9689 cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9692 /* System header to define __stub macros and hopefully few prototypes,
9693 which can conflict with char $ac_func(); below. */
9695 /* Override any gcc2 internal prototype to avoid an error. */
9696 /* We use char because int might match the return type of a gcc2
9697 builtin and then its argument prototype would still apply. */
9702 /* The GNU C library defines this for functions which it implements
9703 to always fail with ENOSYS. Some functions are actually named
9704 something starting with __ and the normal name is an alias. */
9705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9713 if { (eval echo configure:9714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9715 eval "ac_cv_func_$ac_func=yes"
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9720 eval "ac_cv_func_$ac_func=no"
9724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9725 echo "$ac_t""yes" 1>&6
9726 { test "$extra_verbose" = "yes" && cat << EOF
9727 Defining CRAY_STACKSEG_END = $ac_func
9729 cat >> confdefs.h <<EOF
9730 #define CRAY_STACKSEG_END $ac_func
9736 echo "$ac_t""no" 1>&6
9742 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9743 echo "configure:9744: checking stack direction for C alloca" >&5
9745 cat > conftest.$ac_ext <<EOF
9746 #line 9747 "configure"
9747 #include "confdefs.h"
9748 find_stack_direction ()
9750 static char *addr = 0;
9755 return find_stack_direction ();
9758 return (&dummy > addr) ? 1 : -1;
9762 exit (find_stack_direction() < 0);
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9767 ac_cv_c_stack_direction=1
9770 echo "configure: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9773 ac_cv_c_stack_direction=-1
9777 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9778 { test "$extra_verbose" = "yes" && cat << EOF
9779 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9781 cat >> confdefs.h <<EOF
9782 #define STACK_DIRECTION $ac_cv_c_stack_direction
9788 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9789 echo " xemacs will be linked with \"$ALLOCA\""
9792 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9793 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9794 echo "configure:9795: checking for vfork.h" >&5
9796 cat > conftest.$ac_ext <<EOF
9797 #line 9798 "configure"
9798 #include "confdefs.h"
9801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9802 { (eval echo configure:9803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9804 if test -z "$ac_err"; then
9806 eval "ac_cv_header_$ac_safe=yes"
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9812 eval "ac_cv_header_$ac_safe=no"
9815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9816 echo "$ac_t""yes" 1>&6
9817 { test "$extra_verbose" = "yes" && cat << \EOF
9818 Defining HAVE_VFORK_H
9820 cat >> confdefs.h <<\EOF
9821 #define HAVE_VFORK_H 1
9826 echo "$ac_t""no" 1>&6
9829 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9830 echo "configure:9831: checking for working vfork" >&5
9832 cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 /* Thanks to Paul Eggert for this test. */
9837 #include <sys/types.h>
9838 #include <sys/stat.h>
9839 #ifdef HAVE_UNISTD_H
9845 /* On some sparc systems, changes by the child to local and incoming
9846 argument registers are propagated back to the parent.
9847 The compiler is told about this with #include <vfork.h>,
9848 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9849 Test for this by using a static variable whose address
9850 is put into a register that is clobbered by the vfork. */
9853 sparc_address_test (int arg)
9855 sparc_address_test (arg) int arg;
9873 pid_t parent = getpid ();
9876 sparc_address_test ();
9881 /* Here is another test for sparc vfork register problems.
9882 This test uses lots of local variables, at least
9883 as many local variables as main has allocated so far
9884 including compiler temporaries. 4 locals are enough for
9885 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9886 A buggy compiler should reuse the register of parent
9887 for one of the local variables, since it will think that
9888 parent can't possibly be used any more in this routine.
9889 Assigning to the local variable will thus munge parent
9890 in the parent process. */
9892 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9893 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9894 /* Convince the compiler that p..p7 are live; otherwise, it might
9895 use the same hardware register for all 8 local variables. */
9896 if (p != p1 || p != p2 || p != p3 || p != p4
9897 || p != p5 || p != p6 || p != p7)
9900 /* On some systems (e.g. IRIX 3.3),
9901 vfork doesn't separate parent from child file descriptors.
9902 If the child closes a descriptor before it execs or exits,
9903 this munges the parent's descriptor as well.
9904 Test for this by closing stdout in the child. */
9905 _exit(close(fileno(stdout)) != 0);
9910 while (wait(&status) != child)
9913 /* Was there some problem with vforking? */
9916 /* Did the child fail? (This shouldn't happen.) */
9919 /* Did the vfork/compiler bug occur? */
9920 || parent != getpid()
9922 /* Did the file descriptor bug occur? */
9923 || fstat(fileno(stdout), &st) != 0
9928 if { (eval echo configure:9929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9930 ac_cv_func_vfork_works=yes
9933 echo "configure: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9936 ac_cv_func_vfork_works=no
9940 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9941 if test $ac_cv_func_vfork_works = no; then
9942 { test "$extra_verbose" = "yes" && cat << \EOF
9943 Defining vfork = fork
9945 cat >> confdefs.h <<\EOF
9953 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9954 echo "configure:9955: checking for working strcoll" >&5
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9962 exit (strcoll ("abc", "def") >= 0 ||
9963 strcoll ("ABC", "DEF") >= 0 ||
9964 strcoll ("123", "456") >= 0);
9967 if { (eval echo configure:9968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9969 ac_cv_func_strcoll_works=yes
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9975 ac_cv_func_strcoll_works=no
9979 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9980 if test $ac_cv_func_strcoll_works = yes; then
9981 { test "$extra_verbose" = "yes" && cat << \EOF
9982 Defining HAVE_STRCOLL
9984 cat >> confdefs.h <<\EOF
9985 #define HAVE_STRCOLL 1
9992 for ac_func in getpgrp
9994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9995 echo "configure:9996: checking for $ac_func" >&5
9997 cat > conftest.$ac_ext <<EOF
9998 #line 9999 "configure"
9999 #include "confdefs.h"
10000 /* System header to define __stub macros and hopefully few prototypes,
10001 which can conflict with char $ac_func(); below. */
10002 #include <assert.h>
10003 /* Override any gcc2 internal prototype to avoid an error. */
10004 /* We use char because int might match the return type of a gcc2
10005 builtin and then its argument prototype would still apply. */
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10021 if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10023 eval "ac_cv_func_$ac_func=yes"
10025 echo "configure: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10028 eval "ac_cv_func_$ac_func=no"
10032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10033 echo "$ac_t""yes" 1>&6
10034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10035 { test "$extra_verbose" = "yes" && cat << EOF
10036 Defining $ac_tr_func
10038 cat >> confdefs.h <<EOF
10039 #define $ac_tr_func 1
10044 echo "$ac_t""no" 1>&6
10048 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10049 echo "configure:10050: checking whether getpgrp takes no argument" >&5
10051 cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure"
10053 #include "confdefs.h"
10056 * If this system has a BSD-style getpgrp(),
10057 * which takes a pid argument, exit unsuccessfully.
10059 * Snarfed from Chet Ramey's bash pgrp.c test program
10062 #include <sys/types.h>
10065 int pg1, pg2, pg3, pg4;
10066 int ng, np, s, child;
10073 pg3 = getpgrp(pid);
10077 * If all of these values are the same, it's pretty sure that
10078 * we're on a system that ignores getpgrp's first argument.
10080 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10086 else if (child == 0) {
10089 * If this is Sys V, this will not work; pgrp will be
10090 * set to np because setpgrp just changes a pgrp to be
10091 * the same as the pid.
10094 ng = getpgrp(0); /* Same result for Sys V and BSD */
10107 if { (eval echo configure:10108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10109 ac_cv_func_getpgrp_void=yes
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10115 ac_cv_func_getpgrp_void=no
10120 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10121 if test $ac_cv_func_getpgrp_void = yes; then
10122 { test "$extra_verbose" = "yes" && cat << \EOF
10123 Defining GETPGRP_VOID
10125 cat >> confdefs.h <<\EOF
10126 #define GETPGRP_VOID 1
10133 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10134 echo "configure:10135: checking for working mmap" >&5
10135 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10136 cat > conftest.$ac_ext <<EOF
10137 #line 10138 "configure"
10138 #include "confdefs.h"
10140 #include <unistd.h>
10142 #include <sys/mman.h>
10144 #ifndef MAP_VARIABLE
10145 #define MAP_VARIABLE 0
10149 #define MAP_FAILED -1
10152 int main (int argc, char *argv[])
10156 #ifndef MAP_ANONYMOUS
10157 fd = open ("/dev/zero", O_RDWR);
10160 #define MAP_ANONYMOUS 0
10162 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10163 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10164 fd, 0) != (void *) MAP_FAILED)
10166 perror ("conftest: mmap failed");
10170 if { (eval echo configure:10171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10175 echo "configure: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10180 rm -fr conftest* ;;
10182 echo "$ac_t""$have_mmap" 1>&6
10183 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10186 cat >> confdefs.h <<\EOF
10187 #define HAVE_MMAP 1
10192 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10193 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10194 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10197 cat >> confdefs.h <<\EOF
10198 #define REL_ALLOC 1
10203 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10204 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10205 echo "configure:10206: checking for termios.h" >&5
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210 #include <termios.h>
10212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10213 { (eval echo configure:10214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10215 if test -z "$ac_err"; then
10217 eval "ac_cv_header_$ac_safe=yes"
10220 echo "configure: failed program was:" >&5
10221 cat conftest.$ac_ext >&5
10223 eval "ac_cv_header_$ac_safe=no"
10226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10227 echo "$ac_t""yes" 1>&6
10228 { test "$extra_verbose" = "yes" && cat << \EOF
10229 Defining HAVE_TERMIOS
10231 cat >> confdefs.h <<\EOF
10232 #define HAVE_TERMIOS 1
10236 { test "$extra_verbose" = "yes" && cat << \EOF
10237 Defining SIGNALS_VIA_CHARACTERS
10239 cat >> confdefs.h <<\EOF
10240 #define SIGNALS_VIA_CHARACTERS 1
10244 { test "$extra_verbose" = "yes" && cat << \EOF
10247 cat >> confdefs.h <<\EOF
10248 #define NO_TERMIO 1
10253 echo "$ac_t""no" 1>&6
10254 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10255 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10256 echo "configure:10257: checking for termio.h" >&5
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 #include <termio.h>
10263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10264 { (eval echo configure:10265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10266 if test -z "$ac_err"; then
10268 eval "ac_cv_header_$ac_safe=yes"
10271 echo "configure: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10274 eval "ac_cv_header_$ac_safe=no"
10277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10278 echo "$ac_t""yes" 1>&6
10279 { test "$extra_verbose" = "yes" && cat << \EOF
10280 Defining HAVE_TERMIO
10282 cat >> confdefs.h <<\EOF
10283 #define HAVE_TERMIO 1
10288 echo "$ac_t""no" 1>&6
10295 echo $ac_n "checking for socket""... $ac_c" 1>&6
10296 echo "configure:10297: checking for socket" >&5
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10300 "configure"
10300 #include "confdefs.h"
10301 /* System header to define __stub macros and hopefully few prototypes,
10302 which can conflict with char socket(); below. */
10303 #include <assert.h>
10304 /* Override any gcc2 internal prototype to avoid an error. */
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10311 /* The GNU C library defines this for functions which it implements
10312 to always fail with ENOSYS. Some functions are actually named
10313 something starting with __ and the normal name is an alias. */
10314 #if defined (__stub_socket) || defined (__stub___socket)
10322 if { (eval echo configure:10323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10324 eval "ac_cv_func_socket=yes"
10326 echo "configure: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10329 eval "ac_cv_func_socket=no"
10333 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10334 echo "$ac_t""yes" 1>&6
10335 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10336 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10337 echo "configure:10338: checking for netinet/in.h" >&5
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10342 #include <netinet/in.h>
10344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10345 { (eval echo configure:10346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10347 if test -z "$ac_err"; then
10349 eval "ac_cv_header_$ac_safe=yes"
10352 echo "configure: failed program was:" >&5
10353 cat conftest.$ac_ext >&5
10355 eval "ac_cv_header_$ac_safe=no"
10358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10359 echo "$ac_t""yes" 1>&6
10360 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10361 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10362 echo "configure:10363: checking for arpa/inet.h" >&5
10364 cat > conftest.$ac_ext <<EOF
10365 #line 10366 "configure"
10366 #include "confdefs.h"
10367 #include <arpa/inet.h>
10369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10370 { (eval echo configure:10371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10372 if test -z "$ac_err"; then
10374 eval "ac_cv_header_$ac_safe=yes"
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10380 eval "ac_cv_header_$ac_safe=no"
10383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
10386 { test "$extra_verbose" = "yes" && cat << \EOF
10387 Defining HAVE_SOCKETS
10389 cat >> confdefs.h <<\EOF
10390 #define HAVE_SOCKETS 1
10394 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10395 echo "configure:10396: checking "for sun_len member in struct sockaddr_un"" >&5
10396 cat > conftest.$ac_ext <<EOF
10397 #line 10398 "configure"
10398 #include "confdefs.h"
10400 #include <sys/types.h>
10401 #include <sys/socket.h>
10402 #include <sys/un.h>
10405 static struct sockaddr_un x; x.sun_len = 1;
10408 if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10410 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10411 Defining HAVE_SOCKADDR_SUN_LEN
10413 cat >> confdefs.h <<\EOF
10414 #define HAVE_SOCKADDR_SUN_LEN 1
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10422 echo "$ac_t""no" 1>&6
10425 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10426 echo "configure:10427: checking "for ip_mreq struct in netinet/in.h"" >&5
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10431 #include <sys/types.h>
10432 #include <netinet/in.h>
10435 static struct ip_mreq x;
10438 if { (eval echo configure:10439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10440 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10441 Defining HAVE_MULTICAST
10443 cat >> confdefs.h <<\EOF
10444 #define HAVE_MULTICAST 1
10449 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10452 echo "$ac_t""no" 1>&6
10456 echo "$ac_t""no" 1>&6
10460 echo "$ac_t""no" 1>&6
10464 echo "$ac_t""no" 1>&6
10468 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10469 echo "configure:10470: checking for msgget" >&5
10471 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10474 /* System header to define __stub macros and hopefully few prototypes,
10475 which can conflict with char msgget(); below. */
10476 #include <assert.h>
10477 /* Override any gcc2 internal prototype to avoid an error. */
10478 /* We use char because int might match the return type of a gcc2
10479 builtin and then its argument prototype would still apply. */
10484 /* The GNU C library defines this for functions which it implements
10485 to always fail with ENOSYS. Some functions are actually named
10486 something starting with __ and the normal name is an alias. */
10487 #if defined (__stub_msgget) || defined (__stub___msgget)
10495 if { (eval echo configure:10496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10497 eval "ac_cv_func_msgget=yes"
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10502 eval "ac_cv_func_msgget=no"
10506 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10507 echo "$ac_t""yes" 1>&6
10508 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10509 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10510 echo "configure:10511: checking for sys/ipc.h" >&5
10512 cat > conftest.$ac_ext <<EOF
10513 #line 10514 "configure"
10514 #include "confdefs.h"
10515 #include <sys/ipc.h>
10517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10518 { (eval echo configure:10519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10520 if test -z "$ac_err"; then
10522 eval "ac_cv_header_$ac_safe=yes"
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10528 eval "ac_cv_header_$ac_safe=no"
10531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10532 echo "$ac_t""yes" 1>&6
10533 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10534 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10535 echo "configure:10536: checking for sys/msg.h" >&5
10537 cat > conftest.$ac_ext <<EOF
10538 #line 10539 "configure"
10539 #include "confdefs.h"
10540 #include <sys/msg.h>
10542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10543 { (eval echo configure:10544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10545 if test -z "$ac_err"; then
10547 eval "ac_cv_header_$ac_safe=yes"
10550 echo "configure: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10553 eval "ac_cv_header_$ac_safe=no"
10556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10557 echo "$ac_t""yes" 1>&6
10558 { test "$extra_verbose" = "yes" && cat << \EOF
10559 Defining HAVE_SYSVIPC
10561 cat >> confdefs.h <<\EOF
10562 #define HAVE_SYSVIPC 1
10567 echo "$ac_t""no" 1>&6
10571 echo "$ac_t""no" 1>&6
10575 echo "$ac_t""no" 1>&6
10579 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10580 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10581 echo "configure:10582: checking for dirent.h" >&5
10583 cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure"
10585 #include "confdefs.h"
10586 #include <dirent.h>
10588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10589 { (eval echo configure:10590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10591 if test -z "$ac_err"; then
10593 eval "ac_cv_header_$ac_safe=yes"
10596 echo "configure: failed program was:" >&5
10597 cat conftest.$ac_ext >&5
10599 eval "ac_cv_header_$ac_safe=no"
10602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10603 echo "$ac_t""yes" 1>&6
10604 { test "$extra_verbose" = "yes" && cat << \EOF
10605 Defining SYSV_SYSTEM_DIR
10607 cat >> confdefs.h <<\EOF
10608 #define SYSV_SYSTEM_DIR 1
10613 echo "$ac_t""no" 1>&6
10614 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10615 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10616 echo "configure:10617: checking for sys/dir.h" >&5
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621 #include <sys/dir.h>
10623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10624 { (eval echo configure:10625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10626 if test -z "$ac_err"; then
10628 eval "ac_cv_header_$ac_safe=yes"
10631 echo "configure: failed program was:" >&5
10632 cat conftest.$ac_ext >&5
10634 eval "ac_cv_header_$ac_safe=no"
10637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10638 echo "$ac_t""yes" 1>&6
10641 echo "$ac_t""no" 1>&6
10642 { test "$extra_verbose" = "yes" && cat << \EOF
10643 Defining NONSYSTEM_DIR_LIBRARY
10645 cat >> confdefs.h <<\EOF
10646 #define NONSYSTEM_DIR_LIBRARY 1
10655 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10656 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10657 echo "configure:10658: checking for nlist.h" >&5
10659 cat > conftest.$ac_ext <<EOF
10660 #line 10661 "configure"
10661 #include "confdefs.h"
10664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10665 { (eval echo configure:10666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10667 if test -z "$ac_err"; then
10669 eval "ac_cv_header_$ac_safe=yes"
10672 echo "configure: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10675 eval "ac_cv_header_$ac_safe=no"
10678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10679 echo "$ac_t""yes" 1>&6
10680 { test "$extra_verbose" = "yes" && cat << \EOF
10681 Defining NLIST_STRUCT
10683 cat >> confdefs.h <<\EOF
10684 #define NLIST_STRUCT 1
10689 echo "$ac_t""no" 1>&6
10694 echo "checking "for sound support"" 1>&6
10695 echo "configure:10696: checking "for sound support"" >&5
10696 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10698 if test "$with_native_sound" != "no"; then
10699 if test -n "$native_sound_lib"; then
10700 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10701 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10702 echo "configure:10703: checking for multimedia/audio_device.h" >&5
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include <multimedia/audio_device.h>
10709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10710 { (eval echo configure:10711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10712 if test -z "$ac_err"; then
10714 eval "ac_cv_header_$ac_safe=yes"
10717 echo "configure: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10720 eval "ac_cv_header_$ac_safe=no"
10723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10724 echo "$ac_t""yes" 1>&6
10725 sound_found=yes sound_cflags=""
10726 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10727 echo " xemacs will be linked with \"sunplay.o\""
10730 echo "$ac_t""no" 1>&6
10735 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10737 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10738 echo " xemacs will be linked with \"sunplay.o\""
10740 if test -d "/usr/demo/SOUND/include"
10741 then sound_cflags="-I/usr/demo/SOUND/include"
10742 else sound_cflags="-I/usr/demo/SOUND"
10744 if test -z "$native_sound_lib" ; then
10745 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10746 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10747 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10752 if test -z "$sound_found"; then
10753 case "$canonical" in
10755 if test -z "$native_sound_lib"; then
10757 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10758 echo "configure:10759: checking for ALopenport in -laudio" >&5
10759 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10761 xe_check_libs=" -laudio "
10762 cat > conftest.$ac_ext <<EOF
10763 #line 10764 "configure"
10764 #include "confdefs.h"
10765 /* Override any gcc2 internal prototype to avoid an error. */
10766 /* We use char because int might match the return type of a gcc2
10767 builtin and then its argument prototype would still apply. */
10774 if { (eval echo configure:10775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10776 eval "ac_cv_lib_$ac_lib_var=yes"
10778 echo "configure: failed program was:" >&5
10779 cat conftest.$ac_ext >&5
10781 eval "ac_cv_lib_$ac_lib_var=no"
10786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10787 echo "$ac_t""yes" 1>&6
10788 native_sound_lib="-laudio"
10790 echo "$ac_t""no" 1>&6
10795 if test -n "$native_sound_lib"; then
10796 sound_found=yes sound_cflags=""
10797 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10798 echo " xemacs will be linked with \"sgiplay.o\""
10802 if test -z "$native_sound_lib"; then
10804 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10805 echo "configure:10806: checking for AOpenAudio in -lAlib" >&5
10806 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10808 xe_check_libs=" -lAlib "
10809 cat > conftest.$ac_ext <<EOF
10810 #line 10811 "configure"
10811 #include "confdefs.h"
10812 /* Override any gcc2 internal prototype to avoid an error. */
10813 /* We use char because int might match the return type of a gcc2
10814 builtin and then its argument prototype would still apply. */
10821 if { (eval echo configure:10822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10823 eval "ac_cv_lib_$ac_lib_var=yes"
10825 echo "configure: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10828 eval "ac_cv_lib_$ac_lib_var=no"
10833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10834 echo "$ac_t""yes" 1>&6
10835 native_sound_lib="-lAlib"
10837 echo "$ac_t""no" 1>&6
10842 if test -n "$native_sound_lib"; then
10844 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10845 echo " xemacs will be linked with \"hpplay.o\""
10847 if test "$GCC" = "yes" # Kludge city
10848 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10849 else sound_cflags="+e -I/usr/audio/examples"
10855 if test -z "$sound_found"; then
10856 for dir in "machine" "sys" "linux"; do
10857 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10858 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10859 echo "configure:10860: checking for ${dir}/soundcard.h" >&5
10861 cat > conftest.$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 #include <${dir}/soundcard.h>
10866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10867 { (eval echo configure:10868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10869 if test -z "$ac_err"; then
10871 eval "ac_cv_header_$ac_safe=yes"
10874 echo "configure: failed program was:" >&5
10875 cat conftest.$ac_ext >&5
10877 eval "ac_cv_header_$ac_safe=no"
10880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10881 echo "$ac_t""yes" 1>&6
10884 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10885 echo " xemacs will be linked with \"linuxplay.o\""
10887 { test "$extra_verbose" = "yes" && cat << EOF
10888 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10890 cat >> confdefs.h <<EOF
10891 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10897 echo "$ac_t""no" 1>&6
10903 test "$sound_found" = "yes" && with_native_sound=yes
10906 if test "$with_native_sound" = "yes"; then
10907 { test "$extra_verbose" = "yes" && cat << \EOF
10908 Defining HAVE_NATIVE_SOUND
10910 cat >> confdefs.h <<\EOF
10911 #define HAVE_NATIVE_SOUND 1
10915 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10918 if test "$with_nas_sound" != "no"; then
10919 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
10920 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
10921 echo "configure:10922: checking for audio/audiolib.h" >&5
10923 cat > conftest.$ac_ext <<EOF
10924 #line 10925 "configure"
10925 #include "confdefs.h"
10926 #include <audio/audiolib.h>
10928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10929 { (eval echo configure:10930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10931 if test -z "$ac_err"; then
10933 eval "ac_cv_header_$ac_safe=yes"
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10939 eval "ac_cv_header_$ac_safe=no"
10942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10943 echo "$ac_t""yes" 1>&6
10946 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
10947 echo "configure:10948: checking for AuOpenServer in -laudio" >&5
10948 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
10950 xe_check_libs=" -laudio "
10951 cat > conftest.$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954 /* Override any gcc2 internal prototype to avoid an error. */
10955 /* We use char because int might match the return type of a gcc2
10956 builtin and then its argument prototype would still apply. */
10957 char AuOpenServer();
10963 if { (eval echo configure:10964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10965 eval "ac_cv_lib_$ac_lib_var=yes"
10967 echo "configure: failed program was:" >&5
10968 cat conftest.$ac_ext >&5
10970 eval "ac_cv_lib_$ac_lib_var=no"
10975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10976 echo "$ac_t""yes" 1>&6
10979 echo "$ac_t""no" 1>&6
10984 echo "$ac_t""no" 1>&6
10987 if test "$have_nas_sound" = "yes"; then
10989 { test "$extra_verbose" = "yes" && cat << \EOF
10990 Defining HAVE_NAS_SOUND
10992 cat >> confdefs.h <<\EOF
10993 #define HAVE_NAS_SOUND 1
10997 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10998 echo " xemacs will be linked with \"nas.o\""
11000 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11001 cat > conftest.$ac_ext <<EOF
11002 #line 11003 "configure"
11003 #include "confdefs.h"
11004 #include <audio/Xtutil.h>
11006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11007 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11011 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
11012 Defining NAS_NO_ERROR_JUMP
11014 cat >> confdefs.h <<\EOF
11015 #define NAS_NO_ERROR_JUMP 1
11023 test "$with_nas_sound" = "yes" && \
11024 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11029 if test "$with_esd_sound" != "no"; then
11030 # Extract the first word of "esd-config", so it can be a program name with args.
11031 set dummy esd-config; ac_word=$2
11032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11033 echo "configure:11034: checking for $ac_word" >&5
11035 if test -n "$have_esd_config"; then
11036 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11040 for ac_dir in $ac_dummy; do
11041 test -z "$ac_dir" && ac_dir=.
11042 if test -f $ac_dir/$ac_word; then
11043 ac_cv_prog_have_esd_config="yes"
11048 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11050 have_esd_config="$ac_cv_prog_have_esd_config"
11051 if test -n "$have_esd_config"; then
11052 echo "$ac_t""$have_esd_config" 1>&6
11054 echo "$ac_t""no" 1>&6
11057 if test "$have_esd_config" = "yes"; then
11058 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11059 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
11060 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11061 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11062 echo "configure:11063: checking for esd_play_stream" >&5
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11067 /* System header to define __stub macros and hopefully few prototypes,
11068 which can conflict with char esd_play_stream(); below. */
11069 #include <assert.h>
11070 /* Override any gcc2 internal prototype to avoid an error. */
11071 /* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
11073 char esd_play_stream();
11077 /* The GNU C library defines this for functions which it implements
11078 to always fail with ENOSYS. Some functions are actually named
11079 something starting with __ and the normal name is an alias. */
11080 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11088 if { (eval echo configure:11089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11090 eval "ac_cv_func_esd_play_stream=yes"
11092 echo "configure: failed program was:" >&5
11093 cat conftest.$ac_ext >&5
11095 eval "ac_cv_func_esd_play_stream=no"
11099 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11100 echo "$ac_t""yes" 1>&6
11103 echo "$ac_t""no" 1>&6
11104 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11109 if test "$have_esd_sound" = "yes"; then
11112 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11113 echo " xemacs will be linked with \"esd.o\""
11115 { test "$extra_verbose" = "yes" && cat << \EOF
11116 Defining HAVE_ESD_SOUND
11118 cat >> confdefs.h <<\EOF
11119 #define HAVE_ESD_SOUND 1
11124 test "$with_esd_sound" = "yes" && \
11125 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11130 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
11131 echo " xemacs will be linked with \"miscplay.o\""
11135 test -z "$with_tty" && with_tty=yes
11137 if test "$with_tty" = "yes" ; then
11138 echo "checking for TTY-related features" 1>&6
11139 echo "configure:11140: checking for TTY-related features" >&5
11140 { test "$extra_verbose" = "yes" && cat << \EOF
11143 cat >> confdefs.h <<\EOF
11148 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
11149 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\""
11152 if test -z "$with_ncurses"; then
11154 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11155 echo "configure:11156: checking for tgetent in -lncurses" >&5
11156 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11158 xe_check_libs=" -lncurses "
11159 cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11162 /* Override any gcc2 internal prototype to avoid an error. */
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11171 if { (eval echo configure:11172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173 eval "ac_cv_lib_$ac_lib_var=yes"
11175 echo "configure: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11178 eval "ac_cv_lib_$ac_lib_var=no"
11183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11184 echo "$ac_t""yes" 1>&6
11187 echo "$ac_t""no" 1>&6
11193 if test "$with_ncurses" = "yes"; then
11194 { test "$extra_verbose" = "yes" && cat << \EOF
11195 Defining HAVE_NCURSES
11197 cat >> confdefs.h <<\EOF
11198 #define HAVE_NCURSES 1
11202 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11203 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11204 echo "configure:11205: checking for ncurses/curses.h" >&5
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11209 #include <ncurses/curses.h>
11211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11212 { (eval echo configure:11213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11214 if test -z "$ac_err"; then
11216 eval "ac_cv_header_$ac_safe=yes"
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11222 eval "ac_cv_header_$ac_safe=no"
11225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11226 echo "$ac_t""yes" 1>&6
11227 curses_h_path=ncurses/curses.h
11229 echo "$ac_t""no" 1>&6
11232 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11233 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11234 echo "configure:11235: checking for ncurses/term.h" >&5
11236 cat > conftest.$ac_ext <<EOF
11237 #line 11238 "configure"
11238 #include "confdefs.h"
11239 #include <ncurses/term.h>
11241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11242 { (eval echo configure:11243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11244 if test -z "$ac_err"; then
11246 eval "ac_cv_header_$ac_safe=yes"
11249 echo "configure: failed program was:" >&5
11250 cat conftest.$ac_ext >&5
11252 eval "ac_cv_header_$ac_safe=no"
11255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11256 echo "$ac_t""yes" 1>&6
11257 term_h_path=ncurses/term.h
11259 echo "$ac_t""no" 1>&6
11262 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11263 echo " xemacs will be linked with \"terminfo.o\""
11265 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11267 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11268 save_c_switch_site="$c_switch_site"
11269 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11270 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11271 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11272 echo "configure:11273: checking for ncurses/curses.h" >&5
11274 cat > conftest.$ac_ext <<EOF
11275 #line 11276 "configure"
11276 #include "confdefs.h"
11277 #include <ncurses/curses.h>
11279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11280 { (eval echo configure:11281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11282 if test -z "$ac_err"; then
11284 eval "ac_cv_header_$ac_safe=yes"
11287 echo "configure: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11290 eval "ac_cv_header_$ac_safe=no"
11293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11294 echo "$ac_t""yes" 1>&6
11295 curses_h_path=ncurses/curses.h
11297 echo "$ac_t""no" 1>&6
11300 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11301 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11302 else c_switch_site="$save_c_switch_site"
11305 else if test "$have_terminfo" = "yes"; then
11306 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11307 echo " xemacs will be linked with \"terminfo.o\""
11309 if test -n "$libs_termcap"; then
11310 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11312 for lib in curses termlib termcap; do
11314 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11315 echo "configure:11316: checking for tgetent in -l$lib" >&5
11316 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11318 xe_check_libs=" -l$lib "
11319 cat > conftest.$ac_ext <<EOF
11320 #line 11321 "configure"
11321 #include "confdefs.h"
11322 /* Override any gcc2 internal prototype to avoid an error. */
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11331 if { (eval echo configure:11332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11333 eval "ac_cv_lib_$ac_lib_var=yes"
11335 echo "configure: failed program was:" >&5
11336 cat conftest.$ac_ext >&5
11338 eval "ac_cv_lib_$ac_lib_var=no"
11343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11344 echo "$ac_t""yes" 1>&6
11345 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11347 echo "$ac_t""no" 1>&6
11353 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11354 echo " xemacs will be linked with \"tparam.o\""
11356 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11357 if test -n "$libs_termcap"; then
11358 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11361 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11362 echo "configure:11363: checking for tgetent in -lcurses" >&5
11363 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11365 xe_check_libs=" -lcurses "
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11369 /* Override any gcc2 internal prototype to avoid an error. */
11370 /* We use char because int might match the return type of a gcc2
11371 builtin and then its argument prototype would still apply. */
11378 if { (eval echo configure:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11380 eval "ac_cv_lib_$ac_lib_var=yes"
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11385 eval "ac_cv_lib_$ac_lib_var=no"
11390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11391 echo "$ac_t""yes" 1>&6
11392 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11394 echo "$ac_t""no" 1>&6
11395 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11396 echo "configure:11397: checking for tgetent in -ltermcap" >&5
11397 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11399 xe_check_libs=" -ltermcap "
11400 cat > conftest.$ac_ext <<EOF
11401 #line 11402 "configure"
11402 #include "confdefs.h"
11403 /* Override any gcc2 internal prototype to avoid an error. */
11404 /* We use char because int might match the return type of a gcc2
11405 builtin and then its argument prototype would still apply. */
11412 if { (eval echo configure:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11414 eval "ac_cv_lib_$ac_lib_var=yes"
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11419 eval "ac_cv_lib_$ac_lib_var=no"
11424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11425 echo "$ac_t""yes" 1>&6
11426 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11428 echo "$ac_t""no" 1>&6
11429 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11430 echo " xemacs will be linked with \"termcap.o\""
11441 { test "$extra_verbose" = "yes" && cat << EOF
11442 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11444 cat >> confdefs.h <<EOF
11445 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11449 { test "$extra_verbose" = "yes" && cat << EOF
11450 Defining TERM_H_PATH = "${term_h_path-term.h}"
11452 cat >> confdefs.h <<EOF
11453 #define TERM_H_PATH "${term_h_path-term.h}"
11458 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11459 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11460 echo "configure:11461: checking for gpm.h" >&5
11462 cat > conftest.$ac_ext <<EOF
11463 #line 11464 "configure"
11464 #include "confdefs.h"
11467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11468 { (eval echo configure:11469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11470 if test -z "$ac_err"; then
11472 eval "ac_cv_header_$ac_safe=yes"
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11478 eval "ac_cv_header_$ac_safe=no"
11481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11482 echo "$ac_t""yes" 1>&6
11485 echo "$ac_t""no" 1>&6
11489 test -z "$with_gpm" && {
11490 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11491 echo "configure:11492: checking for Gpm_Open in -lgpm" >&5
11492 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11494 xe_check_libs=" -lgpm "
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.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. */
11507 if { (eval echo configure:11508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11509 eval "ac_cv_lib_$ac_lib_var=yes"
11511 echo "configure: failed program was:" >&5
11512 cat conftest.$ac_ext >&5
11514 eval "ac_cv_lib_$ac_lib_var=no"
11519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11520 echo "$ac_t""yes" 1>&6
11523 echo "$ac_t""no" 1>&6
11528 if test "$with_gpm" = "yes"; then
11529 { test "$extra_verbose" = "yes" && cat << \EOF
11532 cat >> confdefs.h <<\EOF
11537 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11538 echo " xemacs will be linked with \"gpmevent.o\""
11540 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11543 else for feature in ncurses gpm; do
11544 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11545 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11547 eval "with_${feature}=no"
11550 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11551 echo " xemacs will be linked with \"event-unixoid.o\""
11555 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11556 != "no no no" && echo "checking for database support" 1>&6
11557 echo "configure:11558: checking for database support" >&5
11559 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
11560 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11561 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11562 echo "configure:11563: checking for ndbm.h" >&5
11564 cat > conftest.$ac_ext <<EOF
11565 #line 11566 "configure"
11566 #include "confdefs.h"
11569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11570 { (eval echo configure:11571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11572 if test -z "$ac_err"; then
11574 eval "ac_cv_header_$ac_safe=yes"
11577 echo "configure: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11580 eval "ac_cv_header_$ac_safe=no"
11583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11584 echo "$ac_t""yes" 1>&6
11587 echo "$ac_t""no" 1>&6
11589 test "$with_database_gdbm" = "yes" -o \
11590 "$with_database_dbm" = "yes" && \
11591 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11592 with_database_gdbm=no with_database_dbm=no
11597 if test "$with_database_gdbm" != "no"; then
11599 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11600 echo "configure:11601: checking for dbm_open in -lgdbm" >&5
11601 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11603 xe_check_libs=" -lgdbm "
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11607 /* Override any gcc2 internal prototype to avoid an error. */
11608 /* We use char because int might match the return type of a gcc2
11609 builtin and then its argument prototype would still apply. */
11616 if { (eval echo configure:11617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11618 eval "ac_cv_lib_$ac_lib_var=yes"
11620 echo "configure: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11623 eval "ac_cv_lib_$ac_lib_var=no"
11628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11629 echo "$ac_t""yes" 1>&6
11630 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
11632 echo "$ac_t""no" 1>&6
11633 if test "$with_database_gdbm" = "yes"; then
11634 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11636 with_database_gdbm=no
11642 if test "$with_database_dbm" != "no"; then
11643 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11644 echo "configure:11645: checking for dbm_open" >&5
11646 cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11649 /* System header to define __stub macros and hopefully few prototypes,
11650 which can conflict with char dbm_open(); below. */
11651 #include <assert.h>
11652 /* Override any gcc2 internal prototype to avoid an error. */
11653 /* We use char because int might match the return type of a gcc2
11654 builtin and then its argument prototype would still apply. */
11659 /* The GNU C library defines this for functions which it implements
11660 to always fail with ENOSYS. Some functions are actually named
11661 something starting with __ and the normal name is an alias. */
11662 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11670 if { (eval echo configure:11671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11672 eval "ac_cv_func_dbm_open=yes"
11674 echo "configure: failed program was:" >&5
11675 cat conftest.$ac_ext >&5
11677 eval "ac_cv_func_dbm_open=no"
11681 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11682 echo "$ac_t""yes" 1>&6
11683 with_database_dbm=yes libdbm=
11685 echo "$ac_t""no" 1>&6
11688 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11689 echo "configure:11690: checking for dbm_open in -ldbm" >&5
11690 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11692 xe_check_libs=" -ldbm "
11693 cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11696 /* Override any gcc2 internal prototype to avoid an error. */
11697 /* We use char because int might match the return type of a gcc2
11698 builtin and then its argument prototype would still apply. */
11705 if { (eval echo configure:11706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11707 eval "ac_cv_lib_$ac_lib_var=yes"
11709 echo "configure: failed program was:" >&5
11710 cat conftest.$ac_ext >&5
11712 eval "ac_cv_lib_$ac_lib_var=no"
11717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11718 echo "$ac_t""yes" 1>&6
11719 with_database_dbm=yes libdbm=-ldbm
11721 echo "$ac_t""no" 1>&6
11722 test "$with_database_dbm" = "yes" && \
11723 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11724 with_database_dbm=no
11732 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11733 test "$with_database_gdbm" = "yes" -o \
11734 "$with_database_dbm" = "yes" && \
11735 { test "$extra_verbose" = "yes" && cat << \EOF
11738 cat >> confdefs.h <<\EOF
11744 if test "$with_database_berkdb" != "no"; then
11745 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11746 echo "configure:11747: checking for Berkeley db.h" >&5
11747 for path in "db/db.h" "db.h"; do
11748 cat > conftest.$ac_ext <<EOF
11749 #line 11750 "configure"
11750 #include "confdefs.h"
11751 #ifdef HAVE_INTTYPES_H
11752 #define __BIT_TYPES_DEFINED__
11753 #include <inttypes.h>
11754 typedef uint8_t u_int8_t;
11755 typedef uint16_t u_int16_t;
11756 typedef uint32_t u_int32_t;
11757 #ifdef WE_DONT_NEED_QUADS
11758 typedef uint64_t u_int64_t;
11767 if { (eval echo configure:11768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11769 db_h_path="$path"; break
11771 echo "configure: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11776 if test -z "$db_h_path"
11777 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11778 else echo "$ac_t""$db_h_path" 1>&6
11781 if test "$with_database_berkdb" != "no"; then
11782 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11783 echo "configure:11784: checking for Berkeley DB version" >&5
11784 cat > conftest.$ac_ext <<EOF
11785 #line 11786 "configure"
11786 #include "confdefs.h"
11787 #include <$db_h_path>
11788 #if DB_VERSION_MAJOR > 1
11793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11794 egrep "yes" >/dev/null 2>&1; then
11796 echo "$ac_t""2" 1>&6; dbfunc=db_open
11799 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11803 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11804 echo "configure:11805: checking for $dbfunc" >&5
11806 cat > conftest.$ac_ext <<EOF
11807 #line 11808 "configure"
11808 #include "confdefs.h"
11809 /* System header to define __stub macros and hopefully few prototypes,
11810 which can conflict with char $dbfunc(); below. */
11811 #include <assert.h>
11812 /* Override any gcc2 internal prototype to avoid an error. */
11813 /* We use char because int might match the return type of a gcc2
11814 builtin and then its argument prototype would still apply. */
11819 /* The GNU C library defines this for functions which it implements
11820 to always fail with ENOSYS. Some functions are actually named
11821 something starting with __ and the normal name is an alias. */
11822 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11830 if { (eval echo configure:11831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11832 eval "ac_cv_func_$dbfunc=yes"
11834 echo "configure: failed program was:" >&5
11835 cat conftest.$ac_ext >&5
11837 eval "ac_cv_func_$dbfunc=no"
11841 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11842 echo "$ac_t""yes" 1>&6
11843 with_database_berkdb=yes need_libdb=no
11845 echo "$ac_t""no" 1>&6
11848 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11849 echo "configure:11850: checking for $dbfunc in -ldb" >&5
11850 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11852 xe_check_libs=" -ldb "
11853 cat > conftest.$ac_ext <<EOF
11854 #line 11855 "configure"
11855 #include "confdefs.h"
11856 /* Override any gcc2 internal prototype to avoid an error. */
11857 /* We use char because int might match the return type of a gcc2
11858 builtin and then its argument prototype would still apply. */
11865 if { (eval echo configure:11866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11867 eval "ac_cv_lib_$ac_lib_var=yes"
11869 echo "configure: failed program was:" >&5
11870 cat conftest.$ac_ext >&5
11872 eval "ac_cv_lib_$ac_lib_var=no"
11877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11878 echo "$ac_t""yes" 1>&6
11879 with_database_berkdb=yes need_libdb=yes
11881 echo "$ac_t""no" 1>&6
11889 if test "$with_database_berkdb" = "yes"; then
11890 { test "$extra_verbose" = "yes" && cat << EOF
11891 Defining DB_H_PATH = "$db_h_path"
11893 cat >> confdefs.h <<EOF
11894 #define DB_H_PATH "$db_h_path"
11898 { test "$extra_verbose" = "yes" && cat << \EOF
11899 Defining HAVE_BERKELEY_DB
11901 cat >> confdefs.h <<\EOF
11902 #define HAVE_BERKELEY_DB 1
11906 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11907 else with_database_berkdb=no
11911 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11912 != "no no no"; then
11913 { test "$extra_verbose" = "yes" && cat << \EOF
11914 Defining HAVE_DATABASE
11916 cat >> confdefs.h <<\EOF
11917 #define HAVE_DATABASE 1
11921 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11922 echo " xemacs will be linked with \"database.o\""
11926 if test "$with_socks" = "yes"; then
11928 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11929 echo "configure:11930: checking for SOCKSinit in -lsocks" >&5
11930 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11932 xe_check_libs=" -lsocks "
11933 cat > conftest.$ac_ext <<EOF
11934 #line 11935 "configure"
11935 #include "confdefs.h"
11936 /* Override any gcc2 internal prototype to avoid an error. */
11937 /* We use char because int might match the return type of a gcc2
11938 builtin and then its argument prototype would still apply. */
11945 if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11947 eval "ac_cv_lib_$ac_lib_var=yes"
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11952 eval "ac_cv_lib_$ac_lib_var=no"
11957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11958 echo "$ac_t""yes" 1>&6
11959 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11961 { test "$extra_verbose" = "yes" && cat << EOF
11962 Defining $ac_tr_lib
11964 cat >> confdefs.h <<EOF
11965 #define $ac_tr_lib 1
11969 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11972 echo "$ac_t""no" 1>&6
11976 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11977 Defining HAVE_SOCKS
11979 cat >> confdefs.h <<\EOF
11980 #define HAVE_SOCKS 1
11986 if test "$usage_tracking" = "yes"; then
11987 { test "$extra_verbose" = "yes" && cat << \EOF
11988 Defining USAGE_TRACKING
11990 cat >> confdefs.h <<\EOF
11991 #define USAGE_TRACKING 1
11995 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11998 if test "$with_modules" != "no"; then
11999 echo "checking for module support" 1>&6
12000 echo "configure:12001: checking for module support" >&5
12002 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12003 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12004 echo "configure:12005: checking for dlfcn.h" >&5
12006 cat > conftest.$ac_ext <<EOF
12007 #line 12008 "configure"
12008 #include "confdefs.h"
12011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12012 { (eval echo configure:12013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12014 if test -z "$ac_err"; then
12016 eval "ac_cv_header_$ac_safe=yes"
12019 echo "configure: failed program was:" >&5
12020 cat conftest.$ac_ext >&5
12022 eval "ac_cv_header_$ac_safe=no"
12025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12026 echo "$ac_t""yes" 1>&6
12029 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12030 echo "configure:12031: checking for dlopen in -ldl" >&5
12031 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12033 xe_check_libs=" -ldl "
12034 cat > conftest.$ac_ext <<EOF
12035 #line 12036 "configure"
12036 #include "confdefs.h"
12037 /* Override any gcc2 internal prototype to avoid an error. */
12038 /* We use char because int might match the return type of a gcc2
12039 builtin and then its argument prototype would still apply. */
12046 if { (eval echo configure:12047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12048 eval "ac_cv_lib_$ac_lib_var=yes"
12050 echo "configure: failed program was:" >&5
12051 cat conftest.$ac_ext >&5
12053 eval "ac_cv_lib_$ac_lib_var=no"
12058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12059 echo "$ac_t""yes" 1>&6
12060 have_dl=yes libdl=dl
12062 echo "$ac_t""no" 1>&6
12064 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12065 echo "configure:12066: checking for dlopen in -lc" >&5
12066 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12068 xe_check_libs=" -lc "
12069 cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 /* Override any gcc2 internal prototype to avoid an error. */
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12081 if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12083 eval "ac_cv_lib_$ac_lib_var=yes"
12085 echo "configure: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12088 eval "ac_cv_lib_$ac_lib_var=no"
12093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12094 echo "$ac_t""yes" 1>&6
12097 echo "$ac_t""no" 1>&6
12105 echo "$ac_t""no" 1>&6
12108 if test -n "$have_dl"; then
12109 { test "$extra_verbose" = "yes" && cat << \EOF
12110 Defining HAVE_DLOPEN
12112 cat >> confdefs.h <<\EOF
12113 #define HAVE_DLOPEN 1
12119 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12120 echo "configure:12121: checking for shl_load in -ldld" >&5
12121 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12123 xe_check_libs=" -ldld "
12124 cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12127 /* Override any gcc2 internal prototype to avoid an error. */
12128 /* We use char because int might match the return type of a gcc2
12129 builtin and then its argument prototype would still apply. */
12136 if { (eval echo configure:12137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12138 eval "ac_cv_lib_$ac_lib_var=yes"
12140 echo "configure: failed program was:" >&5
12141 cat conftest.$ac_ext >&5
12143 eval "ac_cv_lib_$ac_lib_var=no"
12148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12149 echo "$ac_t""yes" 1>&6
12150 libdl=dld have_dl=yes;
12151 { test "$extra_verbose" = "yes" && cat << \EOF
12152 Defining HAVE_SHL_LOAD
12154 cat >> confdefs.h <<\EOF
12155 #define HAVE_SHL_LOAD 1
12160 echo "$ac_t""no" 1>&6
12162 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12163 echo "configure:12164: checking for dld_init in -ldld" >&5
12164 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12166 xe_check_libs=" -ldld "
12167 cat > conftest.$ac_ext <<EOF
12168 #line 12169 "configure"
12169 #include "confdefs.h"
12170 /* Override any gcc2 internal prototype to avoid an error. */
12171 /* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12179 if { (eval echo configure:12180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12181 eval "ac_cv_lib_$ac_lib_var=yes"
12183 echo "configure: failed program was:" >&5
12184 cat conftest.$ac_ext >&5
12186 eval "ac_cv_lib_$ac_lib_var=no"
12191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12192 echo "$ac_t""yes" 1>&6
12193 libdl=dld have_dl=yes;
12194 { test "$extra_verbose" = "yes" && cat << \EOF
12195 Defining HAVE_DLD_INIT
12197 cat >> confdefs.h <<\EOF
12198 #define HAVE_DLD_INIT 1
12203 echo "$ac_t""no" 1>&6
12212 if test -n "$have_dl"; then
12219 ld_dynamic_link_flags=
12221 xealias=$internal_configuration
12223 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12224 echo "configure:12225: checking how to build dynamic libraries for ${xehost}" >&5
12225 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12228 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12231 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12232 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12233 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12235 case "$xehost_os" in
12237 # AIX sometimes has problems with the GCC collect2 program. For some
12238 # reason, if we set the COLLECT_NAMES environment variable, the problems
12239 # vanish in a puff of smoke.
12240 if test "${COLLECT_NAMES+set}" != set; then
12242 export COLLECT_NAMES
12247 # Now see if the compiler is really GCC.
12248 if test "$GCC" = "yes"; then
12251 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12252 echo "configure:12253: checking checking whether we are using GNU C" >&5
12253 cat > conftest.$ac_ext <<EOF
12254 #line 12255 "configure"
12255 #include "confdefs.h"
12262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12263 egrep "yes" >/dev/null 2>&1; then
12272 echo "$ac_t""${XEGCC}" 1>&6
12275 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12276 echo "configure:12277: checking how to produce PIC code" >&5
12279 can_build_shared=yes
12280 if test "$XEGCC" = yes; then
12283 case "$xehost_os" in
12284 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12285 # PIC is the default for these OSes.
12289 # We can build DLLs from non-PIC.
12292 # FIXME: we need at least 68020 code to build shared libraries, but
12293 # adding the `-m68020' flag to GCC prevents building anything better,
12295 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12302 # PORTME Check for PIC flags for the system compiler.
12303 case "$xehost_os" in
12304 hpux9* | hpux1[0-9]*)
12305 # Is there a better link_static_flag that works with the bundled CC?
12312 # PIC (with -KPIC) is the default.
12316 # We can build DLLs from non-PIC.
12320 # All OSF/1 code is PIC.
12325 dll_cflags='-belf -Kpic'
12359 can_build_shared=no
12364 if test -n "$dll_cflags"; then
12365 echo "$ac_t""${dll_cflags}" 1>&6
12367 # Check to make sure the dll_cflags actually works.
12368 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12369 echo "configure:12370: checking if PIC flag ${dll_cflags} really works" >&5
12370 save_CFLAGS="$CFLAGS"
12371 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12372 cat > conftest.$ac_ext <<EOF
12373 #line 12374 "configure"
12374 #include "confdefs.h"
12380 if { (eval echo configure:12381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12383 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12384 # reports no error. So, we need to grep stderr for (Bundled).
12385 if grep '(Bundled)' config.log >/dev/null; then
12386 echo "$ac_t""no" 1>&6
12387 can_build_shared=no
12390 echo "$ac_t""yes" 1>&6
12393 echo "configure: failed program was:" >&5
12394 cat conftest.$ac_ext >&5
12396 echo "$ac_t""no" 1>&6
12397 can_build_shared=no
12401 CFLAGS="$save_CFLAGS"
12403 echo "$ac_t""none" 1>&6
12406 if test "$can_build_shared" = "yes"; then
12410 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12411 echo "configure:12412: checking if C compiler can produce shared libraries" >&5
12412 if test "$XEGCC" = yes; then
12415 else # Not using GCC
12416 case "$xehost_os" in
12418 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12419 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12422 freebsd2* | netbsd* | openbsd*)
12424 xcldf="${wl}-Bshareable"
12433 xcldf="${wl}-b ${wl}+s"
12436 irix5* | irix6* | osf3* | osf4*)
12437 xcldf="${wl}-shared"
12441 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12447 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12448 xldf="-assert pure-text -Bstatic"
12451 fi # End if if we are using gcc
12453 if test -n "$xcldf"; then
12454 save_LDFLAGS=$LDFLAGS
12456 save_xe_libs=$xe_libs
12457 LDFLAGS="$xcldf $LDFLAGS"
12460 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12463 "configure"
12463 #include "confdefs.h"
12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12479 LDFLAGS=$save_LDFLAGS
12481 xe_libs=$save_xe_libs
12482 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12486 echo "$ac_t""${cc_produces_so}" 1>&6
12489 if test -z "$LTLD"; then
12491 if test "$XEGCC" = yes; then
12492 # Check if gcc -print-prog-name=ld gives a path.
12493 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12494 echo "configure:12495: checking for ld used by GCC" >&5
12495 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12497 # Accept absolute paths.
12499 if test -z "$LTLD"; then
12501 *gcc-lib*) LTLD="$CC"
12509 # If it fails, then pretend we aren't using GCC.
12513 # If it is relative, then search for the first ld in PATH.
12514 with_gnu_ld=unknown
12518 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12519 echo "configure:12520: checking for GNU ld" >&5
12522 if test -z "$LTLD"; then
12523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12524 for ac_dir in $PATH; do
12525 test -z "$ac_dir" && ac_dir=.
12526 if test -f "$ac_dir/$ac_prog"; then
12527 LTLD="$ac_dir/$ac_prog"
12528 # Check to see if the program is GNU ld. I'd rather use --version,
12529 # but apparently some GNU ld's only accept -v.
12530 # Break only if it was the GNU/non-GNU ld that we prefer.
12531 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12541 if test -n "$LTLD"; then
12542 echo "$ac_t""${LTLD}" 1>&6
12544 echo "$ac_t""no" 1>&6
12547 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12548 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12553 ld_dynamic_link_flags=
12555 # Check to see if it really is or isn't GNU ld.
12556 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12557 echo "configure:12558: checking if the linker is GNU ld" >&5
12558 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12559 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12564 echo "$ac_t""${xe_gnu_ld}" 1>&6
12566 case "$xehost_os" in
12567 amigaos* | sunos4*)
12568 # On these operating systems, we should treat GNU ld like the system ld.
12569 gnu_ld_acts_native=yes
12572 gnu_ld_acts_native=no
12576 if test "$cc_produces_so" = "yes"; then
12579 can_build_shared=yes
12581 # OK - only NOW do we futz about with ld.
12582 # See if the linker supports building shared libraries.
12583 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12584 echo "configure:12585: checking whether the linker supports shared libraries" >&5
12586 dll_ldflags=$LDFLAGS
12588 can_build_shared=yes
12589 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12590 # See if GNU ld supports shared libraries.
12591 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12593 dll_ldflags="-shared"
12599 # PORTME fill in a description of your system's linker (not GNU ld)
12600 case "$xehost_os" in
12610 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12611 # support. Future versions do this automatically, but an explicit c++rt0.o
12612 # doesn't break anything, and helps significantly (at the cost of a little
12617 dll_post="/usr/lib/c++rt0.o"
12620 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12623 dll_ldflags="-Bshareable"
12626 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12628 dll_ldflags="-shared"
12642 # Tested with NetBSD 1.2 ld
12657 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12658 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12661 *gcc*) dll_ldflags="-shared"
12664 *) dll_ldflags="-G"
12670 if test "$XEGCC" = yes; then
12690 can_build_shared=no
12694 echo "$ac_t""${ld_shlibs}" 1>&6
12695 if test "$ld_shlibs" = "no"; then
12696 can_build_shared=no
12698 fi # End of if cc_produces_so = no
12701 if test "$xe_gnu_ld" = yes; then
12702 if test "$ld_shlibs" = yes; then
12703 ld_dynamic_link_flags="${wl}-export-dynamic"
12707 if test -z "$ld_dynamic_link_flags"; then
12708 case "$xehost_os" in
12710 ld_dynamic_link_flags=
12714 ld_dynamic_link_flags=
12718 ld_dynamic_link_flags=
12722 ld_dynamic_link_flags=
12726 ld_dynamic_link_flags=
12730 ld_dynamic_link_flags="${wl}-E"
12734 ld_dynamic_link_flags=
12738 ld_dynamic_link_flags=
12742 ld_dynamic_link_flags=
12746 ld_dynamic_link_flags=
12749 solaris2* | solaris7*)
12750 ld_dynamic_link_flags=
12753 sco3.2v5* | unixware* | sysv5* | sysv4*)
12754 ld_dynamic_link_flags="${wl}-Bexport"
12758 ld_dynamic_link_flags=
12762 ld_dynamic_link_flags=
12766 ld_dynamic_link_flags=
12770 fi # End of if -z ld_dynamic_link_flags
12771 fi # End of if test "$can_build_shared" = "yes"
12782 if test "$can_build_shared" = "yes"; then
12783 { test "$extra_verbose" = "yes" && cat << \EOF
12784 Defining HAVE_SHLIB
12786 cat >> confdefs.h <<\EOF
12787 #define HAVE_SHLIB 1
12791 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
12792 echo " xemacs will be linked with \"sysdll.o emodules.o\""
12794 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12795 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
12796 for ac_func in dlerror _dlerror
12798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12799 echo "configure:12800: checking for $ac_func" >&5
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 /* System header to define __stub macros and hopefully few prototypes,
12805 which can conflict with char $ac_func(); below. */
12806 #include <assert.h>
12807 /* Override any gcc2 internal prototype to avoid an error. */
12808 /* We use char because int might match the return type of a gcc2
12809 builtin and then its argument prototype would still apply. */
12814 /* The GNU C library defines this for functions which it implements
12815 to always fail with ENOSYS. Some functions are actually named
12816 something starting with __ and the normal name is an alias. */
12817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12825 if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12827 eval "ac_cv_func_$ac_func=yes"
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12832 eval "ac_cv_func_$ac_func=no"
12836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12837 echo "$ac_t""yes" 1>&6
12838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12839 { test "$extra_verbose" = "yes" && cat << EOF
12840 Defining $ac_tr_func
12842 cat >> confdefs.h <<EOF
12843 #define $ac_tr_func 1
12848 echo "$ac_t""no" 1>&6
12854 if test "$with_modules" = "yes"; then
12855 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
12857 echo "configure: warning: "Module support cannot be provided."" 1>&2
12863 cat > conftest.$ac_ext <<EOF
12864 #line 12865 "configure"
12865 #include "confdefs.h"
12866 int main(int c,char *v[]){return 0;}
12868 if { (eval echo configure:12869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12873 echo "configure: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12878 echo "*** PANIC *** The C compiler can no longer build working executables."
12879 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12880 echo "*** PANIC *** The most likely reason for this problem is that configure"
12881 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12882 echo "*** PANIC *** found at run time."
12883 echo "*** PANIC ***"
12884 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12885 echo "*** PANIC *** On other systems, try telling configure where to find the"
12886 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12887 echo "*** PANIC ***"
12888 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12889 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12890 echo "*** PANIC *** on your system. Don't do that."
12895 if test "$win32_processes" = "yes"; then
12896 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12897 echo " xemacs will be linked with \"process-nt.o\""
12900 { test "$extra_verbose" = "yes" && cat << \EOF
12901 Defining HAVE_UNIX_PROCESSES
12903 cat >> confdefs.h <<\EOF
12904 #define HAVE_UNIX_PROCESSES 1
12908 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12909 echo " xemacs will be linked with \"process-unix.o\""
12916 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12921 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12926 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
12927 c_switch_general="$T"
12931 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12932 c_switch_window_system="$T"
12936 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12941 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
12942 ld_switch_general="$T"
12946 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12947 ld_switch_window_system="$T"
12951 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12956 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12957 ld_libs_general="$T"
12961 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
12962 ld_libs_window_system="$T"
12966 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12971 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12972 internal_makefile_list="Makefile.in"
12973 SUBDIR_MAKEFILES=''
12974 test -d lock || mkdir lock
12975 for dir in $MAKE_SUBDIR; do
12976 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12977 test -d "$d" || mkdir "$d"; cd "$d"
12979 * ) test -d "$dir" || mkdir "$dir" ;;
12983 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12984 SUBDIR_MAKEFILES="$T"
12988 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12989 internal_makefile_list="$T"
12996 for dir in src/s src/m; do
12997 if test ! -d "$dir" ; then
12998 echo Making symbolic link to "$srcdir/$dir"
12999 ${LN_S} "$srcdir/$dir" "$dir"
13003 if test "$extra_verbose" = "yes"; then
13005 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
13009 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
13010 echo "creating src/gdbinit"; echo ""
13011 echo "source $srcdir/src/gdbinit" > src/gdbinit
13014 if test "$__SUNPRO_C" = "yes"; then
13015 echo "creating .sbinit"; echo ""
13016 ( echo "# For use with Sun WorkShop's Source browser."
13017 echo "# See sbquery(1) and sbinit(4) for more information"
13018 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13045 *\$* ) eval "PREFIX=$PREFIX" ;;
13053 EXEC_PREFIX=$exec_prefix
13055 case "$EXEC_PREFIX" in
13056 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13067 *\$* ) eval "INFODIR=$INFODIR" ;;
13077 case "$INFOPATH" in
13078 *\$* ) eval "INFOPATH=$INFOPATH" ;;
13086 PACKAGE_PATH=$package_path
13088 case "$PACKAGE_PATH" in
13089 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
13100 *\$* ) eval "LISPDIR=$LISPDIR" ;;
13108 MODULEDIR=$moduledir
13110 case "$MODULEDIR" in
13111 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
13119 SITELISPDIR=$sitelispdir
13121 case "$SITELISPDIR" in
13122 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
13130 SITEMODULEDIR=$sitemoduledir
13132 case "$SITEMODULEDIR" in
13133 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13144 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13155 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13166 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13174 ARCHLIBDIR=$archlibdir
13176 case "$ARCHLIBDIR" in
13177 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13201 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13209 : ${XEMACS_CC:=$CC}
13212 if test "$with_prefix" = "yes"; then
13213 { test "$extra_verbose" = "yes" && cat << \EOF
13214 Defining PREFIX_USER_DEFINED
13216 cat >> confdefs.h <<\EOF
13217 #define PREFIX_USER_DEFINED 1
13223 if test "$with_site_lisp" = "no"; then
13224 { test "$extra_verbose" = "yes" && cat << \EOF
13225 Defining INHIBIT_SITE_LISP
13227 cat >> confdefs.h <<\EOF
13228 #define INHIBIT_SITE_LISP 1
13233 if test "$with_site_modules" = "no"; then
13234 { test "$extra_verbose" = "yes" && cat << \EOF
13235 Defining INHIBIT_SITE_MODULES
13237 cat >> confdefs.h <<\EOF
13238 #define INHIBIT_SITE_MODULES 1
13246 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13247 ac_configure_args="$T"
13249 { test "$extra_verbose" = "yes" && cat << EOF
13250 Defining EMACS_CONFIGURATION = "$configuration"
13252 cat >> confdefs.h <<EOF
13253 #define EMACS_CONFIGURATION "$configuration"
13257 { test "$extra_verbose" = "yes" && cat << EOF
13258 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13260 cat >> confdefs.h <<EOF
13261 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13265 { test "$extra_verbose" = "yes" && cat << EOF
13266 Defining config_machfile = "$machfile"
13268 cat >> confdefs.h <<EOF
13269 #define config_machfile "$machfile"
13273 { test "$extra_verbose" = "yes" && cat << EOF
13274 Defining config_opsysfile = "$opsysfile"
13276 cat >> confdefs.h <<EOF
13277 #define config_opsysfile "$opsysfile"
13284 { test "$extra_verbose" = "yes" && cat << EOF
13285 Defining LD_SWITCH_X_SITE = $null_string
13287 cat >> confdefs.h <<EOF
13288 #define LD_SWITCH_X_SITE $null_string
13292 { test "$extra_verbose" = "yes" && cat << EOF
13293 Defining LD_SWITCH_X_SITE_AUX = $null_string
13295 cat >> confdefs.h <<EOF
13296 #define LD_SWITCH_X_SITE_AUX $null_string
13300 { test "$extra_verbose" = "yes" && cat << EOF
13301 Defining C_SWITCH_X_SITE = $null_string
13303 cat >> confdefs.h <<EOF
13304 #define C_SWITCH_X_SITE $null_string
13308 { test "$extra_verbose" = "yes" && cat << EOF
13309 Defining LD_SWITCH_SITE = $null_string
13311 cat >> confdefs.h <<EOF
13312 #define LD_SWITCH_SITE $null_string
13316 { test "$extra_verbose" = "yes" && cat << EOF
13317 Defining C_SWITCH_SITE = $null_string
13319 cat >> confdefs.h <<EOF
13320 #define C_SWITCH_SITE $null_string
13326 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13327 Defining GNU_MALLOC
13329 cat >> confdefs.h <<\EOF
13330 #define GNU_MALLOC 1
13334 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13335 Defining USE_SYSTEM_MALLOC
13337 cat >> confdefs.h <<\EOF
13338 #define USE_SYSTEM_MALLOC 1
13342 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13343 Defining USE_DEBUG_MALLOC
13345 cat >> confdefs.h <<\EOF
13346 #define USE_DEBUG_MALLOC 1
13350 { test "$extra_verbose" = "yes" && cat << \EOF
13351 Defining USE_SYSTEM_MALLOC
13353 cat >> confdefs.h <<\EOF
13354 #define USE_SYSTEM_MALLOC 1
13359 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13362 cat >> confdefs.h <<\EOF
13367 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13370 cat >> confdefs.h <<\EOF
13375 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13376 Defining EXTERNAL_WIDGET
13378 cat >> confdefs.h <<\EOF
13379 #define EXTERNAL_WIDGET 1
13383 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13384 Defining NO_DOC_FILE
13386 cat >> confdefs.h <<\EOF
13387 #define NO_DOC_FILE 1
13391 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13394 cat >> confdefs.h <<\EOF
13399 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13402 cat >> confdefs.h <<\EOF
13407 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13408 Defining MAIL_USE_POP
13410 cat >> confdefs.h <<\EOF
13411 #define MAIL_USE_POP 1
13415 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13418 cat >> confdefs.h <<\EOF
13423 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13426 cat >> confdefs.h <<\EOF
13431 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13432 Defining USE_UNION_TYPE
13434 cat >> confdefs.h <<\EOF
13435 #define USE_UNION_TYPE 1
13439 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13442 cat >> confdefs.h <<\EOF
13450 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13452 echo "uname -a: `uname -a`"
13455 echo "$0 $quoted_arguments"
13458 if test ! -z ${emacs_beta_version} ; then
13459 if test -z "${emacs_is_beta}" ; then
13460 xemacs_betaname=".${emacs_beta_version}"
13462 xemacs_betaname="-b${emacs_beta_version}"
13471 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13473 Where should the build process find the source code? $srcdir
13474 What installation prefix should install use? $prefix
13475 What operating system and machine description files should XEmacs use?
13476 \`$opsysfile' and \`$machfile'
13477 What compiler should XEmacs be built with? $CC $CFLAGS
13478 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13479 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13480 What window system should XEmacs use? ${window_system}"
13481 if test "$with_x11" = "yes"; then
13482 echo " Where do we find X Windows header files? $x_includes"
13483 echo " Where do we find X Windows libraries? $x_libraries"
13485 if test -n "$site_includes"; then
13486 echo " Additional header files: $site_includes"
13488 if test -n "$site_libraries"; then
13489 echo " Additional libraries: $site_libraries"
13491 if test -n "$site_prefixes"; then
13492 echo " Additional prefixes: $site_prefixes"
13494 if test -n "$runpath"; then
13495 echo " Runtime library search path: $runpath"
13497 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13498 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13499 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13500 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13501 echo " No Xmu; substituting equivalent routines."
13504 if test "$with_xpm" = yes; then
13505 echo " Compiling in support for XPM images."
13506 elif test "$with_x11" = yes; then
13507 echo " --------------------------------------------------------------------"
13508 echo " WARNING: Compiling without XPM support."
13509 if test "$xpm_problem" != ""; then
13510 echo " Reason: $xpm_problem"
13512 echo " WARNING: You should strongly consider installing XPM."
13513 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13514 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13515 echo " --------------------------------------------------------------------"
13517 if test "$with_png" = yes; then
13518 echo " Compiling in support for PNG image handling."
13519 elif test "$window_system" != "none"; then
13520 echo " --------------------------------------------------------------------"
13521 echo " WARNING: Compiling without PNG image support."
13522 if test "$png_problem" != ""; then
13523 echo " Reason: $png_problem"
13525 echo " WARNING: You should strongly consider installing the PNG libraries."
13526 echo " WARNING: Otherwise certain images and glyphs may not display."
13527 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13528 echo " --------------------------------------------------------------------"
13530 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13531 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13532 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13533 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13535 test "$with_native_sound" = yes && echo " Compiling in native sound support."
13536 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
13537 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13538 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
13540 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13541 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13542 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
13544 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13546 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13547 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13549 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13550 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
13551 test "$with_text_coding" = yes && echo " Compiling in Text coding support."
13552 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13553 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13554 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13555 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13556 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13557 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13558 if test "$with_wnn" = yes; then
13559 echo " Compiling in support for the WNN input method on Mule."
13560 test "$with_wnn6" = yes && echo " Using WNN version 6."
13562 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13564 test "$with_cde" = yes && echo " Compiling in support for CDE."
13565 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13566 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13567 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13568 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13569 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13570 case "$with_menubars" in
13571 lucid ) echo " Using Lucid menubars." ;;
13572 motif ) echo " Using Motif menubars."
13573 echo " *WARNING* The Motif menubar implementation is currently buggy."
13574 echo " We recommend using the Lucid menubar instead."
13575 echo " Re-run configure with --with-menubars='lucid'." ;;
13576 msw ) echo " Using MS-Windows menubars." ;;
13578 case "$with_scrollbars" in
13579 lucid ) echo " Using Lucid scrollbars." ;;
13580 motif ) echo " Using Motif scrollbars." ;;
13581 athena ) echo " Using Athena scrollbars." ;;
13582 athena3d ) echo " Using Athena-3d scrollbars." ;;
13583 msw ) echo " Using MS-Windows scrollbars." ;;
13585 case "$with_widgets" in
13586 motif ) echo " Using Motif native widgets." ;;
13587 athena ) echo " Using Athena native widgets." ;;
13588 athena3d ) echo " Using Athena-3d native widgets." ;;
13589 msw ) echo " Using MS-Windows native widgets." ;;
13591 case "$with_dialogs" in
13593 echo " Using Motif dialog boxes."
13594 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13595 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13596 echo " We recommend using the Athena dialog boxes instead."
13597 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13598 echo " Read the PROBLEMS file for more information."
13601 athena ) echo " Using Athena dialog boxes." ;;
13602 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13603 msw ) echo " Using MS-Windows dialog boxes." ;;
13605 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
13606 test "$with_clash_detection" = yes && \
13607 echo " Clash detection will use \"$lockdir\" for locking files."
13608 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13609 test "$with_pop" = yes && echo " Using POP for mail access."
13610 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13611 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13612 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13613 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
13614 test "$debug" = yes && echo " Compiling in extra code for debugging."
13615 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13616 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13617 != "no no no no no"; then
13618 echo " WARNING: ---------------------------------------------------------"
13619 echo " WARNING: Compiling in support for runtime error checking."
13620 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13621 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13622 echo " WARNING: ---------------------------------------------------------"
13625 ) | tee -a Installation
13629 # Remove any trailing slashes in these variables.
13630 test -n "$prefix" &&
13631 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13632 test -n "$exec_prefix" &&
13633 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13636 for file in $internal_makefile_list; do
13637 test "$file" = src/Makefile.in && \
13638 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13639 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
13641 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13642 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
13646 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13648 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13649 # Let make expand exec_prefix.
13650 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13652 # Any assignment to VPATH causes Sun make to only execute
13653 # the first set of double-colon rules, so remove it if not needed.
13654 # If there is a colon in the path, we need to keep it.
13655 if test "x$srcdir" = x.; then
13656 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13659 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13661 DEFS=-DHAVE_CONFIG_H
13663 # Without the "./", some shells look in PATH for config.status.
13664 : ${CONFIG_STATUS=./config.status}
13666 echo creating $CONFIG_STATUS
13667 rm -f $CONFIG_STATUS
13668 cat > $CONFIG_STATUS <<EOF
13670 # Generated automatically by configure.
13671 # Run this file to recreate the current configuration.
13672 # This directory was configured as follows,
13673 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13675 # $0 $ac_configure_args
13677 # Compiler output produced by configure, useful for debugging
13678 # configure, is in ./config.log if it exists.
13680 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13683 case "\$ac_option" in
13684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13685 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13686 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13687 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13688 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13690 -help | --help | --hel | --he | --h)
13691 echo "\$ac_cs_usage"; exit 0 ;;
13692 *) echo "\$ac_cs_usage"; exit 1 ;;
13696 ac_given_srcdir=$srcdir
13697 ac_given_INSTALL="$INSTALL"
13699 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13701 cat >> $CONFIG_STATUS <<EOF
13703 # Protect against being on the right side of a sed subst in config.status.
13704 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13705 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13709 s%@CFLAGS@%$CFLAGS%g
13710 s%@CPPFLAGS@%$CPPFLAGS%g
13711 s%@CXXFLAGS@%$CXXFLAGS%g
13712 s%@FFLAGS@%$FFLAGS%g
13714 s%@LDFLAGS@%$LDFLAGS%g
13716 s%@exec_prefix@%$exec_prefix%g
13717 s%@prefix@%$prefix%g
13718 s%@program_transform_name@%$program_transform_name%g
13719 s%@bindir@%$bindir%g
13720 s%@sbindir@%$sbindir%g
13721 s%@libexecdir@%$libexecdir%g
13722 s%@datadir@%$datadir%g
13723 s%@sysconfdir@%$sysconfdir%g
13724 s%@sharedstatedir@%$sharedstatedir%g
13725 s%@localstatedir@%$localstatedir%g
13726 s%@libdir@%$libdir%g
13727 s%@includedir@%$includedir%g
13728 s%@oldincludedir@%$oldincludedir%g
13729 s%@infodir@%$infodir%g
13730 s%@mandir@%$mandir%g
13732 s%@blddir@%$blddir%g
13735 s%@start_flags@%$start_flags%g
13736 s%@ld_switch_shared@%$ld_switch_shared%g
13737 s%@start_files@%$start_files%g
13739 s%@lib_gcc@%$lib_gcc%g
13740 s%@RANLIB@%$RANLIB%g
13741 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13742 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13743 s%@INSTALL_DATA@%$INSTALL_DATA%g
13745 s%@SET_MAKE@%$SET_MAKE%g
13746 s%@X_CFLAGS@%$X_CFLAGS%g
13747 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13748 s%@X_LIBS@%$X_LIBS%g
13749 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13750 s%@install_pp@%$install_pp%g
13751 s%@libs_xauth@%$libs_xauth%g
13752 s%@dnd_objs@%$dnd_objs%g
13753 s%@lwlib_objs@%$lwlib_objs%g
13754 s%@ALLOCA@%$ALLOCA%g
13755 s%@have_esd_config@%$have_esd_config%g
13756 s%@dll_ld@%$dll_ld%g
13757 s%@dll_cflags@%$dll_cflags%g
13758 s%@dll_ldflags@%$dll_ldflags%g
13759 s%@dll_post@%$dll_post%g
13760 s%@dll_ldo@%$dll_ldo%g
13761 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13762 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13763 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13764 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13765 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13766 s%@PROGNAME@%$PROGNAME%g
13767 s%@version@%$version%g
13768 s%@configuration@%$configuration%g
13769 s%@canonical@%$canonical%g
13770 s%@inststaticdir@%$inststaticdir%g
13771 s%@instvardir@%$instvardir%g
13772 s%@srcdir@%$srcdir%g
13773 s%@pkgdir@%$pkgdir%g
13774 s%@statedir@%$statedir%g
13775 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13776 s%@PREFIX@%$PREFIX%g
13777 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13778 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13779 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13780 s%@INFODIR@%$INFODIR%g
13781 s%@infopath@%$infopath%g
13782 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13783 s%@INFOPATH@%$INFOPATH%g
13784 s%@package_path@%$package_path%g
13785 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13786 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13787 s%@lispdir@%$lispdir%g
13788 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13789 s%@LISPDIR@%$LISPDIR%g
13790 s%@moduledir@%$moduledir%g
13791 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13792 s%@MODULEDIR@%$MODULEDIR%g
13793 s%@sitelispdir@%$sitelispdir%g
13794 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13795 s%@SITELISPDIR@%$SITELISPDIR%g
13796 s%@sitemoduledir@%$sitemoduledir%g
13797 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13798 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13799 s%@etcdir@%$etcdir%g
13800 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13801 s%@ETCDIR@%$ETCDIR%g
13802 s%@lockdir@%$lockdir%g
13803 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13804 s%@LOCKDIR@%$LOCKDIR%g
13805 s%@docdir@%$docdir%g
13806 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13807 s%@DOCDIR@%$DOCDIR%g
13808 s%@archlibdir@%$archlibdir%g
13809 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13810 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13811 s%@bitmapdir@%$bitmapdir%g
13812 s%@extra_objs@%$extra_objs%g
13813 s%@machfile@%$machfile%g
13814 s%@opsysfile@%$opsysfile%g
13815 s%@c_switch_general@%$c_switch_general%g
13816 s%@c_switch_window_system@%$c_switch_window_system%g
13817 s%@c_switch_all@%$c_switch_all%g
13818 s%@ld_switch_general@%$ld_switch_general%g
13819 s%@ld_switch_window_system@%$ld_switch_window_system%g
13820 s%@ld_switch_all@%$ld_switch_all%g
13821 s%@ld_libs_general@%$ld_libs_general%g
13822 s%@ld_libs_window_system@%$ld_libs_window_system%g
13823 s%@ld_libs_all@%$ld_libs_all%g
13824 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13825 s%@native_sound_lib@%$native_sound_lib%g
13826 s%@sound_cflags@%$sound_cflags%g
13827 s%@dynodump_arch@%$dynodump_arch%g
13828 s%@XEMACS_CC@%$XEMACS_CC%g
13829 s%@internal_makefile_list@%$internal_makefile_list%g
13834 cat >> $CONFIG_STATUS <<\EOF
13836 # Split the substitutions into bite-sized pieces for seds with
13837 # small command number limits, like on Digital OSF/1 and HP-UX.
13838 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13839 ac_file=1 # Number of current file.
13840 ac_beg=1 # First line for current file.
13841 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13844 while $ac_more_lines; do
13845 if test $ac_beg -gt 1; then
13846 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13848 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13850 if test ! -s conftest.s$ac_file; then
13851 ac_more_lines=false
13852 rm -f conftest.s$ac_file
13854 if test -z "$ac_sed_cmds"; then
13855 ac_sed_cmds="sed -f conftest.s$ac_file"
13857 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13859 ac_file=`expr $ac_file + 1`
13861 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13864 if test -z "$ac_sed_cmds"; then
13869 cat >> $CONFIG_STATUS <<EOF
13871 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13873 cat >> $CONFIG_STATUS <<\EOF
13874 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13875 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13877 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13878 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13879 *) ac_file_in="${ac_file}.in" ;;
13882 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13884 # Remove last slash and all that follows it. Not all systems have dirname.
13885 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13886 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13887 # The file is in a subdirectory.
13888 test ! -d "$ac_dir" && mkdir "$ac_dir"
13889 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13890 # A "../" for each directory in $ac_dir_suffix.
13891 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13893 ac_dir_suffix= ac_dots=
13896 case "$ac_given_srcdir" in
13898 if test -z "$ac_dots"; then top_srcdir=.
13899 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13900 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13901 *) # Relative path.
13902 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13903 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13906 case "$ac_given_INSTALL" in
13907 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13908 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13911 echo creating "$ac_file"
13913 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13915 *Makefile*) ac_comsub="1i\\
13916 # $configure_input" ;;
13920 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13922 s%@configure_input@%$configure_input%g
13923 s%@srcdir@%$srcdir%g
13924 s%@top_srcdir@%$top_srcdir%g
13925 s%@INSTALL@%$INSTALL%g
13926 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13930 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13931 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13933 # ac_d sets the value in "#define NAME VALUE" lines.
13934 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13935 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13938 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13939 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13940 ac_uB='\([ ]\)%\1#\2define\3'
13943 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13944 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13945 ac_eB='$%\1#\2define\3'
13949 if test "${CONFIG_HEADERS+set}" != set; then
13951 cat >> $CONFIG_STATUS <<EOF
13952 CONFIG_HEADERS="src/config.h lwlib/config.h"
13954 cat >> $CONFIG_STATUS <<\EOF
13956 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13957 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13959 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13960 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13961 *) ac_file_in="${ac_file}.in" ;;
13964 echo creating $ac_file
13966 rm -f conftest.frag conftest.in conftest.out
13967 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13968 cat $ac_file_inputs > conftest.in
13972 # Transform confdefs.h into a sed script conftest.vals that substitutes
13973 # the proper values into config.h.in to produce config.h. And first:
13974 # Protect against being on the right side of a sed subst in config.status.
13975 # Protect against being in an unquoted here document in config.status.
13976 rm -f conftest.vals
13977 cat > conftest.hdr <<\EOF
13980 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13984 sed -n -f conftest.hdr confdefs.h > conftest.vals
13987 # This sed command replaces #undef with comments. This is necessary, for
13988 # example, in the case of _POSIX_SOURCE, which is predefined and required
13989 # on some systems where configure will not decide to define it.
13990 cat >> conftest.vals <<\EOF
13991 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13994 # Break up conftest.vals because some shells have a limit on
13995 # the size of here documents, and old seds have small limits too.
13997 rm -f conftest.tail
14000 ac_lines=`grep -c . conftest.vals`
14001 # grep -c gives empty output for an empty file on some AIX systems.
14002 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14003 # Write a limited-size here document to conftest.frag.
14004 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14005 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14007 sed -f conftest.frag conftest.in > conftest.out
14009 mv conftest.out conftest.in
14010 ' >> $CONFIG_STATUS
14011 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14012 rm -f conftest.vals
14013 mv conftest.tail conftest.vals
14015 rm -f conftest.vals
14017 cat >> $CONFIG_STATUS <<\EOF
14018 rm -f conftest.frag conftest.h
14019 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14020 cat conftest.in >> conftest.h
14022 if cmp -s $ac_file conftest.h 2>/dev/null; then
14023 echo "$ac_file is unchanged"
14026 # Remove last slash and all that follows it. Not all systems have dirname.
14027 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14028 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14029 # The file is in a subdirectory.
14030 test ! -d "$ac_dir" && mkdir "$ac_dir"
14033 mv conftest.h $ac_file
14038 cat >> $CONFIG_STATUS <<EOF
14040 top_srcdir="$srcdir"
14041 MAKE_SUBDIR="$MAKE_SUBDIR"
14044 cat >> $CONFIG_STATUS <<\EOF
14045 for dir in . $MAKE_SUBDIR; do
14050 sed -e '/^# Generated/d' \
14051 -e 's%/\*\*/#.*%%' \
14066 echo creating $dir/Makefile
14067 $CPP -I. -I${top_srcdir}/src junk.c \
14068 | sed -e 's/^\#.*//' \
14069 -e 's/^[ ][ ]*$//'\
14071 | sed -n -e '/^..*$/p' \
14077 chmod 444 Makefile.new
14078 mv -f Makefile.new Makefile
14080 echo creating $dir/GNUmakefile
14081 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
14082 | sed -e 's/^\#.*//' \
14083 -e 's/^[ ][ ]*$//'\
14085 | sed -n -e '/^..*$/p' \
14091 chmod 444 Makefile.new
14092 mv -f Makefile.new GNUmakefile
14098 sed < config.status >> lib-src/config.values \
14099 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
14100 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
14101 -e 's/^\([^ ]*\) $/\1 ""/' \
14107 chmod +x $CONFIG_STATUS
14108 rm -fr confdefs* $ac_clean_files
14109 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1