User: stephent
Date: 05/02/01 16:47:15
Added: xemacs/tests/autoconf Tag: sjt-xft regressiontest.pl
Log:
sjt-xft update; configure.ac <873bwgb871.fsf(a)tleepslib.sk.tsukuba.ac.jp>
Revision Changes Path
No revision
No revision
1.418.2.3 +73 -0 XEmacs/xemacs/ChangeLog
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/ChangeLog,v
retrieving revision 1.418.2.2
retrieving revision 1.418.2.3
diff -u -b -r1.418.2.2 -r1.418.2.3
--- ChangeLog 2004/12/11 05:12:23 1.418.2.2
+++ ChangeLog 2005/02/01 15:46:03 1.418.2.3
@@ -1,3 +1,76 @@
+2005-02-01 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * configure.ac (Xrender, fontconfig, and Xft):
+ Check /usr/include/freetype2.
+
+2005-01-30 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * configure.ac (AC_COPYRIGHT): Update.
+ (progname): Restore and improve documentation.
+
+ (XE_INIT_COMPLEX_OPTION):
+ (XE_APPEND_COMPLEX_OPTION_DEFAULT):
+ (XE_PARSE_COMPLEX_OPTION):
+ (XE_CLEANUP_COMPLEX_OPTION):
+ (XE_COMPLEX_OPTION_HELP_STRING): Support complex options.
+ (--with-xft): Add Xft support using the complex option support.
+
+ (--with-xface):
+ (--with-zlib):
+ (--with-xmu):
+ (--with-purify):
+ (--with-quantify):
+ (--with-toolbars):
+ (--with-tty):
+ (--with-xfs):
+ (--with-canna):
+ (--with-wnn):
+ (--with-wnn6):
+ (--with-ldap):
+ (--with-postgresql):
+ (--with-infodock):
+ (--with-native-sound-lib):
+ (--with-netinstall):
+ (--with-site-includes):
+ (--with-site-libraries):
+ (--with-site-prefixes):
+ (--with-package-prefix):
+ (--with-package-path):
+ (--enable-external-widget):
+ (--enable-kkcc):
+ (--enable-union-type):
+ (--enable-pdump):
+ (--enable-debug):
+ (--enable-memory-usage-stats):
+ (--enable-error-checking):
+ (--with-rel-alloc):
+ (--with-dlmalloc):
+ (--with-debug-malloc):
+ (--with-system-malloc):
+ Improve (including add) help strings.
+
+ (--with-athena):
+ (--with-xim):
+ (--with-mail-locking):
+ (--enable-bignum):
+ (--enable-menubars):
+ (--enable-scrollbars):
+ (--enable-dialogs):
+ (--enable-widgets):
+ Fix `eval "$FEATURE=\"$val\"" bug.
+
+2005-01-29 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * INSTALL (CONFIGURATION OPTIONS):
+ Insert Malcolm's notes on autoconf 2.59 support.
+
+2005-01-04 Malcolm Purvis <malcolmp(a)xemacs.org>
+
+ * aclocal.m4: Changes to support autoconf 2.59
+ * config.guess:
+ * config.sub: Upgraded to the version in from automake 1.9
+ * configure.ac: Rewritten for autoconf 2.59 support.
+
2004-12-07 Malcolm Purvis <malcolmp(a)xemacs.org>
* INSTALL: A POSIX compatible Make is no longer required for builds.
1.41.2.2 +233 -0 XEmacs/xemacs/INSTALL
(In the diff below, changes in quantity of whitespace are not shown.)
Index: INSTALL
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/INSTALL,v
retrieving revision 1.41.2.1
retrieving revision 1.41.2.2
diff -u -b -r1.41.2.1 -r1.41.2.2
--- INSTALL 2004/12/11 05:12:26 1.41.2.1
+++ INSTALL 2005/02/01 15:46:04 1.41.2.2
@@ -138,6 +138,239 @@
./configure [CONFIGURATION-NAME] [--OPTION[=VALUE]] ...
+autoconf 2.5x compatibility
+---------------------------
+
+This version of XEmacs includes Malcolm Purvis's support for autoconf 2.5x.
+The distributed version (CVS) of configure is created with autoconf 2.59.
+There should be no significant differences from configure created with
+autoconf version 2.13 from configure.in as of this writing (2005-01-28,
+pre-21.5.19). configure.in is still distributed, and will be automatically
+used by autoconf 2.13 (since autoconf 2.13 doesn't know about configure.ac),
+and normally ignored by autoconf 2.5x (which prefer configure.ac).
+
+Here are Malcolm's notes from xemacs-patches <m2wtuunhp9.fsf(a)silver.local>.
+The remainder of this file uses the nomenclature relevant to configure.in;
+these notes provide a translation.
+
+The most significant change is with the command line arguments. The only
+custom command line arguments allowed in 2.59 are --with-X for using external
+packages and --enable-X for compiling in optional internal features. I have
+renamed the options to conform to this pattern. This results in changes such
+as --with-mule now being --enable-mule.
+
+The full translation of command line arguments are:
+
+Old | New
+------------------------------------------
+General options:
+----------------
+
+--help Unchanged
+--verbose Unchanged
+--extra-verbose Removed
+
+Compilation options:
+--------------------
+
+--compiler --with-compiler
+--xemacs-compiler --with-xemacs-compiler
+--with-gcc Unchanged
+--cflags --with-cflags
+--cflags-warning --with-cflags-warning
+--cpp --with-cpp
+--cppflags --with-cppflags
+--libs --with-libs
+--ldflags --with-ldflags
+--site-includes --with-site-includes
+--site-libraries --with-site-libraries
+--site-prefixes --with-site-prefixes
+--site-runtime-libraries --with-site-runtime-libraries
+--dynamic --with-dynamic
+--srcdir Unchanged
+
+Installation options:
+---------------------
+
+--prefix Unchanged
+--with-prefix Unchanged
+--with-netinstall Unchanged
+--bindir Unchanged
+--datadir Unchanged
+--statedir Unchanged
+--libdir Unchanged
+--infodir Unchanged
+--mandir Unchanged
+--lispdir --with-lispdir
+--sitelispdir Removed
+--etcdir --with-etcdir
+--lockdir Removed
+--archlibdir --with-archlibdir
+--docdir --with-docdir
+--moduledir --with-moduledir
+
+Run-time path-searching options:
+--------------------------------
+
+--with-site-lisp Unchanged
+--with-site-modules Unchanged
+--package-prefix --with-package-prefix
+--package-path --with-package-path
+--infopath --with-infopath
+
+Window-system options:
+----------------------
+
+--with-gtk Unchanged
+--with-gnome Unchanged
+--with-x11 Unchanged
+--x-includes Unchanged
+--x-libraries Unchanged
+--with-msw Unchanged
+--with-toolbars --enable-toolbars
+--with-wmcommand Unchanged
+--with-athena Unchanged
+--with-menubars --enable-menubars
+--with-scrollbars --enable-scrollbars
+--with-dialogs --enable-dialogs
+--with-widgets --enable-widgets
+--with-dragndrop Unchanged
+--with-cde Unchanged
+--with-offix Unchanged
+--with-xmu Unchanged
+--external-widget --enable-external-widget
+
+TTY (character terminal) options:
+---------------------------------
+
+--with-tty Unchanged
+--with-ncurses Unchanged
+--with-gpm Unchanged
+
+Image options:
+--------------
+
+--with-xpm Unchanged
+--with-png Unchanged
+--with-jpeg Unchanged
+--with-tiff Unchanged
+--with-xface Unchanged
+--with-gif Unchanged
+
+Sound options:
+--------------
+
+--with-sound --enable-sound
+--native-sound-lib=LIB --with-native-sound-lib
+
+Internationalization options:
+-----------------------------
+
+--with-mule --enable-mule
+--with-xim Unchanged
+--with-canna Unchanged
+--with-wnn Unchanged
+--with-wnn6 Unchanged
+--with-xfs Unchanged
+
+File-related options:
+---------------------
+
+--with-default-eol-detection --enable-default-eol-detection
+--with-clash-detection --enable-clash-detection
+
+Database options:
+-----------------
+
+--with-database --enable-database
+--with-ldap Unchanged
+--with-postgresql Unchanged
+
+Mail options:
+-------------
+
+--mail-locking=TYPE --with-mail-locking
+--with-pop Unchanged
+--with-kerberos Unchanged
+--with-hesiod Unchanged
+
+Networking options:
+-------------------
+
+--with-tooltalk Unchanged
+--with-socks Unchanged
+--with-dnet Unchanged
+--with-ipv6-cname Unchanged
+
+Memory allocation options:
+--------------------------
+
+--rel-alloc --with-rel-alloc
+--with-dlmalloc Unchanged
+--with-system-malloc Unchanged
+--with-debug-malloc Unchanged
+
+Emacs Lisp options:
+-------------------
+
+--use-number-lib --enable-bignum
+
+Debugging options:
+------------------
+
+--debug --enable-debug
+--error-checking --enable-error-checking
+--memory-usage-stats --enable-memory-usage-stats
+--quick-build --enable-quick-build
+--use-union-type --enable-union-type
+--with-quantify Unchanged
+--with-purify Unchanged
+
+Developer options:
+------------------
+
+--with-workshop Unchanged
+--pdump --enable-pdump
+--use-kkcc --enable-kkcc
+--with-modules --enable-modules
+
+The output files produced by this new configure should be almost identical to
+those produced by the old. This can be tested with the attached regression
+test script. This script runs the two versions of configure with the supplied
+list of command line arguments and reports any differences. Please add your
+favorite configuration command lines to the list before running the test. The
+script is run as:
+
+$ regressiontest.pl /absolute/path/to/2.13/configure \
+ /absolute/path/to/2.59/configure >diffs.txt
+
+The only differences should be:
+- those related to changes in the command line arguments
+- the change of SYS_SIGLIST_DECLARED to HAVE_DECL_SYS_SIGLIST (because the old
+ form has been removed), and
+- The removal of trailing comments in src/config.h. Applying the attached
+ patch config-h-213.patch to the 2.13 work area will remove these. This
+ patch makes no functional changes to the configuration and will cut the size
+ of diffs.txt by about 60%.
+
+At this stage please review this patch for the accuracy of the generated
+configuration files and the command line arguments. I shall improve the
+documentation and formatting before posting the final patch.
+
+End of Malcolm's notes on the port of configure to autoconf 2.59.
+
+The regression test script mentioned in Malcolm's notes is in
+tests/autoconf/.
+
+I have a few differences of opinion about naming; for now we'll go with
+Malcolm's names but you should pay attention as some of the flag names may
+change again. There's also the problem that Malcolm's naming does not
+conform to GNU autoconf's option naming rules. I think that these rules are
+a crock (or maybe even a whole cesspit) of shit (well, what else is GNU?).
+However, if other projects are following them I think we should seriously
+consider doing so, too. After all, God gave us opposable thumbs so that we
+could hold our noses in situations like this.
+
Controlling the Host Type
-------------------------
1.11.2.1 +12 -14 XEmacs/xemacs/aclocal.m4
(In the diff below, changes in quantity of whitespace are not shown.)
Index: aclocal.m4
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/aclocal.m4,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -u -b -r1.11 -r1.11.2.1
--- aclocal.m4 2004/05/14 15:35:29 1.11
+++ aclocal.m4 2005/02/01 15:46:04 1.11.2.1
@@ -39,8 +39,8 @@
dll_post=
dll_ldo="-o"
ld_dynamic_link_flags=
-xehost=$canonical
-xealias=$internal_configuration
+xehost=$ac_cv_build
+xealias=$ac_cv_build_alias
AC_CHECKING([how to build dynamic libraries for ${xehost}])
# Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
@@ -49,11 +49,9 @@
*-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
esac
-changequote(<<, >>)dnl
-xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-changequote([, ])dnl
+xehost_cpu=`echo $xehost | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`
+xehost_vendor=`echo $xehost | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`
+xehost_os=`echo $xehost | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`
case "$xehost_os" in
aix3*)
@@ -71,7 +69,7 @@
if test "$GCC" = "yes"; then
XEGCC=yes
else
- AC_MSG_CHECKING(checking whether we are using GNU C)
+ AC_MSG_CHECKING([whether we are using GNU C])
AC_EGREP_CPP(yes,[
#ifdef __GNUC__
yes;
@@ -80,7 +78,7 @@
AC_MSG_RESULT([${XEGCC}])
fi
-AC_MSG_CHECKING(how to produce PIC code)
+AC_MSG_CHECKING([how to produce PIC code])
wl=
can_build_shared=yes
@@ -245,7 +243,7 @@
cc_produces_so=no
xldf=
xcldf=
-AC_MSG_CHECKING(if C compiler can produce shared libraries)
+AC_MSG_CHECKING([if C compiler can produce shared libraries])
if test "$XEGCC" = yes -o "$__ICC" = yes; then
case "$xehost_os" in
*darwin*)
@@ -318,7 +316,7 @@
ac_prog=ld
if test "$XEGCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
- AC_MSG_CHECKING(for ld used by GCC)
+ AC_MSG_CHECKING([for ld used by GCC])
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
@@ -343,7 +341,7 @@
;;
esac
else
- AC_MSG_CHECKING(for GNU ld)
+ AC_MSG_CHECKING([for GNU ld])
fi
if test -z "$LTLD"; then
@@ -383,7 +381,7 @@
ld_dynamic_link_flags=
# Check to see if it really is or isn't GNU ld.
-AC_MSG_CHECKING(if the linker is GNU ld)
+AC_MSG_CHECKING([if the linker is GNU ld])
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5;
then
xe_gnu_ld=yes
@@ -418,7 +416,7 @@
else
# OK - only NOW do we futz about with ld.
# See if the linker supports building shared libraries.
- AC_MSG_CHECKING(whether the linker supports shared libraries)
+ AC_MSG_CHECKING([whether the linker supports shared libraries])
dll_ld=$CC
dll_ldflags=$LDFLAGS
ld_shlibs=yes
1.6.2.1 +504 -459 XEmacs/xemacs/config.guess
(In the diff below, changes in quantity of whitespace are not shown.)
Index: config.guess
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/config.guess,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -b -r1.6 -r1.6.2.1
--- config.guess 2004/08/13 20:55:31 1.6
+++ config.guess 2005/02/01 15:46:05 1.6.2.1
@@ -1,9 +1,9 @@
#! /bin/sh
# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-# Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
-timestamp='2004-08-12'
+timestamp='2004-11-12'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -24,8 +24,9 @@
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
-# Written by Per Bothner <bothner(a)cygnus.com>.
-# Please send patches to <config-patches(a)gnu.org>.
+# Originally written by Per Bothner <per(a)bothner.com>.
+# Please send patches to <config-patches(a)gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
#
# This script attempts to guess a canonical system name similar to
# config.sub. If it succeeds, it prints the system name on stdout, and
@@ -33,10 +34,6 @@
#
# The plan is that this can be called by configure scripts if you
# don't specify an explicit build system type.
-#
-# Only a few systems have been added to this list; please add others
-# (but try to keep the structure clean).
-#
me=`echo "$0" | sed -e 's,.*/,,'`
@@ -56,7 +53,7 @@
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@@ -91,33 +88,45 @@
exit 1
fi
+trap 'exit 1' 1 2 15
-dummy=dummy-$$
-trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
-# CC_FOR_BUILD -- compiler used by this script.
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null)
&& exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1
2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX")
2>/dev/null` && test -n "$tmp" && test -d "$tmp" ;
} ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask
077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo
"Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ;
exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int dummy(){}" > $dummy.c
- for c in cc gcc c89 ; do
- ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1
- if test $? = 0 ; then
- CC_FOR_BUILD="$c"; break
- fi
- done
- rm -f $dummy.c $dummy.o $dummy.rel
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
if test x"$CC_FOR_BUILD" = x ; then
- CC_FOR_BUILD=no_compiler_found
+ CC_FOR_BUILD=no_compiler_found ;
fi
;;
,,*) CC_FOR_BUILD=$CC ;;
,*,*) CC_FOR_BUILD=$HOST_CC ;;
-esac
+esac ;'
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
-# (ghazi(a)noc.rutgers.edu 8/24/94.)
+# (ghazi(a)noc.rutgers.edu 1994-08-24)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
PATH=$PATH:/.attbin ; export PATH
fi
@@ -131,29 +140,31 @@
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:NetBSD:*:*)
- # Netbsd (nbsd) targets should (where applicable) match one or
+ # NetBSD (nbsd) targets should (where applicable) match one or
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
# switched to ELF, *-*-netbsd* would select the old
# object file format. This provides both forward
# compatibility and a consistent mechanism for selecting the
# object file format.
- # Determine the machine/vendor (is the vendor relevant).
- case "${UNAME_MACHINE}" in
- amiga) machine=m68k-unknown ;;
- arm32) machine=arm-unknown ;;
- atari*) machine=m68k-atari ;;
- sun3*) machine=m68k-sun ;;
- mac68k) machine=m68k-apple ;;
- macppc) machine=powerpc-apple ;;
- hp3[0-9][05]) machine=m68k-hp ;;
- ibmrt|romp-ibm) machine=romp-ibm ;;
- *) machine=${UNAME_MACHINE}-unknown ;;
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
esac
# The Operating System including object format, if it has switched
# to ELF recently, or will in the future.
- case "${UNAME_MACHINE}" in
-
i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep __ELF__ >/dev/null
then
@@ -169,70 +180,123 @@
;;
esac
# The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
echo "${machine}-${os}${release}"
exit 0 ;;
+ amd64:OpenBSD:*:*)
+ echo x86_64-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ amiga:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ cats:OpenBSD:*:*)
+ echo arm-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ hp300:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ luna88k:OpenBSD:*:*)
+ echo m88k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ mac68k:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ macppc:OpenBSD:*:*)
+ echo powerpc-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ mvme68k:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ mvme88k:OpenBSD:*:*)
+ echo m88k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ mvmeppc:OpenBSD:*:*)
+ echo powerpc-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ sgi:OpenBSD:*:*)
+ echo mips64-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ sun3:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ *:OpenBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit 0 ;;
+ macppc:MirBSD:*:*)
+ echo powerppc-unknown-mirbsd${UNAME_RELEASE}
+ exit 0 ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit 0 ;;
alpha:OSF1:*:*)
- if test $UNAME_RELEASE = "V4.0"; then
+ case $UNAME_RELEASE in
+ *4.0)
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
- fi
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\)
processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
# A Vn.n version is a released version.
# A Tn.n version is a released field test version.
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
- cat <<EOF >$dummy.s
- .data
-\$Lformat:
- .byte 37,100,45,37,120,10,0 # "%d-%x\n"
-
- .text
- .globl main
- .align 4
- .ent main
-main:
- .frame \$30,16,\$26,0
- ldgp \$29,0(\$27)
- .prologue 1
- .long 0x47e03d80 # implver \$0
- lda \$2,-1
- .long 0x47e20c21 # amask \$2,\$1
- lda \$16,\$Lformat
- mov \$0,\$17
- not \$1,\$18
- jsr \$26,printf
- ldgp \$29,0(\$26)
- mov 0,\$16
- jsr \$26,exit
- .end main
-EOF
- $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
- if test "$?" = 0 ; then
- case `./$dummy` in
- 0-0)
- UNAME_MACHINE="alpha"
- ;;
- 1-0)
- UNAME_MACHINE="alphaev5"
- ;;
- 1-1)
- UNAME_MACHINE="alphaev56"
- ;;
- 1-101)
- UNAME_MACHINE="alphapca56"
- ;;
- 2-303)
- UNAME_MACHINE="alphaev6"
- ;;
- 2-307)
- UNAME_MACHINE="alphaev67"
- ;;
- esac
- fi
- rm -f $dummy.s $dummy
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr
'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' |
tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
exit 0 ;;
Alpha\ *:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
@@ -246,33 +310,21 @@
Amiga*:UNIX_System_V:4.0:*)
echo m68k-unknown-sysv4
exit 0;;
- amiga:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
*:[Aa]miga[Oo][Ss]:*:*)
echo ${UNAME_MACHINE}-unknown-amigaos
- exit 0 ;;
- arc64:OpenBSD:*:*)
- echo mips64el-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
- arc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
exit 0 ;;
- hkmips:OpenBSD:*:*)
- echo mips-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- pmax:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- sgi:OpenBSD:*:*)
- echo mips-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- wgrisc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
*:OS/390:*:*)
echo i370-ibm-openedition
exit 0 ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit 0 ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit 0 ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
exit 0;;
@@ -290,6 +342,13 @@
NILE*:*:*:dcosx)
echo pyramid-pyramid-svr4
exit 0 ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit 0 ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7 && exit 0 ;;
+ esac ;;
sun4H:SunOS:5.*:*)
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;;
@@ -318,7 +377,7 @@
echo m68k-sun-sunos${UNAME_RELEASE}
exit 0 ;;
sun*:*:4.2BSD:*)
- UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}')
2>/dev/null`
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}')
2>/dev/null`
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
case "`/bin/arch`" in
sun3)
@@ -332,9 +391,6 @@
aushp:SunOS:*:*)
echo sparc-auspex-sunos${UNAME_RELEASE}
exit 0 ;;
- atari*:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
# The situation for MiNT is a little confusing. The machine name
# can be virtually everything (everything which is not
# "atarist" or "atariste" at least should have a processor
@@ -361,18 +417,9 @@
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
echo m68k-unknown-mint${UNAME_RELEASE}
exit 0 ;;
- sun3*:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
exit 0 ;;
- mac68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme88k:OpenBSD:*:*)
- echo m88k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
powerpc:machten:*:*)
echo powerpc-apple-machten${UNAME_RELEASE}
exit 0 ;;
@@ -389,6 +436,7 @@
echo clipper-intergraph-clix${UNAME_RELEASE}
exit 0 ;;
mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
@@ -410,12 +458,20 @@
exit (-1);
}
EOF
- $CC_FOR_BUILD $dummy.c -o $dummy \
- && ./$dummy `echo "${UNAME_RELEASE}" | sed -n
's/\([0-9]*\).*/\1/p'` \
- && rm $dummy.c $dummy && exit 0
- rm -f $dummy.c $dummy
+ $CC_FOR_BUILD -o $dummy $dummy.c \
+ && $dummy `echo "${UNAME_RELEASE}" | sed -n
's/\([0-9]*\).*/\1/p'` \
+ && exit 0
echo mips-mips-riscos${UNAME_RELEASE}
exit 0 ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit 0 ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit 0 ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit 0 ;;
Night_Hawk:Power_UNIX:*:*)
echo powerpc-harris-powerunix
exit 0 ;;
@@ -463,11 +519,20 @@
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
exit 0 ;; # Note that: echo "'`uname -s`'" gives
'AIX '
- i?86:AIX:*:*)
+ i*86:AIX:*:*)
echo i386-ibm-aix
exit 0 ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit 0 ;;
*:AIX:2:3)
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#include <sys/systemcfg.h>
@@ -479,8 +544,7 @@
exit(0);
}
EOF
- $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy
&& exit 0
- rm -f $dummy.c $dummy
+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
echo rs6000-ibm-aix3.2.5
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
echo rs6000-ibm-aix3.2.4
@@ -488,9 +552,9 @@
echo rs6000-ibm-aix3.2
fi
exit 0 ;;
- *:AIX:*:4)
- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print
$1 }'`
- if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
+ *:AIX:*:[45])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print
$1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null
2>&1; then
IBM_ARCH=rs6000
else
IBM_ARCH=powerpc
@@ -498,23 +562,10 @@
if [ -x /usr/bin/oslevel ] ; then
IBM_REV=`/usr/bin/oslevel`
else
- IBM_REV=4.${UNAME_RELEASE}
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
exit 0 ;;
- *:AIX:*:5)
- case "`lsattr -El proc0 -a type -F value`" in
- PowerPC*) IBM_ARCH=powerpc
- IBM_MANUF=ibm ;;
- Itanium) IBM_ARCH=ia64
- IBM_MANUF=unknown ;;
- POWER*) IBM_ARCH=power
- IBM_MANUF=ibm ;;
- *) IBM_ARCH=powerpc
- IBM_MANUF=ibm ;;
- esac
- echo ${IBM_ARCH}-${IBM_MANUF}-aix${UNAME_VERSION}.${UNAME_RELEASE}
- exit 0 ;;
*:AIX:*:*)
echo rs6000-ibm-aix
exit 0 ;;
@@ -542,8 +593,6 @@
9000/31? ) HP_ARCH=m68000 ;;
9000/[34]?? ) HP_ARCH=m68k ;;
9000/[678][0-9][0-9])
- case "${HPUX_REV}" in
- 11.[0-9][0-9])
if [ -x /usr/bin/getconf ]; then
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
@@ -554,11 +603,12 @@
case "${sc_kernel_bits}" in
32) HP_ARCH="hppa2.0n" ;;
64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
esac ;;
- esac
- fi ;;
esac
+ fi
if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#define _HPUX_SOURCE
@@ -592,11 +642,21 @@
exit (0);
}
EOF
- (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) &&
HP_ARCH=`./$dummy`
- if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
- rm -f $dummy.c $dummy
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) &&
HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
fi ;;
esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ # avoid double evaluation of $set_cc_for_build
+ test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
exit 0 ;;
ia64:HP-UX:*:*)
@@ -604,6 +664,7 @@
echo ia64-hp-hpux${HPUX_REV}
exit 0 ;;
3050*:HI-UX:*:*)
+ eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#include <unistd.h>
int
@@ -629,8 +690,7 @@
exit (0);
}
EOF
- $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy
&& exit 0
- rm -f $dummy.c $dummy
+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
echo unknown-hitachi-hiuxwe2
exit 0 ;;
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
@@ -639,7 +699,7 @@
9000/8??:4.3bsd:*:*)
echo hppa1.0-hp-bsd
exit 0 ;;
- *9??*:MPE/iX:*:*)
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
echo hppa1.0-hp-mpeix
exit 0 ;;
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
@@ -648,7 +708,7 @@
hp8??:OSF1:*:*)
echo hppa1.0-hp-osf
exit 0 ;;
- i?86:OSF1:*:*)
+ i*86:OSF1:*:*)
if [ -x /usr/sbin/sysversion ] ; then
echo ${UNAME_MACHINE}-unknown-osf1mk
else
@@ -658,9 +718,6 @@
parisc*:Lites*:*:*)
echo hppa1.1-hp-lites
exit 0 ;;
- hppa*:OpenBSD:*:*)
- echo hppa-unknown-openbsd
- exit 0 ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
exit 0 ;;
@@ -679,31 +736,26 @@
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
exit 0 ;;
- CRAY*X-MP:*:*:*)
- echo xmp-cray-unicos
- exit 0 ;;
CRAY*Y-MP:*:*:*)
- echo ymp-cray-unicos${UNAME_RELEASE}
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
CRAY*[A-Z]90:*:*:*)
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
- -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
exit 0 ;;
CRAY*TS:*:*:*)
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
- CRAY*T3D:*:*:*)
- echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
CRAY*T3E:*:*:*)
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
CRAY*SV1:*:*:*)
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
- CRAY-2:*:*:*)
- echo cray2-cray-unicos
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz'`
@@ -711,10 +763,12 @@
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit 0 ;;
- hp300:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit 0 ;;
- i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
exit 0 ;;
sparc*:BSD/OS:*:*)
@@ -726,9 +780,6 @@
*:FreeBSD:*:*)
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e
's/[-(].*//'`
exit 0 ;;
- *:OpenBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e
's/[-_].*/\./'`
- exit 0 ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
exit 0 ;;
@@ -738,11 +789,17 @@
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit 0 ;;
+ x86:Interix*:[34]*)
+ echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
+ exit 0 ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit 0 ;;
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
# UNAME_MACHINE based on the output of uname instead of i386?
- echo i386-pc-interix
+ echo i586-pc-interix
exit 0 ;;
i*:UWIN*:*)
echo ${UNAME_MACHINE}-pc-uwin
@@ -754,261 +811,212 @@
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;;
*:GNU:*:*)
+ # the GNU system
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo
${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit 0 ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr
'[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit 0 ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit 0 ;;
- *:Linux:*:*)
-
- # The BFD linker knows what the default object file format is, so
- # first see if it will tell us. cd to the root directory to prevent
- # problems with other programs or directories called `ld' in the path.
- ld_supported_emulations=`cd /; ld --help 2>&1 \
- | sed -ne '/supported emulations:/!d
- s/[ ][ ]*/ /g
- s/.*supported emulations: *//
- s/ .*//
- p'`
- case "$ld_supported_emulations" in
- *ia64)
- echo "${UNAME_MACHINE}-unknown-linux"
- exit 0
- ;;
- i?86linux)
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
- exit 0
- ;;
- elf_i?86)
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
- ;;
- i?86coff)
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- exit 0
- ;;
- sparclinux)
- echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
- exit 0
- ;;
- elf32_sparc)
- echo "${UNAME_MACHINE}-unknown-linux-gnu"
- exit 0
- ;;
- armlinux)
- echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
- exit 0
- ;;
- elf32arm*)
- echo "${UNAME_MACHINE}-unknown-linux-gnuoldld"
- exit 0
- ;;
- armelf_linux*)
- echo "${UNAME_MACHINE}-unknown-linux-gnu"
- exit 0
- ;;
- m68klinux)
- echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
- exit 0
- ;;
- elf32ppc | elf32ppclinux)
- # Determine Lib Version
- cat >$dummy.c <<EOF
-#include <features.h>
-#if defined(__GLIBC__)
-extern char __libc_version[];
-extern char __libc_release[];
-#endif
-main(argc, argv)
- int argc;
- char *argv[];
-{
-#if defined(__GLIBC__)
- printf("%s %s\n", __libc_version, __libc_release);
-#else
- printf("unkown\n");
-#endif
- return 0;
-}
+ arm*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit 0 ;;
+ crisv32:Linux:*:*)
+ echo crisv32-axis-linux-gnu
+ exit 0 ;;
+ frv:Linux:*:*)
+ echo frv-unknown-linux-gnu
+ exit 0 ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ mips:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips
+ #undef mipsel
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mipsel
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips
+ #else
+ CPU=
+ #endif
+ #endif
EOF
- LIBC=""
- $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
- if test "$?" = 0 ; then
- ./$dummy | grep 1\.99 > /dev/null
- if test "$?" = 0 ; then
- LIBC="libc1"
- fi
- fi
- rm -f $dummy.c $dummy
- echo powerpc-unknown-linux-gnu${LIBC}
- exit 0
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu"
&& exit 0
;;
- shelf_linux)
- echo "${UNAME_MACHINE}-unknown-linux-gnu"
- exit 0
- ;;
- esac
-
- if test "${UNAME_MACHINE}" = "alpha" ; then
- cat <<EOF >$dummy.s
- .data
- \$Lformat:
- .byte 37,100,45,37,120,10,0 # "%d-%x\n"
-
- .text
- .globl main
- .align 4
- .ent main
- main:
- .frame \$30,16,\$26,0
- ldgp \$29,0(\$27)
- .prologue 1
- .long 0x47e03d80 # implver \$0
- lda \$2,-1
- .long 0x47e20c21 # amask \$2,\$1
- lda \$16,\$Lformat
- mov \$0,\$17
- not \$1,\$18
- jsr \$26,printf
- ldgp \$29,0(\$26)
- mov 0,\$16
- jsr \$26,exit
- .end main
+ mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips64
+ #undef mips64el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mips64el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips64
+ #else
+ CPU=
+ #endif
+ #endif
EOF
- LIBC=""
- $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
- if test "$?" = 0 ; then
- case `./$dummy` in
- 0-0)
- UNAME_MACHINE="alpha"
- ;;
- 1-0)
- UNAME_MACHINE="alphaev5"
- ;;
- 1-1)
- UNAME_MACHINE="alphaev56"
- ;;
- 1-101)
- UNAME_MACHINE="alphapca56"
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu"
&& exit 0
;;
- 2-303)
- UNAME_MACHINE="alphaev6"
- ;;
- 2-307)
- UNAME_MACHINE="alphaev67"
- ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit 0 ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit 0 ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
esac
-
- objdump --private-headers $dummy | \
- grep ld.so.1 > /dev/null
- if test "$?" = 0 ; then
- LIBC="libc1"
- fi
- fi
- rm -f $dummy.s $dummy
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
- elif test "${UNAME_MACHINE}" = "mips" ; then
- cat >$dummy.c <<EOF
-#ifdef __cplusplus
-#include <stdio.h> /* for printf() prototype */
- int main (int argc, char *argv[]) {
-#else
- int main (argc, argv) int argc; char *argv[]; {
-#endif
-#ifdef __MIPSEB__
- printf ("%s-unknown-linux-gnu\n", argv[1]);
-#endif
-#ifdef __MIPSEL__
-#ifdef __R5900
-/* Little Endian R5900 running Linux,
- this *must* be Sony PlayStation 2 */
- printf ("%sel-PlayStation2-linux-gnu\n", argv[1]);
-#else
- printf ("%sel-unknown-linux-gnu\n", argv[1]);
-#endif
-#endif
- return 0;
-}
-EOF
- $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy
"${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
- rm -f $dummy.c $dummy
- elif test "${UNAME_MACHINE}" = "s390"; then
- echo s390-ibm-linux && exit 0
- elif test "${UNAME_MACHINE}" = "x86_64"; then
- echo x86_64-unknown-linux-gnu && exit 0
- elif test "${UNAME_MACHINE}" = "parisc" -o
"${UNAME_MACHINE}" = "hppa"; then
+ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ;
fi
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit 0 ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' '
-f2` in
- PA7*)
- echo hppa1.1-unknown-linux-gnu
- ;;
- PA8*)
- echo hppa2.0-unknown-linux-gnu
- ;;
- *)
- echo hppa-unknown-linux-gnu
- ;;
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ *) echo hppa-unknown-linux-gnu ;;
esac
- exit 0
- else
- # Either a pre-BFD a.out linker (linux-gnuoldld)
- # or one that does not give us useful --help.
- # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
- # If ld does not provide *any* "supported emulations:"
- # that means it is gnuoldld.
- test -z "$ld_supported_emulations" \
- && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
-
- case "${UNAME_MACHINE}" in
- i?86)
- VENDOR=pc;
- ;;
- *)
- VENDOR=unknown;
+ exit 0 ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-gnu
+ exit 0 ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit 0 ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ x86_64:Linux:*:*)
+ echo x86_64-unknown-linux-gnu
+ exit 0 ;;
+ i*86:Linux:*:*)
+ # The BFD linker knows what the default object file format is, so
+ # first see if it will tell us. cd to the root directory to prevent
+ # problems with other programs or directories called `ld' in the path.
+ # Set LC_ALL=C to ensure ld outputs messages in English.
+ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
+ | sed -ne '/supported targets:/!d
+ s/[ ][ ]*/ /g
+ s/.*supported targets: *//
+ s/ .*//
+ p'`
+ case "$ld_supported_targets" in
+ elf32-i386)
+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
;;
+ a.out-i386-linux)
+ echo "${UNAME_MACHINE}-pc-linux-gnuaout"
+ exit 0 ;;
+ coff-i386)
+ echo "${UNAME_MACHINE}-pc-linux-gnucoff"
+ exit 0 ;;
+ "")
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
+ # one that does not give us useful --help.
+ echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
+ exit 0 ;;
esac
# Determine whether the default compiler is a.out or elf
- cat >$dummy.c <<EOF
-#include <features.h>
-#ifdef __cplusplus
-#include <stdio.h> /* for printf() prototype */
- int main (int argc, char *argv[]) {
-#else
- int main (argc, argv) int argc; char *argv[]; {
-#endif
-#ifdef __ELF__
-# ifdef __GLIBC__
-# if __GLIBC__ >= 2
- printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
-# else
- printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
-# endif
-# else
- printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
-# endif
-#else
- printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
-#endif
- return 0;
-}
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <features.h>
+ #ifdef __ELF__
+ # ifdef __GLIBC__
+ # if __GLIBC__ >= 2
+ LIBC=gnu
+ # else
+ LIBC=gnulibc1
+ # endif
+ # else
+ LIBC=gnulibc1
+ # endif
+ #else
+ #ifdef __INTEL_COMPILER
+ LIBC=gnu
+ #else
+ LIBC=gnuaout
+ #endif
+ #endif
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
EOF
- $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy
"${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
- rm -f $dummy.c $dummy
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
+ test x"${LIBC}" != x && echo
"${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
test x"${TENTATIVE}" != x && echo "${TENTATIVE}"
&& exit 0
- fi ;;
-# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
-# are messed up and put the nodename in both sysname and nodename.
- i?86:DYNIX/ptx:4*:*)
+ ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
echo i386-sequent-sysv4
exit 0 ;;
- i?86:UNIX_SV:4.2MP:2.*)
+ i*86:UNIX_SV:4.2MP:2.*)
# Unixware is an offshoot of SVR4, but it has its own version
# number series starting with 2...
# I am not positive that other SVR4 systems won't match this,
# I just have to hope. -- rms.
# Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit 0 ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit 0 ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit 0 ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit 0 ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit 0 ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit 0 ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
exit 0 ;;
- i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
@@ -1016,36 +1024,32 @@
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
fi
exit 0 ;;
- i?86:*:5:7*)
- # Fixed at (any) Pentium or better
- UNAME_MACHINE=i586
- if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
- echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
- else
- echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
- fi
+ i*86:*:5:[78]*)
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
exit 0 ;;
- i?86:*:3.2:*)
+ i*86:*:3.2:*)
if test -f /usr/options/cb.name; then
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
elif /bin/uname -X 2>/dev/null >/dev/null ; then
- UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
- (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
- (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
&& UNAME_MACHINE=i586
- (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
&& UNAME_MACHINE=i686
- (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
&& UNAME_MACHINE=i686
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
else
echo ${UNAME_MACHINE}-pc-sysv32
fi
exit 0 ;;
- i?86:*DOS:*:*)
- echo ${UNAME_MACHINE}-pc-msdosdjgpp
- exit 0 ;;
pc:*:*:*)
# Left here for compatibility:
# uname -m prints for DJGPP always 'pc', but it prints nothing about
@@ -1069,9 +1073,15 @@
# "miniframe"
echo m68010-convergent-sysv
exit 0 ;;
- M68*:*:R3V[567]*:*)
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit 0 ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit 0 ;;
+ M68*:*:R3V[5678]*:*)
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
- 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0
| 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 |
S7501*:*:4.0:3.0)
OS_REL=''
test -r /etc/.relid \
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' <
/etc/.relid`
@@ -1082,22 +1092,19 @@
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
&& echo i486-ncr-sysv4 && exit 0 ;;
- m68*:LynxOS:2.*:*)
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
echo m68k-unknown-lynxos${UNAME_RELEASE}
exit 0 ;;
mc68030:UNIX_System_V:4.*:*)
echo m68k-atari-sysv4
exit 0 ;;
- i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
- echo i386-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
TSUNAMI:LynxOS:2.*:*)
echo sparc-unknown-lynxos${UNAME_RELEASE}
exit 0 ;;
rs6000:LynxOS:2.*:*)
echo rs6000-unknown-lynxos${UNAME_RELEASE}
exit 0 ;;
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:*)
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
echo powerpc-unknown-lynxos${UNAME_RELEASE}
exit 0 ;;
SM[BE]S:UNIX_SV:*:*)
@@ -1117,7 +1124,7 @@
echo ns32k-sni-sysv
fi
exit 0 ;;
- PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
# says <Richard.M.Bartel(a)ccMail.Census.GOV>
echo i586-unisys-sysv4
exit 0 ;;
@@ -1130,6 +1137,10 @@
# From seanf(a)swdc.stratus.com.
echo i860-stratus-sysv4
exit 0 ;;
+ *:VOS:*:*)
+ # From Paul.Green(a)stratus.com.
+ echo hppa1.1-stratus-vos
+ exit 0 ;;
mc68*:A/UX:*:*)
echo m68k-apple-aux${UNAME_RELEASE}
exit 0 ;;
@@ -1158,6 +1169,9 @@
SX-5:SUPER-UX:*:*)
echo sx5-nec-superux${UNAME_RELEASE}
exit 0 ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit 0 ;;
Power*:Rhapsody:*:*)
echo powerpc-apple-rhapsody${UNAME_RELEASE}
exit 0 ;;
@@ -1165,18 +1179,25 @@
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
exit 0 ;;
*:Darwin:*:*)
- echo `uname -p`-apple-darwin${UNAME_RELEASE}
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ case $UNAME_PROCESSOR in
+ *86) UNAME_PROCESSOR=i686 ;;
+ unknown) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit 0 ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)
- if test "${UNAME_MACHINE}" = "x86pc"; then
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
UNAME_MACHINE=pc
fi
- echo `uname -p`-${UNAME_MACHINE}-nto-qnx
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
exit 0 ;;
*:QNX:*:4*)
echo i386-pc-qnx
exit 0 ;;
- NSR-[KW]:NONSTOP_KERNEL:*:*)
+ NSR-?:NONSTOP_KERNEL:*:*)
echo nsr-tandem-nsk${UNAME_RELEASE}
exit 0 ;;
*:NonStop-UX:*:*)
@@ -1199,11 +1220,6 @@
fi
echo ${UNAME_MACHINE}-unknown-plan9
exit 0 ;;
- i?86:OS/2:*:*)
- # If we were able to find `uname', then EMX Unix compatibility
- # is probably installed.
- echo ${UNAME_MACHINE}-pc-os2-emx
- exit 0 ;;
*:TOPS-10:*:*)
echo pdp10-unknown-tops10
exit 0 ;;
@@ -1222,11 +1238,28 @@
*:ITS:*:*)
echo pdp10-unknown-its
exit 0 ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit 0 ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e
's/[-(].*//'`
+ exit 0 ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms && exit 0 ;;
+ I*) echo ia64-dec-vms && exit 0 ;;
+ V*) echo vax-dec-vms && exit 0 ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit 0 ;;
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}"
1>&2
+eval $set_cc_for_build
cat >$dummy.c <<EOF
#ifdef _SEQUENT_
# include <sys/types.h>
@@ -1313,11 +1346,24 @@
#endif
#if defined (vax)
-#if !defined (ultrix)
+# if !defined (ultrix)
+# include <sys/param.h>
+# if defined (BSD)
+# if BSD == 43
+ printf ("vax-dec-bsd4.3\n"); exit (0);
+# else
+# if BSD == 199006
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
+# else
printf ("vax-dec-bsd\n"); exit (0);
-#else
+# endif
+# endif
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# else
printf ("vax-dec-ultrix\n"); exit (0);
-#endif
+# endif
#endif
#if defined (alliant) && defined (i860)
@@ -1328,8 +1374,7 @@
}
EOF
-$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm
$dummy.c $dummy && exit 0
-rm -f $dummy.c $dummy
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
# Apollos put the system type in the environment.
1.5.20.1 +330 -119 XEmacs/xemacs/config.sub
(In the diff below, changes in quantity of whitespace are not shown.)
Index: config.sub
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/config.sub,v
retrieving revision 1.5
retrieving revision 1.5.20.1
diff -u -b -r1.5 -r1.5.20.1
--- config.sub 2001/04/12 18:20:33 1.5
+++ config.sub 2005/02/01 15:46:05 1.5.20.1
@@ -1,9 +1,9 @@
#! /bin/sh
# Configuration validation subroutine script.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-# Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
-timestamp='2001-01-12'
+timestamp='2004-11-30'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@@ -29,7 +29,8 @@
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
-# Please send patches to <config-patches(a)gnu.org>.
+# Please send patches to <config-patches(a)gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
@@ -69,7 +70,7 @@
version="\
GNU config.sub ($timestamp)
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@@ -117,7 +118,8 @@
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
- nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* |
uclinux-gnu* | \
+ kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* |
rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
@@ -143,7 +145,7 @@
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis)
+ -apple | -axis | -knuth | -cray)
os=
basic_machine=$1
;;
@@ -157,6 +159,14 @@
os=-vxworks
basic_machine=$1
;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
-hiux*)
os=-hiuxwe2
;;
@@ -215,24 +225,50 @@
case $basic_machine in
# Recognize the basic CPU types without company name.
# Some are omitted here because they have special meanings below.
- tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
- | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale
\
- | pyramid | mn10200 | mn10300 | tron | a29k \
- | 580 | i960 | h8300 \
- | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
- | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
- | hppa64 \
- | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
- | alphaev6[78] \
- | we32k | ns16k | clipper | i370 | sh | sh[34] \
- | powerpc | powerpcle \
- | 1750a | dsp16xx | pdp10 | pdp11 \
- | mips16 | mips64 | mipsel | mips64el \
- | mips64orion | mips64orionel | mipstx39 | mipstx39el \
- | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
- | mips64vr5000 | miprs64vr5000el | mcore \
- | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
- | thumb | d10v | d30v | fr30 | avr | openrisc)
+ 1750a | 580 \
+ | a29k \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
+ | c4x | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | m32r | m32rle | m68000 | m68k | m88k | mcore \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64vr | mips64vrel \
+ | mips64orion | mips64orionel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | msp430 \
+ | ns16k | ns32k \
+ | openrisc | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | pyramid \
+ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
+ | strongarm \
+ | tahoe | thumb | tic4x | tic80 | tron \
+ | v850 | v850e \
+ | we32k \
+ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | z8k)
basic_machine=$basic_machine-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12)
@@ -240,13 +276,13 @@
basic_machine=$basic_machine-unknown
os=-none
;;
- m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
;;
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
# (2) the word "unknown" tends to confuse beginning users.
- i[234567]86 | x86_64)
+ i*86 | x86_64)
basic_machine=$basic_machine-pc
;;
# Object if more than one company name word.
@@ -255,29 +291,62 @@
exit 1
;;
# Recognize the basic CPU types with company name.
- # FIXME: clean up the formatting here.
- vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
- | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
- | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
- | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
- | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
- | xmp-* | ymp-* \
- | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
- | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
- | hppa2.0n-* | hppa64-* \
- | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
- | alphaev6[78]-* \
- | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
- | clipper-* | orion-* \
- | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
- | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
- | mips64el-* | mips64orion-* | mips64orionel-* \
- | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
- | mipstx39-* | mipstx39el-* | mcore-* \
- | f30[01]-* | f700-* | s390-* | sv1-* | t3e-* \
- | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
- | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
- | bs2000-* | tic54x-* | c54x-* | x86_64-*)
+ 580-* \
+ | a29k-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* \
+ | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* | iq2000-* \
+ | m32r-* | m32rle-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | mcore-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | msp430-* \
+ | none-* | np1-* | ns16k-* | ns32k-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | pyramid-* \
+ | romp-* | rs6000-* \
+ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tron-* \
+ | v850-* | v850e-* | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | xstormy16-* | xtensa-* \
+ | ymp-* \
+ | z8k-*)
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
@@ -295,6 +364,9 @@
basic_machine=a29k-amd
os=-udi
;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
adobe68k)
basic_machine=m68010-adobe
os=-scout
@@ -309,6 +381,12 @@
basic_machine=a29k-none
os=-bsd
;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
amdahl)
basic_machine=580-amdahl
os=-sysv
@@ -340,6 +418,10 @@
basic_machine=ns32k-sequent
os=-dynix
;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
convex-c1)
basic_machine=c1-convex
os=-bsd
@@ -360,30 +442,45 @@
basic_machine=c38-convex
os=-bsd
;;
- cray | ymp)
- basic_machine=ymp-cray
+ cray | j90)
+ basic_machine=j90-cray
os=-unicos
;;
- cray2)
- basic_machine=cray2-cray
- os=-unicos
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
;;
- [ctj]90-cray)
- basic_machine=c90-cray
- os=-unicos
+ cr16c)
+ basic_machine=cr16c-unknown
+ os=-elf
;;
crds | unos)
basic_machine=m68k-crds
;;
+ crisv32 | crisv32-* | etraxfs*)
+ basic_machine=crisv32-axis
+ ;;
cris | cris-* | etrax*)
basic_machine=cris-axis
;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
da30 | da30-*)
basic_machine=m68k-da30
;;
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
basic_machine=mips-dec
;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola)
basic_machine=m68k-motorola
@@ -392,6 +489,10 @@
basic_machine=m88k-motorola
os=-sysv3
;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
dpx20 | dpx20-*)
basic_machine=rs6000-bull
os=-bosx
@@ -504,19 +605,19 @@
basic_machine=i370-ibm
;;
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
- i[34567]86v32)
+ i*86v32)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv32
;;
- i[34567]86v4*)
+ i*86v4*)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv4
;;
- i[34567]86v)
+ i*86v)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv
;;
- i[34567]86sol2)
+ i*86sol2)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-solaris2
;;
@@ -564,28 +665,20 @@
basic_machine=m68k-atari
os=-mint
;;
- mipsel*-linux*)
- basic_machine=mipsel-unknown
- os=-linux-gnu
- ;;
- mips*-linux*)
- basic_machine=mips-unknown
- os=-linux-gnu
- ;;
mips3*-*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
;;
mips3*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
;;
- mmix*)
- basic_machine=mmix-knuth
- os=-mmixware
- ;;
monitor)
basic_machine=m68k-rom68k
os=-coff
;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
msdos)
basic_machine=i386-pc
os=-msdos
@@ -665,6 +758,14 @@
basic_machine=hppa1.1-oki
os=-proelf
;;
+ or32 | or32-*)
+ basic_machine=or32-unknown
+ os=-coff
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
OSE68000 | ose68000)
basic_machine=m68000-ericsson
os=-ose
@@ -690,24 +791,30 @@
pc532 | pc532-*)
basic_machine=ns32k-pc532
;;
- pentium | p5 | k5 | k6 | nexgen)
+ pentium | p5 | k5 | k6 | nexgen | viac3)
basic_machine=i586-pc
;;
- pentiumpro | p6 | 6x86 | athlon)
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
basic_machine=i686-pc
;;
- pentiumii | pentium2)
+ pentiumii | pentium2 | pentiumiii | pentium3)
basic_machine=i686-pc
;;
- pentium-* | p5-* | k5-* | k6-* | nexgen-*)
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentiumpro-* | p6-* | 6x86-* | athlon-*)
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
- pentiumii-* | pentium2-*)
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
pn)
basic_machine=pn-gould
;;
@@ -723,6 +830,16 @@
ppcle-* | powerpclittle-*)
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
ps2)
basic_machine=i386-ibm
;;
@@ -740,18 +857,37 @@
rtpc | rtpc-*)
basic_machine=romp-ibm
;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
sa29200)
basic_machine=a29k-amd
os=-udi
;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
sequent)
basic_machine=i386-sequent
;;
sh)
basic_machine=sh-hitachi
os=-hms
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
;;
- sparclite-wrs)
+ sparclite-wrs | simso-wrs)
basic_machine=sparclite-wrs
os=-vxworks
;;
@@ -818,22 +954,42 @@
os=-dynix
;;
t3e)
- basic_machine=t3e-cray
+ basic_machine=alphaev5-cray
os=-unicos
;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
tic54x | c54x*)
basic_machine=tic54x-unknown
os=-coff
;;
+ tic55x | c55x*)
+ basic_machine=tic55x-unknown
+ os=-coff
+ ;;
+ tic6x | c6x*)
+ basic_machine=tic6x-unknown
+ os=-coff
+ ;;
tx39)
basic_machine=mipstx39-unknown
;;
tx39el)
basic_machine=mipstx39el-unknown
;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
tower | tower-32)
basic_machine=m68k-ncr
;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
udi29k)
basic_machine=a29k-amd
os=-udi
@@ -877,13 +1033,17 @@
basic_machine=hppa1.1-winbond
os=-proelf
;;
- xmp)
- basic_machine=xmp-cray
- os=-unicos
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
;;
xps | xps100)
basic_machine=xps100-honeywell
;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
z8k-*-coff)
basic_machine=z8k-unknown
os=-sim
@@ -904,16 +1064,12 @@
op60c)
basic_machine=hppa1.1-oki
;;
- mips)
- if [ x$os = x-linux-gnu ]; then
- basic_machine=mips-unknown
- else
- basic_machine=mips-mips
- fi
- ;;
romp)
basic_machine=romp-ibm
;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
rs6000)
basic_machine=rs6000-ibm
;;
@@ -930,10 +1086,13 @@
we32k)
basic_machine=we32k-att
;;
- sh3 | sh4)
+ sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
;;
- sparc | sparcv9)
+ sparc | sparcv8 | sparcv9 | sparcv9b)
basic_machine=sparc-sun
;;
cydra)
@@ -951,9 +1110,8 @@
pmac | pmac-mpw)
basic_machine=powerpc-apple
;;
- c4x*)
- basic_machine=c4x-none
- os=-coff
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
;;
*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized
1>&2
@@ -1007,28 +1165,35 @@
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
- | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
+ | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk*
\
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
- | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
case $basic_machine in
- x86-* | i[34567]86-*)
+ x86-* | i*86-*)
;;
*)
os=-nto$os
;;
esac
;;
+ -nto-qnx*)
+ ;;
-nto*)
- os=-nto-qnx
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
;;
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
@@ -1037,6 +1202,9 @@
-mac*)
os=`echo $os | sed -e 's|mac|macos|'`
;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
-linux*)
os=`echo $os | sed -e 's|linux|linux-gnu|'`
;;
@@ -1049,6 +1217,9 @@
-opened*)
os=-openedition
;;
+ -os400*)
+ os=-os400
+ ;;
-wince*)
os=-wince
;;
@@ -1067,12 +1238,21 @@
-acis*)
os=-aos
;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -syllable*)
+ os=-syllable
+ ;;
-386bsd)
os=-bsd
;;
-ctix* | -uts*)
os=-sysv
;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
-ns2 )
os=-nextstep2
;;
@@ -1086,6 +1266,9 @@
-sinix*)
os=-sysv4
;;
+ -tpf*)
+ os=-tpf
+ ;;
-triton*)
os=-sysv3
;;
@@ -1116,6 +1299,15 @@
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
os=-mint
;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -zvmoe)
+ os=-zvmoe
+ ;;
-none)
;;
*)
@@ -1147,6 +1339,10 @@
arm*-semi)
os=-aout
;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
pdp10-*)
os=-tops20
;;
@@ -1177,6 +1373,9 @@
mips*-*)
os=-elf
;;
+ or32-*)
+ os=-coff
+ ;;
*-tti) # must be before sparc entry or we get the wrong os.
os=-sysv3
;;
@@ -1189,6 +1388,9 @@
*-ibm)
os=-aix
;;
+ *-knuth)
+ os=-mmixware
+ ;;
*-wec)
os=-proelf
;;
@@ -1321,10 +1523,16 @@
-mvs* | -opened*)
vendor=ibm
;;
+ -os400*)
+ vendor=ibm
+ ;;
-ptx*)
vendor=sequent
;;
- -vxsim* | -vxworks*)
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
vendor=wrs
;;
-aux*)
@@ -1338,6 +1546,9 @@
;;
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
;;
esac
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1.232.2.2 +33129 -12218XEmacs/xemacs/configure
(In the diff below, changes in quantity of whitespace are not shown.)
Index: configure
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure,v
retrieving revision 1.232.2.1
retrieving revision 1.232.2.2
diff -u -b -r1.232.2.1 -r1.232.2.2
--- configure 2004/11/25 12:43:43 1.232.2.1
+++ configure 2005/02/01 15:46:05 1.232.2.2
@@ -1,82 +1,372 @@
#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.59.
+#
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+#
+# #### Configuration script for XEmacs. Largely divergent from FSF.
+# #### Guess values for system-dependent variables and create Makefiles.
+# #### Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+# #### Copyright (C) 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+# #### Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+# #### Copyright (C) 1993, 1994, 1995 Board of Trustees, University of Illinois.
+# #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
+# #### Copyright (C) 1995, 1996, 2002, 2003, 2004 Ben Wing.
+# #### Copyright (C) 2000, 2001 Martin Buchholz.
+# #### Copyright (C) 1998, 1999 J. Kean Johnston.
+# #### Copyright (C) 2005 Malcolm Purvis
+#
+# ### Don't edit this script!
+# ### This script was automatically generated by the `autoconf' program
+# ### from the file `./configure.in'.
+# ### To rebuild it, execute the command
+# ### autoconf
+# ### in the this directory. You must have autoconf version 2.50 or later.
+# ### Note: this script has been tested only with autoconf version 2.5x.
+#
+# ### This file is part of XEmacs.
+#
+# ### XEmacs is free software; you can redistribute it and/or modify it
+# ### under the terms of the GNU General Public License as published by
+# ### the Free Software Foundation; either version 2, or (at your
+# ### option) any later version.
+#
+# ### XEmacs is distributed in the hope that it will be useful, but
+# ### WITHOUT ANY WARRANTY; without even the implied warranty of
+# ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# ### General Public License for more details.
+#
+# ### You should have received a copy of the GNU General Public License
+# ### along with XEmacs; see the file COPYING. If not, write to the Free
+# ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# ### 02111-1307, USA.
+#
+# ### For usage, run `./configure --help'
+# ### For more detailed information on building and installing XEmacs,
+# ### read the file `INSTALL'.
+# ###
+# ### If configure succeeds, it leaves its status in config.status.
+# ### A log of configuration tests can be found in config.log.
+# ### If configure fails after disturbing the status quo,
+# ### config.status is removed.
+#
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null
2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null
2>&1; then
+ set -o posix
+fi
+DUALCASE=1; export DUALCASE # for MKS sh
-#### Configuration script for XEmacs. Largely divergent from FSF.
-#### Guess values for system-dependent variables and create Makefiles.
-#### Generated automatically using autoconf version 2.13
-#### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software
Foundation, Inc.
-#### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
-#### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
-#### Copyright (C) 1995, 1996, 2002, 2003, 2004 Ben Wing.
-#### Copyright (C) 2000, 2001 Martin Buchholz.
-#### Copyright (C) 1998, 1999 J. Kean Johnston.
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
-### Don't edit this script!
-### This script was automatically generated by the `autoconf' program
-### from the file `./configure.in'.
-### To rebuild it, execute the command
-### autoconf
-### in the this directory. You must have autoconf version 2.13 or later.
-### Note: this script has not yet been ported to autoconf version 2.5x.
-### This file is part of XEmacs.
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+PS1='$ '
+PS2='> '
+PS4='+ '
-### XEmacs is free software; you can redistribute it and/or modify it
-### under the terms of the GNU General Public License as published by
-### the Free Software Foundation; either version 2, or (at your
-### option) any later version.
+# NLS nuisances.
+for as_var in \
+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+ LC_TELEPHONE LC_TIME
+do
+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`");
then
+ eval $as_var=C; export $as_var
+ else
+ $as_unset $as_var
+ fi
+done
-### XEmacs is distributed in the hope that it will be useful, but
-### WITHOUT ANY WARRANTY; without even the implied warranty of
-### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-### General Public License for more details.
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename /) >/dev/null 2>&1 && test "X`basename /
2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
-### You should have received a copy of the GNU General Public License
-### along with XEmacs; see the file COPYING. If not, write to the Free
-### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-### 02111-1307, USA.
-### For usage, run `./configure --help'
-### For more detailed information on building and installing XEmacs,
-### read the file `INSTALL'.
-###
-### If configure succeeds, it leaves its status in config.status.
-### A log of configuration tests can be found in config.log.
-### If configure fails after disturbing the status quo,
-### config.status is removed.
+# Name of the executable.
+as_me=`$as_basename "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)$' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+ /^X\/\(\/\/\)$/{ s//\1/; q; }
+ /^X\/\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conf$$.sh
+ echo "exit 0" >>conf$$.sh
+ chmod +x conf$$.sh
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conf$$.sh
+fi
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" || {
+ # Find who we are. Look in the path if we contain no path at all
+ # relative or not.
+ case $0 in
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+
+ ;;
+ esac
+ # We did not find ourselves, most probably we were run as `sh COMMAND'
+ # in which case we are not to be found in the path.
+ if test "x$as_myself" = x; then
+ as_myself=$0
+ fi
+ if test ! -f "$as_myself"; then
+ { echo "$as_me: error: cannot find myself; rerun with an absolute path"
>&2
+ { (exit 1); exit 1; }; }
+ fi
+ case $CONFIG_SHELL in
+ '')
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for as_base in sh bash ksh sh5; do
+ case $as_dir in
+ /*)
+ if ("$as_dir/$as_base" -c '
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null;
then
+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=;
export BASH_ENV; }
+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+ CONFIG_SHELL=$as_dir/$as_base
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+ fi;;
+ esac
+ done
+done
+;;
+ esac
-ac_help="$ac_help
- --with-x use the X Window System"
+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+ # uniformly replaced by the line number. The first 'sed' inserts a
+ # line-number line before each line; the second 'sed' does the real
+ # work. The second script uses 'N' to pair each line-number line
+ # with the numbered line, and appends trailing '-' during
+ # substitution so that $LINENO is not a special case at line end.
+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
+ sed '=' <$as_myself |
+ sed '
+ N
+ s,$,-,
+ : loop
+
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+ t loop
+ s,-$,,
+ s,^['$as_cr_digits']*\n,,
+ ' >$as_me.lineno &&
+ chmod +x $as_me.lineno ||
+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX
shell" >&2
+ { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensible to this).
+ . ./$as_me.lineno
+ # Exit status is that of the last command.
+ exit
+}
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+ *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T=' ' ;;
+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
-if test -n "$ZSH_VERSION"; then
- setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
- setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
- setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
- setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
- if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
-elif test -n "$BASH_VERSION"; then
- set -o posix
- unset CDPATH
+if expr a : '\(a\)' >/dev/null 2>&1; then
+ as_expr=expr
else
- if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
+ as_expr=false
fi
-for xe_parse_arg
-do
- case $xe_parse_arg in
- --srcdir) (echo "$progname: Usage error:"
-echo " " "The \`--srcdir' option requires a string value."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
- --srcdir=*) srcdir=`echo $xe_parse_arg | sed -e 's/--srcdir=//'` ;;
- *) ;;
- esac
-done
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+ # We could just check for DJGPP; but this test a) works b) is more generic
+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+ if test -f conf$$.exe; then
+ # Don't use ln at all; we don't have any links
+ as_ln_s='cp -p'
+ else
+ as_ln_s='ln -s'
+ fi
+elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p=:
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+as_executable_p="test -f"
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed
'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=" $as_nl"
+
+# CDPATH.
+$as_unset CDPATH
+
+
+# Name of the host.
+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+exec 6>&1
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_config_libobj_dir=.
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+# Maximum number of lines to put in a shell here document.
+# This variable seems obsolete. It should probably be removed, and
+# only ac_max_sed_lines should be used.
+: ${ac_max_here_lines=38}
+
+# Identity of this package.
+PACKAGE_NAME=
+PACKAGE_TARNAME=
+PACKAGE_VERSION=
+PACKAGE_STRING=
+PACKAGE_BUGREPORT=
+
+ac_unique_file="src/lisp.h"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#if HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#if STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# if HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#if HAVE_STRING_H
+# if !STDC_HEADERS && HAVE_MEMORY_H
+# include <memory.h>
+# endif
+# include <string.h>
+#endif
+#if HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
+#endif
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION
PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir
libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir
infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS
inststaticdir statedir build build_cpu build_vendor build_os LN_S blddir configuration CC
CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP start_flags ld_switch_shared
start_files ld lib_gcc RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA
YACC SET_MAKE GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS install_pp libs_xauth
dnd_objs LIBSTDCPP dll_ld dll_cflags dll_ldflags dll_post dll_ldo ld_dynamic_link_flags
with_modules MOD_CC MODARCHDIR MAKE_DOCFILE MODCFLAGS INSTALLPATH MOD_INSTALL_PROGRAM
OBJECT_TO_BUILD ldap_libs postgresql_libs lwlib_objs ALLOCA have_esd_config
SRC_SUBDIR_DEPS INSTALL_ARCH_DEP_SUBDIR MA!
KE_SUBDIR SUBDIR_MAKEFILES PROGNAME version instvardir srcdir extra_includes
PREFIX_USER_DEFINED PREFIX EXEC_PREFIX_USER_DEFINED EXEC_PREFIX INFODIR_USER_DEFINED
INFODIR infopath INFOPATH_USER_DEFINED INFOPATH package_path PACKAGE_PATH_USER_DEFINED
PACKAGE_PATH lispdir LISPDIR_USER_DEFINED LISPDIR moduledir MODULEDIR_USER_DEFINED
MODULEDIR sitelispdir SITELISPDIR_USER_DEFINED SITELISPDIR sitemoduledir
SITEMODULEDIR_USER_DEFINED SITEMODULEDIR etcdir ETCDIR_USER_DEFINED ETCDIR archlibdir
ARCHLIBDIR_USER_DEFINED ARCHLIBDIR docdir DOCDIR_USER_DEFINED DOCDIR bitmapdir extra_objs
machfile opsysfile 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
RECURSIVE_MAKE_ARGS native_sound_lib sound_cflags dynodump_arch XEMACS_CC XE_CFLAGS
internal_makefile_list LIBOBJS LTLIBOBJS'
+ac_subst_files=''
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
exec_prefix=NONE
-host=NONE
no_create=
-nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
@@ -84,81 +374,397 @@
program_transform_name=s,x,x,
silent=
site=
-target=NONE
+srcdir=
verbose=
x_includes=NONE
x_libraries=NONE
-subdirs=
-MFLAGS=
-MAKEFLAGS=
-SHELL=${CONFIG_SHELL-/bin/sh}
-ac_max_here_lines=12
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datadir='${prefix}/share'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+libdir='${exec_prefix}/lib'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+infodir='${prefix}/info'
+mandir='${prefix}/man'
-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1
2 15
+ac_prev=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval "$ac_prev=\$ac_option"
+ ac_prev=
+ continue
+ fi
-# File descriptor usage:
-# 0 standard input
-# 1 file creation
-# 2 errors and warnings
-# 3 some systems may open it to /dev/tty
-# 4 used on the Kubota Titan
-# 6 checking for... messages and results
-# 5 compiler messages saved in config.log
-if test "$silent" = yes; then
- exec 6>/dev/null
-else
- exec 6>&1
-fi
-exec 5>./config.log
+ ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
-echo "\
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-" 1>&5
+ # Accept the important Cygnus configure options, so we can diagnose typos.
-# Strip out --no-create and --no-recursion so they do not pile up.
-# Also quote any args containing shell metacharacters.
-ac_configure_args=
-for ac_arg
-do
- case "$ac_arg" in
+ case $ac_option in
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+ | --da=*)
+ datadir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null
&&
+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+ { (exit 1); exit 1; }; }
+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ eval "enable_$ac_feature=no" ;;
+
+ -enable-* | --enable-*)
+ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null
&&
+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+ { (exit 1); exit 1; }; }
+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ case $ac_option in
+ *=*) ac_optarg=`echo "$ac_optarg" | sed
"s/'/'\\\\\\\\''/g"`;;
+ *) ac_optarg=yes ;;
+ esac
+ eval "enable_$ac_feature='$ac_optarg'" ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst \
+ | --locals | --local | --loca | --loc | --lo)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c) ;;
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
- ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- *) ac_configure_args="$ac_configure_args $ac_arg" ;;
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null
&&
+ { echo "$as_me: error: invalid package name: $ac_package" >&2
+ { (exit 1); exit 1; }; }
+ ac_package=`echo $ac_package| sed 's/-/_/g'`
+ case $ac_option in
+ *=*) ac_optarg=`echo "$ac_optarg" | sed
"s/'/'\\\\\\\\''/g"`;;
+ *) ac_optarg=yes ;;
+ esac
+ eval "with_$ac_package='$ac_optarg'" ;;
+
+ -without-* | --without-*)
+ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null
&&
+ { echo "$as_me: error: invalid package name: $ac_package" >&2
+ { (exit 1); exit 1; }; }
+ ac_package=`echo $ac_package | sed 's/-/_/g'`
+ eval "with_$ac_package=no" ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) { echo "$as_me: error: unrecognized option: $ac_option
+Try \`$0 --help' for more information." >&2
+ { (exit 1); exit 1; }; }
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null
&&
+ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+ { (exit 1); exit 1; }; }
+ ac_optarg=`echo "$ac_optarg" | sed
"s/'/'\\\\\\\\''/g"`
+ eval "$ac_envvar='$ac_optarg'"
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ echo "$as_me: WARNING: you should use --build, --host, --target"
>&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null
&&
+ echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+ ;;
+
esac
done
-# NLS nuisances.
-# Only set these to C if already set. These must not be set unconditionally
-# because not all systems understand e.g. LANG=C (notably SCO).
-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
-# Non-C LC_CTYPE values break the ctype check.
-if test "${LANG+set}" = set; then LANG=C; export LANG; fi
-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES;
fi
-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE;
fi
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ { echo "$as_me: error: missing argument to $ac_option" >&2
+ { (exit 1); exit 1; }; }
+fi
-# confdefs.h avoids OS command line length limits that DEFS can exceed.
-rm -rf conftest* confdefs.h
-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
-echo > confdefs.h
+# Be sure to have absolute paths.
+for ac_var in exec_prefix prefix
+do
+ eval ac_val=$`echo $ac_var`
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var:
$ac_val" >&2
+ { (exit 1); exit 1; }; };;
+ esac
+done
+
+# Be sure to have absolute paths.
+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+ localstatedir libdir includedir oldincludedir infodir mandir
+do
+ eval ac_val=$`echo $ac_var`
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) ;;
+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var:
$ac_val" >&2
+ { (exit 1); exit 1; }; };;
+ esac
+done
-# A filename unique to this package, relative to the directory that
-# configure is in, which we can look for to find out if srcdir is correct.
-ac_unique_file=src/lisp.h
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ echo "$as_me: WARNING: If you wanted to set the --build type, don't use
--host.
+ If a cross compiler is detected then cross compile mode will be used."
>&2
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
# Try the directory containing this script, then its parent.
- ac_prog=$0
- ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+ ac_confdir=`(dirname "$0") 2>/dev/null ||
+$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$0" : 'X\(//\)[^/]' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$0" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
srcdir=$ac_confdir
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
@@ -168,4856 +774,12584 @@
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
- { echo "configure: error: can not find sources in $ac_confdir or .."
1>&2; exit 1; }
+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or
.." >&2
+ { (exit 1); exit 1; }; }
else
- { echo "configure: error: can not find sources in $srcdir" 1>&2;
exit 1; }
+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir"
>&2
+ { (exit 1); exit 1; }; }
fi
fi
-srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
+ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not
work" >&2
+ { (exit 1); exit 1; }; }
+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ac_env_build_alias_set=${build_alias+set}
+ac_env_build_alias_value=$build_alias
+ac_cv_env_build_alias_set=${build_alias+set}
+ac_cv_env_build_alias_value=$build_alias
+ac_env_host_alias_set=${host_alias+set}
+ac_env_host_alias_value=$host_alias
+ac_cv_env_host_alias_set=${host_alias+set}
+ac_cv_env_host_alias_value=$host_alias
+ac_env_target_alias_set=${target_alias+set}
+ac_env_target_alias_value=$target_alias
+ac_cv_env_target_alias_set=${target_alias+set}
+ac_cv_env_target_alias_value=$target_alias
+ac_env_CC_set=${CC+set}
+ac_env_CC_value=$CC
+ac_cv_env_CC_set=${CC+set}
+ac_cv_env_CC_value=$CC
+ac_env_CFLAGS_set=${CFLAGS+set}
+ac_env_CFLAGS_value=$CFLAGS
+ac_cv_env_CFLAGS_set=${CFLAGS+set}
+ac_cv_env_CFLAGS_value=$CFLAGS
+ac_env_LDFLAGS_set=${LDFLAGS+set}
+ac_env_LDFLAGS_value=$LDFLAGS
+ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
+ac_cv_env_LDFLAGS_value=$LDFLAGS
+ac_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_env_CPPFLAGS_value=$CPPFLAGS
+ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_cv_env_CPPFLAGS_value=$CPPFLAGS
+ac_env_CPP_set=${CPP+set}
+ac_env_CPP_value=$CPP
+ac_cv_env_CPP_set=${CPP+set}
+ac_cv_env_CPP_value=$CPP
-# Prefer explicitly selected file to automatically selected ones.
-if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site
$ac_default_prefix/etc/config.site"
- fi
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures this package to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+_ACEOF
+
+ cat <<_ACEOF
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --datadir=DIR read-only architecture-independent data [PREFIX/share]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --infodir=DIR info documentation [PREFIX/info]
+ --mandir=DIR man documentation [PREFIX/man]
+_ACEOF
+
+ cat <<\_ACEOF
+
+X features:
+ --x-includes=DIR X include files are in DIR
+ --x-libraries=DIR X library files are in DIR
+
+System types:
+ --build=BUILD configure for building on BUILD [guessed]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --with-toolbars Enable toolbar support. Default: yes.
+ --enable-mule Compile with Mule (MUlti-Lingual Emacs) support,
+ needed to support non-Latin-1 (including Asian)
+ languages.
+ --enable-default-eol-detection
+ Turns on by default auto-detection of end-of-line
+ type when reading a file. Applies to those platforms
+ where auto-detection is off by default (non-Mule
+ Unix). Has no effect otherwise.
+ --enable-external-widget
+ Support XEmacs server for text widgets in other
+ applications.
+ --enable-kkcc Enable new GC algorithms.
+ --enable-union-type Use union definition of Lisp_Object type. Known to
+ trigger bugs in some compilers.
+ --enable-pdump Enable portable LISP preloader.
+ --enable-debug Enable additional debugging information. No time
+ cost.
+ --enable-assertions
+ --enable-memory-usage-stats
+ Enable LISP memory usage API.
+ --enable-clash-detection
+ Disable use of lock files to detect multiple edits
+ of the same file.
+ --enable-modules Compile in experimental support for dynamically
+ loaded libraries (Dynamic Shared Objects).
+ --enable-quick-build Speed up the build cycle by leaving out steps where
+ XEmacs will still work (more or less) without them.
+ Potentially dangerous if you don't know what you're
+ doing. This (1) doesn't garbage-collect after
+ loading each file during dumping, (2) doesn't
+ automatically rebuild the DOC file (remove it by
+ hand to get it rebuilt), (3) Removes config.h,
+ lisp.h and associated files from the dependency
+ lists, so changes to these files don't automatically
+ cause all .c files to be rebuilt.
+ --enable-database Compile with database support. Valid types are `no'
+ or a comma-separated list of one or more of `berkdb'
+ and either `dbm' or `gnudbm'.
+ --enable-sound Compile with sound support. Valid types are
+ `native', `nas' and `esd'. Prefix a type with
'no'
+ to disable. The first type can be `none' or `all'.
+ `none' means `nonative,nonas,noesd'. `all' means
+ `native,nas,esd'. Later options override earlier
+ ones for the same TYPE. The default is to autodetect
+ all sound support except for ESD which defaults to
+ off.
+ --enable-bignum=TYPE Compile in support for bignums, ratios, or bigfloats
+ using library support. TYPE must be one of "gmp"
+ (for GNU MP), "mp" (for BSD MP), or "no"
(disabled).
+ --enable-error-checking Compile with internal error-checking added. Causes
+ noticeable loss of speed. Valid types are extents,
+ bufpos, malloc, gc, types, text, byte_code, glyphs,
+ display, structures.
+ --enable-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
+ widgets emulate Motif (mostly) but are faster.
+ *WARNING* The Motif menubar is currently broken.
+ Lucid menubars are the default.
+ --enable-scrollbars=TYPE
+ Use TYPE scrollbars (lucid, motif, athena, or no).
+ Lucid scrollbars are the default.
+ --enable-dialogs=TYPE Use TYPE dialog boxes (lucid, motif, athena, or no).
+ There are no true Lucid dialogs; Motif dialogs will
+ be used if Motif can be found, else Athena is used.
+ --enable-widgets Use TYPE native widgets (lucid, motif, athena, or
+ no). Other widget types are currently unsupported.
+ There are no true Lucid widgets; Motif widgets will
+ be used if Motif can be found, else Athena is used.
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+
+ --with-prefix=no Don't compile the value of --prefix into the
+ executable.
+ --with-site-lisp=no Allow for a site-lisp directory in the XEmacs
+ hierarchy searched before the installation packages.
+ --with-site-modules Disable site-modules directory in the XEmacs
+ hierarchy, which is searched before the installation
+ modules.
+ --with-gtk Support GTK on the X Window System. (EXPERIMENTAL)
+ --with-gnome Support GNOME on the X Window System. (EXPERIMENTAL)
+ --with-msw Support MS Windows as a window system (only under
+ Cygwin and MinGW). `--with-msw=no' may be needed on
+ *nix systems with Wine installed.
+ --with-gcc Use GCC to compile XEmacs.
+ --with-dynamic Link dynamically if supported by system. 'No' forces
+ static linking.
+ --with-ncurses Use the ncurses library for tty support.
+ --with-dnet Compile with support for DECnet.
+ --with-socks Compile with support for SOCKS (an Internet proxy).
+ --with-dragndrop Compile in the generic drag and drop API. This is
+ automatically added if one of the drag and drop
+ protocols is found (currently CDE, OffiX, MSWindows,
+ and GTK). *WARNING* The Drag'n'drop support is under
+ development and is considered experimental.
+ --with-cde Compile in support for CDE drag and drop.
+ --with-offix Compile in support for OffiX drag and drop.
+ *WARNING* If you compile in OffiX, you may not be
+ able to use multiple X displays success- fully. If
+ the two servers are from different vendors, the
+ results may be unpredictable.
+ --with-gpm Compile in GPM mouse support for ttys.
+ --with-xpm Compile with support for XPM images. PRACTICALLY
+ REQUIRED. Although this library is nonstandard and a
+ real hassle to build, many basic things (e.g.
+ toolbars) depend on it, and you will run into many
+ problems without it.
+ --with-xface Compile with support for X-Face mail headers.
+ Requires the compface package.
+ --with-gif Compile without the (builtin) support for GIF
+ images.
+ --with-jpeg Compile with support for JPEG images. Useful if you
+ are using a mail, news reader, or web browser in
+ XEmacs, so that JPEG images can be displayed.
+ --with-png Compile with support for PNG images. Recommended
+ because the images on the About page are not
+ viewable without it.
+ --with-tiff Compile with support for TIFF images. Possibly
+ useful, for the same reason as JPEG images.
+ --with-xft Compile with support for Xft client-side font
+ rendering and anti-aliasing. Components that can use
+ Xft are `emacs' (buffers), `menubars', `tabs',
and
+ `gauges'. Prefix component with `no' to disable its
+ use of Xft. Requires X11, Xft, Xrender, freetype,
+ and fontconfig support. Default is
+ `emacs,menubars,tabs,gauges'.
+ --with-zlib Support inflate (de)compression internally.
+ --with-wmcommand Compile without realized leader window which will
+ keep the WM_COMMAND property.
+ --with-xmu Use Xmu utilities. Default: yes.
+ --with-purify Support memory debugging using Purify.
+ --with-quantify Support performance debugging using Quantify.
+ --with-tty Enable TTY support. Default: yes.
+ --with-xfs Enable XFontSet support for internationalized
+ menubar. Incompatible with `--with-xim=motif' and
+ `--with-xft'. `--enable-menubars=lucid' (the
+ default) is desirable.
+ --with-canna Support the Canna Japanese input method. Requires
+ Mule.
+ --with-wnn Support the Wnn Asian language input method.
+ Requires Mule.
+ --with-wnn6 Support the Wnn6 Asian language input method
+ (proprietary). Requires Mule.
+ --with-workshop Support the Sun WorkShop (formerly Sparcworks)
+ development environment.
+ --with-sparcworks Alias for --with-workshop
+ --with-tooltalk Support the ToolTalk IPC protocol.
+ --with-ldap Support the LDAP protocol.
+ --with-postgresql Support the PostgreSQL RDBMS.
+ --with-pop Support POP for mail retrieval.
+ --with-kerberos Support Kerberos-authenticated POP.
+ --with-hesiod Support Hesiod to get the POP server host.
+ --with-infodock Support the Infodock version of XEmacs. Infodock is
+ a SourceForge project).
+ --with-native-sound-lib Path to sound library (for systems with name
+ conflicts).
+ --with-netinstall Support for installation over the internet. Only
+ functional on the MS Windows platforms.
+ --with-ipv6-cname Try IPv6 information first when canonicalizing host
+ names. This option has no effect unless system
+ supports getaddrinfo(3) and getnameinfo(3).
+ --with-site-includes Prepend to include search path.
+ --with-site-libraries Prepend to library search path.
+ --with-site-prefixes Prepend to include and library search paths, with
+ /include and /lib added. Comes after site-includes
+ and site-libraries, if any.
+ --with-statedir
+ --with-lispdir
+ --with-archlibdir
+ --with-moduledir
+ --with-etcdir
+ --with-infopath
+ --with-docdir
+ --with-site-runtime-libraries
+
+ --with-package-prefix Specify packages root.
+ --with-package-path Search path for package hierarchies.
+ --with-compiler C compiler to use
+ --with-xemacs-compiler compiler to use to compile just the xemacs
+ executable and C modules. If you want to compile
+ XEmacs as C++, use e.g. `--xemacs-compiler=g++'.
+ This turns on a lot of additional error-checking.
+ --with-cflags Compiler flags (such as -O); setting this overrides
+ all default compiler flags except those that control
+ warnings.
+ --with-cflags-warning Override compiler flags used to control warnings.
+ Normally, don't set this, as XEmacs already turns on
+ the maximum safe warning level.
+ --with-cpp C preprocessor to use (e.g. /usr/ccs/lib/cpp or cc
+ -E)
+ --with-cppflags C preprocessor flags (e.g. -I/foo or -Dfoo=bar)
+ --with-libs Additional libraries (e.g. -lfoo)
+ --with-ldflags Additional linker flags (e.g. -L/foo)
+ --with-rel-alloc Enable the relocating allocator.
+ --with-dlmalloc Use Doug Lea's malloc implementation.
+ --with-debug-malloc Use a debugging malloc.
+ --with-system-malloc Use the system malloc, not the one distributed with
+ XEmacs.
+ --with-athena Use TYPE Athena widgets (xaw, 3d, next, 95, or xpm).
+ --with-xim
+ --with-mail-locking Specify the locking to be used by movemail to
+ prevent concurrent updates of mail spool files.
+ Valid types are `lockf', `flock', `dot',
`locking'
+ or `mmdf'.
+ --with-x use the X Window System
+
+Some influential environment variables:
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
+ headers in a nonstandard directory <include dir>
+ CPP C preprocessor
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+_ACEOF
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ ac_popdir=`pwd`
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: &&
continue
+ test -d $ac_dir || continue
+ ac_builddir=.
+
+if test "$ac_dir" != .; then
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+ # A "../" for each directory in $ac_dir_suffix.
+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+ ac_dir_suffix= ac_top_builddir=
fi
-for ac_site_file in $CONFIG_SITE; do
- if test -r "$ac_site_file"; then
- echo "loading site script $ac_site_file"
- . "$ac_site_file"
- fi
-done
+case $srcdir in
+ .) # No --srcdir option. We are building in place.
+ ac_srcdir=.
+ if test -z "$ac_top_builddir"; then
+ ac_top_srcdir=.
+ else
+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+ fi ;;
+ [\\/]* | ?:[\\/]* ) # Absolute path.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir ;;
+ *) # Relative path.
+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
-ac_ext=c
-xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
-xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
-xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
-ac_cpp='$CPP '"$xe_cppflags"
-ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext
1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
-cross_compiling=no
+# Do not use `cd foo && pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir="$ac_dir";;
+*)
+ case "$ac_dir" in
+ .) ac_abs_builddir=`pwd`;;
+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+ *) ac_abs_builddir=`pwd`/"$ac_dir";;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+ case ${ac_top_builddir}. in
+ .) ac_abs_top_builddir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+ case $ac_srcdir in
+ .) ac_abs_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+ case $ac_top_srcdir in
+ .) ac_abs_top_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+ esac;;
+esac
-ac_exeext=
-ac_objext=o
-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
- # Stardent Vistra SVR4 grep lacks -e, says ghazi(a)caip.rutgers.edu.
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- ac_n= ac_c='
-' ac_t=' '
+ cd $ac_dir
+ # Check for guested configure; otherwise get Cygnus style configure.
+ if test -f $ac_srcdir/configure.gnu; then
+ echo
+ $SHELL $ac_srcdir/configure.gnu --help=recursive
+ elif test -f $ac_srcdir/configure; then
+ echo
+ $SHELL $ac_srcdir/configure --help=recursive
+ elif test -f $ac_srcdir/configure.ac ||
+ test -f $ac_srcdir/configure.in; then
+ echo
+ $ac_configure --help
else
- ac_n=-n ac_c= ac_t=
+ echo "$as_me: WARNING: no configuration information is in $ac_dir"
>&2
fi
-else
- ac_n= ac_c='\c' ac_t=
+ cd "$ac_popdir"
+ done
fi
+test -n "$ac_init_help" && exit 0
+if $ac_init_version; then
+ cat <<\_ACEOF
+
+Copyright (C) 2003 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+#### Configuration script for XEmacs. Largely divergent from FSF.
+#### Guess values for system-dependent variables and create Makefiles.
+#### Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+#### Copyright (C) 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#### Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+#### Copyright (C) 1993, 1994, 1995 Board of Trustees, University of Illinois.
+#### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
+#### Copyright (C) 1995, 1996, 2002, 2003, 2004 Ben Wing.
+#### Copyright (C) 2000, 2001 Martin Buchholz.
+#### Copyright (C) 1998, 1999 J. Kean Johnston.
+#### Copyright (C) 2005 Malcolm Purvis
-progname="`echo $0 | sed 's:^\./\./:\./:'`"
+### Don't edit this script!
+### This script was automatically generated by the `autoconf' program
+### from the file `./configure.in'.
+### To rebuild it, execute the command
+### autoconf
+### in the this directory. You must have autoconf version 2.50 or later.
+### Note: this script has been tested only with autoconf version 2.5x.
+### This file is part of XEmacs.
-MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"lib-src\" to \$MAKE_SUBDIR"; fi
-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
+### XEmacs is free software; you can redistribute it and/or modify it
+### under the terms of the GNU General Public License as published by
+### the Free Software Foundation; either version 2, or (at your
+### option) any later version.
-prefix='/usr/local'
-exec_prefix='${prefix}'
-bindir='${exec_prefix}/bin'
-datadir='${prefix}/lib'
-statedir='${prefix}/lib'
-libdir='${exec_prefix}/lib'
-mandir='${prefix}/man/man1'
-inststaticdir='${PROGNAME}'
-instvardir='${PROGNAME}-${version}'
-infodir='${datadir}/${instvardir}/info'
-infopath=''
-install_pp=''
-lispdir='${datadir}/${instvardir}/lisp'
-moduledir='${libdir}/${instvardir}/${configuration}/modules'
-sitelispdir='${datadir}/${inststaticdir}/site-lisp'
-sitemoduledir='${libdir}/${inststaticdir}/site-modules'
-package_path=''
-etcdir='${datadir}/${instvardir}/etc'
-archlibdir='${libdir}/${instvardir}/${configuration}'
-docdir='${archlibdir}'
-with_netinstall="no"
-with_prefix='yes'
-with_site_lisp='no'
-with_site_modules='yes'
-need_modules_common=''
-with_menubars=''
-with_xft_menubars='no'
-with_xfs='no'
-with_scrollbars=''
-with_widgets=''
-with_dialogs=''
-cpp='' cppflags='' libs='' ldflags=''
-extra_includes=''
-dynamic=''
-with_x11=''
-with_msw=''
-rel_alloc='default'
-with_system_malloc='default'
-with_dlmalloc='default'
-with_native_sound=''
-with_nas_sound=''
-with_esd_sound='no'
-native_sound_lib=''
-with_gtk='no'
-with_gnome='no'
-use_assertions="yes"
-with_toolbars=""
-with_tty=""
-use_union_type="no"
-with_dnet=""
-use_number_lib="no"
-pdump=""
-with_dragndrop_default="no"
-with_ipv6_cname="no"
+### XEmacs is distributed in the hope that it will be useful, but
+### WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+### General Public License for more details.
+### You should have received a copy of the GNU General Public License
+### along with XEmacs; see the file COPYING. If not, write to the Free
+### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+### 02111-1307, USA.
-arguments="$@"
+### For usage, run `./configure --help'
+### For more detailed information on building and installing XEmacs,
+### read the file `INSTALL'.
+###
+### If configure succeeds, it leaves its status in config.status.
+### A log of configuration tests can be found in config.log.
+### If configure fails after disturbing the status quo,
+### config.status is removed.
-quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
-quoted_arguments=
-for i in "$@"; do
- case "$i" in
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c) ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
- *)
- quoted_i="`echo '' $i | sed -e 's:^ ::' -e
$quoted_sed_magic`"
- quoted_arguments="$quoted_arguments '$quoted_i'" ;;
- esac
-done
+_ACEOF
+ exit 0
+fi
+exec 5>config.log
+cat >&5 <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
-while test $# != 0; do
- arg="$1"; shift
- case "$arg" in
- --no-create|--no-recursion) ;;
- --srcdir=*) ;; -* )
- case "$arg" in
- -*=*)
- opt=`echo '' $arg | sed -e 's:^ ::' -e
's:^-*\([^=]*\)=.*$:\1:'`
- val=`echo '' $arg | sed -e 's:^ ::' -e
's:^-*[^=]*=\(.*\)$:\1:'`
- valomitted=no
- ;;
- -*)
- opt=`echo '' $arg | sed -e 's:^ ::'
-e 's:^-*\(.*\)$:\1:'`
- val="yes" valomitted=yes
- ;;
- esac
+It was created by $as_me, which was
+generated by GNU Autoconf 2.59. Invocation command line was
- optname="$opt"
- opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
+ $ $0 $@
- case "${valomitted}-${opt}" in yes-without_* )
- opt=`echo $opt | sed 's/without/with/'`
- valomitted="no" val="no" ;;
- esac
-
- case "$opt" in
-
- with_site_lisp | \
- with_prefix | \
- with_site_modules | \
- with_x | \
- with_x11 | \
- with_gtk | \
- with_gnome | \
- with_msw | \
- with_gcc | \
- dynamic | \
- with_ncurses | \
- with_dnet | \
- with_socks | \
- with_dragndrop | \
- with_cde | \
- with_offix | \
- with_gpm | \
- with_xpm | \
- with_xface | \
- with_gif | \
- with_jpeg | \
- with_png | \
- with_tiff | \
- with_zlib | \
- with_wmcommand | \
- with_xmu | \
- with_purify | \
- with_quantify | \
- with_toolbars | \
- with_tty | \
- with_xfs | \
- with_mule | \
- with_default_eol_detection | \
- with_canna | \
- with_wnn | \
- with_wnn6 | \
- with_workshop | \
- with_sparcworks | \
- with_tooltalk | \
- with_ldap | \
- with_postgresql | \
- with_pop | \
- with_kerberos | \
- with_hesiod | \
- with_dnet | \
- with_infodock | \
- with_xft | \
- with_netinstall | \
- with_ipv6_cname | \
- external_widget | \
- use_kkcc | \
- verbose | \
- extra_verbose | \
- usage_tracking | \
- use_union_type | \
- pdump | \
- debug | \
- use_assertions | \
- memory_usage_stats | \
- with_clash_detection | \
- with_modules | \
- quick_build )
- case "$val" in
- y | ye | yes ) val=yes ;;
- n | no ) val=no ;;
- * ) (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option requires a boolean value:
\`yes' or \`no'."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
- esac
- eval "$opt=\"$val\"" ;;
+_ACEOF
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+_ASUNAME
- compiler | \
- xemacs_compiler | \
- cflags | \
- cflags_warning | \
- cpp | \
- cppflags | \
- libs | \
- ldflags | \
- cache_file | \
- native_sound_lib| \
- site_lisp | \
- x_includes | \
- x_libraries | \
- site_includes | \
- site_libraries | \
- site_prefixes | \
- site_runtime_libraries )
- if test "$valomitted" = "yes" ; then
- if test "$#" = 0 ; then
- (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option requires a value."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1;
- fi
- val="$1"; shift
- fi
- eval "$opt=\"$val\""
- ;;
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ echo "PATH: $as_dir"
+done
- rel_alloc | \
- with_dlmalloc | \
- with_debug_malloc | use_debug_malloc | \
- with_system_malloc | use_system_malloc )
- case "$val" in
- y | ye | yes ) val=yes ;;
- n | no ) val=no ;;
- d | de | def | defa | defau | defaul | default ) val=default ;;
- * ) (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option requires one of these values:
- \`yes', \`no', or \`default'."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
- esac
- case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;;
esac
- eval "$opt=\"$val\""
- ;;
+} >&5
- "with_database" )
- with_database_berkdb=no
- with_database_dbm=no
- with_database_gdbm=no
- for x in `echo "$val" | sed -e 's/,/ /g'` ; do
- case "$x" in
- no ) ;;
- b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
- d | db | dbm ) with_database_dbm=yes ;;
- g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
- * ) (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option value
- must be either \`no' or a comma-separated list
- of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
- esac
- done
- if test "$with_database_dbm" = "yes" -a \
- "$with_database_gdbm" = "yes"; then
- (echo "$progname: Usage error:"
-echo " " "Only one of \`dbm' and \`gnudbm' may be specified
- with the \`--$optname' option."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
- fi
- ;;
+cat >&5 <<_ACEOF
- "with_sound" )
- for x in `echo "$val" | sed -e 's/,/ /g'` ; do
- case "$x" in
- n | no | non | none ) new_sdefault=no ;;
- a | al | all | both ) new_sdefault=yes ;;
- native ) with_native_sound=yes ;;
- nonative ) with_native_sound=no ;;
+## ----------- ##
+## Core tests. ##
+## ----------- ##
- nas ) with_nas_sound=yes ;;
- nonas ) with_nas_sound=no ;;
+_ACEOF
- esd ) with_esd_sound=yes ;;
- noesd ) with_esd_sound=no ;;
- * ) bogus_sound=yes ;;
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_sep=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *"
"*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+ ac_arg=`echo "$ac_arg" | sed
"s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
+ 2)
+ ac_configure_args1="$ac_configure_args1 '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ ac_must_keep_next=false # Got value, back to normal.
+ else
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac
- if test "$bogus_sound" -o \
- \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
- types="\`all', \`none', \`(no)native', \`no(nas)',
\`(no)esd'."
- (echo "$progname: Usage error:"
-echo " " "Valid types for the \`--$optname' option are:
- $types.
-Option \`all' or \`none' must be first in the list.
-The default is to autodetect native and NAS sound support."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
- elif test -n "$new_sdefault" ; then
- with_native_sound=$new_sdefault
- with_nas_sound=$new_sdefault
- with_esd_sound=$new_sdefault
- new_sdefault= # reset this
- fi
- sound_notfirst=true
- done
;;
-
- "with_athena" )
- case "$val" in
- xa | xaw ) val=xaw ;;
- 3 | 3d | xaw3d ) val=3d ;;
- ne | nex | next | naxtaw) val=next ;;
- 9 | 95 | xaw95 ) val=95 ;;
- xp | xpm | xawxpm ) val=xpm ;;
- * ) (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option must have one of these values:
- \`xaw', \`3d', \`next', \`95', or \`xpm'."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
+ -* ) ac_must_keep_next=true ;;
esac
- eval "$opt=\"$val\""
+ fi
+ ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
+ # Get rid of the leading space.
+ ac_sep=" "
;;
-
- "with_xim" )
- case "$val" in
- y | ye | yes ) val=yes ;;
- n | no | non | none ) val=no ;;
- x | xl | xli | xlib ) val=xlib ;;
- m | mo | mot | moti | motif ) val=motif ;;
- * ) (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option must have one of these values:
- \`motif', \`xlib', \`yes', or \`no'."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
esac
- eval "$opt=\"$val\""
- ;;
+ done
+done
+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || {
ac_configure_args0=; export ac_configure_args0; }
+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || {
ac_configure_args1=; export ac_configure_args1; }
- "mail_locking" )
- case "$val" in
- lockf ) val=lockf ;;
- flock ) val=flock ;;
- file | dot ) val=file ;;
- locking ) val=locking ;;
- * ) (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option must have one of these values:
- \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
- esac
- eval "$opt=\"$val\""
- ;;
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Be sure not to use single quotes in there, as some shells,
+# such as our DU 5.0 friend, will then `close' the trap.
+trap 'exit_status=$?
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
- "use_number_lib" )
- case "$val" in
- gmp ) val=gmp ;;
- mp ) val=mp ;;
- no|non|none ) val=no ;;
- * ) (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option must have one of these values:
- \`gmp', \`mp', or \`no'."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
- esac
- eval "$opt=\"$val\""
+ cat <<\_ASBOX
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+_ASBOX
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+{
+ (set) 2>&1 |
+ case `(ac_space='"'"' '"'"'; set | grep
ac_space) 2>&1` in
+ *ac_space=\ *)
+ sed -n \
+ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
+
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
;;
+ *)
+ sed -n \
+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+ ;;
+ esac;
+}
+ echo
- "error_checking" )
+ cat <<\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=$`echo $ac_var`
+ echo
"$ac_var='"'"'$ac_val'"'"'"
+ done | sort
+ echo
- for x in `echo "$val" | sed -e 's/,/ /g'` ; do
- case "$x" in
- n | no | non | none ) new_default=no ;;
- a | al | all ) new_default=yes ;;
+ if test -n "$ac_subst_files"; then
+ cat <<\_ASBOX
+## ------------- ##
+## Output files. ##
+## ------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=$`echo $ac_var`
+ echo
"$ac_var='"'"'$ac_val'"'"'"
+ done | sort
+ echo
+ fi
- extents ) error_check_extents=yes ;;
- noextents ) error_check_extents=no ;;
+ if test -s confdefs.h; then
+ cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+ echo
+ sed "/^$/d" confdefs.h | sort
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ echo "$as_me: caught signal $ac_signal"
+ echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core &&
+ rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+ ' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
+done
+ac_signal=0
- types ) error_check_types=yes ;;
- notypes ) error_check_types=no ;;
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -rf conftest* confdefs.h
+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
+echo >confdefs.h
- text ) error_check_text=yes ;;
- notext ) error_check_text=no ;;
+# Predefined preprocessor variables.
- gc ) error_check_gc=yes ;;
- nogc ) error_check_gc=no ;;
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
- malloc ) error_check_malloc=yes ;;
- nomalloc ) error_check_malloc=no ;;
- byte_code ) error_check_byte_code=yes ;;
- nobyte_code ) error_check_byte_code=no ;;
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
- glyphs ) error_check_glyphs=yes ;;
- noglyphs ) error_check_glyphs=no ;;
- display ) error_check_display=yes ;;
- nodisplay ) error_check_display=no ;;
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
- structures ) error_check_structures=yes ;;
- nostructures ) error_check_structures=no ;;
- * ) bogus_error_check=yes ;;
- esac
- if test "$bogus_error_check" -o \
- \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
- if test "$error_check_default" = yes ; then
- types="\`all' (default), \`none', \`noextents', \`notypes',
\`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code',
\`nodisplay', \`nostructures'."
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer explicitly selected file to automatically selected ones.
+if test -z "$CONFIG_SITE"; then
+ if test "x$prefix" != xNONE; then
+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
- types="\`all', \`none' (default), \`extents', \`types',
\`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display',
\`structures'."
+ CONFIG_SITE="$ac_default_prefix/share/config.site
$ac_default_prefix/etc/config.site"
fi
- (echo "$progname: Usage error:"
-echo " " "Valid types for the \`--$optname' option are:
- $types."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
- elif test -n "$new_default" ; then
- error_check_extents=$new_default
- error_check_types=$new_default
- error_check_text=$new_default
- error_check_gc=$new_default
- error_check_malloc=$new_default
- error_check_byte_code=$new_default
- error_check_glyphs=$new_default
- error_check_display=$new_default
- error_check_structures=$new_default
- new_default= # reset this
+fi
+for ac_site_file in $CONFIG_SITE; do
+ if test -r "$ac_site_file"; then
+ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
+echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file"
fi
- echeck_notfirst=true
- done
- ;;
+done
- prefix | exec_prefix | bindir | datadir | statedir | libdir | \
- mandir | infodir | infopath | lispdir | etcdir | \
- archlibdir | docdir | package_path | moduledir )
- if test "$valomitted" = "yes"; then
- if test "$#" = 0; then
- (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option requires a value."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1;
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special
+ # files actually), so we avoid doing that.
+ if test -f "$cache_file"; then
+ { echo "$as_me:$LINENO: loading cache $cache_file" >&5
+echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . $cache_file;;
+ *) . ./$cache_file;;
+ esac
fi
- val="$1"; shift
+else
+ { echo "$as_me:$LINENO: creating cache $cache_file" >&5
+echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in `(set) 2>&1 |
+ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val="\$ac_cv_env_${ac_var}_value"
+ eval ac_new_val="\$ac_env_${ac_var}_value"
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val'
in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous
run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous
run" >&5
+echo "$as_me: error: \`$ac_var' was not set in the previous run"
>&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous
run:" >&5
+echo "$as_me: error: \`$ac_var' has changed since the previous run:"
>&2;}
+ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
+echo "$as_me: former value: $ac_old_val" >&2;}
+ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
+echo "$as_me: current value: $ac_new_val" >&2;}
+ ac_cache_corrupted=:
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *"
"*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+ ac_arg=$ac_var=`echo "$ac_new_val" | sed
"s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures
accuracy.
+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+ esac
fi
- eval "$opt=\"$val\""
+done
+if $ac_cache_corrupted; then
+ { echo "$as_me:$LINENO: error: changes in the environment can compromise the
build" >&5
+echo "$as_me: error: changes in the environment can compromise the build"
>&2;}
+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm
$cache_file' and start over" >&5
+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and
start over" >&2;}
+ { (exit 1); exit 1; }; }
+fi
- case "$opt" in
- exec_prefix ) { test "$extra_verbose" = "yes"
&& cat << \EOF
- Defining EXEC_PREFIX_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define EXEC_PREFIX_USER_DEFINED 1
-EOF
-}
- ;;
- lispdir ) { test "$extra_verbose" = "yes" &&
cat << \EOF
- Defining LISPDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define LISPDIR_USER_DEFINED 1
-EOF
-}
- ;;
- sitelispdir ) { test "$extra_verbose" = "yes"
&& cat << \EOF
- Defining SITELISPDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define SITELISPDIR_USER_DEFINED 1
-EOF
-}
- ;;
- moduledir ) { test "$extra_verbose" = "yes" &&
cat << \EOF
- Defining MODULEDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define MODULEDIR_USER_DEFINED 1
-EOF
-}
- ;;
- etcdir ) { test "$extra_verbose" = "yes" &&
cat << \EOF
- Defining ETCDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define ETCDIR_USER_DEFINED 1
-EOF
-}
- ;;
- infodir ) { test "$extra_verbose" = "yes" &&
cat << \EOF
- Defining INFODIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define INFODIR_USER_DEFINED 1
-EOF
-}
- ;;
- infopath ) { test "$extra_verbose" = "yes" &&
cat << \EOF
- Defining INFOPATH_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define INFOPATH_USER_DEFINED 1
-EOF
-}
- ;;
- package_path ) { test "$extra_verbose" = "yes"
&& cat << \EOF
- Defining PACKAGE_PATH_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define PACKAGE_PATH_USER_DEFINED 1
-EOF
-}
- ;;
- datadir )
- { test "$extra_verbose" = "yes" && cat <<
\EOF
- Defining INFODIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define INFODIR_USER_DEFINED 1
-EOF
-}
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { test "$extra_verbose" = "yes" && cat <<
\EOF
- Defining LISPDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define LISPDIR_USER_DEFINED 1
-EOF
-}
- { test "$extra_verbose" = "yes" && cat <<
\EOF
- Defining MODULEDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define MODULEDIR_USER_DEFINED 1
-EOF
-}
- { test "$extra_verbose" = "yes" && cat <<
\EOF
- Defining ETCDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define ETCDIR_USER_DEFINED 1
-EOF
-}
- { test "$extra_verbose" = "yes" && cat <<
\EOF
- Defining DOCDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define DOCDIR_USER_DEFINED 1
-EOF
-}
- { test "$extra_verbose" = "yes" && cat
<< \EOF
- Defining ARCHLIBDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define ARCHLIBDIR_USER_DEFINED 1
-EOF
-}
- ;;
- docdir ) { test "$extra_verbose" = "yes" && cat
<< \EOF
- Defining DOCDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define DOCDIR_USER_DEFINED 1
-EOF
-}
- ;;
- exec_prefix | libdir | archlibdir ) { test "$extra_verbose" =
"yes" && cat << \EOF
- Defining ARCHLIBDIR_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
-#define ARCHLIBDIR_USER_DEFINED 1
-EOF
-}
- ;;
- esac
- ;;
- "no_create" ) ;;
- "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit
0 ;;
- "with_menubars" | \
- "with_scrollbars" | \
- "with_dialogs" | \
- "with_widgets" )
- case "$val" in
- l | lu | luc | luci | lucid ) val=lucid ;;
- mo | mot | moti | motif ) val=motif ;;
- a | at | ath | athe | athen | athena ) val=athena ;;
- x | xf | xft ) val=xft ;;
- n | no | non | none ) val=no ;;
- y | ye | yes ) val=yes ;;
- "") val=yes ;;
- g | gt | gtk ) val=gtk ;;
- ms | msw ) val=msw ;;
- * ) (echo "$progname: Usage error:"
-echo " " "The \`--$optname' option must have one of these values:
- \`gtk', \`lucid', \`motif', \`athena', \`yes', or
\`no'."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
- esac
- eval "$opt=\"$val\""
- ;;
- "use_minimal_tagbits" | \
- "use_indexed_lrecord_implementation" | \
- "run_in_place" | \
- "const_is_losing" | \
- "with_gnu_make" )
- echo "configure: warning: Obsolete option \`--$optname' ignored."
1>&2
- ;;
- * ) (echo "$progname: Usage error:"
-echo " " "Unrecognized option: $arg"
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
- esac
- ;;
- *-*-*) configuration="$arg" ;;
- *) (echo "$progname: Usage error:"
-echo " " "Unrecognized argument: $arg"
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
- esac
-done
-if test "$with_xfs" = "yes" -a "$with_menubars" =
"xft"; then
- (echo "$progname: Usage error:"
-echo " " "XFS and Xft in the menubars are incompatible!"
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
-fi
-test -n "$cpp" && CPP="$cpp"
-test -n "$cppflags" && CPPFLAGS="$cppflags"
-test -n "$libs" && LIBS="$libs"
-test -n "$ldflags" && LDFLAGS="$ldflags"
-eval set x "$quoted_arguments"; shift
-test "$extra_verbose" = "yes" && verbose=yes
-test -n "$with_x" && with_x11="$with_x"
-if test "$with_purify" = "yes" -o "$with_quantify" =
"yes"; then
- test "$with_system_malloc" = "default" &&
with_system_malloc=yes
-fi
+progname="`echo $0 | sed 's:^\./\./:\./:'`"
-if test "$with_cde $with_tooltalk" = "yes no"; then
- (echo "$progname: Usage error:"
-echo " " "--with-cde requires --with-tooltalk"
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
-elif test "$with_tooltalk" = "no" ; then with_cde=no
-elif test "$with_cde" = "yes"; then with_tooltalk=yes
-fi
-if test -z "$configuration"; then
- configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
- if test -z "$configuration"; then
- (echo "$progname: Usage error:"
-echo " " "XEmacs has not been ported to this host type.
-Try explicitly specifying the CONFIGURATION when rerunning configure."
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
- fi
-fi
-echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
-echo "configure:864: checking whether ln -s works" >&5
-rm -f conftestdata
-if ln -s X conftestdata 2>/dev/null
-then
- rm -f conftestdata
- ac_cv_prog_LN_S="ln -s"
-else
- ac_cv_prog_LN_S=ln
-fi
-LN_S="$ac_cv_prog_LN_S"
-if test "$ac_cv_prog_LN_S" = "ln -s"; then
- echo "$ac_t""yes" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-for dir in lisp etc man info tests; do
- if test ! -d "$dir" ; then
- echo Making symbolic link to "$srcdir/$dir"
- ${LN_S} "$srcdir/$dir" "$dir"
- fi
-done
-absolute_pwd="`pwd`";
-if test -n "$PWD" -a "`cd $PWD && pwd`" =
"$absolute_pwd"
-then blddir="$PWD"
-else blddir="$absolute_pwd"; if test -d "/net"; then
- if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else
tdir="tmp_mnt"; fi
- blddir=`echo "$blddir" | \
- sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e
"s|^/amd/|/net/|"`
-fi
-fi
-case "$srcdir" in
- /* ) ;;
- . ) srcdir="$blddir" ;;
- * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net";
then
- if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else
tdir="tmp_mnt"; fi
- srcdir=`echo "$srcdir" | \
- sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e
"s|^/amd/|/net/|"`
-fi ;;
-esac
-if test `pwd` != `sh -c cd $srcdir && pwd` \
- && test -f "$srcdir/src/config.h"; then
- (echo "$progname: WARNING: The directory tree \`$srcdir' is being
used"
- echo " as a build directory right now; it has been configured in its
own"
- echo " right. To configure in another directory as well, you MUST"
- echo " use GNU make. If you do not have GNU make, then you must"
- echo " now do \`make distclean' in $srcdir,"
- echo " and then run $progname again.") >&2
- extrasub='/^VPATH[ ]*=/c\
-vpath %.c $(srcdir)\
-vpath %.h $(srcdir)\
-vpath %.y $(srcdir)\
-vpath %.l $(srcdir)\
-vpath %.s $(srcdir)\
-vpath %.in $(srcdir)'
-fi
-. "$srcdir/version.sh" || exit 1;
-if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
-: "${extra_verbose=$beta}"
-version="${emacs_major_version}.${emacs_minor_version}"
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining EMACS_MAJOR_VERSION = $emacs_major_version
-EOF
-cat >> confdefs.h <<EOF
-#define EMACS_MAJOR_VERSION $emacs_major_version
-EOF
-}
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining EMACS_MINOR_VERSION = $emacs_minor_version
-EOF
-cat >> confdefs.h <<EOF
-#define EMACS_MINOR_VERSION $emacs_minor_version
-EOF
-}
-if test -n "$emacs_beta_version" ; then
- if test "$beta" = "yes"; then
- version="${version}-b${emacs_beta_version}"
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining EMACS_BETA_VERSION = $emacs_beta_version
-EOF
-cat >> confdefs.h <<EOF
-#define EMACS_BETA_VERSION $emacs_beta_version
-EOF
-}
- else
- version="${version}.${emacs_beta_version}"
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining EMACS_PATCH_LEVEL = $emacs_beta_version
-EOF
-cat >> confdefs.h <<EOF
-#define EMACS_PATCH_LEVEL $emacs_beta_version
-EOF
-}
- fi
-fi
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining XEMACS_CODENAME = "$xemacs_codename"
-EOF
-cat >> confdefs.h <<EOF
-#define XEMACS_CODENAME "$xemacs_codename"
-EOF
-}
-if test "$xemacs_extra_name" != ""; then
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining XEMACS_EXTRA_NAME = "$xemacs_extra_name"
-EOF
-cat >> confdefs.h <<EOF
-#define XEMACS_EXTRA_NAME "$xemacs_extra_name"
-EOF
-}
-fi
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining EMACS_VERSION = "$version"
-EOF
-cat >> confdefs.h <<EOF
-#define EMACS_VERSION "$version"
-EOF
-}
-if test "$with_infodock" = "yes"; then
- if test ! -f ../../ID-INSTALL; then
- echo "Cannot build InfoDock without InfoDock sources"
- with_infodock=no
- fi
-fi
-if test "$with_infodock" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
-EOF
-cat >> confdefs.h <<EOF
-#define INFODOCK_MAJOR_VERSION $infodock_major_version
-EOF
-}
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
-EOF
-cat >> confdefs.h <<EOF
-#define INFODOCK_MINOR_VERSION $infodock_minor_version
-EOF
-}
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining INFODOCK_BUILD_VERSION = $infodock_build_version
-EOF
-cat >> confdefs.h <<EOF
-#define INFODOCK_BUILD_VERSION $infodock_build_version
-EOF
-}
-
version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
- PROGNAME=infodock
- CPPFLAGS="$CPPFLAGS -DINFODOCK"
-else
- PROGNAME=xemacs
-fi
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining EMACS_PROGNAME = "$PROGNAME"
-EOF
-cat >> confdefs.h <<EOF
-#define EMACS_PROGNAME "$PROGNAME"
-EOF
-}
-if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
-test "${error_check_extents=$beta}" = yes && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining ERROR_CHECK_EXTENTS
-EOF
-cat >> confdefs.h <<\EOF
-#define ERROR_CHECK_EXTENTS 1
-EOF
-}
-test "${error_check_types=$beta}" = yes && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining ERROR_CHECK_TYPES
-EOF
-cat >> confdefs.h <<\EOF
-#define ERROR_CHECK_TYPES 1
-EOF
-}
-test "${error_check_text=$beta}" = yes && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining ERROR_CHECK_TEXT
-EOF
-cat >> confdefs.h <<\EOF
-#define ERROR_CHECK_TEXT 1
-EOF
-}
-test "${error_check_gc=$beta}" = yes && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining ERROR_CHECK_GC
-EOF
-cat >> confdefs.h <<\EOF
-#define ERROR_CHECK_GC 1
-EOF
-}
-test "${error_check_malloc=$beta}" = yes && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining ERROR_CHECK_MALLOC
-EOF
-cat >> confdefs.h <<\EOF
-#define ERROR_CHECK_MALLOC 1
-EOF
-}
+MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"lib-src\" to \$MAKE_SUBDIR"; fi
+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
+with_dragndrop_default="no"
-test "${error_check_byte_code=$beta}" = yes && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining ERROR_CHECK_BYTE_CODE
-EOF
-cat >> confdefs.h <<\EOF
-#define ERROR_CHECK_BYTE_CODE 1
-EOF
-}
-test "${error_check_glyphs=$beta}" = yes && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining ERROR_CHECK_GLYPHS
-EOF
-cat >> confdefs.h <<\EOF
-#define ERROR_CHECK_GLYPHS 1
-EOF
-}
+# Check whether --with-mule or --without-mule was given.
+if test "${with_mule+set}" = set; then
+ withval="$with_mule"
+ { echo "Error:" --enable-mule, NOT --with-mule >&2; exit 1; }
+fi;
-test "${error_check_display=$beta}" = yes && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining ERROR_CHECK_DISPLAY
-EOF
-cat >> confdefs.h <<\EOF
-#define ERROR_CHECK_DISPLAY 1
-EOF
-}
-test "${error_check_structures=$beta}" = yes && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining ERROR_CHECK_STRUCTURES
-EOF
-cat >> confdefs.h <<\EOF
-#define ERROR_CHECK_STRUCTURES 1
-EOF
-}
+# Check whether --with-prefix or --without-prefix was given.
+if test "${with_prefix+set}" = set; then
+ withval="$with_prefix"
+ true
+else
+ with_prefix=yes
+fi;
-if test "${debug:=$beta}" = "yes"; then
- use_assertions=yes
- memory_usage_stats=yes
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining DEBUG_XEMACS
-EOF
-cat >> confdefs.h <<\EOF
-#define DEBUG_XEMACS 1
-EOF
-}
+# Check whether --with-site-lisp or --without-site-lisp was given.
+if test "${with_site_lisp+set}" = set; then
+ withval="$with_site_lisp"
+ true
+else
+ with_site_lisp=no
+fi;
-fi
-test "$use_assertions" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining USE_ASSERTIONS
-EOF
-cat >> confdefs.h <<\EOF
-#define USE_ASSERTIONS 1
-EOF
-}
+# Check whether --with-site-modules or --without-site-modules was given.
+if test "${with_site_modules+set}" = set; then
+ withval="$with_site_modules"
-test "$memory_usage_stats" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining MEMORY_USAGE_STATS
-EOF
-cat >> confdefs.h <<\EOF
-#define MEMORY_USAGE_STATS 1
-EOF
-}
+fi;
+# Check whether --with-gtk or --without-gtk was given.
+if test "${with_gtk+set}" = set; then
+ withval="$with_gtk"
+ true
+else
+ with_gtk=no
+fi;
+# Check whether --with-gnome or --without-gnome was given.
+if test "${with_gnome+set}" = set; then
+ withval="$with_gnome"
+ true
+else
+ with_gnome=no
+fi;
-echo $ac_n "checking "host system type"""... $ac_c"
1>&6
-echo "configure:1150: checking "host system type"" >&5
-internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
-canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub
"$internal_configuration"`
-configuration=`echo "$configuration" | sed
's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
-canonical=`echo "$canonical" | sed
's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
-echo "$ac_t""$configuration" 1>&6
+# Check whether --with-msw or --without-msw was given.
+if test "${with_msw+set}" = set; then
+ withval="$with_msw"
+fi;
+# Check whether --with-gcc or --without-gcc was given.
+if test "${with_gcc+set}" = set; then
+ withval="$with_gcc"
+fi;
+# Check whether --with-dynamic or --without-dynamic was given.
+if test "${with_dynamic+set}" = set; then
+ withval="$with_dynamic"
-machine='' opsys=''
+fi;
-case "$canonical" in
- sparc-*-* ) machine=sparc ;;
- alpha*-*-* ) machine=alpha ;;
- vax-*-* ) machine=vax ;;
- mips-dec-* ) machine=pmax ;;
- mips-sgi-irix6* ) machine=iris6d ;;
- mips-sgi-* ) machine=iris4d ;;
- mips*-linux ) machine=mips ;;
- romp-ibm-* ) machine=ibmrt ;;
- rs6000-ibm-aix* ) machine=ibmrs6000 ;;
- powerpc-ibm-aix* ) machine=ibmrs6000 ;;
- powerpc*-* ) machine=powerpc ;;
- hppa-*-* ) machine=hp800 ;;
- m88k-dg-* ) machine=aviion ;;
- m68*-sony-* ) machine=news ;;
- mips-sony-* ) machine=news-risc ;;
- clipper-* ) machine=clipper ;;
- arm* ) machine=arm ;;
- ns32k-* ) machine=ns32000 ;;
-esac
+# Check whether --with-ncurses or --without-ncurses was given.
+if test "${with_ncurses+set}" = set; then
+ withval="$with_ncurses"
-case "$canonical" in
- *-*-linux* ) opsys=linux ;;
- *-*-netbsd* ) opsys=netbsd ;;
- *-*-openbsd* ) opsys=openbsd ;;
- *-*-nextstep* ) opsys=nextstep ;;
- *-*-vms ) opsys=vms ;;
+fi;
- *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
- *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
- *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
- *-dec-osf3* ) opsys=decosf3-1 ;;
- *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
+# Check whether --with-dnet or --without-dnet was given.
+if test "${with_dnet+set}" = set; then
+ withval="$with_dnet"
- *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
- *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
- *-*-ultrix* ) opsys=ultrix4-3 ;;
+fi;
- *-*-aix3.1* ) opsys=aix3-1 ;;
- *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
- *-*-aix3* ) opsys=aix3-2 ;;
- *-*-aix4.0* ) opsys=aix4 ;;
- *-*-aix4.1* ) opsys=aix4-1 ;;
- *-*-aix[4-9]* ) opsys=aix4-2 ;;
+# Check whether --with-socks or --without-socks was given.
+if test "${with_socks+set}" = set; then
+ withval="$with_socks"
- *-gnu* ) opsys=gnu ;;
- *-*-bsd4.[01] ) opsys=bsd4-1 ;;
- *-*-bsd4.2 ) opsys=bsd4-2 ;;
- *-*-bsd4.3 ) opsys=bsd4-3 ;;
- *-*-aos4.2 ) opsys=bsd4-2 ;;
- *-*-aos* ) opsys=bsd4-3 ;;
- *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
- *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
- *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
- *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
- *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
- *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
- if test -z "$NON_GNU_CPP" ; then
- for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
- if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
- done
- fi
- opsys=usg5-4-2 ;;
- *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
- *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
-esac
+fi;
-case "$canonical" in
+# Check whether --with-dragndrop or --without-dragndrop was given.
+if test "${with_dragndrop+set}" = set; then
+ withval="$with_dragndrop"
- *-*-netbsd* )
- case "$canonical" in
- i[3-9]86-*-netbsd*) machine=intel386 ;;
- hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* |
da30-*-netbsd* | m68k-*-netbsd* )
- machine=hp9000s300 ;;
- pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
- pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
- esac
- ;;
+fi;
- *-*-openbsd* )
- case "${canonical}" in
- i386-*-openbsd*) machine=intel386 ;;
- m68k-*-openbsd*) machine=hp9000s300 ;;
- mipsel-*-openbsd*) machine=pmax ;;
- esac
- ;;
+# Check whether --with-cde or --without-cde was given.
+if test "${with_cde+set}" = set; then
+ withval="$with_cde"
- arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
- arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
+fi;
- fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
- i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
+# Check whether --with-offix or --without-offix was given.
+if test "${with_offix+set}" = set; then
+ withval="$with_offix"
- m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
+fi;
- 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
+# Check whether --with-gpm or --without-gpm was given.
+if test "${with_gpm+set}" = set; then
+ withval="$with_gpm"
- m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
+fi;
- we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
+# Check whether --with-xpm or --without-xpm was given.
+if test "${with_xpm+set}" = set; then
+ withval="$with_xpm"
- m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
+fi;
- rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
- m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
- m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
+# Check whether --with-xface or --without-xface was given.
+if test "${with_xface+set}" = set; then
+ withval="$with_xface"
+fi;
- celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
+# Check whether --with-gif or --without-gif was given.
+if test "${with_gif+set}" = set; then
+ withval="$with_gif"
- *-convex-bsd* | *-convex-convexos* )
- machine=convex opsys=bsd4-3
- NON_GNU_CPP="cc -E -P"
- ;;
+fi;
- i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
+# Check whether --with-jpeg or --without-jpeg was given.
+if test "${with_jpeg+set}" = set; then
+ withval="$with_jpeg"
- *-*-darwin*)
- opsys=darwin
- ;;
+fi;
- i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
- m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
- m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
- m88k-dg-dgux* ) opsys=dgux ;;
+# Check whether --with-png or --without-png was given.
+if test "${with_png+set}" = set; then
+ withval="$with_png"
- m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
- m88k-motorola-sysv4* )
- machine=delta88k opsys=usg5-4-2
- ;;
- m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
+fi;
- m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
- m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
+# Check whether --with-tiff or --without-tiff was given.
+if test "${with_tiff+set}" = set; then
+ withval="$with_tiff"
- ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
+fi;
- pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
- pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
- np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
+# Xft uses an option complex similar to sound and database
+with_xft_default="" with_xft_types=""
+with_xft_emacs=yes
+test -n "${with_xft_default}" &&
with_xft_default="${with_xft_default},"
+test "${with_xft_emacs}" != "yes" &&
with_xft_default="${with_xft_default}no"
+with_xft_default="${with_xft_default}emacs"
+with_xft_notfirst=""
+test -n "${with_xft_types}" && with_xft_types="${with_xft_types}
"
+with_xft_types="${with_xft_types}emacs"
+with_xft_menubars=yes
+test -n "${with_xft_default}" &&
with_xft_default="${with_xft_default},"
+test "${with_xft_menubars}" != "yes" &&
with_xft_default="${with_xft_default}no"
+with_xft_default="${with_xft_default}menubars"
+with_xft_notfirst=""
+test -n "${with_xft_types}" && with_xft_types="${with_xft_types}
"
+with_xft_types="${with_xft_types}menubars"
+with_xft_tabs=yes
+test -n "${with_xft_default}" &&
with_xft_default="${with_xft_default},"
+test "${with_xft_tabs}" != "yes" &&
with_xft_default="${with_xft_default}no"
+with_xft_default="${with_xft_default}tabs"
+with_xft_notfirst=""
+test -n "${with_xft_types}" && with_xft_types="${with_xft_types}
"
+with_xft_types="${with_xft_types}tabs"
+with_xft_gauges=yes
+test -n "${with_xft_default}" &&
with_xft_default="${with_xft_default},"
+test "${with_xft_gauges}" != "yes" &&
with_xft_default="${with_xft_default}no"
+with_xft_default="${with_xft_default}gauges"
+with_xft_notfirst=""
+test -n "${with_xft_types}" && with_xft_types="${with_xft_types}
"
+with_xft_types="${with_xft_types}gauges"
- m88k-harris-cxux* )
- case "`uname -r`" in
- [56].[0-9] ) machine=nh4000 opsys=cxux ;;
- [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
+# Check whether --with-xft or --without-xft was given.
+if test "${with_xft+set}" = set; then
+ withval="$with_xft"
+ for x in `echo "$withval" | sed -e 's/,/ /g'` ; do
+ with_xft_all_default=""
+ with_xft_found=""
+ case "$x" in
+ n | no | non | none ) with_xft_all_default=no ;;
+ a | al | all | both ) with_xft_all_default=yes ;;
esac
- NON_GNU_CPP="/lib/cpp"
- ;;
- m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
- powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo
-E -P" ;;
+ if test -z "$with_xft_all_default"; then
+ for y in $with_xft_types; do
+ if test "$x" = "$y"; then
+ with_xft_found=yes
+ eval `echo "with_xft_$y=yes"`
+ elif test "$x" = "no$y"; then
+ with_xft_found=yes
+ eval `echo "with_xft_$y=no"`
+ fi
+ done
+ test -z "with_xft_found" && with_xft_bogus=yes
+ fi
+ if test "$with_xft_bogus" = "yes" -o \
+ \( -n "$with_xft_all_default" -a -n "$with_xft_notfirst"
\) ; then
+ (echo "$progname: Usage error:"
+echo " " "Valid values for the \`--with-xft' option are:
+$with_xft_types. With prefix \"no\", switch it off.
+Defaults may be overridden with \`all' or \`none' first in the list.
+Hardcoded default is: \`$with_xft_default'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
+ elif test -n "$with_xft_all_default" ; then
+ for y in "$with_xft_types"; do
+ eval `echo "with_xft_$y="'$with_xft_all_default'`
+ done
+ fi
+ with_xft_notfirst=yes
+done
- xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
+fi;
+if test \( "$with_xft_menubars" = "yes" -o
"$with_xft_tabs" = "yes" \
+ -o "$with_xft_gauges" = "yes" \) -a
"$with_xft_emacs" = "no"; then
+ { echo "$as_me:$LINENO: WARNING: Forcing --with-xft=emacs because Xft is
enabled" >&5
+echo "$as_me: WARNING: Forcing --with-xft=emacs because Xft is enabled"
>&2;}
+ with_xft_emacs=yes
+fi
+# cleanup
+unset with_xft_bogus with_xft_found with_xft_notfirst with_xft_types
+unset with_xft_default with_xft_all_default x y
+# end of Xft parsing
- m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
+# Check whether --with-zlib or --without-zlib was given.
+if test "${with_zlib+set}" = set; then
+ withval="$with_zlib"
- *-hp-hpux* )
- case "$canonical" in
- m68* ) machine=hp9000s300 ;;
- hppa* ) machine=hp800 ;;
- esac
+fi;
- case "$canonical" in
- *-hp-hpux7* ) opsys=hpux ;;
- *-hp-hpux8* ) opsys=hpux8 ;;
- *-hp-hpux9* ) opsys=hpux9 ;;
- *-hp-hpux10* ) opsys=hpux10 ;;
- *-hp-hpux11* ) opsys=hpux11 ;;
- * ) opsys=hpux ;;
- esac
+# Check whether --with-wmcommand or --without-wmcommand was given.
+if test "${with_wmcommand+set}" = set; then
+ withval="$with_wmcommand"
- case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs
strcat.o" && if test "$extra_verbose" = "yes"; then
- echo " xemacs will be linked with \"strcat.o\""
- fi ;; esac
+fi;
- if test "$opsys" = "hpux10" -o "$opsys" =
"hpux11"; then \
- ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
- NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
+# Check whether --with-xmu or --without-xmu was given.
+if test "${with_xmu+set}" = set; then
+ withval="$with_xmu"
- case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;;
esac
- ;;
+fi;
- orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
- clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
+# Check whether --with-purify or --without-purify was given.
+if test "${with_purify+set}" = set; then
+ withval="$with_purify"
- i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
- i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
- i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
- romp-ibm-aos* ) opsys=bsd4-3 ;;
- romp-ibm-bsd* ) opsys=bsd4-3 ;;
- romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
+fi;
- m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
- m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
+# Check whether --with-quantify or --without-quantify was given.
+if test "${with_quantify+set}" = set; then
+ withval="$with_quantify"
- i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
+fi;
+# Check whether --enable-toolbars or --disable-toolbars was given.
+if test "${enable_toolbars+set}" = set; then
+ enableval="$enable_toolbars"
- i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
+fi;
- i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
+# Check whether --with-tty or --without-tty was given.
+if test "${with_tty+set}" = set; then
+ withval="$with_tty"
- i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx
NON_GNU_CPP="/lib/cpp" ;;
+fi;
- i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
+# Check whether --with-xfs or --without-xfs was given.
+if test "${with_xfs+set}" = set; then
+ withval="$with_xfs"
- i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
+fi;
+# Check whether --enable-mule or --disable-mule was given.
+if test "${enable_mule+set}" = set; then
+ enableval="$enable_mule"
- i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc"
NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
+fi;
+# Check whether --enable-default-eol-detection or --disable-default-eol-detection was
given.
+if test "${enable_default_eol_detection+set}" = set; then
+ enableval="$enable_default_eol_detection"
- m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
+fi;
- m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
+# Check whether --with-canna or --without-canna was given.
+if test "${with_canna+set}" = set; then
+ withval="$with_canna"
- mips-mips-usg* ) machine=mips4 ;;
- mips-mips-riscos4 )
- machine=mips4
- NON_GNU_CC="cc -systype bsd43"
- NON_GNU_CPP="cc -systype bsd43 -E"
- case "$canonical" in
- mips-mips-riscos4* ) opsys=bsd4-3 ;;
- mips-mips-riscos5* ) opsys=riscos5 ;;
- esac
- ;;
- mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
- mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
+fi;
- m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
+# Check whether --with-wnn or --without-wnn was given.
+if test "${with_wnn+set}" = set; then
+ withval="$with_wnn"
- ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
+fi;
- m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
- m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
+# Check whether --with-wnn6 or --without-wnn6 was given.
+if test "${with_wnn6+set}" = set; then
+ withval="$with_wnn6"
- m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
+fi;
- m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
+# Check whether --with-workshop or --without-workshop was given.
+if test "${with_workshop+set}" = set; then
+ withval="$with_workshop"
- m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
+fi;
- pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
+# Check whether --with-sparcworks or --without-sparcworks was given.
+if test "${with_sparcworks+set}" = set; then
+ withval="$with_sparcworks"
- ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
- ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
+fi;
- mips-siemens-sysv* | mips-sni-sysv*)
- machine=mips-siemens opsys=usg5-4
- NON_GNU_CC=/usr/ccs/bin/cc
- NON_GNU_CPP=/usr/ccs/lib/cpp
- ;;
+# Check whether --with-tooltalk or --without-tooltalk was given.
+if test "${with_tooltalk+set}" = set; then
+ withval="$with_tooltalk"
- mips-nec-sysv*)
- machine=mips-nec
- NON_GNU_CC=/usr/ccs/bin/cc
- NON_GNU_CPP=/usr/ccs/lib/cpp
- ;;
+fi;
- m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
- m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
- mips-sgi-irix3.* ) opsys=irix3-3 ;;
- mips-sgi-irix4.* ) opsys=irix4-0 ;;
- mips-sgi-irix6* ) opsys=irix6-0 ;;
- mips-sgi-irix5.1* ) opsys=irix5-1 ;;
- mips-sgi-irix5.2* ) opsys=irix5-2 ;;
- mips-sgi-irix5.* ) opsys=irix5-3 ;;
- mips-sgi-irix* ) opsys=irix5-0 ;;
+# Check whether --with-ldap or --without-ldap was given.
+if test "${with_ldap+set}" = set; then
+ withval="$with_ldap"
- *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
- *-sony-news* ) opsys=newsos5 ;;
+fi;
- m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
+# Check whether --with-postgresql or --without-postgresql was given.
+if test "${with_postgresql+set}" = set; then
+ withval="$with_postgresql"
- *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
- case "$canonical" in
- m68*-sunos1* ) machine=sun1 ;;
- m68*-sunos2* ) machine=sun2 ;;
- m68* ) machine=sun3 ;;
- i*86*-sun-sunos[34]* ) machine=sun386 ;;
- i*86-*-* ) machine=intel386 ;;
- rs6000* ) machine=rs6000 ;;
- esac
+fi;
- case "$canonical" in *-sunos5*)
- canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
- esac
+# Check whether --with-pop or --without-pop was given.
+if test "${with_pop+set}" = set; then
+ withval="$with_pop"
- case "$canonical" in
- *-sunos4* )
- #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
- : ;;
- *-solaris2* )
- #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
- RANLIB=':' ;;
- esac
+fi;
- case "$canonical" in
- *-solaris* )
- opsys=sol2
- os_release_major=`uname -r | sed -e
's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1/'`
- os_release_minor=`uname -r | sed -e
's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\2/'`
- case "$os_release_minor" in [0-9])
- os_release_minor="0${os_release_minor}";;
- esac
- os_release="${os_release_major}${os_release_minor}"
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining OS_RELEASE = $os_release
-EOF
-cat >> confdefs.h <<EOF
-#define OS_RELEASE $os_release
-EOF
-}
- ;;
+# Check whether --with-kerberos or --without-kerberos was given.
+if test "${with_kerberos+set}" = set; then
+ withval="$with_kerberos"
- i*86-*-sunos4* ) opsys=sunos4-0 ;;
- *-sunos4.0* ) opsys=sunos4-0 ;;
- *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
- *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
- *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
- *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
- *-mach* ) opsys=mach-bsd4-3 ;;
- * ) opsys=bsd4-2 ;;
- esac
+fi;
- case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;;
esac
+# Check whether --with-hesiod or --without-hesiod was given.
+if test "${with_hesiod+set}" = set; then
+ withval="$with_hesiod"
- test "$opsys $CC" = "sol2 /usr/ucb/cc" &&
CC=""
- ;;
+fi;
- m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
+# Check whether --with-infodock or --without-infodock was given.
+if test "${with_infodock+set}" = set; then
+ withval="$with_infodock"
- tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
- tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
+fi;
- mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
+# Check whether --with-native-sound-lib or --without-native-sound-lib was given.
+if test "${with_native_sound_lib+set}" = set; then
+ withval="$with_native_sound_lib"
- m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
+fi;
- ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
- m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
+# Check whether --with-netinstall or --without-netinstall was given.
+if test "${with_netinstall+set}" = set; then
+ withval="$with_netinstall"
- titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
+else
+ with_netinstall="no"
+fi;
- m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
+# Check whether --with-ipv6-cname or --without-ipv6-cname was given.
+if test "${with_ipv6_cname+set}" = set; then
+ withval="$with_ipv6_cname"
- vax-dec-* )
- case "$canonical" in
- *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
- *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
- *-mach* ) opsys=mach-bsd4-3 ;;
- esac
- ;;
+else
+ with_ipv6_cname="no"
+fi;
- ns16k-whitechapel-* ) machine=mg1 ;;
+# Check whether --with-site-includes or --without-site-includes was given.
+if test "${with_site_includes+set}" = set; then
+ withval="$with_site_includes"
- m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
+fi;
- i[3-9]86-*-* )
- machine=intel386
- case "$canonical" in
- *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
- *-isc2.2* ) opsys=isc2-2 ;;
- *-isc4.0* ) opsys=isc4-0 ;;
- *-isc4.* ) opsys=isc4-1
- GCC_TEST_OPTIONS=-posix
- NON_GCC_TEST_OPTIONS=-Xp
- ;;
- *-isc* ) opsys=isc3-0 ;;
- *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
- *-esix* ) opsys=esix ;;
- *-mach* ) opsys=mach-bsd4-3 ;;
- *-xenix* ) opsys=xenix ;;
- *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
- *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
- *-bsdi4* ) opsys=bsdos4 ;;
- *-bsdi3* ) opsys=bsdos3 ;;
- *-bsdi2.1* ) opsys=bsdos2-1 ;;
- *-bsdi2* ) opsys=bsdos2 ;;
- *-sco3.2v5* ) opsys=sco5 ;;
- *-sysv5* ) opsys=sco7 ;;
- *-386bsd* ) opsys=386bsd ;;
- *-freebsd* ) opsys=freebsd ;;
- *-nextstep* ) opsys=nextstep ;;
- *-pc-cygwin* ) opsys=cygwin32 ;;
- *-pc-mingw* ) opsys=mingw32 ;
- test -z "$with_tty" && with_tty="no";;
- esac
- ;;
+# Check whether --with-site-libraries or --without-site-libraries was given.
+if test "${with_site_libraries+set}" = set; then
+ withval="$with_site_libraries"
- m68k-*-linux* ) machine=m68k opsys=linux ;;
+fi;
-esac
+# Check whether --with-site-prefixes or --without-site-prefixes was given.
+if test "${with_site_prefixes+set}" = set; then
+ withval="$with_site_prefixes"
-test -z "$machine" && machine=`echo $canonical | sed
's/-.*$//'`
+fi;
-test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz`
+# Check whether --with-statedir or --without-statedir was given.
+if test "${with_statedir+set}" = set; then
+ withval="$with_statedir"
-if test -r "${srcdir}/src/m/${machine}.h"; then
- machfile="m/${machine}.h"
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining config_machfile = "$machfile"
-EOF
-cat >> confdefs.h <<EOF
-#define config_machfile "$machfile"
-EOF
-}
+else
+ with_statedir='${prefix}/lib'
+fi;
+
+# Check whether --with-lispdir or --without-lispdir was given.
+if test "${with_lispdir+set}" = set; then
+ withval="$with_lispdir"
+ cat >>confdefs.h <<\_ACEOF
+#define LISPDIR_USER_DEFINED 1
+_ACEOF
else
- echo "XEmacs has no builtin knowledge of \`$machine' machines."
- echo "Using configure-time autodetection only."
-fi
+ with_lispdir='${datadir}/${instvardir}/lisp'
+fi;
-if test -r "${srcdir}/src/s/${opsys}.h"; then
- opsysfile="s/${opsys}.h"
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining config_opsysfile = "$opsysfile"
-EOF
-cat >> confdefs.h <<EOF
-#define config_opsysfile "$opsysfile"
-EOF
-}
+# Check whether --with-archlibdir or --without-archlibdir was given.
+if test "${with_archlibdir+set}" = set; then
+ withval="$with_archlibdir"
+ cat >>confdefs.h <<\_ACEOF
+#define ARCHLIBDIR_USER_DEFINED 1
+_ACEOF
else
- echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
- echo "Using configure-time autodetection only."
-fi
+ with_archlibdir='${libdir}/${instvardir}/${configuration}'
+fi;
+# Check whether --with-moduledir or --without-moduledir was given.
+if test "${with_moduledir+set}" = set; then
+ withval="$with_moduledir"
+ cat >>confdefs.h <<\_ACEOF
+#define MODULEDIR_USER_DEFINED 1
+_ACEOF
-if test -z "$pdump"; then
- case "$opsys" in
- linux* ) pdump=yes ;; darwin ) pdump=yes ;; cygwin* )
pdump=yes ;; * ) pdump=no ;;
- esac
-fi
+else
+ with_moduledir='${libdir}/${instvardir}/${configuration}/modules'
+fi;
-if test -z "$dynamic"; then
- case "$opsys" in
- hpux* | sunos4* ) dynamic=no ;;
- *) dynamic=yes ;;
- esac
-fi
-if test "$dynamic" = "yes"; then
- case "$opsys" in
- hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
- decosf* ) ld_call_shared="-call_shared" ;;
- darwin ) { test "$extra_verbose" = "yes" && cat
<< \EOF
- Defining DLSYM_NEEDS_UNDERSCORE
-EOF
-cat >> confdefs.h <<\EOF
-#define DLSYM_NEEDS_UNDERSCORE 1
-EOF
-}
- ;;
- esac
-else case "$opsys" in
- sol2 )
- echo "Static linking is not supported on Solaris 2."
- echo "Rerun configure without specifying --dynamic=no."
- exit 1 ;;
- linux ) ld_call_shared="-Bstatic" ;;
- decosf* ) ld_call_shared="-non_shared" ;;
- esac
-fi
+# Check whether --with-etcdir or --without-etcdir was given.
+if test "${with_etcdir+set}" = set; then
+ withval="$with_etcdir"
+ cat >>confdefs.h <<\_ACEOF
+#define ETCDIR_USER_DEFINED 1
+_ACEOF
-case "$opsys" in
- aix* ) NON_GNU_CC=xlc ;; darwin ) RANLIB="ranlib -c" ;; esac
+else
+ with_etcdir='${datadir}/${instvardir}/etc'
+fi;
-stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed
'y/.-/__/'`
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
-EOF
-cat >> confdefs.h <<EOF
-#define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
-EOF
-}
+# Check whether --with-infopath or --without-infopath was given.
+if test "${with_infopath+set}" = set; then
+ withval="$with_infopath"
+ cat >>confdefs.h <<\_ACEOF
+#define INFOPATH_USER_DEFINED 1
+_ACEOF
+fi;
+# Check whether --with-docdir or --without-docdir was given.
+if test "${with_docdir+set}" = set; then
+ withval="$with_docdir"
+ cat >>confdefs.h <<\_ACEOF
+#define DOCDIR_USER_DEFINED 1
+_ACEOF
-test "$with_sparcworks" = "yes" && with_workshop=yes #
compatibility alias
-if test "$with_workshop $with_tooltalk" = "yes no"; then
- (echo "$progname: Usage error:"
-echo " " "--with-workshop requires --with-tooltalk"
-echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
-elif test "$with_tooltalk" = "no" ; then with_workshop=no
-elif test "$with_workshop" = "yes"; then with_tooltalk=yes
-fi
+else
+ with_docdir='${archlibdir}'
+fi;
-if test "$with_workshop" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining SUNPRO
-EOF
-cat >> confdefs.h <<\EOF
-#define SUNPRO 1
-EOF
-}
+# Check whether --with-site-runtime-libraries or --without-site-runtime-libraries was
given.
+if test "${with_site_runtime_libraries+set}" = set; then
+ withval="$with_site_runtime_libraries"
-fi
+fi;
-if test "$with_clash_detection" != "no"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining CLASH_DETECTION
-EOF
-cat >> confdefs.h <<\EOF
-#define CLASH_DETECTION 1
-EOF
-}
+# Check whether --with-package-prefix or --without-package-prefix was given.
+if test "${with_package_prefix+set}" = set; then
+ withval="$with_package_prefix"
+ cat >>confdefs.h <<\_ACEOF
+#define PACKAGE_PATH_USER_DEFINED 1
+_ACEOF
-fi
+fi;
-test -n "$compiler" && CC="$compiler"
-if test "$with_gcc" = "no"; then case "$CC" in
"" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
-fi
+# Check whether --with-package-path or --without-package-path was given.
+if test "${with_package_path+set}" = set; then
+ withval="$with_package_path"
+ cat >>confdefs.h <<\_ACEOF
+#define PACKAGE_PATH_USER_DEFINED 1
+_ACEOF
-test "${cflags-unset}" != unset && CFLAGS="$cflags"
-if test "${CFLAGS-unset}" != unset
- then cflags_specified=yes;
- else cflags_specified=no;
-fi
+fi;
+# Check whether --enable-external-widget or --disable-external-widget was given.
+if test "${enable_external_widget+set}" = set; then
+ enableval="$enable_external_widget"
-if test "${cflags_warning-unset}" != unset
- then cflags_warning_specified=yes;
- else cflags_warning_specified=no;
-fi
+fi;
+# Check whether --enable-kkcc or --disable-kkcc was given.
+if test "${enable_kkcc+set}" = set; then
+ enableval="$enable_kkcc"
-xe_save_CFLAGS="$CFLAGS"
+fi;
+# Check whether --enable-union-type or --disable-union-type was given.
+if test "${enable_union_type+set}" = set; then
+ enableval="$enable_union_type"
-# Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1688: checking for $ac_word" >&5
+fi;
+# Check whether --enable-pdump or --disable-pdump was given.
+if test "${enable_pdump+set}" = set; then
+ enableval="$enable_pdump"
-if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="gcc"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
+fi;
+# Check whether --enable-debug or --disable-debug was given.
+if test "${enable_debug+set}" = set; then
+ enableval="$enable_debug"
-if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1715: checking for $ac_word" >&5
+fi;
+# Check whether --enable-assertions or --disable-assertions was given.
+if test "${enable_assertions+set}" = set; then
+ enableval="$enable_assertions"
-if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_prog_rejected=no
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
-if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- set dummy "$ac_dir/$ac_word" "$@"
- shift
- ac_cv_prog_CC="$@"
- fi
-fi
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
+fi;
+# Check whether --enable-memory-usage-stats or --disable-memory-usage-stats was given.
+if test "${enable_memory_usage_stats+set}" = set; then
+ enableval="$enable_memory_usage_stats"
- if test -z "$CC"; then
- case "`uname -s`" in
- *win32* | *WIN32*)
- # Extract the first word of "cl", so it can be a program name with
args.
-set dummy cl; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1763: checking for $ac_word" >&5
+fi;
+# Check whether --enable-clash-detection or --disable-clash-detection was given.
+if test "${enable_clash_detection+set}" = set; then
+ enableval="$enable_clash_detection"
-if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="cl"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
- ;;
- esac
- fi
- test -z "$CC" && { echo "configure: error: no acceptable cc
found in \$PATH" 1>&2; exit 1; }
-fi
+fi;
+# Check whether --enable-modules or --disable-modules was given.
+if test "${enable_modules+set}" = set; then
+ enableval="$enable_modules"
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
works""... $ac_c" 1>&6
-echo "configure:1792: checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
works" >&5
+fi;
+# Check whether --enable-quick-build or --disable-quick-build was given.
+if test "${enable_quick_build+set}" = set; then
+ enableval="$enable_quick_build"
-ac_ext=c
-xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
-xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
-xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
-ac_cpp='$CPP '"$xe_cppflags"
-ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext
1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
-cross_compiling=no
+fi;
-cat > conftest.$ac_ext << EOF
-#line 1805 "configure"
-#include "confdefs.h"
+# Check whether --with-compiler or --without-compiler was given.
+if test "${with_compiler+set}" = set; then
+ withval="$with_compiler"
-main(){return(0);}
-EOF
-if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
- else
- ac_cv_prog_cc_cross=yes
- fi
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cc_works=no
-fi
-rm -fr conftest*
-ac_ext=c
-xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
-xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
-xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
-ac_cpp='$CPP '"$xe_cppflags"
-ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext
1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
-cross_compiling=no
+fi;
-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
-if test $ac_cv_prog_cc_works = no; then
- { echo "configure: error: installation or configuration problem: C compiler
cannot create executables." 1>&2; exit 1; }
-fi
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a
cross-compiler""... $ac_c" 1>&6
-echo "configure:1838: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a
cross-compiler" >&5
-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
-cross_compiling=$ac_cv_prog_cc_cross
-echo $ac_n "checking whether we are using GNU C""... $ac_c"
1>&6
-echo "configure:1843: checking whether we are using GNU C" >&5
+# Check whether --with-xemacs-compiler or --without-xemacs-compiler was given.
+if test "${with_xemacs_compiler+set}" = set; then
+ withval="$with_xemacs_compiler"
-cat > conftest.c <<EOF
-#ifdef __GNUC__
- yes;
-#endif
-EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1850:
\"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes
>/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
-else
- ac_cv_prog_gcc=no
-fi
+fi;
-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
-if test $ac_cv_prog_gcc = yes; then
- GCC=yes
-else
- GCC=
-fi
+# Check whether --with-cflags or --without-cflags was given.
+if test "${with_cflags+set}" = set; then
+ withval="$with_cflags"
-ac_test_CFLAGS="${CFLAGS+set}"
-ac_save_CFLAGS="$CFLAGS"
-CFLAGS=
-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c"
1>&6
-echo "configure:1868: checking whether ${CC-cc} accepts -g" >&5
+fi;
-echo 'void f(){}' > conftest.c
-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_g=yes
-else
- ac_cv_prog_cc_g=no
-fi
-rm -f conftest*
+# Check whether --with-cflags-warning or --without-cflags-warning was given.
+if test "${with_cflags_warning+set}" = set; then
+ withval="$with_cflags_warning"
-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
-if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
-elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
+fi;
+
+
+# Check whether --with-cpp or --without-cpp was given.
+if test "${with_cpp+set}" = set; then
+ withval="$with_cpp"
+ CPP="$with_cpp"
+fi;
+
+
+# Check whether --with-cppflags or --without-cppflags was given.
+if test "${with_cppflags+set}" = set; then
+ withval="$with_cppflags"
+ CPPFLAGS="$with_cppflags"
+fi;
+
+
+# Check whether --with-libs or --without-libs was given.
+if test "${with_libs+set}" = set; then
+ withval="$with_libs"
+ LIBS="$with_libs"
+fi;
+
+
+# Check whether --with-ldflags or --without-ldflags was given.
+if test "${with_ldflags+set}" = set; then
+ withval="$with_ldflags"
+ LDFLAGS="$with_ldflags"
+fi;
+
+
+# Check whether --with-rel-alloc or --without-rel-alloc was given.
+if test "${with_rel_alloc+set}" = set; then
+ withval="$with_rel_alloc"
+
else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
-fi
+ with_rel_alloc='default'
+fi;
-if test "$with_gcc" = "no" -a "$GCC" =
"yes"; then
- CC=${NON_GNU_CC-cc}
- # Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1901: checking for $ac_word" >&5
-if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
+# Check whether --with-dlmalloc or --without-dlmalloc was given.
+if test "${with_dlmalloc+set}" = set; then
+ withval="$with_dlmalloc"
+
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="gcc"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
+ with_dlmalloc='default'
+fi;
+
+
+# Check whether --with-debug-malloc or --without-debug-malloc was given.
+if test "${with_debug_malloc+set}" = set; then
+ withval="$with_debug_malloc"
+
+fi;
+
+
+# Check whether --with-system-malloc or --without-system-malloc was given.
+if test "${with_system_malloc+set}" = set; then
+ withval="$with_system_malloc"
+
else
- echo "$ac_t""no" 1>&6
+ with_system_malloc='default'
+fi;
+
+#Enable code.
+
+# Check whether --enable-database or --disable-database was given.
+if test "${enable_database+set}" = set; then
+ enableval="$enable_database"
+
+with_database_berkdb=no
+with_database_dbm=no
+with_database_gdbm=no
+for x in `echo "$enable_database" | sed -e 's/,/ /g'` ; do
+ case "$x" in
+ no ) ;;
+ b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
+ d | db | dbm ) with_database_dbm=yes ;;
+ g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
+ * ) (echo "$progname: Usage error:"
+echo " " "The \`--$optname' option value
+must be either \`no' or a comma-separated list
+of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
+ esac
+done
+if test "$with_database_dbm" = "yes" -a
"$with_database_gdbm" = "yes"; then
+ (echo "$progname: Usage error:"
+echo " " "Only one of \`dbm' and \`gnudbm' may be specified
+with the \`--$optname' option."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
fi
-if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1928: checking for $ac_word" >&5
+fi;
-if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_prog_rejected=no
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
-if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- set dummy "$ac_dir/$ac_word" "$@"
- shift
- ac_cv_prog_CC="$@"
- fi
-fi
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
- if test -z "$CC"; then
- case "`uname -s`" in
- *win32* | *WIN32*)
- # Extract the first word of "cl", so it can be a program name with
args.
-set dummy cl; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1976: checking for $ac_word" >&5
-
-if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="cl"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
- ;;
- esac
- fi
- test -z "$CC" && { echo "configure: error: no acceptable cc
found in \$PATH" 1>&2; exit 1; }
-fi
+# Check whether --enable-sound or --disable-sound was given.
+if test "${enable_sound+set}" = set; then
+ enableval="$enable_sound"
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
works""... $ac_c" 1>&6
-echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
works" >&5
+for x in `echo "$enable_sound" | sed -e 's/,/ /g'` ; do
+ case "$x" in
+ n | no | non | none ) new_sdefault=no ;;
+ a | al | all | both ) new_sdefault=yes ;;
-ac_ext=c
-xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
-xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
-xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
-ac_cpp='$CPP '"$xe_cppflags"
-ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext
1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
-cross_compiling=no
+ native ) with_native_sound=yes ;;
+ nonative ) with_native_sound=no ;;
-cat > conftest.$ac_ext << EOF
+ nas ) with_nas_sound=yes ;;
+ nonas ) with_nas_sound=no ;;
-#line 2018 "configure"
-#include "confdefs.h"
+ esd ) with_esd_sound=yes ;;
+ noesd ) with_esd_sound=no ;;
-main(){return(0);}
-EOF
-if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
- else
- ac_cv_prog_cc_cross=yes
+ * ) bogus_sound=yes ;;
+ esac
+ if test "$bogus_sound" -o \
+ \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
+ types="\`all', \`none', \`(no)native', \`no(nas)',
\`(no)esd'."
+ (echo "$progname: Usage error:"
+echo " " "Valid types for the \`--$optname' option are:
+$types.
+Option \`all' or \`none' must be first in the list.
+The default is to autodetect native and NAS sound support."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
+ elif test -n "$new_sdefault" ; then
+ with_native_sound=$new_sdefault
+ with_nas_sound=$new_sdefault
+ with_esd_sound=$new_sdefault
+ new_sdefault= # reset this
fi
+ sound_notfirst=true
+done
+
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cc_works=no
-fi
-rm -fr conftest*
-ac_ext=c
-xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
-xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
-xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
-ac_cpp='$CPP '"$xe_cppflags"
-ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext
1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
-cross_compiling=no
+ with_esd_sound=no
+fi;
-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
-if test $ac_cv_prog_cc_works = no; then
- { echo "configure: error: installation or configuration problem: C compiler
cannot create executables." 1>&2; exit 1; }
-fi
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a
cross-compiler""... $ac_c" 1>&6
-echo "configure:2051: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a
cross-compiler" >&5
-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
-cross_compiling=$ac_cv_prog_cc_cross
-echo $ac_n "checking whether we are using GNU C""... $ac_c"
1>&6
-echo "configure:2056: checking whether we are using GNU C" >&5
+# Check whether --with-athena or --without-athena was given.
+if test "${with_athena+set}" = set; then
+ withval="$with_athena"
+ case "$with_athena" in
+ xa | xaw ) val=xaw ;;
+ 3 | 3d | xaw3d ) val=3d ;;
+ ne | nex | next | naxtaw) val=next ;;
+ 9 | 95 | xaw95 ) val=95 ;;
+ xp | xpm | xawxpm ) val=xpm ;;
+ * ) (echo "$progname: Usage error:"
+echo " " "The \`--with-athena' option must have one of these
values:
+ \`xaw', \`3d', \`next', \`95', or \`xpm'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
+ esac
+eval "with_athena=\"$val\""
-cat > conftest.c <<EOF
-#ifdef __GNUC__
- yes;
-#endif
-EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2063:
\"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes
>/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
-else
- ac_cv_prog_gcc=no
-fi
-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+fi;
-if test $ac_cv_prog_gcc = yes; then
- GCC=yes
-else
- GCC=
-fi
+# Check whether --with-xim or --without-xim was given.
+if test "${with_xim+set}" = set; then
+ withval="$with_xim"
-ac_test_CFLAGS="${CFLAGS+set}"
-ac_save_CFLAGS="$CFLAGS"
-CFLAGS=
-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c"
1>&6
-echo "configure:2081: checking whether ${CC-cc} accepts -g" >&5
+case "$with_xim" in
+ y | ye | yes ) val=yes ;;
+ n | no | non | none ) val=no ;;
+ x | xl | xli | xlib ) val=xlib ;;
+ m | mo | mot | moti | motif ) val=motif ;;
+ * ) (echo "$progname: Usage error:"
+echo " " "The \`--$optname' option must have one of these values:
+ \`motif', \`xlib', \`yes', or \`no'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
+esac
+eval "with_xim=\"$val\""
-echo 'void f(){}' > conftest.c
-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_g=yes
-else
- ac_cv_prog_cc_g=no
-fi
-rm -f conftest*
+fi;
-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
-if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
-elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
-else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
-fi
+# Check whether --with-mail-locking or --without-mail-locking was given.
+if test "${with_mail_locking+set}" = set; then
+ withval="$with_mail_locking"
-elif test "$with_gcc" = "yes" -a "$GCC" !=
"yes" ; then
- CC=gcc
- # Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2114: checking for $ac_word" >&5
+case "$with_mail_locking" in
+ lockf ) val=lockf ;;
+ flock ) val=flock ;;
+ file | dot ) val=file ;;
+ locking ) val=locking ;;
+ mmdf ) val=mmdf ;;
+ pop ) val=pop ;;
+ * ) (echo "$progname: Usage error:"
+echo " " "The \`--$optname' option must have one of these values:
+ \`lockf', \`flock', \`file', \`dot', \`locking', \`mmdf', or
\`pop'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
+esac
+eval "with_mail_locking=\"$val\""
-if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="gcc"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
+fi;
-if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2141: checking for $ac_word" >&5
+# Check whether --enable-bignum or --disable-bignum was given.
+if test "${enable_bignum+set}" = set; then
+ enableval="$enable_bignum"
-if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_prog_rejected=no
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
-if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- set dummy "$ac_dir/$ac_word" "$@"
- shift
- ac_cv_prog_CC="$@"
- fi
-fi
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
+case "$enable_bignum" in
+ gmp ) val=gmp ;;
+ mp ) val=mp ;;
+ no|non|none ) val=no ;;
+ * ) (echo "$progname: Usage error:"
+echo " " "The \`--$optname' option must have one of these values:
+\`gmp', \`mp', or \`no'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
+esac
+eval "enable_bignum=\"$val\""
+
else
- echo "$ac_t""no" 1>&6
-fi
+ enable_bignum="no"
+fi;
- if test -z "$CC"; then
- case "`uname -s`" in
- *win32* | *WIN32*)
- # Extract the first word of "cl", so it can be a program name with
args.
-set dummy cl; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2189: checking for $ac_word" >&5
+# Check whether --enable-error-checking or --disable-error-checking was given.
+if test "${enable_error_checking+set}" = set; then
+ enableval="$enable_error_checking"
-if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="cl"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
- ;;
- esac
- fi
- test -z "$CC" && { echo "configure: error: no acceptable cc
found in \$PATH" 1>&2; exit 1; }
-fi
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
works""... $ac_c" 1>&6
-echo "configure:2218: checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
works" >&5
+for x in `echo "$enable_error_checking" | sed -e 's/,/ /g'` ; do
+ case "$x" in
+ n | no | non | none ) new_default=no ;;
+ a | al | all ) new_default=yes ;;
-ac_ext=c
-xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
-xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
-xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
-ac_cpp='$CPP '"$xe_cppflags"
-ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext
1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
-cross_compiling=no
+ extents ) error_check_extents=yes ;;
+ noextents ) error_check_extents=no ;;
-cat > conftest.$ac_ext << EOF
+ types ) error_check_types=yes ;;
+ notypes ) error_check_types=no ;;
-#line 2231 "configure"
-#include "confdefs.h"
+ text ) error_check_text=yes ;;
+ notext ) error_check_text=no ;;
-main(){return(0);}
-EOF
-if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
- else
- ac_cv_prog_cc_cross=yes
- fi
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cc_works=no
-fi
-rm -fr conftest*
-ac_ext=c
-xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
-xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
-xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
-ac_cpp='$CPP '"$xe_cppflags"
-ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext
1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
-cross_compiling=no
+ gc ) error_check_gc=yes ;;
+ nogc ) error_check_gc=no ;;
-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
-if test $ac_cv_prog_cc_works = no; then
- { echo "configure: error: installation or configuration problem: C compiler
cannot create executables." 1>&2; exit 1; }
-fi
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a
cross-compiler""... $ac_c" 1>&6
-echo "configure:2264: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a
cross-compiler" >&5
-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
-cross_compiling=$ac_cv_prog_cc_cross
+ malloc ) error_check_malloc=yes ;;
+ nomalloc ) error_check_malloc=no ;;
-echo $ac_n "checking whether we are using GNU C""... $ac_c"
1>&6
-echo "configure:2269: checking whether we are using GNU C" >&5
+ byte_code ) error_check_byte_code=yes ;;
+ nobyte_code ) error_check_byte_code=no ;;
-cat > conftest.c <<EOF
-#ifdef __GNUC__
- yes;
-#endif
-EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2276:
\"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes
>/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
-else
- ac_cv_prog_gcc=no
-fi
+ glyphs ) error_check_glyphs=yes ;;
+ noglyphs ) error_check_glyphs=no ;;
-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ display ) error_check_display=yes ;;
+ nodisplay ) error_check_display=no ;;
-if test $ac_cv_prog_gcc = yes; then
- GCC=yes
-else
- GCC=
-fi
+ structures ) error_check_structures=yes ;;
+ nostructures ) error_check_structures=no ;;
-ac_test_CFLAGS="${CFLAGS+set}"
-ac_save_CFLAGS="$CFLAGS"
-CFLAGS=
-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c"
1>&6
-echo "configure:2294: checking whether ${CC-cc} accepts -g" >&5
+ * ) bogus_error_check=yes ;;
+ esac
-echo 'void f(){}' > conftest.c
-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_g=yes
-else
- ac_cv_prog_cc_g=no
-fi
-rm -f conftest*
-
-
-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
-if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
-elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
+ if test "$bogus_error_check" -o \
+ \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
+ if test "$error_check_default" = yes ; then
+ types="\`all' (default), \`none', \`noextents', \`notypes',
\`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code',
\`nodisplay', \`nostructures'."
else
- CFLAGS="-g"
+ types="\`all', \`none' (default), \`extents', \`types',
\`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display',
\`structures'."
fi
-else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
+ (echo "$progname: Usage error:"
+echo " " "Valid types for the \`--$optname' option are:
+$types."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
+ elif test -n "$new_default" ; then
+ error_check_extents=$new_default
+ error_check_types=$new_default
+ error_check_text=$new_default
+ error_check_gc=$new_default
+ error_check_malloc=$new_default
+ error_check_byte_code=$new_default
+ error_check_glyphs=$new_default
+ error_check_display=$new_default
+ error_check_structures=$new_default
+ new_default= # reset this
fi
-fi
+ echeck_notfirst=true
+ done
-fi
-CFLAGS="$xe_save_CFLAGS"
+fi;
-if test "$GCC" = "yes"; then
-cat > conftest.$ac_ext <<EOF
-#line 2327 "configure"
-#include "confdefs.h"
-int main () {
-#if __GNUC__ >= 3
-return 11;
-#else
-return 0;
-#endif
-}
-EOF
-if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- :
-else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- case "$conftest_rc" in
- 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;;
+# Check whether --enable-menubars or --disable-menubars was given.
+if test "${enable_menubars+set}" = set; then
+ enableval="$enable_menubars"
+
+case "$enable_menubars" in
+ l | lu | luc | luci | lucid ) val=lucid ;;
+ mo | mot | moti | motif ) val=motif ;;
+ a | at | ath | athe | athen | athena ) val=athena ;;
+ n | no | non | none ) val=no ;;
+ y | ye | yes ) val=yes ;;
+ g | gt | gtk ) val=gtk ;;
+ ms | msw ) val=msw ;;
+ * ) (echo "$progname: Usage error:"
+echo " " "The \`--$optname' option must have one of these values:
+ \`gtk', \`lucid', \`motif', \`athena', \`yes', or
\`no'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
esac
-fi
-rm -fr conftest*
-fi
+eval "enable_menubars=\"$val\""
+fi;
+# Check whether --enable-scrollbars or --disable-scrollbars was given.
+if test "${enable_scrollbars+set}" = set; then
+ enableval="$enable_scrollbars"
-test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
-: ${XEMACS_CC:="$CC"}
+case "$enable_scrollbars" in
+ l | lu | luc | luci | lucid ) val=lucid ;;
+ mo | mot | moti | motif ) val=motif ;;
+ a | at | ath | athe | athen | athena ) val=athena ;;
+ n | no | non | none ) val=no ;;
+ y | ye | yes ) val=yes ;;
+ g | gt | gtk ) val=gtk ;;
+ ms | msw ) val=msw ;;
+ * ) (echo "$progname: Usage error:"
+echo " " "The \`--$optname' option must have one of these values:
+ \`gtk', \`lucid', \`motif', \`athena', \`yes', or
\`no'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
+esac
+eval "enable_scrollbars=\"$val\""
+fi;
-test -n "$CPP" -a -d "$CPP" && CPP=
+# Check whether --enable-dialogs or --disable-dialogs was given.
+if test "${enable_dialogs+set}" = set; then
+ enableval="$enable_dialogs"
-test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z
"$CPP" && CPP="$NON_GNU_CPP"
+case "$enable_dialogs" in
+ l | lu | luc | luci | lucid ) val=lucid ;;
+ mo | mot | moti | motif ) val=motif ;;
+ a | at | ath | athe | athen | athena ) val=athena ;;
+ n | no | non | none ) val=no ;;
+ y | ye | yes ) val=yes ;;
+ g | gt | gtk ) val=gtk ;;
+ ms | msw ) val=msw ;;
+ * ) (echo "$progname: Usage error:"
+echo " " "The \`--$optname' option must have one of these values:
+ \`gtk', \`lucid', \`motif', \`athena', \`yes', or
\`no'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
+esac
+eval "enable_dialogs=\"$val\""
-echo $ac_n "checking how to run the C preprocessor""... $ac_c"
1>&6
-echo "configure:2363: checking how to run the C preprocessor" >&5
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
- CPP=
-fi
-if test -z "$CPP"; then
+fi;
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- CPP="${CC-cc} -E"
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
-#line 2376 "configure"
-#include "confdefs.h"
-#include <assert.h>
-Syntax Error
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2382: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- :
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
-#line 2393 "configure"
-#include "confdefs.h"
-#include <assert.h>
-Syntax Error
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2399: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- :
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -nologo -E"
- cat > conftest.$ac_ext <<EOF
-#line 2410 "configure"
-#include "confdefs.h"
-#include <assert.h>
-Syntax Error
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2416: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- :
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP=/lib/cpp
+# Check whether --enable-widgets or --disable-widgets was given.
+if test "${enable_widgets+set}" = set; then
+ enableval="$enable_widgets"
+
+case "$enable_widgets" in
+ l | lu | luc | luci | lucid ) val=lucid ;;
+ mo | mot | moti | motif ) val=motif ;;
+ a | at | ath | athe | athen | athena ) val=athena ;;
+ n | no | non | none ) val=no ;;
+ y | ye | yes ) val=yes ;;
+ g | gt | gtk ) val=gtk ;;
+ ms | msw ) val=msw ;;
+ * ) (echo "$progname: Usage error:"
+echo " " "The \`--$optname' option must have one of these values:
+ \`gtk', \`lucid', \`motif', \`athena', \`yes', or
\`no'."
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1 ;;
+esac
+eval "enable_widgets=\"$val\""
+
+fi;
+
+
+if test "$with_purify" = "yes" -o "$with_quantify" =
"yes"; then
+ test "$with_system_malloc" = "default" &&
with_system_malloc=yes
fi
-rm -f conftest*
+
+if test "$with_cde $with_tooltalk" = "yes no"; then
+ (echo "$progname: Usage error:"
+echo " " "--with-cde requires --with-tooltalk"
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
+elif test "$with_tooltalk" = "no" ; then with_cde=no
+elif test "$with_cde" = "yes"; then with_tooltalk=yes
fi
-rm -f conftest*
+
+
+if test "$with_xfs" = "yes" -a "$with_xft_menubars" =
"yes"; then
+ (echo "$progname: Usage error:"
+echo " " "XFS and Xft in the menubars are incompatible!"
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
fi
-rm -f conftest*
- ac_cv_prog_CPP="$CPP"
- CPP="$ac_cv_prog_CPP"
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+if test "x$exec_prefix" = xNONE
+then
+ exec_prefix='${prefix}'
else
- ac_cv_prog_CPP="$CPP"
+ cat >>confdefs.h <<\_ACEOF
+#define EXEC_PREFIX_USER_DEFINED 1
+_ACEOF
+
fi
-echo "$ac_t""$CPP" 1>&6
+if test "x$datadir" != 'x${prefix}/share'
+then
+ cat >>confdefs.h <<\_ACEOF
+#define INFODIR_USER_DEFINED 1
+_ACEOF
+ cat >>confdefs.h <<\_ACEOF
+#define LISPDIR_USER_DEFINED 1
+_ACEOF
+ cat >>confdefs.h <<\_ACEOF
+#define MODULEDIR_USER_DEFINED 1
+_ACEOF
-echo $ac_n "checking for AIX""... $ac_c" 1>&6
-echo "configure:2442: checking for AIX" >&5
-cat > conftest.$ac_ext <<EOF
-#line 2444 "configure"
-#include "confdefs.h"
-#ifdef _AIX
- yes
-#endif
+ cat >>confdefs.h <<\_ACEOF
+#define ETCDIR_USER_DEFINED 1
+_ACEOF
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6; { test "$extra_verbose"
= "yes" && cat << \EOF
- Defining _ALL_SOURCE
-EOF
-cat >> confdefs.h <<\EOF
-#define _ALL_SOURCE 1
-EOF
-}
+ cat >>confdefs.h <<\_ACEOF
+#define DOCDIR_USER_DEFINED 1
+_ACEOF
+
+ cat >>confdefs.h <<\_ACEOF
+#define ARCHLIBDIR_USER_DEFINED 1
+_ACEOF
else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
+ datadir='${prefix}/lib'
fi
-rm -f conftest*
-
-
-
-echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
-echo "configure:2471: checking for GNU libc" >&5
-cat > conftest.$ac_ext <<EOF
-#line 2473 "configure"
-#include "confdefs.h"
-#include <features.h>
-int main() {
+if test "x$libdir" != 'x${exec_prefix}/lib'
+then
+ cat >>confdefs.h <<\_ACEOF
+#define ARCHLIBDIR_USER_DEFINED 1
+_ACEOF
-#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
-#error Not a GNU libc system :-(
-******* ======= ******** &&&&&&&&
-#endif
+fi
+if test "x$mandir" = 'x${prefix}/man'
+then
+ mandir='${prefix}/man/man1'
+fi
+if test "x$infodir" != 'x${prefix}/info'
+then
+ cat >>confdefs.h <<\_ACEOF
+#define INFODIR_USER_DEFINED 1
+_ACEOF
-; return 0; }
-EOF
-if { (eval echo configure:2485: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- have_glibc=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- have_glibc=no
+ infodir='${datadir}/${instvardir}/info'
fi
-rm -f conftest*
-echo "$ac_t""$have_glibc" 1>&6
-test "$have_glibc" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining _GNU_SOURCE
-EOF
-cat >> confdefs.h <<\EOF
-#define _GNU_SOURCE 1
-EOF
-}
+with_sitelispdir='${datadir}/${inststaticdir}/site-lisp'
+inststaticdir='${PROGNAME}'
+instvardir='${PROGNAME}-${version}'
+sitemoduledir='${libdir}/${inststaticdir}/site-modules'
-case "$opsys" in
- sol2)
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining __EXTENSIONS__
-EOF
-cat >> confdefs.h <<\EOF
-#define __EXTENSIONS__ 1
-EOF
-}
- if test "$os_release" -ge 505; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining _XOPEN_SOURCE = 500
-EOF
-cat >> confdefs.h <<\EOF
-#define _XOPEN_SOURCE 500
-EOF
-}
+statedir=$with_statedir
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining _XOPEN_SOURCE_EXTENDED
-EOF
-cat >> confdefs.h <<\EOF
-#define _XOPEN_SOURCE_EXTENDED 1
-EOF
-}
- fi ;;
- linux)
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining _POSIX_C_SOURCE = 199506L
-EOF
-cat >> confdefs.h <<\EOF
-#define _POSIX_C_SOURCE 199506L
-EOF
-}
+ac_aux_dir=
+for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+ if test -f $ac_dir/install-sh; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f $ac_dir/install.sh; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f $ac_dir/shtool; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir
$srcdir/.. $srcdir/../.." >&5
+echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/..
$srcdir/../.." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+ac_config_guess="$SHELL $ac_aux_dir/config.guess"
+ac_config_sub="$SHELL $ac_aux_dir/config.sub"
+ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus
configure.
+
+# Make sure we can run config.sub.
+$ac_config_sub sun4 >/dev/null 2>&1 ||
+ { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
+echo "$as_me: error: cannot run $ac_config_sub" >&2;}
+ { (exit 1); exit 1; }; }
+
+echo "$as_me:$LINENO: checking build system type" >&5
+echo $ECHO_N "checking build system type... $ECHO_C" >&6
+if test "${ac_cv_build+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_build_alias=$build_alias
+test -z "$ac_cv_build_alias" &&
+ ac_cv_build_alias=`$ac_config_guess`
+test -z "$ac_cv_build_alias" &&
+ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify
one" >&5
+echo "$as_me: error: cannot guess build type; you must specify one"
>&2;}
+ { (exit 1); exit 1; }; }
+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed"
>&5
+echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_build" >&5
+echo "${ECHO_T}$ac_cv_build" >&6
+build=$ac_cv_build
+build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
- { test "$extra_verbose" = "yes" && cat <<
\EOF
- Defining _XOPEN_SOURCE = 500
-EOF
-cat >> confdefs.h <<\EOF
-#define _XOPEN_SOURCE 500
-EOF
-}
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining _XOPEN_SOURCE_EXTENDED
-EOF
-cat >> confdefs.h <<\EOF
-#define _XOPEN_SOURCE_EXTENDED 1
-EOF
-}
- ;;
- freebsd4*)
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining _POSIX_C_SOURCE = 199506L
-EOF
-cat >> confdefs.h <<\EOF
-#define _POSIX_C_SOURCE 199506L
-EOF
-}
+echo "$as_me:$LINENO: checking whether ln -s works" >&5
+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
+echo "${ECHO_T}no, using $LN_S" >&6
+fi
- { test "$extra_verbose" = "yes" && cat <<
\EOF
- Defining _XOPEN_SOURCE = 500
-EOF
-cat >> confdefs.h <<\EOF
-#define _XOPEN_SOURCE 500
-EOF
-}
- ;;
-esac
+for dir in lisp etc man info tests; do
+ if test ! -d "$dir" ; then
+ echo Making symbolic link to "$srcdir/$dir"
+ ${LN_S} "$srcdir/$dir" "$dir"
+ fi
+done
-cat > conftest.$ac_ext <<EOF
-#line 2580 "configure"
-#include "confdefs.h"
-int main () {
-#if defined __SUNPRO_C
-return 11;
-#elif defined __DECC
-return 12;
-#elif defined __USLC__ && defined __SCO_VERSION__
-return 13;
-#elif defined __INTEL_COMPILER
-return 14;
-#else
-return 0;
-#endif
-}
-EOF
-if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- :
-else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- case "$conftest_rc" in
- 11) echo "You appear to be using the SunPro C compiler." ; __SUNPRO_C=yes
;;
- 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
- 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
- 14) echo "You appear to be using the Intel C++ compiler."; __ICC=yes
- GCC=no ;;
-esac
+absolute_pwd="`pwd`";
+if test -n "$PWD" -a "`cd $PWD && pwd`" =
"$absolute_pwd"
+then blddir="$PWD"
+else blddir="$absolute_pwd"; if test -d "/net"; then
+ if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else
tdir="tmp_mnt"; fi
+ blddir=`echo "$blddir" | \
+ sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e
"s|^/amd/|/net/|"`
+fi
fi
-rm -fr conftest*
+case "$srcdir" in
+ /* ) ;;
+ . ) srcdir="$blddir" ;;
+ * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net";
then
+ if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else
tdir="tmp_mnt"; fi
+ srcdir=`echo "$srcdir" | \
+ sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e
"s|^/amd/|/net/|"`
+fi ;;
+esac
+if test `pwd` != `sh -c cd $srcdir && pwd` \
+ && test -f "$srcdir/src/config.h"; then
+ (echo "$progname: WARNING: The directory tree \`$srcdir' is being
used"
+ echo " as a build directory right now; it has been configured in its
own"
+ echo " right. To configure in another directory as well, you MUST"
+ echo " use GNU make. If you do not have GNU make, then you must"
+ echo " now do \`make distclean' in $srcdir,"
+ echo " and then run $progname again.") >&2
+ extrasub='/^VPATH[ ]*=/c\
+vpath %.c $(srcdir)\
+vpath %.h $(srcdir)\
+vpath %.y $(srcdir)\
+vpath %.l $(srcdir)\
+vpath %.s $(srcdir)\
+vpath %.in $(srcdir)'
+fi
-echo "Extracting information from the machine- and system-dependent
headers..."
+. "$srcdir/version.sh" || exit 1;
+if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
+: "${extra_verbose=$beta}"
+version="${emacs_major_version}.${emacs_minor_version}"
+cat >>confdefs.h <<_ACEOF
+#define EMACS_MAJOR_VERSION $emacs_major_version
+_ACEOF
-tempcname="conftest.c"
+cat >>confdefs.h <<_ACEOF
+#define EMACS_MINOR_VERSION $emacs_minor_version
+_ACEOF
+if test -n "$emacs_beta_version" ; then
+ if test "$beta" = "yes"; then
+ version="${version}-b${emacs_beta_version}"
+ cat >>confdefs.h <<_ACEOF
+#define EMACS_BETA_VERSION $emacs_beta_version
+_ACEOF
+ else
+ version="${version}.${emacs_beta_version}"
+ cat >>confdefs.h <<_ACEOF
+#define EMACS_PATCH_LEVEL $emacs_beta_version
+_ACEOF
-cat > $tempcname < confdefs.h
-cat >> $tempcname <<EOF
-#define NOT_C_CODE
-#define C_SWITCH_SITE
-#define C_SWITCH_X_SITE
-#define LD_SWITCH_SITE
-#define LD_SWITCH_X_SITE
-#define LD_SWITCH_X_SITE_AUX
-#define OS_RELEASE $os_release
+ fi
+fi
+cat >>confdefs.h <<_ACEOF
+#define XEMACS_CODENAME "$xemacs_codename"
+_ACEOF
-#ifdef config_opsysfile
-#include "$srcdir/src/$opsysfile"
-#endif
+if test "$xemacs_extra_name" != ""; then
+ cat >>confdefs.h <<_ACEOF
+#define XEMACS_EXTRA_NAME "$xemacs_extra_name"
+_ACEOF
-#ifdef config_machfile
-#include "$srcdir/src/$machfile"
-#endif
+fi
+cat >>confdefs.h <<_ACEOF
+#define EMACS_VERSION "$version"
+_ACEOF
-#ifndef LIBS_MACHINE
-#define LIBS_MACHINE
-#endif
-configure___ libs_machine=LIBS_MACHINE
-#ifndef LIBS_SYSTEM
-#define LIBS_SYSTEM
-#endif
-configure___ libs_system=LIBS_SYSTEM
+if test "$with_infodock" = "yes"; then
+ if test ! -f ../../ID-INSTALL; then
+ echo "Cannot build InfoDock without InfoDock sources"
+ with_infodock=no
+ fi
+fi
-#ifndef LIBS_TERMCAP
-#define LIBS_TERMCAP
-#endif
-configure___ libs_termcap=LIBS_TERMCAP
+if test "$with_infodock" = "yes"; then
+ cat >>confdefs.h <<_ACEOF
+#define INFODOCK_MAJOR_VERSION $infodock_major_version
+_ACEOF
-#ifndef LIB_STANDARD
-#define LIB_STANDARD
-#endif
-configure___ libs_standard=LIB_STANDARD
+ cat >>confdefs.h <<_ACEOF
+#define INFODOCK_MINOR_VERSION $infodock_minor_version
+_ACEOF
+ cat >>confdefs.h <<_ACEOF
+#define INFODOCK_BUILD_VERSION $infodock_build_version
+_ACEOF
-#ifndef OBJECTS_MACHINE
-#define OBJECTS_MACHINE
-#endif
-configure___ objects_machine=OBJECTS_MACHINE
+
version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
+ PROGNAME=infodock
+ CPPFLAGS="$CPPFLAGS -DINFODOCK"
+else
+ PROGNAME=xemacs
+fi
-#ifndef OBJECTS_SYSTEM
-#define OBJECTS_SYSTEM
-#endif
-configure___ objects_system=OBJECTS_SYSTEM
+cat >>confdefs.h <<_ACEOF
+#define EMACS_PROGNAME "$PROGNAME"
+_ACEOF
-#ifndef C_SWITCH_MACHINE
-#define C_SWITCH_MACHINE
-#endif
-configure___ c_switch_machine=C_SWITCH_MACHINE
+if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
+test "${error_check_extents=$beta}" = yes && cat
>>confdefs.h <<\_ACEOF
+#define ERROR_CHECK_EXTENTS 1
+_ACEOF
-#ifndef C_SWITCH_SYSTEM
-#define C_SWITCH_SYSTEM
-#endif
-configure___ c_switch_system=C_SWITCH_SYSTEM
+test "${error_check_types=$beta}" = yes && cat
>>confdefs.h <<\_ACEOF
+#define ERROR_CHECK_TYPES 1
+_ACEOF
+test "${error_check_text=$beta}" = yes && cat
>>confdefs.h <<\_ACEOF
+#define ERROR_CHECK_TEXT 1
+_ACEOF
-#ifndef LD_SWITCH_MACHINE
-#define LD_SWITCH_MACHINE
-#endif
-configure___ ld_switch_machine=LD_SWITCH_MACHINE
+test "${error_check_gc=$beta}" = yes && cat
>>confdefs.h <<\_ACEOF
+#define ERROR_CHECK_GC 1
+_ACEOF
-#ifndef LD_SWITCH_SYSTEM
-#define LD_SWITCH_SYSTEM
-#endif
-configure___ ld_switch_system=LD_SWITCH_SYSTEM
+test "${error_check_malloc=$beta}" = yes && cat
>>confdefs.h <<\_ACEOF
+#define ERROR_CHECK_MALLOC 1
+_ACEOF
+test "${error_check_byte_code=$beta}" = yes && cat
>>confdefs.h <<\_ACEOF
+#define ERROR_CHECK_BYTE_CODE 1
+_ACEOF
-#ifndef UNEXEC
-#define UNEXEC
-#endif
-configure___ unexec=UNEXEC
+test "${error_check_glyphs=$beta}" = yes && cat
>>confdefs.h <<\_ACEOF
+#define ERROR_CHECK_GLYPHS 1
+_ACEOF
+test "${error_check_display=$beta}" = yes && cat
>>confdefs.h <<\_ACEOF
+#define ERROR_CHECK_DISPLAY 1
+_ACEOF
-#ifndef SYSTEM_TYPE
-#define SYSTEM_TYPE
-#endif
-configure___ system_type=SYSTEM_TYPE
+test "${error_check_structures=$beta}" = yes && cat
>>confdefs.h <<\_ACEOF
+#define ERROR_CHECK_STRUCTURES 1
+_ACEOF
+if test "${enable_debug:=$beta}" = "yes"; then
+ enable_assertions=yes
+ enable_memory_usage_stats=yes
+ cat >>confdefs.h <<\_ACEOF
+#define DEBUG_XEMACS 1
+_ACEOF
-#ifndef LD_SWITCH_SHARED
-#define LD_SWITCH_SHARED "-c"
-#endif
-configure___ ld_switch_shared=LD_SWITCH_SHARED
+fi
+test "$enable_assertions" = "yes" && cat
>>confdefs.h <<\_ACEOF
+#define USE_ASSERTIONS 1
+_ACEOF
+test "$enable_memory_usage_stats" = "yes" && cat
>>confdefs.h <<\_ACEOF
+#define MEMORY_USAGE_STATS 1
+_ACEOF
-#define ORDINARY_LD "\$(CC) \$(CFLAGS)"
-configure___ ordinary_ld=ORDINARY_LD
-#ifdef ORDINARY_LINK
-#define LD ORDINARY_LD
-#else /* no ORDINARY LINK */
-#ifdef COFF_ENCAPSULATE
-#define LD "\$(CC) -nostdlib"
-#else /* not COFF_ENCAPSULATE */
-#ifdef LINKER
-#define LD LINKER
-#else /* ! defined (LINKER) */
-#define LD "ld"
-#endif /* ! defined (LINKER) */
-#endif /* ! defined (COFF_ENCAPSULATE) */
-#endif /* not ORDINARY_LINK */
-configure___ ld=LD
-#ifndef LIB_GCC
-#define LIB_GCC
-#endif
-configure___ lib_gcc=LIB_GCC
+ac_cv_build_alias=`echo "$ac_cv_build_alias" | sed
's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
+ac_cv_build=`echo "$ac_cv_build" | sed
's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
+configuration=$ac_cv_build
-#ifndef LD_TEXT_START_ADDR
-#define LD_TEXT_START_ADDR
-#endif
-configure___ ld_text_start_addr=LD_TEXT_START_ADDR
-#if ! defined (ORDINARY_LINK) && !defined (START_FILES)
-#ifdef NO_REMAP
-#ifdef COFF_ENCAPSULATE
-#define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
-#else /* ! defined (COFF_ENCAPSULATE) */
-#define START_FILES "pre-crt0.o /lib/crt0.o"
-#endif /* ! defined (COFF_ENCAPSULATE) */
-#else /* ! defined (NO_REMAP) */
-#define START_FILES "ecrt0.o"
-#endif /* ! defined (NO_REMAP) */
-#endif /* no ORDINARY_LINK */
-#ifndef START_FILES
-#define START_FILES
-#endif
-configure___ start_files=START_FILES
-#ifdef ORDINARY_LINK
-configure___ ordinary_link=yes
-#else
-configure___ ordinary_link=no
-#endif
-#ifdef SYSTEM_MALLOC
-configure___ system_malloc=yes
-#else
-configure___ system_malloc=no
-#endif
-#ifdef TERMINFO
-configure___ have_terminfo=yes
-#else
-configure___ have_terminfo=no
-#endif
+machine='' opsys=''
-#ifdef MAIL_USE_FLOCK
-configure___ mail_use_flock=yes
-#else
-configure___ mail_use_flock=no
-#endif
+case "$ac_cv_build" in
+ sparc-*-* ) machine=sparc ;;
+ alpha*-*-* ) machine=alpha ;;
+ vax-*-* ) machine=vax ;;
+ mips-dec-* ) machine=pmax ;;
+ mips-sgi-irix6* ) machine=iris6d ;;
+ mips-sgi-* ) machine=iris4d ;;
+ mips*-linux ) machine=mips ;;
+ romp-ibm-* ) machine=ibmrt ;;
+ rs6000-ibm-aix* ) machine=ibmrs6000 ;;
+ powerpc-ibm-aix* ) machine=ibmrs6000 ;;
+ powerpc*-* ) machine=powerpc ;;
+ hppa-*-* ) machine=hp800 ;;
+ m88k-dg-* ) machine=aviion ;;
+ m68*-sony-* ) machine=news ;;
+ mips-sony-* ) machine=news-risc ;;
+ clipper-* ) machine=clipper ;;
+ arm* ) machine=arm ;;
+ ns32k-* ) machine=ns32000 ;;
+esac
-#ifdef MAIL_USE_LOCKF
-configure___ mail_use_lockf=yes
+case "$ac_cv_build" in
+ *-*-linux* ) opsys=linux ;;
+ *-*-netbsd* ) opsys=netbsd ;;
+ *-*-openbsd* ) opsys=openbsd ;;
+ *-*-nextstep* ) opsys=nextstep ;;
+ *-*-vms ) opsys=vms ;;
+
+ *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
+ *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
+ *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
+ *-dec-osf3* ) opsys=decosf3-1 ;;
+ *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
+
+ *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
+ *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
+ *-*-ultrix* ) opsys=ultrix4-3 ;;
+
+ *-*-aix3.1* ) opsys=aix3-1 ;;
+ *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
+ *-*-aix3* ) opsys=aix3-2 ;;
+ *-*-aix4.0* ) opsys=aix4 ;;
+ *-*-aix4.1* ) opsys=aix4-1 ;;
+ *-*-aix[4-9]* ) opsys=aix4-2 ;;
+
+ *-gnu* ) opsys=gnu ;;
+ *-*-bsd4.[01] ) opsys=bsd4-1 ;;
+ *-*-bsd4.2 ) opsys=bsd4-2 ;;
+ *-*-bsd4.3 ) opsys=bsd4-3 ;;
+ *-*-aos4.2 ) opsys=bsd4-2 ;;
+ *-*-aos* ) opsys=bsd4-3 ;;
+ *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
+ *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
+ *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
+ *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
+ *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
+ *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
+ if test -z "$NON_GNU_CPP" ; then
+ for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
+ if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
+ done
+ fi
+ opsys=usg5-4-2 ;;
+ *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
+ *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
+esac
+
+case "$ac_cv_build" in
+
+ *-*-netbsd* )
+ case "ac_cv_build" in
+ i[3-9]86-*-netbsd*) machine=intel386 ;;
+ hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* |
da30-*-netbsd* | m68k-*-netbsd* )
+ machine=hp9000s300 ;;
+ pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
+ pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
+ esac
+ ;;
+
+ *-*-openbsd* )
+ case "${ac_cv_build}" in
+ i386-*-openbsd*) machine=intel386 ;;
+ m68k-*-openbsd*) machine=hp9000s300 ;;
+ mipsel-*-openbsd*) machine=pmax ;;
+ esac
+ ;;
+
+ arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
+ arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
+
+ fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
+ i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
+
+ m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
+
+ 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
+
+ m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
+
+ we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
+
+ m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
+
+ rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
+ m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
+ m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
+
+
+ celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
+
+ *-convex-bsd* | *-convex-convexos* )
+ machine=convex opsys=bsd4-3
+ NON_GNU_CPP="cc -E -P"
+ ;;
+
+ i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
+
+ *-*-darwin*)
+ opsys=darwin
+ ;;
+
+ i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
+ m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
+ m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
+ m88k-dg-dgux* ) opsys=dgux ;;
+
+ m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
+ m88k-motorola-sysv4* )
+ machine=delta88k opsys=usg5-4-2
+ ;;
+ m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
+
+ m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
+ m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
+
+ ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
+
+ pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
+ pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
+ np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
+
+ m88k-harris-cxux* )
+ case "`uname -r`" in
+ [56].[0-9] ) machine=nh4000 opsys=cxux ;;
+ [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
+ esac
+ NON_GNU_CPP="/lib/cpp"
+ ;;
+ m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
+ powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo
-E -P" ;;
+
+ xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
+
+ m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
+
+ *-hp-hpux* )
+ case "$ac_cv_build" in
+ m68* ) machine=hp9000s300 ;;
+ hppa* ) machine=hp800 ;;
+ esac
+
+ case "$ac_cv_build" in
+ *-hp-hpux7* ) opsys=hpux ;;
+ *-hp-hpux8* ) opsys=hpux8 ;;
+ *-hp-hpux9* ) opsys=hpux9 ;;
+ *-hp-hpux10* ) opsys=hpux10 ;;
+ *-hp-hpux11* ) opsys=hpux11 ;;
+ * ) opsys=hpux ;;
+ esac
+
+ case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs
strcat.o" && if test "$extra_verbose" = "yes"; then
+ echo " xemacs will be linked with \"strcat.o\""
+ fi ;; esac
+
+ if test "$opsys" = "hpux10" -o "$opsys" =
"hpux11"; then \
+ ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
+ NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
+
+ case "$ac_cv_build" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;;
esac
+ ;;
+
+ orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
+ clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
+
+ i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
+ i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
+ i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
+ romp-ibm-aos* ) opsys=bsd4-3 ;;
+ romp-ibm-bsd* ) opsys=bsd4-3 ;;
+ romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
+
+ m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
+ m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
+
+ i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
+
+ i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
+
+ i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
+
+ i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx
NON_GNU_CPP="/lib/cpp" ;;
+
+ i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
+
+ i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
+
+ i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc"
NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
+
+ m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
+
+ m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
+
+ mips-mips-usg* ) machine=mips4 ;;
+ mips-mips-riscos4 )
+ machine=mips4
+ NON_GNU_CC="cc -systype bsd43"
+ NON_GNU_CPP="cc -systype bsd43 -E"
+ case "$ac_cv_build" in
+ mips-mips-riscos4* ) opsys=bsd4-3 ;;
+ mips-mips-riscos5* ) opsys=riscos5 ;;
+ esac
+ ;;
+ mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
+ mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
+
+ m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
+
+ ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
+
+ m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
+ m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
+
+ m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
+
+ m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
+
+ m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
+
+ pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
+
+ ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
+ ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
+
+ mips-siemens-sysv* | mips-sni-sysv*)
+ machine=mips-siemens opsys=usg5-4
+ NON_GNU_CC=/usr/ccs/bin/cc
+ NON_GNU_CPP=/usr/ccs/lib/cpp
+ ;;
+
+ mips-nec-sysv*)
+ machine=mips-nec
+ NON_GNU_CC=/usr/ccs/bin/cc
+ NON_GNU_CPP=/usr/ccs/lib/cpp
+ ;;
+
+ m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
+ m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
+ mips-sgi-irix3.* ) opsys=irix3-3 ;;
+ mips-sgi-irix4.* ) opsys=irix4-0 ;;
+ mips-sgi-irix6* ) opsys=irix6-0 ;;
+ mips-sgi-irix5.1* ) opsys=irix5-1 ;;
+ mips-sgi-irix5.2* ) opsys=irix5-2 ;;
+ mips-sgi-irix5.* ) opsys=irix5-3 ;;
+ mips-sgi-irix* ) opsys=irix5-0 ;;
+
+ *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
+ *-sony-news* ) opsys=newsos5 ;;
+
+ m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
+
+ *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
+ case "$ac_cv_build" in
+ m68*-sunos1* ) machine=sun1 ;;
+ m68*-sunos2* ) machine=sun2 ;;
+ m68* ) machine=sun3 ;;
+ i*86*-sun-sunos[34]* ) machine=sun386 ;;
+ i*86-*-* ) machine=intel386 ;;
+ rs6000* ) machine=rs6000 ;;
+ esac
+
+ case "$ac_cv_build" in *-sunos5*)
+ ac_cv_build=`echo $ac_cv_build | sed -e s/sunos5/solaris2/`;;
+ esac
+
+ case "$ac_cv_build" in
+ *-sunos4* )
+ #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
+ : ;;
+ *-solaris2* )
+ #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
+ RANLIB=':' ;;
+ esac
+
+ case "$ac_cv_build" in
+ *-solaris* )
+ opsys=sol2
+ os_release_major=`uname -r | sed -e
's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1/'`
+ os_release_minor=`uname -r | sed -e
's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\2/'`
+ case "$os_release_minor" in [0-9])
+ os_release_minor="0${os_release_minor}";;
+ esac
+ os_release="${os_release_major}${os_release_minor}"
+ cat >>confdefs.h <<_ACEOF
+#define OS_RELEASE $os_release
+_ACEOF
+ ;;
+
+ i*86-*-sunos4* ) opsys=sunos4-0 ;;
+ *-sunos4.0* ) opsys=sunos4-0 ;;
+ *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
+ *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
+ *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
+ *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
+ *-mach* ) opsys=mach-bsd4-3 ;;
+ * ) opsys=bsd4-2 ;;
+ esac
+
+ case "$ac_cv_build" in *-sunos4*shr* ) opsys="${opsys}-shr" ;;
esac
+
+ test "$opsys $CC" = "sol2 /usr/ucb/cc" &&
CC=""
+ ;;
+
+ m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
+
+ tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
+ tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
+
+ mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
+
+ m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
+
+ ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
+ m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
+
+ titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
+
+ m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
+
+ vax-dec-* )
+ case "$ac_cv_build" in
+ *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
+ *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
+ *-mach* ) opsys=mach-bsd4-3 ;;
+ esac
+ ;;
+
+ ns16k-whitechapel-* ) machine=mg1 ;;
+
+ m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
+
+ i[3-9]86-*-* )
+ machine=intel386
+ case "$ac_cv_build" in
+ *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
+ *-isc2.2* ) opsys=isc2-2 ;;
+ *-isc4.0* ) opsys=isc4-0 ;;
+ *-isc4.* ) opsys=isc4-1
+ GCC_TEST_OPTIONS=-posix
+ NON_GCC_TEST_OPTIONS=-Xp
+ ;;
+ *-isc* ) opsys=isc3-0 ;;
+ *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
+ *-esix* ) opsys=esix ;;
+ *-mach* ) opsys=mach-bsd4-3 ;;
+ *-xenix* ) opsys=xenix ;;
+ *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
+ *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
+ *-bsdi4* ) opsys=bsdos4 ;;
+ *-bsdi3* ) opsys=bsdos3 ;;
+ *-bsdi2.1* ) opsys=bsdos2-1 ;;
+ *-bsdi2* ) opsys=bsdos2 ;;
+ *-sco3.2v5* ) opsys=sco5 ;;
+ *-sysv5* ) opsys=sco7 ;;
+ *-386bsd* ) opsys=386bsd ;;
+ *-freebsd* ) opsys=freebsd ;;
+ *-nextstep* ) opsys=nextstep ;;
+ *-pc-cygwin* ) opsys=cygwin32 ;;
+ *-pc-mingw* ) opsys=mingw32 ;
+ test -z "$with_tty" && with_tty="no";;
+ esac
+ ;;
+
+ m68k-*-linux* ) machine=m68k opsys=linux ;;
+
+esac
+
+test -z "$machine" && machine=`echo $ac_cv_build | sed
's/-.*$//'`
+
+test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz`
+
+if test -r "${srcdir}/src/m/${machine}.h"; then
+ machfile="m/${machine}.h"
+ cat >>confdefs.h <<_ACEOF
+#define config_machfile "$machfile"
+_ACEOF
+
+else
+ echo "XEmacs has no builtin knowledge of \`$machine' machines."
+ echo "Using configure-time autodetection only."
+fi
+
+if test -r "${srcdir}/src/s/${opsys}.h"; then
+ opsysfile="s/${opsys}.h"
+ cat >>confdefs.h <<_ACEOF
+#define config_opsysfile "$opsysfile"
+_ACEOF
+
+else
+ echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
+ echo "Using configure-time autodetection only."
+fi
+
+
+
+if test -z "$enable_pdump"; then
+ case "$opsys" in
+ linux* ) enable_pdump=yes ;; darwin ) enable_pdump=yes ;;
cygwin* ) enable_pdump=yes ;; * ) enable_pdump=no ;;
+ esac
+fi
+
+if test -z "$with_dynamic"; then
+ case "$opsys" in
+ hpux* | sunos4* ) with_dynamic=no ;;
+ *) with_dynamic=yes ;;
+ esac
+fi
+if test "$with_dynamic" = "yes"; then
+ case "$opsys" in
+ hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
+ decosf* ) ld_call_shared="-call_shared" ;;
+ darwin ) cat >>confdefs.h <<\_ACEOF
+#define DLSYM_NEEDS_UNDERSCORE 1
+_ACEOF
+ ;;
+ esac
+else case "$opsys" in
+ sol2 )
+ echo "Static linking is not supported on Solaris 2."
+ echo "Rerun configure without specifying --without-dynamic."
+ exit 1 ;;
+ linux ) ld_call_shared="-Bstatic" ;;
+ decosf* ) ld_call_shared="-non_shared" ;;
+ esac
+fi
+
+case "$opsys" in
+ aix* ) NON_GNU_CC=xlc ;; darwin ) RANLIB="ranlib -c" ;; esac
+
+stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${ac_cv_build} | sed
'y/.-/__/'`
+cat >>confdefs.h <<_ACEOF
+#define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
+_ACEOF
+
+
+
+test "$with_sparcworks" = "yes" && with_workshop=yes #
compatibility alias
+if test "$with_workshop $with_tooltalk" = "yes no"; then
+ (echo "$progname: Usage error:"
+echo " " "--with-workshop requires --with-tooltalk"
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1
+elif test "$with_tooltalk" = "no" ; then with_workshop=no
+elif test "$with_workshop" = "yes"; then with_tooltalk=yes
+fi
+
+if test "$with_workshop" = "yes"; then
+ cat >>confdefs.h <<\_ACEOF
+#define SUNPRO 1
+_ACEOF
+
+fi
+
+if test "$enable_clash_detection" != "no"; then
+ cat >>confdefs.h <<\_ACEOF
+#define CLASH_DETECTION 1
+_ACEOF
+
+fi
+
+test -n "$with_compiler" && CC="$with_compiler"
+if test "$with_gcc" = "no"; then case "$CC" in
"" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
+fi
+
+test "${with_cflags-unset}" != unset &&
CFLAGS="$with_cflags"
+if test "${CFLAGS-unset}" != unset
+ then cflags_specified=yes;
+ else cflags_specified=no;
+fi
+
+if test "${with_cflags_warning-unset}" != unset
+ then cflags_warning_specified=yes;
+ else cflags_warning_specified=no;
+fi
+
+xe_save_CFLAGS="$CFLAGS"
+
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program
name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program
name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a
program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with
args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$ac_ct_CC" && break
+done
+
+ CC=$ac_ct_CC
+fi
+
+fi
+
+
+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable
C compiler found in \$PATH
+See \`config.log' for more details." >&5
+echo "$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+
+# Provide some information about the compiler.
+echo "$as_me:$LINENO:" \
+ "checking for C compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null
>&5\"") >&5
+ (eval $ac_compiler --version </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null
>&5\"") >&5
+ (eval $ac_compiler -v </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null
>&5\"") >&5
+ (eval $ac_compiler -V </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+echo "$as_me:$LINENO: checking for C compiler default output file name"
>&5
+echo $ECHO_N "checking for C compiler default output file name... $ECHO_C"
>&6
+ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
+ (eval $ac_link_default) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # Find the output, starting from the most likely. This scheme is
+# not robust to junk in `.', hence go to wildcards (a.*) only as a last
+# resort.
+
+# Be careful to initialize this variable, since it used to be cached.
+# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
+ac_cv_exeext=
+# b.out is created by i960 compilers.
+for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
+ ;;
+ conftest.$ac_ext )
+ # This is the source file.
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ # FIXME: I believe we export ac_cv_exeext for Libtool,
+ # but it would be cool to find out if it's true. Does anybody
+ # maintain Libtool? --akim.
+ export ac_cv_exeext
+ break;;
+ * )
+ break;;
+ esac
+done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
+See \`config.log' for more details." >&5
+echo "$as_me: error: C compiler cannot create executables
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }
+fi
+
+ac_exeext=$ac_cv_exeext
+echo "$as_me:$LINENO: result: $ac_file" >&5
+echo "${ECHO_T}$ac_file" >&6
+
+# Check the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+echo "$as_me:$LINENO: checking whether the C compiler works" >&5
+echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
+# If not cross compiling, check that we can run a simple program.
+if test "$cross_compiling" != yes; then
+ if { ac_try='./$ac_file'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ fi
+fi
+echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+
+rm -f a.out a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+# Check the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
+echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
+echo "$as_me:$LINENO: result: $cross_compiling" >&5
+echo "${ECHO_T}$cross_compiling" >&6
+
+echo "$as_me:$LINENO: checking for suffix of executables" >&5
+echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ export ac_cv_exeext
+ break;;
+ * ) break;;
+ esac
+done
+else
+ { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot
compile and link
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute suffix of executables: cannot compile and
link
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest$ac_cv_exeext
+echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
+echo "${ECHO_T}$ac_cv_exeext" >&6
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+echo "$as_me:$LINENO: checking for suffix of object files" >&5
+echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
+if test "${ac_cv_objext+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot
compile
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
+echo "${ECHO_T}$ac_cv_objext" >&6
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+echo "$as_me:$LINENO: checking whether we are using the GNU C compiler"
>&5
+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C"
>&6
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_compiler_gnu=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
+GCC=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+CFLAGS="-g"
+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_g+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cc_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C"
>&6
+if test "${ac_cv_prog_cc_stdc+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_prog_cc_stdc=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std1 is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for
an
+ array size at least. It's necessary to write '\x00'==0 to get
something
+ that's true only with -std1. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX -qlanglvl=ansi
+# Ultrix and OSF/1 -std1
+# HP-UX 10.20 and later -Ae
+# HP-UX older versions -Aa -D_HPUX_SOURCE
+# SVR4 -Xc -D__EXTENSIONS__
+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE"
"-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case "x$ac_cv_prog_cc_stdc" in
+ x|xno)
+ echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6 ;;
+ *)
+ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+ CC="$CC $ac_cv_prog_cc_stdc" ;;
+esac
+
+# Some people use a C++ compiler to compile C. Since we use `exit',
+# in C++ we need to declare it. In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+ choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ for ac_declaration in \
+ '' \
+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
+ 'extern "C" void std::exit (int); using std::exit;' \
+ 'extern "C" void exit (int) throw ();' \
+ 'extern "C" void exit (int);' \
+ 'void exit (int);'
+do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+#include <stdlib.h>
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+ echo '#ifdef __cplusplus' >>confdefs.h
+ echo $ac_declaration >>confdefs.h
+ echo '#endif' >>confdefs.h
+fi
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
+echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if test "${ac_cv_prog_CPP+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # Double quotes because CPP needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp"
"/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether non-existent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ # Broken: success on invalid input.
+continue
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+echo "$as_me:$LINENO: result: $CPP" >&5
+echo "${ECHO_T}$CPP" >&6
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether non-existent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ # Broken: success on invalid input.
+continue
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ :
+else
+ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity
check
+See \`config.log' for more details." >&5
+echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+echo "$as_me:$LINENO: checking for egrep" >&5
+echo $ECHO_N "checking for egrep... $ECHO_C" >&6
+if test "${ac_cv_prog_egrep+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if echo a | (grep -E '(a|b)') >/dev/null 2>&1
+ then ac_cv_prog_egrep='grep -E'
+ else ac_cv_prog_egrep='egrep'
+ fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
+echo "${ECHO_T}$ac_cv_prog_egrep" >&6
+ EGREP=$ac_cv_prog_egrep
+
+
+
+echo "$as_me:$LINENO: checking for AIX" >&5
+echo $ECHO_N "checking for AIX... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef _AIX
+ yes
+#endif
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "yes" >/dev/null 2>&1; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+cat >>confdefs.h <<\_ACEOF
+#define _ALL_SOURCE 1
+_ACEOF
+
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+rm -f conftest*
+
+
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program
name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program
name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a
program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with
args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$ac_ct_CC" && break
+done
+
+ CC=$ac_ct_CC
+fi
+
+fi
+
+
+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable
C compiler found in \$PATH
+See \`config.log' for more details." >&5
+echo "$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+
+# Provide some information about the compiler.
+echo "$as_me:$LINENO:" \
+ "checking for C compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null
>&5\"") >&5
+ (eval $ac_compiler --version </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null
>&5\"") >&5
+ (eval $ac_compiler -v </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null
>&5\"") >&5
+ (eval $ac_compiler -V </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+echo "$as_me:$LINENO: checking whether we are using the GNU C compiler"
>&5
+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C"
>&6
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_compiler_gnu=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
+GCC=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+CFLAGS="-g"
+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_g+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cc_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C"
>&6
+if test "${ac_cv_prog_cc_stdc+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_prog_cc_stdc=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std1 is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for
an
+ array size at least. It's necessary to write '\x00'==0 to get
something
+ that's true only with -std1. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX -qlanglvl=ansi
+# Ultrix and OSF/1 -std1
+# HP-UX 10.20 and later -Ae
+# HP-UX older versions -Aa -D_HPUX_SOURCE
+# SVR4 -Xc -D__EXTENSIONS__
+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE"
"-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case "x$ac_cv_prog_cc_stdc" in
+ x|xno)
+ echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6 ;;
+ *)
+ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+ CC="$CC $ac_cv_prog_cc_stdc" ;;
+esac
+
+# Some people use a C++ compiler to compile C. Since we use `exit',
+# in C++ we need to declare it. In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+ choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ for ac_declaration in \
+ '' \
+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
+ 'extern "C" void std::exit (int); using std::exit;' \
+ 'extern "C" void exit (int) throw ();' \
+ 'extern "C" void exit (int);' \
+ 'void exit (int);'
+do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+#include <stdlib.h>
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+ echo '#ifdef __cplusplus' >>confdefs.h
+ echo $ac_declaration >>confdefs.h
+ echo '#endif' >>confdefs.h
+fi
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+if test "$with_gcc" = "no" -a "$GCC" =
"yes"; then
+ CC=${NON_GNU_CC-cc}
+ ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program
name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program
name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a
program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with
args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$ac_ct_CC" && break
+done
+
+ CC=$ac_ct_CC
+fi
+
+fi
+
+
+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable
C compiler found in \$PATH
+See \`config.log' for more details." >&5
+echo "$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+
+# Provide some information about the compiler.
+echo "$as_me:$LINENO:" \
+ "checking for C compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null
>&5\"") >&5
+ (eval $ac_compiler --version </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null
>&5\"") >&5
+ (eval $ac_compiler -v </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null
>&5\"") >&5
+ (eval $ac_compiler -V </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+echo "$as_me:$LINENO: checking whether we are using the GNU C compiler"
>&5
+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C"
>&6
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_compiler_gnu=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
+GCC=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+CFLAGS="-g"
+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_g+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cc_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C"
>&6
+if test "${ac_cv_prog_cc_stdc+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_prog_cc_stdc=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std1 is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for
an
+ array size at least. It's necessary to write '\x00'==0 to get
something
+ that's true only with -std1. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX -qlanglvl=ansi
+# Ultrix and OSF/1 -std1
+# HP-UX 10.20 and later -Ae
+# HP-UX older versions -Aa -D_HPUX_SOURCE
+# SVR4 -Xc -D__EXTENSIONS__
+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE"
"-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case "x$ac_cv_prog_cc_stdc" in
+ x|xno)
+ echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6 ;;
+ *)
+ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+ CC="$CC $ac_cv_prog_cc_stdc" ;;
+esac
+
+# Some people use a C++ compiler to compile C. Since we use `exit',
+# in C++ we need to declare it. In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+ choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ for ac_declaration in \
+ '' \
+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
+ 'extern "C" void std::exit (int); using std::exit;' \
+ 'extern "C" void exit (int) throw ();' \
+ 'extern "C" void exit (int);' \
+ 'void exit (int);'
+do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+#include <stdlib.h>
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+ echo '#ifdef __cplusplus' >>confdefs.h
+ echo $ac_declaration >>confdefs.h
+ echo '#endif' >>confdefs.h
+fi
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+elif test "$with_gcc" = "yes" -a "$GCC" !=
"yes" ; then
+ CC=gcc
+ ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program
name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program
name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a
program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with
args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$ac_ct_CC" && break
+done
+
+ CC=$ac_ct_CC
+fi
+
+fi
+
+
+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable
C compiler found in \$PATH
+See \`config.log' for more details." >&5
+echo "$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+
+# Provide some information about the compiler.
+echo "$as_me:$LINENO:" \
+ "checking for C compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null
>&5\"") >&5
+ (eval $ac_compiler --version </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null
>&5\"") >&5
+ (eval $ac_compiler -v </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null
>&5\"") >&5
+ (eval $ac_compiler -V </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+echo "$as_me:$LINENO: checking whether we are using the GNU C compiler"
>&5
+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C"
>&6
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_compiler_gnu=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
+GCC=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+CFLAGS="-g"
+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_g+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cc_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C"
>&6
+if test "${ac_cv_prog_cc_stdc+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_prog_cc_stdc=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std1 is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for
an
+ array size at least. It's necessary to write '\x00'==0 to get
something
+ that's true only with -std1. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX -qlanglvl=ansi
+# Ultrix and OSF/1 -std1
+# HP-UX 10.20 and later -Ae
+# HP-UX older versions -Aa -D_HPUX_SOURCE
+# SVR4 -Xc -D__EXTENSIONS__
+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE"
"-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case "x$ac_cv_prog_cc_stdc" in
+ x|xno)
+ echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6 ;;
+ *)
+ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+ CC="$CC $ac_cv_prog_cc_stdc" ;;
+esac
+
+# Some people use a C++ compiler to compile C. Since we use `exit',
+# in C++ we need to declare it. In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+ choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ for ac_declaration in \
+ '' \
+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
+ 'extern "C" void std::exit (int); using std::exit;' \
+ 'extern "C" void exit (int) throw ();' \
+ 'extern "C" void exit (int);' \
+ 'void exit (int);'
+do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+#include <stdlib.h>
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+ echo '#ifdef __cplusplus' >>confdefs.h
+ echo $ac_declaration >>confdefs.h
+ echo '#endif' >>confdefs.h
+fi
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+fi
+CFLAGS="$xe_save_CFLAGS"
+
+if test "$GCC" = "yes"; then
+if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+int main () {
+#if __GNUC__ >= 3
+return 11;
+#else
+return 0;
+#endif
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+case "$?" in
+ 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;;
+esac
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
+
+
+
+test -n "$with_xemacs_compiler" &&
XEMACS_CC="$with_xemacs_compiler"
+: ${XEMACS_CC:="$CC"}
+
+
+test -n "$CPP" -a -d "$CPP" && CPP=
+
+test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z
"$CPP" && CPP="$NON_GNU_CPP"
+
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
+echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if test "${ac_cv_prog_CPP+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # Double quotes because CPP needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp"
"/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether non-existent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ # Broken: success on invalid input.
+continue
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+echo "$as_me:$LINENO: result: $CPP" >&5
+echo "${ECHO_T}$CPP" >&6
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether non-existent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ # Broken: success on invalid input.
+continue
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ :
+else
+ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity
check
+See \`config.log' for more details." >&5
+echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+echo "$as_me:$LINENO: checking for GNU libc" >&5
+echo $ECHO_N "checking for GNU libc... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <features.h>
+int
+main ()
+{
+
+#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
+#error Not a GNU libc system :-(
+******* ======= ******** &&&&&&&&
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ have_glibc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+have_glibc=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $have_glibc" >&5
+echo "${ECHO_T}$have_glibc" >&6
+test "$have_glibc" = "yes" && cat >>confdefs.h
<<\_ACEOF
+#define _GNU_SOURCE 1
+_ACEOF
+
+
+case "$opsys" in
+ sol2)
+ cat >>confdefs.h <<\_ACEOF
+#define __EXTENSIONS__ 1
+_ACEOF
+
+ if test "$os_release" -ge 505; then
+ cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE 500
+_ACEOF
+
+ cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE_EXTENDED 1
+_ACEOF
+
+ fi ;;
+ linux)
+ cat >>confdefs.h <<\_ACEOF
+#define _POSIX_C_SOURCE 199506L
+_ACEOF
+
+ cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE 500
+_ACEOF
+
+ cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE_EXTENDED 1
+_ACEOF
+
+ ;;
+ freebsd4*)
+ cat >>confdefs.h <<\_ACEOF
+#define _POSIX_C_SOURCE 199506L
+_ACEOF
+
+ cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE 500
+_ACEOF
+
+ ;;
+esac
+
+if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+int main () {
+#if defined __SUNPRO_C
+return 11;
+#elif defined __DECC
+return 12;
+#elif defined __USLC__ && defined __SCO_VERSION__
+return 13;
+#elif defined __INTEL_COMPILER
+return 14;
+#else
+return 0;
+#endif
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+case "$?" in
+ 11) echo "You appear to be using the SunPro C compiler." ; __SUNPRO_C=yes
;;
+ 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
+ 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
+ 14) echo "You appear to be using the Intel C++ compiler."; __ICC=yes
+ GCC=no ;;
+esac
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+
+
+echo "Extracting information from the machine- and system-dependent
headers..."
+
+tempcname="conftest.c"
+
+
+
+cat > $tempcname < confdefs.h
+cat >> $tempcname <<EOF
+#define NOT_C_CODE
+#define C_SWITCH_SITE
+#define C_SWITCH_X_SITE
+#define LD_SWITCH_SITE
+#define LD_SWITCH_X_SITE
+#define LD_SWITCH_X_SITE_AUX
+#define OS_RELEASE $os_release
+
+#ifdef config_opsysfile
+#include "$srcdir/src/$opsysfile"
+#endif
+
+#ifdef config_machfile
+#include "$srcdir/src/$machfile"
+#endif
+
+#ifndef LIBS_MACHINE
+#define LIBS_MACHINE
+#endif
+configure___ libs_machine=LIBS_MACHINE
+
+#ifndef LIBS_SYSTEM
+#define LIBS_SYSTEM
+#endif
+configure___ libs_system=LIBS_SYSTEM
+
+#ifndef LIBS_TERMCAP
+#define LIBS_TERMCAP
+#endif
+configure___ libs_termcap=LIBS_TERMCAP
+
+#ifndef LIB_STANDARD
+#define LIB_STANDARD
+#endif
+configure___ libs_standard=LIB_STANDARD
+
+
+#ifndef OBJECTS_MACHINE
+#define OBJECTS_MACHINE
+#endif
+configure___ objects_machine=OBJECTS_MACHINE
+
+#ifndef OBJECTS_SYSTEM
+#define OBJECTS_SYSTEM
+#endif
+configure___ objects_system=OBJECTS_SYSTEM
+
+
+#ifndef C_SWITCH_MACHINE
+#define C_SWITCH_MACHINE
+#endif
+configure___ c_switch_machine=C_SWITCH_MACHINE
+
+#ifndef C_SWITCH_SYSTEM
+#define C_SWITCH_SYSTEM
+#endif
+configure___ c_switch_system=C_SWITCH_SYSTEM
+
+
+#ifndef LD_SWITCH_MACHINE
+#define LD_SWITCH_MACHINE
+#endif
+configure___ ld_switch_machine=LD_SWITCH_MACHINE
+
+#ifndef LD_SWITCH_SYSTEM
+#define LD_SWITCH_SYSTEM
+#endif
+configure___ ld_switch_system=LD_SWITCH_SYSTEM
+
+
+#ifndef UNEXEC
+#define UNEXEC
+#endif
+configure___ unexec=UNEXEC
+
+
+#ifndef SYSTEM_TYPE
+#define SYSTEM_TYPE
+#endif
+configure___ system_type=SYSTEM_TYPE
+
+
+#ifndef LD_SWITCH_SHARED
+#define LD_SWITCH_SHARED "-c"
+#endif
+configure___ ld_switch_shared=LD_SWITCH_SHARED
+
+
+#define ORDINARY_LD "\$(CC) \$(CFLAGS)"
+configure___ ordinary_ld=ORDINARY_LD
+
+#ifdef ORDINARY_LINK
+#define LD ORDINARY_LD
+#else /* no ORDINARY LINK */
+#ifdef COFF_ENCAPSULATE
+#define LD "\$(CC) -nostdlib"
+#else /* not COFF_ENCAPSULATE */
+#ifdef LINKER
+#define LD LINKER
+#else /* ! defined (LINKER) */
+#define LD "ld"
+#endif /* ! defined (LINKER) */
+#endif /* ! defined (COFF_ENCAPSULATE) */
+#endif /* not ORDINARY_LINK */
+configure___ ld=LD
+
+#ifndef LIB_GCC
+#define LIB_GCC
+#endif
+configure___ lib_gcc=LIB_GCC
+
+#ifndef LD_TEXT_START_ADDR
+#define LD_TEXT_START_ADDR
+#endif
+configure___ ld_text_start_addr=LD_TEXT_START_ADDR
+
+
+#if ! defined (ORDINARY_LINK) && !defined (START_FILES)
+#ifdef NO_REMAP
+#ifdef COFF_ENCAPSULATE
+#define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
+#else /* ! defined (COFF_ENCAPSULATE) */
+#define START_FILES "pre-crt0.o /lib/crt0.o"
+#endif /* ! defined (COFF_ENCAPSULATE) */
+#else /* ! defined (NO_REMAP) */
+#define START_FILES "ecrt0.o"
+#endif /* ! defined (NO_REMAP) */
+#endif /* no ORDINARY_LINK */
+#ifndef START_FILES
+#define START_FILES
+#endif
+configure___ start_files=START_FILES
+
+#ifdef ORDINARY_LINK
+configure___ ordinary_link=yes
+#else
+configure___ ordinary_link=no
+#endif
+
+#ifdef SYSTEM_MALLOC
+configure___ system_malloc=yes
+#else
+configure___ system_malloc=no
+#endif
+
+#ifdef TERMINFO
+configure___ have_terminfo=yes
+#else
+configure___ have_terminfo=no
+#endif
+
+#ifdef MAIL_USE_FLOCK
+configure___ mail_use_flock=yes
+#else
+configure___ mail_use_flock=no
+#endif
+
+#ifdef MAIL_USE_LOCKF
+configure___ mail_use_lockf=yes
#else
configure___ mail_use_lockf=no
#endif
+
+#ifdef MAIL_USE_LOCKING
+configure___ mail_use_locking=yes
+#else
+configure___ mail_use_locking=no
+#endif
+
+#ifdef HAVE_WIN32_PROCESSES
+configure___ win32_processes=yes
+#else
+configure___ win32_processes=no
+#endif
+
+EOF
+
+CPP=`eval "echo $CPP $CPPFLAGS"`
+eval `$CPP -Isrc $tempcname \
+ | sed -n -e "s/[ TAB]*=[ TAB\"]*/='/" -e "s/[
TAB\"]*\$/'/" -e "s/^configure___//p"`
+
+rm $tempcname
+
+test -z "$system_type" && \
+ cat >>confdefs.h <<_ACEOF
+#define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz`"
+_ACEOF
+
+
+test -z "$unexec" && enable_pdump=yes
+
+if test "$enable_pdump" = "yes"; then
+ ordinary_link="yes"
+ ld="${ordinary_ld}"
+ start_files=
+ libs_standard=
+ unexec=
+ lib_gcc=
+fi
+
+ 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 ""
+
+case "$opsys" in mingw* | cygwin*)
+ cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
+ cygwin_include=`eval "dirname $cygwin_include"` ;
+ cygwin_include="-I$cygwin_include/../include" ;
+ extra_includes="$cygwin_include/mingw $cygwin_include" ;
+ case "$opsys" in mingw*)
+ c_switch_system="$c_switch_system $extra_includes" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"$extra_includes\" to \$c_switch_system"; fi ;;
+ esac
+ ;;
+esac
+
+test "$ordinary_link" = "no" -a -z "$libs_standard"
&& libs_standard="-lc"
+
+
+test "$__DECC" = "yes" &&
c_switch_site="$c_switch_site -std1" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"-std1\" to \$c_switch_site"; fi
+
+if test "$__USLC__" = yes; then
+ echo "$as_me:$LINENO: checking for whether the -Kalloca compiler flag is
needed" >&5
+echo $ECHO_N "checking for whether the -Kalloca compiler flag is needed...
$ECHO_C" >&6
+ need_kalloca=no
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+void *x = alloca(4);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+ xe_save_c_switch_system="$c_switch_system"
+ c_switch_system="$c_switch_system -Kalloca"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+void *x = alloca(4);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ need_kalloca=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ c_switch_system="$xe_save_c_switch_system"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ echo "$as_me:$LINENO: result: $need_kalloca" >&5
+echo "${ECHO_T}$need_kalloca" >&6
+ test "$need_kalloca" = "yes" &&
c_switch_system="$c_switch_system -Kalloca" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"-Kalloca\" to \$c_switch_system"; fi
+fi
+
+if test "$CC" != "$XEMACS_CC"; then
+ if test "$XEMACS_CC" = "g++" -a "$GCC" !=
"yes"; then
+ { echo "$as_me:$LINENO: WARNING: CC and g++ are mismatched; XE_CFLAGS may be
wrong" >&5
+echo "$as_me: WARNING: CC and g++ are mismatched; XE_CFLAGS may be wrong"
>&2;}
+ xemacs_cc_cc_mismatch=yes
+ elif test -n "$GCC" -a "$XEMACS_CC" != "g++"; then
+ { echo "$as_me:$LINENO: WARNING: gcc and XEMACS_CC are mismatched; XE_CFLAGS
may be wrong" >&5
+echo "$as_me: WARNING: gcc and XEMACS_CC are mismatched; XE_CFLAGS may be
wrong" >&2;}
+ xemacs_cc_cc_mismatch=yes
+ else
+ xemacs_cc_cc_mismatch=no
+ fi
+fi
+
+
+echo "$as_me:$LINENO: checking for preferred CFLAGS" >&5
+echo $ECHO_N "checking for preferred CFLAGS... $ECHO_C" >&6
+
+if test "$cflags_specified" = "no"; then
+ if test "$GCC" = "yes"; then
+ CFLAGS="-g -O3"
+ elif test "$__SUNPRO_C" = "yes"; then
+ case "$opsys" in
+ sol2 ) CFLAGS="-xO4" ;;
+ sunos4* ) CFLAGS="-xO2" ;;
+ esac
+ elif test "$__DECC" = "yes"; then
+ CFLAGS="-O3"
+ elif test "$CC" = "xlc"; then
+ CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
+ elif test "$__ICC" = "yes"; then
+ CFLAGS="-g -O3 -Ob2"
+ else
+ CFLAGS="-O" ; fi
+fi
+echo "$as_me:$LINENO: result: ${CFLAGS}" >&5
+echo "${ECHO_T}${CFLAGS}" >&6
+
+
+echo "$as_me:$LINENO: checking for preferred warning flags for XEMACS_CC"
>&5
+echo $ECHO_N "checking for preferred warning flags for XEMACS_CC... $ECHO_C"
>&6
+
+xe_cflags_warning=""
+
+if test "$cflags_warning_specified" = "no"; then
+ if test "$__SUNPRO_C" = "yes"; then
+ case "$opsys" in
+ sol2 ) with_cflags_warning="-v" ;;
+ esac
+ elif test "$CC" = "xlc"; then
+ with_cflags_warning="-qinfo"
+ elif test "$GCC" = "yes"; then
+ with_cflags_warning="-Wall -Wno-switch -Wmissing-prototypes"
+
+ with_cflags_warning="$with_cflags_warning -Wsign-compare
-Wno-char-subscripts"
+ with_cflags_warning="$with_cflags_warning -Wundef -Wstrict-prototypes"
+ test "$__GCC3" = "yes" &&
with_cflags_warning="$with_cflags_warning -Wpacked"
+ test "$have_glibc" != "yes" && \
+ with_cflags_warning="$with_cflags_warning -Wpointer-arith"
+ if test "$with_xemacs_compiler" =
"g++"; then
+ xe_cflags_warning="$with_cflags_warning -Weffc++"
+ elif test "$__GCC3" = "yes"; then
+ xe_cflags_warning="$with_cflags_warning -Wunused-parameter"
+ fi
+ with_cflags_warning="$with_cflags_warning -Wshadow
-Wmissing-declarations"
+ elif test "$__ICC" = "yes"; then
+ with_cflags_warning="-Wall -w1 -we147"
+ fi
+fi
+test -z "$xe_cflags_warning" &&
xe_cflags_warning="$with_cflags_warning"
+echo "$as_me:$LINENO: result: ${xe_cflags_warning}" >&5
+echo "${ECHO_T}${xe_cflags_warning}" >&6
+
+echo "$as_me:$LINENO: checking for preferred warning flags for CC"
>&5
+echo $ECHO_N "checking for preferred warning flags for CC... $ECHO_C"
>&6
+echo "$as_me:$LINENO: result: ${with_cflags_warning}" >&5
+echo "${ECHO_T}${with_cflags_warning}" >&6
+
+XE_CFLAGS="$xe_cflags_warning $CFLAGS"
+CFLAGS="$with_cflags_warning $CFLAGS"
+
+if test "$GCC" = "yes"; then
+echo "$as_me:$LINENO: checking for buggy gcc versions" >&5
+echo $ECHO_N "checking for buggy gcc versions... $ECHO_C" >&6
+GCC_VERSION=`$CC --version`
+case `uname -s`:`uname -m`:$GCC_VERSION in
+ *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
+ case "$CFLAGS" in
+ *-O2*|*-O3*)
+ case "$CFLAGS" in
+ *-fno-schedule-insns*) ;;
+ *)
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ { echo "$as_me:$LINENO: WARNING: Don't use -O2 with
gcc 2.8.1 and egcs 1.0 under SPARC architectures" >&5
+echo "$as_me: WARNING: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC
architectures" >&2;}
+ { echo "$as_me:$LINENO: WARNING: without also using
-fno-schedule-insns." >&5
+echo "$as_me: WARNING: without also using -fno-schedule-insns." >&2;}
+ { { echo "$as_me:$LINENO: error: Aborting due to known
problem" >&5
+echo "$as_me: error: Aborting due to known problem" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ Linux:alpha:egcs-2.91.*)
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ { echo "$as_me:$LINENO: WARNING: There have been reports of egcs-1.1 not
compiling XEmacs correctly on" >&5
+echo "$as_me: WARNING: There have been reports of egcs-1.1 not compiling XEmacs
correctly on" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Alpha Linux. There have also been
reports that egcs-1.0.3a is O.K." >&5
+echo "$as_me: WARNING: Alpha Linux. There have also been reports that egcs-1.0.3a
is O.K." >&2;}
+ { { echo "$as_me:$LINENO: error: Aborting due to known problem"
>&5
+echo "$as_me: error: Aborting due to known problem" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ *:i*86*:2.7.2*)
+ case "$CFLAGS" in
+ *-O2*|*-O3*)
+ case "$GCC_VERSION" in
+ 2.7.2)
+ case "$CFLAGS" in
+ *-fno-strength-reduce*) ;;
+ *)
+ echo "$as_me:$LINENO: result: yes"
>&5
+echo "${ECHO_T}yes" >&6
+ { echo "$as_me:$LINENO: WARNING: Don't use -O2
with gcc 2.7.2 under Intel/XXX without also using" >&5
+echo "$as_me: WARNING: Don't use -O2 with gcc 2.7.2 under Intel/XXX without
also using" >&2;}
+ { echo "$as_me:$LINENO: WARNING:
-fno-strength-reduce." >&5
+echo "$as_me: WARNING: -fno-strength-reduce." >&2;}
+ { { echo "$as_me:$LINENO: error: Aborting due to known
problem" >&5
+echo "$as_me: error: Aborting due to known problem" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+ ;;
+ esac
+ case "$CFLAGS" in
+ *-fno-caller-saves*) ;;
+ *)
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ { echo "$as_me:$LINENO: WARNING: Don't use -O2 with gcc 2.7.2 under
Intel/XXX without also using" >&5
+echo "$as_me: WARNING: Don't use -O2 with gcc 2.7.2 under Intel/XXX without
also using" >&2;}
+ { echo "$as_me:$LINENO: WARNING: -fno-caller-saves." >&5
+echo "$as_me: WARNING: -fno-caller-saves." >&2;}
+ { { echo "$as_me:$LINENO: error: Aborting due to known problem"
>&5
+echo "$as_me: error: Aborting due to known problem" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+esac
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+if test "$enable_pdump" != "yes"; then
+ echo "$as_me:$LINENO: checking for \"-z nocombreloc\" linker
flag" >&5
+echo $ECHO_N "checking for \"-z nocombreloc\" linker flag...
$ECHO_C" >&6
+ case "`ld --help 2>&1`" in
+ *-z\ nocombreloc* ) echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ ld_switch_site="-z nocombreloc $ld_switch_site" && if test
"$extra_verbose" = "yes"; then echo " Prepending \"-z
nocombreloc\" to \$ld_switch_site"; fi ;;
+ *) echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6 ;;
+ esac
+fi
+
+
+if test "$GCC" = "yes"; then
+ set x $ld_switch_system; shift; ld_switch_system=""
+ while test -n "$1"; do
+ case $1 in
+ -L | -l | -u ) ld_switch_system="$ld_switch_system $1
$2"; shift ;;
+ -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1"
;;
+ -Xlinker* ) ;;
+ * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
+ esac
+ shift
+ done
+fi
+
+if test "$GCC" = "yes"; then
+ set x $ld_switch_machine; shift; ld_switch_machine=""
+ while test -n "$1"; do
+ case $1 in
+ -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1
$2"; shift ;;
+ -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine
$1" ;;
+ -Xlinker* ) ;;
+ * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
+ esac
+ shift
+ done
+fi
+
+if test "$GCC" = "yes"; then
+ set x $ld_switch_site; shift; ld_switch_site=""
+ while test -n "$1"; do
+ case $1 in
+ -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2";
shift ;;
+ -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
+ -Xlinker* ) ;;
+ * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
+ esac
+ shift
+ done
+fi
+
+if test "$GCC" = "yes"; then
+ set x $LDFLAGS; shift; LDFLAGS=""
+ while test -n "$1"; do
+ case $1 in
+ -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
+ -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
+ -Xlinker* ) ;;
+ * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
+ esac
+ shift
+ done
+fi
+
+if test "$GCC" = "yes"; then
+ set x $ld_call_shared; shift; ld_call_shared=""
+ while test -n "$1"; do
+ case $1 in
+ -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2";
shift ;;
+ -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
+ -Xlinker* ) ;;
+ * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
+ esac
+ shift
+ done
+fi
+
+test -n "$objects_machine" && extra_objs="$extra_objs
$objects_machine" && if test "$extra_verbose" = "yes";
then
+ echo " xemacs will be linked with \"$objects_machine\""
+ fi
+test -n "$objects_system" && extra_objs="$extra_objs
$objects_system" && if test "$extra_verbose" = "yes";
then
+ echo " xemacs will be linked with \"$objects_system\""
+ fi
+test -n "$unexec" && test ! "$enable_pdump" =
"yes" && extra_objs="$extra_objs $unexec" && if test
"$extra_verbose" = "yes"; then
+ echo " xemacs will be linked with \"$unexec\""
+ fi
+test "$enable_pdump" = "yes" &&
extra_objs="$extra_objs dumper.o" && if test "$extra_verbose"
= "yes"; then
+ echo " xemacs will be linked with \"dumper.o\""
+ fi
+
+echo "$as_me:$LINENO: checking for dynodump" >&5
+echo $ECHO_N "checking for dynodump... $ECHO_C" >&6
+if test "$unexec" != "unexsol2.o"; then
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+else
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ cat >>confdefs.h <<\_ACEOF
+#define DYNODUMP 1
+_ACEOF
+
+ MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"dynodump\" to \$MAKE_SUBDIR"; fi
+ SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
+ case "$machine" in
+ sparc ) dynodump_arch=sparc ;;
+ *86* ) dynodump_arch=i386 ;;
+ powerpc ) dynodump_arch=ppc ;;
+ esac
+ 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
+fi
+
+
+
+ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+if test "$unexec" = "unexaix.o"; then
+ if test "$with_dynamic" = "no"; then
+ start_flags="-Wl,-bnso,-bnodelcsect"
+ test "$GCC" = "yes" && start_flags="-B/bin/
${start_flags}"
+ for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
+ if test -r "$f"; then start_flags="${start_flags},-bI:${f}";
fi
+ done
+ for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
+ if test -r "$f"; then start_flags="${start_flags},-bI:${f}";
break; fi
+ done
+ echo "$as_me:$LINENO: checking for terminateAndUnload in -lc" >&5
+echo $ECHO_N "checking for terminateAndUnload in -lc... $ECHO_C" >&6
+if test "${ac_cv_lib_c_terminateAndUnload+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lc $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char terminateAndUnload ();
+int
+main ()
+{
+terminateAndUnload ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_c_terminateAndUnload=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_c_terminateAndUnload=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_c_terminateAndUnload" >&5
+echo "${ECHO_T}$ac_cv_lib_c_terminateAndUnload" >&6
+if test $ac_cv_lib_c_terminateAndUnload = yes; then
+ libs_system="$libs_system -lC" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"-lC\" to \$libs_system"; fi
+fi
+
+ fi
+elif test -n "$ld_text_start_addr"; then
+ start_flags="-T $ld_text_start_addr -e __start"
+fi
+
+
+
+
+if test "$ordinary_link" = "no" -a "$GCC" =
"yes"; then
+ test -z "$linker" && linker='$(CC) -nostdlib'
+ test -z "$lib_gcc" && lib_gcc='`$(CC)
-print-libgcc-file-name`'
+fi
+test "$GCC" != "yes" && lib_gcc=
+
+
+
+
+compiler_version=""
+gcc_compiler_specs=""
+libc_version=""
+
+echo "$as_me:$LINENO: checking for compiler version information" >&5
+echo $ECHO_N "checking for compiler version information... $ECHO_C"
>&6
+
+if test "$GCC" = "yes"; then
+ compiler_version=`$XEMACS_CC --version | head -1`
+ gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' |
head -1`
+else case "$XEMACS_CC" in
+ ic*)
+ compiler_version=`icc -V 2>&1 | head -1`
+ ;;
+ *) case "$ac_cv_build" in
+ *-*-aix* )
+ realcc=`which $XEMACS_CC`
+ if test -L $realcc ; then
+ ccdir=`dirname $realcc`
+ ccprog=`/bin/ls -l $realcc | sed 's/.* \([^ ]\)/\1/'`
+ case $ccprog in
+ */*) realcc=$ccprog;;
+ *) realcc=$ccdir/$ccprog;;
+ esac
+ fi
+ lpp=`lslpp -wqc $realcc | cut -f2 -d:`
+ if test ! -z "$lpp" ; then
+ lppstr=`lslpp -Lqc $lpp`
+ lpplev=`echo "$lppstr" | cut -f3 -d:`
+ lppdesc=`echo "$lppstr" | cut -f8 -d:`
+ fi
+ if test ! -z "$lpplev" ; then
+ compiler_version="$lpp $lpplev - $lppdesc"
+ fi
+ ;;
+
+ *-*-solaris*)
+ compiler_version=`$XEMACS_CC -V 2>&1 | head -1`
+ ;;
+
+ alpha*-dec-osf*)
+ compiler_version=`$XEMACS_CC -V | tr '\n' ' '`
+ ;;
+
+ mips-sgi-irix*)
+ compiler_version=`$XEMACS_CC -version`
+ ;;
+ esac
+ esac
+fi
+
+if test -z "$compiler_version"; then
+ compiler_version="detection failed (please report this)"
+fi
+
+echo "$as_me:$LINENO: checking for standard C library version information"
>&5
+echo $ECHO_N "checking for standard C library version information... $ECHO_C"
>&6
+
+case "$ac_cv_build" in
+ *-*-linux*)
+ if test -f /etc/redhat-release ; then
+ libc_version=`rpm -q glibc`
+ elif test -f /etc/debian_version ; then
+ libc_version=`dpkg-query --showformat='${version}' --show libc6`
+ libc_version="GNU libc $libc_version (Debian)"
+ fi
+ if test -z "$libc_version"; then
+ libc_version=`ls /lib/libc-*.so | sed -e 's,/lib/libc-\(.*\)\.so,\1,'`
+ fi
+ ;;
-#ifdef MAIL_USE_LOCKING
-configure___ mail_use_locking=yes
-#else
-configure___ mail_use_locking=no
-#endif
+ *-*-aix*)
+ libc_version="bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
+ ;;
-#ifdef HAVE_WIN32_PROCESSES
-configure___ win32_processes=yes
-#else
-configure___ win32_processes=no
-#endif
+ *-*-solaris*)
+ libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
+ libc_version="SUNWcsl $libc"
-EOF
+ ;;
-CPP=`eval "echo $CPP $CPPFLAGS"`
-eval `$CPP -Isrc $tempcname \
- | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[
\"]*\$/'/" -e "s/^configure___//p"`
+ mips-sgi-irix*)
+ libc_version="IRIX libc `uname -sRm`"
+ ;;
-rm $tempcname
+ alpha*-dec-osf*)
+ (cd /usr/.smdb.;
+ libc_version=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}'
| tr '\n' ','`
+ )
+ ;;
+esac
-test -z "$system_type" && \
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz`"
-EOF
-cat >> confdefs.h <<EOF
-#define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz`"
-EOF
+if test -z "libc_version"; then
+ libc_version="detection failed (please report this)"
+fi
+
+
+case "$with_site_libraries" in *:* ) with_site_libraries="`echo
'' $with_site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";;
esac
+if test -n "$with_site_libraries"; then
+ for arg in $with_site_libraries; do
+ case "$arg" in
+ -* ) ;;
+ * ) test -d "$arg" || \
+ { echo "Error:" "Invalid site library \`$arg': no such
directory" >&2; exit 1; }
+ arg="-L${arg}" ;;
+ esac
+ ld_switch_site="$ld_switch_site $arg" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"$arg\" to \$ld_switch_site"; fi
+ done
+fi
+
+case "$with_site_includes" in *:* ) with_site_includes="`echo ''
$with_site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
+if test -n "$with_site_includes"; then
+ for arg in $with_site_includes; do
+ case "$arg" in
+ -* ) ;;
+ * ) test -d "$arg" || \
+ { echo "Error:" "Invalid site include \`$arg': no such
directory" >&2; exit 1; }
+ arg="-I${arg}" ;;
+ esac
+ c_switch_site="$c_switch_site $arg" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"$arg\" to \$c_switch_site"; fi
+ done
+fi
+
+case "$with_site_prefixes" in *:* ) with_site_prefixes="`echo ''
$with_site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
+if test -n "$with_site_prefixes"; then
+ for dir in $with_site_prefixes; do
+ lib_dir="${dir}/lib"
+ inc_dir="${dir}/include"
+ if test ! -d "$dir"; then
+ { echo "Error:" "Invalid site prefix \`$dir': no such
directory" >&2; exit 1; }
+ elif test ! -d "$lib_dir"; then
+ { echo "Error:" "Invalid site prefix \`$dir': no such
directory \`$lib_dir'" >&2; exit 1; }
+ else
+ if test -d "$inc_dir"; then
+ 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
+ fi
+ 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
+ fi
+ done
+fi
+
+
+for dir in "/usr/ccs/lib"; do
+ test -d "$dir" && ld_switch_system="$ld_switch_system
-L${dir}" && if test "$extra_verbose" = "yes"; then echo
" Appending \"-L${dir}\" to \$ld_switch_system"; fi
+done
+
+case "$with_site_runtime_libraries" in *:* )
with_site_runtime_libraries="`echo '' $with_site_runtime_libraries | sed -e
's/^ //' -e 's/:/ /g'`";; esac
+if test -n "$with_site_runtime_libraries"; then
+ LD_RUN_PATH="`echo $with_site_runtime_libraries | sed -e 's/
*/:/g'`"
+ export LD_RUN_PATH
+fi
+
+
+
+
+
+if test -n "$add_runtime_path"; then :;
+elif test "$with_dynamic" = "no"; then add_runtime_path=no
+elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
+else case "$opsys" in
+ sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
+ * ) add_runtime_path=no ;;
+ esac
+fi
+
+if test "$add_runtime_path" = "yes"; then
+ echo "$as_me:$LINENO: checking \"for runtime libraries
flag\"" >&5
+echo $ECHO_N "checking \"for runtime libraries flag\"... $ECHO_C"
>&6
+ case "$opsys" in
+ sol2 ) dash_r="-R" ;;
+ decosf* | linux* | irix*) dash_r="-rpath " ;;
+ *)
+ dash_r=""
+ for try_dash_r in "-R" "-R " "-rpath "; do
+ xe_check_libs="${try_dash_r}/no/such/file-or-directory"
+
+if test "$GCC" = "yes"; then
+ set x $xe_check_libs; shift; xe_check_libs=""
+ while test -n "$1"; do
+ case $1 in
+ -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2";
shift ;;
+ -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
+ -Xlinker* ) ;;
+ * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
+ esac
+ shift
+ done
+fi
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ dash_r="$try_dash_r"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ xe_check_libs=""
+ test -n "$dash_r" && break
+ done ;;
+ esac
+ if test -n "$dash_r";
+ then echo "$as_me:$LINENO: result: "\"${dash_r}\"""
>&5
+echo "${ECHO_T}"\"${dash_r}\""" >&6
+ else echo "$as_me:$LINENO: result: NONE" >&5
+echo "${ECHO_T}NONE" >&6
+ fi
+fi
+
+xe_add_unique_runpath_dir='
+ xe_add_p=yes
+ for xe_dir in $runpath_dirs; do test "$xe_dir" =
"$xe_runpath_dir" && xe_add_p=no
+ done
+ if test "$xe_add_p" = "yes"; then
+ test -n "$runpath" && runpath="${runpath}:"
+ runpath="${runpath}${xe_runpath_dir}"
+ runpath_dirs="$runpath_dirs $xe_runpath_dir"
+ fi'
+
+
+if test "$add_runtime_path" = "yes" -a -n "$dash_r";
then
+ ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e
"s/$dash_r[^ ]*//g"`
+ ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e
"s/$dash_r[^ ]*//g"`
+
+ runpath="" runpath_dirs=""
+ if test -n "$LD_RUN_PATH"; then
+ runpath="$LD_RUN_PATH"
+ elif test "$GCC" = "yes"; then
+ ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
+ xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS
'"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ case "$arg" in P,* | -L* | -R* )
+ for dir in `echo '' "$arg" | sed -e 's:^ ::' -e
's/^..//' -e 'y/:/ /'`; do
+ {
+xe_runpath_dir="$dir"
+ test "$xe_runpath_dir" != "/lib" -a \
+ "$xe_runpath_dir" != "/usr/lib" -a \
+ -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
+ eval "$xe_add_unique_runpath_dir"
+}
+ done ;;
+ esac
+ done
+ ld_switch_run="$ld_switch_run_save"
+ rm -f conftest*
+ else
+ for arg in $ld_switch_site $ld_switch_x_site; do
+ case "$arg" in -L*) {
+xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e
's/^-L//'`
+ test "$xe_runpath_dir" != "/lib" -a \
+ "$xe_runpath_dir" != "/usr/lib" -a \
+ -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
+ eval "$xe_add_unique_runpath_dir"
+};; esac
+ done
+ if test "$opsys $need_motif" = "sol2 yes"; then
+ xe_runpath_dir="/opt/SUNWdt/lib";
+ eval "$xe_add_unique_runpath_dir";
+ fi
+ fi
+ if test -n "$runpath"; then
+ ld_switch_run="${dash_r}${runpath}"
+
+if test "$GCC" = "yes"; then
+ set x $ld_switch_run; shift; ld_switch_run=""
+ while test -n "$1"; do
+ case $1 in
+ -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2";
shift ;;
+ -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
+ -Xlinker* ) ;;
+ * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ esac
+ shift
+ done
+fi
+ test "$extra_verbose" = "yes" && echo "Setting
runpath to $runpath"
+ fi
+fi
+
+
+
+GNU_MALLOC=yes
+if test "$with_dlmalloc" != "no"; then
+ doug_lea_malloc=yes
+else
+ doug_lea_malloc=no
+fi
+after_morecore_hook_exists=yes
+echo "$as_me:$LINENO: checking for malloc_set_state" >&5
+echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
+if test "${ac_cv_func_malloc_set_state+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares
malloc_set_state.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define malloc_set_state innocuous_malloc_set_state
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char malloc_set_state (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef malloc_set_state
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char malloc_set_state ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
+choke me
+#else
+char (*f) () = malloc_set_state;
+#endif
+#ifdef __cplusplus
}
+#endif
+int
+main ()
+{
+return f != malloc_set_state;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_malloc_set_state=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_malloc_set_state=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
+echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
+if test $ac_cv_func_malloc_set_state = yes; then
+ :
+else
+ doug_lea_malloc=no
+fi
-test -z "$unexec" && pdump=yes
+echo "$as_me:$LINENO: checking whether __after_morecore_hook exists"
>&5
+echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+extern void (* __after_morecore_hook)();
+int
+main ()
+{
+__after_morecore_hook = 0
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if test "$pdump" = "yes"; then
- ordinary_link="yes"
- ld="${ordinary_ld}"
- start_files=
- libs_standard=
- unexec=
- lib_gcc=
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ after_morecore_hook_exists=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test "$system_malloc" = "yes" ; then
+ GNU_MALLOC=no
+ GNU_MALLOC_reason="
+ - The GNU allocators don't work with this system configuration."
+elif test "$with_system_malloc" = "yes" ; then
+ GNU_MALLOC=no
+ GNU_MALLOC_reason="
+ - User chose not to use GNU allocators."
+elif test "$with_debug_malloc" = "yes" ; then
+ GNU_MALLOC=no
+ GNU_MALLOC_reason="
+ - User chose to use Debugging Malloc."
fi
-test "$extra_verbose" = "yes" && \
- 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 ""
+if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" =
"yes" ; then
+ GNU_MALLOC_reason="
+ - Using Doug Lea's new malloc from the GNU C Library."
+ cat >>confdefs.h <<\_ACEOF
+#define DOUG_LEA_MALLOC 1
+_ACEOF
-case "$opsys" in mingw* | cygwin*)
- cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
- cygwin_include=`eval "dirname $cygwin_include"` ;
- cygwin_include="-I$cygwin_include/../include" ;
- extra_includes="$cygwin_include/mingw $cygwin_include" ;
- case "$opsys" in mingw*)
- c_switch_system="$c_switch_system $extra_includes" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"$extra_includes\" to \$c_switch_system"; fi ;;
- esac
- ;;
-esac
+ if test "$after_morecore_hook_exists" = "no" ; then
+ GNU_MALLOC_reason="
+ - Using Doug Lea's new malloc from the Linux C Library."
+ cat >>confdefs.h <<\_ACEOF
+#define _NO_MALLOC_WARNING_ 1
+_ACEOF
-test "$ordinary_link" = "no" -a -z "$libs_standard"
&& libs_standard="-lc"
+ fi
+fi
-test "$__DECC" = "yes" &&
c_switch_site="$c_switch_site -std1" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"-std1\" to \$c_switch_site"; fi
-if test "$__USLC__" = yes; then
- echo $ac_n "checking for whether the -Kalloca compiler flag is
needed""... $ac_c" 1>&6
-echo "configure:2850: checking for whether the -Kalloca compiler flag is
needed" >&5
- need_kalloca=no
- cat > conftest.$ac_ext <<EOF
-#line 2853 "configure"
-#include "confdefs.h"
-int main() {
-void *x = alloca(4);
-; return 0; }
-EOF
-if { (eval echo configure:2860: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- :
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a
program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_RANLIB+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
- xe_save_c_switch_system="$c_switch_system"
- c_switch_system="$c_switch_system -Kalloca"
- cat > conftest.$ac_ext <<EOF
-#line 2871 "configure"
-#include "confdefs.h"
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+ echo "$as_me:$LINENO: result: $RANLIB" >&5
+echo "${ECHO_T}$RANLIB" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
-int main() {
-void *x = alloca(4);
-; return 0; }
-EOF
-if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- need_kalloca=yes
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+ ac_ct_RANLIB=$RANLIB
+ # Extract the first word of "ranlib", so it can be a program name with
args.
+set dummy ranlib; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_RANLIB"; then
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ test -z "$ac_cv_prog_ac_ct_RANLIB" &&
ac_cv_prog_ac_ct_RANLIB=":"
fi
-rm -f conftest*
- c_switch_system="$xe_save_c_switch_system"
fi
-rm -f conftest*
- echo "$ac_t""$need_kalloca" 1>&6
- test "$need_kalloca" = "yes" &&
c_switch_system="$c_switch_system -Kalloca" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"-Kalloca\" to \$c_switch_system"; fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
+echo "${ECHO_T}$ac_ct_RANLIB" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
-if test "$CC" != "$XEMACS_CC"; then
- if test "$XEMACS_CC" = "g++" -a "$GCC" !=
"yes"; then
- echo "configure: warning: CC and g++ are mismatched; XE_CFLAGS may be
wrong" 1>&2
- xemacs_cc_cc_mismatch=yes
- elif test -n "$GCC" -a "$XEMACS_CC" != "g++"; then
- echo "configure: warning: gcc and XEMACS_CC are mismatched; XE_CFLAGS may be
wrong" 1>&2
- xemacs_cc_cc_mismatch=yes
- else
- xemacs_cc_cc_mismatch=no
- fi
+ RANLIB=$ac_ct_RANLIB
+else
+ RANLIB="$ac_cv_prog_RANLIB"
fi
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+ ./ | .// | /cC/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1;
then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1;
then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+done
-echo $ac_n "checking for preferred CFLAGS""... $ac_c" 1>&6
-echo "configure:2907: checking for preferred CFLAGS" >&5
-if test "$cflags_specified" = "no"; then
- if test "$GCC" = "yes"; then
- CFLAGS="-g -O3"
- elif test "$__SUNPRO_C" = "yes"; then
- case "$opsys" in
- sol2 ) CFLAGS="-xO4" ;;
- sunos4* ) CFLAGS="-xO2" ;;
- esac
- elif test "$__DECC" = "yes"; then
- CFLAGS="-O3"
- elif test "$CC" = "xlc"; then
- CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
- elif test "$__ICC" = "yes"; then
- CFLAGS="-g -O3 -Ob2"
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
else
- CFLAGS="-O" ; fi
+ # As a last resort, use the slow shell script. We don't cache a
+ # path for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the path is relative.
+ INSTALL=$ac_install_sh
+ fi
fi
-echo "$ac_t""${CFLAGS}" 1>&6
+echo "$as_me:$LINENO: result: $INSTALL" >&5
+echo "${ECHO_T}$INSTALL" >&6
-
-echo $ac_n "checking for preferred warning flags for XEMACS_CC""...
$ac_c" 1>&6
-echo "configure:2930: checking for preferred warning flags for XEMACS_CC"
>&5
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-xe_cflags_warning=""
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
-if test "$cflags_warning_specified" = "no"; then
- if test "$__SUNPRO_C" = "yes"; then
- case "$opsys" in
- sol2 ) cflags_warning="-v" ;;
- esac
- elif test "$CC" = "xlc"; then
- cflags_warning="-qinfo"
- elif test "$GCC" = "yes"; then
- cflags_warning="-Wall -Wno-switch -Wmissing-prototypes"
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
- cflags_warning="$cflags_warning -Wsign-compare
-Wno-char-subscripts"
- cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
- test "$__GCC3" = "yes" &&
cflags_warning="$cflags_warning -Wpacked"
- test "$have_glibc" != "yes" && \
- cflags_warning="$cflags_warning -Wpointer-arith"
- if test "$xemacs_compiler" =
"g++"; then
- xe_cflags_warning="$cflags_warning -Weffc++"
- elif test "$__GCC3" = "yes"; then
- xe_cflags_warning="$cflags_warning -Wunused-parameter"
- fi
- cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
- elif test "$__ICC" = "yes"; then
- cflags_warning="-Wall -w1 -we147"
+for ac_prog in 'bison -y' byacc
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with
args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_YACC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$YACC"; then
+ ac_cv_prog_YACC="$YACC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_YACC="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
-fi
-test -z "$xe_cflags_warning" &&
xe_cflags_warning="$cflags_warning"
-echo "$ac_t""${xe_cflags_warning}" 1>&6
+done
+done
-echo $ac_n "checking for preferred warning flags for CC""... $ac_c"
1>&6
-echo "configure:2963: checking for preferred warning flags for CC"
>&5
-echo "$ac_t""${cflags_warning}" 1>&6
+fi
+fi
+YACC=$ac_cv_prog_YACC
+if test -n "$YACC"; then
+ echo "$as_me:$LINENO: result: $YACC" >&5
+echo "${ECHO_T}$YACC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
-XE_CFLAGS="$xe_cflags_warning $CFLAGS"
-CFLAGS="$cflags_warning $CFLAGS"
+ test -n "$YACC" && break
+done
+test -n "$YACC" || YACC="yacc"
-if test "$GCC" = "yes"; then
-echo $ac_n "checking for buggy gcc versions""... $ac_c"
1>&6
-echo "configure:2971: checking for buggy gcc versions" >&5
-GCC_VERSION=`$CC --version`
-case `uname -s`:`uname -m`:$GCC_VERSION in
- *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
- case "$CFLAGS" in
- *-O2*|*-O3*)
- case "$CFLAGS" in
- *-fno-schedule-insns*) ;;
- *)
- echo "$ac_t""yes" 1>&6
- echo "configure: warning: Don't use -O2 with gcc 2.8.1
and egcs 1.0 under SPARC architectures" 1>&2
- echo "configure: warning: without also using
-fno-schedule-insns." 1>&2
- { echo "configure: error: Aborting due to known
problem" 1>&2; exit 1; }
- ;;
- esac
- ;;
- esac
- ;;
- Linux:alpha:egcs-2.91.*)
- echo "$ac_t""yes" 1>&6
- echo "configure: warning: There have been reports of egcs-1.1 not
compiling XEmacs correctly on" 1>&2
- echo "configure: warning: Alpha Linux. There have also been reports that
egcs-1.0.3a is O.K." 1>&2
- { echo "configure: error: Aborting due to known problem" 1>&2;
exit 1; }
- ;;
- *:i*86*:2.7.2*)
- case "$CFLAGS" in
- *-O2*|*-O3*)
- case "$GCC_VERSION" in
- 2.7.2)
- case "$CFLAGS" in
- *-fno-strength-reduce*) ;;
- *)
- echo "$ac_t""yes" 1>&6
- echo "configure: warning: Don't use -O2 with
gcc 2.7.2 under Intel/XXX without also using" 1>&2
- echo "configure: warning: -fno-strength-reduce."
1>&2
- { echo "configure: error: Aborting due to known
problem" 1>&2; exit 1; }
- ;;
- esac
- ;;
- esac
- case "$CFLAGS" in
- *-fno-caller-saves*) ;;
- *)
- echo "$ac_t""yes" 1>&6
- echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX
without also using" 1>&2
- echo "configure: warning: -fno-caller-saves." 1>&2
- { echo "configure: error: Aborting due to known problem"
1>&2; exit 1; }
- ;;
- esac
- ;;
- esac
- ;;
-esac
-echo "$ac_t""no" 1>&6
-fi
-if test "$pdump" != "yes"; then
- echo $ac_n "checking for \"-z nocombreloc\" linker flag""...
$ac_c" 1>&6
-echo "configure:3029: checking for \"-z nocombreloc\" linker flag"
>&5
- case "`ld --help 2>&1`" in
- *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
- ld_switch_site="-z nocombreloc $ld_switch_site" && if test
"$extra_verbose" = "yes"; then echo " Prepending \"-z
nocombreloc\" to \$ld_switch_site"; fi ;;
- *) echo "$ac_t""no" 1>&6 ;;
- esac
-fi
+echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
+if test "${ac_cv_header_stdc+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+int
+main ()
+{
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_header_stdc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if test "$GCC" = "yes"; then
- set x $ld_switch_system; shift; ld_switch_system=""
- while test -n "$1"; do
- case $1 in
- -L | -l | -u ) ld_switch_system="$ld_switch_system $1
$2"; shift ;;
- -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1"
;;
- -Xlinker* ) ;;
- * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
- esac
- shift
- done
+ac_cv_header_stdc=no
fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-if test "$GCC" = "yes"; then
- set x $ld_switch_machine; shift; ld_switch_machine=""
- while test -n "$1"; do
- case $1 in
- -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1
$2"; shift ;;
- -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine
$1" ;;
- -Xlinker* ) ;;
- * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
- esac
- shift
- done
-fi
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <string.h>
-if test "$GCC" = "yes"; then
- set x $ld_switch_site; shift; ld_switch_site=""
- while test -n "$1"; do
- case $1 in
- -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2";
shift ;;
- -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
- -Xlinker* ) ;;
- * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
- esac
- shift
- done
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
fi
+rm -f conftest*
-if test "$GCC" = "yes"; then
- set x $LDFLAGS; shift; LDFLAGS=""
- while test -n "$1"; do
- case $1 in
- -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
- -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
- -Xlinker* ) ;;
- * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
- esac
- shift
- done
fi
-if test "$GCC" = "yes"; then
- set x $ld_call_shared; shift; ld_call_shared=""
- while test -n "$1"; do
- case $1 in
- -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2";
shift ;;
- -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
- -Xlinker* ) ;;
- * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
- esac
- shift
- done
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
fi
+rm -f conftest*
-test -n "$objects_machine" && extra_objs="$extra_objs
$objects_machine" && if test "$extra_verbose" = "yes";
then
- echo " xemacs will be linked with \"$objects_machine\""
- fi
-test -n "$objects_system" && extra_objs="$extra_objs
$objects_system" && if test "$extra_verbose" = "yes";
then
- echo " xemacs will be linked with \"$objects_system\""
- fi
-test -n "$unexec" && test ! "$pdump" =
"yes" && extra_objs="$extra_objs $unexec" && if test
"$extra_verbose" = "yes"; then
- echo " xemacs will be linked with \"$unexec\""
- fi
-test "$pdump" = "yes" && extra_objs="$extra_objs
dumper.o" && if test "$extra_verbose" = "yes"; then
- echo " xemacs will be linked with \"dumper.o\""
- fi
+fi
-echo $ac_n "checking for dynodump""... $ac_c" 1>&6
-echo "configure:3118: checking for dynodump" >&5
-if test "$unexec" != "unexsol2.o"; then
- echo "$ac_t""no" 1>&6
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then
+ :
else
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining DYNODUMP
-EOF
-cat >> confdefs.h <<\EOF
-#define DYNODUMP 1
-EOF
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ctype.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ exit(2);
+ exit (0);
}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
- MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"dynodump\" to \$MAKE_SUBDIR"; fi
- SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
- case "$machine" in
- sparc ) dynodump_arch=sparc ;;
- *86* ) dynodump_arch=i386 ;;
- powerpc ) dynodump_arch=ppc ;;
- esac
- 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
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
fi
+echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
+echo "${ECHO_T}$ac_cv_header_stdc" >&6
+if test $ac_cv_header_stdc = yes; then
+cat >>confdefs.h <<\_ACEOF
+#define STDC_HEADERS 1
+_ACEOF
+fi
-if test "$unexec" = "unexaix.o"; then
- if test "$dynamic" = "no"; then
- start_flags="-Wl,-bnso,-bnodelcsect"
- test "$GCC" = "yes" && start_flags="-B/bin/
${start_flags}"
- for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
- if test -r "$f"; then start_flags="${start_flags},-bI:${f}";
fi
- done
- for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
- if test -r "$f"; then start_flags="${start_flags},-bI:${f}";
break; fi
- done
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
-echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c"
1>&6
-echo "configure:3155: checking for terminateAndUnload in -lC" >&5
-ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
-xe_check_libs=" -lC "
-cat > conftest.$ac_ext <<EOF
-#line 3160 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char terminateAndUnload();
-int main() {
-terminateAndUnload()
-; return 0; }
-EOF
-if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- libs_system="$libs_system -lC" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"-lC\" to \$libs_system"; fi
-else
- echo "$ac_t""no" 1>&6
-fi
- fi
-elif test -n "$ld_text_start_addr"; then
- start_flags="-T $ld_text_start_addr -e __start"
-fi
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+ inttypes.h stdint.h unistd.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_Header=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Header=no"
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
-if test "$ordinary_link" = "no" -a "$GCC" =
"yes"; then
- test -z "$linker" && linker='$(CC) -nostdlib'
- test -z "$lib_gcc" && lib_gcc='`$(CC)
-print-libgcc-file-name`'
fi
-test "$GCC" != "yes" && lib_gcc=
+done
-compiler_version=""
-gcc_compiler_specs=""
-libc_version=""
-echo $ac_n "checking for compiler version information""... $ac_c"
1>&6
-echo "configure:3213: checking for compiler version information" >&5
-if test "$GCC" = "yes"; then
- compiler_version=`$XEMACS_CC --version | head -1`
- gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' |
head -1`
-else case "$XEMACS_CC" in
- ic*)
- compiler_version=`icc -V 2>&1 | head -1`
- ;;
- *) case "$canonical" in
- *-*-aix* )
- realcc=`which $XEMACS_CC`
- if test -L $realcc ; then
- ccdir=`dirname $realcc`
- ccprog=`/bin/ls -l $realcc | sed 's/.* \([^ ]\)/\1/'`
- case $ccprog in
- */*) realcc=$ccprog;;
- *) realcc=$ccdir/$ccprog;;
- esac
- fi
- lpp=`lslpp -wqc $realcc | cut -f2 -d:`
- if test ! -z "$lpp" ; then
- lppstr=`lslpp -Lqc $lpp`
- lpplev=`echo "$lppstr" | cut -f3 -d:`
- lppdesc=`echo "$lppstr" | cut -f8 -d:`
- fi
- if test ! -z "$lpplev" ; then
- compiler_version="$lpp $lpplev - $lppdesc"
- fi
- ;;
- *-*-solaris*)
- compiler_version=`$XEMACS_CC -V 2>&1 | head -1`
- ;;
- alpha*-dec-osf*)
- compiler_version=`$XEMACS_CC -V | tr '\n' ' '`
- ;;
- mips-sgi-irix*)
- compiler_version=`$XEMACS_CC -version`
- ;;
- esac
- esac
-fi
-if test -z "$compiler_version"; then
- compiler_version="detection failed (please report this)"
-fi
-echo $ac_n "checking for standard C library version information""...
$ac_c" 1>&6
-echo "configure:3264: checking for standard C library version information"
>&5
-case "$canonical" in
- *-*-linux*)
- if test -f /etc/redhat-release ; then
- libc_version=`rpm -q glibc`
- elif test -f /etc/debian_version ; then
- libc_version=`dpkg-query --showformat='${version}' --show libc6`
- libc_version="GNU libc $libc_version (Debian)"
- fi
- if test -z "$libc_version"; then
- libc_version=`ls /lib/libc-*.so | sed -e 's,/lib/libc-\(.*\)\.so,\1,'`
- fi
- ;;
- *-*-aix*)
- libc_version="bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
- ;;
- *-*-solaris*)
- libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
- libc_version="SUNWcsl $libc"
- ;;
- mips-sgi-irix*)
- libc_version="IRIX libc `uname -sRm`"
- ;;
- alpha*-dec-osf*)
- (cd /usr/.smdb.;
- libc_version=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}'
| tr '\n' ','`
- )
+
+
+
+
+
+for ac_header in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h
locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/resource.h
sys/time.h sys/timeb.h sys/times.h sys/un.h sys/vlimit.h ulimit.h unistd.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
;;
esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-if test -z "libc_version"; then
- libc_version="detection failed (please report this)"
fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+fi
+done
-case "$site_libraries" in *:* ) site_libraries="`echo ''
$site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
-if test -n "$site_libraries"; then
- for arg in $site_libraries; do
- case "$arg" in
- -* ) ;;
- * ) test -d "$arg" || \
- { echo "Error:" "Invalid site library \`$arg': no such
directory" >&2; exit 1; }
- arg="-L${arg}" ;;
- esac
- ld_switch_site="$ld_switch_site $arg" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"$arg\" to \$ld_switch_site"; fi
- done
+echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible"
>&5
+echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C"
>&6
+if test "${ac_cv_header_sys_wait_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <sys/wait.h>
+#ifndef WEXITSTATUS
+# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
+#endif
+#ifndef WIFEXITED
+# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
+#endif
+
+int
+main ()
+{
+ int s;
+ wait (&s);
+ s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_header_sys_wait_h=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_header_sys_wait_h=no
fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
+if test $ac_cv_header_sys_wait_h = yes; then
-case "$site_includes" in *:* ) site_includes="`echo ''
$site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
-if test -n "$site_includes"; then
- for arg in $site_includes; do
- case "$arg" in
- -* ) ;;
- * ) test -d "$arg" || \
- { echo "Error:" "Invalid site include \`$arg': no such
directory" >&2; exit 1; }
- arg="-I${arg}" ;;
- esac
- c_switch_site="$c_switch_site $arg" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"$arg\" to \$c_switch_site"; fi
- done
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SYS_WAIT_H 1
+_ACEOF
+
fi
+
+echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
+if test "${ac_cv_header_stdc+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_header_stdc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-case "$site_prefixes" in *:* ) site_prefixes="`echo ''
$site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
-if test -n "$site_prefixes"; then
- for dir in $site_prefixes; do
- lib_dir="${dir}/lib"
- inc_dir="${dir}/include"
- if test ! -d "$dir"; then
- { echo "Error:" "Invalid site prefix \`$dir': no such
directory" >&2; exit 1; }
- elif test ! -d "$lib_dir"; then
- { echo "Error:" "Invalid site prefix \`$dir': no such
directory \`$lib_dir'" >&2; exit 1; }
- else
- if test -d "$inc_dir"; then
- 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
- fi
- 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
- fi
- done
+ac_cv_header_stdc=no
fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <string.h>
-for dir in "/usr/ccs/lib"; do
- test -d "$dir" && ld_switch_system="$ld_switch_system
-L${dir}" && if test "$extra_verbose" = "yes"; then echo
" Appending \"-L${dir}\" to \$ld_switch_system"; fi
-done
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
-case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo
'' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";;
esac
-if test -n "$site_runtime_libraries"; then
- LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
- export LD_RUN_PATH
fi
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+fi
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then
+ :
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ctype.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ exit(2);
+ exit (0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if test -n "$add_runtime_path"; then :;
-elif test "$dynamic" = "no"; then add_runtime_path=no
-elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
-else case "$opsys" in
- sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
- * ) add_runtime_path=no ;;
- esac
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
fi
+fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
+echo "${ECHO_T}$ac_cv_header_stdc" >&6
+if test $ac_cv_header_stdc = yes; then
-if test "$add_runtime_path" = "yes"; then
- echo $ac_n "checking "for runtime libraries flag"""...
$ac_c" 1>&6
-echo "configure:3376: checking "for runtime libraries flag""
>&5
- case "$opsys" in
- sol2 ) dash_r="-R" ;;
- decosf* | linux* | irix*) dash_r="-rpath " ;;
- *)
- dash_r=""
- for try_dash_r in "-R" "-R " "-rpath "; do
- xe_check_libs="${try_dash_r}/no/such/file-or-directory"
+cat >>confdefs.h <<\_ACEOF
+#define STDC_HEADERS 1
+_ACEOF
-if test "$GCC" = "yes"; then
- set x $xe_check_libs; shift; xe_check_libs=""
- while test -n "$1"; do
- case $1 in
- -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2";
shift ;;
- -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
- -Xlinker* ) ;;
- * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
- esac
- shift
- done
fi
- cat > conftest.$ac_ext <<EOF
-#line 3398 "configure"
-#include "confdefs.h"
-int main() {
+echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be
included" >&5
+echo $ECHO_N "checking whether time.h and sys/time.h may both be included...
$ECHO_C" >&6
+if test "${ac_cv_header_time+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <sys/time.h>
+#include <time.h>
-; return 0; }
-EOF
-if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- dash_r="$try_dash_r"
+int
+main ()
+{
+if ((struct tm *) 0)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_header_time=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_header_time=no
fi
-rm -f conftest*
- xe_check_libs=""
- test -n "$dash_r" && break
- done ;;
- esac
- if test -n "$dash_r";
- then echo "$ac_t"""\"${dash_r}\"""
1>&6
- else echo "$ac_t""NONE" 1>&6
- fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
+echo "${ECHO_T}$ac_cv_header_time" >&6
+if test $ac_cv_header_time = yes; then
-xe_add_unique_runpath_dir='
- xe_add_p=yes
- for xe_dir in $runpath_dirs; do test "$xe_dir" =
"$xe_runpath_dir" && xe_add_p=no
- done
- if test "$xe_add_p" = "yes"; then
- test -n "$runpath" && runpath="${runpath}:"
- runpath="${runpath}${xe_runpath_dir}"
- runpath_dirs="$runpath_dirs $xe_runpath_dir"
- fi'
+cat >>confdefs.h <<\_ACEOF
+#define TIME_WITH_SYS_TIME 1
+_ACEOF
+fi
+echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
+echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C"
>&6
+if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <signal.h>
+/* NetBSD declares sys_siglist in unistd.h. */
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
-if test "$add_runtime_path" = "yes" -a -n "$dash_r";
then
- ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e
"s/$dash_r[^ ]*//g"`
- ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e
"s/$dash_r[^ ]*//g"`
+int
+main ()
+{
+#ifndef sys_siglist
+ char *p = (char *) sys_siglist;
+#endif
- runpath="" runpath_dirs=""
- if test -n "$LD_RUN_PATH"; then
- runpath="$LD_RUN_PATH"
- elif test "$GCC" = "yes"; then
- ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
- echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
- xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS
'"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
- for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
- case "$arg" in P,* | -L* | -R* )
- for dir in `echo '' "$arg" | sed -e 's:^ ::' -e
's/^..//' -e 'y/:/ /'`; do
- {
-xe_runpath_dir="$dir"
- test "$xe_runpath_dir" != "/lib" -a \
- "$xe_runpath_dir" != "/usr/lib" -a \
- -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
- eval "$xe_add_unique_runpath_dir"
+ ;
+ return 0;
}
- done ;;
- esac
- done
- ld_switch_run="$ld_switch_run_save"
- rm -f conftest*
- else
- for arg in $ld_switch_site $ld_switch_x_site; do
- case "$arg" in -L*) {
-xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e
's/^-L//'`
- test "$xe_runpath_dir" != "/lib" -a \
- "$xe_runpath_dir" != "/usr/lib" -a \
- -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
- eval "$xe_add_unique_runpath_dir"
-};; esac
- done
- if test "$opsys $need_motif" = "sol2 yes"; then
- xe_runpath_dir="/opt/SUNWdt/lib";
- eval "$xe_add_unique_runpath_dir";
- fi
- fi
- if test -n "$runpath"; then
- ld_switch_run="${dash_r}${runpath}"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_have_decl_sys_siglist=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if test "$GCC" = "yes"; then
- set x $ld_switch_run; shift; ld_switch_run=""
- while test -n "$1"; do
- case $1 in
- -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2";
shift ;;
- -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
- -Xlinker* ) ;;
- * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
- esac
- shift
- done
+ac_cv_have_decl_sys_siglist=no
fi
- test "$extra_verbose" = "yes" && echo "Setting
runpath to $runpath"
- fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
+echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
+if test $ac_cv_have_decl_sys_siglist = yes; then
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_SYS_SIGLIST 1
+_ACEOF
-GNU_MALLOC=yes
-if test "$with_dlmalloc" != "no"; then
- doug_lea_malloc=yes
else
- doug_lea_malloc=no
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_SYS_SIGLIST 0
+_ACEOF
+
+
fi
-after_morecore_hook_exists=yes
-echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
-echo "configure:3506: checking for malloc_set_state" >&5
+
+
+
+
+echo "$as_me:$LINENO: checking for utime" >&5
+echo $ECHO_N "checking for utime... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <utime.h>
+int
+main ()
+{
+struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_UTIME 1
+_ACEOF
-cat > conftest.$ac_ext <<EOF
-#line 3509 "configure"
-#include "confdefs.h"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+
+for ac_func in utimes
+do
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char malloc_set_state(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char malloc_set_state();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
-#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-malloc_set_state();
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
#endif
-; return 0; }
-EOF
-if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_malloc_set_state=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_malloc_set_state=no"
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
fi
-rm -f conftest*
+done
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+
+echo "$as_me:$LINENO: checking return type of signal handlers" >&5
+echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
+if test "${ac_cv_type_signal+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <signal.h>
+#ifdef signal
+# undef signal
+#endif
+#ifdef __cplusplus
+extern "C" void (*signal (int, void (*)(int)))(int);
+#else
+void (*signal ()) ();
+#endif
+
+int
+main ()
+{
+int i;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_signal=void
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_type_signal=int
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
+echo "${ECHO_T}$ac_cv_type_signal" >&6
+
+cat >>confdefs.h <<_ACEOF
+#define RETSIGTYPE $ac_cv_type_signal
+_ACEOF
-if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" =
yes"; then
- echo "$ac_t""yes" 1>&6
- :
+
+echo "$as_me:$LINENO: checking for size_t" >&5
+echo $ECHO_N "checking for size_t... $ECHO_C" >&6
+if test "${ac_cv_type_size_t+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((size_t *) 0)
+ return 0;
+if (sizeof (size_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_size_t=yes
else
- echo "$ac_t""no" 1>&6
-doug_lea_malloc=no
-fi
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo $ac_n "checking whether __after_morecore_hook exists""...
$ac_c" 1>&6
-echo "configure:3552: checking whether __after_morecore_hook exists"
>&5
-cat > conftest.$ac_ext <<EOF
-#line 3554 "configure"
-#include "confdefs.h"
-extern void (* __after_morecore_hook)();
-int main() {
-__after_morecore_hook = 0
-; return 0; }
-EOF
-if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- after_morecore_hook_exists=no
+ac_cv_type_size_t=no
fi
-rm -f conftest*
-if test "$system_malloc" = "yes" ; then
- GNU_MALLOC=no
- GNU_MALLOC_reason="
- - The GNU allocators don't work with this system configuration."
-elif test "$with_system_malloc" = "yes" ; then
- GNU_MALLOC=no
- GNU_MALLOC_reason="
- - User chose not to use GNU allocators."
-elif test "$with_debug_malloc" = "yes" ; then
- GNU_MALLOC=no
- GNU_MALLOC_reason="
- - User chose to use Debugging Malloc."
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-
-if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" =
"yes" ; then
- GNU_MALLOC_reason="
- - Using Doug Lea's new malloc from the GNU C Library."
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining DOUG_LEA_MALLOC
-EOF
-cat >> confdefs.h <<\EOF
-#define DOUG_LEA_MALLOC 1
-EOF
-}
+echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
+echo "${ECHO_T}$ac_cv_type_size_t" >&6
+if test $ac_cv_type_size_t = yes; then
+ :
+else
- if test "$after_morecore_hook_exists" = "no" ; then
- GNU_MALLOC_reason="
- - Using Doug Lea's new malloc from the Linux C Library."
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining _NO_MALLOC_WARNING_
-EOF
-cat >> confdefs.h <<\EOF
-#define _NO_MALLOC_WARNING_ 1
-EOF
-}
+cat >>confdefs.h <<_ACEOF
+#define size_t unsigned
+_ACEOF
- fi
fi
+echo "$as_me:$LINENO: checking for pid_t" >&5
+echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
+if test "${ac_cv_type_pid_t+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((pid_t *) 0)
+ return 0;
+if (sizeof (pid_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_pid_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+ac_cv_type_pid_t=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
+echo "${ECHO_T}$ac_cv_type_pid_t" >&6
+if test $ac_cv_type_pid_t = yes; then
+ :
+else
+cat >>confdefs.h <<_ACEOF
+#define pid_t int
+_ACEOF
-# Extract the first word of "ranlib", so it can be a program name with args.
-set dummy ranlib; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3617: checking for $ac_word" >&5
+fi
-if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
+echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
+if test "${ac_cv_type_uid_t+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
-fi
-RANLIB="$ac_cv_prog_RANLIB"
-if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "uid_t" >/dev/null 2>&1; then
+ ac_cv_type_uid_t=yes
else
- echo "$ac_t""no" 1>&6
+ ac_cv_type_uid_t=no
fi
+rm -f conftest*
-ac_aux_dir=
-for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
-done
-if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in $srcdir
$srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
-ac_config_guess=$ac_aux_dir/config.guess
-ac_config_sub=$ac_aux_dir/config.sub
-ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
+echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
+echo "${ECHO_T}$ac_cv_type_uid_t" >&6
+if test $ac_cv_type_uid_t = no; then
-# Find a good install program. We prefer a C program (faster),
-# so one script is as good as another. But avoid the broken or
-# incompatible versions:
-# SysV /etc/install, /usr/sbin/install
-# SunOS /usr/etc/install
-# IRIX /sbin/install
-# AIX /bin/install
-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
-# ./install, which can be erroneously created by make from ./install.sh.
-echo $ac_n "checking for a BSD compatible install""... $ac_c"
1>&6
-echo "configure:3672: checking for a BSD compatible install" >&5
-if test -z "$INSTALL"; then
+cat >>confdefs.h <<\_ACEOF
+#define uid_t int
+_ACEOF
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
- for ac_dir in $PATH; do
- # Account for people who put trailing slashes in PATH elements.
- case "$ac_dir/" in
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- if test -f $ac_dir/$ac_prog; then
- if test $ac_prog = install &&
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- else
- ac_cv_path_install="$ac_dir/$ac_prog -c"
- break 2
- fi
- fi
- done
- ;;
- esac
- done
- IFS="$ac_save_IFS"
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL="$ac_cv_path_install"
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL="$ac_install_sh"
- fi
+cat >>confdefs.h <<\_ACEOF
+#define gid_t int
+_ACEOF
+
fi
-echo "$ac_t""$INSTALL" 1>&6
-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
-# It thinks the first close brace ends the variable substitution.
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+echo "$as_me:$LINENO: checking for mode_t" >&5
+echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
+if test "${ac_cv_type_mode_t+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((mode_t *) 0)
+ return 0;
+if (sizeof (mode_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_mode_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-test -z "$INSTALL_SCRIPT" &&
INSTALL_SCRIPT='${INSTALL_PROGRAM}'
+ac_cv_type_mode_t=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
+echo "${ECHO_T}$ac_cv_type_mode_t" >&6
+if test $ac_cv_type_mode_t = yes; then
+ :
+else
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+cat >>confdefs.h <<_ACEOF
+#define mode_t int
+_ACEOF
-for ac_prog in 'bison -y' byacc
-do
-# Extract the first word of "$ac_prog", so it can be a program name with
args.
-set dummy $ac_prog; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3726: checking for $ac_word" >&5
+fi
-if test -n "$YACC"; then
- ac_cv_prog_YACC="$YACC" # Let the user override the test.
+echo "$as_me:$LINENO: checking for off_t" >&5
+echo $ECHO_N "checking for off_t... $ECHO_C" >&6
+if test "${ac_cv_type_off_t+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((off_t *) 0)
+ return 0;
+if (sizeof (off_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_off_t=yes
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YACC="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_type_off_t=no
fi
-YACC="$ac_cv_prog_YACC"
-if test -n "$YACC"; then
- echo "$ac_t""$YACC" 1>&6
-else
- echo "$ac_t""no" 1>&6
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-
-test -n "$YACC" && break
-done
-test -n "$YACC" || YACC="yacc"
+echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
+echo "${ECHO_T}$ac_cv_type_off_t" >&6
+if test $ac_cv_type_off_t = yes; then
+ :
+else
+cat >>confdefs.h <<_ACEOF
+#define off_t long
+_ACEOF
-for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h
locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/resource.h sys/time.h
sys/timeb.h sys/times.h sys/un.h sys/vlimit.h ulimit.h unistd.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:3758: checking for $ac_hdr" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 3761 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3766: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
+
+echo "$as_me:$LINENO: checking for ssize_t" >&5
+echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
+if test "${ac_cv_type_ssize_t+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((ssize_t *) 0)
+ return 0;
+if (sizeof (ssize_t))
+ return 0;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_ssize_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+ac_cv_type_ssize_t=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
+echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
+if test $ac_cv_type_ssize_t = yes; then
+ :
else
- echo "$ac_t""no" 1>&6
+
+cat >>confdefs.h <<_ACEOF
+#define ssize_t int
+_ACEOF
+
fi
-done
-echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""...
$ac_c" 1>&6
-echo "configure:3796: checking for sys/wait.h that is POSIX.1 compatible"
>&5
-cat > conftest.$ac_ext <<EOF
-#line 3799 "configure"
-#include "confdefs.h"
+if test "$ac_cv_header_inttypes_h" != "yes"; then
+echo "$as_me:$LINENO: checking for intptr_t in sys/types.h" >&5
+echo $ECHO_N "checking for intptr_t in sys/types.h... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <sys/types.h>
-#include <sys/wait.h>
-#ifndef WEXITSTATUS
-#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
-#endif
-#ifndef WIFEXITED
-#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
-#endif
-int main() {
-int s;
-wait (&s);
-s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
-; return 0; }
-EOF
-if { (eval echo configure:3815: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_sys_wait_h=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_sys_wait_h=no
-fi
-rm -f conftest*
+intptr_t x;
-echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
-if test $ac_cv_header_sys_wait_h = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_SYS_WAIT_H
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_SYS_WAIT_H 1
-EOF
+int
+main ()
+{
+
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_INTPTR_T_IN_SYS_TYPES_H 1
+_ACEOF
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
-echo $ac_n "checking for ANSI C header files""... $ac_c"
1>&6
-echo "configure:3839: checking for ANSI C header files" >&5
+echo "$as_me:$LINENO: checking for socklen_t" >&5
+echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <sys/socket.h>
+socklen_t x;
-cat > conftest.$ac_ext <<EOF
-#line 3842 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3850: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
+int
+main ()
+{
-if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-cat > conftest.$ac_ext <<EOF
-#line 3867 "configure"
-#include "confdefs.h"
-#include <string.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <sys/socket.h>
+int accept (int, struct sockaddr *, size_t *);
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+echo "$as_me:$LINENO: result: size_t" >&5
+echo "${ECHO_T}size_t" >&6
+cat >>confdefs.h <<\_ACEOF
+#define socklen_t size_t
+_ACEOF
+
else
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: result: int" >&5
+echo "${ECHO_T}int" >&6
+cat >>confdefs.h <<\_ACEOF
+#define socklen_t int
+_ACEOF
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-cat > conftest.$ac_ext <<EOF
-#line 3885 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
+echo "$as_me:$LINENO: checking for struct timeval" >&5
+echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif
+int
+main ()
+{
+static struct timeval x; x.tv_sec = x.tv_usec;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ HAVE_TIMEVAL=yes
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_TIMEVAL 1
+_ACEOF
+
else
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ HAVE_TIMEVAL=no
fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-cat > conftest.$ac_ext <<EOF
-#line 3903 "configure"
-#include "confdefs.h"
-#include <ctype.h>
-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int main () { int i; for (i = 0; i < 256; i++)
-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
-exit (0); }
+echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h"
>&5
+echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h...
$ECHO_C" >&6
+if test "${ac_cv_struct_tm+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <time.h>
-EOF
-if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- :
+int
+main ()
+{
+struct tm *tp; tp->tm_sec;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_struct_tm=time.h
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_struct_tm=sys/time.h
fi
-rm -fr conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
+echo "${ECHO_T}$ac_cv_struct_tm" >&6
+if test $ac_cv_struct_tm = sys/time.h; then
-echo "$ac_t""$ac_cv_header_stdc" 1>&6
-if test $ac_cv_header_stdc = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining STDC_HEADERS
-EOF
-cat >> confdefs.h <<\EOF
-#define STDC_HEADERS 1
-EOF
-}
+cat >>confdefs.h <<\_ACEOF
+#define TM_IN_SYS_TIME 1
+_ACEOF
fi
+
+echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
+echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
+if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <$ac_cv_struct_tm>
-echo $ac_n "checking whether time.h and sys/time.h may both be
included""... $ac_c" 1>&6
-echo "configure:3940: checking whether time.h and sys/time.h may both be
included" >&5
-cat > conftest.$ac_ext <<EOF
-#line 3943 "configure"
-#include "confdefs.h"
+int
+main ()
+{
+static struct tm ac_aggr;
+if (ac_aggr.tm_zone)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_member_struct_tm_tm_zone=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <sys/types.h>
-#include <sys/time.h>
-#include <time.h>
-int main() {
-struct tm *tp;
-; return 0; }
-EOF
-if { (eval echo configure:3952: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_time=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_time=no
-fi
-rm -f conftest*
+#include <$ac_cv_struct_tm>
-echo "$ac_t""$ac_cv_header_time" 1>&6
-if test $ac_cv_header_time = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining TIME_WITH_SYS_TIME
-EOF
-cat >> confdefs.h <<\EOF
-#define TIME_WITH_SYS_TIME 1
-EOF
+
+int
+main ()
+{
+static struct tm ac_aggr;
+if (sizeof ac_aggr.tm_zone)
+return 0;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_member_struct_tm_tm_zone=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_member_struct_tm_tm_zone=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
+echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
+if test $ac_cv_member_struct_tm_tm_zone = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_STRUCT_TM_TM_ZONE 1
+_ACEOF
+
fi
-echo $ac_n "checking for sys_siglist declaration in signal.h or
unistd.h""... $ac_c" 1>&6
-echo "configure:3976: checking for sys_siglist declaration in signal.h or
unistd.h" >&5
+if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
-cat > conftest.$ac_ext <<EOF
-#line 3979 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <signal.h>
-/* NetBSD declares sys_siglist in unistd.h. */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_TM_ZONE 1
+_ACEOF
+
+else
+ echo "$as_me:$LINENO: checking for tzname" >&5
+echo $ECHO_N "checking for tzname... $ECHO_C" >&6
+if test "${ac_cv_var_tzname+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <time.h>
+#ifndef tzname /* For SGI. */
+extern char *tzname[]; /* RS6000 and others reject char **tzname. */
#endif
-int main() {
-char *msg = *(sys_siglist + 1);
-; return 0; }
-EOF
-if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_decl_sys_siglist=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_decl_sys_siglist=no
-fi
-rm -f conftest*
-echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
-if test $ac_cv_decl_sys_siglist = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining SYS_SIGLIST_DECLARED
-EOF
-cat >> confdefs.h <<\EOF
-#define SYS_SIGLIST_DECLARED 1
-EOF
+int
+main ()
+{
+atoi(*tzname);
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_var_tzname=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+ac_cv_var_tzname=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
+echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
+echo "${ECHO_T}$ac_cv_var_tzname" >&6
+ if test $ac_cv_var_tzname = yes; then
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_TZNAME 1
+_ACEOF
+ fi
+fi
-echo $ac_n "checking for utime""... $ac_c" 1>&6
-echo "configure:4017: checking for utime" >&5
-cat > conftest.$ac_ext <<EOF
-#line 4019 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <utime.h>
-int main() {
-struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
-; return 0; }
-EOF
-if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_UTIME
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_UTIME 1
-EOF
-}
+echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
+echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
+if test "${ac_cv_c_const+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- for ac_func in utimes
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4046: checking for $ac_func" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 4049 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
+int
+main ()
+{
+/* FIXME: Include the comments suggested by Paul. */
+#ifndef __cplusplus
+ /* Ultrix mips cc rejects this. */
+ typedef int charset[2];
+ const charset x;
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *ccp;
+ char **p;
+ /* NEC SVR4.0.2 mips cc rejects this. */
+ struct point {int x, y;};
+ static struct point const zero = {0,0};
+ /* AIX XL C 1.02.0.0 rejects this.
+ It does not let you subtract one const X* pointer from another in
+ an arm of an if-expression whose if-part is not a constant
+ expression */
+ const char *g = "string";
+ ccp = &g + (g ? g-g : 0);
+ /* HPUX 7.0 cc rejects these. */
+ ++ccp;
+ p = (char**) ccp;
+ ccp = (char const *const *) p;
+ { /* SCO 3.2v4 cc rejects this. */
+ char *t;
+ char const *s = 0 ? (char *) 0 : (char const *) 0;
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
+ *t++ = 0;
+ }
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
+ int x[] = {25, 17};
+ const int *foo = &x[0];
+ ++foo;
+ }
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ typedef const int *iptr;
+ iptr p = 0;
+ ++p;
+ }
+ { /* AIX XL C 1.02.0.0 rejects this saying
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue.
*/
+ struct s { int j; const int *ap[3]; };
+ struct s *b; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ const int foo = 10;
+ }
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:4072: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+ ;
+ return 0;
}
-
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_c_const=yes
else
- echo "$ac_t""no" 1>&6
-fi
-done
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+ac_cv_c_const=no
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
+echo "${ECHO_T}$ac_cv_c_const" >&6
+if test $ac_cv_c_const = no; then
+cat >>confdefs.h <<\_ACEOF
+#define const
+_ACEOF
-echo $ac_n "checking return type of signal handlers""... $ac_c"
1>&6
-echo "configure:4104: checking return type of signal handlers" >&5
+fi
-cat > conftest.$ac_ext <<EOF
-#line 4107 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <signal.h>
-#ifdef signal
-#undef signal
-#endif
-#ifdef __cplusplus
-extern "C" void (*signal (int, void (*)(int)))(int);
-#else
-void (*signal ()) ();
-#endif
-int main() {
-int i;
-; return 0; }
-EOF
-if { (eval echo configure:4124: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_type_signal=void
+echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)"
>&5
+echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C"
>&6
+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set";
then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.make <<\_ACEOF
+all:
+ @echo 'ac_maketemp="$(MAKE)"'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
+if test -n "$ac_maketemp"; then
+ eval ac_cv_prog_make_${ac_make}_set=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_type_signal=int
+ eval ac_cv_prog_make_${ac_make}_set=no
fi
-rm -f conftest*
+rm -f conftest.make
+fi
+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" =
yes"; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ SET_MAKE=
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
-echo "$ac_t""$ac_cv_type_signal" 1>&6
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining RETSIGTYPE = $ac_cv_type_signal
-EOF
-cat >> confdefs.h <<EOF
-#define RETSIGTYPE $ac_cv_type_signal
-EOF
-}
+echo "$as_me:$LINENO: checking whether byte ordering is bigendian"
>&5
+echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C"
>&6
+if test "${ac_cv_c_bigendian+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # See if sys/param.h defines the BYTE_ORDER macro.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <sys/param.h>
-echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:4146: checking for size_t" >&5
+int
+main ()
+{
+#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
+ bogus endian macros
+#endif
-cat > conftest.$ac_ext <<EOF
-#line 4149 "configure"
-#include "confdefs.h"
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ # It does; now see whether it defined to BIG_ENDIAN or not.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
+#include <sys/param.h>
+
+int
+main ()
+{
+#if BYTE_ORDER != BIG_ENDIAN
+ not big endian
#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1;
then
- rm -rf conftest*
- ac_cv_type_size_t=yes
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_c_bigendian=yes
else
- rm -rf conftest*
- ac_cv_type_size_t=no
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_c_bigendian=no
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+# It does not; compile a test program.
+if test "$cross_compiling" = yes; then
+ # try to guess the endianness by grepping values into an object file
+ ac_cv_c_bigendian=unknown
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
+short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
+void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
+short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
+short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
+void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
+int
+main ()
+{
+ _ascii (); _ebcdic ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
+ ac_cv_c_bigendian=yes
+fi
+if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
+ if test "$ac_cv_c_bigendian" = unknown; then
+ ac_cv_c_bigendian=no
+ else
+ # finding both strings is unlikely to happen, but who knows?
+ ac_cv_c_bigendian=unknown
+ fi
+fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo "$ac_t""$ac_cv_type_size_t" 1>&6
-if test $ac_cv_type_size_t = no; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining size_t = unsigned
-EOF
-cat >> confdefs.h <<\EOF
-#define size_t unsigned
-EOF
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+int
+main ()
+{
+ /* Are we little or big endian? From Harbison&Steele. */
+ union
+ {
+ long l;
+ char c[sizeof (long)];
+ } u;
+ u.l = 1;
+ exit (u.c[sizeof (long) - 1] == 1);
}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_c_bigendian=no
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+( exit $ac_status )
+ac_cv_c_bigendian=yes
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
+echo "${ECHO_T}$ac_cv_c_bigendian" >&6
+case $ac_cv_c_bigendian in
+ yes)
-echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:4180: checking for pid_t" >&5
+cat >>confdefs.h <<\_ACEOF
+#define WORDS_BIGENDIAN 1
+_ACEOF
+ ;;
+ no)
+ ;;
+ *)
+ { { echo "$as_me:$LINENO: error: unknown endianness
+presetting ac_cv_c_bigendian=no (or yes) will help" >&5
+echo "$as_me: error: unknown endianness
+presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
-cat > conftest.$ac_ext <<EOF
-#line 4183 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1;
then
- rm -rf conftest*
- ac_cv_type_pid_t=yes
-else
- rm -rf conftest*
- ac_cv_type_pid_t=no
-fi
-rm -f conftest*
-echo "$ac_t""$ac_cv_type_pid_t" 1>&6
-if test $ac_cv_type_pid_t = no; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining pid_t = int
-EOF
-cat >> confdefs.h <<\EOF
-#define pid_t int
-EOF
+echo "$as_me:$LINENO: checking for short" >&5
+echo $ECHO_N "checking for short... $ECHO_C" >&6
+if test "${ac_cv_type_short+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((short *) 0)
+ return 0;
+if (sizeof (short))
+ return 0;
+ ;
+ return 0;
}
-
-fi
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_short=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_type_short=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
+echo "${ECHO_T}$ac_cv_type_short" >&6
+
+echo "$as_me:$LINENO: checking size of short" >&5
+echo $ECHO_N "checking size of short... $ECHO_C" >&6
+if test "${ac_cv_sizeof_short+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$ac_cv_type_short" = yes; then
+ # The cast to unsigned long works around a bug in the HP C Compiler
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+ # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+ # This bug is HP SR number 8606223364.
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
+test_array [0] = 0
-echo $ac_n "checking for uid_t in sys/types.h""... $ac_c"
1>&6
-echo "configure:4214: checking for uid_t in sys/types.h" >&5
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
+test_array [0] = 0
-cat > conftest.$ac_ext <<EOF
-#line 4217 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_uid_t=yes
-else
- rm -rf conftest*
- ac_cv_type_uid_t=no
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
+test_array [0] = 0
-echo "$ac_t""$ac_cv_type_uid_t" 1>&6
-if test $ac_cv_type_uid_t = no; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining uid_t = int
-EOF
-cat >> confdefs.h <<\EOF
-#define uid_t int
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
+test_array [0] = 0
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining gid_t = int
-EOF
-cat >> confdefs.h <<\EOF
-#define gid_t int
-EOF
+ ;
+ return 0;
}
-
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
fi
-
-echo $ac_n "checking for mode_t""... $ac_c" 1>&6
-echo "configure:4253: checking for mode_t" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 4256 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1;
then
- rm -rf conftest*
- ac_cv_type_mode_t=yes
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
else
- rm -rf conftest*
- ac_cv_type_mode_t=no
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_lo= ac_hi=
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
+test_array [0] = 0
-echo "$ac_t""$ac_cv_type_mode_t" 1>&6
-if test $ac_cv_type_mode_t = no; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining mode_t = int
-EOF
-cat >> confdefs.h <<\EOF
-#define mode_t int
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+ac_lo=`expr '(' $ac_mid ')' + 1`
fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_short=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (short), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+else
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: internal error: not reached in
cross-compile" >&5
+echo "$as_me: error: internal error: not reached in cross-compile"
>&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+long longval () { return (long) (sizeof (short)); }
+unsigned long ulongval () { return (long) (sizeof (short)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
-echo $ac_n "checking for off_t""... $ac_c" 1>&6
-echo "configure:4287: checking for off_t" >&5
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ exit (1);
+ if (((long) (sizeof (short))) < 0)
+ {
+ long i = longval ();
+ if (i != ((long) (sizeof (short))))
+ exit (1);
+ fprintf (f, "%ld\n", i);
+ }
+ else
+ {
+ unsigned long i = ulongval ();
+ if (i != ((long) (sizeof (short))))
+ exit (1);
+ fprintf (f, "%lu\n", i);
+ }
+ exit (ferror (f) || fclose (f) != 0);
-cat > conftest.$ac_ext <<EOF
-#line 4290 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1;
then
- rm -rf conftest*
- ac_cv_type_off_t=yes
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_short=`cat conftest.val`
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (short), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
else
- rm -rf conftest*
- ac_cv_type_off_t=no
+ ac_cv_sizeof_short=0
fi
-rm -f conftest*
-
-echo "$ac_t""$ac_cv_type_off_t" 1>&6
-if test $ac_cv_type_off_t = no; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining off_t = long
-EOF
-cat >> confdefs.h <<\EOF
-#define off_t long
-EOF
-}
-
fi
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
+echo "${ECHO_T}$ac_cv_sizeof_short" >&6
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_SHORT $ac_cv_sizeof_short
+_ACEOF
-echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
-echo "configure:4321: checking for ssize_t" >&5
-cat > conftest.$ac_ext <<EOF
-#line 4324 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1;
then
- rm -rf conftest*
- ac_cv_type_ssize_t=yes
-else
- rm -rf conftest*
- ac_cv_type_ssize_t=no
+if test "$ac_cv_sizeof_short" = 0; then
+ echo ""
+ echo "*** PANIC *** Configure tests are not working - compiler is broken."
+ echo "*** PANIC *** Please examine config.log for compilation errors."
+ exit 1
fi
-rm -f conftest*
+echo "$as_me:$LINENO: checking for int" >&5
+echo $ECHO_N "checking for int... $ECHO_C" >&6
+if test "${ac_cv_type_int+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((int *) 0)
+ return 0;
+if (sizeof (int))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_int=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_type_int=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
+echo "${ECHO_T}$ac_cv_type_int" >&6
+
+echo "$as_me:$LINENO: checking size of int" >&5
+echo $ECHO_N "checking size of int... $ECHO_C" >&6
+if test "${ac_cv_sizeof_int+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$ac_cv_type_int" = yes; then
+ # The cast to unsigned long works around a bug in the HP C Compiler
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+ # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+ # This bug is HP SR number 8606223364.
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
+test_array [0] = 0
-echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
-if test $ac_cv_type_ssize_t = no; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining ssize_t = int
-EOF
-cat >> confdefs.h <<\EOF
-#define ssize_t int
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
+test_array [0] = 0
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
fi
-
-
-if test "$ac_cv_header_inttypes_h" != "yes"; then
-echo $ac_n "checking for intptr_t in sys/types.h""... $ac_c"
1>&6
-echo "configure:4357: checking for intptr_t in sys/types.h" >&5
-cat > conftest.$ac_ext <<EOF
-#line 4359 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-intptr_t x;
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-int main() {
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
+test_array [0] = 0
-; return 0; }
-EOF
-if { (eval echo configure:4368: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_INTPTR_T_IN_SYS_TYPES_H = 1
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_INTPTR_T_IN_SYS_TYPES_H 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
+test_array [0] = 0
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_lo= ac_hi=
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-
-echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
-echo "configure:4389: checking for socklen_t" >&5
-cat > conftest.$ac_ext <<EOF
-#line 4391 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <sys/socket.h>
-socklen_t x;
-
-int main() {
-
-; return 0; }
-EOF
-if { (eval echo configure:4401: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
-cat > conftest.$ac_ext <<EOF
-#line 4410 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <sys/socket.h>
-int accept (int, struct sockaddr *, size_t *);
-
-int main() {
-
-; return 0; }
-EOF
-if { (eval echo configure:4420: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
+test_array [0] = 0
-echo "$ac_t""size_t" 1>&6
-{ test "$extra_verbose" = "yes" && cat << \EOF
- Defining socklen_t = size_t
-EOF
-cat >> confdefs.h <<\EOF
-#define socklen_t size_t
-EOF
+ ;
+ return 0;
}
-
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
-echo "$ac_t""int" 1>&6
-{ test "$extra_verbose" = "yes" && cat << \EOF
- Defining socklen_t = int
-EOF
-cat >> confdefs.h <<\EOF
-#define socklen_t int
-EOF
-}
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-fi
-rm -f conftest*
+ac_lo=`expr '(' $ac_mid ')' + 1`
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_int=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (int), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+else
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: internal error: not reached in
cross-compile" >&5
+echo "$as_me: error: internal error: not reached in cross-compile"
>&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+long longval () { return (long) (sizeof (int)); }
+unsigned long ulongval () { return (long) (sizeof (int)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
-echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
-echo "configure:4452: checking for struct timeval" >&5
-cat > conftest.$ac_ext <<EOF
-#line 4454 "configure"
-#include "confdefs.h"
-#ifdef TIME_WITH_SYS_TIME
-#include <sys/time.h>
-#include <time.h>
-#else
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#else
-#include <time.h>
-#endif
-#endif
-int main() {
-static struct timeval x; x.tv_sec = x.tv_usec;
-; return 0; }
-EOF
-if { (eval echo configure:4470: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- HAVE_TIMEVAL=yes
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_TIMEVAL
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_TIMEVAL 1
-EOF
-}
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ exit (1);
+ if (((long) (sizeof (int))) < 0)
+ {
+ long i = longval ();
+ if (i != ((long) (sizeof (int))))
+ exit (1);
+ fprintf (f, "%ld\n", i);
+ }
+ else
+ {
+ unsigned long i = ulongval ();
+ if (i != ((long) (sizeof (int))))
+ exit (1);
+ fprintf (f, "%lu\n", i);
+ }
+ exit (ferror (f) || fclose (f) != 0);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_int=`cat conftest.val`
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (int), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- HAVE_TIMEVAL=no
+ ac_cv_sizeof_int=0
fi
-rm -f conftest*
+fi
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
+echo "${ECHO_T}$ac_cv_sizeof_int" >&6
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_INT $ac_cv_sizeof_int
+_ACEOF
-echo $ac_n "checking whether struct tm is in sys/time.h or time.h""...
$ac_c" 1>&6
-echo "configure:4492: checking whether struct tm is in sys/time.h or time.h"
>&5
-cat > conftest.$ac_ext <<EOF
-#line 4495 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <time.h>
-int main() {
-struct tm *tp; tp->tm_sec;
-; return 0; }
-EOF
-if { (eval echo configure:4503: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_tm=time.h
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_tm=sys/time.h
-fi
-rm -f conftest*
+echo "$as_me:$LINENO: checking for long" >&5
+echo $ECHO_N "checking for long... $ECHO_C" >&6
+if test "${ac_cv_type_long+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((long *) 0)
+ return 0;
+if (sizeof (long))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_long=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_type_long=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
+echo "${ECHO_T}$ac_cv_type_long" >&6
+
+echo "$as_me:$LINENO: checking size of long" >&5
+echo $ECHO_N "checking size of long... $ECHO_C" >&6
+if test "${ac_cv_sizeof_long+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$ac_cv_type_long" = yes; then
+ # The cast to unsigned long works around a bug in the HP C Compiler
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+ # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+ # This bug is HP SR number 8606223364.
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
+test_array [0] = 0
-echo "$ac_t""$ac_cv_struct_tm" 1>&6
-if test $ac_cv_struct_tm = sys/time.h; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining TM_IN_SYS_TIME
-EOF
-cat >> confdefs.h <<\EOF
-#define TM_IN_SYS_TIME 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
+test_array [0] = 0
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
fi
-
-echo $ac_n "checking for tm_zone in struct tm""... $ac_c"
1>&6
-echo "configure:4527: checking for tm_zone in struct tm" >&5
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-cat > conftest.$ac_ext <<EOF
-#line 4530 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <$ac_cv_struct_tm>
-int main() {
-struct tm tm; tm.tm_zone;
-; return 0; }
-EOF
-if { (eval echo configure:4538: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_tm_zone=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_tm_zone=no
-fi
-rm -f conftest*
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
+test_array [0] = 0
-echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
-if test "$ac_cv_struct_tm_zone" = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_TM_ZONE
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_TM_ZONE 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
+test_array [0] = 0
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
else
- echo $ac_n "checking for tzname""... $ac_c" 1>&6
-echo "configure:4561: checking for tzname" >&5
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-cat > conftest.$ac_ext <<EOF
-#line 4564 "configure"
-#include "confdefs.h"
-#include <time.h>
-#ifndef tzname /* For SGI. */
-extern char *tzname[]; /* RS6000 and others reject char **tzname. */
-#endif
-int main() {
-atoi(*tzname);
-; return 0; }
-EOF
-if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_var_tzname=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_var_tzname=no
+ac_lo= ac_hi=
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
+test_array [0] = 0
-echo "$ac_t""$ac_cv_var_tzname" 1>&6
- if test $ac_cv_var_tzname = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_TZNAME
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_TZNAME 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
- fi
+ac_lo=`expr '(' $ac_mid ')' + 1`
fi
-
-
-echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:4600: checking for working const" >&5
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_long=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (long), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+else
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: internal error: not reached in
cross-compile" >&5
+echo "$as_me: error: internal error: not reached in cross-compile"
>&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+long longval () { return (long) (sizeof (long)); }
+unsigned long ulongval () { return (long) (sizeof (long)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
-cat > conftest.$ac_ext <<EOF
-#line 4603 "configure"
-#include "confdefs.h"
-
-int main() {
-
-/* Ultrix mips cc rejects this. */
-typedef int charset[2]; const charset x;
-/* SunOS 4.1.1 cc rejects this. */
-char const *const *ccp;
-char **p;
-/* NEC SVR4.0.2 mips cc rejects this. */
-struct point {int x, y;};
-static struct point const zero = {0,0};
-/* AIX XL C 1.02.0.0 rejects this.
- It does not let you subtract one const X* pointer from another in an arm
- of an if-expression whose if-part is not a constant expression */
-const char *g = "string";
-ccp = &g + (g ? g-g : 0);
-/* HPUX 7.0 cc rejects these. */
-++ccp;
-p = (char**) ccp;
-ccp = (char const *const *) p;
-{ /* SCO 3.2v4 cc rejects this. */
- char *t;
- char const *s = 0 ? (char *) 0 : (char const *) 0;
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ exit (1);
+ if (((long) (sizeof (long))) < 0)
+ {
+ long i = longval ();
+ if (i != ((long) (sizeof (long))))
+ exit (1);
+ fprintf (f, "%ld\n", i);
+ }
+ else
+ {
+ unsigned long i = ulongval ();
+ if (i != ((long) (sizeof (long))))
+ exit (1);
+ fprintf (f, "%lu\n", i);
+ }
+ exit (ferror (f) || fclose (f) != 0);
- *t++ = 0;
-}
-{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
- int x[] = {25, 17};
- const int *foo = &x[0];
- ++foo;
-}
-{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
- typedef const int *iptr;
- iptr p = 0;
- ++p;
-}
-{ /* AIX XL C 1.02.0.0 rejects this saying
- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
- struct s { int j; const int *ap[3]; };
- struct s *b; b->j = 5;
-}
-{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
- const int foo = 10;
+ ;
+ return 0;
}
-
-; return 0; }
-EOF
-if { (eval echo configure:4652: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_const=yes
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_long=`cat conftest.val`
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (long), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_c_const=no
+ ac_cv_sizeof_long=0
fi
-rm -f conftest*
-
-echo "$ac_t""$ac_cv_c_const" 1>&6
-if test $ac_cv_c_const = no; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining const =
-EOF
-cat >> confdefs.h <<\EOF
-#define const
-EOF
-}
-
fi
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
+echo "${ECHO_T}$ac_cv_sizeof_long" >&6
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_LONG $ac_cv_sizeof_long
+_ACEOF
-echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c"
1>&6
-echo "configure:4677: checking whether ${MAKE-make} sets \${MAKE}"
>&5
-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
+echo "$as_me:$LINENO: checking for long long" >&5
+echo $ECHO_N "checking for long long... $ECHO_C" >&6
+if test "${ac_cv_type_long_long+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((long long *) 0)
+ return 0;
+if (sizeof (long long))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_long_long=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_type_long_long=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
+echo "${ECHO_T}$ac_cv_type_long_long" >&6
+
+echo "$as_me:$LINENO: checking size of long long" >&5
+echo $ECHO_N "checking size of long long... $ECHO_C" >&6
+if test "${ac_cv_sizeof_long_long+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$ac_cv_type_long_long" = yes; then
+ # The cast to unsigned long works around a bug in the HP C Compiler
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+ # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+ # This bug is HP SR number 8606223364.
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
+test_array [0] = 0
-cat > conftestmake <<\EOF
-all:
- @echo 'ac_maketemp="${MAKE}"'
-EOF
-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
-eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
-if test -n "$ac_maketemp"; then
- eval ac_cv_prog_make_${ac_make}_set=yes
-else
- eval ac_cv_prog_make_${ac_make}_set=no
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
fi
-rm -f conftestmake
-if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" =
yes"; then
- echo "$ac_t""yes" 1>&6
- SET_MAKE=
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
else
- echo "$ac_t""no" 1>&6
- SET_MAKE="MAKE=${MAKE-make}"
-fi
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
+test_array [0] = 0
-echo $ac_n "checking whether byte ordering is bigendian""... $ac_c"
1>&6
-echo "configure:4702: checking whether byte ordering is bigendian"
>&5
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
+test_array [0] = 0
-ac_cv_c_bigendian=unknown
-# See if sys/param.h defines the BYTE_ORDER macro.
-cat > conftest.$ac_ext <<EOF
-#line 4707 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <sys/param.h>
-int main() {
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
- bogus endian macros
-#endif
-; return 0; }
-EOF
-if { (eval echo configure:4718: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- # It does; now see whether it defined to BIG_ENDIAN or not.
-cat > conftest.$ac_ext <<EOF
-#line 4722 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <sys/param.h>
-int main() {
+ac_lo= ac_hi=
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
+test_array [0] = 0
-#if BYTE_ORDER != BIG_ENDIAN
- not big endian
-#endif
-; return 0; }
-EOF
-if { (eval echo configure:4733: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_bigendian=yes
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_c_bigendian=no
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_lo=`expr '(' $ac_mid ')' + 1`
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_long_long=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long),
77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (long long), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
-fi
-rm -f conftest*
-if test $ac_cv_c_bigendian = unknown; then
-cat > conftest.$ac_ext <<EOF
-#line 4750 "configure"
-#include "confdefs.h"
-main () {
- /* Are we little or big endian? From Harbison&Steele. */
- union
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: internal error: not reached in
cross-compile" >&5
+echo "$as_me: error: internal error: not reached in cross-compile"
>&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+long longval () { return (long) (sizeof (long long)); }
+unsigned long ulongval () { return (long) (sizeof (long long)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ exit (1);
+ if (((long) (sizeof (long long))) < 0)
{
- long l;
- char c[sizeof (long)];
- } u;
- u.l = 1;
- exit (u.c[sizeof (long) - 1] == 1);
+ long i = longval ();
+ if (i != ((long) (sizeof (long long))))
+ exit (1);
+ fprintf (f, "%ld\n", i);
+ }
+ else
+ {
+ unsigned long i = ulongval ();
+ if (i != ((long) (sizeof (long long))))
+ exit (1);
+ fprintf (f, "%lu\n", i);
+ }
+ exit (ferror (f) || fclose (f) != 0);
+
+ ;
+ return 0;
}
-EOF
-if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- ac_cv_c_bigendian=no
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_long_long=`cat conftest.val`
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (long long), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_c_bigendian=yes
+ ac_cv_sizeof_long_long=0
fi
-rm -fr conftest*
fi
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
+echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
+_ACEOF
+
+
+echo "$as_me:$LINENO: checking for void *" >&5
+echo $ECHO_N "checking for void *... $ECHO_C" >&6
+if test "${ac_cv_type_void_p+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if ((void * *) 0)
+ return 0;
+if (sizeof (void *))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_void_p=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_type_void_p=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
+echo "${ECHO_T}$ac_cv_type_void_p" >&6
+
+echo "$as_me:$LINENO: checking size of void *" >&5
+echo $ECHO_N "checking size of void *... $ECHO_C" >&6
+if test "${ac_cv_sizeof_void_p+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$ac_cv_type_void_p" = yes; then
+ # The cast to unsigned long works around a bug in the HP C Compiler
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+ # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+ # This bug is HP SR number 8606223364.
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
+test_array [0] = 0
-echo "$ac_t""$ac_cv_c_bigendian" 1>&6
-if test $ac_cv_c_bigendian = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining WORDS_BIGENDIAN
-EOF
-cat >> confdefs.h <<\EOF
-#define WORDS_BIGENDIAN 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
+test_array [0] = 0
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
fi
-
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo $ac_n "checking size of short""... $ac_c" 1>&6
-echo "configure:4790: checking size of short" >&5
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
+test_array [0] = 0
-cat > conftest.$ac_ext <<EOF
-#line 4793 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-#include <sys/types.h>
-main()
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", sizeof(short));
- exit(0);
+static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
}
-EOF
-if { (eval echo configure:4805: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- ac_cv_sizeof_short=`cat conftestval`
-else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_short=0
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
fi
-rm -fr conftest*
-echo "$ac_t""$ac_cv_sizeof_short" 1>&6
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining SIZEOF_SHORT = $ac_cv_sizeof_short
-EOF
-cat >> confdefs.h <<EOF
-#define SIZEOF_SHORT $ac_cv_sizeof_short
-EOF
-}
-
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if test "$ac_cv_sizeof_short" = 0; then
- echo ""
- echo "*** PANIC *** Configure tests are not working - compiler is broken."
- echo "*** PANIC *** Please examine config.log for compilation errors."
- exit 1
+ac_lo= ac_hi=
fi
-echo $ac_n "checking size of int""... $ac_c" 1>&6
-echo "configure:4833: checking size of int" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 4836 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-#include <sys/types.h>
-main()
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", sizeof(int));
- exit(0);
+static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
}
-EOF
-if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- ac_cv_sizeof_int=`cat conftestval`
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_int=0
-fi
-rm -fr conftest*
-echo "$ac_t""$ac_cv_sizeof_int" 1>&6
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining SIZEOF_INT = $ac_cv_sizeof_int
-EOF
-cat >> confdefs.h <<EOF
-#define SIZEOF_INT $ac_cv_sizeof_int
-EOF
-}
-
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo $ac_n "checking size of long""... $ac_c" 1>&6
-echo "configure:4870: checking size of long" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 4873 "configure"
-#include "confdefs.h"
+ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_void_p=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (void *), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+else
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: internal error: not reached in
cross-compile" >&5
+echo "$as_me: error: internal error: not reached in cross-compile"
>&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+long longval () { return (long) (sizeof (void *)); }
+unsigned long ulongval () { return (long) (sizeof (void *)); }
#include <stdio.h>
-#include <sys/types.h>
-main()
+#include <stdlib.h>
+int
+main ()
{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", sizeof(long));
- exit(0);
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ exit (1);
+ if (((long) (sizeof (void *))) < 0)
+ {
+ long i = longval ();
+ if (i != ((long) (sizeof (void *))))
+ exit (1);
+ fprintf (f, "%ld\n", i);
+ }
+ else
+ {
+ unsigned long i = ulongval ();
+ if (i != ((long) (sizeof (void *))))
+ exit (1);
+ fprintf (f, "%lu\n", i);
+ }
+ exit (ferror (f) || fclose (f) != 0);
+
+ ;
+ return 0;
}
-EOF
-if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- ac_cv_sizeof_long=`cat conftestval`
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_void_p=`cat conftest.val`
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (void *), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_long=0
+ ac_cv_sizeof_void_p=0
fi
-rm -fr conftest*
-echo "$ac_t""$ac_cv_sizeof_long" 1>&6
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining SIZEOF_LONG = $ac_cv_sizeof_long
-EOF
-cat >> confdefs.h <<EOF
-#define SIZEOF_LONG $ac_cv_sizeof_long
-EOF
-}
-
+fi
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
+echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
+_ACEOF
-echo $ac_n "checking size of long long""... $ac_c" 1>&6
-echo "configure:4907: checking size of long long" >&5
-cat > conftest.$ac_ext <<EOF
-#line 4910 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-#include <sys/types.h>
-main()
+echo "$as_me:$LINENO: checking for double" >&5
+echo $ECHO_N "checking for double... $ECHO_C" >&6
+if test "${ac_cv_type_double+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", sizeof(long long));
- exit(0);
+if ((double *) 0)
+ return 0;
+if (sizeof (double))
+ return 0;
+ ;
+ return 0;
}
-EOF
-if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- ac_cv_sizeof_long_long=`cat conftestval`
-else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_long_long=0
-fi
-rm -fr conftest*
-echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
-EOF
-cat >> confdefs.h <<EOF
-#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
-EOF
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_double=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_type_double=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
+echo "${ECHO_T}$ac_cv_type_double" >&6
+
+echo "$as_me:$LINENO: checking size of double" >&5
+echo $ECHO_N "checking size of double... $ECHO_C" >&6
+if test "${ac_cv_sizeof_double+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$ac_cv_type_double" = yes; then
+ # The cast to unsigned long works around a bug in the HP C Compiler
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+ # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+ # This bug is HP SR number 8606223364.
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
+test_array [0] = 0
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo $ac_n "checking size of void *""... $ac_c" 1>&6
-echo "configure:4944: checking size of void *" >&5
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
+test_array [0] = 0
-cat > conftest.$ac_ext <<EOF
-#line 4947 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-#include <sys/types.h>
-main()
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", sizeof(void *));
- exit(0);
+static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
}
-EOF
-if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- ac_cv_sizeof_void_p=`cat conftestval`
-else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_void_p=0
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_lo=$ac_mid; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
fi
-rm -fr conftest*
-echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
-EOF
-cat >> confdefs.h <<EOF
-#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
-EOF
-}
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+ac_lo= ac_hi=
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
+test_array [0] = 0
-echo $ac_n "checking size of double""... $ac_c" 1>&6
-echo "configure:4981: checking size of double" >&5
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_hi=$ac_mid
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-cat > conftest.$ac_ext <<EOF
-#line 4984 "configure"
-#include "confdefs.h"
+ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_double=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (double), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+else
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: internal error: not reached in
cross-compile" >&5
+echo "$as_me: error: internal error: not reached in cross-compile"
>&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+long longval () { return (long) (sizeof (double)); }
+unsigned long ulongval () { return (long) (sizeof (double)); }
#include <stdio.h>
-#include <sys/types.h>
-main()
+#include <stdlib.h>
+int
+main ()
{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", sizeof(double));
- exit(0);
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ exit (1);
+ if (((long) (sizeof (double))) < 0)
+ {
+ long i = longval ();
+ if (i != ((long) (sizeof (double))))
+ exit (1);
+ fprintf (f, "%ld\n", i);
+ }
+ else
+ {
+ unsigned long i = ulongval ();
+ if (i != ((long) (sizeof (double))))
+ exit (1);
+ fprintf (f, "%lu\n", i);
+ }
+ exit (ferror (f) || fclose (f) != 0);
+
+ ;
+ return 0;
}
-EOF
-if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- ac_cv_sizeof_double=`cat conftestval`
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_double=`cat conftest.val`
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute sizeof (double), 77
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
ac_cv_sizeof_double=0
fi
-rm -fr conftest*
-echo "$ac_t""$ac_cv_sizeof_double" 1>&6
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining SIZEOF_DOUBLE = $ac_cv_sizeof_double
-EOF
-cat >> confdefs.h <<EOF
+fi
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
+echo "${ECHO_T}$ac_cv_sizeof_double" >&6
+cat >>confdefs.h <<_ACEOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
-EOF
-}
-
+_ACEOF
-echo $ac_n "checking for long file names""... $ac_c" 1>&6
-echo "configure:5019: checking for long file names" >&5
-ac_cv_sys_long_file_names=yes
+echo "$as_me:$LINENO: checking for long file names" >&5
+echo $ECHO_N "checking for long file names... $ECHO_C" >&6
+if test "${ac_cv_sys_long_file_names+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
# . the current directory, where building will happen
# $prefix/lib where we will be installing things
@@ -5029,411 +13363,618 @@
# /var/tmp likewise
# /usr/tmp likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test
-w "$TMPDIR"; then
- ac_tmpdirs="$TMPDIR"
+ ac_tmpdirs=$TMPDIR
else
ac_tmpdirs='/tmp /var/tmp /usr/tmp'
fi
for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
test -d $ac_dir || continue
test -w $ac_dir || continue # It is less confusing to not echo anything here.
- (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
- (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
- val=`cat $ac_dir/conftest9012345 2>/dev/null`
- if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
+ ac_xdir=$ac_dir/cf$$
+ (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
+ ac_tf1=$ac_xdir/conftest9012345
+ ac_tf2=$ac_xdir/conftest9012346
+ (echo 1 >$ac_tf1) 2>/dev/null
+ (echo 2 >$ac_tf2) 2>/dev/null
+ ac_val=`cat $ac_tf1 2>/dev/null`
+ if test ! -f $ac_tf1 || test "$ac_val" != 1; then
ac_cv_sys_long_file_names=no
- rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+ rm -rf $ac_xdir 2>/dev/null
break
fi
- rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+ rm -rf $ac_xdir 2>/dev/null
done
-
-echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
+echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test $ac_cv_sys_long_file_names = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_LONG_FILE_NAMES
-EOF
-cat >> confdefs.h <<\EOF
+
+cat >>confdefs.h <<\_ACEOF
#define HAVE_LONG_FILE_NAMES 1
-EOF
-}
+_ACEOF
fi
-echo $ac_n "checking for sin""... $ac_c" 1>&6
-echo "configure:5065: checking for sin" >&5
+echo "$as_me:$LINENO: checking for sin" >&5
+echo $ECHO_N "checking for sin... $ECHO_C" >&6
+if test "${ac_cv_func_sin+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define sin to an innocuous variant, in case <limits.h> declares sin.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define sin innocuous_sin
-cat > conftest.$ac_ext <<EOF
-#line 5068 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char sin(); below. */
-#include <assert.h>
+ which can conflict with char sin (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef sin
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char sin();
-
-int main() {
-
+char sin ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_sin) || defined (__stub___sin)
choke me
#else
-sin();
+char (*f) () = sin;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:5091: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_sin=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_sin=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+return f != sin;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_sin=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_sin=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
+echo "${ECHO_T}$ac_cv_func_sin" >&6
+if test $ac_cv_func_sin = yes; then
:
else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
-echo "configure:5109: checking for sin in -lm" >&5
-ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
+echo "$as_me:$LINENO: checking for sin in -lm" >&5
+echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
+if test "${ac_cv_lib_m_sin+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lm "
-cat > conftest.$ac_ext <<EOF
-#line 5114 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char sin();
-
-int main() {
-sin()
-; return 0; }
-EOF
-if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_lib
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+char sin ();
+int
+main ()
+{
+sin ();
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_m_sin=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_m_sin=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
+echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
+if test $ac_cv_lib_m_sin = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBM 1
+_ACEOF
+
+ LIBS="-lm $LIBS"
- LIBS="-lm $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
-
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
-cat > conftest.$ac_ext <<EOF
-#line 5160 "configure"
-#include "confdefs.h"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <math.h>
-int main() {
+int
+main ()
+{
return atanh(1.0) + asinh(1.0) + acosh(1.0);
-; return 0; }
-EOF
-if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_INVERSE_HYPERBOLIC
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_INVERSE_HYPERBOLIC 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_INVERSE_HYPERBOLIC 1
+_ACEOF
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+
+for ac_func in mkstemp
+do
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
-for ac_func in mkstemp
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5186: checking for $ac_func" >&5
+#undef $ac_func
-cat > conftest.$ac_ext <<EOF
-#line 5189 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
+
+{ echo "$as_me:$LINENO: checking type of mail spool file locking..."
>&5
+echo "$as_me: checking type of mail spool file locking..." >&6;}
+
-echo "checking type of mail spool file locking" 1>&6
-echo "configure:5241: checking type of mail spool file locking" >&5
for ac_func in lockf flock
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5245: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 5248 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
-test -z "$mail_locking" -a "$mail_use_flock" = "yes"
&& mail_locking=flock
-test -z "$mail_locking" -a "$mail_use_lockf" = "yes"
&& mail_locking=lockf
-test -z "$mail_locking" -a "$mail_use_locking" = "yes"
&& mail_locking=locking
-if test -z "$mail_locking"; then
+test -z "$with_mail_locking" -a "$mail_use_flock" = "yes"
&& with_mail_locking=flock
+test -z "$with_mail_locking" -a "$mail_use_lockf" = "yes"
&& with_mail_locking=lockf
+test -z "$with_mail_locking" -a "$mail_use_locking" =
"yes" && with_mail_locking=locking
+if test -z "$with_mail_locking"; then
case "$opsys" in cygwin* | mingw*)
- mail_locking=pop ;;
+ with_mail_locking=pop ;;
esac
fi
-if test "$mail_locking" = "lockf"; then { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining MAIL_LOCK_LOCKF
-EOF
-cat >> confdefs.h <<\EOF
+if test "$with_mail_locking" = "lockf"; then cat
>>confdefs.h <<\_ACEOF
#define MAIL_LOCK_LOCKF 1
-EOF
-}
+_ACEOF
-elif test "$mail_locking" = "flock"; then { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining MAIL_LOCK_FLOCK
-EOF
-cat >> confdefs.h <<\EOF
+elif test "$with_mail_locking" = "flock"; then cat
>>confdefs.h <<\_ACEOF
#define MAIL_LOCK_FLOCK 1
-EOF
-}
+_ACEOF
-elif test "$mail_locking" = "locking"; then { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining MAIL_LOCK_LOCKING
-EOF
-cat >> confdefs.h <<\EOF
+elif test "$with_mail_locking" = "locking"; then cat
>>confdefs.h <<\_ACEOF
#define MAIL_LOCK_LOCKING 1
-EOF
-}
+_ACEOF
-elif test "$mail_locking" = "pop"; then
+elif test "$with_mail_locking" = "pop"; then
with_pop=yes
- mail_locking=
-else mail_locking="dot-locking"; { test "$extra_verbose" =
"yes" && cat << \EOF
- Defining MAIL_LOCK_DOT
-EOF
-cat >> confdefs.h <<\EOF
+ with_mail_locking=
+elif test "$with_mail_locking" = "mmdf"; then cat
>>confdefs.h <<\_ACEOF
+#define MAIL_LOCK_MMDF 1
+_ACEOF
+
+else with_mail_locking="file"; cat >>confdefs.h <<\_ACEOF
#define MAIL_LOCK_DOT 1
-EOF
-}
+_ACEOF
fi
-test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" !=
"yes" && \
+test "$with_mail_locking" = "lockf" -a
"$ac_cv_func_lockf" != "yes" && \
{ echo "Error:" "lockf mail locking requested but not available."
>&2; exit 1; }
-test "$mail_locking" = "flock" -a "$ac_cv_func_flock" !=
"yes" && \
+test "$with_mail_locking" = "flock" -a
"$ac_cv_func_flock" != "yes" && \
{ echo "Error:" "flock mail locking requested but not available."
>&2; exit 1; }
-test "$mail_locking" = "locking" -a "$ac_cv_func_locking"
!= "yes" && \
+test "$with_mail_locking" = "locking" -a
"$ac_cv_func_locking" != "yes" && \
{ echo "Error:" "locking mail locking requested but not
available." >&2; exit 1; }
case "$opsys" in decosf*)
-echo $ac_n "checking for cma_open in -lpthreads""... $ac_c"
1>&6
-echo "configure:5353: checking for cma_open in -lpthreads" >&5
-ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
+echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
+echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
+if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpthreads $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lpthreads "
-cat > conftest.$ac_ext <<EOF
-#line 5358 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char cma_open();
-
-int main() {
-cma_open()
-; return 0; }
-EOF
-if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_lib
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+char cma_open ();
+int
+main ()
+{
+cma_open ();
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_pthreads_cma_open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_pthreads_cma_open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
+echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
+if test $ac_cv_lib_pthreads_cma_open = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBPTHREADS 1
+_ACEOF
- LIBS="-lpthreads $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lpthreads\" to \$LIBS";
fi
+ LIBS="-lpthreads $LIBS"
-else
- echo "$ac_t""no" 1>&6
fi
-
test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
c_switch_site="$c_switch_site -threads" ;;
esac
-echo $ac_n "checking whether the -xildoff compiler flag is required""...
$ac_c" 1>&6
-echo "configure:5406: checking whether the -xildoff compiler flag is
required" >&5
+echo "$as_me:$LINENO: checking whether the -xildoff compiler flag is
required" >&5
+echo $ECHO_N "checking whether the -xildoff compiler flag is required...
$ECHO_C" >&6
if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild
' > /dev/null ; then
if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild
' > /dev/null ;
- then echo "$ac_t""no" 1>&6;
- 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
+ then echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6;
+ else echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; ld_switch_site="$ld_switch_site
-xildoff" && if test "$extra_verbose" = "yes"; then echo
" Appending \"-xildoff\" to \$ld_switch_site"; fi
fi
- else echo "$ac_t""no" 1>&6
+ else echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
if test "$opsys" = "sol2"; then
if test "$os_release" -ge 506; then
- echo $ac_n "checking for \"-z ignore\" linker flag""...
$ac_c" 1>&6
-echo "configure:5418: checking for \"-z ignore\" linker flag"
>&5
+ echo "$as_me:$LINENO: checking for \"-z ignore\" linker flag"
>&5
+echo $ECHO_N "checking for \"-z ignore\" linker flag... $ECHO_C"
>&6
case "`ld -h 2>&1`" in
- *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
+ *-z\ ignore\|record* ) echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
ld_switch_site="-z ignore $ld_switch_site" && if test
"$extra_verbose" = "yes"; then echo " Prepending \"-z
ignore\" to \$ld_switch_site"; fi ;;
- *) echo "$ac_t""no" 1>&6 ;;
+ *) echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6 ;;
esac
fi
fi
-echo "checking "for specified window system"" 1>&6
-echo "configure:5429: checking "for specified window system""
>&5
+{ echo "$as_me:$LINENO: checking \"for specified window
system\"..." >&5
+echo "$as_me: checking \"for specified window system\"..."
>&6;}
GNOME_CONFIG=no
GTK_CONFIG=no
if test "$with_gnome" != "no"; then
- echo $ac_n "checking for GNOME configuration script""... $ac_c"
1>&6
-echo "configure:5437: checking for GNOME configuration script" >&5
+ echo "$as_me:$LINENO: checking for GNOME configuration script" >&5
+echo $ECHO_N "checking for GNOME configuration script... $ECHO_C" >&6
for possible in gnome-config
do
possible_version=`${possible} --version 2> /dev/null`
@@ -5444,241 +13985,340 @@
break
fi
done
- echo "$ac_t""${GNOME_CONFIG}" 1>&6
+ echo "$as_me:$LINENO: result: ${GNOME_CONFIG}" >&5
+echo "${ECHO_T}${GNOME_CONFIG}" >&6
fi
if test "${GNOME_CONFIG}" != "no"; then
GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_GNOME
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_GNOME 1
-EOF
-}
+_ACEOF
libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"${GNOME_LIBS}\" to \$libs_gtk"; fi
c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
fi
if test "$with_gtk" != "no";then
- echo $ac_n "checking for GTK configuration script""... $ac_c"
1>&6
-echo "configure:5468: checking for GTK configuration script" >&5
+ echo "$as_me:$LINENO: checking for GTK configuration script" >&5
+echo $ECHO_N "checking for GTK configuration script... $ECHO_C" >&6
for possible in gtk12-config gtk14-config gtk-config
do
possible_version=`${possible} --version 2> /dev/null`
if test "x${possible_version}" != "x"; then
GTK_CONFIG="${possible}"
case "${possible_version}" in
- 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your
version of GTK." 1>&2; with_gtk=no;;
- 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now"
1>&2; with_gtk=no;;
+ 1.0.*) { echo "$as_me:$LINENO: WARNING: GTK 1.2 is required, please
upgrade your version of GTK." >&5
+echo "$as_me: WARNING: GTK 1.2 is required, please upgrade your version of
GTK." >&2;}; with_gtk=no;;
+ 1.3.*) { echo "$as_me:$LINENO: WARNING: GTK 1.3 is not supported right
now" >&5
+echo "$as_me: WARNING: GTK 1.3 is not supported right now" >&2;};
with_gtk=no;;
1.2.*)
with_gtk=yes
break
;;
- *) echo "configure: warning: Found unsupported version of GTK:
$possible_version" 1>&2;;
+ *) { echo "$as_me:$LINENO: WARNING: Found unsupported version of GTK:
$possible_version" >&5
+echo "$as_me: WARNING: Found unsupported version of GTK: $possible_version"
>&2;};;
esac
fi
done
- echo "$ac_t""${GTK_CONFIG}" 1>&6
+ echo "$as_me:$LINENO: result: ${GTK_CONFIG}" >&5
+echo "${ECHO_T}${GTK_CONFIG}" >&6
fi
if test "${GTK_CONFIG}" != "no"; then
- echo $ac_n "checking gtk version""... $ac_c" 1>&6
-echo "configure:5490: checking gtk version" >&5
+ echo "$as_me:$LINENO: checking gtk version" >&5
+echo $ECHO_N "checking gtk version... $ECHO_C" >&6
GTK_VERSION=`${GTK_CONFIG} --version`
- echo "$ac_t""${GTK_VERSION}" 1>&6
+ echo "$as_me:$LINENO: result: ${GTK_VERSION}" >&5
+echo "${ECHO_T}${GTK_VERSION}" >&6
- echo $ac_n "checking gtk libs""... $ac_c" 1>&6
-echo "configure:5495: checking gtk libs" >&5
+ echo "$as_me:$LINENO: checking gtk libs" >&5
+echo $ECHO_N "checking gtk libs... $ECHO_C" >&6
GTK_LIBS=`${GTK_CONFIG} --libs`
libs_gtk="$libs_gtk ${GTK_LIBS}" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"${GTK_LIBS}\" to \$libs_gtk"; fi
- echo "$ac_t""${GTK_LIBS}" 1>&6
+ echo "$as_me:$LINENO: result: ${GTK_LIBS}" >&5
+echo "${ECHO_T}${GTK_LIBS}" >&6
- echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
-echo "configure:5501: checking gtk cflags" >&5
+ echo "$as_me:$LINENO: checking gtk cflags" >&5
+echo $ECHO_N "checking gtk cflags... $ECHO_C" >&6
GTK_CFLAGS=`${GTK_CONFIG} --cflags`
if test "$GCC" = "yes"; then
GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
fi
c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
- echo "$ac_t""${GTK_CFLAGS}" 1>&6
-
+ echo "$as_me:$LINENO: result: ${GTK_CFLAGS}" >&5
+echo "${ECHO_T}${GTK_CFLAGS}" >&6
-echo $ac_n "checking for main in -lgdk_imlib""... $ac_c"
1>&6
-echo "configure:5511: checking for main in -lgdk_imlib" >&5
-ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for main in -lgdk_imlib" >&5
+echo $ECHO_N "checking for main in -lgdk_imlib... $ECHO_C" >&6
+if test "${ac_cv_lib_gdk_imlib_main+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgdk_imlib $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lgdk_imlib "
-cat > conftest.$ac_ext <<EOF
-#line 5516 "configure"
-#include "confdefs.h"
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+main ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_gdk_imlib_main=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_gdk_imlib_main=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_imlib_main" >&5
+echo "${ECHO_T}$ac_cv_lib_gdk_imlib_main" >&6
+if test $ac_cv_lib_gdk_imlib_main = yes; then
libs_gtk="-lgdk_imlib $libs_gtk" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-lgdk_imlib\" to \$libs_gtk"; fi
-else
- echo "$ac_t""no" 1>&6
fi
-
+ echo "$as_me:$LINENO: checking for Imlib_init in -lImlib" >&5
+echo $ECHO_N "checking for Imlib_init in -lImlib... $ECHO_C" >&6
+if test "${ac_cv_lib_Imlib_Imlib_init+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lImlib $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c"
1>&6
-echo "configure:5545: checking for Imlib_init in -lImlib" >&5
-ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lImlib "
-cat > conftest.$ac_ext <<EOF
-#line 5550 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char Imlib_init();
-
-int main() {
-Imlib_init()
-; return 0; }
-EOF
-if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char Imlib_init ();
+int
+main ()
+{
+Imlib_init ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Imlib_Imlib_init=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Imlib_Imlib_init=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Imlib_Imlib_init" >&5
+echo "${ECHO_T}$ac_cv_lib_Imlib_Imlib_init" >&6
+if test $ac_cv_lib_Imlib_Imlib_init = yes; then
libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose"
= "yes"; then echo " Appending \"-lImlib\" to
\$libs_gtk"; fi
-else
- echo "$ac_t""no" 1>&6
fi
- for ac_func in gdk_imlib_init
+for ac_func in gdk_imlib_init
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5584: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 5587 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_XPM
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_XPM 1
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_GTK
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_GTK 1
-EOF
-}
+_ACEOF
window_system=gtk
with_gtk=yes
if test "$with_x11" != "no"; then
- echo "configure: warning: Configuring GTK, forcing with_x11 to no"
1>&2
+ { echo "$as_me:$LINENO: WARNING: Configuring GTK, forcing with_x11 to no"
>&5
+echo "$as_me: WARNING: Configuring GTK, forcing with_x11 to no" >&2;}
with_x11=no
fi
for feature in scrollbars toolbars menubars dialogs widgets
do
- eval "feature_value=\${with_${feature}}"
+ eval "feature_value=\${enable_${feature}}"
case "${feature_value}" in
yes|no|gtk|"" )
;;
* )
feature_conflict_with_gtk=yes
- echo "configure: warning: --with-${feature}=${feature_value} is incompatible
with --with-gtk" 1>&2 ;;
+ { echo "$as_me:$LINENO: WARNING: --enable-${feature}=${feature_value} is
incompatible with --with-gtk" >&5
+echo "$as_me: WARNING: --enable-${feature}=${feature_value} is incompatible with
--with-gtk" >&2;} ;;
esac
done
if test "${feature_conflict_with_gtk}" = "yes"; then
{ echo "Error:" "One or more GUI toolkit features conflict with
GTK" >&2; exit 1; }
fi
- test "${with_scrollbars}" != "no" &&
with_scrollbars=gtk
- test "${with_toolbars}" != "no" && with_toolbars=gtk
- test "${with_menubars}" != "no" && with_menubars=gtk
- test "${with_dialogs}" != "no" && with_dialogs=gtk
- test "${with_widgets}" != "no" && with_widgets=gtk
+ test "${enable_scrollbars}" != "no" &&
enable_scrollbars=gtk
+ test "${enable_toolbars}" != "no" &&
enable_toolbars=gtk
+ test "${enable_menubars}" != "no" &&
enable_menubars=gtk
+ test "${enable_dialogs}" != "no" &&
enable_dialogs=gtk
+ test "${enable_widgets}" != "no" &&
enable_widgets=gtk
OLD_CFLAGS="${CFLAGS}"
OLD_CPPFLAGS="${CPPFLAGS}"
@@ -5686,169 +14326,359 @@
CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
- for ac_hdr in glade/glade.h glade.h
+
+
+for ac_header in glade/glade.h glade.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:5694: checking for $ac_hdr" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 5697 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5702: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
-
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ eval "$as_ac_Header=\$ac_header_preproc"
fi
-done
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-
-echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
-echo "configure:5733: checking for main in -lxml" >&5
-ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lxml "
-cat > conftest.$ac_ext <<EOF
-#line 5738 "configure"
-#include "confdefs.h"
-
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
fi
-rm -f conftest*
-xe_check_libs=""
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lxml\" to \$libs_gtk";
fi
-else
- echo "$ac_t""no" 1>&6
fi
-
-
-echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
-echo "configure:5767: checking for main in -lglade" >&5
-ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
+done
-xe_check_libs=" -lglade "
-cat > conftest.$ac_ext <<EOF
-#line 5772 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking for main in -lxml" >&5
+echo $ECHO_N "checking for main in -lxml... $ECHO_C" >&6
+if test "${ac_cv_lib_xml_main+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lxml $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose"
= "yes"; then echo " Prepending \"-lglade\" to
\$libs_gtk"; fi
-else
- echo "$ac_t""no" 1>&6
+int
+main ()
+{
+main ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_xml_main=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_xml_main=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_xml_main" >&5
+echo "${ECHO_T}$ac_cv_lib_xml_main" >&6
+if test $ac_cv_lib_xml_main = yes; then
+ libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lxml\" to \$libs_gtk";
fi
fi
+ echo "$as_me:$LINENO: checking for main in -lglade" >&5
+echo $ECHO_N "checking for main in -lglade... $ECHO_C" >&6
+if test "${ac_cv_lib_glade_main+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lglade $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for main in -lglade-gnome""... $ac_c"
1>&6
-echo "configure:5801: checking for main in -lglade-gnome" >&5
-ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
+int
+main ()
+{
+main ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_glade_main=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_glade_main=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_glade_main" >&5
+echo "${ECHO_T}$ac_cv_lib_glade_main" >&6
+if test $ac_cv_lib_glade_main = yes; then
+ libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose"
= "yes"; then echo " Prepending \"-lglade\" to
\$libs_gtk"; fi
+fi
-xe_check_libs=" -lglade-gnome "
-cat > conftest.$ac_ext <<EOF
-#line 5806 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking for main in -lglade-gnome" >&5
+echo $ECHO_N "checking for main in -lglade-gnome... $ECHO_C" >&6
+if test "${ac_cv_lib_glade_gnome_main+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lglade-gnome $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+main ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_glade_gnome_main=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_glade_gnome_main=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_glade_gnome_main" >&5
+echo "${ECHO_T}$ac_cv_lib_glade_gnome_main" >&6
+if test $ac_cv_lib_glade_gnome_main = yes; then
libs_gtk="-lglade-gnome $libs_gtk" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-lglade-gnome\" to \$libs_gtk"; fi
-else
- echo "$ac_t""no" 1>&6
fi
-
- cat > conftest.$ac_ext <<EOF
-#line 5834 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <glade/glade-xml.h>
-EOF
+
+_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "char \*txtdomain;" >/dev/null 2>&1; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" &&
cat << \EOF
- Defining LIBGLADE_XML_TXTDOMAIN = 1
-EOF
-cat >> confdefs.h <<\EOF
+ $EGREP "char \*txtdomain;" >/dev/null 2>&1; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ cat >>confdefs.h <<\_ACEOF
#define LIBGLADE_XML_TXTDOMAIN 1
-EOF
-}
+_ACEOF
else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
rm -f conftest*
@@ -5883,20 +14713,19 @@
if test -r "$dir/libX11.a"; then x_libraries="$dir"; break;
fi
done
fi
+
+
+if test "x$ac_path_x_has_been_run" != xyes; then
+ echo "$as_me:$LINENO: checking for X" >&5
+echo $ECHO_N "checking for X... $ECHO_C" >&6
- # If we find X, set shell vars x_includes and x_libraries to the
-# paths, otherwise set no_x=yes.
-# Uses ac_ vars as temps to allow command line to override cache and checks.
-# --without-x overrides everything else, but does not touch the cache.
-echo $ac_n "checking for X""... $ac_c" 1>&6
-echo "configure:5893: checking for X" >&5
+ac_path_x_has_been_run=yes
# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
withval="$with_x"
- :
-fi
+fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
# The user explicitly disabled X.
@@ -5906,17 +14735,19 @@
# Both variables are already set.
have_x=yes
else
-
-# One or both of the vars are not set, and there is no cached value.
-ac_x_includes=NO ac_x_libraries=NO
-rm -fr conftestdir
-if mkdir conftestdir; then
- cd conftestdir
+ if test "${ac_cv_have_x+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # One or both of the vars are not set, and there is no cached value.
+ac_x_includes=no ac_x_libraries=no
+rm -fr conftest.dir
+if mkdir conftest.dir; then
+ cd conftest.dir
# Make sure to not put "make" in the Imakefile rules, since we grep it
out.
- cat > Imakefile <<'EOF'
+ cat >Imakefile <<'_ACEOF'
acfindx:
@echo 'ac_im_incroot="${INCROOT}";
ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
-EOF
+_ACEOF
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
# GNU make sometimes prints "make[1]: Entering...", which would confuse
us.
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
@@ -5930,167 +14761,167 @@
# Screen out bogus values from the imake configuration. They are
# bogus both because they are the default anyway, and because
# using them would break gcc on systems where it needs fixed includes.
- case "$ac_im_incroot" in
+ case $ac_im_incroot in
/usr/include) ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" &&
ac_x_includes="$ac_im_incroot" ;;
+ *) test -f "$ac_im_incroot/X11/Xos.h" &&
ac_x_includes=$ac_im_incroot;;
esac
- case "$ac_im_usrlibdir" in
+ case $ac_im_usrlibdir in
/usr/lib | /lib) ;;
- *) test -d "$ac_im_usrlibdir" &&
ac_x_libraries="$ac_im_usrlibdir" ;;
+ *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
esac
fi
cd ..
- rm -fr conftestdir
+ rm -fr conftest.dir
fi
-if test "$ac_x_includes" = NO; then
- # Guess where to find include files, by looking for this one X11 .h file.
- test -z "$x_direct_test_include" &&
x_direct_test_include=X11/Intrinsic.h
+# Standard set of common directories for X headers.
+# Check X11 before X11Rn because it is often a symlink to the current release.
+ac_x_header_dirs='
+/usr/X11/include
+/usr/X11R6/include
+/usr/X11R5/include
+/usr/X11R4/include
+
+/usr/include/X11
+/usr/include/X11R6
+/usr/include/X11R5
+/usr/include/X11R4
+
+/usr/local/X11/include
+/usr/local/X11R6/include
+/usr/local/X11R5/include
+/usr/local/X11R4/include
+
+/usr/local/include/X11
+/usr/local/include/X11R6
+/usr/local/include/X11R5
+/usr/local/include/X11R4
+
+/usr/X386/include
+/usr/x386/include
+/usr/XFree86/include/X11
+
+/usr/include
+/usr/local/include
+/usr/unsupported/include
+/usr/athena/include
+/usr/local/x11r5/include
+/usr/lpp/Xamples/include
+
+/usr/openwin/include
+/usr/openwin/share/include'
+if test "$ac_x_includes" = no; then
+ # Guess where to find include files, by looking for a specified header file.
# First, try using that file with no special directory specified.
-cat > conftest.$ac_ext <<EOF
-#line 5953 "configure"
-#include "confdefs.h"
-#include <$x_direct_test_include>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5958: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Intrinsic.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
# We can compile using X headers with no special include directory.
ac_x_includes=
else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- # Look for the header file in a standard set of common directories.
-# Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in \
- /usr/X11/include \
- /usr/X11R6/include \
- /usr/X11R5/include \
- /usr/X11R4/include \
- \
- /usr/include/X11 \
- /usr/include/X11R6 \
- /usr/include/X11R5 \
- /usr/include/X11R4 \
- \
- /usr/local/X11/include \
- /usr/local/X11R6/include \
- /usr/local/X11R5/include \
- /usr/local/X11R4/include \
- \
- /usr/local/include/X11 \
- /usr/local/include/X11R6 \
- /usr/local/include/X11R5 \
- /usr/local/include/X11R4 \
- \
- /usr/X386/include \
- /usr/x386/include \
- /usr/XFree86/include/X11 \
- \
- /usr/include \
- /usr/local/include \
- /usr/unsupported/include \
- /usr/athena/include \
- /usr/local/x11r5/include \
- /usr/lpp/Xamples/include \
- \
- /usr/openwin/include \
- /usr/openwin/share/include \
- ; \
- do
- if test -r "$ac_dir/$x_direct_test_include"; then
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ for ac_dir in $ac_x_header_dirs; do
+ if test -r "$ac_dir/X11/Intrinsic.h"; then
ac_x_includes=$ac_dir
break
fi
- done
+done
fi
-rm -f conftest*
-fi # $ac_x_includes = NO
+rm -f conftest.err conftest.$ac_ext
+fi # $ac_x_includes = no
-if test "$ac_x_libraries" = NO; then
+if test "$ac_x_libraries" = no; then
# Check for the libraries.
-
- test -z "$x_direct_test_library" && x_direct_test_library=Xt
- test -z "$x_direct_test_function" &&
x_direct_test_function=XtMalloc
-
# See if we find them without any special options.
# Don't add to $LIBS permanently.
- ac_save_LIBS="$LIBS"
- LIBS="-l$x_direct_test_library $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 6027 "configure"
-#include "confdefs.h"
-
-int main() {
-${x_direct_test_function}()
-; return 0; }
-EOF
-if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
+ ac_save_LIBS=$LIBS
+ LIBS="-lXt $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Intrinsic.h>
+int
+main ()
+{
+XtMalloc (0)
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
-# First see if replacing the include by lib works.
-# Check X11 before X11Rn because it is often a symlink to the current release.
-for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
- /usr/X11/lib \
- /usr/X11R6/lib \
- /usr/X11R5/lib \
- /usr/X11R4/lib \
- \
- /usr/lib/X11 \
- /usr/lib/X11R6 \
- /usr/lib/X11R5 \
- /usr/lib/X11R4 \
- \
- /usr/local/X11/lib \
- /usr/local/X11R6/lib \
- /usr/local/X11R5/lib \
- /usr/local/X11R4/lib \
- \
- /usr/local/lib/X11 \
- /usr/local/lib/X11R6 \
- /usr/local/lib/X11R5 \
- /usr/local/lib/X11R4 \
- \
- /usr/X386/lib \
- /usr/x386/lib \
- /usr/XFree86/lib/X11 \
- \
- /usr/lib \
- /usr/local/lib \
- /usr/unsupported/lib \
- /usr/athena/lib \
- /usr/local/x11r5/lib \
- /usr/lpp/Xamples/lib \
- /lib/usr/lib/X11 \
- \
- /usr/openwin/lib \
- /usr/openwin/share/lib \
- ; \
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+LIBS=$ac_save_LIBS
+for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed
s/include/lib/g`
do
+ # Don't even attempt the hair of trying to link an X program!
for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
+ if test -r $ac_dir/libXt.$ac_extension; then
ac_x_libraries=$ac_dir
break 2
fi
done
done
fi
-rm -f conftest*
-fi # $ac_x_libraries = NO
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi # $ac_x_libraries = no
-if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
+if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
# Didn't find X anywhere. Cache the known absence of X.
ac_cv_have_x="have_x=no"
else
@@ -6098,12 +14929,15 @@
ac_cv_have_x="have_x=yes \
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
+fi
+
fi
eval "$ac_cv_have_x"
fi # $with_x != no
if test "$have_x" != yes; then
- echo "$ac_t""$have_x" 1>&6
+ echo "$as_me:$LINENO: result: $have_x" >&5
+echo "${ECHO_T}$have_x" >&6
no_x=yes
else
# If each of the values was on the command line, it overrides each guess.
@@ -6112,18 +14946,21 @@
# Update the cache value to reflect the command line values.
ac_cv_have_x="have_x=yes \
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
- echo "$ac_t""libraries $x_libraries, headers $x_includes"
1>&6
+ # It might be that x_includes is empty (headers are found in the
+ # standard search path. Then output the corresponding message
+ ac_out_x_includes=$x_includes
+ test "x$x_includes" = x && ac_out_x_includes="in standard
search path"
+ echo "$as_me:$LINENO: result: libraries $x_libraries, headers
$ac_out_x_includes" >&5
+echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes"
>&6
fi
+fi
if test "$no_x" = yes; then
# Not all programs may use this symbol, but it does not hurt to define it.
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining X_DISPLAY_MISSING
-EOF
-cat >> confdefs.h <<\EOF
+
+cat >>confdefs.h <<\_ACEOF
#define X_DISPLAY_MISSING 1
-EOF
-}
+_ACEOF
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
@@ -6136,60 +14973,117 @@
X_LIBS="$X_LIBS -L$x_libraries"
# For Solaris; some versions of Sun CC require a space after -R and
# others require no space. Words are not sufficient . . . .
- case "`(uname -sr) 2>/dev/null`" in
+ case `(uname -sr) 2>/dev/null` in
"SunOS 5"*)
- echo $ac_n "checking whether -R must be followed by a space""...
$ac_c" 1>&6
-echo "configure:6143: checking whether -R must be followed by a space"
>&5
- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
- cat > conftest.$ac_ext <<EOF
-#line 6146 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking whether -R must be followed by a space"
>&5
+echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C"
>&6
+ ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
+int
+main ()
+{
-; return 0; }
-EOF
-if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
ac_R_nospace=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_nospace=no
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_R_nospace=no
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
if test $ac_R_nospace = yes; then
- echo "$ac_t""no" 1>&6
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
X_LIBS="$X_LIBS -R$x_libraries"
else
LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat > conftest.$ac_ext <<EOF
-#line 6169 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
+int
+main ()
+{
-; return 0; }
-EOF
-if { (eval echo configure:6176: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
ac_R_space=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_space=no
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_R_space=no
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
if test $ac_R_space = yes; then
- echo "$ac_t""yes" 1>&6
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
X_LIBS="$X_LIBS -R $x_libraries"
else
- echo "$ac_t""neither works" 1>&6
+ echo "$as_me:$LINENO: result: neither works" >&5
+echo "${ECHO_T}neither works" >&6
fi
fi
- LIBS="$ac_xsave_LIBS"
+ LIBS=$ac_xsave_LIBS
esac
fi
@@ -6200,505 +15094,1004 @@
if test "$ISC" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
else
- # Martyn.Johnson(a)cl.cam.ac.uk says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And karl(a)cs.umb.edu says
+ # Martyn Johnson says this is needed for Ultrix, if the X
+ # libraries were built with DECnet support. And Karl Berry says
# the Alpha needs dnet_stub (dnet does not exist).
- if test "$with_dnet" = "no" ; then
-ac_cv_lib_dnet_dnet_ntoa=no
+ ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char XOpenDisplay ();
+int
+main ()
+{
+XOpenDisplay ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c"
1>&6
-echo "configure:6212: checking for dnet_ntoa in -ldnet" >&5
-ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
+echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
+echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
+if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldnet $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -ldnet "
-cat > conftest.$ac_ext <<EOF
-#line 6217 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char dnet_ntoa();
+char dnet_ntoa ();
+int
+main ()
+{
+dnet_ntoa ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dnet_dnet_ntoa=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-int main() {
-dnet_ntoa()
-; return 0; }
-EOF
-if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ac_cv_lib_dnet_dnet_ntoa=no
fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
+echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
+if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
-else
- echo "$ac_t""no" 1>&6
-fi
-
fi
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
+ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub"
>&5
+echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
+if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldnet_stub $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c"
1>&6
-echo "configure:6252: checking for dnet_ntoa in -ldnet_stub" >&5
-ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -ldnet_stub "
-cat > conftest.$ac_ext <<EOF
-#line 6257 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char dnet_ntoa();
-
-int main() {
-dnet_ntoa()
-; return 0; }
-EOF
-if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char dnet_ntoa ();
+int
+main ()
+{
+dnet_ntoa ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dnet_stub_dnet_ntoa=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dnet_stub_dnet_ntoa=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
+echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
+if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS="$ac_xsave_LIBS"
# msh(a)cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
# to get the SysV transport functions.
- # chad(a)anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
+ # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
# needs -lnsl.
# The nsl library prevents programs from opening the X display
- # on Irix 5.2, according to dickey(a)clark.net.
- echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
-echo "configure:6297: checking for gethostbyname" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 6300 "configure"
-#include "confdefs.h"
+ # on Irix 5.2, according to T.E. Dickey.
+ # The functions gethostbyname, getservbyname, and inet_addr are
+ # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
+ echo "$as_me:$LINENO: checking for gethostbyname" >&5
+echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
+if test "${ac_cv_func_gethostbyname+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define gethostbyname to an innocuous variant, in case <limits.h> declares
gethostbyname.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define gethostbyname innocuous_gethostbyname
+
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname(); below. */
-#include <assert.h>
+ which can conflict with char gethostbyname (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef gethostbyname
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char gethostbyname();
-
-int main() {
-
+char gethostbyname ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
-gethostbyname();
+char (*f) () = gethostbyname;
+#endif
+#ifdef __cplusplus
+}
#endif
-; return 0; }
-EOF
-if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=no"
-fi
-rm -f conftest*
+int
+main ()
+{
+return f != gethostbyname;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_gethostbyname=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" =
yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
+ac_cv_func_gethostbyname=no
fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
+echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
if test $ac_cv_func_gethostbyname = no; then
+ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
+echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
+if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lnsl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c"
1>&6
-echo "configure:6344: checking for gethostbyname in -lnsl" >&5
-ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lnsl "
-cat > conftest.$ac_ext <<EOF
-#line 6349 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char gethostbyname();
-
-int main() {
-gethostbyname()
-; return 0; }
-EOF
-if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char gethostbyname ();
+int
+main ()
+{
+gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_nsl_gethostbyname=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_nsl_gethostbyname=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
+echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
+if test $ac_cv_lib_nsl_gethostbyname = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
-else
- echo "$ac_t""no" 1>&6
fi
+ if test $ac_cv_lib_nsl_gethostbyname = no; then
+ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
+echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
+if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lbsd $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char gethostbyname ();
+int
+main ()
+{
+gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_bsd_gethostbyname=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_bsd_gethostbyname=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
+echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
+if test $ac_cv_lib_bsd_gethostbyname = yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
+fi
fi
+ fi
# lieder(a)skyler.mavd.honeywell.com says without -lsocket,
# socket/setsockopt and other routines are undefined under SCO ODT
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
- # on later versions), says simon(a)lia.di.epfl.ch: it contains
- # gethostby* variants that don't use the nameserver (or something).
- # -lsocket must be given before -lnsl if both are needed.
- # We assume that if connect needs -lnsl, so does gethostbyname.
- echo $ac_n "checking for connect""... $ac_c" 1>&6
-echo "configure:6390: checking for connect" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 6393 "configure"
-#include "confdefs.h"
+ # on later versions), says Simon Leinen: it contains gethostby*
+ # variants that don't use the name server (or something). -lsocket
+ # must be given before -lnsl if both are needed. We assume that
+ # if connect needs -lnsl, so does gethostbyname.
+ echo "$as_me:$LINENO: checking for connect" >&5
+echo $ECHO_N "checking for connect... $ECHO_C" >&6
+if test "${ac_cv_func_connect+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define connect to an innocuous variant, in case <limits.h> declares connect.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define connect innocuous_connect
+
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char connect(); below. */
-#include <assert.h>
+ which can conflict with char connect (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef connect
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char connect();
-
-int main() {
-
+char connect ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_connect) || defined (__stub___connect)
choke me
#else
-connect();
+char (*f) () = connect;
+#endif
+#ifdef __cplusplus
+}
#endif
-; return 0; }
-EOF
-if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_connect=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_connect=no"
-fi
-rm -f conftest*
+int
+main ()
+{
+return f != connect;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_connect=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if eval "test \"`echo '$ac_cv_func_'connect`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
+ac_cv_func_connect=no
fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
+echo "${ECHO_T}$ac_cv_func_connect" >&6
if test $ac_cv_func_connect = no; then
+ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
+echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
+if test "${ac_cv_lib_socket_connect+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_msg_checking="for connect in -lsocket"
-test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking
using extra libs $X_EXTRA_LIBS"
-echo $ac_n "checking "$xe_msg_checking"""... $ac_c"
1>&6
-echo "configure:6439: checking "$xe_msg_checking"" >&5
-ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lsocket $X_EXTRA_LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 6444 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char connect();
-
-int main() {
-connect()
-; return 0; }
-EOF
-if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char connect ();
+int
+main ()
+{
+connect ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_socket_connect=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_socket_connect=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
+echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
+if test $ac_cv_lib_socket_connect = yes; then
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
- # gomez(a)mi.uni-erlangen.de says -lposix is necessary on A/UX.
- echo $ac_n "checking for remove""... $ac_c" 1>&6
-echo "configure:6479: checking for remove" >&5
+ # Guillermo Gomez says -lposix is necessary on A/UX.
+ echo "$as_me:$LINENO: checking for remove" >&5
+echo $ECHO_N "checking for remove... $ECHO_C" >&6
+if test "${ac_cv_func_remove+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define remove to an innocuous variant, in case <limits.h> declares remove.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define remove innocuous_remove
-cat > conftest.$ac_ext <<EOF
-#line 6482 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char remove(); below. */
-#include <assert.h>
+ which can conflict with char remove (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef remove
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char remove();
-
-int main() {
-
+char remove ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_remove) || defined (__stub___remove)
choke me
#else
-remove();
+char (*f) () = remove;
+#endif
+#ifdef __cplusplus
+}
#endif
-; return 0; }
-EOF
-if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_remove=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_remove=no"
-fi
-rm -f conftest*
+int
+main ()
+{
+return f != remove;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_remove=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
+ac_cv_func_remove=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
+echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
+echo "${ECHO_T}$ac_cv_func_remove" >&6
if test $ac_cv_func_remove = no; then
+ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
+echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
+if test "${ac_cv_lib_posix_remove+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lposix $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
-echo "configure:6526: checking for remove in -lposix" >&5
-ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lposix "
-cat > conftest.$ac_ext <<EOF
-#line 6531 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char remove();
-
-int main() {
-remove()
-; return 0; }
-EOF
-if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char remove ();
+int
+main ()
+{
+remove ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_posix_remove=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_posix_remove=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
+echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
+if test $ac_cv_lib_posix_remove = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- echo $ac_n "checking for shmat""... $ac_c" 1>&6
-echo "configure:6566: checking for shmat" >&5
+ echo "$as_me:$LINENO: checking for shmat" >&5
+echo $ECHO_N "checking for shmat... $ECHO_C" >&6
+if test "${ac_cv_func_shmat+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define shmat innocuous_shmat
-cat > conftest.$ac_ext <<EOF
-#line 6569 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shmat(); below. */
-#include <assert.h>
+ which can conflict with char shmat (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef shmat
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char shmat();
-
-int main() {
-
+char shmat ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_shmat) || defined (__stub___shmat)
choke me
#else
-shmat();
+char (*f) () = shmat;
+#endif
+#ifdef __cplusplus
+}
#endif
-; return 0; }
-EOF
-if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_shmat=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_shmat=no"
-fi
-rm -f conftest*
+int
+main ()
+{
+return f != shmat;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_shmat=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
+ac_cv_func_shmat=no
fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
+echo "${ECHO_T}$ac_cv_func_shmat" >&6
if test $ac_cv_func_shmat = no; then
+ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
+echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
+if test "${ac_cv_lib_ipc_shmat+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lipc $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
-echo "configure:6613: checking for shmat in -lipc" >&5
-ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lipc "
-cat > conftest.$ac_ext <<EOF
-#line 6618 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char shmat();
-
-int main() {
-shmat()
-; return 0; }
-EOF
-if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char shmat ();
+int
+main ()
+{
+shmat ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_ipc_shmat=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_ipc_shmat=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
+echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
+if test $ac_cv_lib_ipc_shmat = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
fi
# Check for libraries that X11R6 Xt/Xaw programs need.
- ac_save_LDFLAGS="$LDFLAGS"
+ ac_save_LDFLAGS=$LDFLAGS
test -n "$x_libraries" && LDFLAGS="$LDFLAGS
-L$x_libraries"
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
# check for ICE first), but we must link in the order -lSM -lICE or
# we get undefined symbols. So assume we have SM if we have ICE.
# These have to be linked with before -lX11, unlike the other
# libraries we check for below, so use a different variable.
- # --interran(a)uluru.Stanford.EDU, kb(a)cs.umb.edu.
+ # John Interrante, Karl Berry
+ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE"
>&5
+echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C"
>&6
+if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lICE $X_EXTRA_LIBS $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_msg_checking="for IceConnectionNumber in -lICE"
-test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking
using extra libs $X_EXTRA_LIBS"
-echo $ac_n "checking "$xe_msg_checking"""... $ac_c"
1>&6
-echo "configure:6665: checking "$xe_msg_checking"" >&5
-ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lICE $X_EXTRA_LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 6670 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char IceConnectionNumber();
-
-int main() {
-IceConnectionNumber()
-; return 0; }
-EOF
-if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char IceConnectionNumber ();
+int
+main ()
+{
+IceConnectionNumber ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_ICE_IceConnectionNumber=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_ICE_IceConnectionNumber=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
+echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
+if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
-else
- echo "$ac_t""no" 1>&6
fi
+ LDFLAGS=$ac_save_LDFLAGS
- LDFLAGS="$ac_save_LDFLAGS"
-
fi
# Autoconf claims to find X library and include dirs for us.
if test "$no_x" = "yes"
@@ -6709,86 +16102,221 @@
if test "$with_x11" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_X_WINDOWS
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_X_WINDOWS 1
-EOF
-}
+_ACEOF
MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"lwlib\" to \$MAKE_SUBDIR"; fi
SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
-
- ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
-echo "configure:6727: checking for Xm/Xm.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 6730 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
+echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
+if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
+echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking Xm/Xm.h usability" >&5
+echo $ECHO_N "checking Xm/Xm.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <Xm/Xm.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6735: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking Xm/Xm.h presence" >&5
+echo $ECHO_N "checking Xm/Xm.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <Xm/Xm.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
-
-echo $ac_n "checking for XmStringFree in -lXm""... $ac_c"
1>&6
-echo "configure:6752: checking for XmStringFree in -lXm" >&5
-ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: Xm/Xm.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: Xm/Xm.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: Xm/Xm.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: Xm/Xm.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: Xm/Xm.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: Xm/Xm.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: Xm/Xm.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: Xm/Xm.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
+echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
+if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_Xm_Xm_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
+echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
+
+fi
+if test $ac_cv_header_Xm_Xm_h = yes; then
+ echo "$as_me:$LINENO: checking for XmStringFree in -lXm" >&5
+echo $ECHO_N "checking for XmStringFree in -lXm... $ECHO_C" >&6
+if test "${ac_cv_lib_Xm_XmStringFree+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lXm "
-cat > conftest.$ac_ext <<EOF
-#line 6757 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char XmStringFree();
-
-int main() {
-XmStringFree()
-; return 0; }
-EOF
-if { (eval echo configure:6768: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+ builtin and then its argument prototype would still apply. */
+char XmStringFree ();
+int
+main ()
+{
+XmStringFree ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xm_XmStringFree=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xm_XmStringFree=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmStringFree" >&5
+echo "${ECHO_T}$ac_cv_lib_Xm_XmStringFree" >&6
+if test $ac_cv_lib_Xm_XmStringFree = yes; then
got_motif=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
-else
- echo "$ac_t""no" 1>&6
fi
+
if test "$got_motif" != "yes"; then
for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
"/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
@@ -6906,17 +16434,13 @@
done
bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
fi
- test ! -z "$bitmapdirs" && { test "$extra_verbose" =
"yes" && cat << EOF
- Defining BITMAPDIR = "$bitmapdirs"
-EOF
-cat >> confdefs.h <<EOF
+ test ! -z "$bitmapdirs" && cat >>confdefs.h <<_ACEOF
#define BITMAPDIR "$bitmapdirs"
-EOF
-}
+_ACEOF
- echo "checking for X defines extracted by xmkmf" 1>&6
-echo "configure:6920: checking for X defines extracted by xmkmf" >&5
+ { echo "$as_me:$LINENO: checking for X defines extracted by xmkmf..."
>&5
+echo "$as_me: checking for X defines extracted by xmkmf..." >&6;}
rm -fr conftestdir
if mkdir conftestdir; then
cd conftestdir
@@ -6941,21 +16465,13 @@
esac
if grep "^#define $sym " confdefs.h >/dev/null; then :; else
if test "$val" = "1"
- then { test "$extra_verbose" = "yes" && cat <<
EOF
- Defining $sym
-EOF
-cat >> confdefs.h <<EOF
+ then cat >>confdefs.h <<_ACEOF
#define $sym 1
-EOF
-}
+_ACEOF
- else { test "$extra_verbose" = "yes" && cat <<
EOF
- Defining $sym = $val
-EOF
-cat >> confdefs.h <<EOF
+ else cat >>confdefs.h <<_ACEOF
#define $sym $val
-EOF
-}
+_ACEOF
fi
fi ;;
@@ -6963,464 +16479,964 @@
done
fi
- ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
-echo "configure:6969: checking for X11/Intrinsic.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 6972 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_X11_Intrinsic_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for X11/Intrinsic.h" >&5
+echo $ECHO_N "checking for X11/Intrinsic.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Intrinsic_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Intrinsic_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Intrinsic_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/Intrinsic.h usability" >&5
+echo $ECHO_N "checking X11/Intrinsic.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/Intrinsic.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6977: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/Intrinsic.h presence" >&5
+echo $ECHO_N "checking X11/Intrinsic.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Intrinsic.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/Intrinsic.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: X11/Intrinsic.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: X11/Intrinsic.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/Intrinsic.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: X11/Intrinsic.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/Intrinsic.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: X11/Intrinsic.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: X11/Intrinsic.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/Intrinsic.h" >&5
+echo $ECHO_N "checking for X11/Intrinsic.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Intrinsic_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_X11_Intrinsic_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Intrinsic_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Intrinsic_h" >&6
+
+fi
+if test $ac_cv_header_X11_Intrinsic_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: Unable to find X11 header files." 1>&2; exit
1; }
+ { { echo "$as_me:$LINENO: error: Unable to find X11 header files."
>&5
+echo "$as_me: error: Unable to find X11 header files." >&2;}
+ { (exit 1); exit 1; }; }
fi
-echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c"
1>&6
-echo "configure:7001: checking for XOpenDisplay in -lX11" >&5
-ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
+echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
+if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lX11 "
-cat > conftest.$ac_ext <<EOF
-#line 7006 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XOpenDisplay();
-
-int main() {
-XOpenDisplay()
-; return 0; }
-EOF
-if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XOpenDisplay ();
+int
+main ()
+{
+XOpenDisplay ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_X11_XOpenDisplay=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_X11_XOpenDisplay=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
+echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
+if test $ac_cv_lib_X11_XOpenDisplay = yes; then
have_lib_x11=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
if test "$have_lib_x11" != "yes"; then
+ echo "$as_me:$LINENO: checking for XGetFontProperty in -lX11" >&5
+echo $ECHO_N "checking for XGetFontProperty in -lX11... $ECHO_C" >&6
+if test "${ac_cv_lib_X11_XGetFontProperty+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lX11 -b i486-linuxaout $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_msg_checking="for XGetFontProperty in -lX11"
-test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking
using extra libs -b i486-linuxaout"
-echo $ac_n "checking "$xe_msg_checking"""... $ac_c"
1>&6
-echo "configure:7042: checking "$xe_msg_checking"" >&5
-ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lX11 -b i486-linuxaout"
-cat > conftest.$ac_ext <<EOF
-#line 7047 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XGetFontProperty();
-
-int main() {
-XGetFontProperty()
-; return 0; }
-EOF
-if { (eval echo configure:7058: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XGetFontProperty ();
+int
+main ()
+{
+XGetFontProperty ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_X11_XGetFontProperty=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_X11_XGetFontProperty=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XGetFontProperty" >&5
+echo "${ECHO_T}$ac_cv_lib_X11_XGetFontProperty" >&6
+if test $ac_cv_lib_X11_XGetFontProperty = yes; then
ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1;
}
+ { { echo "$as_me:$LINENO: error: Unable to find X11 libraries." >&5
+echo "$as_me: error: Unable to find X11 libraries." >&2;}
+ { (exit 1); exit 1; }; }
fi
-
fi
libs_x="-lX11"
test "$extra_verbose" = "yes" && echo " Setting
libs_x to \"-lX11\""
-
-echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c"
1>&6
-echo "configure:7085: checking for XShapeSelectInput in -lXext" >&5
-ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for XShapeSelectInput in -lXext"
>&5
+echo $ECHO_N "checking for XShapeSelectInput in -lXext... $ECHO_C"
>&6
+if test "${ac_cv_lib_Xext_XShapeSelectInput+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXext $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lXext "
-cat > conftest.$ac_ext <<EOF
-#line 7090 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XShapeSelectInput();
-
-int main() {
-XShapeSelectInput()
-; return 0; }
-EOF
-if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XShapeSelectInput ();
+int
+main ()
+{
+XShapeSelectInput ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xext_XShapeSelectInput=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xext_XShapeSelectInput=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeSelectInput" >&5
+echo "${ECHO_T}$ac_cv_lib_Xext_XShapeSelectInput" >&6
+if test $ac_cv_lib_Xext_XShapeSelectInput = yes; then
libs_x="-lXext $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lXext\" to \$libs_x";
fi
-else
- echo "$ac_t""no" 1>&6
fi
-
+ echo "$as_me:$LINENO: checking for XtOpenDisplay in -lXt" >&5
+echo $ECHO_N "checking for XtOpenDisplay in -lXt... $ECHO_C" >&6
+if test "${ac_cv_lib_Xt_XtOpenDisplay+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXt $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c"
1>&6
-echo "configure:7124: checking for XtOpenDisplay in -lXt" >&5
-ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lXt "
-cat > conftest.$ac_ext <<EOF
-#line 7129 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XtOpenDisplay();
-
-int main() {
-XtOpenDisplay()
-; return 0; }
-EOF
-if { (eval echo configure:7140: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XtOpenDisplay ();
+int
+main ()
+{
+XtOpenDisplay ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xt_XtOpenDisplay=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xt_XtOpenDisplay=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtOpenDisplay" >&5
+echo "${ECHO_T}$ac_cv_lib_Xt_XtOpenDisplay" >&6
+if test $ac_cv_lib_Xt_XtOpenDisplay = yes; then
libs_x="-lXt $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1;
}
+ { { echo "$as_me:$LINENO: error: Unable to find X11 libraries." >&5
+echo "$as_me: error: Unable to find X11 libraries." >&2;}
+ { (exit 1); exit 1; }; }
fi
-
- echo $ac_n "checking the version of X11 being used""... $ac_c"
1>&6
-echo "configure:7163: checking the version of X11 being used" >&5
- cat > conftest.$ac_ext <<EOF
-#line 7165 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking the version of X11 being used" >&5
+echo $ECHO_N "checking the version of X11 being used... $ECHO_C" >&6
+ if test "$cross_compiling" = yes; then
+ x11_release=4
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <X11/Intrinsic.h>
- int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
-EOF
-if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+ int main(int c, char *v) { return c>1 ? XlibSpecificationRelease : 0; }
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
./conftest foobar; x11_release=$?
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- x11_release=4
-fi
-rm -fr conftest*
- echo "$ac_t""R${x11_release}" 1>&6
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining THIS_IS_X11R${x11_release}
-EOF
-cat >> confdefs.h <<EOF
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+x11_release=4
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+ echo "$as_me:$LINENO: result: R${x11_release}" >&5
+echo "${ECHO_T}R${x11_release}" >&6
+ cat >>confdefs.h <<_ACEOF
#define THIS_IS_X11R${x11_release} 1
-EOF
-}
+_ACEOF
if test "${x11_release}" = "4"; then
- case "$with_widgets" in
- "" | "no") with_widgets=no ;;
+ case "$enable_widgets" in
+ "" | "no") enable_widgets=no ;;
*) { echo "Error:" "Widget support requires X11R5 or greater"
>&2; exit 1; } ;;
esac
fi
+
- for ac_func in XConvertCase
+for ac_func in XConvertCase
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:7201: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 7204 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
- for ac_hdr in X11/Xlocale.h
+
+for ac_header in X11/Xlocale.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:7259: checking for $ac_hdr" >&5
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-cat > conftest.$ac_ext <<EOF
-#line 7262 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:7267: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
+
done
- for ac_func in XRegisterIMInstantiateCallback
+
+for ac_func in XRegisterIMInstantiateCallback
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:7300: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 7303 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
- echo $ac_n "checking for standard XRegisterIMInstantiateCallback
prototype""... $ac_c" 1>&6
-echo "configure:7354: checking for standard XRegisterIMInstantiateCallback
prototype" >&5
- cat > conftest.$ac_ext <<EOF
-#line 7356 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking for standard XRegisterIMInstantiateCallback
prototype" >&5
+echo $ECHO_N "checking for standard XRegisterIMInstantiateCallback prototype...
$ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#define NeedFunctionPrototypes 1
#include <X11/Xlib.h>
extern Bool XRegisterIMInstantiateCallback(
Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
-int main() {
+int
+main ()
+{
-; return 0; }
-EOF
-if { (eval echo configure:7368: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
-EOF
-cat >> confdefs.h <<\EOF
-#define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ cat >>confdefs.h <<\_ACEOF
+#define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
+_ACEOF
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- test -z "$with_xmu" && {
-echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""...
$ac_c" 1>&6
-echo "configure:7389: checking for XmuReadBitmapDataFromFile in -lXmu"
>&5
-ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
+ test -z "$with_xmu" && { echo "$as_me:$LINENO: checking for
XmuReadBitmapDataFromFile in -lXmu" >&5
+echo $ECHO_N "checking for XmuReadBitmapDataFromFile in -lXmu... $ECHO_C"
>&6
+if test "${ac_cv_lib_Xmu_XmuReadBitmapDataFromFile+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXmu $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lXmu "
-cat > conftest.$ac_ext <<EOF
-#line 7394 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XmuReadBitmapDataFromFile();
-
-int main() {
-XmuReadBitmapDataFromFile()
-; return 0; }
-EOF
-if { (eval echo configure:7405: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XmuReadBitmapDataFromFile ();
+int
+main ()
+{
+XmuReadBitmapDataFromFile ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xmu_XmuReadBitmapDataFromFile=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xmu_XmuReadBitmapDataFromFile=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuReadBitmapDataFromFile"
>&5
+echo "${ECHO_T}$ac_cv_lib_Xmu_XmuReadBitmapDataFromFile" >&6
+if test $ac_cv_lib_Xmu_XmuReadBitmapDataFromFile = yes; then
with_xmu=yes
else
- echo "$ac_t""no" 1>&6
-with_xmu=no
+ with_xmu=no
fi
-
}
if test "$with_xmu" = "no"; then
extra_objs="$extra_objs xmu.o" && if test
"$extra_verbose" = "yes"; then
@@ -7428,51 +17444,74 @@
fi
else
libs_x="-lXmu $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_XMU
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_XMU 1
-EOF
-}
+_ACEOF
fi
-
-echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
-echo "configure:7444: checking for main in -lXbsd" >&5
-ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lXbsd "
-cat > conftest.$ac_ext <<EOF
-#line 7449 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
+echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
+if test "${ac_cv_lib_Xbsd_main+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXbsd $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:7456: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+main ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xbsd_main=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xbsd_main=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
+echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
+if test $ac_cv_lib_Xbsd_main = yes; then
libs_x="-lXbsd $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lXbsd\" to \$libs_x";
fi
-else
- echo "$ac_t""no" 1>&6
fi
-
if test "$unexec" = "unexaix.o" -a "$x11_release" =
"6"; then
if test "$GCC" = "yes"; then
X_CFLAGS="-mthreads $X_CFLAGS" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-mthreads\" to \$X_CFLAGS"; fi
@@ -7487,180 +17526,611 @@
fi
- if test "$with_xft" = "yes"; then
+ if test "$with_xft_emacs" = "yes"; then
+ { echo "$as_me:$LINENO: checking for Xrender, fontconfig, and Xft..."
>&5
+echo "$as_me: checking for Xrender, fontconfig, and Xft..." >&6;}
+ xft_includes_found=no
-echo $ac_n "checking for XRenderQueryExtension in -lXrender""...
$ac_c" 1>&6
-echo "configure:7494: checking for XRenderQueryExtension in -lXrender"
>&5
-ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
+for ac_header in freetype/config/ftheader.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-xe_check_libs=" -lXrender "
-cat > conftest.$ac_ext <<EOF
-#line 7499 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char XRenderQueryExtension();
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+ xft_includes_found=yes
+else
-int main() {
-XRenderQueryExtension()
-; return 0; }
-EOF
-if { (eval echo configure:7510: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ for freetype_include_top in "/usr/X11R6/include/freetype2"
\
+ "/usr/include/freetype2"
+ do
+ if test -d $freetype_include_top; then
+ { echo "$as_me:$LINENO: checking in ${freetype_include_top}/freetype2..."
>&5
+echo "$as_me: checking in ${freetype_include_top}/freetype2..." >&6;}
+ unset "$as_ac_Header"
+ save_c_switch_site="$c_switch_site"
+ c_switch_site="$c_switch_site -I${freetype_include_top}"
+
+for ac_header in freetype/config/ftheader.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-xe_check_libs=""
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+ xft_includes_found=yes
+else
+ c_switch_site=$save_c_switch_site
+fi
+
+done
+
+ fi
+ done
+ if test "$xft_includes_found" != "yes"; then
+ { echo "Error:" "Unable to find headers for --with-xft"
>&2; exit 1; }
+ else
+ echo "$as_me:$LINENO: checking for XRenderQueryExtension in
-lXrender" >&5
+echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C"
>&6
+if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXrender $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char XRenderQueryExtension ();
+int
+main ()
+{
+XRenderQueryExtension ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xrender_XRenderQueryExtension=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xrender_XRenderQueryExtension=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension"
>&5
+echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
+if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
libs_x="-lXrender $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lXrender\" to \$libs_x";
fi
else
- echo "$ac_t""no" 1>&6
-{ echo "Error:" "Unable to find libXrender for --with-xft"
>&2; exit 1; }
+ { echo "Error:" "Unable to find libXrender for --with-xft"
>&2; exit 1; }
fi
-
+ echo "$as_me:$LINENO: checking for FcPatternCreate in -lfontconfig"
>&5
+echo $ECHO_N "checking for FcPatternCreate in -lfontconfig... $ECHO_C"
>&6
+if test "${ac_cv_lib_fontconfig_FcPatternCreate+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lfontconfig $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for FcPatternCreate in -lfontconfig""...
$ac_c" 1>&6
-echo "configure:7533: checking for FcPatternCreate in -lfontconfig"
>&5
-ac_lib_var=`echo fontconfig'_'FcPatternCreate | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lfontconfig "
-cat > conftest.$ac_ext <<EOF
-#line 7538 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char FcPatternCreate();
-
-int main() {
-FcPatternCreate()
-; return 0; }
-EOF
-if { (eval echo configure:7549: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char FcPatternCreate ();
+int
+main ()
+{
+FcPatternCreate ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_fontconfig_FcPatternCreate=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_fontconfig_FcPatternCreate=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcPatternCreate"
>&5
+echo "${ECHO_T}$ac_cv_lib_fontconfig_FcPatternCreate" >&6
+if test $ac_cv_lib_fontconfig_FcPatternCreate = yes; then
libs_x="-lfontconfig $libs_x" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-lfontconfig\" to \$libs_x"; fi
else
- echo "$ac_t""no" 1>&6
-{ echo "Error:" "Unable to find libfontconfig for --with-xft"
>&2; exit 1; }
+ { echo "Error:" "Unable to find libfontconfig for --with-xft"
>&2; exit 1; }
fi
-
+ echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
+echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
+if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXft $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for XftFontOpen in -lXft""... $ac_c"
1>&6
-echo "configure:7572: checking for XftFontOpen in -lXft" >&5
-ac_lib_var=`echo Xft'_'XftFontOpen | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lXft "
-cat > conftest.$ac_ext <<EOF
-#line 7577 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XftFontOpen();
-
-int main() {
-XftFontOpen()
-; return 0; }
-EOF
-if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XftFontOpen ();
+int
+main ()
+{
+XftFontOpen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xft_XftFontOpen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xft_XftFontOpen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
+echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
+if test $ac_cv_lib_Xft_XftFontOpen = yes; then
libs_x="-lXft $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lXft\" to \$libs_x"; fi
else
- echo "$ac_t""no" 1>&6
-{ echo "Error:" "Unable to find libXft for --with-xft" >&2;
exit 1; }
+ { echo "Error:" "Unable to find libXft for --with-xft"
>&2; exit 1; }
fi
-
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining USE_XFT
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define USE_XFT 1
-EOF
-}
+_ACEOF
+ unset xft_includes_found
fi
fi
-if test "$with_msw" != "no"; then
- echo "checking for MS-Windows" 1>&6
-echo "configure:7622: checking for MS-Windows" >&5
-echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
-echo "configure:7625: checking for main in -lgdi32" >&5
-ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lgdi32 "
-cat > conftest.$ac_ext <<EOF
-#line 7630 "configure"
-#include "confdefs.h"
+done
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:7637: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ fi
+
fi
-rm -f conftest*
-xe_check_libs=""
+if test "$with_msw" != "no"; then
+ { echo "$as_me:$LINENO: checking for MS-Windows..." >&5
+echo "$as_me: checking for MS-Windows..." >&6;}
+ echo "$as_me:$LINENO: checking for main in -lgdi32" >&5
+echo $ECHO_N "checking for main in -lgdi32... $ECHO_C" >&6
+if test "${ac_cv_lib_gdi32_main+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgdi32 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+main ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_gdi32_main=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_gdi32_main=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_gdi32_main" >&5
+echo "${ECHO_T}$ac_cv_lib_gdi32_main" >&6
+if test $ac_cv_lib_gdi32_main = yes; then
with_msw=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
if test "$with_msw" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_MS_WINDOWS
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_MS_WINDOWS 1
-EOF
-}
+_ACEOF
if test "$with_netinstall" = "yes"; then
@@ -7677,34 +18147,51 @@
fi
if test "$window_system" != x11; then
window_system=msw
- test "$with_scrollbars" != "no" &&
with_scrollbars=msw
- test "$with_menubars" != "no" && with_menubars=msw
- test "$with_toolbars" != "no" && with_toolbars=msw
- test "$with_dialogs" != "no" && with_dialogs=msw
- test "$with_widgets" != "no" && with_widgets=msw
- fi
- cat > conftest.$ac_ext <<EOF
-#line 7688 "configure"
-#include "confdefs.h"
+ test "$enable_scrollbars" != "no" &&
enable_scrollbars=msw
+ test "$enable_menubars" != "no" &&
enable_menubars=msw
+ test "$enable_toolbars" != "no" &&
enable_toolbars=msw
+ test "$enable_dialogs" != "no" &&
enable_dialogs=msw
+ test "$enable_widgets" != "no" &&
enable_widgets=msw
+ fi
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <fcntl.h>
int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
-EOF
-if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_MSG_SELECT
-EOF
-cat >> confdefs.h <<\EOF
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_MSG_SELECT 1
-EOF
-}
+_ACEOF
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
fi
-rm -fr conftest*
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
fi
fi
@@ -7716,77 +18203,187 @@
if test "$window_system" = "none"; then
for feature in menubars scrollbars toolbars dialogs dragndrop xface
do
- if eval "test -n \"\$with_${feature}\" -a
\"\$with_${feature}\" != no" ; then
- echo "configure: warning: --with-$feature ignored: Not valid without
window system support" 1>&2
+ if eval "test -n \"\$enable_${feature}\" -a
\"\$enable_${feature}\" != no" ; then
+ { echo "$as_me:$LINENO: WARNING: --enable-$feature ignored: Not valid
without window system support" >&5
+echo "$as_me: WARNING: --enable-$feature ignored: Not valid without window system
support" >&2;}
fi
- eval "with_${feature}=no"
+ eval "enable_${feature}=no"
done
else
- test -z "$with_toolbars" && with_toolbars=yes
+ test -z "$enable_toolbars" && enable_toolbars=yes
fi
if test "$with_msw" != "yes"; then
for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
do
if eval "test -n \"\$with_${feature}\" -a
\"\$with_${feature}\" != no" ; then
- echo "configure: warning: --with-$feature ignored: Not valid without
MS-Windows support" 1>&2
+ { echo "$as_me:$LINENO: WARNING: --with-$feature ignored: Not valid
without MS-Windows support" >&5
+echo "$as_me: WARNING: --with-$feature ignored: Not valid without MS-Windows
support" >&2;}
fi
eval "with_${feature}=no"
done
else
- :
+:
fi
if test "$with_x11" != "yes"; then
for feature in tooltalk cde offix wmcommand xim xmu nas_sound
do
if eval "test -n \"\$with_${feature}\" -a
\"\$with_${feature}\" != no" ; then
- echo "configure: warning: --with-$feature ignored: Not valid without X
support" 1>&2
+ { echo "$as_me:$LINENO: WARNING: --with-$feature ignored: Not valid
without X support" >&5
+echo "$as_me: WARNING: --with-$feature ignored: Not valid without X support"
>&2;}
fi
eval "with_${feature}=no"
done
fi
if test "$with_x11" = "yes"; then
- ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for X11/extensions/shape.h""... $ac_c"
1>&6
-echo "configure:7754: checking for X11/extensions/shape.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 7757 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
+echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_shape_h"
>&5
+echo "${ECHO_T}$ac_cv_header_X11_extensions_shape_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/extensions/shape.h usability" >&5
+echo $ECHO_N "checking X11/extensions/shape.h usability... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/extensions/shape.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:7762: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/extensions/shape.h presence" >&5
+echo $ECHO_N "checking X11/extensions/shape.h presence... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/extensions/shape.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: accepted by the
compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/extensions/shape.h: accepted by the compiler, rejected
by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: X11/extensions/shape.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: X11/extensions/shape.h: present but cannot be
compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/extensions/shape.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: X11/extensions/shape.h: see the Autoconf
documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/extensions/shape.h: section \"Present But
Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: X11/extensions/shape.h: proceeding with the
preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: in the future, the
compiler will take precedence" >&5
+echo "$as_me: WARNING: X11/extensions/shape.h: in the future, the compiler will
take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
+echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_X11_extensions_shape_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_shape_h"
>&5
+echo "${ECHO_T}$ac_cv_header_X11_extensions_shape_h" >&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_BALLOON_HELP
-EOF
-cat >> confdefs.h <<\EOF
+fi
+if test $ac_cv_header_X11_extensions_shape_h = yes; then
+
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_BALLOON_HELP 1
-EOF
-}
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
+
fi
bitmapdir=
@@ -7807,99 +18404,233 @@
test "$opsys" = "hpux9-shr" &&
opsysfile="s/hpux9shxr4.h"
esac
-echo "checking for WM_COMMAND option" 1>&6
-echo "configure:7812: checking for WM_COMMAND option" >&5;
+{ echo "$as_me:$LINENO: checking for WM_COMMAND option..." >&5
+echo "$as_me: checking for WM_COMMAND option..." >&6;};
if test "$with_wmcommand" != "no"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_WMCOMMAND
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_WMCOMMAND 1
-EOF
-}
+_ACEOF
fi
test -z "$with_xauth" && test "$window_system" =
"none" && with_xauth=no
-test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" |
sed 'y%./+-%__p_%'`
-echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
-echo "configure:7827: checking for X11/Xauth.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 7830 "configure"
-#include "confdefs.h"
+test -z "$with_xauth" && { if test
"${ac_cv_header_X11_Xauth_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for X11/Xauth.h" >&5
+echo $ECHO_N "checking for X11/Xauth.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xauth_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xauth_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xauth_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/Xauth.h usability" >&5
+echo $ECHO_N "checking X11/Xauth.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/Xauth.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:7835: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/Xauth.h presence" >&5
+echo $ECHO_N "checking X11/Xauth.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xauth.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/Xauth.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/Xauth.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xauth.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: X11/Xauth.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/Xauth.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: X11/Xauth.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xauth.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/Xauth.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xauth.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: X11/Xauth.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xauth.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/Xauth.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xauth.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: X11/Xauth.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xauth.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: X11/Xauth.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/Xauth.h" >&5
+echo $ECHO_N "checking for X11/Xauth.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xauth_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_X11_Xauth_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xauth_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xauth_h" >&6
+
+fi
+if test $ac_cv_header_X11_Xauth_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_xauth=no
+ with_xauth=no
fi
+
}
-test -z "$with_xauth" && {
-echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c"
1>&6
-echo "configure:7858: checking for XauGetAuthByAddr in -lXau" >&5
-ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
+test -z "$with_xauth" && { echo "$as_me:$LINENO: checking for
XauGetAuthByAddr in -lXau" >&5
+echo $ECHO_N "checking for XauGetAuthByAddr in -lXau... $ECHO_C" >&6
+if test "${ac_cv_lib_Xau_XauGetAuthByAddr+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXau $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lXau "
-cat > conftest.$ac_ext <<EOF
-#line 7863 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XauGetAuthByAddr();
-
-int main() {
-XauGetAuthByAddr()
-; return 0; }
-EOF
-if { (eval echo configure:7874: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XauGetAuthByAddr ();
+int
+main ()
+{
+XauGetAuthByAddr ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xau_XauGetAuthByAddr=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xau_XauGetAuthByAddr=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauGetAuthByAddr" >&5
+echo "${ECHO_T}$ac_cv_lib_Xau_XauGetAuthByAddr" >&6
+if test $ac_cv_lib_Xau_XauGetAuthByAddr = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_xauth=no
+ with_xauth=no
fi
-
}
test -z "$with_xauth" && with_xauth=yes
if test "$with_xauth" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_XAUTH
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_XAUTH 1
-EOF
-}
+_ACEOF
T=""
@@ -7912,275 +18643,754 @@
-if test "$xemacs_compiler" = "g++"; then
+if test "$with_xemacs_compiler" = "g++"; then
LIBSTDCPP=-lstdc++
else
LIBSTDCPP=
fi
-if test "$with_modules" != "no"; then
- echo "checking for module support" 1>&6
-echo "configure:7925: checking for module support" >&5
+if test "$enable_modules" != "no"; then
+ { echo "$as_me:$LINENO: checking for module support..." >&5
+echo "$as_me: checking for module support..." >&6;}
case "$opsys" in
mingw* | cygwin* ) have_dl=yes ;;
darwin ) have_dl=yes
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_DYLD
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_DYLD 1
-EOF
-}
+_ACEOF
;;
* )
- ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
-echo "configure:7942: checking for dlfcn.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 7945 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_dlfcn_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
+echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
+if test "${ac_cv_header_dlfcn_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
+echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
+echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <dlfcn.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:7950: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
+echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <dlfcn.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
-
- echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
-echo "configure:7967: checking for dlopen in -lc" >&5
- cat > conftest.$ac_ext <<EOF
-#line 7969 "configure"
-#include "confdefs.h"
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for dlfcn.h" >&5
+echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
+if test "${ac_cv_header_dlfcn_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_dlfcn_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
+echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
+
+fi
+if test $ac_cv_header_dlfcn_h = yes; then
+
+ echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
+echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <dlfcn.h>
-int main() {
+int
+main ()
+{
dlopen ("", 0);
-; return 0; }
-EOF
-if { (eval echo configure:7976: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
have_dl=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "configure:7985: checking for dlopen in -ldl" >&5
+
+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
ac_save_LIBS="$LIBS"
LIBS="$LIBS -ldl"
- cat > conftest.$ac_ext <<EOF
-#line 7989 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <dlfcn.h>
-int main() {
+int
+main ()
+{
dlopen ("", 0);
-; return 0; }
-EOF
-if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
have_dl=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
- echo $ac_n "checking for dlopen in -lsvld""... $ac_c"
1>&6
-echo "configure:8005: checking for dlopen in -lsvld" >&5
+ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
LIBS="$ac_save_LIBS -lsvld"
- cat > conftest.$ac_ext <<EOF
-#line 8008 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <dlfcn.h>
-int main() {
+int
+main ()
+{
dlopen ("", 0);
-; return 0; }
-EOF
-if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
have_dl=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+LIBS="$ac_save_LIBS"
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-rm -f conftest*
-else
- echo "$ac_t""no" 1>&6
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
+
if test "$have_dl" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_DLOPEN
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_DLOPEN 1
-EOF
-}
+_ACEOF
else
- ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for dl.h""... $ac_c" 1>&6
-echo "configure:8045: checking for dl.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 8048 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_dl_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for dl.h" >&5
+echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
+if test "${ac_cv_header_dl_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
+echo "${ECHO_T}$ac_cv_header_dl_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking dl.h usability" >&5
+echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <dl.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8053: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking dl.h presence" >&5
+echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <dl.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
-
- echo $ac_n "checking for shl_load in -lc""... $ac_c"
1>&6
-echo "configure:8070: checking for shl_load in -lc" >&5
- cat > conftest.$ac_ext <<EOF
-#line 8072 "configure"
-#include "confdefs.h"
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by
the preprocessor!" >&5
+echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: dl.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot
Be Compiled\"" >&5
+echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's
result" >&5
+echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take
precedence" >&5
+echo "$as_me: WARNING: dl.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for dl.h" >&5
+echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
+if test "${ac_cv_header_dl_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_dl_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
+echo "${ECHO_T}$ac_cv_header_dl_h" >&6
+
+fi
+if test $ac_cv_header_dl_h = yes; then
+
+ echo "$as_me:$LINENO: checking for shl_load in -lc" >&5
+echo $ECHO_N "checking for shl_load in -lc... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <dl.h>
-int main() {
+int
+main ()
+{
shl_load ("", 0, 0);
-; return 0; }
-EOF
-if { (eval echo configure:8079: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
have_dl=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
- echo $ac_n "checking for shl_load in -ldl""... $ac_c"
1>&6
-echo "configure:8088: checking for shl_load in -ldl" >&5
+
+ echo "$as_me:$LINENO: checking for shl_load in -ldl" >&5
+echo $ECHO_N "checking for shl_load in -ldl... $ECHO_C" >&6
ac_save_LIBS="$LIBS"
LIBS="$LIBS -ldld"
- cat > conftest.$ac_ext <<EOF
-#line 8092 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <dl.h>
-int main() {
+int
+main ()
+{
shl_load ("", 0, 0);
-; return 0; }
-EOF
-if { (eval echo configure:8099: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
have_dl=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+LIBS="$ac_save_LIBS"
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-rm -f conftest*
-else
- echo "$ac_t""no" 1>&6
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
+
if test "$have_dl" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_SHL_LOAD
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_SHL_LOAD 1
-EOF
-}
+_ACEOF
else
- ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6
-echo "configure:8127: checking for ltdl.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 8130 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_ltdl_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for ltdl.h" >&5
+echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
+if test "${ac_cv_header_ltdl_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
+echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking ltdl.h usability" >&5
+echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <ltdl.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8135: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking ltdl.h presence" >&5
+echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ltdl.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by
the preprocessor!" >&5
+echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot
Be Compiled\"" >&5
+echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take
precedence" >&5
+echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for ltdl.h" >&5
+echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
+if test "${ac_cv_header_ltdl_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_ltdl_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
+echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
+
+fi
+if test $ac_cv_header_ltdl_h = yes; then
- echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c"
1>&6
-echo "configure:8152: checking for lt_dlinit in -lltdl" >&5
+ echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
+echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
ac_save_LIBS="$LIBS"
LIBS="$LIBS -lltdl"
- cat > conftest.$ac_ext <<EOF
-#line 8156 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <ltdl.h>
-int main() {
+int
+main ()
+{
lt_dlinit ();
-; return 0; }
-EOF
-if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
have_dl=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+LIBS="$ac_save_LIBS"
fi
-rm -f conftest*
-else
- echo "$ac_t""no" 1>&6
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
+
if test "$have_dl" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_LTDL
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_LTDL 1
-EOF
-}
+_ACEOF
fi
fi
@@ -8196,11 +19406,11 @@
dll_post=
dll_ldo="-o"
ld_dynamic_link_flags=
-xehost=$canonical
-xealias=$internal_configuration
+xehost=$ac_cv_build
+xealias=$ac_cv_build_alias
-echo "checking how to build dynamic libraries for ${xehost}" 1>&6
-echo "configure:8204: checking how to build dynamic libraries for ${xehost}"
>&5
+{ echo "$as_me:$LINENO: checking how to build dynamic libraries for
${xehost}..." >&5
+echo "$as_me: checking how to build dynamic libraries for ${xehost}..."
>&6;}
# Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
case "$xehost" in
*-*-linux-gnu*) ;;
@@ -8227,32 +19437,34 @@
if test "$GCC" = "yes"; then
XEGCC=yes
else
- echo $ac_n "checking checking whether we are using GNU C""...
$ac_c" 1>&6
-echo "configure:8232: checking checking whether we are using GNU C"
>&5
- cat > conftest.$ac_ext <<EOF
-#line 8234 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
+echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#ifdef __GNUC__
yes;
#endif
-EOF
+_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
+ $EGREP "yes" >/dev/null 2>&1; then
XEGCC=yes
else
- rm -rf conftest*
XEGCC=no
fi
rm -f conftest*
- echo "$ac_t""${XEGCC}" 1>&6
+ echo "$as_me:$LINENO: result: ${XEGCC}" >&5
+echo "${ECHO_T}${XEGCC}" >&6
fi
-echo $ac_n "checking how to produce PIC code""... $ac_c"
1>&6
-echo "configure:8256: checking how to produce PIC code" >&5
+echo "$as_me:$LINENO: checking how to produce PIC code" >&5
+echo $ECHO_N "checking how to produce PIC code... $ECHO_C" >&6
wl=
can_build_shared=yes
@@ -8352,53 +19564,84 @@
fi
if test -n "$dll_cflags"; then
- echo "$ac_t""${dll_cflags}" 1>&6
+ echo "$as_me:$LINENO: result: ${dll_cflags}" >&5
+echo "${ECHO_T}${dll_cflags}" >&6
# Check to make sure the dll_cflags actually works.
- echo $ac_n "checking if PIC flag ${dll_cflags} really works""...
$ac_c" 1>&6
-echo "configure:8360: checking if PIC flag ${dll_cflags} really works"
>&5
+ echo "$as_me:$LINENO: checking if PIC flag ${dll_cflags} really works"
>&5
+echo $ECHO_N "checking if PIC flag ${dll_cflags} really works... $ECHO_C"
>&6
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $dll_cflags -DPIC"
- cat > conftest.$ac_ext <<EOF
-#line 8364 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
+int
+main ()
+{
int x=0;
-; return 0; }
-EOF
-if { (eval echo configure:8371: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
# On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
# reports no error. So, we need to grep stderr for (Bundled).
if grep '(Bundled)' config.log >/dev/null; then
- echo "$ac_t""no" 1>&6
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
can_build_shared=no
dll_cflags=
else
- echo "$ac_t""yes" 1>&6
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
fi
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
can_build_shared=no
dll_cflags=
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS="$save_CFLAGS"
else
- echo "$ac_t""none" 1>&6
+ echo "$as_me:$LINENO: result: none" >&5
+echo "${ECHO_T}none" >&6
fi
if test "$can_build_shared" = "yes"; then
cc_produces_so=no
xldf=
xcldf=
-echo $ac_n "checking if C compiler can produce shared libraries""...
$ac_c" 1>&6
-echo "configure:8402: checking if C compiler can produce shared libraries"
>&5
+echo "$as_me:$LINENO: checking if C compiler can produce shared libraries"
>&5
+echo $ECHO_N "checking if C compiler can produce shared libraries... $ECHO_C"
>&6
if test "$XEGCC" = yes -o "$__ICC" = yes; then
case "$xehost_os" in
*darwin*)
@@ -8456,24 +19699,51 @@
LIBS=
xe_libs=
ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
- cat > conftest.$ac_ext <<EOF
-#line 8461 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
+int
+main ()
+{
int x=0;
-; return 0; }
-EOF
-if { (eval echo configure:8468: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
cc_produces_so=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cc_produces_so=no
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+cc_produces_so=no
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
LDFLAGS=$save_LDFLAGS
LIBS=$save_LIBS
xe_libs=$save_xe_libs
@@ -8481,15 +19751,16 @@
else
cc_produces_so=no
fi
-echo "$ac_t""${cc_produces_so}" 1>&6
+echo "$as_me:$LINENO: result: ${cc_produces_so}" >&5
+echo "${ECHO_T}${cc_produces_so}" >&6
LTLD=$LD
if test -z "$LTLD"; then
ac_prog=ld
if test "$XEGCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
- echo $ac_n "checking for ld used by GCC""... $ac_c"
1>&6
-echo "configure:8493: checking for ld used by GCC" >&5
+ echo "$as_me:$LINENO: checking for ld used by GCC" >&5
+echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
@@ -8514,8 +19785,8 @@
;;
esac
else
- echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
-echo "configure:8519: checking for GNU ld" >&5
+ echo "$as_me:$LINENO: checking for GNU ld" >&5
+echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
fi
if test -z "$LTLD"; then
@@ -8538,13 +19809,17 @@
fi
if test -n "$LTLD"; then
- echo "$ac_t""${LTLD}" 1>&6
+ echo "$as_me:$LINENO: result: ${LTLD}" >&5
+echo "${ECHO_T}${LTLD}" >&6
else
- echo "$ac_t""no" 1>&6
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
if test -z "$LTLD" -a "$cc_produces_so" = no; then
- { echo "configure: error: no acceptable linker found in \$PATH"
1>&2; exit 1; }
+ { { echo "$as_me:$LINENO: error: no acceptable linker found in \$PATH"
>&5
+echo "$as_me: error: no acceptable linker found in \$PATH" >&2;}
+ { (exit 1); exit 1; }; }
exit 1
fi
fi
@@ -8552,15 +19827,16 @@
ld_dynamic_link_flags=
# Check to see if it really is or isn't GNU ld.
-echo $ac_n "checking if the linker is GNU ld""... $ac_c"
1>&6
-echo "configure:8557: checking if the linker is GNU ld" >&5
+echo "$as_me:$LINENO: checking if the linker is GNU ld" >&5
+echo $ECHO_N "checking if the linker is GNU ld... $ECHO_C" >&6
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5;
then
xe_gnu_ld=yes
else
xe_gnu_ld=no
fi
-echo "$ac_t""${xe_gnu_ld}" 1>&6
+echo "$as_me:$LINENO: result: ${xe_gnu_ld}" >&5
+echo "${ECHO_T}${xe_gnu_ld}" >&6
case "$xehost_os" in
amigaos* | sunos4*)
@@ -8587,8 +19863,8 @@
else
# OK - only NOW do we futz about with ld.
# See if the linker supports building shared libraries.
- echo $ac_n "checking whether the linker supports shared libraries""...
$ac_c" 1>&6
-echo "configure:8592: checking whether the linker supports shared libraries"
>&5
+ echo "$as_me:$LINENO: checking whether the linker supports shared
libraries" >&5
+echo $ECHO_N "checking whether the linker supports shared libraries...
$ECHO_C" >&6
dll_ld=$CC
dll_ldflags=$LDFLAGS
ld_shlibs=yes
@@ -8698,7 +19974,8 @@
;;
esac
fi
- echo "$ac_t""${ld_shlibs}" 1>&6
+ echo "$as_me:$LINENO: result: ${ld_shlibs}" >&5
+echo "${ECHO_T}${ld_shlibs}" >&6
if test "$ld_shlibs" = "no"; then
can_build_shared=no
fi
@@ -8787,89 +20064,131 @@
fi
if test "$can_build_shared" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_SHLIB
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_SHLIB 1
-EOF
-}
+_ACEOF
MAKE_SUBDIR="$MAKE_SUBDIR src" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"src\" to \$MAKE_SUBDIR"; fi
INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if
test "$extra_verbose" = "yes"; then echo " Appending
\"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
test -n "$libdl" && LIBS="-l${libdl} $LIBS" &&
if test "$extra_verbose" = "yes"; then echo " Prepending
\"-l${libdl}\" to \$LIBS"; fi
- for ac_func in dlerror _dlerror
+
+
+for ac_func in dlerror _dlerror
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:8805: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 8808 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:8831: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
- with_modules=yes
+ enable_modules=yes
MOD_CC="../../lib-src/ellcc"
MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src
-I\$(srcdir)/../../src"
INSTALLPATH="\$(moduledir)"
MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
OBJECT_TO_BUILD="\$(MODNAME).ell"
else
- if test "$with_modules" = "yes"; then
+ if test "$enable_modules" = "yes"; then
{ echo "Error:" "Required module support cannot be provided."
>&2; exit 1; }
else
echo " No module support."
fi
- with_modules=no
+ enable_modules=no
fi
fi
-if test "$with_modules" != "yes"; then
+if test "$enable_modules" != "yes"; then
MOD_CC="$XEMACS_CC"
MODCFLAGS="\$(XE_CFLAGS) -I../../src -I\$(srcdir)/../../src"
INSTALLPATH=""
@@ -8878,6 +20197,7 @@
fi
MODARCHDIR=
MAKE_DOCFILE="../../lib-src/make-docfile"
+with_modules=$enable_modules
@@ -8889,36 +20209,148 @@
if test "$with_tooltalk" != "no" ; then
for dir in "" "Tt/" "desktop/" ; do
- ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
-echo "configure:8895: checking for ${dir}tt_c.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 8898 "configure"
-#include "confdefs.h"
+ as_ac_Header=`echo "ac_cv_header_${dir}tt_c.h" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for ${dir}tt_c.h" >&5
+echo $ECHO_N "checking for ${dir}tt_c.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking ${dir}tt_c.h usability" >&5
+echo $ECHO_N "checking ${dir}tt_c.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <${dir}tt_c.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8903: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking ${dir}tt_c.h presence" >&5
+echo $ECHO_N "checking ${dir}tt_c.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <${dir}tt_c.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- tt_c_h_file="${dir}tt_c.h"; break
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: ${dir}tt_c.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ${dir}tt_c.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}tt_c.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: ${dir}tt_c.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ${dir}tt_c.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: ${dir}tt_c.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}tt_c.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: ${dir}tt_c.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}tt_c.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: ${dir}tt_c.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}tt_c.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ${dir}tt_c.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}tt_c.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: ${dir}tt_c.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}tt_c.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: ${dir}tt_c.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for ${dir}tt_c.h" >&5
+echo $ECHO_N "checking for ${dir}tt_c.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ tt_c_h_file="${dir}tt_c.h"; break
fi
+
done
if test -z "$tt_c_h_file"; then
if test "$with_tooltalk" = "yes"; then
@@ -8931,47 +20363,75 @@
fi
if test "$with_tooltalk" != "no" ; then
for extra_libs in "" "-lI18N -lce" "-lcxx"; do
+ echo "$as_me:$LINENO: checking for tt_message_create in -ltt" >&5
+echo $ECHO_N "checking for tt_message_create in -ltt... $ECHO_C" >&6
+if test "${ac_cv_lib_tt_tt_message_create+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ltt $extra_libs $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_msg_checking="for tt_message_create in -ltt"
-test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using
extra libs $extra_libs"
-echo $ac_n "checking "$xe_msg_checking"""... $ac_c"
1>&6
-echo "configure:8939: checking "$xe_msg_checking"" >&5
-ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -ltt $extra_libs"
-cat > conftest.$ac_ext <<EOF
-#line 8944 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char tt_message_create();
-
-int main() {
-tt_message_create()
-; return 0; }
-EOF
-if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char tt_message_create ();
+int
+main ()
+{
+tt_message_create ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_tt_tt_message_create=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_tt_tt_message_create=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_tt_tt_message_create" >&5
+echo "${ECHO_T}$ac_cv_lib_tt_tt_message_create" >&6
+if test $ac_cv_lib_tt_tt_message_create = yes; then
tt_libs="-ltt $extra_libs"; break
else
- echo "$ac_t""no" 1>&6
-:
+ :
fi
-
done
if test -z "$tt_libs"; then
if test "$with_tooltalk" = "yes"; then
@@ -8984,110 +20444,241 @@
fi
test -z "$with_tooltalk" && with_tooltalk=yes
if test "$with_tooltalk" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining TOOLTALK
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define TOOLTALK 1
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining TT_C_H_FILE = "$tt_c_h_file"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define TT_C_H_FILE "$tt_c_h_file"
-EOF
-}
+_ACEOF
libs_x="$tt_libs $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"$tt_libs\" to \$libs_x";
fi
fi
-test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed
'y%./+-%__p_%'`
-echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
-echo "configure:9009: checking for Dt/Dt.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 9012 "configure"
-#include "confdefs.h"
+test -z "$with_cde" && { if test
"${ac_cv_header_Dt_Dt_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for Dt/Dt.h" >&5
+echo $ECHO_N "checking for Dt/Dt.h... $ECHO_C" >&6
+if test "${ac_cv_header_Dt_Dt_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Dt_Dt_h" >&5
+echo "${ECHO_T}$ac_cv_header_Dt_Dt_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking Dt/Dt.h usability" >&5
+echo $ECHO_N "checking Dt/Dt.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <Dt/Dt.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:9017: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking Dt/Dt.h presence" >&5
+echo $ECHO_N "checking Dt/Dt.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <Dt/Dt.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: Dt/Dt.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: Dt/Dt.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Dt/Dt.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: Dt/Dt.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: Dt/Dt.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: Dt/Dt.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Dt/Dt.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: Dt/Dt.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: Dt/Dt.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: Dt/Dt.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Dt/Dt.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: Dt/Dt.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Dt/Dt.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: Dt/Dt.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Dt/Dt.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: Dt/Dt.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for Dt/Dt.h" >&5
+echo $ECHO_N "checking for Dt/Dt.h... $ECHO_C" >&6
+if test "${ac_cv_header_Dt_Dt_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_Dt_Dt_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Dt_Dt_h" >&5
+echo "${ECHO_T}$ac_cv_header_Dt_Dt_h" >&6
+
+fi
+if test $ac_cv_header_Dt_Dt_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_cde=no
+ with_cde=no
fi
+
}
-test -z "$with_cde" && {
-echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c"
1>&6
-echo "configure:9040: checking for DtDndDragStart in -lDtSvc" >&5
-ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
+test -z "$with_cde" && { echo "$as_me:$LINENO: checking for
DtDndDragStart in -lDtSvc" >&5
+echo $ECHO_N "checking for DtDndDragStart in -lDtSvc... $ECHO_C" >&6
+if test "${ac_cv_lib_DtSvc_DtDndDragStart+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lDtSvc $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lDtSvc "
-cat > conftest.$ac_ext <<EOF
-#line 9045 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char DtDndDragStart();
-
-int main() {
-DtDndDragStart()
-; return 0; }
-EOF
-if { (eval echo configure:9056: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char DtDndDragStart ();
+int
+main ()
+{
+DtDndDragStart ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_DtSvc_DtDndDragStart=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_DtSvc_DtDndDragStart=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_DtSvc_DtDndDragStart" >&5
+echo "${ECHO_T}$ac_cv_lib_DtSvc_DtDndDragStart" >&6
+if test $ac_cv_lib_DtSvc_DtDndDragStart = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_cde=no
+ with_cde=no
fi
-
}
if test "$with_dragndrop" = "no" ; then
if test "$with_cde" = "yes" ; then
- echo "configure: warning: --with-cde forced to \`no'; no generic
Drag'n'Drop support" 1>&2
+ { echo "$as_me:$LINENO: WARNING: --with-cde forced to \`no'; no generic
Drag'n'Drop support" >&5
+echo "$as_me: WARNING: --with-cde forced to \`no'; no generic
Drag'n'Drop support" >&2;}
fi
with_cde=no
fi
test -z "$with_cde" && with_cde=yes
if test "$with_cde" = "yes" ; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_CDE
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_CDE 1
-EOF
-}
+_ACEOF
libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x";
fi
dragndrop_proto="$dragndrop_proto CDE" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"CDE\" to \$dragndrop_proto"; fi
@@ -9098,31 +20689,30 @@
test "$window_system" != "x11" && with_offix=no
if test "$with_xmu" != yes -a "$with_x11" = yes; then
if test "$with_offix" = "yes" ; then
- echo "configure: warning: --with-offix forced to \`no'; no real Xmu
support" 1>&2
+ { echo "$as_me:$LINENO: WARNING: --with-offix forced to \`no'; no real Xmu
support" >&5
+echo "$as_me: WARNING: --with-offix forced to \`no'; no real Xmu support"
>&2;}
fi
with_offix=no
fi
if test "$with_dragndrop" = no; then
if test "$with_offix" = "yes" ; then
- echo "configure: warning: --with-offix forced to \`no'; no generic
Drag'n'Drop support" 1>&2
+ { echo "$as_me:$LINENO: WARNING: --with-offix forced to \`no'; no generic
Drag'n'Drop support" >&5
+echo "$as_me: WARNING: --with-offix forced to \`no'; no generic
Drag'n'Drop support" >&2;}
fi
with_offix=no
fi
if test "$with_cde" = yes; then
if test "$with_offix" = "yes" ; then
- echo "configure: warning: --with-offix forced to \`no'; CDE already
found" 1>&2
+ { echo "$as_me:$LINENO: WARNING: --with-offix forced to \`no'; CDE already
found" >&5
+echo "$as_me: WARNING: --with-offix forced to \`no'; CDE already found"
>&2;}
fi
with_offix=no
fi
test -z "$with_offix" && with_offix=no
if test "$with_offix" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_OFFIX_DND
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_OFFIX_DND 1
-EOF
-}
+_ACEOF
dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose"
= "yes"; then echo " Appending \"offix.o\" to
\$dnd_objs"; fi
dragndrop_proto="$dragndrop_proto OffiX" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"OffiX\" to \$dragndrop_proto"; fi
@@ -9132,297 +20722,654 @@
fi
if test "$with_dragndrop" != "no" ; then
- echo $ac_n "checking if drag and drop API is needed""... $ac_c"
1>&6
-echo "configure:9137: checking if drag and drop API is needed" >&5
+ echo "$as_me:$LINENO: checking if drag and drop API is needed" >&5
+echo $ECHO_N "checking if drag and drop API is needed... $ECHO_C" >&6
if test -n "$dragndrop_proto" ; then
with_dragndrop=yes
- echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_DRAGNDROP
-EOF
-cat >> confdefs.h <<\EOF
+ echo "$as_me:$LINENO: result: yes (${dragndrop_proto} )" >&5
+echo "${ECHO_T}yes (${dragndrop_proto} )" >&6
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_DRAGNDROP 1
-EOF
-}
+_ACEOF
extra_objs="$extra_objs dragdrop.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"dragdrop.o\" to \$extra_objs"; fi
else
with_dragndrop=no
- echo "$ac_t""no" 1>&6
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
fi
-echo "checking for LDAP" 1>&6
-echo "configure:9157: checking for LDAP" >&5
+{ echo "$as_me:$LINENO: checking for LDAP..." >&5
+echo "$as_me: checking for LDAP..." >&6;}
ldap_libs=
-test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed
'y%./+-%__p_%'`
-echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
-echo "configure:9161: checking for ldap.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 9164 "configure"
-#include "confdefs.h"
+test -z "$with_ldap" && { if test
"${ac_cv_header_ldap_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for ldap.h" >&5
+echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
+if test "${ac_cv_header_ldap_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
+echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking ldap.h usability" >&5
+echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <ldap.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:9169: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking ldap.h presence" >&5
+echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ldap.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by
the preprocessor!" >&5
+echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot
Be Compiled\"" >&5
+echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take
precedence" >&5
+echo "$as_me: WARNING: ldap.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for ldap.h" >&5
+echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
+if test "${ac_cv_header_ldap_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_ldap_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
+echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
+
+fi
+if test $ac_cv_header_ldap_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_ldap=no
+ with_ldap=no
fi
+
}
-test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed
'y%./+-%__p_%'`
-echo $ac_n "checking for lber.h""... $ac_c" 1>&6
-echo "configure:9192: checking for lber.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 9195 "configure"
-#include "confdefs.h"
+test -z "$with_ldap" && { if test
"${ac_cv_header_lber_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for lber.h" >&5
+echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
+if test "${ac_cv_header_lber_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
+echo "${ECHO_T}$ac_cv_header_lber_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking lber.h usability" >&5
+echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <lber.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:9200: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking lber.h presence" >&5
+echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <lber.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by
the preprocessor!" >&5
+echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: lber.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: lber.h: section \"Present But Cannot
Be Compiled\"" >&5
+echo "$as_me: WARNING: lber.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take
precedence" >&5
+echo "$as_me: WARNING: lber.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for lber.h" >&5
+echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
+if test "${ac_cv_header_lber_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_lber_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
+echo "${ECHO_T}$ac_cv_header_lber_h" >&6
+
+fi
+if test $ac_cv_header_lber_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_ldap=no
+ with_ldap=no
fi
+
}
if test "$with_ldap" != "no"; then
+ echo "$as_me:$LINENO: checking for ldap_search in -lldap" >&5
+echo $ECHO_N "checking for ldap_search in -lldap... $ECHO_C" >&6
+if test "${ac_cv_lib_ldap_ldap_search+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lldap $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for ldap_search in -lldap""... $ac_c"
1>&6
-echo "configure:9224: checking for ldap_search in -lldap" >&5
-ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lldap "
-cat > conftest.$ac_ext <<EOF
-#line 9229 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char ldap_search();
-
-int main() {
-ldap_search()
-; return 0; }
-EOF
-if { (eval echo configure:9240: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char ldap_search ();
+int
+main ()
+{
+ldap_search ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_ldap_ldap_search=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_ldap_ldap_search=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_search" >&5
+echo "${ECHO_T}$ac_cv_lib_ldap_ldap_search" >&6
+if test $ac_cv_lib_ldap_ldap_search = yes; then
with_ldap=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
- test "$with_ldap" != "yes" && {
-xe_msg_checking="for ldap_open in -lldap"
-test -n "-llber" && xe_msg_checking="$xe_msg_checking using
extra libs -llber"
-echo $ac_n "checking "$xe_msg_checking"""... $ac_c"
1>&6
-echo "configure:9264: checking "$xe_msg_checking"" >&5
-ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ test "$with_ldap" != "yes" && { echo
"$as_me:$LINENO: checking for ldap_open in -lldap" >&5
+echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
+if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lldap -llber $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lldap -llber"
-cat > conftest.$ac_ext <<EOF
-#line 9269 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char ldap_open();
-
-int main() {
-ldap_open()
-; return 0; }
-EOF
-if { (eval echo configure:9280: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char ldap_open ();
+int
+main ()
+{
+ldap_open ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_ldap_ldap_open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_ldap_ldap_open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
+echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
+if test $ac_cv_lib_ldap_ldap_open = yes; then
with_ldap=yes with_ldap_lber=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
}
- test "$with_ldap" != "yes" && {
-xe_msg_checking="for ldap_open in -lldap"
-test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking
using extra libs -llber -lkrb"
-echo $ac_n "checking "$xe_msg_checking"""... $ac_c"
1>&6
-echo "configure:9304: checking "$xe_msg_checking"" >&5
-ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ test "$with_ldap" != "yes" && { echo
"$as_me:$LINENO: checking for ldap_open in -lldap" >&5
+echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
+if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lldap -llber -lkrb $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lldap -llber -lkrb"
-cat > conftest.$ac_ext <<EOF
-#line 9309 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char ldap_open();
-
-int main() {
-ldap_open()
-; return 0; }
-EOF
-if { (eval echo configure:9320: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char ldap_open ();
+int
+main ()
+{
+ldap_open ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_ldap_ldap_open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_ldap_ldap_open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
+echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
+if test $ac_cv_lib_ldap_ldap_open = yes; then
with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
}
- test "$with_ldap" != "yes" && {
-xe_msg_checking="for ldap_open in -lldap"
-test -n "-llber -lkrb -ldes" &&
xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
-echo $ac_n "checking "$xe_msg_checking"""... $ac_c"
1>&6
-echo "configure:9344: checking "$xe_msg_checking"" >&5
-ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ test "$with_ldap" != "yes" && { echo
"$as_me:$LINENO: checking for ldap_open in -lldap" >&5
+echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
+if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lldap -llber -lkrb -ldes $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lldap -llber -lkrb -ldes"
-cat > conftest.$ac_ext <<EOF
-#line 9349 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char ldap_open();
-
-int main() {
-ldap_open()
-; return 0; }
-EOF
-if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char ldap_open ();
+int
+main ()
+{
+ldap_open ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_ldap_ldap_open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_ldap_ldap_open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
+echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
+if test $ac_cv_lib_ldap_ldap_open = yes; then
with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes with_ldap_des=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
}
- test "$with_ldap_lber" != "yes" && {
-echo $ac_n "checking for ber_pvt_opt_on in -llber""... $ac_c"
1>&6
-echo "configure:9382: checking for ber_pvt_opt_on in -llber" >&5
-ac_lib_var=`echo lber'_'ber_pvt_opt_on | sed 'y%./+-%__p_%'`
+ test "$with_ldap_lber" != "yes" && { echo
"$as_me:$LINENO: checking for ber_pvt_opt_on in -llber" >&5
+echo $ECHO_N "checking for ber_pvt_opt_on in -llber... $ECHO_C" >&6
+if test "${ac_cv_lib_lber_ber_pvt_opt_on+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-llber $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -llber "
-cat > conftest.$ac_ext <<EOF
-#line 9387 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char ber_pvt_opt_on();
-
-int main() {
-ber_pvt_opt_on()
-; return 0; }
-EOF
-if { (eval echo configure:9398: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char ber_pvt_opt_on ();
+int
+main ()
+{
+ber_pvt_opt_on ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_lber_ber_pvt_opt_on=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_lber_ber_pvt_opt_on=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_pvt_opt_on" >&5
+echo "${ECHO_T}$ac_cv_lib_lber_ber_pvt_opt_on" >&6
+if test $ac_cv_lib_lber_ber_pvt_opt_on = yes; then
with_ldap_lber=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
}
fi
if test "$with_ldap" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_LDAP
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_LDAP 1
-EOF
-}
+_ACEOF
if test "$with_ldap_des" = "yes" ; then
ldap_libs="-ldes $ldap_libs" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-ldes\" to \$ldap_libs"; fi
@@ -9435,66 +21382,114 @@
fi
ldap_libs="-lldap $ldap_libs" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-lldap\" to \$ldap_libs"; fi
save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
- for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
+
+
+
+
+for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:9442: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 9445 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
LIBS="$save_LIBS"
MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"modules/ldap\" to \$MAKE_SUBDIR"; fi
need_modules_common=yes
- if test "$with_modules" = "yes"; then
+ if test "$enable_modules" = "yes"; then
INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap"
&& if test "$extra_verbose" = "yes"; then echo "
Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
fi
fi
@@ -9502,161 +21497,320 @@
postgresql_libs=
if test "$with_postgresql" != "no"; then
- echo "checking for PostgreSQL" 1>&6
-echo "configure:9507: checking for PostgreSQL" >&5
+ { echo "$as_me:$LINENO: checking for PostgreSQL..." >&5
+echo "$as_me: checking for PostgreSQL..." >&6;}
for header_dir in "" "pgsql/" "postgresql/"; do
- ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c"
1>&6
-echo "configure:9512: checking for ${header_dir}libpq-fe.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 9515 "configure"
-#include "confdefs.h"
+ as_ac_Header=`echo "ac_cv_header_${header_dir}libpq-fe.h" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for ${header_dir}libpq-fe.h" >&5
+echo $ECHO_N "checking for ${header_dir}libpq-fe.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking ${header_dir}libpq-fe.h usability" >&5
+echo $ECHO_N "checking ${header_dir}libpq-fe.h usability... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <${header_dir}libpq-fe.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:9520: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking ${header_dir}libpq-fe.h presence" >&5
+echo $ECHO_N "checking ${header_dir}libpq-fe.h presence... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <${header_dir}libpq-fe.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- libpq_fe_h_file=${header_dir}libpq-fe.h; break
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: accepted by the
compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ${header_dir}libpq-fe.h: accepted by the compiler, rejected
by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: ${header_dir}libpq-fe.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: present but cannot
be compiled" >&5
+echo "$as_me: WARNING: ${header_dir}libpq-fe.h: present but cannot be
compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: check for
missing prerequisite headers?" >&5
+echo "$as_me: WARNING: ${header_dir}libpq-fe.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: ${header_dir}libpq-fe.h: see the Autoconf
documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ${header_dir}libpq-fe.h: section \"Present But
Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: ${header_dir}libpq-fe.h: proceeding with the
preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: in the future, the
compiler will take precedence" >&5
+echo "$as_me: WARNING: ${header_dir}libpq-fe.h: in the future, the compiler will
take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for ${header_dir}libpq-fe.h" >&5
+echo $ECHO_N "checking for ${header_dir}libpq-fe.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ libpq_fe_h_file=${header_dir}libpq-fe.h; break
+fi
+
done
- test -n "$libpq_fe_h_file" && {
-echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c"
1>&6
-echo "configure:9544: checking for PQconnectdb in -lpq" >&5
-ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
+ test -n "$libpq_fe_h_file" && { echo "$as_me:$LINENO: checking
for PQconnectdb in -lpq" >&5
+echo $ECHO_N "checking for PQconnectdb in -lpq... $ECHO_C" >&6
+if test "${ac_cv_lib_pq_PQconnectdb+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpq $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lpq "
-cat > conftest.$ac_ext <<EOF
-#line 9549 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char PQconnectdb();
-
-int main() {
-PQconnectdb()
-; return 0; }
-EOF
-if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char PQconnectdb ();
+int
+main ()
+{
+PQconnectdb ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_pq_PQconnectdb=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_pq_PQconnectdb=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQconnectdb" >&5
+echo "${ECHO_T}$ac_cv_lib_pq_PQconnectdb" >&6
+if test $ac_cv_lib_pq_PQconnectdb = yes; then
have_libpq=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
}
-
- if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes";
then
- with_postgresql=yes
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_POSTGRESQL
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_POSTGRESQL 1
-EOF
-}
+ if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes";
then
+ with_postgresql=yes
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_POSTGRESQL 1
+_ACEOF
-echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c"
1>&6
-echo "configure:9593: checking for PQconnectStart in -lpq" >&5
-ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for PQconnectStart in -lpq" >&5
+echo $ECHO_N "checking for PQconnectStart in -lpq... $ECHO_C" >&6
+if test "${ac_cv_lib_pq_PQconnectStart+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpq $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lpq "
-cat > conftest.$ac_ext <<EOF
-#line 9598 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char PQconnectStart();
-
-int main() {
-PQconnectStart()
-; return 0; }
-EOF
-if { (eval echo configure:9609: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
+char PQconnectStart ();
+int
+main ()
+{
+PQconnectStart ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_pq_PQconnectStart=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_pq_PQconnectStart=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQconnectStart" >&5
+echo "${ECHO_T}$ac_cv_lib_pq_PQconnectStart" >&6
+if test $ac_cv_lib_pq_PQconnectStart = yes; then
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
with_postgresqlv7=yes;
- { test "$extra_verbose" = "yes" && cat
<< \EOF
- Defining HAVE_POSTGRESQLV7
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_POSTGRESQLV7 1
-EOF
-}
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
-
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
-EOF
-}
+_ACEOF
postgresql_libs="-lpq $postgresql_libs" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-lpq\" to \$postgresql_libs"; fi
MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"modules/postgresql\" to \$MAKE_SUBDIR"; fi
need_modules_common=yes
- if test "$with_modules" = "yes"; then
+ if test "$enable_modules" = "yes"; then
INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql"
&& if test "$extra_verbose" = "yes"; then echo "
Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
fi
elif test "$with_postgresql" = "yes"; then
- { echo "Error:" "Required PostgreSQL support cannot be provided.
Check --site-prefixes." >&2; exit 1; }
+ { echo "Error:" "Required PostgreSQL support cannot be provided.
Check --with-site-prefixes." >&2; exit 1; }
fi
fi
if test "$window_system" != "none"; then
- echo "checking for graphics libraries" 1>&6
-echo "configure:9660: checking for graphics libraries" >&5
+ { echo "$as_me:$LINENO: checking for graphics libraries..." >&5
+echo "$as_me: checking for graphics libraries..." >&6;}
libpath_xpm=
incpath_xpm=
@@ -9681,21 +21835,40 @@
if test -z "$with_xpm"; then
CFLAGS=""$incpath_xpm" $CFLAGS" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\""$incpath_xpm"\" to \$CFLAGS"; fi
LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\""$libpath_xpm"\" to \$LDFLAGS"; fi
- echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c"
1>&6
-echo "configure:9686: checking for Xpm - no older than 3.4f" >&5
+ echo "$as_me:$LINENO: checking for Xpm - no older than 3.4f" >&5
+echo $ECHO_N "checking for Xpm - no older than 3.4f... $ECHO_C" >&6
xe_check_libs=-lXpm
- cat > conftest.$ac_ext <<EOF
-#line 9689 "configure"
-#include "confdefs.h"
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#define XPM_NUMBERS
#include <X11/xpm.h>
int main(int c, char **v) {
return c == 1 ? 0 :
XpmIncludeVersion != XpmLibraryVersion() ? 1 :
XpmIncludeVersion < 30406 ? 2 : 0 ;}
-EOF
-if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
./conftest dummy_arg; xpm_status=$?;
if test "$xpm_status" = "0"; then
with_xpm=yes;
@@ -9715,490 +21888,1086 @@
configure and add '--with-xpm=yes', but don't blame me if XEmacs
crashes!"
fi
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- with_xpm=no
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+with_xpm=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
fi
-rm -fr conftest*
xe_check_libs=
- echo "$ac_t""$with_xpm" 1>&6
+ echo "$as_me:$LINENO: result: $with_xpm" >&5
+echo "${ECHO_T}$with_xpm" >&6
fi
if test "$with_xpm" = "yes"; then
- { test "$extra_verbose" = "yes" && cat
<< \EOF
- Defining HAVE_XPM
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_XPM 1
-EOF
-}
+_ACEOF
LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\""$libpath_xpm"\" to \$LDFLAGS"; fi
libs_x="-lXpm $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
CFLAGS=""$incpath_xpm" $CFLAGS" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\""$incpath_xpm"\" to \$CFLAGS"; fi
- echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c"
1>&6
-echo "configure:9742: checking for \"FOR_MSW\" xpm" >&5
+ echo "$as_me:$LINENO: checking for \"FOR_MSW\" xpm" >&5
+echo $ECHO_N "checking for \"FOR_MSW\" xpm... $ECHO_C" >&6
xe_check_libs=-lXpm
- cat > conftest.$ac_ext <<EOF
-#line 9745 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
+int
+main ()
+{
XpmCreatePixmapFromData()
-; return 0; }
-EOF
-if { (eval echo configure:9752: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
xpm_for_msw=no
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- xpm_for_msw=yes
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+xpm_for_msw=yes
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
xe_check_libs=
- echo "$ac_t""$xpm_for_msw" 1>&6
+ echo "$as_me:$LINENO: result: $xpm_for_msw" >&5
+echo "${ECHO_T}$xpm_for_msw" >&6
if test "$xpm_for_msw" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining FOR_MSW
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define FOR_MSW 1
-EOF
-}
+_ACEOF
fi
fi
- test -z "$with_xface" && { ac_safe=`echo "compface.h" |
sed 'y%./+-%__p_%'`
-echo $ac_n "checking for compface.h""... $ac_c" 1>&6
-echo "configure:9778: checking for compface.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 9781 "configure"
-#include "confdefs.h"
+ test -z "$with_xface" && { if test
"${ac_cv_header_compface_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for compface.h" >&5
+echo $ECHO_N "checking for compface.h... $ECHO_C" >&6
+if test "${ac_cv_header_compface_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_compface_h" >&5
+echo "${ECHO_T}$ac_cv_header_compface_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking compface.h usability" >&5
+echo $ECHO_N "checking compface.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <compface.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:9786: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking compface.h presence" >&5
+echo $ECHO_N "checking compface.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <compface.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: compface.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: compface.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: compface.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: compface.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: compface.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: compface.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: compface.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: compface.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: compface.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: compface.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for compface.h" >&5
+echo $ECHO_N "checking for compface.h... $ECHO_C" >&6
+if test "${ac_cv_header_compface_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_compface_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_compface_h" >&5
+echo "${ECHO_T}$ac_cv_header_compface_h" >&6
+
+fi
+if test $ac_cv_header_compface_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_xface=no
+ with_xface=no
fi
+
}
- test -z "$with_xface" && {
-echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c"
1>&6
-echo "configure:9809: checking for UnGenFace in -lcompface" >&5
-ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
+ test -z "$with_xface" && { echo "$as_me:$LINENO: checking for
UnGenFace in -lcompface" >&5
+echo $ECHO_N "checking for UnGenFace in -lcompface... $ECHO_C" >&6
+if test "${ac_cv_lib_compface_UnGenFace+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcompface $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lcompface "
-cat > conftest.$ac_ext <<EOF
-#line 9814 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char UnGenFace();
-
-int main() {
-UnGenFace()
-; return 0; }
-EOF
-if { (eval echo configure:9825: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char UnGenFace ();
+int
+main ()
+{
+UnGenFace ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_compface_UnGenFace=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_compface_UnGenFace=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_compface_UnGenFace" >&5
+echo "${ECHO_T}$ac_cv_lib_compface_UnGenFace" >&6
+if test $ac_cv_lib_compface_UnGenFace = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_xface=no
+ with_xface=no
fi
-
}
test -z "$with_xface" && with_xface=yes
if test "$with_xface" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_XFACE
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_XFACE 1
-EOF
-}
+_ACEOF
libs_x="-lcompface $libs_x" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-lcompface\" to \$libs_x"; fi
fi
if test "$with_gif" != "no"; then
with_gif="yes"
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_GIF
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_GIF 1
-EOF
-}
+_ACEOF
fi
if test "$with_png $with_tiff" != "no no"; then
+ echo "$as_me:$LINENO: checking for inflate in -lc" >&5
+echo $ECHO_N "checking for inflate in -lc... $ECHO_C" >&6
+if test "${ac_cv_lib_c_inflate+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lc $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
-echo "configure:9874: checking for inflate in -lc" >&5
-ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lc "
-cat > conftest.$ac_ext <<EOF
-#line 9879 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char inflate();
-
-int main() {
-inflate()
-; return 0; }
-EOF
-if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char inflate ();
+int
+main ()
+{
+inflate ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_c_inflate=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_c_inflate=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_c_inflate" >&5
+echo "${ECHO_T}$ac_cv_lib_c_inflate" >&6
+if test $ac_cv_lib_c_inflate = yes; then
:
else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
-echo "configure:9909: checking for inflate in -lz" >&5
-ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for inflate in -lz" >&5
+echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
+if test "${ac_cv_lib_z_inflate+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lz $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lz "
-cat > conftest.$ac_ext <<EOF
-#line 9914 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char inflate();
-
-int main() {
-inflate()
-; return 0; }
-EOF
-if { (eval echo configure:9925: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char inflate ();
+int
+main ()
+{
+inflate ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_z_inflate=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_z_inflate=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
+echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
+if test $ac_cv_lib_z_inflate = yes; then
libs_x="-lz $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
-echo "configure:9944: checking for inflate in -lgz" >&5
-ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for inflate in -lgz" >&5
+echo $ECHO_N "checking for inflate in -lgz... $ECHO_C" >&6
+if test "${ac_cv_lib_gz_inflate+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgz $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lgz "
-cat > conftest.$ac_ext <<EOF
-#line 9949 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char inflate();
-
-int main() {
-inflate()
-; return 0; }
-EOF
-if { (eval echo configure:9960: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char inflate ();
+int
+main ()
+{
+inflate ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_gz_inflate=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_gz_inflate=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_gz_inflate" >&5
+echo "${ECHO_T}$ac_cv_lib_gz_inflate" >&6
+if test $ac_cv_lib_gz_inflate = yes; then
libs_x="-lgz $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
-
fi
-
fi
-
- test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" |
sed 'y%./+-%__p_%'`
-echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
-echo "configure:9990: checking for jpeglib.h" >&5
-cat > conftest.$ac_ext <<EOF
-#line 9993 "configure"
-#include "confdefs.h"
+ test -z "$with_jpeg" && { if test
"${ac_cv_header_jpeglib_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for jpeglib.h" >&5
+echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
+if test "${ac_cv_header_jpeglib_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
+echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
+echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <jpeglib.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:9998: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
+echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <jpeglib.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for jpeglib.h" >&5
+echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
+if test "${ac_cv_header_jpeglib_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_jpeglib_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
+echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
+
+fi
+if test $ac_cv_header_jpeglib_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_jpeg=no
+ with_jpeg=no
fi
+
}
- test -z "$with_jpeg" && {
-echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""...
$ac_c" 1>&6
-echo "configure:10021: checking for jpeg_destroy_decompress in -ljpeg"
>&5
-ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
+ test -z "$with_jpeg" && { echo "$as_me:$LINENO: checking for
jpeg_destroy_decompress in -ljpeg" >&5
+echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C"
>&6
+if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ljpeg $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -ljpeg "
-cat > conftest.$ac_ext <<EOF
-#line 10026 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char jpeg_destroy_decompress();
-
-int main() {
-jpeg_destroy_decompress()
-; return 0; }
-EOF
-if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char jpeg_destroy_decompress ();
+int
+main ()
+{
+jpeg_destroy_decompress ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_jpeg_jpeg_destroy_decompress=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress"
>&5
+echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6
+if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_jpeg=no
+ with_jpeg=no
fi
-
}
test -z "$with_jpeg" && with_jpeg=yes
if test "$with_jpeg" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_JPEG
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_JPEG 1
-EOF
-}
+_ACEOF
libs_x="-ljpeg $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-ljpeg\" to \$libs_x";
fi
fi
png_problem=""
- test -z "$with_png" && { echo $ac_n "checking for
pow""... $ac_c" 1>&6
-echo "configure:10073: checking for pow" >&5
+ test -z "$with_png" && { echo "$as_me:$LINENO: checking for
pow" >&5
+echo $ECHO_N "checking for pow... $ECHO_C" >&6
+if test "${ac_cv_func_pow+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define pow to an innocuous variant, in case <limits.h> declares pow.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define pow innocuous_pow
-cat > conftest.$ac_ext <<EOF
-#line 10076 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char pow(); below. */
-#include <assert.h>
+ which can conflict with char pow (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef pow
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char pow();
-
-int main() {
-
+char pow ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_pow) || defined (__stub___pow)
choke me
#else
-pow();
+char (*f) () = pow;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:10099: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_pow=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_pow=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+return f != pow;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_pow=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_pow=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
+echo "${ECHO_T}$ac_cv_func_pow" >&6
+if test $ac_cv_func_pow = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_png=no
+ with_png=no
fi
}
- test -z "$with_png" && { ac_safe=`echo "png.h" | sed
'y%./+-%__p_%'`
-echo $ac_n "checking for png.h""... $ac_c" 1>&6
-echo "configure:10120: checking for png.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10123 "configure"
-#include "confdefs.h"
+ test -z "$with_png" && { if test
"${ac_cv_header_png_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for png.h" >&5
+echo $ECHO_N "checking for png.h... $ECHO_C" >&6
+if test "${ac_cv_header_png_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
+echo "${ECHO_T}$ac_cv_header_png_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking png.h usability" >&5
+echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <png.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10128: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking png.h presence" >&5
+echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <png.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by
the preprocessor!" >&5
+echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: png.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: png.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot
Be Compiled\"" >&5
+echo "$as_me: WARNING: png.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's
result" >&5
+echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take
precedence" >&5
+echo "$as_me: WARNING: png.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for png.h" >&5
+echo $ECHO_N "checking for png.h... $ECHO_C" >&6
+if test "${ac_cv_header_png_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_png_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
+echo "${ECHO_T}$ac_cv_header_png_h" >&6
+
+fi
+if test $ac_cv_header_png_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_png=no
+ with_png=no
fi
+
}
- test -z "$with_png" && {
-echo $ac_n "checking for png_read_image in -lpng""... $ac_c"
1>&6
-echo "configure:10151: checking for png_read_image in -lpng" >&5
-ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
+ test -z "$with_png" && { echo "$as_me:$LINENO: checking for
png_read_image in -lpng" >&5
+echo $ECHO_N "checking for png_read_image in -lpng... $ECHO_C" >&6
+if test "${ac_cv_lib_png_png_read_image+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpng $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lpng "
-cat > conftest.$ac_ext <<EOF
-#line 10156 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char png_read_image();
-
-int main() {
-png_read_image()
-; return 0; }
-EOF
-if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char png_read_image ();
+int
+main ()
+{
+png_read_image ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_png_png_read_image=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_png_png_read_image=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_read_image" >&5
+echo "${ECHO_T}$ac_cv_lib_png_png_read_image" >&6
+if test $ac_cv_lib_png_png_read_image = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_png=no
+ with_png=no
fi
-
}
if test -z "$with_png"; then
- echo $ac_n "checking for workable png version information""...
$ac_c" 1>&6
-echo "configure:10190: checking for workable png version information"
>&5
+ echo "$as_me:$LINENO: checking for workable png version information"
>&5
+echo $ECHO_N "checking for workable png version information... $ECHO_C"
>&6
xe_check_libs="-lpng -lz"
- cat > conftest.$ac_ext <<EOF
-#line 10193 "configure"
-#include "confdefs.h"
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <png.h>
int main(int c, char **v) {
if (c == 1) return 0;
if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
-EOF
-if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
./conftest dummy_arg; png_status=$?;
if test "$png_status" = "0"; then
with_png=yes;
@@ -10216,193 +22985,468 @@
configure and add '--with-png=yes', but don't blame me if XEmacs
crashes!"
fi
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- with_png=no
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+with_png=no
fi
-rm -fr conftest*
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
xe_check_libs=
- echo "$ac_t""$with_png" 1>&6
+ echo "$as_me:$LINENO: result: $with_png" >&5
+echo "${ECHO_T}$with_png" >&6
fi
if test "$with_png" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_PNG
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_PNG 1
-EOF
-}
+_ACEOF
libs_x="-lpng $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
fi
- test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" |
sed 'y%./+-%__p_%'`
-echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
-echo "configure:10244: checking for tiffio.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10247 "configure"
-#include "confdefs.h"
+ test -z "$with_tiff" && { if test
"${ac_cv_header_tiffio_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for tiffio.h" >&5
+echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
+if test "${ac_cv_header_tiffio_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
+echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking tiffio.h usability" >&5
+echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <tiffio.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10252: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking tiffio.h presence" >&5
+echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <tiffio.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: tiffio.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for tiffio.h" >&5
+echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
+if test "${ac_cv_header_tiffio_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_tiffio_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
+echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
+
+fi
+if test $ac_cv_header_tiffio_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_tiff=no
+ with_tiff=no
fi
+
}
- test -z "$with_tiff" && {
-echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c"
1>&6
-echo "configure:10275: checking for TIFFClientOpen in -ltiff" >&5
-ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
+ test -z "$with_tiff" && { echo "$as_me:$LINENO: checking for
TIFFClientOpen in -ltiff" >&5
+echo $ECHO_N "checking for TIFFClientOpen in -ltiff... $ECHO_C" >&6
+if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ltiff $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -ltiff "
-cat > conftest.$ac_ext <<EOF
-#line 10280 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char TIFFClientOpen();
-
-int main() {
-TIFFClientOpen()
-; return 0; }
-EOF
-if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char TIFFClientOpen ();
+int
+main ()
+{
+TIFFClientOpen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_tiff_TIFFClientOpen=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_tiff_TIFFClientOpen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
+echo "${ECHO_T}$ac_cv_lib_tiff_TIFFClientOpen" >&6
+if test $ac_cv_lib_tiff_TIFFClientOpen = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_tiff=no
+ with_tiff=no
fi
-
}
test -z "$with_tiff" && with_tiff=yes
if test "$with_tiff" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_TIFF
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_TIFF 1
-EOF
-}
+_ACEOF
libs_x="-ltiff $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-ltiff\" to \$libs_x";
fi
fi
fi
+
+
+if test "$with_gtk" = "yes"; then
+ test -z "$with_xface" && { if test
"${ac_cv_header_compface_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for compface.h" >&5
+echo $ECHO_N "checking for compface.h... $ECHO_C" >&6
+if test "${ac_cv_header_compface_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_compface_h" >&5
+echo "${ECHO_T}$ac_cv_header_compface_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking compface.h usability" >&5
+echo $ECHO_N "checking compface.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <compface.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking compface.h presence" >&5
+echo $ECHO_N "checking compface.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <compface.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: compface.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: compface.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: compface.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: compface.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: compface.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: compface.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: compface.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: compface.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: compface.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: compface.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: compface.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for compface.h" >&5
+echo $ECHO_N "checking for compface.h... $ECHO_C" >&6
+if test "${ac_cv_header_compface_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_compface_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_compface_h" >&5
+echo "${ECHO_T}$ac_cv_header_compface_h" >&6
-
-if test "$with_gtk" = "yes"; then
- test -z "$with_xface" && { ac_safe=`echo "compface.h" |
sed 'y%./+-%__p_%'`
-echo $ac_n "checking for compface.h""... $ac_c" 1>&6
-echo "configure:10330: checking for compface.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10333 "configure"
-#include "confdefs.h"
-#include <compface.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10338: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test $ac_cv_header_compface_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_xface=no
+ with_xface=no
fi
+
}
- test -z "$with_xface" && {
-echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c"
1>&6
-echo "configure:10361: checking for UnGenFace in -lcompface" >&5
-ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
+ test -z "$with_xface" && { echo "$as_me:$LINENO: checking for
UnGenFace in -lcompface" >&5
+echo $ECHO_N "checking for UnGenFace in -lcompface... $ECHO_C" >&6
+if test "${ac_cv_lib_compface_UnGenFace+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcompface $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lcompface "
-cat > conftest.$ac_ext <<EOF
-#line 10366 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char UnGenFace();
-
-int main() {
-UnGenFace()
-; return 0; }
-EOF
-if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char UnGenFace ();
+int
+main ()
+{
+UnGenFace ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_compface_UnGenFace=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_compface_UnGenFace=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_compface_UnGenFace" >&5
+echo "${ECHO_T}$ac_cv_lib_compface_UnGenFace" >&6
+if test $ac_cv_lib_compface_UnGenFace = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_xface=no
+ with_xface=no
fi
-
}
test -z "$with_xface" && with_xface=yes
if test "$with_xface" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_XFACE
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_XFACE 1
-EOF
-}
+_ACEOF
libs_gtk="-lcompface $libs_gtk" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-lcompface\" to \$libs_gtk"; fi
fi
@@ -10411,18 +23455,18 @@
if test "$with_x11" = "yes"; then
- echo "checking for X11 graphics libraries" 1>&6
-echo "configure:10416: checking for X11 graphics libraries" >&5
+ { echo "$as_me:$LINENO: checking for X11 graphics libraries..." >&5
+echo "$as_me: checking for X11 graphics libraries..." >&6;}
fi
-case "$with_widgets" in
+case "$enable_widgets" in
"yes" | "athena") detect_athena=yes ;;
*) detect_athena=no ;;
esac
if test "$with_x11" = "yes" -a "$detect_athena" =
"yes" ; then
- echo "checking for the Athena widgets" 1>&6
-echo "configure:10426: checking for the Athena widgets" >&5
+ { echo "$as_me:$LINENO: checking for the Athena widgets..." >&5
+echo "$as_me: checking for the Athena widgets..." >&6;}
case "$with_athena" in
"xaw" | "") athena_variant=Xaw athena_3d=no ;;
@@ -10434,515 +23478,1879 @@
esac
if test "$athena_3d" = "no"; then
+ as_ac_Lib=`echo
"ac_cv_lib_$athena_variant''_XawScrollbarSetThumb" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -l$athena_variant"
>&5
+echo $ECHO_N "checking for XawScrollbarSetThumb in -l$athena_variant...
$ECHO_C" >&6
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$athena_variant $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""...
$ac_c" 1>&6
-echo "configure:10440: checking for XawScrollbarSetThumb in
-l$athena_variant" >&5
-ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed
'y%./+-%__p_%'`
-
-xe_check_libs=" -l$athena_variant "
-cat > conftest.$ac_ext <<EOF
-#line 10445 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XawScrollbarSetThumb();
-
-int main() {
-XawScrollbarSetThumb()
-; return 0; }
-EOF
-if { (eval echo configure:10456: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
-
-echo $ac_n "checking for threeDClassRec in -l$athena_variant""...
$ac_c" 1>&6
-echo "configure:10472: checking for threeDClassRec in -l$athena_variant"
>&5
-ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed
'y%./+-%__p_%'`
+char XawScrollbarSetThumb ();
+int
+main ()
+{
+XawScrollbarSetThumb ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Lib=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
+
+ as_ac_Lib=`echo
"ac_cv_lib_$athena_variant''_threeDClassRec" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for threeDClassRec in -l$athena_variant"
>&5
+echo $ECHO_N "checking for threeDClassRec in -l$athena_variant... $ECHO_C"
>&6
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$athena_variant $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -l$athena_variant "
-cat > conftest.$ac_ext <<EOF
-#line 10477 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char threeDClassRec();
-
-int main() {
-threeDClassRec()
-; return 0; }
-EOF
-if { (eval echo configure:10488: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- echo "configure: warning: Could not find a non-3d Athena widget library."
1>&2
+char threeDClassRec ();
+int
+main ()
+{
+threeDClassRec ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Lib=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
+ { echo "$as_me:$LINENO: WARNING: Could not find a non-3d Athena widget
library." >&5
+echo "$as_me: WARNING: Could not find a non-3d Athena widget library."
>&2;}
else
- echo "$ac_t""no" 1>&6
-athena_lib=$athena_variant
+ athena_lib=$athena_variant
fi
-
else
- echo "$ac_t""no" 1>&6
-echo "configure: warning: Could not find an Athena widget library."
1>&2
+ { echo "$as_me:$LINENO: WARNING: Could not find an Athena widget library."
>&5
+echo "$as_me: WARNING: Could not find an Athena widget library."
>&2;}
fi
-
else
+ as_ac_Lib=`echo "ac_cv_lib_$athena_variant''_threeDClassRec"
| $as_tr_sh`
+echo "$as_me:$LINENO: checking for threeDClassRec in -l$athena_variant"
>&5
+echo $ECHO_N "checking for threeDClassRec in -l$athena_variant... $ECHO_C"
>&6
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$athena_variant $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for threeDClassRec in -l$athena_variant""...
$ac_c" 1>&6
-echo "configure:10519: checking for threeDClassRec in -l$athena_variant"
>&5
-ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed
'y%./+-%__p_%'`
-
-xe_check_libs=" -l$athena_variant "
-cat > conftest.$ac_ext <<EOF
-#line 10524 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char threeDClassRec();
-
-int main() {
-threeDClassRec()
-; return 0; }
-EOF
-if { (eval echo configure:10535: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char threeDClassRec ();
+int
+main ()
+{
+threeDClassRec ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Lib=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
athena_lib=$athena_variant
else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c"
1>&6
-echo "configure:10553: checking for threeDClassRec in -lXaw" >&5
-ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for threeDClassRec in -lXaw"
>&5
+echo $ECHO_N "checking for threeDClassRec in -lXaw... $ECHO_C" >&6
+if test "${ac_cv_lib_Xaw_threeDClassRec+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXaw $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lXaw "
-cat > conftest.$ac_ext <<EOF
-#line 10558 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char threeDClassRec();
-
-int main() {
-threeDClassRec()
-; return 0; }
-EOF
-if { (eval echo configure:10569: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
+char threeDClassRec ();
+int
+main ()
+{
+threeDClassRec ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xaw_threeDClassRec=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xaw_threeDClassRec=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_threeDClassRec" >&5
+echo "${ECHO_T}$ac_cv_lib_Xaw_threeDClassRec" >&6
+if test $ac_cv_lib_Xaw_threeDClassRec = yes; then
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
athena_lib=Xaw;
- echo "configure: warning: Assuming that libXaw is actually
$athena_variant." 1>&2;
+ { echo "$as_me:$LINENO: WARNING: Assuming that libXaw is actually
$athena_variant." >&5
+echo "$as_me: WARNING: Assuming that libXaw is actually $athena_variant."
>&2;};
else
- echo "$ac_t""no" 1>&6
-echo "configure: warning: Could not find a 3d Athena widget library that looked
like $athena_variant." 1>&2
+ { echo "$as_me:$LINENO: WARNING: Could not find a 3d Athena widget library that
looked like $athena_variant." >&5
+echo "$as_me: WARNING: Could not find a 3d Athena widget library that looked like
$athena_variant." >&2;}
fi
-
fi
-
fi
if test "$athena_3d" = "no"; then
- ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
-echo "configure:10600: checking for X11/Xaw/ThreeD.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10603 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_X11_Xaw_ThreeD_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for X11/Xaw/ThreeD.h" >&5
+echo $ECHO_N "checking for X11/Xaw/ThreeD.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw_ThreeD_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_ThreeD_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw_ThreeD_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/Xaw/ThreeD.h usability" >&5
+echo $ECHO_N "checking X11/Xaw/ThreeD.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/Xaw/ThreeD.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10608: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/Xaw/ThreeD.h presence" >&5
+echo $ECHO_N "checking X11/Xaw/ThreeD.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xaw/ThreeD.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- echo "configure: warning: Could not find a non-3d Athena header set."
1>&2
-else
- echo "$ac_t""no" 1>&6
-ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
-echo "configure:10628: checking for X11/Xaw/XawInit.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10631 "configure"
-#include "confdefs.h"
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/Xaw/ThreeD.h" >&5
+echo $ECHO_N "checking for X11/Xaw/ThreeD.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw_ThreeD_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_X11_Xaw_ThreeD_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_ThreeD_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw_ThreeD_h" >&6
+
+fi
+if test $ac_cv_header_X11_Xaw_ThreeD_h = yes; then
+ { echo "$as_me:$LINENO: WARNING: Could not find a non-3d Athena header
set." >&5
+echo "$as_me: WARNING: Could not find a non-3d Athena header set."
>&2;}
+else
+ if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for X11/Xaw/XawInit.h" >&5
+echo $ECHO_N "checking for X11/Xaw/XawInit.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_XawInit_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw_XawInit_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/Xaw/XawInit.h usability" >&5
+echo $ECHO_N "checking X11/Xaw/XawInit.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/Xaw/XawInit.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10636: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/Xaw/XawInit.h presence" >&5
+echo $ECHO_N "checking X11/Xaw/XawInit.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xaw/XawInit.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/Xaw/XawInit.h: accepted by the compiler, rejected by
the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: X11/Xaw/XawInit.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: X11/Xaw/XawInit.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/Xaw/XawInit.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: X11/Xaw/XawInit.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/Xaw/XawInit.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: X11/Xaw/XawInit.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: in the future, the
compiler will take precedence" >&5
+echo "$as_me: WARNING: X11/Xaw/XawInit.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/Xaw/XawInit.h" >&5
+echo $ECHO_N "checking for X11/Xaw/XawInit.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_X11_Xaw_XawInit_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_XawInit_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw_XawInit_h" >&6
+
+fi
+if test $ac_cv_header_X11_Xaw_XawInit_h = yes; then
athena_h_path=X11/Xaw
else
- echo "$ac_t""no" 1>&6
-echo "configure: warning: Could not find a non-3d Athena header set."
1>&2
+ { echo "$as_me:$LINENO: WARNING: Could not find a non-3d Athena header
set." >&5
+echo "$as_me: WARNING: Could not find a non-3d Athena header set."
>&2;}
fi
+
fi
- else
- ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed
'y%./+-%__p_%'`
-echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c"
1>&6
-echo "configure:10662: checking for X11/$athena_variant/XawInit.h"
>&5
-cat > conftest.$ac_ext <<EOF
-#line 10665 "configure"
-#include "confdefs.h"
+ else
+ as_ac_Header=`echo "ac_cv_header_X11/$athena_variant/XawInit.h" |
$as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for X11/$athena_variant/XawInit.h"
>&5
+echo $ECHO_N "checking for X11/$athena_variant/XawInit.h... $ECHO_C"
>&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/$athena_variant/XawInit.h usability"
>&5
+echo $ECHO_N "checking X11/$athena_variant/XawInit.h usability... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/$athena_variant/XawInit.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10670: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/$athena_variant/XawInit.h presence"
>&5
+echo $ECHO_N "checking X11/$athena_variant/XawInit.h presence... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/$athena_variant/XawInit.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c"
1>&6
-echo "configure:10687: checking for X11/$athena_variant/ThreeD.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10690 "configure"
-#include "confdefs.h"
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/XawInit.h: accepted by
the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/$athena_variant/XawInit.h: accepted by the compiler,
rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/XawInit.h: proceeding
with the compiler's result" >&5
+echo "$as_me: WARNING: X11/$athena_variant/XawInit.h: proceeding with the
compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/XawInit.h: present but
cannot be compiled" >&5
+echo "$as_me: WARNING: X11/$athena_variant/XawInit.h: present but cannot be
compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/XawInit.h: check for
missing prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/$athena_variant/XawInit.h: check for missing
prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/XawInit.h: see the
Autoconf documentation" >&5
+echo "$as_me: WARNING: X11/$athena_variant/XawInit.h: see the Autoconf
documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/XawInit.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/$athena_variant/XawInit.h: section \"Present
But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/XawInit.h: proceeding
with the preprocessor's result" >&5
+echo "$as_me: WARNING: X11/$athena_variant/XawInit.h: proceeding with the
preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/XawInit.h: in the future,
the compiler will take precedence" >&5
+echo "$as_me: WARNING: X11/$athena_variant/XawInit.h: in the future, the compiler
will take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/$athena_variant/XawInit.h" >&5
+echo $ECHO_N "checking for X11/$athena_variant/XawInit.h... $ECHO_C"
>&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ as_ac_Header=`echo "ac_cv_header_X11/$athena_variant/ThreeD.h" |
$as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for X11/$athena_variant/ThreeD.h"
>&5
+echo $ECHO_N "checking for X11/$athena_variant/ThreeD.h... $ECHO_C"
>&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/$athena_variant/ThreeD.h usability"
>&5
+echo $ECHO_N "checking X11/$athena_variant/ThreeD.h usability... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/$athena_variant/ThreeD.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10695: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/$athena_variant/ThreeD.h presence"
>&5
+echo $ECHO_N "checking X11/$athena_variant/ThreeD.h presence... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/$athena_variant/ThreeD.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- athena_h_path=X11/$athena_variant
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/ThreeD.h: accepted by the
compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/$athena_variant/ThreeD.h: accepted by the compiler,
rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/ThreeD.h: proceeding with
the compiler's result" >&5
+echo "$as_me: WARNING: X11/$athena_variant/ThreeD.h: proceeding with the
compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/ThreeD.h: present but
cannot be compiled" >&5
+echo "$as_me: WARNING: X11/$athena_variant/ThreeD.h: present but cannot be
compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/ThreeD.h: check for
missing prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/$athena_variant/ThreeD.h: check for missing
prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/ThreeD.h: see the
Autoconf documentation" >&5
+echo "$as_me: WARNING: X11/$athena_variant/ThreeD.h: see the Autoconf
documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/ThreeD.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/$athena_variant/ThreeD.h: section \"Present
But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/ThreeD.h: proceeding with
the preprocessor's result" >&5
+echo "$as_me: WARNING: X11/$athena_variant/ThreeD.h: proceeding with the
preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/$athena_variant/ThreeD.h: in the future,
the compiler will take precedence" >&5
+echo "$as_me: WARNING: X11/$athena_variant/ThreeD.h: in the future, the compiler
will take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/$athena_variant/ThreeD.h" >&5
+echo $ECHO_N "checking for X11/$athena_variant/ThreeD.h... $ECHO_C"
>&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ eval "$as_ac_Header=\$ac_header_preproc"
fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-else
- echo "$ac_t""no" 1>&6
fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ athena_h_path=X11/$athena_variant
+fi
+
+
+fi
+
if test -z "$athena_h_path"; then
- ac_safe=`echo "$athena_variant/XawInit.h" | sed
'y%./+-%__p_%'`
-echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c"
1>&6
-echo "configure:10723: checking for $athena_variant/XawInit.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10726 "configure"
-#include "confdefs.h"
+ as_ac_Header=`echo "ac_cv_header_$athena_variant/XawInit.h" |
$as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $athena_variant/XawInit.h" >&5
+echo $ECHO_N "checking for $athena_variant/XawInit.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $athena_variant/XawInit.h usability"
>&5
+echo $ECHO_N "checking $athena_variant/XawInit.h usability... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <$athena_variant/XawInit.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10731: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $athena_variant/XawInit.h presence"
>&5
+echo $ECHO_N "checking $athena_variant/XawInit.h presence... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$athena_variant/XawInit.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c"
1>&6
-echo "configure:10748: checking for $athena_variant/ThreeD.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10751 "configure"
-#include "confdefs.h"
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/XawInit.h: accepted by the
compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $athena_variant/XawInit.h: accepted by the compiler,
rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/XawInit.h: proceeding with
the compiler's result" >&5
+echo "$as_me: WARNING: $athena_variant/XawInit.h: proceeding with the
compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/XawInit.h: present but cannot
be compiled" >&5
+echo "$as_me: WARNING: $athena_variant/XawInit.h: present but cannot be
compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/XawInit.h: check for
missing prerequisite headers?" >&5
+echo "$as_me: WARNING: $athena_variant/XawInit.h: check for missing
prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/XawInit.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $athena_variant/XawInit.h: see the Autoconf
documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/XawInit.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $athena_variant/XawInit.h: section \"Present But
Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/XawInit.h: proceeding with
the preprocessor's result" >&5
+echo "$as_me: WARNING: $athena_variant/XawInit.h: proceeding with the
preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/XawInit.h: in the future, the
compiler will take precedence" >&5
+echo "$as_me: WARNING: $athena_variant/XawInit.h: in the future, the compiler will
take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $athena_variant/XawInit.h" >&5
+echo $ECHO_N "checking for $athena_variant/XawInit.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ as_ac_Header=`echo "ac_cv_header_$athena_variant/ThreeD.h" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $athena_variant/ThreeD.h" >&5
+echo $ECHO_N "checking for $athena_variant/ThreeD.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $athena_variant/ThreeD.h usability"
>&5
+echo $ECHO_N "checking $athena_variant/ThreeD.h usability... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <$athena_variant/ThreeD.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10756: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $athena_variant/ThreeD.h presence" >&5
+echo $ECHO_N "checking $athena_variant/ThreeD.h presence... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$athena_variant/ThreeD.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- athena_h_path=$athena_variant
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/ThreeD.h: accepted by the
compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $athena_variant/ThreeD.h: accepted by the compiler,
rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/ThreeD.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $athena_variant/ThreeD.h: proceeding with the
compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/ThreeD.h: present but cannot
be compiled" >&5
+echo "$as_me: WARNING: $athena_variant/ThreeD.h: present but cannot be
compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/ThreeD.h: check for
missing prerequisite headers?" >&5
+echo "$as_me: WARNING: $athena_variant/ThreeD.h: check for missing
prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/ThreeD.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $athena_variant/ThreeD.h: see the Autoconf
documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/ThreeD.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $athena_variant/ThreeD.h: section \"Present But
Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/ThreeD.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $athena_variant/ThreeD.h: proceeding with the
preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $athena_variant/ThreeD.h: in the future, the
compiler will take precedence" >&5
+echo "$as_me: WARNING: $athena_variant/ThreeD.h: in the future, the compiler will
take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $athena_variant/ThreeD.h" >&5
+echo $ECHO_N "checking for $athena_variant/ThreeD.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ eval "$as_ac_Header=\$ac_header_preproc"
fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-else
- echo "$ac_t""no" 1>&6
fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ athena_h_path=$athena_variant
+fi
+
+
+fi
+
fi
if test -z "$athena_h_path" -a "$athena_variant" !=
"Xaw3d"; then
- ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c"
1>&6
-echo "configure:10785: checking for X11/Xaw3d/XawInit.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10788 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_X11_Xaw3d_XawInit_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for X11/Xaw3d/XawInit.h" >&5
+echo $ECHO_N "checking for X11/Xaw3d/XawInit.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw3d_XawInit_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_XawInit_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_XawInit_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/Xaw3d/XawInit.h usability" >&5
+echo $ECHO_N "checking X11/Xaw3d/XawInit.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/Xaw3d/XawInit.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10793: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/Xaw3d/XawInit.h presence" >&5
+echo $ECHO_N "checking X11/Xaw3d/XawInit.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xaw3d/XawInit.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c"
1>&6
-echo "configure:10810: checking for X11/Xaw3d/ThreeD.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10813 "configure"
-#include "confdefs.h"
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/XawInit.h: accepted by the
compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/Xaw3d/XawInit.h: accepted by the compiler, rejected by
the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/XawInit.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: X11/Xaw3d/XawInit.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/XawInit.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: X11/Xaw3d/XawInit.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/XawInit.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/Xaw3d/XawInit.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/XawInit.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: X11/Xaw3d/XawInit.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/XawInit.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/Xaw3d/XawInit.h: section \"Present But Cannot
Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/XawInit.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: X11/Xaw3d/XawInit.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/XawInit.h: in the future, the
compiler will take precedence" >&5
+echo "$as_me: WARNING: X11/Xaw3d/XawInit.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/Xaw3d/XawInit.h" >&5
+echo $ECHO_N "checking for X11/Xaw3d/XawInit.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw3d_XawInit_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_X11_Xaw3d_XawInit_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_XawInit_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_XawInit_h" >&6
+
+fi
+if test $ac_cv_header_X11_Xaw3d_XawInit_h = yes; then
+ if test "${ac_cv_header_X11_Xaw3d_ThreeD_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for X11/Xaw3d/ThreeD.h" >&5
+echo $ECHO_N "checking for X11/Xaw3d/ThreeD.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw3d_ThreeD_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_ThreeD_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_ThreeD_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/Xaw3d/ThreeD.h usability" >&5
+echo $ECHO_N "checking X11/Xaw3d/ThreeD.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/Xaw3d/ThreeD.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10818: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/Xaw3d/ThreeD.h presence" >&5
+echo $ECHO_N "checking X11/Xaw3d/ThreeD.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xaw3d/ThreeD.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/ThreeD.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/Xaw3d/ThreeD.h: accepted by the compiler, rejected by
the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/ThreeD.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: X11/Xaw3d/ThreeD.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/ThreeD.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: X11/Xaw3d/ThreeD.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/ThreeD.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/Xaw3d/ThreeD.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/ThreeD.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: X11/Xaw3d/ThreeD.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/ThreeD.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/Xaw3d/ThreeD.h: section \"Present But Cannot
Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/ThreeD.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: X11/Xaw3d/ThreeD.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/ThreeD.h: in the future, the
compiler will take precedence" >&5
+echo "$as_me: WARNING: X11/Xaw3d/ThreeD.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/Xaw3d/ThreeD.h" >&5
+echo $ECHO_N "checking for X11/Xaw3d/ThreeD.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw3d_ThreeD_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_X11_Xaw3d_ThreeD_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_ThreeD_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_ThreeD_h" >&6
- echo "configure: warning: Assuming that X11/Xaw3d headers are suitable
for $athena_variant." 1>&2
+fi
+if test $ac_cv_header_X11_Xaw3d_ThreeD_h = yes; then
+
+ { echo "$as_me:$LINENO: WARNING: Assuming that X11/Xaw3d headers are
suitable for $athena_variant." >&5
+echo "$as_me: WARNING: Assuming that X11/Xaw3d headers are suitable for
$athena_variant." >&2;}
athena_h_path=X11/Xaw3d
-else
- echo "$ac_t""no" 1>&6
fi
-else
- echo "$ac_t""no" 1>&6
+
fi
+
fi
if test -z "$athena_h_path" -a "$athena_variant" !=
"Xaw3d"; then
- ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
-echo "configure:10850: checking for Xaw3d/XawInit.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10853 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_Xaw3d_XawInit_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for Xaw3d/XawInit.h" >&5
+echo $ECHO_N "checking for Xaw3d/XawInit.h... $ECHO_C" >&6
+if test "${ac_cv_header_Xaw3d_XawInit_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Xaw3d_XawInit_h" >&5
+echo "${ECHO_T}$ac_cv_header_Xaw3d_XawInit_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking Xaw3d/XawInit.h usability" >&5
+echo $ECHO_N "checking Xaw3d/XawInit.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <Xaw3d/XawInit.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10858: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking Xaw3d/XawInit.h presence" >&5
+echo $ECHO_N "checking Xaw3d/XawInit.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <Xaw3d/XawInit.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
-echo "configure:10875: checking for Xaw3d/ThreeD.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10878 "configure"
-#include "confdefs.h"
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/XawInit.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: Xaw3d/XawInit.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/XawInit.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: Xaw3d/XawInit.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/XawInit.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: Xaw3d/XawInit.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/XawInit.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: Xaw3d/XawInit.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/XawInit.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: Xaw3d/XawInit.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/XawInit.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: Xaw3d/XawInit.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/XawInit.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: Xaw3d/XawInit.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/XawInit.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: Xaw3d/XawInit.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for Xaw3d/XawInit.h" >&5
+echo $ECHO_N "checking for Xaw3d/XawInit.h... $ECHO_C" >&6
+if test "${ac_cv_header_Xaw3d_XawInit_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_Xaw3d_XawInit_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Xaw3d_XawInit_h" >&5
+echo "${ECHO_T}$ac_cv_header_Xaw3d_XawInit_h" >&6
+
+fi
+if test $ac_cv_header_Xaw3d_XawInit_h = yes; then
+ if test "${ac_cv_header_Xaw3d_ThreeD_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for Xaw3d/ThreeD.h" >&5
+echo $ECHO_N "checking for Xaw3d/ThreeD.h... $ECHO_C" >&6
+if test "${ac_cv_header_Xaw3d_ThreeD_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Xaw3d_ThreeD_h" >&5
+echo "${ECHO_T}$ac_cv_header_Xaw3d_ThreeD_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking Xaw3d/ThreeD.h usability" >&5
+echo $ECHO_N "checking Xaw3d/ThreeD.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <Xaw3d/ThreeD.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10883: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking Xaw3d/ThreeD.h presence" >&5
+echo $ECHO_N "checking Xaw3d/ThreeD.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <Xaw3d/ThreeD.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/ThreeD.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: Xaw3d/ThreeD.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/ThreeD.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: Xaw3d/ThreeD.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/ThreeD.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: Xaw3d/ThreeD.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/ThreeD.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: Xaw3d/ThreeD.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/ThreeD.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: Xaw3d/ThreeD.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/ThreeD.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: Xaw3d/ThreeD.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/ThreeD.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: Xaw3d/ThreeD.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xaw3d/ThreeD.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: Xaw3d/ThreeD.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for Xaw3d/ThreeD.h" >&5
+echo $ECHO_N "checking for Xaw3d/ThreeD.h... $ECHO_C" >&6
+if test "${ac_cv_header_Xaw3d_ThreeD_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_Xaw3d_ThreeD_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Xaw3d_ThreeD_h" >&5
+echo "${ECHO_T}$ac_cv_header_Xaw3d_ThreeD_h" >&6
- echo "configure: warning: Assuming that Xaw3d headers are suitable for
$athena_variant." 1>&2
+fi
+if test $ac_cv_header_Xaw3d_ThreeD_h = yes; then
+
+ { echo "$as_me:$LINENO: WARNING: Assuming that Xaw3d headers are
suitable for $athena_variant." >&5
+echo "$as_me: WARNING: Assuming that Xaw3d headers are suitable for
$athena_variant." >&2;}
athena_h_path=Xaw3d
-else
- echo "$ac_t""no" 1>&6
fi
-else
- echo "$ac_t""no" 1>&6
+
fi
+
fi
if test -z "$athena_h_path"; then
- ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
-echo "configure:10915: checking for X11/Xaw/ThreeD.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10918 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_X11_Xaw_ThreeD_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for X11/Xaw/ThreeD.h" >&5
+echo $ECHO_N "checking for X11/Xaw/ThreeD.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw_ThreeD_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_ThreeD_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw_ThreeD_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking X11/Xaw/ThreeD.h usability" >&5
+echo $ECHO_N "checking X11/Xaw/ThreeD.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <X11/Xaw/ThreeD.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10923: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking X11/Xaw/ThreeD.h presence" >&5
+echo $ECHO_N "checking X11/Xaw/ThreeD.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xaw/ThreeD.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: X11/Xaw/ThreeD.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: X11/Xaw/ThreeD.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for X11/Xaw/ThreeD.h" >&5
+echo $ECHO_N "checking for X11/Xaw/ThreeD.h... $ECHO_C" >&6
+if test "${ac_cv_header_X11_Xaw_ThreeD_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_X11_Xaw_ThreeD_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_ThreeD_h" >&5
+echo "${ECHO_T}$ac_cv_header_X11_Xaw_ThreeD_h" >&6
+
+fi
+if test $ac_cv_header_X11_Xaw_ThreeD_h = yes; then
- echo "configure: warning: Assuming that X11/Xaw headers are suitable for
$athena_variant." 1>&2
+ { echo "$as_me:$LINENO: WARNING: Assuming that X11/Xaw headers are
suitable for $athena_variant." >&5
+echo "$as_me: WARNING: Assuming that X11/Xaw headers are suitable for
$athena_variant." >&2;}
athena_h_path=X11/Xaw
else
- echo "$ac_t""no" 1>&6
-echo "configure: warning: Could not find a suitable 3d Athena header set."
1>&2
+ { echo "$as_me:$LINENO: WARNING: Could not find a suitable 3d Athena header
set." >&5
+echo "$as_me: WARNING: Could not find a suitable 3d Athena header set."
>&2;}
fi
+
fi
fi
@@ -10956,133 +25364,290 @@
have_xaw=no
fi
if test "$with_x11" = "yes"; then
- ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
-echo "configure:10962: checking for Xm/Xm.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 10965 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
+echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
+if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
+echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking Xm/Xm.h usability" >&5
+echo $ECHO_N "checking Xm/Xm.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <Xm/Xm.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10970: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking Xm/Xm.h presence" >&5
+echo $ECHO_N "checking Xm/Xm.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <Xm/Xm.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
-
-echo $ac_n "checking for XmStringFree in -lXm""... $ac_c"
1>&6
-echo "configure:10987: checking for XmStringFree in -lXm" >&5
-ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: Xm/Xm.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: Xm/Xm.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: Xm/Xm.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: Xm/Xm.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: Xm/Xm.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: Xm/Xm.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: Xm/Xm.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: Xm/Xm.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
+echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
+if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_Xm_Xm_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
+echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
+
+fi
+if test $ac_cv_header_Xm_Xm_h = yes; then
+ echo "$as_me:$LINENO: checking for XmStringCreate in -lXm" >&5
+echo $ECHO_N "checking for XmStringCreate in -lXm... $ECHO_C" >&6
+if test "${ac_cv_lib_Xm_XmStringCreate+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lXm "
-cat > conftest.$ac_ext <<EOF
-#line 10992 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XmStringFree();
-
-int main() {
-XmStringFree()
-; return 0; }
-EOF
-if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XmStringCreate ();
+int
+main ()
+{
+XmStringCreate ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xm_XmStringCreate=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xm_XmStringCreate=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmStringCreate" >&5
+echo "${ECHO_T}$ac_cv_lib_Xm_XmStringCreate" >&6
+if test $ac_cv_lib_Xm_XmStringCreate = yes; then
have_motif=yes
else
- echo "$ac_t""no" 1>&6
-have_motif=no
+ have_motif=no
fi
-
else
- echo "$ac_t""no" 1>&6
-have_motif=no
+ have_motif=no
fi
+
if test "$have_motif" = "yes"; then
- echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
-echo "configure:11032: checking for Lesstif" >&5
- cat > conftest.$ac_ext <<EOF
-#line 11034 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking for Lesstif" >&5
+echo $ECHO_N "checking for Lesstif... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <Xm/Xm.h>
#ifdef LESSTIF_VERSION
yes
#endif
-EOF
+_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
+ $EGREP "yes" >/dev/null 2>&1; then
have_lesstif=yes
else
- rm -rf conftest*
have_lesstif=no
fi
rm -f conftest*
- echo "$ac_t""$have_lesstif" 1>&6
+ echo "$as_me:$LINENO: result: $have_lesstif" >&5
+echo "${ECHO_T}$have_lesstif" >&6
fi
fi
-case "$with_menubars" in "" | "yes" | "athena"
)
- with_menubars="lucid" ;;
+case "$enable_menubars" in "" | "yes" |
"athena" )
+ enable_menubars="lucid" ;;
esac
-
-if test "$with_menubars" = "xft" ; then
- if test "$with_xft" = "yes" ; then
+if test "$with_xft_menubars" != "no" ; then
+ if test "$with_xft_emacs" = "yes" -a "$with_menubars"
!= "no" ; then
with_xft_menubars="yes"
+ else
+ with_xft_menubars="no"
fi
- with_menubars="lucid"
fi
-
-case "$with_dialogs" in "" | "yes" | "lucid" )
- if test "$have_motif" = "yes"; then
with_dialogs="motif"
- elif test "$have_xaw" = "yes"; then
with_dialogs="athena"
- elif test "$with_msw" = "yes"; then
with_dialogs="msw"
- else with_dialogs=no
+case "$enable_dialogs" in "" | "yes" | "lucid"
)
+ if test "$have_motif" = "yes"; then
enable_dialogs="motif"
+ elif test "$have_xaw" = "yes"; then
enable_dialogs="athena"
+ elif test "$with_msw" = "yes"; then
enable_dialogs="msw"
+ else enable_dialogs=no
fi ;;
esac
-case "$with_scrollbars" in "" | "yes" )
- with_scrollbars="lucid" ;;
+case "$enable_scrollbars" in "" | "yes" )
+ enable_scrollbars="lucid" ;;
esac
-case "$with_widgets" in "" | "yes" | "lucid")
- if test "$have_motif" = "yes"; then
with_widgets="motif"
- elif test "$have_xaw" = "yes"; then
with_widgets="athena"
- elif test "$with_msw" = "yes"; then
with_widgets="msw"
- else with_widgets=no
+case "$enable_widgets" in "" | "yes" |
"lucid")
+ if test "$have_motif" = "yes"; then
enable_widgets="motif"
+ elif test "$have_xaw" = "yes"; then
enable_widgets="athena"
+ elif test "$with_msw" = "yes"; then
enable_widgets="msw"
+ else enable_widgets=no
fi ;;
esac
+if test "$with_xft_tabs" != "no" ; then
+ if test "$with_xft_emacs" = "yes" -a "$enable_widgets"
!= "no" ; then
+ with_xft_tabs="yes"
+ else
+ with_xft_tabs="no"
+ fi
+fi
+if test "$with_xft_gauge" != "no" ; then
+ if test "$with_xft_emacs" = "yes" -a "$enable_widgets"
!= "no" ; then
+ with_xft_gauge="yes"
+ else
+ with_xft_gauge="no"
+ fi
+fi
-all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars
$with_widgets"
+all_widgets="$enable_menubars $enable_scrollbars $enable_dialogs $enable_toolbars
$enable_widgets"
case "$all_widgets" in
*athena* )
@@ -11094,548 +25659,591 @@
libs_x="-l$athena_lib $libs_x" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-l$athena_lib\" to \$libs_x"; fi
- { test "$extra_verbose" = "yes" && cat
<< EOF
- Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_Form_h_ "$athena_h_path/Form.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_Command_h_ "$athena_h_path/Command.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_Label_h_ "$athena_h_path/Label.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_USES_ATHENA
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define LWLIB_USES_ATHENA 1
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining NEED_ATHENA
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define NEED_ATHENA 1
-EOF
-}
+_ACEOF
need_athena="yes"
if test "$athena_3d" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_ATHENA_3D
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_ATHENA_3D 1
-EOF
-}
+_ACEOF
fi
;;
esac
case "$all_widgets" in *motif* )
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_USES_MOTIF
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define LWLIB_USES_MOTIF 1
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining NEED_MOTIF
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define NEED_MOTIF 1
-EOF
-}
+_ACEOF
lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"lwlib-Xm.o\" to \$lwlib_objs"; fi
need_motif=yes ;;
esac
-test "$with_menubars" = "lucid" &&
lwlib_objs="$lwlib_objs xlwmenu.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"xlwmenu.o\" to \$lwlib_objs"; fi
-test "$with_menubars" = "motif" &&
lwlib_objs="$lwlib_objs xlwmenu.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"xlwmenu.o\" to \$lwlib_objs"; fi
-test "$with_scrollbars" = "lucid" &&
lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"xlwscrollbar.o\" to \$lwlib_objs"; fi
-test "$with_widgets" != "no" && test
"$with_widgets" != "msw" && \
+test "$enable_menubars" = "lucid" &&
lwlib_objs="$lwlib_objs xlwmenu.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"xlwmenu.o\" to \$lwlib_objs"; fi
+test "$enable_menubars" = "motif" &&
lwlib_objs="$lwlib_objs xlwmenu.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"xlwmenu.o\" to \$lwlib_objs"; fi
+test "$enable_scrollbars" = "lucid" &&
lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"xlwscrollbar.o\" to \$lwlib_objs"; fi
+test "$enable_widgets" != "no" && test
"$enable_widgets" != "msw" && \
lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
-case "$with_widgets" in athena* )
+case "$enable_widgets" in athena* )
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;;
esac
case "$all_widgets" in *lucid* )
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining NEED_LUCID
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define NEED_LUCID 1
-EOF
-}
+_ACEOF
lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
esac
-test "$with_scrollbars" = "athena" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_SCROLLBARS_ATHENA
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_scrollbars" = "athena" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_SCROLLBARS_ATHENA 1
-EOF
-}
+_ACEOF
-test "$with_dialogs" = "athena" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_DIALOGS_ATHENA
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_dialogs" = "athena" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_DIALOGS_ATHENA 1
-EOF
-}
+_ACEOF
if test "$athena_3d" = "yes"; then
- test "$with_scrollbars" = "athena" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_SCROLLBARS_ATHENA3D
-EOF
-cat >> confdefs.h <<\EOF
+ test "$enable_scrollbars" = "athena" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_SCROLLBARS_ATHENA3D 1
-EOF
-}
+_ACEOF
- test "$with_dialogs" = "athena" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_DIALOGS_ATHENA3D
-EOF
-cat >> confdefs.h <<\EOF
+ test "$enable_dialogs" = "athena" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_DIALOGS_ATHENA3D 1
-EOF
-}
+_ACEOF
fi
-case "$with_widgets" in athena* ) { test "$extra_verbose" =
"yes" && cat << \EOF
- Defining LWLIB_WIDGETS_ATHENA
-EOF
-cat >> confdefs.h <<\EOF
+case "$enable_widgets" in athena* ) cat >>confdefs.h <<\_ACEOF
#define LWLIB_WIDGETS_ATHENA 1
-EOF
-}
+_ACEOF
;; esac
-test "$with_widgets" != "no" && test
"$with_widgets" != "msw" && \
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_TABS_LUCID
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_widgets" != "no" && test
"$enable_widgets" != "msw" && \
+ cat >>confdefs.h <<\_ACEOF
#define LWLIB_TABS_LUCID 1
-EOF
-}
+_ACEOF
-test "$with_menubars" != "no" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_MENUBARS
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_menubars" != "no" && cat
>>confdefs.h <<\_ACEOF
#define HAVE_MENUBARS 1
-EOF
-}
+_ACEOF
-test "$with_scrollbars" != "no" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_SCROLLBARS
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_scrollbars" != "no" && cat
>>confdefs.h <<\_ACEOF
#define HAVE_SCROLLBARS 1
-EOF
-}
+_ACEOF
-test "$with_dialogs" != "no" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_DIALOGS
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_dialogs" != "no" && cat
>>confdefs.h <<\_ACEOF
#define HAVE_DIALOGS 1
-EOF
-}
+_ACEOF
-test "$with_toolbars" != "no" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_TOOLBARS
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_toolbars" != "no" && cat
>>confdefs.h <<\_ACEOF
#define HAVE_TOOLBARS 1
-EOF
-}
+_ACEOF
-test "$with_widgets" != "no" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_WIDGETS
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_widgets" != "no" && cat
>>confdefs.h <<\_ACEOF
#define HAVE_WIDGETS 1
-EOF
-}
+_ACEOF
-test "$with_menubars" = "lucid" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_MENUBARS_LUCID
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_menubars" = "lucid" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_MENUBARS_LUCID 1
-EOF
-}
+_ACEOF
-test "$with_scrollbars" = "lucid" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_SCROLLBARS_LUCID
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_scrollbars" = "lucid" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_SCROLLBARS_LUCID 1
-EOF
-}
+_ACEOF
-test "$with_menubars" = "motif" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_MENUBARS_MOTIF
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_menubars" = "motif" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_MENUBARS_MOTIF 1
-EOF
-}
+_ACEOF
-test "$with_scrollbars" = "motif" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_SCROLLBARS_MOTIF
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_scrollbars" = "motif" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_SCROLLBARS_MOTIF 1
-EOF
-}
+_ACEOF
-test "$with_dialogs" = "motif" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_DIALOGS_MOTIF
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_dialogs" = "motif" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_DIALOGS_MOTIF 1
-EOF
-}
+_ACEOF
-test "$with_widgets" = "motif" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining LWLIB_WIDGETS_MOTIF
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_widgets" = "motif" && cat
>>confdefs.h <<\_ACEOF
#define LWLIB_WIDGETS_MOTIF 1
-EOF
-}
+_ACEOF
-test "$with_xft_menubars" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining USE_XFT_MENUBARS
-EOF
-cat >> confdefs.h <<\EOF
+test "$with_xft_menubars" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define USE_XFT_MENUBARS 1
-EOF
-}
+_ACEOF
+test "$with_xft_tabs" = "yes" && cat >>confdefs.h
<<\_ACEOF
+#define USE_XFT_TABS 1
+_ACEOF
+test "$with_xft_gauge" = "yes" && cat >>confdefs.h
<<\_ACEOF
+#define USE_XFT_GAUGE 1
+_ACEOF
-test -z "$with_mule" && with_mule=no
-if test "$with_default_eol_detection" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_DEFAULT_EOL_DETECTION
-EOF
-cat >> confdefs.h <<\EOF
+test -z "$enable_mule" && enable_mule=no
+
+
+if test "$enable_default_eol_detection" = "yes"; then
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_DEFAULT_EOL_DETECTION 1
-EOF
-}
+_ACEOF
fi
-if test "$with_mule" = "yes" ; then
- echo "checking for Mule-related features" 1>&6
-echo "configure:11424: checking for Mule-related features" >&5
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining MULE
-EOF
-cat >> confdefs.h <<\EOF
+if test "$enable_mule" = "yes" ; then
+ { echo "$as_me:$LINENO: checking for Mule-related features..." >&5
+echo "$as_me: checking for Mule-related features..." >&6;}
+ cat >>confdefs.h <<\_ACEOF
#define MULE 1
-EOF
-}
+_ACEOF
- for ac_hdr in libintl.h
+
+for ac_header in libintl.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:11438: checking for $ac_hdr" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 11441 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:11446: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
-
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ eval "$as_ac_Header=\$ac_header_preproc"
fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
done
-echo $ac_n "checking for strerror in -lintl""... $ac_c"
1>&6
-echo "configure:11477: checking for strerror in -lintl" >&5
-ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
+echo "$as_me:$LINENO: checking for strerror in -lintl" >&5
+echo $ECHO_N "checking for strerror in -lintl... $ECHO_C" >&6
+if test "${ac_cv_lib_intl_strerror+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lintl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lintl "
-cat > conftest.$ac_ext <<EOF
-#line 11482 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char strerror();
-
-int main() {
-strerror()
-; return 0; }
-EOF
-if { (eval echo configure:11493: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_lib
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+char strerror ();
+int
+main ()
+{
+strerror ();
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_intl_strerror=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_intl_strerror=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strerror" >&5
+echo "${ECHO_T}$ac_cv_lib_intl_strerror" >&6
+if test $ac_cv_lib_intl_strerror = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBINTL 1
+_ACEOF
- LIBS="-lintl $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
+ LIBS="-lintl $LIBS"
-else
- echo "$ac_t""no" 1>&6
fi
-
- echo "checking for Mule input methods" 1>&6
-echo "configure:11526: checking for Mule input methods" >&5
+ { echo "$as_me:$LINENO: checking for Mule input methods..." >&5
+echo "$as_me: checking for Mule input methods..." >&6;}
case "$with_xim" in "" | "yes" )
- echo "checking for XIM" 1>&6
-echo "configure:11529: checking for XIM" >&5
+ { echo "$as_me:$LINENO: checking for XIM..." >&5
+echo "$as_me: checking for XIM..." >&6;}
+ echo "$as_me:$LINENO: checking for XOpenIM in -lX11" >&5
+echo $ECHO_N "checking for XOpenIM in -lX11... $ECHO_C" >&6
+if test "${ac_cv_lib_X11_XOpenIM+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
-echo "configure:11532: checking for XOpenIM in -lX11" >&5
-ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lX11 "
-cat > conftest.$ac_ext <<EOF
-#line 11537 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XOpenIM();
-
-int main() {
-XOpenIM()
-; return 0; }
-EOF
-if { (eval echo configure:11548: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XOpenIM ();
+int
+main ()
+{
+XOpenIM ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_X11_XOpenIM=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_X11_XOpenIM=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenIM" >&5
+echo "${ECHO_T}$ac_cv_lib_X11_XOpenIM" >&6
+if test $ac_cv_lib_X11_XOpenIM = yes; then
with_xim=xlib
else
- echo "$ac_t""no" 1>&6
-with_xim=no
+ with_xim=no
fi
-
if test "$have_motif $have_lesstif" = "yes no"; then
+ echo "$as_me:$LINENO: checking for XmImMbLookupString in -lXm"
>&5
+echo $ECHO_N "checking for XmImMbLookupString in -lXm... $ECHO_C" >&6
+if test "${ac_cv_lib_Xm_XmImMbLookupString+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c"
1>&6
-echo "configure:11572: checking for XmImMbLookupString in -lXm" >&5
-ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lXm "
-cat > conftest.$ac_ext <<EOF
-#line 11577 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XmImMbLookupString();
-
-int main() {
-XmImMbLookupString()
-; return 0; }
-EOF
-if { (eval echo configure:11588: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XmImMbLookupString ();
+int
+main ()
+{
+XmImMbLookupString ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xm_XmImMbLookupString=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xm_XmImMbLookupString=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmImMbLookupString" >&5
+echo "${ECHO_T}$ac_cv_lib_Xm_XmImMbLookupString" >&6
+if test $ac_cv_lib_Xm_XmImMbLookupString = yes; then
with_xim=motif
-else
- echo "$ac_t""no" 1>&6
fi
-
fi ;;
esac
if test "$with_xim" != "no"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_XIM
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_XIM 1
-EOF
-}
+_ACEOF
if test "$with_xim" = "xlib"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining XIM_XLIB
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define XIM_XLIB 1
-EOF
-}
+_ACEOF
extra_objs="$extra_objs input-method-xlib.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"input-method-xlib.o\""
fi
fi
if test "$with_xim" = "motif"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining XIM_MOTIF
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define XIM_MOTIF 1
-EOF
-}
+_ACEOF
need_motif=yes
extra_objs="$extra_objs input-method-motif.o" && if test
"$extra_verbose" = "yes"; then
@@ -11648,55 +26256,81 @@
fi
if test "$with_xfs" = "yes" ; then
- echo "checking for XFontSet" 1>&6
-echo "configure:11653: checking for XFontSet" >&5
+ { echo "$as_me:$LINENO: checking for XFontSet..." >&5
+echo "$as_me: checking for XFontSet..." >&6;}
+ echo "$as_me:$LINENO: checking for XmbDrawString in -lX11" >&5
+echo $ECHO_N "checking for XmbDrawString in -lX11... $ECHO_C" >&6
+if test "${ac_cv_lib_X11_XmbDrawString+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c"
1>&6
-echo "configure:11656: checking for XmbDrawString in -lX11" >&5
-ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lX11 "
-cat > conftest.$ac_ext <<EOF
-#line 11661 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char XmbDrawString();
-
-int main() {
-XmbDrawString()
-; return 0; }
-EOF
-if { (eval echo configure:11672: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char XmbDrawString ();
+int
+main ()
+{
+XmbDrawString ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_X11_XmbDrawString=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_X11_XmbDrawString=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XmbDrawString" >&5
+echo "${ECHO_T}$ac_cv_lib_X11_XmbDrawString" >&6
+if test $ac_cv_lib_X11_XmbDrawString = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_xfs=no
+ with_xfs=no
fi
-
- if test "$with_xfs" = "yes" && test
"$with_menubars" = "lucid"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining USE_XFONTSET
-EOF
-cat >> confdefs.h <<\EOF
+ if test "$with_xfs" = "yes" && test
"$enable_menubars" = "lucid"; then
+ cat >>confdefs.h <<\_ACEOF
#define USE_XFONTSET 1
-EOF
-}
+_ACEOF
if test "$with_xim" = "no" ; then
extra_objs="$extra_objs input-method-xlib.o" && if test
"$extra_verbose" = "yes"; then
@@ -11706,586 +26340,1415 @@
fi
fi
test "$with_wnn6" = "yes" && with_wnn=yes # wnn6
implies wnn support
- test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" |
sed 'y%./+-%__p_%'`
-echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
-echo "configure:11712: checking for wnn/jllib.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 11715 "configure"
-#include "confdefs.h"
+ test -z "$with_wnn" && { if test
"${ac_cv_header_wnn_jllib_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for wnn/jllib.h" >&5
+echo $ECHO_N "checking for wnn/jllib.h... $ECHO_C" >&6
+if test "${ac_cv_header_wnn_jllib_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_wnn_jllib_h" >&5
+echo "${ECHO_T}$ac_cv_header_wnn_jllib_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking wnn/jllib.h usability" >&5
+echo $ECHO_N "checking wnn/jllib.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <wnn/jllib.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:11720: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking wnn/jllib.h presence" >&5
+echo $ECHO_N "checking wnn/jllib.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <wnn/jllib.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: wnn/jllib.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: wnn/jllib.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/jllib.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: wnn/jllib.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: wnn/jllib.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: wnn/jllib.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/jllib.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: wnn/jllib.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/jllib.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: wnn/jllib.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/jllib.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: wnn/jllib.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/jllib.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: wnn/jllib.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/jllib.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: wnn/jllib.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for wnn/jllib.h" >&5
+echo $ECHO_N "checking for wnn/jllib.h... $ECHO_C" >&6
+if test "${ac_cv_header_wnn_jllib_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_wnn_jllib_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_wnn_jllib_h" >&5
+echo "${ECHO_T}$ac_cv_header_wnn_jllib_h" >&6
+
+fi
+if test $ac_cv_header_wnn_jllib_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_wnn=no
+ with_wnn=no
fi
+
}
- test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h"
| sed 'y%./+-%__p_%'`
-echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
-echo "configure:11743: checking for wnn/commonhd.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 11746 "configure"
-#include "confdefs.h"
+ test -z "$with_wnn" && { if test
"${ac_cv_header_wnn_commonhd_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for wnn/commonhd.h" >&5
+echo $ECHO_N "checking for wnn/commonhd.h... $ECHO_C" >&6
+if test "${ac_cv_header_wnn_commonhd_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_wnn_commonhd_h" >&5
+echo "${ECHO_T}$ac_cv_header_wnn_commonhd_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking wnn/commonhd.h usability" >&5
+echo $ECHO_N "checking wnn/commonhd.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <wnn/commonhd.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:11751: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking wnn/commonhd.h presence" >&5
+echo $ECHO_N "checking wnn/commonhd.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <wnn/commonhd.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: wnn/commonhd.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: wnn/commonhd.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/commonhd.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: wnn/commonhd.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: wnn/commonhd.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: wnn/commonhd.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/commonhd.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: wnn/commonhd.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/commonhd.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: wnn/commonhd.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/commonhd.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: wnn/commonhd.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/commonhd.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: wnn/commonhd.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: wnn/commonhd.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: wnn/commonhd.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for wnn/commonhd.h" >&5
+echo $ECHO_N "checking for wnn/commonhd.h... $ECHO_C" >&6
+if test "${ac_cv_header_wnn_commonhd_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_wnn_commonhd_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_wnn_commonhd_h" >&5
+echo "${ECHO_T}$ac_cv_header_wnn_commonhd_h" >&6
+
+fi
+if test $ac_cv_header_wnn_commonhd_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_wnn=no
+ with_wnn=no
fi
+
}
if test "$with_wnn" != "no"; then
- for ac_func in crypt
+
+for ac_func in crypt
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:11776: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 11779 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
#endif
-; return 0; }
-EOF
-if { (eval echo configure:11802: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
-
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
test "$ac_cv_func_crypt" != "yes" && {
-echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
-echo "configure:11831: checking for crypt in -lcrypt" >&5
-ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
+echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
+echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
+if test "${ac_cv_lib_crypt_crypt+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcrypt $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lcrypt "
-cat > conftest.$ac_ext <<EOF
-#line 11836 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char crypt();
-
-int main() {
-crypt()
-; return 0; }
-EOF
-if { (eval echo configure:11847: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_lib
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+char crypt ();
+int
+main ()
+{
+crypt ();
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_crypt_crypt=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_crypt_crypt=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
+echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
+if test $ac_cv_lib_crypt_crypt = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBCRYPT 1
+_ACEOF
- LIBS="-lcrypt $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
+ LIBS="-lcrypt $LIBS"
-else
- echo "$ac_t""no" 1>&6
fi
-
}
fi
if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
+ echo "$as_me:$LINENO: checking for jl_dic_list_e in -lwnn" >&5
+echo $ECHO_N "checking for jl_dic_list_e in -lwnn... $ECHO_C" >&6
+if test "${ac_cv_lib_wnn_jl_dic_list_e+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lwnn $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c"
1>&6
-echo "configure:11882: checking for jl_dic_list_e in -lwnn" >&5
-ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lwnn "
-cat > conftest.$ac_ext <<EOF
-#line 11887 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char jl_dic_list_e();
-
-int main() {
-jl_dic_list_e()
-; return 0; }
-EOF
-if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char jl_dic_list_e ();
+int
+main ()
+{
+jl_dic_list_e ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_wnn_jl_dic_list_e=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_wnn_jl_dic_list_e=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_wnn_jl_dic_list_e" >&5
+echo "${ECHO_T}$ac_cv_lib_wnn_jl_dic_list_e" >&6
+if test $ac_cv_lib_wnn_jl_dic_list_e = yes; then
libwnn=wnn
else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c"
1>&6
-echo "configure:11916: checking for jl_dic_list_e in -lwnn4" >&5
-ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for jl_dic_list_e in -lwnn4" >&5
+echo $ECHO_N "checking for jl_dic_list_e in -lwnn4... $ECHO_C" >&6
+if test "${ac_cv_lib_wnn4_jl_dic_list_e+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lwnn4 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lwnn4 "
-cat > conftest.$ac_ext <<EOF
-#line 11921 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char jl_dic_list_e();
-
-int main() {
-jl_dic_list_e()
-; return 0; }
-EOF
-if { (eval echo configure:11932: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char jl_dic_list_e ();
+int
+main ()
+{
+jl_dic_list_e ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_wnn4_jl_dic_list_e=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_wnn4_jl_dic_list_e=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_wnn4_jl_dic_list_e" >&5
+echo "${ECHO_T}$ac_cv_lib_wnn4_jl_dic_list_e" >&6
+if test $ac_cv_lib_wnn4_jl_dic_list_e = yes; then
libwnn=wnn4
else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c"
1>&6
-echo "configure:11950: checking for jl_dic_list_e in -lwnn6" >&5
-ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for jl_dic_list_e in -lwnn6" >&5
+echo $ECHO_N "checking for jl_dic_list_e in -lwnn6... $ECHO_C" >&6
+if test "${ac_cv_lib_wnn6_jl_dic_list_e+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lwnn6 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lwnn6 "
-cat > conftest.$ac_ext <<EOF
-#line 11955 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char jl_dic_list_e();
-
-int main() {
-jl_dic_list_e()
-; return 0; }
-EOF
-if { (eval echo configure:11966: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char jl_dic_list_e ();
+int
+main ()
+{
+jl_dic_list_e ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_wnn6_jl_dic_list_e=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_wnn6_jl_dic_list_e=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_wnn6_jl_dic_list_e" >&5
+echo "${ECHO_T}$ac_cv_lib_wnn6_jl_dic_list_e" >&6
+if test $ac_cv_lib_wnn6_jl_dic_list_e = yes; then
libwnn=wnn6
else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c"
1>&6
-echo "configure:11984: checking for dic_list_e in -lwnn6_fromsrc" >&5
-ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for dic_list_e in -lwnn6_fromsrc"
>&5
+echo $ECHO_N "checking for dic_list_e in -lwnn6_fromsrc... $ECHO_C"
>&6
+if test "${ac_cv_lib_wnn6_fromsrc_dic_list_e+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lwnn6_fromsrc $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lwnn6_fromsrc "
-cat > conftest.$ac_ext <<EOF
-#line 11989 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char dic_list_e();
-
-int main() {
-dic_list_e()
-; return 0; }
-EOF
-if { (eval echo configure:12000: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char dic_list_e ();
+int
+main ()
+{
+dic_list_e ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_wnn6_fromsrc_dic_list_e=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_wnn6_fromsrc_dic_list_e=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_wnn6_fromsrc_dic_list_e" >&5
+echo "${ECHO_T}$ac_cv_lib_wnn6_fromsrc_dic_list_e" >&6
+if test $ac_cv_lib_wnn6_fromsrc_dic_list_e = yes; then
libwnn=wnn6_fromsrc
else
- echo "$ac_t""no" 1>&6
-with_wnn=no
+ with_wnn=no
fi
-
fi
-
fi
-
fi
-
fi
test -z "$with_wnn" && with_wnn=yes
if test "$with_wnn" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_WNN
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_WNN 1
-EOF
-}
+_ACEOF
libs_x="-l$libwnn $libs_x" && if test "$extra_verbose"
= "yes"; then echo " Prepending \"-l$libwnn\" to
\$libs_x"; fi
if test "$with_wnn6" != "no"; then
+ as_ac_Lib=`echo "ac_cv_lib_$libwnn''_jl_fi_dic_list" |
$as_tr_sh`
+echo "$as_me:$LINENO: checking for jl_fi_dic_list in -l$libwnn" >&5
+echo $ECHO_N "checking for jl_fi_dic_list in -l$libwnn... $ECHO_C"
>&6
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$libwnn $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c"
1>&6
-echo "configure:12045: checking for jl_fi_dic_list in -l$libwnn" >&5
-ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -l$libwnn "
-cat > conftest.$ac_ext <<EOF
-#line 12050 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char jl_fi_dic_list();
-
-int main() {
-jl_fi_dic_list()
-; return 0; }
-EOF
-if { (eval echo configure:12061: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char jl_fi_dic_list ();
+int
+main ()
+{
+jl_fi_dic_list ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Lib=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
with_wnn6=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
- test "$with_wnn6" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining WNN6
-EOF
-cat >> confdefs.h <<\EOF
+ test "$with_wnn6" = "yes" && cat >>confdefs.h
<<\_ACEOF
#define WNN6 1
-EOF
-}
+_ACEOF
fi
fi
canna_includes_found=no
if test "$with_canna" != "no"; then
- ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
-echo "configure:12096: checking for canna/jrkanji.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 12099 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
+echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
+if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
+echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking canna/jrkanji.h usability" >&5
+echo $ECHO_N "checking canna/jrkanji.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <canna/jrkanji.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12104: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking canna/jrkanji.h presence" >&5
+echo $ECHO_N "checking canna/jrkanji.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <canna/jrkanji.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- canna_includes_found=yes
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
+echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
+if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ ac_cv_header_canna_jrkanji_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
+echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
+
+fi
+if test $ac_cv_header_canna_jrkanji_h = yes; then
+ canna_includes_found=yes
fi
+
fi
if test "$canna_includes_found" = "no" -a "$with_canna"
!= "no" -a \
-d "/usr/local/canna/include"; then
save_c_switch_site="$c_switch_site"
c_switch_site="$c_switch_site -I/usr/local/canna/include"
- ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
-echo "configure:12131: checking for canna/jrkanji.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 12134 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
+echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
+if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
+echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking canna/jrkanji.h usability" >&5
+echo $ECHO_N "checking canna/jrkanji.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <canna/jrkanji.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12139: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking canna/jrkanji.h presence" >&5
+echo $ECHO_N "checking canna/jrkanji.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <canna/jrkanji.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- canna_includes_found=yes
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: canna/jrkanji.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
+echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
+if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ ac_cv_header_canna_jrkanji_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
+echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
+
+fi
+if test $ac_cv_header_canna_jrkanji_h = yes; then
+ canna_includes_found=yes
fi
+
if test "$canna_includes_found" != "yes"; then
c_switch_site="$save_c_switch_site"
with_canna="no"
fi
fi
- test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" |
sed 'y%./+-%__p_%'`
-echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
-echo "configure:12167: checking for canna/RK.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 12170 "configure"
-#include "confdefs.h"
+ test -z "$with_canna" && { if test
"${ac_cv_header_canna_RK_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for canna/RK.h" >&5
+echo $ECHO_N "checking for canna/RK.h... $ECHO_C" >&6
+if test "${ac_cv_header_canna_RK_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_canna_RK_h" >&5
+echo "${ECHO_T}$ac_cv_header_canna_RK_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking canna/RK.h usability" >&5
+echo $ECHO_N "checking canna/RK.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <canna/RK.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12175: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking canna/RK.h presence" >&5
+echo $ECHO_N "checking canna/RK.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <canna/RK.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: canna/RK.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: canna/RK.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/RK.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: canna/RK.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: canna/RK.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: canna/RK.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/RK.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: canna/RK.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/RK.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: canna/RK.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/RK.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: canna/RK.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/RK.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: canna/RK.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: canna/RK.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: canna/RK.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for canna/RK.h" >&5
+echo $ECHO_N "checking for canna/RK.h... $ECHO_C" >&6
+if test "${ac_cv_header_canna_RK_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_canna_RK_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_canna_RK_h" >&5
+echo "${ECHO_T}$ac_cv_header_canna_RK_h" >&6
+
+fi
+if test $ac_cv_header_canna_RK_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_canna=no
+ with_canna=no
fi
+
}
- test -z "$with_canna" && {
-echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
-echo "configure:12198: checking for RkBgnBun in -lRKC" >&5
-ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
+ test -z "$with_canna" && { echo "$as_me:$LINENO: checking for
RkBgnBun in -lRKC" >&5
+echo $ECHO_N "checking for RkBgnBun in -lRKC... $ECHO_C" >&6
+if test "${ac_cv_lib_RKC_RkBgnBun+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lRKC $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lRKC "
-cat > conftest.$ac_ext <<EOF
-#line 12203 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char RkBgnBun();
-
-int main() {
-RkBgnBun()
-; return 0; }
-EOF
-if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char RkBgnBun ();
+int
+main ()
+{
+RkBgnBun ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_RKC_RkBgnBun=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_RKC_RkBgnBun=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_RKC_RkBgnBun" >&5
+echo "${ECHO_T}$ac_cv_lib_RKC_RkBgnBun" >&6
+if test $ac_cv_lib_RKC_RkBgnBun = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_canna=no
+ with_canna=no
fi
-
}
- test -z "$with_canna" && {
-echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c"
1>&6
-echo "configure:12237: checking for jrKanjiControl in -lcanna" >&5
-ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
+ test -z "$with_canna" && { echo "$as_me:$LINENO: checking for
jrKanjiControl in -lcanna" >&5
+echo $ECHO_N "checking for jrKanjiControl in -lcanna... $ECHO_C" >&6
+if test "${ac_cv_lib_canna_jrKanjiControl+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcanna $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lcanna "
-cat > conftest.$ac_ext <<EOF
-#line 12242 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char jrKanjiControl();
-
-int main() {
-jrKanjiControl()
-; return 0; }
-EOF
-if { (eval echo configure:12253: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char jrKanjiControl ();
+int
+main ()
+{
+jrKanjiControl ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_canna_jrKanjiControl=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_canna_jrKanjiControl=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_canna_jrKanjiControl" >&5
+echo "${ECHO_T}$ac_cv_lib_canna_jrKanjiControl" >&6
+if test $ac_cv_lib_canna_jrKanjiControl = yes; then
:
else
- echo "$ac_t""no" 1>&6
-with_canna=no
+ with_canna=no
fi
-
}
test -z "$with_canna" && with_canna=yes
if test "$with_canna" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_CANNA
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_CANNA 1
-EOF
-}
+_ACEOF
libs_x="-lcanna -lRKC $libs_x" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-lcanna -lRKC\" to \$libs_x"; fi
fi
else for feature in xim canna wnn; do
if eval "test -n \"\$with_${feature}\" -a
\"\$with_${feature}\" != no" ; then
- echo "configure: warning: --with-${feature} ignored: Not valid without Mule
support" 1>&2
+ { echo "$as_me:$LINENO: WARNING: --with-${feature} ignored: Not valid
without Mule support" >&5
+echo "$as_me: WARNING: --with-${feature} ignored: Not valid without Mule
support" >&2;}
fi
eval "with_${feature}=no"
done
@@ -12293,45 +27756,74 @@
if test "$need_motif" = "yes" ; then
libs_x="-lXm $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
+ echo "$as_me:$LINENO: checking for layout_object_getvalue in -li18n"
>&5
+echo $ECHO_N "checking for layout_object_getvalue in -li18n... $ECHO_C"
>&6
+if test "${ac_cv_lib_i18n_layout_object_getvalue+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-li18n $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for layout_object_getvalue in -li18n""...
$ac_c" 1>&6
-echo "configure:12299: checking for layout_object_getvalue in -li18n"
>&5
-ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -li18n "
-cat > conftest.$ac_ext <<EOF
-#line 12304 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char layout_object_getvalue();
-
-int main() {
-layout_object_getvalue()
-; return 0; }
-EOF
-if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char layout_object_getvalue ();
+int
+main ()
+{
+layout_object_getvalue ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_i18n_layout_object_getvalue=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_i18n_layout_object_getvalue=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_i18n_layout_object_getvalue"
>&5
+echo "${ECHO_T}$ac_cv_lib_i18n_layout_object_getvalue" >&6
+if test $ac_cv_lib_i18n_layout_object_getvalue = yes; then
libs_x="-li18n $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-li18n\" to \$libs_x";
fi
-else
- echo "$ac_t""no" 1>&6
fi
-
if test "$add_runtime_path" = "yes" -a -n "$dash_r";
then
ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e
"s/$dash_r[^ ]*//g"`
ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e
"s/$dash_r[^ ]*//g"`
@@ -12375,79 +27867,175 @@
fi
if test -n "$runpath"; then
ld_switch_run="${dash_r}${runpath}"
+
+if test "$GCC" = "yes"; then
+ set x $ld_switch_run; shift; ld_switch_run=""
+ while test -n "$1"; do
+ case $1 in
+ -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2";
shift ;;
+ -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
+ -Xlinker* ) ;;
+ * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ esac
+ shift
+ done
+fi
+ test "$extra_verbose" = "yes" && echo "Setting
runpath to $runpath"
+ fi
+fi
+
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-if test "$GCC" = "yes"; then
- set x $ld_switch_run; shift; ld_switch_run=""
- while test -n "$1"; do
- case $1 in
- -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2";
shift ;;
- -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
- -Xlinker* ) ;;
- * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
- esac
- shift
- done
-fi
- test "$extra_verbose" = "yes" && echo "Setting
runpath to $runpath"
- fi
-fi
-fi
+
+
+
for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp fsync ftime ftruncate
getaddrinfo gethostname getnameinfo getpagesize getrlimit gettimeofday getcwd link logb
lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select
setitimer setpgid setsid sigblock sighold sigprocmask snprintf strerror strlwr strupr
symlink tzset ulimit umask usleep vlimit vsnprintf waitpid wcscmp wcslen
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:12402: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 12405 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:12428: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
@@ -12455,571 +28043,1544 @@
if test "$ac_cv_func_getaddrinfo" != "no" ; then
case "$opsys" in
hpux11 )
- echo "configure: warning: Use of getaddrinfo is disabled for HP-UX
11.XX." 1>&2
+ { echo "$as_me:$LINENO: WARNING: Use of getaddrinfo is disabled for HP-UX
11.XX." >&5
+echo "$as_me: WARNING: Use of getaddrinfo is disabled for HP-UX 11.XX."
>&2;}
ac_cv_func_getaddrinfo=no
;;
esac
fi
+
+
+
+
+
+
+
for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:12469: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 12472 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:12495: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
-echo $ac_n "checking for openpty""... $ac_c" 1>&6
-echo "configure:12524: checking for openpty" >&5
+echo "$as_me:$LINENO: checking for openpty" >&5
+echo $ECHO_N "checking for openpty... $ECHO_C" >&6
+if test "${ac_cv_func_openpty+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define openpty innocuous_openpty
-cat > conftest.$ac_ext <<EOF
-#line 12527 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char openpty(); below. */
-#include <assert.h>
+ which can conflict with char openpty (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef openpty
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char openpty();
-
-int main() {
-
+char openpty ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_openpty) || defined (__stub___openpty)
choke me
#else
-openpty();
+char (*f) () = openpty;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:12550: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_openpty=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_openpty=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+return f != openpty;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_openpty=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_openpty=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
+echo "${ECHO_T}$ac_cv_func_openpty" >&6
+if test $ac_cv_func_openpty = yes; then
have_openpty=yes
else
- echo "$ac_t""no" 1>&6
+ echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
+echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
+if test "${ac_cv_lib_util_openpty+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lutil $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
-echo "configure:12569: checking for openpty in -lutil" >&5
-ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lutil "
-cat > conftest.$ac_ext <<EOF
-#line 12574 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char openpty();
-
-int main() {
-openpty()
-; return 0; }
-EOF
-if { (eval echo configure:12585: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char openpty ();
+int
+main ()
+{
+openpty ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_util_openpty=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_util_openpty=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
+echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
+if test $ac_cv_lib_util_openpty = yes; then
have_openpty=yes need_libutil=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
if test "$have_openpty" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_OPENPTY
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENPTY 1
-EOF
-}
+_ACEOF
+
+
- for ac_hdr in libutil.h util.h
+for ac_header in libutil.h util.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:12620: checking for $ac_hdr" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 12623 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12628: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
- break
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+ break
fi
+
done
test "$need_libutil" = "yes" &&
libs_system="$libs_system -lutil" && if test "$extra_verbose"
= "yes"; then echo " Appending \"-lutil\" to
\$libs_system"; fi
fi
case "$opsys" in
- hpux*) for ac_hdr in sys/ptyio.h
+ hpux*)
+for ac_header in sys/ptyio.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:12665: checking for $ac_hdr" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 12668 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12673: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
-
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
else
- echo "$ac_t""no" 1>&6
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
fi
+
done
;;
- *) for ac_hdr in pty.h
+ *)
+for ac_header in pty.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:12706: checking for $ac_hdr" >&5
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-cat > conftest.$ac_ext <<EOF
-#line 12709 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12714: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
+
done
- test "$ac_cv_header_pty_h" = "no" && for ac_hdr in
sys/pty.h
+ test "$ac_cv_header_pty_h" = "no" &&
+for ac_header in sys/pty.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:12747: checking for $ac_hdr" >&5
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-cat > conftest.$ac_ext <<EOF
-#line 12750 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12755: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
+
done
;;
esac
-for ac_hdr in stropts.h
+
+for ac_header in stropts.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:12791: checking for $ac_hdr" >&5
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-cat > conftest.$ac_ext <<EOF
-#line 12794 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12799: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
+
done
if test "$ac_cv_header_stropts_h" = "yes"; then
- for ac_func in isastream
+
+for ac_func in isastream
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:12832: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 12835 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:12858: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
+
- for ac_hdr in strtio.h
+for ac_header in strtio.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:12889: checking for $ac_hdr" >&5
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-cat > conftest.$ac_ext <<EOF
-#line 12892 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12897: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
+
done
fi
+
for ac_func in getloadavg
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:12930: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 12933 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:12956: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
if test "$ac_cv_func_getloadavg" = "yes"; then
- for ac_hdr in sys/loadavg.h
+
+for ac_header in sys/loadavg.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:12989: checking for $ac_hdr" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 12992 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:12997: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
-
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ eval "$as_ac_Header=\$ac_header_preproc"
fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
done
else
@@ -13028,212 +29589,426 @@
fi
-echo $ac_n "checking for kstat_open in -lkstat""... $ac_c"
1>&6
-echo "configure:13033: checking for kstat_open in -lkstat" >&5
-ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
+echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
+echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
+if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lkstat $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lkstat "
-cat > conftest.$ac_ext <<EOF
-#line 13038 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char kstat_open();
-
-int main() {
-kstat_open()
-; return 0; }
-EOF
-if { (eval echo configure:13049: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_lib
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+char kstat_open ();
+int
+main ()
+{
+kstat_open ();
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_kstat_kstat_open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_kstat_kstat_open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
+echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
+if test $ac_cv_lib_kstat_kstat_open = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBKSTAT 1
+_ACEOF
- LIBS="-lkstat $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
+ LIBS="-lkstat $LIBS"
-else
- echo "$ac_t""no" 1>&6
fi
- for ac_hdr in kstat.h
+for ac_header in kstat.h
do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:13084: checking for $ac_hdr" >&5
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-cat > conftest.$ac_ext <<EOF
-#line 13087 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:13092: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_hdr
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-}
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
+
done
-echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
-echo "configure:13124: checking for kvm_read in -lkvm" >&5
-ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
+echo "$as_me:$LINENO: checking for kvm_read in -lkvm" >&5
+echo $ECHO_N "checking for kvm_read in -lkvm... $ECHO_C" >&6
+if test "${ac_cv_lib_kvm_kvm_read+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lkvm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lkvm "
-cat > conftest.$ac_ext <<EOF
-#line 13129 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char kvm_read();
-
-int main() {
-kvm_read()
-; return 0; }
-EOF
-if { (eval echo configure:13140: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_lib
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+char kvm_read ();
+int
+main ()
+{
+kvm_read ();
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_kvm_kvm_read=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_kvm_kvm_read=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_read" >&5
+echo "${ECHO_T}$ac_cv_lib_kvm_kvm_read" >&6
+if test $ac_cv_lib_kvm_kvm_read = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBKVM 1
+_ACEOF
+
+ LIBS="-lkvm $LIBS"
- LIBS="-lkvm $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
-
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
-echo $ac_n "checking whether netdb declares h_errno""... $ac_c"
1>&6
-echo "configure:13174: checking whether netdb declares h_errno" >&5
-cat > conftest.$ac_ext <<EOF
-#line 13176 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
+echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <netdb.h>
-int main() {
+int
+main ()
+{
return h_errno;
-; return 0; }
-EOF
-if { (eval echo configure:13183: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_H_ERRNO
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_H_ERRNO 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_H_ERRNO 1
+_ACEOF
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
-fi
-rm -f conftest*
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
-echo "configure:13203: checking for sigsetjmp" >&5
-cat > conftest.$ac_ext <<EOF
-#line 13205 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+echo "$as_me:$LINENO: checking for sigsetjmp" >&5
+echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <setjmp.h>
-int main() {
+int
+main ()
+{
sigjmp_buf bar; sigsetjmp (bar, 0);
-; return 0; }
-EOF
-if { (eval echo configure:13212: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_SIGSETJMP
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_SIGSETJMP 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_SIGSETJMP 1
+_ACEOF
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
-fi
-rm -f conftest*
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo $ac_n "checking whether localtime caches TZ""... $ac_c"
1>&6
-echo "configure:13232: checking whether localtime caches TZ" >&5
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-if test "$ac_cv_func_tzset" = "yes"; then
-cat > conftest.$ac_ext <<EOF
-#line 13236 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
+echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
+if test "${emacs_cv_localtime_cache+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$ac_cv_func_tzset" = "yes"; then
+if test "$cross_compiling" = yes; then
+ # If we have tzset, assume the worst when cross-compiling.
+emacs_cv_localtime_cache=yes
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <time.h>
#if STDC_HEADERS
# include <stdlib.h>
@@ -13266,41 +30041,53 @@
exit (1);
exit (0);
}
-EOF
-if { (eval echo configure:13271: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
emacs_cv_localtime_cache=no
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- emacs_cv_localtime_cache=yes
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+emacs_cv_localtime_cache=yes
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
fi
-rm -fr conftest*
else
# If we lack tzset, report that localtime does not cache TZ,
# since we can't invalidate the cache if we don't have tzset.
emacs_cv_localtime_cache=no
fi
-echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
+fi
+echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
+echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
if test $emacs_cv_localtime_cache = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining LOCALTIME_CACHE
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define LOCALTIME_CACHE 1
-EOF
-}
+_ACEOF
fi
if test "$HAVE_TIMEVAL" = "yes"; then
-echo $ac_n "checking whether gettimeofday accepts one or two
arguments""... $ac_c" 1>&6
-echo "configure:13301: checking whether gettimeofday accepts one or two
arguments" >&5
-cat > conftest.$ac_ext <<EOF
-#line 13303 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking whether gettimeofday accepts one or two
arguments" >&5
+echo $ECHO_N "checking whether gettimeofday accepts one or two arguments...
$ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
@@ -13313,76 +30100,123 @@
#endif
#endif
-int main() {
+int
+main ()
+{
struct timeval time;
gettimeofday (&time, 0);
-; return 0; }
-EOF
-if { (eval echo configure:13324: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- echo "$ac_t""two" 1>&6
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""one" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining GETTIMEOFDAY_ONE_ARGUMENT
-EOF
-cat >> confdefs.h <<\EOF
-#define GETTIMEOFDAY_ONE_ARGUMENT 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: two" >&5
+echo "${ECHO_T}two" >&6
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: result: one" >&5
+echo "${ECHO_T}one" >&6
+ cat >>confdefs.h <<\_ACEOF
+#define GETTIMEOFDAY_ONE_ARGUMENT 1
+_ACEOF
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-echo $ac_n "checking for inline""... $ac_c" 1>&6
-echo "configure:13346: checking for inline" >&5
-
-ac_cv_c_inline=no
+echo "$as_me:$LINENO: checking for inline" >&5
+echo $ECHO_N "checking for inline... $ECHO_C" >&6
+if test "${ac_cv_c_inline+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
- cat > conftest.$ac_ext <<EOF
-#line 13351 "configure"
-#include "confdefs.h"
-
-int main() {
-} $ac_kw foo() {
-; return 0; }
-EOF
-if { (eval echo configure:13358: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifndef __cplusplus
+typedef int foo_t;
+static $ac_kw foo_t static_foo () {return 0; }
+$ac_kw foo_t foo () {return 0; }
+#endif
+
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
ac_cv_c_inline=$ac_kw; break
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
+echo "${ECHO_T}$ac_cv_c_inline" >&6
+
-echo "$ac_t""$ac_cv_c_inline" 1>&6
-case "$ac_cv_c_inline" in
+case $ac_cv_c_inline in
inline | yes) ;;
- no) { test "$extra_verbose" = "yes" && cat << \EOF
- Defining inline =
-EOF
-cat >> confdefs.h <<\EOF
-#define inline
-EOF
-}
- ;;
- *) { test "$extra_verbose" = "yes" && cat << EOF
- Defining inline = $ac_cv_c_inline
-EOF
-cat >> confdefs.h <<EOF
-#define inline $ac_cv_c_inline
-EOF
-}
+ *)
+ case $ac_cv_c_inline in
+ no) ac_val=;;
+ *) ac_val=$ac_cv_c_inline;;
+ esac
+ cat >>confdefs.h <<_ACEOF
+#ifndef __cplusplus
+#define inline $ac_val
+#endif
+_ACEOF
;;
esac
@@ -13390,52 +30224,101 @@
echo " xemacs will be linked with \"inline.o\""
fi
-echo $ac_n "checking for typeof""... $ac_c" 1>&6
-echo "configure:13395: checking for typeof" >&5
-cat > conftest.$ac_ext <<EOF
-#line 13397 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking for typeof" >&5
+echo $ECHO_N "checking for typeof... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-int main() {
+int
+main ()
+{
int i; __typeof__(i) j;
-; return 0; }
-EOF
-if { (eval echo configure:13404: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
typeofname="__typeof__"
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
-#line 13412 "configure"
-#include "confdefs.h"
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-int main() {
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
int i; typeof(i) j;
-; return 0; }
-EOF
-if { (eval echo configure:13419: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
typeofname="typeof"
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- typeofname=no
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+typeofname=no
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-rm -f conftest*
-echo "$ac_t""$typeofname" 1>&6
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $typeofname" >&5
+echo "${ECHO_T}$typeofname" >&6
if test "$typeofname" != "no"; then
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining TYPEOF = $typeofname
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define TYPEOF $typeofname
-EOF
-}
+_ACEOF
fi
@@ -13443,47 +30326,78 @@
if test "$__DECC" != "yes"; then
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
-echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
-echo "configure:13448: checking for working alloca.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 13451 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking for working alloca.h" >&5
+echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
+if test "${ac_cv_working_alloca_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <alloca.h>
-int main() {
-char *p = alloca(2 * sizeof(int));
-; return 0; }
-EOF
-if { (eval echo configure:13458: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_header_alloca_h=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_alloca_h=no
-fi
-rm -f conftest*
+int
+main ()
+{
+char *p = (char *) alloca (2 * sizeof (int));
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_working_alloca_h=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_working_alloca_h=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
+echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
+if test $ac_cv_working_alloca_h = yes; then
-echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
-if test $ac_cv_header_alloca_h = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_ALLOCA_H
-EOF
-cat >> confdefs.h <<\EOF
+cat >>confdefs.h <<\_ACEOF
#define HAVE_ALLOCA_H 1
-EOF
-}
+_ACEOF
fi
-
-echo $ac_n "checking for alloca""... $ac_c" 1>&6
-echo "configure:13482: checking for alloca" >&5
-cat > conftest.$ac_ext <<EOF
-#line 13485 "configure"
-#include "confdefs.h"
-
+echo "$as_me:$LINENO: checking for alloca" >&5
+echo $ECHO_N "checking for alloca... $ECHO_C" >&6
+if test "${ac_cv_func_alloca_works+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
@@ -13505,137 +30419,215 @@
# endif
#endif
-int main() {
-char *p = (char *) alloca(1);
-; return 0; }
-EOF
-if { (eval echo configure:13513: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
+int
+main ()
+{
+char *p = (char *) alloca (1);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
ac_cv_func_alloca_works=yes
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_func_alloca_works=no
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_alloca_works=no
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
+echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
-echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
if test $ac_cv_func_alloca_works = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_ALLOCA
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_ALLOCA 1
-EOF
-}
-fi
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_ALLOCA 1
+_ACEOF
-if test $ac_cv_func_alloca_works = no; then
+else
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
- # that cause trouble. Some versions do not even contain alloca or
- # contain a buggy version. If you still want to use their alloca,
- # use ar to extract alloca.o from them instead of compiling alloca.c.
- ALLOCA=alloca.${ac_objext}
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining C_ALLOCA
-EOF
-cat >> confdefs.h <<\EOF
-#define C_ALLOCA 1
-EOF
-}
+# that cause trouble. Some versions do not even contain alloca or
+# contain a buggy version. If you still want to use their alloca,
+# use ar to extract alloca.o from them instead of compiling alloca.c.
+ALLOCA=alloca.$ac_objext
+
+cat >>confdefs.h <<\_ACEOF
+#define C_ALLOCA 1
+_ACEOF
-echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c"
1>&6
-echo "configure:13552: checking whether alloca needs Cray hooks" >&5
-cat > conftest.$ac_ext <<EOF
-#line 13555 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks"
>&5
+echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C"
>&6
+if test "${ac_cv_os_cray+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif
-EOF
+_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "webecray" >/dev/null 2>&1; then
- rm -rf conftest*
+ $EGREP "webecray" >/dev/null 2>&1; then
ac_cv_os_cray=yes
else
- rm -rf conftest*
ac_cv_os_cray=no
fi
rm -f conftest*
-
-echo "$ac_t""$ac_cv_os_cray" 1>&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
+echo "${ECHO_T}$ac_cv_os_cray" >&6
if test $ac_cv_os_cray = yes; then
-for ac_func in _getb67 GETB67 getb67; do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:13579: checking for $ac_func" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 13582 "configure"
-#include "confdefs.h"
+ for ac_func in _getb67 GETB67 getb67; do
+ as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
#endif
-; return 0; }
-EOF
-if { (eval echo configure:13605: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining CRAY_STACKSEG_END = $ac_func
-EOF
-cat >> confdefs.h <<EOF
+cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
-EOF
-}
+_ACEOF
break
-else
- echo "$ac_t""no" 1>&6
fi
-done
+ done
fi
-
-echo $ac_n "checking stack direction for C alloca""... $ac_c"
1>&6
-echo "configure:13635: checking stack direction for C alloca" >&5
-cat > conftest.$ac_ext <<EOF
-#line 13638 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
+echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
+if test "${ac_cv_c_stack_direction+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$cross_compiling" = yes; then
+ ac_cv_c_stack_direction=0
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+int
find_stack_direction ()
{
static char *addr = 0;
@@ -13648,31 +30640,43 @@
else
return (&dummy > addr) ? 1 : -1;
}
+
+int
main ()
{
- exit (find_stack_direction() < 0);
+ exit (find_stack_direction () < 0);
}
-EOF
-if { (eval echo configure:13657: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
ac_cv_c_stack_direction=1
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_c_stack_direction=-1
-fi
-rm -fr conftest*
-
-echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining STACK_DIRECTION = $ac_cv_c_stack_direction
-EOF
-cat >> confdefs.h <<EOF
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_c_stack_direction=-1
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
+echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
+
+cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
-EOF
-}
+_ACEOF
+
fi
@@ -13681,11 +30685,21 @@
fi
fi
-echo $ac_n "checking for working alloca in function calls""...
$ac_c" 1>&6
-echo "configure:13686: checking for working alloca in function calls"
>&5
-cat > conftest.$ac_ext <<EOF
-#line 13688 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking for working alloca in function calls"
>&5
+echo $ECHO_N "checking for working alloca in function calls... $ECHO_C"
>&6
+if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#if defined (__CYGWIN__)
#include <alloca.h>
@@ -13729,41 +30743,59 @@
}
int
-main (int argc, char *argv[])
+main (int argc, char *argv)
{
if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42)
return 1;
return 0;
}
-EOF
-if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
working_alloca_in_function_calls=yes
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- working_alloca_in_function_calls=no
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+working_alloca_in_function_calls=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
fi
-rm -fr conftest*
-echo "$ac_t""$working_alloca_in_function_calls" 1>&6
+echo "$as_me:$LINENO: result: $working_alloca_in_function_calls" >&5
+echo "${ECHO_T}$working_alloca_in_function_calls" >&6
test "$working_alloca_in_function_calls" != "yes" && \
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining BROKEN_ALLOCA_IN_FUNCTION_CALLS
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define BROKEN_ALLOCA_IN_FUNCTION_CALLS 1
-EOF
-}
+_ACEOF
-echo $ac_n "checking for working scanf""... $ac_c" 1>&6
-echo "configure:13764: checking for working scanf" >&5
-cat > conftest.$ac_ext <<EOF
-#line 13766 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking for working scanf" >&5
+echo $ECHO_N "checking for working scanf... $ECHO_C" >&6
+if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
int
main (int argc, char **argv)
@@ -13776,215 +30808,276 @@
return endcount != 13;
}
-EOF
-if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
working_scanf=yes
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- working_scanf=no
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+working_scanf=no
fi
-rm -fr conftest*
-echo "$ac_t""$working_scanf" 1>&6
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $working_scanf" >&5
+echo "${ECHO_T}$working_scanf" >&6
test "$working_scanf" != "yes" && \
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining CYGWIN_SCANF_BUG
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define CYGWIN_SCANF_BUG 1
-EOF
-}
+_ACEOF
-echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
-echo "configure:13804: checking for working strcoll" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 13807 "configure"
-#include "confdefs.h"
-#include <string.h>
+echo "$as_me:$LINENO: checking for working strcoll" >&5
+echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
+if test "${ac_cv_func_strcoll_works+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$cross_compiling" = yes; then
+ ac_cv_func_strcoll_works=no
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
main ()
{
- exit (strcoll ("abc", "def") >= 0 ||
+exit (strcoll ("abc", "def") >= 0 ||
strcoll ("ABC", "DEF") >= 0 ||
- strcoll ("123", "456") >= 0);
+ strcoll ("123", "456") >= 0)
+ ;
+ return 0;
}
-EOF
-if { (eval echo configure:13817: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
ac_cv_func_strcoll_works=yes
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_strcoll_works=no
-fi
-rm -fr conftest*
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
+( exit $ac_status )
+ac_cv_func_strcoll_works=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
+echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
if test $ac_cv_func_strcoll_works = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_STRCOLL
-EOF
-cat >> confdefs.h <<\EOF
+
+cat >>confdefs.h <<\_ACEOF
#define HAVE_STRCOLL 1
-EOF
-}
+_ACEOF
fi
+
for ac_func in getpgrp
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:13845: checking for $ac_func" >&5
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares
$ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
-cat > conftest.$ac_ext <<EOF
-#line 13848 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
+char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-$ac_func();
+char (*f) () = $ac_func;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_func
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
+int
+main ()
+{
+return f != $ac_func;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
done
-
-echo $ac_n "checking whether getpgrp takes no argument""... $ac_c"
1>&6
-echo "configure:13899: checking whether getpgrp takes no argument"
>&5
-cat > conftest.$ac_ext <<EOF
-#line 13902 "configure"
-#include "confdefs.h"
-
-/*
- * If this system has a BSD-style getpgrp(),
- * which takes a pid argument, exit unsuccessfully.
- *
- * Snarfed from Chet Ramey's bash pgrp.c test program
- */
-#include <stdio.h>
-#include <sys/types.h>
-
-int pid;
-int pg1, pg2, pg3, pg4;
-int ng, np, s, child;
-
-main()
+echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments"
>&5
+echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C"
>&6
+if test "${ac_cv_func_getpgrp_void+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # Use it with a single arg.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
{
- pid = getpid();
- pg1 = getpgrp(0);
- pg2 = getpgrp();
- pg3 = getpgrp(pid);
- pg4 = getpgrp(1);
-
- /*
- * If all of these values are the same, it's pretty sure that
- * we're on a system that ignores getpgrp's first argument.
- */
- if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
- exit(0);
-
- child = fork();
- if (child < 0)
- exit(1);
- else if (child == 0) {
- np = getpid();
- /*
- * If this is Sys V, this will not work; pgrp will be
- * set to np because setpgrp just changes a pgrp to be
- * the same as the pid.
- */
- setpgrp(np, pg1);
- ng = getpgrp(0); /* Same result for Sys V and BSD */
- if (ng == pg1) {
- exit(1);
- } else {
- exit(0);
- }
- } else {
- wait(&s);
- exit(s>>8);
- }
+getpgrp (0);
+ ;
+ return 0;
}
-
-EOF
-if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
- ac_cv_func_getpgrp_void=yes
-else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
ac_cv_func_getpgrp_void=no
-fi
-rm -fr conftest*
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+ac_cv_func_getpgrp_void=yes
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
+echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
if test $ac_cv_func_getpgrp_void = yes; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining GETPGRP_VOID
-EOF
-cat >> confdefs.h <<\EOF
+
+cat >>confdefs.h <<\_ACEOF
#define GETPGRP_VOID 1
-EOF
-}
+_ACEOF
fi
-echo $ac_n "checking for working mmap""... $ac_c" 1>&6
-echo "configure:13984: checking for working mmap" >&5
+echo "$as_me:$LINENO: checking for working mmap" >&5
+echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
case "$opsys" in ultrix* ) have_mmap=no ;; *)
-cat > conftest.$ac_ext <<EOF
-#line 13987 "configure"
-#include "confdefs.h"
+if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
@@ -13998,7 +31091,7 @@
#define MAP_FAILED -1
#endif
-int main (int argc, char *argv[])
+int main (int argc, char *argv)
{
int fd = -1;
caddr_t p;
@@ -14015,603 +31108,1858 @@
perror ("conftest: mmap failed");
return 1;
}
-EOF
-if { (eval echo configure:14020: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
have_mmap=yes
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- have_mmap=no
-fi
-rm -fr conftest* ;;
-esac
-echo "$ac_t""$have_mmap" 1>&6
-test "$have_mmap" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_MMAP
-EOF
-cat >> confdefs.h <<\EOF
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+have_mmap=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
+fi ;;
+esac
+echo "$as_me:$LINENO: result: $have_mmap" >&5
+echo "${ECHO_T}$have_mmap" >&6
+test "$have_mmap" = "yes" && cat >>confdefs.h
<<\_ACEOF
#define HAVE_MMAP 1
-EOF
-}
+_ACEOF
case "$opsys" in cygwin*)
- test "$rel_alloc" = "default" && rel_alloc=no ;;
+ test "$with_rel_alloc" = "default" && with_rel_alloc=no
;;
esac
-test "$GNU_MALLOC" != "yes" -a "$have_mmap" !=
"yes" && rel_alloc=no
-if test "$rel_alloc $have_mmap" = "default yes"; then
+test "$GNU_MALLOC" != "yes" -a "$have_mmap" !=
"yes" && with_rel_alloc=no
+if test "$with_rel_alloc $have_mmap" = "default yes"; then
if test "$doug_lea_malloc" = "yes"; then
- echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c"
1>&6
-echo "configure:14049: checking for M_MMAP_THRESHOLD" >&5
- cat > conftest.$ac_ext <<EOF
-#line 14051 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking for M_MMAP_THRESHOLD" >&5
+echo $ECHO_N "checking for M_MMAP_THRESHOLD... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <malloc.h>
-int main() {
+int
+main ()
+{
#ifndef M_MMAP_THRESHOLD
#error No M_MMAP_THRESHOLD :-(
!@+$%^&*_)(_ - unlikely to compile...
#endif
-; return 0; }
-EOF
-if { (eval echo configure:14063: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
- rel_alloc=no; echo "$ac_t""yes" 1>&6;
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- rel_alloc=yes; echo "$ac_t""no" 1>&6;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ with_rel_alloc=no; echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6;
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+with_rel_alloc=yes; echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6;
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
else
- rel_alloc=yes
+ with_rel_alloc=yes
fi
fi
-test "$rel_alloc" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining REL_ALLOC
-EOF
-cat >> confdefs.h <<\EOF
+test "$with_rel_alloc" = "yes" && cat >>confdefs.h
<<\_ACEOF
#define REL_ALLOC 1
-EOF
-}
+_ACEOF
-ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for termios.h""... $ac_c" 1>&6
-echo "configure:14088: checking for termios.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14091 "configure"
-#include "confdefs.h"
+if test "${ac_cv_header_termios_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for termios.h" >&5
+echo $ECHO_N "checking for termios.h... $ECHO_C" >&6
+if test "${ac_cv_header_termios_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
+echo "${ECHO_T}$ac_cv_header_termios_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking termios.h usability" >&5
+echo $ECHO_N "checking termios.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <termios.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14096: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking termios.h presence" >&5
+echo $ECHO_N "checking termios.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <termios.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_TERMIOS
-EOF
-cat >> confdefs.h <<\EOF
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: termios.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: termios.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: termios.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: termios.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: termios.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: termios.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: termios.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: termios.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: termios.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: termios.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: termios.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: termios.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: termios.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for termios.h" >&5
+echo $ECHO_N "checking for termios.h... $ECHO_C" >&6
+if test "${ac_cv_header_termios_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_termios_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
+echo "${ECHO_T}$ac_cv_header_termios_h" >&6
+
+fi
+if test $ac_cv_header_termios_h = yes; then
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_TERMIOS 1
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining SIGNALS_VIA_CHARACTERS
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define SIGNALS_VIA_CHARACTERS 1
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining NO_TERMIO
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define NO_TERMIO 1
-EOF
-}
+_ACEOF
else
- echo "$ac_t""no" 1>&6
-ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for termio.h""... $ac_c" 1>&6
-echo "configure:14139: checking for termio.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14142 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_termio_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for termio.h" >&5
+echo $ECHO_N "checking for termio.h... $ECHO_C" >&6
+if test "${ac_cv_header_termio_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_termio_h" >&5
+echo "${ECHO_T}$ac_cv_header_termio_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking termio.h usability" >&5
+echo $ECHO_N "checking termio.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <termio.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14147: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking termio.h presence" >&5
+echo $ECHO_N "checking termio.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <termio.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_TERMIO
-EOF
-cat >> confdefs.h <<\EOF
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: termio.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: termio.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: termio.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: termio.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: termio.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: termio.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: termio.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: termio.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: termio.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: termio.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: termio.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: termio.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: termio.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: termio.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: termio.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: termio.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for termio.h" >&5
+echo $ECHO_N "checking for termio.h... $ECHO_C" >&6
+if test "${ac_cv_header_termio_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_termio_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_termio_h" >&5
+echo "${ECHO_T}$ac_cv_header_termio_h" >&6
+
+fi
+if test $ac_cv_header_termio_h = yes; then
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_TERMIO 1
-EOF
-}
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
+
fi
-echo $ac_n "checking for socket""... $ac_c" 1>&6
-echo "configure:14179: checking for socket" >&5
+
+echo "$as_me:$LINENO: checking for socket" >&5
+echo $ECHO_N "checking for socket... $ECHO_C" >&6
+if test "${ac_cv_func_socket+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define socket to an innocuous variant, in case <limits.h> declares socket.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define socket innocuous_socket
-cat > conftest.$ac_ext <<EOF
-#line 14182 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char socket(); below. */
-#include <assert.h>
+ which can conflict with char socket (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef socket
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char socket();
-
-int main() {
-
+char socket ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_socket) || defined (__stub___socket)
choke me
#else
-socket();
+char (*f) () = socket;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:14205: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_socket=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_socket=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
-echo "configure:14220: checking for netinet/in.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14223 "configure"
-#include "confdefs.h"
+int
+main ()
+{
+return f != socket;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_socket=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_socket=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
+echo "${ECHO_T}$ac_cv_func_socket" >&6
+if test $ac_cv_func_socket = yes; then
+ if test "${ac_cv_header_netinet_in_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
+echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
+if test "${ac_cv_header_netinet_in_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
+echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
+echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <netinet/in.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14228: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
+echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <netinet/in.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
-echo "configure:14245: checking for arpa/inet.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14248 "configure"
-#include "confdefs.h"
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for netinet/in.h" >&5
+echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
+if test "${ac_cv_header_netinet_in_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_netinet_in_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
+echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
+
+fi
+if test $ac_cv_header_netinet_in_h = yes; then
+ if test "${ac_cv_header_arpa_inet_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
+echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
+if test "${ac_cv_header_arpa_inet_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
+echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
+echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <arpa/inet.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14253: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
+echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <arpa/inet.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
+echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
+if test "${ac_cv_header_arpa_inet_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_arpa_inet_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
+echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_SOCKETS
-EOF
-cat >> confdefs.h <<\EOF
+fi
+if test $ac_cv_header_arpa_inet_h = yes; then
+
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_SOCKETS 1
-EOF
-}
+_ACEOF
- echo $ac_n "checking "for sun_len member in struct
sockaddr_un"""... $ac_c" 1>&6
-echo "configure:14278: checking "for sun_len member in struct
sockaddr_un"" >&5
- cat > conftest.$ac_ext <<EOF
-#line 14280 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking \"for sun_len member in struct
sockaddr_un\"" >&5
+echo $ECHO_N "checking \"for sun_len member in struct sockaddr_un\"...
$ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
-int main() {
+int
+main ()
+{
static struct sockaddr_un x; x.sun_len = 1;
-; return 0; }
-EOF
-if { (eval echo configure:14291: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6; { test "$extra_verbose"
= "yes" && cat << \EOF
- Defining HAVE_SOCKADDR_SUN_LEN
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_SOCKADDR_SUN_LEN 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
+#define HAVE_SOCKADDR_SUN_LEN 1
+_ACEOF
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
-rm -f conftest*
- echo $ac_n "checking "for ip_mreq struct in
netinet/in.h"""... $ac_c" 1>&6
-echo "configure:14309: checking "for ip_mreq struct in
netinet/in.h"" >&5
- cat > conftest.$ac_ext <<EOF
-#line 14311 "configure"
-#include "confdefs.h"
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ echo "$as_me:$LINENO: checking \"for ip_mreq struct in
netinet/in.h\"" >&5
+echo $ECHO_N "checking \"for ip_mreq struct in netinet/in.h\"...
$ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <sys/types.h>
#include <netinet/in.h>
-int main() {
+int
+main ()
+{
static struct ip_mreq x;
-; return 0; }
-EOF
-if { (eval echo configure:14321: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6; { test "$extra_verbose"
= "yes" && cat << \EOF
- Defining HAVE_MULTICAST
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_MULTICAST 1
-EOF
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
+#define HAVE_MULTICAST 1
+_ACEOF
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
-rm -f conftest*
-else
- echo "$ac_t""no" 1>&6
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-else
- echo "$ac_t""no" 1>&6
+
fi
-else
- echo "$ac_t""no" 1>&6
+
fi
-echo $ac_n "checking for msgget""... $ac_c" 1>&6
-echo "configure:14352: checking for msgget" >&5
+echo "$as_me:$LINENO: checking for msgget" >&5
+echo $ECHO_N "checking for msgget... $ECHO_C" >&6
+if test "${ac_cv_func_msgget+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define msgget to an innocuous variant, in case <limits.h> declares msgget.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define msgget innocuous_msgget
-cat > conftest.$ac_ext <<EOF
-#line 14355 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char msgget(); below. */
-#include <assert.h>
+ which can conflict with char msgget (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef msgget
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char msgget();
-
-int main() {
-
+char msgget ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_msgget) || defined (__stub___msgget)
choke me
#else
-msgget();
+char (*f) () = msgget;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:14378: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_msgget=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_msgget=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
-echo "configure:14393: checking for sys/ipc.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14396 "configure"
-#include "confdefs.h"
+int
+main ()
+{
+return f != msgget;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_msgget=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_msgget=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_msgget" >&5
+echo "${ECHO_T}$ac_cv_func_msgget" >&6
+if test $ac_cv_func_msgget = yes; then
+ if test "${ac_cv_header_sys_ipc_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
+echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
+if test "${ac_cv_header_sys_ipc_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
+echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <sys/ipc.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14401: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
+echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/ipc.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
-echo "configure:14418: checking for sys/msg.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14421 "configure"
-#include "confdefs.h"
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
+echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
+if test "${ac_cv_header_sys_ipc_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_sys_ipc_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
+
+fi
+if test $ac_cv_header_sys_ipc_h = yes; then
+ if test "${ac_cv_header_sys_msg_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for sys/msg.h" >&5
+echo $ECHO_N "checking for sys/msg.h... $ECHO_C" >&6
+if test "${ac_cv_header_sys_msg_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_sys_msg_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_msg_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking sys/msg.h usability" >&5
+echo $ECHO_N "checking sys/msg.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <sys/msg.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14426: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking sys/msg.h presence" >&5
+echo $ECHO_N "checking sys/msg.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/msg.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: sys/msg.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: sys/msg.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/msg.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: sys/msg.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: sys/msg.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: sys/msg.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/msg.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: sys/msg.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/msg.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: sys/msg.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/msg.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: sys/msg.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/msg.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: sys/msg.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/msg.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: sys/msg.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for sys/msg.h" >&5
+echo $ECHO_N "checking for sys/msg.h... $ECHO_C" >&6
+if test "${ac_cv_header_sys_msg_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_sys_msg_h=$ac_header_preproc
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_SYSVIPC
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_SYSVIPC 1
-EOF
-}
+echo "$as_me:$LINENO: result: $ac_cv_header_sys_msg_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_msg_h" >&6
-else
- echo "$ac_t""no" 1>&6
fi
+if test $ac_cv_header_sys_msg_h = yes; then
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_SYSVIPC 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
-else
- echo "$ac_t""no" 1>&6
+
fi
+
+fi
-ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
-echo "configure:14464: checking for dirent.h" >&5
-cat > conftest.$ac_ext <<EOF
-#line 14467 "configure"
-#include "confdefs.h"
+if test "${ac_cv_header_dirent_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for dirent.h" >&5
+echo $ECHO_N "checking for dirent.h... $ECHO_C" >&6
+if test "${ac_cv_header_dirent_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_dirent_h" >&5
+echo "${ECHO_T}$ac_cv_header_dirent_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking dirent.h usability" >&5
+echo $ECHO_N "checking dirent.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <dirent.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14472: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking dirent.h presence" >&5
+echo $ECHO_N "checking dirent.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <dirent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining SYSV_SYSTEM_DIR
-EOF
-cat >> confdefs.h <<\EOF
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: dirent.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: dirent.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dirent.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: dirent.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: dirent.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: dirent.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: dirent.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: dirent.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: dirent.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: dirent.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: dirent.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: dirent.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dirent.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: dirent.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: dirent.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: dirent.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for dirent.h" >&5
+echo $ECHO_N "checking for dirent.h... $ECHO_C" >&6
+if test "${ac_cv_header_dirent_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_dirent_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_dirent_h" >&5
+echo "${ECHO_T}$ac_cv_header_dirent_h" >&6
+
+fi
+if test $ac_cv_header_dirent_h = yes; then
+ cat >>confdefs.h <<\_ACEOF
#define SYSV_SYSTEM_DIR 1
-EOF
-}
+_ACEOF
else
- echo "$ac_t""no" 1>&6
-ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
-echo "configure:14499: checking for sys/dir.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14502 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_sys_dir_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for sys/dir.h" >&5
+echo $ECHO_N "checking for sys/dir.h... $ECHO_C" >&6
+if test "${ac_cv_header_sys_dir_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_sys_dir_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_dir_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking sys/dir.h usability" >&5
+echo $ECHO_N "checking sys/dir.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <sys/dir.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14507: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking sys/dir.h presence" >&5
+echo $ECHO_N "checking sys/dir.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/dir.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: sys/dir.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: sys/dir.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/dir.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: sys/dir.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: sys/dir.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: sys/dir.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/dir.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: sys/dir.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/dir.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: sys/dir.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/dir.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: sys/dir.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/dir.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: sys/dir.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: sys/dir.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: sys/dir.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for sys/dir.h" >&5
+echo $ECHO_N "checking for sys/dir.h... $ECHO_C" >&6
+if test "${ac_cv_header_sys_dir_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_sys_dir_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_sys_dir_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_dir_h" >&6
+
+fi
+if test $ac_cv_header_sys_dir_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
-{ test "$extra_verbose" = "yes" && cat << \EOF
- Defining NONSYSTEM_DIR_LIBRARY
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define NONSYSTEM_DIR_LIBRARY 1
-EOF
-}
+_ACEOF
fi
+
fi
+
-ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
-echo "configure:14540: checking for nlist.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14543 "configure"
-#include "confdefs.h"
+if test "${ac_cv_header_nlist_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for nlist.h" >&5
+echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
+if test "${ac_cv_header_nlist_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
+echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking nlist.h usability" >&5
+echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <nlist.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14548: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking nlist.h presence" >&5
+echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <nlist.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining NLIST_STRUCT
-EOF
-cat >> confdefs.h <<\EOF
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected
by the preprocessor!" >&5
+echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But
Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will
take precedence" >&5
+echo "$as_me: WARNING: nlist.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for nlist.h" >&5
+echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
+if test "${ac_cv_header_nlist_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_nlist_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
+echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
+
+fi
+if test $ac_cv_header_nlist_h = yes; then
+ cat >>confdefs.h <<\_ACEOF
#define NLIST_STRUCT 1
-EOF
-}
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
-echo "checking "for sound support"" 1>&6
-echo "configure:14578: checking "for sound support"" >&5
-test -z "$with_native_sound" -a -n "$native_sound_lib" &&
with_native_sound=yes
+{ echo "$as_me:$LINENO: checking \"for sound support\"..."
>&5
+echo "$as_me: checking \"for sound support\"..." >&6;}
+test -z "$with_native_sound" -a -n "$with_native_sound_lib"
&& with_native_sound=yes
+
if test "$with_native_sound" != "no"; then
- if test -n "$native_sound_lib"; then
- ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for multimedia/audio_device.h""... $ac_c"
1>&6
-echo "configure:14585: checking for multimedia/audio_device.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14588 "configure"
-#include "confdefs.h"
+ if test -n "$with_native_sound_lib"; then
+ if test "${ac_cv_header_multimedia_audio_device_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for multimedia/audio_device.h" >&5
+echo $ECHO_N "checking for multimedia/audio_device.h... $ECHO_C" >&6
+if test "${ac_cv_header_multimedia_audio_device_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_multimedia_audio_device_h"
>&5
+echo "${ECHO_T}$ac_cv_header_multimedia_audio_device_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking multimedia/audio_device.h usability"
>&5
+echo $ECHO_N "checking multimedia/audio_device.h usability... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <multimedia/audio_device.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14593: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking multimedia/audio_device.h presence"
>&5
+echo $ECHO_N "checking multimedia/audio_device.h presence... $ECHO_C"
>&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <multimedia/audio_device.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: multimedia/audio_device.h: accepted by the
compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: multimedia/audio_device.h: accepted by the compiler,
rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: multimedia/audio_device.h: proceeding with
the compiler's result" >&5
+echo "$as_me: WARNING: multimedia/audio_device.h: proceeding with the
compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: multimedia/audio_device.h: present but cannot
be compiled" >&5
+echo "$as_me: WARNING: multimedia/audio_device.h: present but cannot be
compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: multimedia/audio_device.h: check for
missing prerequisite headers?" >&5
+echo "$as_me: WARNING: multimedia/audio_device.h: check for missing
prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: multimedia/audio_device.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: multimedia/audio_device.h: see the Autoconf
documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: multimedia/audio_device.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: multimedia/audio_device.h: section \"Present But
Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: multimedia/audio_device.h: proceeding with
the preprocessor's result" >&5
+echo "$as_me: WARNING: multimedia/audio_device.h: proceeding with the
preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: multimedia/audio_device.h: in the future, the
compiler will take precedence" >&5
+echo "$as_me: WARNING: multimedia/audio_device.h: in the future, the compiler will
take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for multimedia/audio_device.h" >&5
+echo $ECHO_N "checking for multimedia/audio_device.h... $ECHO_C" >&6
+if test "${ac_cv_header_multimedia_audio_device_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_multimedia_audio_device_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_multimedia_audio_device_h"
>&5
+echo "${ECHO_T}$ac_cv_header_multimedia_audio_device_h" >&6
+
+fi
+if test $ac_cv_header_multimedia_audio_device_h = yes; then
sound_found=yes sound_cflags=""
extra_objs="$extra_objs sunplay.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"sunplay.o\""
fi
-else
- echo "$ac_t""no" 1>&6
fi
+
fi
if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
@@ -14621,8 +32969,8 @@
sun_sound_cflags="-I/usr/demo/SOUND"
fi
- if test -n "$native_sound_lib"; then
- sun_sound_lib="$native_sound_lib"
+ if test -n "$with_native_sound_lib"; then
+ sun_sound_lib="$with_native_sound_lib"
elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then
sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
elif test -r "/usr/demo/SOUND/libaudio.a"; then
@@ -14630,7 +32978,7 @@
fi
if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then
- native_sound_lib="$sun_sound_lib"
+ with_native_sound_lib="$sun_sound_lib"
sound_cflags="$sun_sound_cflags"
sound_found=yes
extra_objs="$extra_objs sunplay.o" && if test
"$extra_verbose" = "yes"; then
@@ -14640,96 +32988,154 @@
fi
if test -z "$sound_found"; then
- case "$canonical" in
+ case "$ac_cv_build" in
*-sgi-* )
- if test -z "$native_sound_lib"; then
-
-echo $ac_n "checking for ALopenport in -laudio""... $ac_c"
1>&6
-echo "configure:14649: checking for ALopenport in -laudio" >&5
-ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
+ if test -z "$with_native_sound_lib"; then
+ echo "$as_me:$LINENO: checking for ALopenport in -laudio" >&5
+echo $ECHO_N "checking for ALopenport in -laudio... $ECHO_C" >&6
+if test "${ac_cv_lib_audio_ALopenport+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-laudio $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -laudio "
-cat > conftest.$ac_ext <<EOF
-#line 14654 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char ALopenport();
-
-int main() {
-ALopenport()
-; return 0; }
-EOF
-if { (eval echo configure:14665: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- native_sound_lib="-laudio"
-else
- echo "$ac_t""no" 1>&6
+char ALopenport ();
+int
+main ()
+{
+ALopenport ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_audio_ALopenport=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_audio_ALopenport=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_audio_ALopenport" >&5
+echo "${ECHO_T}$ac_cv_lib_audio_ALopenport" >&6
+if test $ac_cv_lib_audio_ALopenport = yes; then
+ with_native_sound_lib="-laudio"
fi
-
fi
- if test -n "$native_sound_lib"; then
+ if test -n "$with_native_sound_lib"; then
sound_found=yes sound_cflags=""
extra_objs="$extra_objs sgiplay.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"sgiplay.o\""
fi
fi ;;
hppa*-hp-hpux* )
- if test -z "$native_sound_lib"; then
+ if test -z "$with_native_sound_lib"; then
+ echo "$as_me:$LINENO: checking for AOpenAudio in -lAlib" >&5
+echo $ECHO_N "checking for AOpenAudio in -lAlib... $ECHO_C" >&6
+if test "${ac_cv_lib_Alib_AOpenAudio+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lAlib $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c"
1>&6
-echo "configure:14696: checking for AOpenAudio in -lAlib" >&5
-ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lAlib "
-cat > conftest.$ac_ext <<EOF
-#line 14701 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char AOpenAudio();
-
-int main() {
-AOpenAudio()
-; return 0; }
-EOF
-if { (eval echo configure:14712: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- native_sound_lib="-lAlib"
-else
- echo "$ac_t""no" 1>&6
+char AOpenAudio ();
+int
+main ()
+{
+AOpenAudio ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Alib_AOpenAudio=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Alib_AOpenAudio=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Alib_AOpenAudio" >&5
+echo "${ECHO_T}$ac_cv_lib_Alib_AOpenAudio" >&6
+if test $ac_cv_lib_Alib_AOpenAudio = yes; then
+ with_native_sound_lib="-lAlib"
fi
-
fi
- if test -n "$native_sound_lib"; then
+ if test -n "$with_native_sound_lib"; then
sound_found=yes
extra_objs="$extra_objs hpplay.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"hpplay.o\""
@@ -14745,7 +33151,7 @@
if test -z "$sound_found"; then
if test "$with_msw" = "yes"; then
sound_found=yes
- native_sound_lib=
+ with_native_sound_lib=
extra_objs="$extra_objs ntplay.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"ntplay.o\""
fi
@@ -14754,49 +33160,157 @@
if test -z "$sound_found"; then
for dir in "machine" "sys" "linux"; do
- ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c"
1>&6
-echo "configure:14760: checking for ${dir}/soundcard.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14763 "configure"
-#include "confdefs.h"
+ as_ac_Header=`echo "ac_cv_header_${dir}/soundcard.h" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo "$as_me:$LINENO: checking for ${dir}/soundcard.h" >&5
+echo $ECHO_N "checking for ${dir}/soundcard.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking ${dir}/soundcard.h usability" >&5
+echo $ECHO_N "checking ${dir}/soundcard.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <${dir}/soundcard.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14768: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking ${dir}/soundcard.h presence" >&5
+echo $ECHO_N "checking ${dir}/soundcard.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <${dir}/soundcard.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: ${dir}/soundcard.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ${dir}/soundcard.h: accepted by the compiler, rejected by
the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}/soundcard.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: ${dir}/soundcard.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ${dir}/soundcard.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: ${dir}/soundcard.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}/soundcard.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: ${dir}/soundcard.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}/soundcard.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: ${dir}/soundcard.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}/soundcard.h: section
\"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ${dir}/soundcard.h: section \"Present But Cannot
Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}/soundcard.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: ${dir}/soundcard.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${dir}/soundcard.h: in the future, the
compiler will take precedence" >&5
+echo "$as_me: WARNING: ${dir}/soundcard.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for ${dir}/soundcard.h" >&5
+echo $ECHO_N "checking for ${dir}/soundcard.h... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
sound_found=yes
need_miscplay=yes
extra_objs="$extra_objs linuxplay.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"linuxplay.o\""
fi
- { test "$extra_verbose" = "yes" && cat <<
EOF
- Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define SOUNDCARD_H_FILE "${dir}/soundcard.h"
-EOF
-}
+_ACEOF
break
-else
- echo "$ac_t""no" 1>&6
fi
+
done
fi
@@ -14804,117 +33318,248 @@
fi
if test "$with_native_sound" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_NATIVE_SOUND
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_NATIVE_SOUND 1
-EOF
-}
+_ACEOF
- test -n "$native_sound_lib" && LIBS="$native_sound_lib
$LIBS" && if test "$extra_verbose" = "yes"; then echo
" Prepending \"$native_sound_lib\" to \$LIBS"; fi
+ test -n "$with_native_sound_lib" &&
LIBS="$with_native_sound_lib $LIBS" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"$with_native_sound_lib\" to \$LIBS"; fi
fi
if test "$with_nas_sound" != "no"; then
- ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
-echo "configure:14822: checking for audio/audiolib.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 14825 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
+echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6
+if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
+echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking audio/audiolib.h usability" >&5
+echo $ECHO_N "checking audio/audiolib.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <audio/audiolib.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:14830: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking audio/audiolib.h presence" >&5
+echo $ECHO_N "checking audio/audiolib.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <audio/audiolib.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
-
-
-echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c"
1>&6
-echo "configure:14848: checking for AuOpenServer in -laudio" >&5
-ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: audio/audiolib.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: audio/audiolib.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: audio/audiolib.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: audio/audiolib.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: audio/audiolib.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: audio/audiolib.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: audio/audiolib.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
+echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6
+if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_audio_audiolib_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
+echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6
+
+fi
+if test $ac_cv_header_audio_audiolib_h = yes; then
+
+ echo "$as_me:$LINENO: checking for AuOpenServer in -laudio" >&5
+echo $ECHO_N "checking for AuOpenServer in -laudio... $ECHO_C" >&6
+if test "${ac_cv_lib_audio_AuOpenServer+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-laudio $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -laudio "
-cat > conftest.$ac_ext <<EOF
-#line 14853 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char AuOpenServer();
-
-int main() {
-AuOpenServer()
-; return 0; }
-EOF
-if { (eval echo configure:14864: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char AuOpenServer ();
+int
+main ()
+{
+AuOpenServer ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_audio_AuOpenServer=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_audio_AuOpenServer=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuOpenServer" >&5
+echo "${ECHO_T}$ac_cv_lib_audio_AuOpenServer" >&6
+if test $ac_cv_lib_audio_AuOpenServer = yes; then
have_nas_sound=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
-else
- echo "$ac_t""no" 1>&6
fi
+
if test "$have_nas_sound" = "yes"; then
with_nas_sound=yes
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_NAS_SOUND
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_NAS_SOUND 1
-EOF
-}
+_ACEOF
extra_objs="$extra_objs nas.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"nas.o\""
fi
libs_x="-laudio $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-laudio\" to \$libs_x";
fi
- cat > conftest.$ac_ext <<EOF
-#line 14903 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <audio/Xtutil.h>
-EOF
+
+_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "AuXtErrorJump" >/dev/null 2>&1; then
+ $EGREP "AuXtErrorJump" >/dev/null 2>&1; then
:
else
- rm -rf conftest*
- old_nas=yes; { test "$extra_verbose" = "yes" && cat
<< \EOF
- Defining NAS_NO_ERROR_JUMP
-EOF
-cat >> confdefs.h <<\EOF
+ old_nas=yes; cat >>confdefs.h <<\_ACEOF
#define NAS_NO_ERROR_JUMP 1
-EOF
-}
+_ACEOF
fi
rm -f conftest*
@@ -14929,79 +33574,137 @@
if test "$with_esd_sound" != "no"; then
# Extract the first word of "esd-config", so it can be a program name with
args.
set dummy esd-config; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:14934: checking for $ac_word" >&5
-
-if test -n "$have_esd_config"; then
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_have_esd_config+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$have_esd_config"; then
ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the
test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_have_esd_config="yes"
- break
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
- done
- IFS="$ac_save_ifs"
+done
+done
+
test -z "$ac_cv_prog_have_esd_config" &&
ac_cv_prog_have_esd_config="no"
+fi
fi
-have_esd_config="$ac_cv_prog_have_esd_config"
+have_esd_config=$ac_cv_prog_have_esd_config
if test -n "$have_esd_config"; then
- echo "$ac_t""$have_esd_config" 1>&6
+ echo "$as_me:$LINENO: result: $have_esd_config" >&5
+echo "${ECHO_T}$have_esd_config" >&6
else
- echo "$ac_t""no" 1>&6
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
if test "$have_esd_config" = "yes"; then
save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
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
LIBS="`esd-config --libs` $LIBS" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"`esd-config --libs`\" to \$LIBS"; fi
- echo $ac_n "checking for esd_play_stream""... $ac_c"
1>&6
-echo "configure:14963: checking for esd_play_stream" >&5
+ echo "$as_me:$LINENO: checking for esd_play_stream" >&5
+echo $ECHO_N "checking for esd_play_stream... $ECHO_C" >&6
+if test "${ac_cv_func_esd_play_stream+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define esd_play_stream to an innocuous variant, in case <limits.h> declares
esd_play_stream.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define esd_play_stream innocuous_esd_play_stream
-cat > conftest.$ac_ext <<EOF
-#line 14966 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char esd_play_stream(); below. */
-#include <assert.h>
+ which can conflict with char esd_play_stream (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef esd_play_stream
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char esd_play_stream();
-
-int main() {
-
+char esd_play_stream ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
choke me
#else
-esd_play_stream();
+char (*f) () = esd_play_stream;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:14989: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_esd_play_stream=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_esd_play_stream=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" =
yes"; then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+return f != esd_play_stream;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_esd_play_stream=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_esd_play_stream=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_esd_play_stream" >&5
+echo "${ECHO_T}$ac_cv_func_esd_play_stream" >&6
+if test $ac_cv_func_esd_play_stream = yes; then
have_esd_sound=yes
else
- echo "$ac_t""no" 1>&6
-c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
+ c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
fi
fi
@@ -15012,13 +33715,9 @@
extra_objs="$extra_objs esd.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"esd.o\""
fi
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_ESD_SOUND
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_ESD_SOUND 1
-EOF
-}
+_ACEOF
else
test "$with_esd_sound" = "yes" && \
@@ -15035,127 +33734,371 @@
test -z "$with_tty" && with_tty=yes
if test "$with_tty" = "yes" ; then
- echo "checking for TTY-related features" 1>&6
-echo "configure:15040: checking for TTY-related features" >&5
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_TTY
-EOF
-cat >> confdefs.h <<\EOF
+ { echo "$as_me:$LINENO: checking for TTY-related features..." >&5
+echo "$as_me: checking for TTY-related features..." >&6;}
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_TTY 1
-EOF
-}
+_ACEOF
if test -z "$with_ncurses"; then
+ echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
+echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
+if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lncurses $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for tgetent in -lncurses""... $ac_c"
1>&6
-echo "configure:15053: checking for tgetent in -lncurses" >&5
-ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lncurses "
-cat > conftest.$ac_ext <<EOF
-#line 15058 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char tgetent();
-
-int main() {
-tgetent()
-; return 0; }
-EOF
-if { (eval echo configure:15069: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char tgetent ();
+int
+main ()
+{
+tgetent ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_ncurses_tgetent=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_ncurses_tgetent=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
+echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
+if test $ac_cv_lib_ncurses_tgetent = yes; then
with_ncurses=yes
else
- echo "$ac_t""no" 1>&6
-with_ncurses=no
+ with_ncurses=no
fi
-
fi
if test "$with_ncurses" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_NCURSES
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_NCURSES 1
-EOF
-}
+_ACEOF
- ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
-echo "configure:15102: checking for ncurses/curses.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 15105 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_ncurses_curses_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for ncurses/curses.h" >&5
+echo $ECHO_N "checking for ncurses/curses.h... $ECHO_C" >&6
+if test "${ac_cv_header_ncurses_curses_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_curses_h" >&5
+echo "${ECHO_T}$ac_cv_header_ncurses_curses_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking ncurses/curses.h usability" >&5
+echo $ECHO_N "checking ncurses/curses.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <ncurses/curses.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:15110: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking ncurses/curses.h presence" >&5
+echo $ECHO_N "checking ncurses/curses.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ncurses/curses.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ncurses/curses.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: ncurses/curses.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: ncurses/curses.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: ncurses/curses.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: ncurses/curses.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ncurses/curses.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: ncurses/curses.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: ncurses/curses.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for ncurses/curses.h" >&5
+echo $ECHO_N "checking for ncurses/curses.h... $ECHO_C" >&6
+if test "${ac_cv_header_ncurses_curses_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_ncurses_curses_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_curses_h" >&5
+echo "${ECHO_T}$ac_cv_header_ncurses_curses_h" >&6
+
+fi
+if test $ac_cv_header_ncurses_curses_h = yes; then
curses_h_file=ncurses/curses.h
+fi
+
+
+ if test "${ac_cv_header_ncurses_term_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for ncurses/term.h" >&5
+echo $ECHO_N "checking for ncurses/term.h... $ECHO_C" >&6
+if test "${ac_cv_header_ncurses_term_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_term_h" >&5
+echo "${ECHO_T}$ac_cv_header_ncurses_term_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking ncurses/term.h usability" >&5
+echo $ECHO_N "checking ncurses/term.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <ncurses/term.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking ncurses/term.h presence" >&5
+echo $ECHO_N "checking ncurses/term.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ncurses/term.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
else
- echo "$ac_t""no" 1>&6
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: ncurses/term.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ncurses/term.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/term.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: ncurses/term.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ncurses/term.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: ncurses/term.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/term.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: ncurses/term.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/term.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: ncurses/term.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/term.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ncurses/term.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/term.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: ncurses/term.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/term.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: ncurses/term.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for ncurses/term.h" >&5
+echo $ECHO_N "checking for ncurses/term.h... $ECHO_C" >&6
+if test "${ac_cv_header_ncurses_term_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_ncurses_term_h=$ac_header_preproc
fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_term_h" >&5
+echo "${ECHO_T}$ac_cv_header_ncurses_term_h" >&6
- ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
-echo "configure:15132: checking for ncurses/term.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 15135 "configure"
-#include "confdefs.h"
-#include <ncurses/term.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:15140: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test $ac_cv_header_ncurses_term_h = yes; then
term_h_file=ncurses/term.h
-else
- echo "$ac_t""no" 1>&6
fi
+
extra_objs="$extra_objs terminfo.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"terminfo.o\""
fi
@@ -15164,38 +34107,150 @@
if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
save_c_switch_site="$c_switch_site"
c_switch_site="$c_switch_site -I/usr/include/ncurses"
- ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
-echo "configure:15170: checking for ncurses/curses.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 15173 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_ncurses_curses_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for ncurses/curses.h" >&5
+echo $ECHO_N "checking for ncurses/curses.h... $ECHO_C" >&6
+if test "${ac_cv_header_ncurses_curses_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_curses_h" >&5
+echo "${ECHO_T}$ac_cv_header_ncurses_curses_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking ncurses/curses.h usability" >&5
+echo $ECHO_N "checking ncurses/curses.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <ncurses/curses.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:15178: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking ncurses/curses.h presence" >&5
+echo $ECHO_N "checking ncurses/curses.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ncurses/curses.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- curses_h_file=ncurses/curses.h
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: accepted by the compiler,
rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ncurses/curses.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: proceeding with the
compiler's result" >&5
+echo "$as_me: WARNING: ncurses/curses.h: proceeding with the compiler's
result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: present but cannot be
compiled" >&5
+echo "$as_me: WARNING: ncurses/curses.h: present but cannot be compiled"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: check for missing
prerequisite headers?" >&5
+echo "$as_me: WARNING: ncurses/curses.h: check for missing prerequisite
headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: see the Autoconf
documentation" >&5
+echo "$as_me: WARNING: ncurses/curses.h: see the Autoconf documentation"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: section \"Present
But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ncurses/curses.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: ncurses/curses.h: proceeding with the preprocessor's
result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ncurses/curses.h: in the future, the compiler
will take precedence" >&5
+echo "$as_me: WARNING: ncurses/curses.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for ncurses/curses.h" >&5
+echo $ECHO_N "checking for ncurses/curses.h... $ECHO_C" >&6
+if test "${ac_cv_header_ncurses_curses_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- echo "$ac_t""no" 1>&6
+ ac_cv_header_ncurses_curses_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_curses_h" >&5
+echo "${ECHO_T}$ac_cv_header_ncurses_curses_h" >&6
+
+fi
+if test $ac_cv_header_ncurses_curses_h = yes; then
+ curses_h_file=ncurses/curses.h
fi
+
if test "$ac_cv_header_ncurses_curses_h" = "yes"
- then echo "configure: warning: Your system has the bogus ncurses include
bug." 1>&2
+ then { echo "$as_me:$LINENO: WARNING: Your system has the bogus ncurses
include bug." >&5
+echo "$as_me: WARNING: Your system has the bogus ncurses include bug."
>&2;}
else c_switch_site="$save_c_switch_site"
fi
fi
@@ -15207,44 +34262,74 @@
LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"$libs_termcap\" to
\$LIBS"; fi
else
for lib in curses termlib termcap; do
+ as_ac_Lib=`echo "ac_cv_lib_$lib''_tgetent" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for tgetent in -l$lib" >&5
+echo $ECHO_N "checking for tgetent in -l$lib... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$lib $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
-echo "configure:15213: checking for tgetent in -l$lib" >&5
-ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -l$lib "
-cat > conftest.$ac_ext <<EOF
-#line 15218 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char tgetent();
-
-int main() {
-tgetent()
-; return 0; }
-EOF
-if { (eval echo configure:15229: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char tgetent ();
+int
+main ()
+{
+tgetent ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Lib=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
LIBS="-l${lib} $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-l${lib}\" to \$LIBS";
fi; break
-else
- echo "$ac_t""no" 1>&6
fi
-
done
fi
else extra_objs="$extra_objs tparam.o" && if test
"$extra_verbose" = "yes"; then
@@ -15254,182 +34339,371 @@
if test -n "$libs_termcap"; then
LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"$libs_termcap\" to
\$LIBS"; fi
else
+ echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
+echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
+if test "${ac_cv_lib_curses_tgetent+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcurses $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for tgetent in -lcurses""... $ac_c"
1>&6
-echo "configure:15260: checking for tgetent in -lcurses" >&5
-ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lcurses "
-cat > conftest.$ac_ext <<EOF
-#line 15265 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char tgetent();
-
-int main() {
-tgetent()
-; return 0; }
-EOF
-if { (eval echo configure:15276: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char tgetent ();
+int
+main ()
+{
+tgetent ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_curses_tgetent=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_curses_tgetent=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
+echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
+if test $ac_cv_lib_curses_tgetent = yes; then
LIBS="-lcurses $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lcurses\" to \$LIBS";
fi
else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for tgetent in -ltermcap""... $ac_c"
1>&6
-echo "configure:15294: checking for tgetent in -ltermcap" >&5
-ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
+echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
+if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ltermcap $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -ltermcap "
-cat > conftest.$ac_ext <<EOF
-#line 15299 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char tgetent();
-
-int main() {
-tgetent()
-; return 0; }
-EOF
-if { (eval echo configure:15310: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char tgetent ();
+int
+main ()
+{
+tgetent ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_termcap_tgetent=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_termcap_tgetent=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
+echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
+if test $ac_cv_lib_termcap_tgetent = yes; then
LIBS="-ltermcap $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-ltermcap\" to \$LIBS";
fi
else
- echo "$ac_t""no" 1>&6
-extra_objs="$extra_objs termcap.o" && if test
"$extra_verbose" = "yes"; then
+ extra_objs="$extra_objs termcap.o" && if test
"$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"termcap.o\""
fi
fi
-
fi
-
fi
fi
fi
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define CURSES_H_FILE "${curses_h_file-curses.h}"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining TERM_H_FILE = "${term_h_file-term.h}"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define TERM_H_FILE "${term_h_file-term.h}"
-EOF
-}
+_ACEOF
if test "$with_gpm" != "no"; then
- ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
-echo "configure:15359: checking for gpm.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 15362 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_gpm_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for gpm.h" >&5
+echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
+if test "${ac_cv_header_gpm_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
+echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking gpm.h usability" >&5
+echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <gpm.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:15367: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking gpm.h presence" >&5
+echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <gpm.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
-
-
-echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
-echo "configure:15385: checking for Gpm_Open in -lgpm" >&5
-ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by
the preprocessor!" >&5
+echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot
Be Compiled\"" >&5
+echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's
result" >&5
+echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take
precedence" >&5
+echo "$as_me: WARNING: gpm.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for gpm.h" >&5
+echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
+if test "${ac_cv_header_gpm_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_gpm_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
+echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
+
+fi
+if test $ac_cv_header_gpm_h = yes; then
+
+ echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
+echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
+if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgpm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lgpm "
-cat > conftest.$ac_ext <<EOF
-#line 15390 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char Gpm_Open();
-
-int main() {
-Gpm_Open()
-; return 0; }
-EOF
-if { (eval echo configure:15401: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char Gpm_Open ();
+int
+main ()
+{
+Gpm_Open ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_gpm_Gpm_Open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_gpm_Gpm_Open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
+echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
+if test $ac_cv_lib_gpm_Gpm_Open = yes; then
have_gpm=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
-else
- echo "$ac_t""no" 1>&6
fi
+
if test "$have_gpm" = "yes"; then
with_gpm=yes
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_GPM
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_GPM 1
-EOF
-}
+_ACEOF
LIBS="-lgpm $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
elif test "$with_gpm" = "yes"; then
@@ -15441,45 +34715,157 @@
else for feature in ncurses gpm; do
if eval "test -n \"\$with_${feature}\" -a
\"\$with_${feature}\" != no" ; then
- echo "configure: warning: --with-${feature} ignored: Not valid without TTY
support" 1>&2
+ { echo "$as_me:$LINENO: WARNING: --with-${feature} ignored: Not valid
without TTY support" >&5
+echo "$as_me: WARNING: --with-${feature} ignored: Not valid without TTY
support" >&2;}
fi
eval "with_${feature}=no"
done
fi
test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
- != "no no no" && echo "checking for database support"
1>&6
-echo "configure:15453: checking for database support" >&5
+ != "no no no" && { echo "$as_me:$LINENO: checking for database
support..." >&5
+echo "$as_me: checking for database support..." >&6;}
if test "$with_database_gdbm $with_database_dbm" != "no no"; then
- ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
-echo "configure:15458: checking for ndbm.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 15461 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_ndbm_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for ndbm.h" >&5
+echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
+if test "${ac_cv_header_ndbm_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
+echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking ndbm.h usability" >&5
+echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <ndbm.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:15466: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking ndbm.h presence" >&5
+echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ndbm.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by
the preprocessor!" >&5
+echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot
Be Compiled\"" >&5
+echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the
preprocessor's result" >&5
+echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take
precedence" >&5
+echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for ndbm.h" >&5
+echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
+if test "${ac_cv_header_ndbm_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_ndbm_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
+echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
+
+fi
+if test $ac_cv_header_ndbm_h = yes; then
:
else
- echo "$ac_t""no" 1>&6
test "$with_database_gdbm" = "yes" -o \
"$with_database_dbm" = "yes" && \
@@ -15487,139 +34873,252 @@
with_database_gdbm=no with_database_dbm=no
fi
+
fi
if test "$with_database_gdbm" != "no"; then
+ echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
+echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
+if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgdbm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c"
1>&6
-echo "configure:15496: checking for dbm_open in -lgdbm" >&5
-ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -lgdbm "
-cat > conftest.$ac_ext <<EOF
-#line 15501 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char dbm_open();
-
-int main() {
-dbm_open()
-; return 0; }
-EOF
-if { (eval echo configure:15512: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
+char dbm_open ();
+int
+main ()
+{
+dbm_open ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_gdbm_dbm_open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_gdbm_dbm_open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
+echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
+if test $ac_cv_lib_gdbm_dbm_open = yes; then
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
else
- echo "$ac_t""no" 1>&6
-if test "$with_database_gdbm" = "yes"; then
+
+ if test "$with_database_gdbm" = "yes"; then
{ echo "Error:" "Required GNU DBM support cannot be provided."
>&2; exit 1; }
fi
with_database_gdbm=no
fi
-
fi
if test "$with_database_dbm" != "no"; then
- echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
-echo "configure:15540: checking for dbm_open" >&5
+ echo "$as_me:$LINENO: checking for dbm_open" >&5
+echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
+if test "${ac_cv_func_dbm_open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define dbm_open to an innocuous variant, in case <limits.h> declares
dbm_open.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define dbm_open innocuous_dbm_open
-cat > conftest.$ac_ext <<EOF
-#line 15543 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dbm_open(); below. */
-#include <assert.h>
+ which can conflict with char dbm_open (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef dbm_open
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char dbm_open();
-
-int main() {
-
+char dbm_open ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_dbm_open) || defined (__stub___dbm_open)
choke me
#else
-dbm_open();
+char (*f) () = dbm_open;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:15566: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dbm_open=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_dbm_open=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+return f != dbm_open;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_dbm_open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_dbm_open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
+echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
+if test $ac_cv_func_dbm_open = yes; then
with_database_dbm=yes libdbm=
else
- echo "$ac_t""no" 1>&6
+ echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
+echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
+if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldbm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
-echo "configure:15585: checking for dbm_open in -ldbm" >&5
-ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -ldbm "
-cat > conftest.$ac_ext <<EOF
-#line 15590 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char dbm_open();
-
-int main() {
-dbm_open()
-; return 0; }
-EOF
-if { (eval echo configure:15601: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char dbm_open ();
+int
+main ()
+{
+dbm_open ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_dbm_dbm_open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dbm_dbm_open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
+echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
+if test $ac_cv_lib_dbm_dbm_open = yes; then
with_database_dbm=yes libdbm=-ldbm
else
- echo "$ac_t""no" 1>&6
-test "$with_database_dbm" = "yes" && \
+
+ test "$with_database_dbm" = "yes" && \
{ echo "Error:" "Required DBM support cannot be provided."
>&2; exit 1; }
with_database_dbm=no
fi
-
fi
fi
@@ -15627,22 +35126,21 @@
test -n "$libdbm" && LIBS=""$libdbm" $LIBS"
&& if test "$extra_verbose" = "yes"; then echo "
Prepending \""$libdbm"\" to \$LIBS"; fi
test "$with_database_gdbm" = "yes" -o \
"$with_database_dbm" = "yes" && \
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_DBM
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_DBM 1
-EOF
-}
+_ACEOF
if test "$with_database_berkdb" != "no"; then
- echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
-echo "configure:15642: checking for Berkeley db.h" >&5
+ echo "$as_me:$LINENO: checking for Berkeley db.h" >&5
+echo $ECHO_N "checking for Berkeley db.h... $ECHO_C" >&6
for header in "db/db.h" "db.h"; do
- cat > conftest.$ac_ext <<EOF
-#line 15645 "configure"
-#include "confdefs.h"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <stdlib.h>
#if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
@@ -15659,167 +35157,280 @@
#endif
#include <$header>
-int main() {
+int
+main ()
+{
-; return 0; }
-EOF
-if { (eval echo configure:15667: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
- rm -rf conftest*
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
db_h_file="$header"; break
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
if test -z "$db_h_file"
- then echo "$ac_t""no" 1>&6; with_database_berkdb=no
- else echo "$ac_t""$db_h_file" 1>&6
+ then echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; with_database_berkdb=no
+ else echo "$as_me:$LINENO: result: $db_h_file" >&5
+echo "${ECHO_T}$db_h_file" >&6
fi
if test "$with_database_berkdb" != "no"; then
- echo $ac_n "checking for Berkeley DB version""... $ac_c"
1>&6
-echo "configure:15683: checking for Berkeley DB version" >&5
- cat > conftest.$ac_ext <<EOF
-#line 15685 "configure"
-#include "confdefs.h"
+ echo "$as_me:$LINENO: checking for Berkeley DB version" >&5
+echo $ECHO_N "checking for Berkeley DB version... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <$db_h_file>
#if DB_VERSION_MAJOR > 1
yes
#endif
-EOF
+_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
-#line 15697 "configure"
-#include "confdefs.h"
+ $EGREP "yes" >/dev/null 2>&1; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <$db_h_file>
#if DB_VERSION_MAJOR > 2
yes
#endif
-EOF
+_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
-#line 15709 "configure"
-#include "confdefs.h"
+ $EGREP "yes" >/dev/null 2>&1; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
#include <$db_h_file>
#if DB_VERSION_MAJOR > 3
yes
#endif
-EOF
+_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- echo "$ac_t""4" 1>&6; dbfunc=db_create; dbver=4
+ $EGREP "yes" >/dev/null 2>&1; then
+ echo "$as_me:$LINENO: result: 4" >&5
+echo "${ECHO_T}4" >&6; dbfunc=db_create; dbver=4
else
- rm -rf conftest*
- echo "$ac_t""3" 1>&6; dbfunc=db_create; dbver=3
+ echo "$as_me:$LINENO: result: 3" >&5
+echo "${ECHO_T}3" >&6; dbfunc=db_create; dbver=3
fi
rm -f conftest*
else
- rm -rf conftest*
- echo "$ac_t""2" 1>&6; dbfunc=db_open; dbver=2
+ echo "$as_me:$LINENO: result: 2" >&5
+echo "${ECHO_T}2" >&6; dbfunc=db_open; dbver=2
fi
rm -f conftest*
else
- rm -rf conftest*
- echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1
+ echo "$as_me:$LINENO: result: 1" >&5
+echo "${ECHO_T}1" >&6; dbfunc=dbopen; dbver=1
fi
rm -f conftest*
- echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
-echo "configure:15743: checking for $dbfunc" >&5
+ as_ac_var=`echo "ac_cv_func_$dbfunc" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $dbfunc" >&5
+echo $ECHO_N "checking for $dbfunc... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $dbfunc to an innocuous variant, in case <limits.h> declares $dbfunc.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $dbfunc innocuous_$dbfunc
-cat > conftest.$ac_ext <<EOF
-#line 15746 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $dbfunc(); below. */
-#include <assert.h>
+ which can conflict with char $dbfunc (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $dbfunc
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $dbfunc();
-
-int main() {
-
+char $dbfunc ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
choke me
#else
-$dbfunc();
+char (*f) () = $dbfunc;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:15769: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$dbfunc=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$dbfunc=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes";
then
- echo "$ac_t""yes" 1>&6
+int
+main ()
+{
+return f != $dbfunc;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
with_database_berkdb=yes need_libdb=no
else
- echo "$ac_t""no" 1>&6
+ as_ac_Lib=`echo "ac_cv_lib_db_$dbfunc" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $dbfunc in -ldb" >&5
+echo $ECHO_N "checking for $dbfunc in -ldb... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldb $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
-echo "configure:15788: checking for $dbfunc in -ldb" >&5
-ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
-
-xe_check_libs=" -ldb "
-cat > conftest.$ac_ext <<EOF
-#line 15793 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $dbfunc();
-
-int main() {
-$dbfunc()
-; return 0; }
-EOF
-if { (eval echo configure:15804: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char $dbfunc ();
+int
+main ()
+{
+$dbfunc ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Lib=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
with_database_berkdb=yes need_libdb=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
fi
@@ -15829,65 +35440,88 @@
echo "#include <$db_h_file>" > $tempcname
echo "configure___ dbfunc=db_create" >> $tempcname
eval `$CPP -Isrc $tempcname \
- | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[
\"]*\$/'/" -e "s/^configure___//p"`
+ | sed -n -e "s/[ TAB]*=[ TAB\"]*/='/" -e "s/[
TAB\"]*\$/'/" -e "s/^configure___//p"`
rm -f $tempcname
- echo "configure: warning: "db_create is really $dbfunc""
1>&2
-
-echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
-echo "configure:15838: checking for $dbfunc in -ldb" >&5
-ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
+ { echo "$as_me:$LINENO: WARNING: \"db_create is really
$dbfunc\"" >&5
+echo "$as_me: WARNING: \"db_create is really $dbfunc\""
>&2;}
+ as_ac_Lib=`echo "ac_cv_lib_db_$dbfunc" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $dbfunc in -ldb" >&5
+echo $ECHO_N "checking for $dbfunc in -ldb... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldb $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -ldb "
-cat > conftest.$ac_ext <<EOF
-#line 15843 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char $dbfunc();
-
-int main() {
-$dbfunc()
-; return 0; }
-EOF
-if { (eval echo configure:15854: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char $dbfunc ();
+int
+main ()
+{
+$dbfunc ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Lib=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`"
>&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
with_database_berkdb=yes need_libdb=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
if test "$with_database_berkdb" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining DB_H_FILE = "$db_h_file"
-EOF
-cat >> confdefs.h <<EOF
+ cat >>confdefs.h <<_ACEOF
#define DB_H_FILE "$db_h_file"
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_BERKELEY_DB
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_BERKELEY_DB 1
-EOF
-}
+_ACEOF
test "$need_libdb" = "yes" && LIBS="-ldb
$LIBS" && if test "$extra_verbose" = "yes"; then echo
" Prepending \"-ldb\" to \$LIBS"; fi
else with_database_berkdb=no
@@ -15896,354 +35530,705 @@
if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
!= "no no no"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_DATABASE
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_DATABASE 1
-EOF
-}
+_ACEOF
fi
if test "$with_socks" = "yes"; then
-echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c"
1>&6
-echo "configure:15913: checking for SOCKSinit in -lsocks" >&5
-ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
+echo "$as_me:$LINENO: checking for SOCKSinit in -lsocks" >&5
+echo $ECHO_N "checking for SOCKSinit in -lsocks... $ECHO_C" >&6
+if test "${ac_cv_lib_socks_SOCKSinit+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsocks $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lsocks "
-cat > conftest.$ac_ext <<EOF
-#line 15918 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char SOCKSinit();
-
-int main() {
-SOCKSinit()
-; return 0; }
-EOF
-if { (eval echo configure:15929: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- { test "$extra_verbose" = "yes" && cat << EOF
- Defining $ac_tr_lib
-EOF
-cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+char SOCKSinit ();
+int
+main ()
+{
+SOCKSinit ();
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_socks_SOCKSinit=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_socks_SOCKSinit=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_socks_SOCKSinit" >&5
+echo "${ECHO_T}$ac_cv_lib_socks_SOCKSinit" >&6
+if test $ac_cv_lib_socks_SOCKSinit = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBSOCKS 1
+_ACEOF
- LIBS="-lsocks $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
+ LIBS="-lsocks $LIBS"
-else
- echo "$ac_t""no" 1>&6
fi
-
- test -n "$ac_cv_lib_socks_SOCKSinit" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_SOCKS
-EOF
-cat >> confdefs.h <<\EOF
+ test -n "$ac_cv_lib_socks_SOCKSinit" && cat >>confdefs.h
<<\_ACEOF
#define HAVE_SOCKS 1
-EOF
-}
+_ACEOF
fi
if test "$usage_tracking" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining USAGE_TRACKING
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define USAGE_TRACKING 1
-EOF
-}
+_ACEOF
LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test
"$extra_verbose" = "yes"; then echo " Prepending
\"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
fi
-if test "$use_number_lib" = "gmp"; then
- ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
-echo "configure:15985: checking for gmp.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 15988 "configure"
-#include "confdefs.h"
+if test "$enable_bignum" = "gmp"; then
+ if test "${ac_cv_header_gmp_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for gmp.h" >&5
+echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
+if test "${ac_cv_header_gmp_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
+echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking gmp.h usability" >&5
+echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <gmp.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:15993: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking gmp.h presence" >&5
+echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <gmp.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
-
-
-echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c"
1>&6
-echo "configure:16011: checking for __gmpz_init in -lgmp" >&5
-ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by
the preprocessor!" >&5
+echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot
Be Compiled\"" >&5
+echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's
result" >&5
+echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take
precedence" >&5
+echo "$as_me: WARNING: gmp.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for gmp.h" >&5
+echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
+if test "${ac_cv_header_gmp_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_gmp_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
+echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
+
+fi
+if test $ac_cv_header_gmp_h = yes; then
+
+ echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
+echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
+if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgmp $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lgmp "
-cat > conftest.$ac_ext <<EOF
-#line 16016 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char __gmpz_init();
-
-int main() {
-__gmpz_init()
-; return 0; }
-EOF
-if { (eval echo configure:16027: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char __gmpz_init ();
+int
+main ()
+{
+__gmpz_init ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_gmp___gmpz_init=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_gmp___gmpz_init=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
+echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
+if test $ac_cv_lib_gmp___gmpz_init = yes; then
have_mpz_init=yes
-else
- echo "$ac_t""no" 1>&6
fi
-
-else
- echo "$ac_t""no" 1>&6
fi
+
if test "$have_mpz_init" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining WITH_NUMBER_TYPES
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define WITH_NUMBER_TYPES 1
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining WITH_GMP
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define WITH_GMP 1
-EOF
-}
+_ACEOF
LIBS="-lgmp $LIBS" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lgmp\" to \$LIBS"; fi
else
{ echo "Error:" "Required GMP numeric support cannot be
provided." >&2; exit 1; }
fi
-elif test "$use_number_lib" = "mp"; then
+elif test "$enable_bignum" = "mp"; then
for library in "" "-lcrypto"; do
- ac_safe=`echo "mp.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for mp.h""... $ac_c" 1>&6
-echo "configure:16076: checking for mp.h" >&5
-
-cat > conftest.$ac_ext <<EOF
-#line 16079 "configure"
-#include "confdefs.h"
+ if test "${ac_cv_header_mp_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for mp.h" >&5
+echo $ECHO_N "checking for mp.h... $ECHO_C" >&6
+if test "${ac_cv_header_mp_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_mp_h" >&5
+echo "${ECHO_T}$ac_cv_header_mp_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking mp.h usability" >&5
+echo $ECHO_N "checking mp.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
#include <mp.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:16084: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking mp.h presence" >&5
+echo $ECHO_N "checking mp.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <mp.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"")
>&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-rm -f conftest*
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes";
then
- echo "$ac_t""yes" 1>&6
-
-
-xe_msg_checking="for mp_mfree in -lmp"
-test -n "$library" && xe_msg_checking="$xe_msg_checking using
extra libs $library"
-echo $ac_n "checking "$xe_msg_checking"""... $ac_c"
1>&6
-echo "configure:16104: checking "$xe_msg_checking"" >&5
-ac_lib_var=`echo mp'_'mp_mfree | sed 'y%./+-%__p_%'`
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: mp.h: accepted by the compiler, rejected by
the preprocessor!" >&5
+echo "$as_me: WARNING: mp.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: mp.h: proceeding with the compiler's
result" >&5
+echo "$as_me: WARNING: mp.h: proceeding with the compiler's result"
>&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: mp.h: present but cannot be compiled"
>&5
+echo "$as_me: WARNING: mp.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: mp.h: check for missing prerequisite
headers?" >&5
+echo "$as_me: WARNING: mp.h: check for missing prerequisite headers?"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: mp.h: see the Autoconf documentation"
>&5
+echo "$as_me: WARNING: mp.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: mp.h: section \"Present But Cannot
Be Compiled\"" >&5
+echo "$as_me: WARNING: mp.h: section \"Present But Cannot Be
Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: mp.h: proceeding with the preprocessor's
result" >&5
+echo "$as_me: WARNING: mp.h: proceeding with the preprocessor's result"
>&2;}
+ { echo "$as_me:$LINENO: WARNING: mp.h: in the future, the compiler will take
precedence" >&5
+echo "$as_me: WARNING: mp.h: in the future, the compiler will take
precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for mp.h" >&5
+echo $ECHO_N "checking for mp.h... $ECHO_C" >&6
+if test "${ac_cv_header_mp_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_mp_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_mp_h" >&5
+echo "${ECHO_T}$ac_cv_header_mp_h" >&6
+
+fi
+if test $ac_cv_header_mp_h = yes; then
+
+ echo "$as_me:$LINENO: checking for mp_mfree in -lmp" >&5
+echo $ECHO_N "checking for mp_mfree in -lmp... $ECHO_C" >&6
+if test "${ac_cv_lib_mp_mp_mfree+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lmp $library $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lmp $library"
-cat > conftest.$ac_ext <<EOF
-#line 16109 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char mp_mfree();
-
-int main() {
-mp_mfree()
-; return 0; }
-EOF
-if { (eval echo configure:16120: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char mp_mfree ();
+int
+main ()
+{
+mp_mfree ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_mp_mp_mfree=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_mp_mp_mfree=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_mfree" >&5
+echo "${ECHO_T}$ac_cv_lib_mp_mp_mfree" >&6
+if test $ac_cv_lib_mp_mp_mfree = yes; then
have_mp_mfree=yes; break
else
- echo "$ac_t""no" 1>&6
-xe_msg_checking="for mfree in -lmp"
-test -n "$library" && xe_msg_checking="$xe_msg_checking using
extra libs $library"
-echo $ac_n "checking "$xe_msg_checking"""... $ac_c"
1>&6
-echo "configure:16141: checking "$xe_msg_checking"" >&5
-ac_lib_var=`echo mp'_'mfree | sed 'y%./+-%__p_%'`
+ echo "$as_me:$LINENO: checking for mfree in -lmp" >&5
+echo $ECHO_N "checking for mfree in -lmp... $ECHO_C" >&6
+if test "${ac_cv_lib_mp_mfree+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lmp $library $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
-xe_check_libs=" -lmp $library"
-cat > conftest.$ac_ext <<EOF
-#line 16146 "configure"
-#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char mfree();
-
-int main() {
-mfree()
-; return 0; }
-EOF
-if { (eval echo configure:16157: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-xe_check_libs=""
-
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ;
then
- echo "$ac_t""yes" 1>&6
+char mfree ();
+int
+main ()
+{
+mfree ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_mp_mfree=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_mp_mfree=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mfree" >&5
+echo "${ECHO_T}$ac_cv_lib_mp_mfree" >&6
+if test $ac_cv_lib_mp_mfree = yes; then
have_mfree=yes; break
-else
- echo "$ac_t""no" 1>&6
fi
-
fi
-
-else
- echo "$ac_t""no" 1>&6
fi
+
done
if test "$have_mp_mfree" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining MP_PREFIX
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define MP_PREFIX 1
-EOF
-}
+_ACEOF
LIBS="$LIBS -lmp" && if test "$extra_verbose" =
"yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
if test "$library" != ""; then
LIBS="$LIBS $library" && if test "$extra_verbose" =
"yes"; then echo " Appending \"$library\" to \$LIBS"; fi
fi
- echo $ac_n "checking for mp_move""... $ac_c" 1>&6
-echo "configure:16199: checking for mp_move" >&5
+ echo "$as_me:$LINENO: checking for mp_move" >&5
+echo $ECHO_N "checking for mp_move... $ECHO_C" >&6
+if test "${ac_cv_func_mp_move+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define mp_move to an innocuous variant, in case <limits.h> declares mp_move.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define mp_move innocuous_mp_move
-cat > conftest.$ac_ext <<EOF
-#line 16202 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char mp_move(); below. */
-#include <assert.h>
+ which can conflict with char mp_move (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef mp_move
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char mp_move();
-
-int main() {
-
+char mp_move ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_mp_move) || defined (__stub___mp_move)
choke me
#else
-mp_move();
+char (*f) () = mp_move;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:16225: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_mp_move=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_mp_move=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'mp_move`\" = yes";
then
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_MP_MOVE
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_MP_MOVE 1
-EOF
+int
+main ()
+{
+return f != mp_move;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_mp_move=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_mp_move=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_mp_move" >&5
+echo "${ECHO_T}$ac_cv_func_mp_move" >&6
+if test $ac_cv_func_mp_move = yes; then
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_MP_MOVE 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
elif test "$have_mfree" = "yes"; then
@@ -16251,93 +36236,149 @@
if test "$library" != ""; then
LIBS="$LIBS $library" && if test "$extra_verbose" =
"yes"; then echo " Appending \"$library\" to \$LIBS"; fi
fi
- echo $ac_n "checking for move""... $ac_c" 1>&6
-echo "configure:16256: checking for move" >&5
+ echo "$as_me:$LINENO: checking for move" >&5
+echo $ECHO_N "checking for move... $ECHO_C" >&6
+if test "${ac_cv_func_move+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define move to an innocuous variant, in case <limits.h> declares move.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define move innocuous_move
-cat > conftest.$ac_ext <<EOF
-#line 16259 "configure"
-#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char move(); below. */
-#include <assert.h>
+ which can conflict with char move (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef move
+
/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char move();
-
-int main() {
-
+char move ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_move) || defined (__stub___move)
choke me
#else
-move();
+char (*f) () = move;
#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:16282: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_move=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_move=no"
-fi
-rm -f conftest*
+#ifdef __cplusplus
+}
+#endif
-if eval "test \"`echo '$ac_cv_func_'move`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_MP_MOVE
-EOF
-cat >> confdefs.h <<\EOF
-#define HAVE_MP_MOVE 1
-EOF
+int
+main ()
+{
+return f != move;
+ ;
+ return 0;
}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s
conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_move=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_move=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_move" >&5
+echo "${ECHO_T}$ac_cv_func_move" >&6
+if test $ac_cv_func_move = yes; then
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_MP_MOVE 1
+_ACEOF
-else
- echo "$ac_t""no" 1>&6
fi
else
{ echo "Error:" "Required MP numeric support cannot be
provided." >&2; exit 1; }
fi
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining WITH_NUMBER_TYPES
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define WITH_NUMBER_TYPES 1
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining WITH_MP
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define WITH_MP 1
-EOF
-}
+_ACEOF
fi
-cat > conftest.$ac_ext <<EOF
-#line 16329 "configure"
-#include "confdefs.h"
-int main(int c,char *v[]){return 0;}
-EOF
-if { (eval echo configure:16333: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
-then
+if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+int main(int c,char *v){return 0;}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
:
else
- conftest_rc="$?"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+( exit $ac_status )
+
echo ""
echo "*** PANIC *** The C compiler can no longer build working
executables."
echo "*** PANIC *** Please examine the tail of config.log for runtime
errors."
@@ -16347,28 +36388,25 @@
echo "*** PANIC ***"
echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run
ldconfig."
echo "*** PANIC *** On other systems, try telling configure where to find
the"
- echo "*** PANIC *** shared libraries using the --site-runtime-libraries
option"
+ echo "*** PANIC *** shared libraries using the --with-site-runtime-libraries
option"
echo "*** PANIC ***"
echo "*** PANIC *** Another way to shoot yourself in the foot is to
specify"
echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
echo "*** PANIC *** on your system. Don't do that."
exit 1
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext
conftest.$ac_ext
fi
-rm -fr conftest*
if test "$win32_processes" != "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining HAVE_UNIX_PROCESSES
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_UNIX_PROCESSES 1
-EOF
-}
+_ACEOF
fi
-if test "$with_modules" = "yes"; then
+if test "$enable_modules" = "yes"; then
ld_libs_module=
else
@@ -16434,7 +36472,7 @@
ld_libs_all="$T"
-if test "$with_modules" = "no"; then
+if test "$enable_modules" = "no"; then
MAKE_SUBDIR="$MAKE_SUBDIR src" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"src\" to \$MAKE_SUBDIR"; fi
fi
@@ -16528,8 +36566,6 @@
-
-
PREFIX=$prefix
while true; do
case "$PREFIX" in
@@ -16561,9 +36597,10 @@
done
+infopath=$with_infopath
-INFOPATH=$infopath
+INFOPATH=$with_infopath
while true; do
case "$INFOPATH" in
*\$* ) eval "INFOPATH=$INFOPATH" ;;
@@ -16572,9 +36609,18 @@
done
+if test -z "$with_package_path" && test -n
"$with_package_prefix" ; then
+ if test "$enable_mule" = "yes" ; then
+
with_package_path="~/.xemacs::${with_package_prefix}/site-packages:${with_package_prefix}/xemacs-packages:${with_package_prefix}/mule-packages"
+ else
+
with_package_path="~/.xemacs::${with_package_prefix}/site-packages:${with_package_prefix}/xemacs-packages"
+ fi
+fi
+
+package_path=$with_package_path
-PACKAGE_PATH=$package_path
+PACKAGE_PATH=$with_package_path
while true; do
case "$PACKAGE_PATH" in
*\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
@@ -16583,9 +36629,10 @@
done
+lispdir=$with_lispdir
-LISPDIR=$lispdir
+LISPDIR=$with_lispdir
while true; do
case "$LISPDIR" in
*\$* ) eval "LISPDIR=$LISPDIR" ;;
@@ -16594,9 +36641,10 @@
done
+moduledir=$with_moduledir
-MODULEDIR=$moduledir
+MODULEDIR=$with_moduledir
while true; do
case "$MODULEDIR" in
*\$* ) eval "MODULEDIR=$MODULEDIR" ;;
@@ -16605,6 +36653,7 @@
done
+sitelispdir=$with_sitelispdir
SITELISPDIR=$sitelispdir
@@ -16627,9 +36676,10 @@
done
+etcdir=$with_etcdir
-ETCDIR=$etcdir
+ETCDIR=$with_etcdir
while true; do
case "$ETCDIR" in
*\$* ) eval "ETCDIR=$ETCDIR" ;;
@@ -16638,23 +36688,25 @@
done
+archlibdir=$with_archlibdir
-DOCDIR=$docdir
+ARCHLIBDIR=$with_archlibdir
while true; do
- case "$DOCDIR" in
- *\$* ) eval "DOCDIR=$DOCDIR" ;;
+ case "$ARCHLIBDIR" in
+ *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
*) break ;;
esac
done
+docdir=$with_docdir
-ARCHLIBDIR=$archlibdir
+DOCDIR=$with_docdir
while true; do
- case "$ARCHLIBDIR" in
- *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
+ case "$DOCDIR" in
+ *\$* ) eval "DOCDIR=$DOCDIR" ;;
*) break ;;
esac
done
@@ -16678,9 +36730,10 @@
-RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)'
CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)'
CPPFLAGS='\$(CPPFLAGS)'"
+RECURSIVE_MAKE_ARGS="\$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)'
LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
+native_sound_lib=$with_native_sound_lib
@@ -16690,34 +36743,22 @@
if test "$with_prefix" = "yes"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining PREFIX_USER_DEFINED
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define PREFIX_USER_DEFINED 1
-EOF
-}
+_ACEOF
fi
if test "$with_site_lisp" = "no"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining INHIBIT_SITE_LISP
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define INHIBIT_SITE_LISP 1
-EOF
-}
+_ACEOF
fi
if test "$with_site_modules" = "no"; then
- { test "$extra_verbose" = "yes" && cat << \EOF
- Defining INHIBIT_SITE_MODULES
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define INHIBIT_SITE_MODULES 1
-EOF
-}
+_ACEOF
fi
@@ -16726,206 +36767,116 @@
for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else
T="$T $W"; fi; done
ac_configure_args="$T"
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining EMACS_CONFIGURATION = "$configuration"
-EOF
-cat >> confdefs.h <<EOF
-#define EMACS_CONFIGURATION "$configuration"
-EOF
-}
+cat >>confdefs.h <<_ACEOF
+#define EMACS_CONFIGURATION "$ac_cv_build"
+_ACEOF
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
-EOF
-cat >> confdefs.h <<EOF
+cat >>confdefs.h <<_ACEOF
#define EMACS_CONFIG_OPTIONS "$ac_configure_args"
-EOF
-}
+_ACEOF
null_string=""
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining LD_SWITCH_X_SITE = $null_string
-EOF
-cat >> confdefs.h <<EOF
+cat >>confdefs.h <<_ACEOF
#define LD_SWITCH_X_SITE $null_string
-EOF
-}
+_ACEOF
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining LD_SWITCH_X_SITE_AUX = $null_string
-EOF
-cat >> confdefs.h <<EOF
+cat >>confdefs.h <<_ACEOF
#define LD_SWITCH_X_SITE_AUX $null_string
-EOF
-}
+_ACEOF
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining C_SWITCH_X_SITE = $null_string
-EOF
-cat >> confdefs.h <<EOF
+cat >>confdefs.h <<_ACEOF
#define C_SWITCH_X_SITE $null_string
-EOF
-}
+_ACEOF
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining LD_SWITCH_SITE = $null_string
-EOF
-cat >> confdefs.h <<EOF
+cat >>confdefs.h <<_ACEOF
#define LD_SWITCH_SITE $null_string
-EOF
-}
+_ACEOF
-{ test "$extra_verbose" = "yes" && cat << EOF
- Defining C_SWITCH_SITE = $null_string
-EOF
-cat >> confdefs.h <<EOF
+cat >>confdefs.h <<_ACEOF
#define C_SWITCH_SITE $null_string
-EOF
-}
+_ACEOF
-if test "$GNU_MALLOC" = "yes"; then { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining GNU_MALLOC
-EOF
-cat >> confdefs.h <<\EOF
+if test "$GNU_MALLOC" = "yes"; then cat
>>confdefs.h <<\_ACEOF
#define GNU_MALLOC 1
-EOF
-}
+_ACEOF
-elif test "$with_system_malloc" = "yes"; then { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining USE_SYSTEM_MALLOC
-EOF
-cat >> confdefs.h <<\EOF
+elif test "$with_system_malloc" = "yes"; then cat
>>confdefs.h <<\_ACEOF
#define USE_SYSTEM_MALLOC 1
-EOF
-}
+_ACEOF
-elif test "$with_debug_malloc" = "yes"; then { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining USE_DEBUG_MALLOC
-EOF
-cat >> confdefs.h <<\EOF
+elif test "$with_debug_malloc" = "yes"; then cat
>>confdefs.h <<\_ACEOF
#define USE_DEBUG_MALLOC 1
-EOF
-}
+_ACEOF
- { test "$extra_verbose" = "yes" && cat <<
\EOF
- Defining USE_SYSTEM_MALLOC
-EOF
-cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define USE_SYSTEM_MALLOC 1
-EOF
-}
+_ACEOF
fi
-test "$GCC" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining USE_GCC
-EOF
-cat >> confdefs.h <<\EOF
+test "$GCC" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define USE_GCC 1
-EOF
-}
+_ACEOF
-test "$external_widget" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining EXTERNAL_WIDGET
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_external_widget" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define EXTERNAL_WIDGET 1
-EOF
-}
+_ACEOF
-test "$use_kkcc" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining USE_KKCC
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_kkcc" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define USE_KKCC 1
-EOF
-}
+_ACEOF
-test "$quick_build" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining QUICK_BUILD
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_quick_build" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define QUICK_BUILD 1
-EOF
-}
+_ACEOF
-test "$with_purify" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining PURIFY
-EOF
-cat >> confdefs.h <<\EOF
+test "$with_purify" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define PURIFY 1
-EOF
-}
+_ACEOF
-test "$with_quantify" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining QUANTIFY
-EOF
-cat >> confdefs.h <<\EOF
+test "$with_quantify" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define QUANTIFY 1
-EOF
-}
+_ACEOF
-test "$with_pop" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining MAIL_USE_POP
-EOF
-cat >> confdefs.h <<\EOF
+test "$with_pop" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define MAIL_USE_POP 1
-EOF
-}
+_ACEOF
-test "$with_kerberos" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining KERBEROS
-EOF
-cat >> confdefs.h <<\EOF
+test "$with_kerberos" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define KERBEROS 1
-EOF
-}
+_ACEOF
-test "$with_hesiod" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining HESIOD
-EOF
-cat >> confdefs.h <<\EOF
+test "$with_hesiod" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define HESIOD 1
-EOF
-}
+_ACEOF
-test "$use_union_type" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining USE_UNION_TYPE
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_union_type" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define USE_UNION_TYPE 1
-EOF
-}
+_ACEOF
-test "$pdump" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining PDUMP
-EOF
-cat >> confdefs.h <<\EOF
+test "$enable_pdump" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define PDUMP 1
-EOF
-}
+_ACEOF
-test "$with_ipv6_cname" = "yes" && { test
"$extra_verbose" = "yes" && cat << \EOF
- Defining IPV6_CANONICALIZE
-EOF
-cat >> confdefs.h <<\EOF
+test "$with_ipv6_cname" = "yes" && cat
>>confdefs.h <<\_ACEOF
#define IPV6_CANONICALIZE 1
-EOF
-}
+_ACEOF
+
+
(
if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
else
echo "uname -a: `uname -a`"
fi
echo ""
-echo "$0 $quoted_arguments"
+echo "$progname $ac_configure_args"
) > Installation
if test ! -z ${emacs_beta_version} ; then
@@ -16941,20 +36892,20 @@
(
echo "
-XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname}
\"$xemacs_codename\" $xemacs_extra_name configured for \`$canonical'.
+XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname}
\"$xemacs_codename\" $xemacs_extra_name configured for \`$ac_cv_build'.
"
echo "
Compilation Environment and Installation Defaults:"
echo " Source code location: $srcdir"
echo " Installation prefix: $prefix"
-if test -n "$site_includes"; then
- echo " Additional header files: $site_includes"
+if test -n "$with_site_includes"; then
+ echo " Additional header files: $with_site_includes"
fi
-if test -n "$site_libraries"; then
- echo " Additional libraries: $site_libraries"
+if test -n "$with_site_libraries"; then
+ echo " Additional libraries: $with_site_libraries"
fi
-if test -n "$site_prefixes"; then
- echo " Additional prefixes: $site_prefixes"
+if test -n "$with_site_prefixes"; then
+ echo " Additional prefixes: $with_site_prefixes"
fi
if test -n "$runpath"; then
echo " Runtime library search path: $runpath"
@@ -16982,11 +36933,11 @@
fi
fi
echo " libc version: $libc_version"
-echo " Relocating allocator for buffers: $rel_alloc"
+echo " Relocating allocator for buffers: $with_rel_alloc"
echo " GNU version of malloc:
${GNU_MALLOC}${GNU_MALLOC_reason}"
case "$ld_switch_site" in
*nocombreloc*) echo " Linking with \`-z nocombreloc'.
- - Consider configuring with --pdump." ;;
+ - Consider configuring with --enable-pdump." ;;
esac
echo "
@@ -17016,44 +36967,53 @@
echo " - Athena headers location: $athena_h_path"
echo " - Athena library to link: $athena_lib"
fi
-case "$with_menubars" in
+case "$enable_menubars" in
gtk ) echo " Using GTK menubars." ;;
lucid ) echo " Using Lucid menubars." ;;
motif ) echo " Using Motif menubars."
echo " *WARNING* The Motif menubar implementation is currently
buggy."
echo " We recommend using the Lucid menubar instead."
- echo " Re-run configure with
--with-menubars='lucid'." ;;
+ echo " Re-run configure with
--enable-menubars='lucid'." ;;
msw ) echo " Using MS-Windows menubars." ;;
esac
if test "$with_xft_menubars" = "yes"; then
echo " - Using Xft to render antialiased fonts in menubars."
echo " WARNING: This feature will be replaced with a face."
fi
-case "$with_scrollbars" in
+case "$enable_scrollbars" in
gtk ) echo " Using GTK scrollbars." ;;
lucid ) echo " Using Lucid scrollbars." ;;
motif ) echo " Using Motif scrollbars." ;;
athena ) echo " Using Athena scrollbars." ;;
msw ) echo " Using MS-Windows scrollbars." ;;
esac
-case "$with_dialogs" in
+case "$enable_dialogs" in
gtk ) echo " Using GTK dialog boxes." ;;
motif ) echo " Using Motif dialog boxes."
if test "$unexec" = "unexaix.o"; then if test
"`uname -v`" = 4 -a "`uname -r`" -ge 3; then
echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3
and higher."
echo " We recommend using the Athena dialog boxes
instead."
- echo " Install libXaw and re-run configure with
--with-dialogs='athena'."
+ echo " Install libXaw and re-run configure with
--enable-dialogs='athena'."
echo " Read the PROBLEMS file for more
information."
fi; fi ;;
athena ) echo " Using Athena dialog boxes." ;;
msw ) echo " Using MS-Windows dialog boxes." ;;
esac
-case "$with_widgets" in
+case "$enable_widgets" in
gtk ) echo " Using GTK native widgets." ;;
motif ) echo " Using Motif native widgets." ;;
athena ) echo " Using Athena native widgets." ;;
msw ) echo " Using MS-Windows native widgets." ;;
esac
+if test "$with_xft_tabs" = "yes"; then
+ echo " - Using Xft to render antialiased fonts in tab controls."
+ echo " WARNING: This feature will be replaced with a face."
+fi
+if test "$with_xft_gauge" = "yes"; then
+ echo " - Using Xft to render antialiased fonts in progress bars."
+ echo " WARNING: This feature will be replaced with a face."
+ echo " WARNING: This feature not yet implemented; setting ignored."
+fi
if test "$with_dragndrop" = yes; then
echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
echo " - Drag'n'Drop prototype:
$dragndrop_proto."
@@ -17118,14 +37078,11 @@
echo "
Internationalization:"
-test "$with_mule" = yes && echo " Compiling in support for Mule
(multi-lingual Emacs)."
+test "$enable_mule" = yes && echo " Compiling in support for
Mule (multi-lingual Emacs)."
test "$with_xim" != no && echo " Compiling in support for XIM
(X11R5+ I18N input method)."
test "$with_xim" = motif && echo " - Using Motif to provide
XIM support."
-test "$with_xim" = xlib && echo " - Using raw Xlib to provide
XIM support."
-if test "$with_xfs" = "yes"; then
- echo " - Using XFontSet to provide multilingual menubars."
- echo " WARNING: This feature will be replaced with a face."
-fi
+test "$with_xim" = xlib && echo " - Using raw Xlib to provide
XIM support."
+test "$with_xfs" = yes && echo " - Using XFontSet to provide
bilingual menubar."
test "$with_canna" = yes && echo " Compiling in support for
Canna on Mule."
if test "$with_wnn" = yes; then
echo " Compiling in support for the WNN input method on Mule."
@@ -17137,7 +37094,7 @@
test "$with_pop" = yes && echo " Compiling in support for POP
mail retrieval."
test "$with_kerberos" = yes && echo " Compiling in support for
Kerberos POP authentication."
test "$with_hesiod" = yes && echo " Compiling in support for
Hesiod POP server access."
-test -n "$mail_locking" && echo " Compiling in support for
\"$mail_locking\" mail spool file locking method."
+test -n "$with_mail_locking" && echo " Compiling in support for
\"$with_mail_locking\" mail spool file locking method."
echo "
Other Features:"
@@ -17146,10 +37103,10 @@
test "$with_workshop" = yes && echo " Compiling in support for
Sun WorkShop."
test "$with_socks" = yes && echo " Compiling in support for
SOCKS."
test "$with_dnet" = yes && echo " Compiling in support for
DNET."
-test "$with_modules" = "yes" && echo " Compiling in
support for dynamic shared object modules."
-test "$use_number_lib" = "gmp" && echo " Compiling in
support for more number types using the GNU MP library."
-test "$use_number_lib" = "mp" && echo " Compiling in
support for more number types using the BSD MP library."
-if test "$use_union_type" = yes ; then
+test "$enable_modules" = "yes" && echo " Compiling in
support for dynamic shared object modules."
+test "$enable_bignum" = "gmp" && echo " Compiling in
support for more number types using the GNU MP library."
+test "$enable_bignum" = "mp" && echo " Compiling in
support for more number types using the BSD MP library."
+if test "$enable_union_type" = yes ; then
echo " Using the union type for Lisp_Objects."
echo " WARNING:
---------------------------------------------------------"
echo " WARNING: This tends to trigger compiler bugs, especially when"
@@ -17159,9 +37116,9 @@
echo " WARNING: More recent versions may be safer, or not."
echo " WARNING:
---------------------------------------------------------"
fi
-test "$use_kkcc" = yes && echo " Using the new GC
algorithms."
-test "$pdump" = yes && echo " Using the new portable
dumper."
-test "$debug" = yes && echo " Compiling in support for extra
debugging code."
+test "$enable_kkcc" = yes && echo " Using the new GC
algorithms."
+test "$enable_pdump" = yes && echo " Using the new portable
dumper."
+test "$enable_debug" = yes && echo " Compiling in support for
extra debugging code."
test "$usage_tracking" = yes && echo " Compiling in support for
active usage tracking (Sun internal)."
if test "$error_check_extents $error_check_types $error_check_text $error_check_gc
$error_check_malloc $error_check_glyphs $error_check_byte_code $error_check_display
$error_check_structures" \
!= "no no no no no no no no no"; then
@@ -17175,7 +37132,10 @@
) | tee -a Installation
echo ""
+ ac_config_headers="$ac_config_headers src/config.h
lwlib/config.h"
+
+
# Remove any trailing slashes in these variables.
test -n "$prefix" &&
prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e
's,\([^/]\)/*$,\1,'`
@@ -17188,430 +37148,1353 @@
src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend"
;;
modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
esac
- ac_output_files="$ac_output_files $file" && if test
"$extra_verbose" = "yes"; then echo " Appending
\"$file\" to \$ac_output_files"; fi
+ ac_config_files="$ac_config_files $file"
+
done
-ac_output_files="$ac_output_files src/paths.h src/xemacs.def.in
lib-src/config.values"
-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
+ ac_config_files="$ac_config_files src/paths.h
src/xemacs.def.in lib-src/config.values"
+
+test "$enable_modules" = "yes" &&
ac_config_files="$ac_config_files lib-src/ellcc.h"
+
+
+
-trap '' 1 2 15
-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1
2 15
+
+
+
+ ac_config_commands="$ac_config_commands default"
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, don't put newlines in cache variables' values.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+{
+ (set) 2>&1 |
+ case `(ac_space=' '; set | grep ac_space) 2>&1` in
+ *ac_space=\ *)
+ # `set' does not quote correctly, so add quotes (double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \).
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;;
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n \
+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+ ;;
+ esac;
+} |
+ sed '
+ t clear
+ : clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ : end' >>confcache
+if diff $cache_file confcache >/dev/null 2>&1; then :; else
+ if test -w $cache_file; then
+ test "x$cache_file" != "x/dev/null" && echo
"updating cache $cache_file"
+ cat confcache >$cache_file
+ else
+ echo "not updating unwritable cache $cache_file"
+ fi
+fi
+rm -f confcache
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-# Any assignment to VPATH causes Sun make to only execute
-# the first set of double-colon rules, so remove it if not needed.
-# If there is a colon in the path, we need to keep it.
+# VPATH may cause trouble with some makes, so we remove $(srcdir),
+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
+ ac_vpsub='/^[ ]*VPATH[ ]*=/{
+s/:*\$(srcdir):*/:/;
+s/:*\${srcdir}:*/:/;
+s/:*@srcdir@:*/:/;
+s/^\([^=]*=[ ]*\):*/\1/;
+s/:*$//;
+s/^[^=]*=[ ]*$//;
+}'
fi
-trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
-
DEFS=-DHAVE_CONFIG_H
-# Without the "./", some shells look in PATH for config.status.
-: ${CONFIG_STATUS=./config.status}
+ac_libobjs=
+ac_ltlibobjs=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_i=`echo "$ac_i" |
+ sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
+ # 2. Add them.
+ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
+ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
-echo creating $CONFIG_STATUS
-rm -f $CONFIG_STATUS
-cat > $CONFIG_STATUS <<EOF
-#! /bin/sh
-# Generated automatically by configure.
+
+
+: ${CONFIG_STATUS=./config.status}
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
+echo "$as_me: creating $CONFIG_STATUS" >&6;}
+cat >$CONFIG_STATUS <<_ACEOF
+#! $SHELL
+# Generated by $as_me.
# Run this file to recreate the current configuration.
-# This directory was configured as follows,
-# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-#
-# $0 $ac_configure_args
-#
# Compiler output produced by configure, useful for debugging
-# configure, is in ./config.log if it exists.
+# configure, is in config.log if it exists.
-ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
-for ac_option
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null
2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null
2>&1; then
+ set -o posix
+fi
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+for as_var in \
+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+ LC_TELEPHONE LC_TIME
+do
+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`");
then
+ eval $as_var=C; export $as_var
+ else
+ $as_unset $as_var
+ fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename /) >/dev/null 2>&1 && test "X`basename /
2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)$' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+ /^X\/\(\/\/\)$/{ s//\1/; q; }
+ /^X\/\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conf$$.sh
+ echo "exit 0" >>conf$$.sh
+ chmod +x conf$$.sh
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conf$$.sh
+fi
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" || {
+ # Find who we are. Look in the path if we contain no path at all
+ # relative or not.
+ case $0 in
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+
+ ;;
+ esac
+ # We did not find ourselves, most probably we were run as `sh COMMAND'
+ # in which case we are not to be found in the path.
+ if test "x$as_myself" = x; then
+ as_myself=$0
+ fi
+ if test ! -f "$as_myself"; then
+ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute
path" >&5
+echo "$as_me: error: cannot find myself; rerun with an absolute path"
>&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ case $CONFIG_SHELL in
+ '')
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for as_base in sh bash ksh sh5; do
+ case $as_dir in
+ /*)
+ if ("$as_dir/$as_base" -c '
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null;
then
+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=;
export BASH_ENV; }
+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+ CONFIG_SHELL=$as_dir/$as_base
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+ fi;;
+ esac
+ done
+done
+;;
+ esac
+
+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+ # uniformly replaced by the line number. The first 'sed' inserts a
+ # line-number line before each line; the second 'sed' does the real
+ # work. The second script uses 'N' to pair each line-number line
+ # with the numbered line, and appends trailing '-' during
+ # substitution so that $LINENO is not a special case at line end.
+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
+ sed '=' <$as_myself |
+ sed '
+ N
+ s,$,-,
+ : loop
+
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+ t loop
+ s,-$,,
+ s,^['$as_cr_digits']*\n,,
+ ' >$as_me.lineno &&
+ chmod +x $as_me.lineno ||
+ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a
POSIX shell" >&5
+echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell"
>&2;}
+ { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensible to this).
+ . ./$as_me.lineno
+ # Exit status is that of the last command.
+ exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+ *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T=' ' ;;
+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+ # We could just check for DJGPP; but this test a) works b) is more generic
+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+ if test -f conf$$.exe; then
+ # Don't use ln at all; we don't have any links
+ as_ln_s='cp -p'
+ else
+ as_ln_s='ln -s'
+ fi
+elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p=:
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+as_executable_p="test -f"
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed
'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=" $as_nl"
+
+# CDPATH.
+$as_unset CDPATH
+
+exec 6>&1
+
+# Open the log real soon, to keep \$[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling. Logging --version etc. is OK.
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+} >&5
+cat >&5 <<_CSEOF
+
+This file was extended by $as_me, which was
+generated by GNU Autoconf 2.59. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+_CSEOF
+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
+echo >&5
+_ACEOF
+
+# Files that config.status was made for.
+if test -n "$ac_config_files"; then
+ echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_headers"; then
+ echo "config_headers=\"$ac_config_headers\""
>>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_links"; then
+ echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_commands"; then
+ echo "config_commands=\"$ac_config_commands\""
>>$CONFIG_STATUS
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+ac_cs_usage="\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTIONS] [FILE]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -q, --quiet do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+ --header=FILE[:TEMPLATE]
+ instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Configuration commands:
+$config_commands
+
+Report bugs to <bug-autoconf(a)gnu.org>."
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+ac_cs_version="\\
+config.status
+configured by $0, generated by GNU Autoconf 2.59,
+ with options \\"`echo "$ac_configure_args" | sed
's/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright (C) 2003 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+srcdir=$srcdir
+INSTALL="$INSTALL"
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+# If no file are specified by the user, then we need to provide default
+# value. By we need to know if files were specified by the user.
+ac_need_defaults=:
+while test $# != 0
do
- case "\$ac_option" in
+ case $1 in
+ --*=*)
+ ac_option=`expr "x$1" : 'x\([^=]*\)='`
+ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ -*)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ *) # This is not an option, so the user has probably given explicit
+ # arguments.
+ ac_option=$1
+ ac_need_defaults=false;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create
--no-recursion"
- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.13"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "\$ac_cs_usage"; exit 0 ;;
- *) echo "\$ac_cs_usage"; exit 1 ;;
+ ac_cs_recheck=: ;;
+ --version | --vers* | -V )
+ echo "$ac_cs_version"; exit 0 ;;
+ --he | --h)
+ # Conflict between --help and --header
+ { { echo "$as_me:$LINENO: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&2;}
+ { (exit 1); exit 1; }; };;
+ --help | --hel | -h )
+ echo "$ac_cs_usage"; exit 0 ;;
+ --debug | --d* | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ CONFIG_FILES="$CONFIG_FILES $ac_optarg"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ $ac_shift
+ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
+ ac_need_defaults=false;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2;}
+ { (exit 1); exit 1; }; } ;;
+
+ *) ac_config_targets="$ac_config_targets $1" ;;
+
esac
+ shift
done
-ac_given_srcdir=$srcdir
-ac_given_INSTALL="$INSTALL"
+ac_configure_extra_args=
-trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed
"s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
-EOF
-cat >> $CONFIG_STATUS <<EOF
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
-# Protect against being on the right side of a sed subst in config.status.
-sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
-$ac_vpsub
-$extrasub
-s%@SHELL@%$SHELL%g
-s%@CFLAGS@%$CFLAGS%g
-s%@CPPFLAGS@%$CPPFLAGS%g
-s%@CXXFLAGS@%$CXXFLAGS%g
-s%@FFLAGS@%$FFLAGS%g
-s%@DEFS@%$DEFS%g
-s%@LDFLAGS@%$LDFLAGS%g
-s%@LIBS@%$LIBS%g
-s%@exec_prefix@%$exec_prefix%g
-s%@prefix@%$prefix%g
-s%@program_transform_name@%$program_transform_name%g
-s%@bindir@%$bindir%g
-s%@sbindir@%$sbindir%g
-s%@libexecdir@%$libexecdir%g
-s%@datadir@%$datadir%g
-s%@sysconfdir@%$sysconfdir%g
-s%@sharedstatedir@%$sharedstatedir%g
-s%@localstatedir@%$localstatedir%g
-s%@libdir@%$libdir%g
-s%@includedir@%$includedir%g
-s%@oldincludedir@%$oldincludedir%g
-s%@infodir@%$infodir%g
-s%@mandir@%$mandir%g
-s%@LN_S@%$LN_S%g
-s%@blddir@%$blddir%g
-s%@CC@%$CC%g
-s%@CPP@%$CPP%g
-s%@start_flags@%$start_flags%g
-s%@ld_switch_shared@%$ld_switch_shared%g
-s%@start_files@%$start_files%g
-s%@ld@%$ld%g
-s%@lib_gcc@%$lib_gcc%g
-s%@RANLIB@%$RANLIB%g
-s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
-s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
-s%@INSTALL_DATA@%$INSTALL_DATA%g
-s%@YACC@%$YACC%g
-s%@SET_MAKE@%$SET_MAKE%g
-s%@GTK_CONFIG@%$GTK_CONFIG%g
-s%@X_CFLAGS@%$X_CFLAGS%g
-s%@X_PRE_LIBS@%$X_PRE_LIBS%g
-s%@X_LIBS@%$X_LIBS%g
-s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
-s%@install_pp@%$install_pp%g
-s%@libs_xauth@%$libs_xauth%g
-s%@dnd_objs@%$dnd_objs%g
-s%@LIBSTDCPP@%$LIBSTDCPP%g
-s%@dll_ld@%$dll_ld%g
-s%@dll_cflags@%$dll_cflags%g
-s%@dll_ldflags@%$dll_ldflags%g
-s%@dll_post@%$dll_post%g
-s%@dll_ldo@%$dll_ldo%g
-s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
-s%@with_modules@%$with_modules%g
-s%@MOD_CC@%$MOD_CC%g
-s%@MODARCHDIR@%$MODARCHDIR%g
-s%@MAKE_DOCFILE@%$MAKE_DOCFILE%g
-s%@MODCFLAGS@%$MODCFLAGS%g
-s%@INSTALLPATH@%$INSTALLPATH%g
-s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g
-s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g
-s%@ldap_libs@%$ldap_libs%g
-s%@postgresql_libs@%$postgresql_libs%g
-s%@lwlib_objs@%$lwlib_objs%g
-s%@ALLOCA@%$ALLOCA%g
-s%@have_esd_config@%$have_esd_config%g
-s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
-s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
-s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
-s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
-s%@PROGNAME@%$PROGNAME%g
-s%@version@%$version%g
-s%@configuration@%$configuration%g
-s%@canonical@%$canonical%g
-s%@inststaticdir@%$inststaticdir%g
-s%@instvardir@%$instvardir%g
-s%@srcdir@%$srcdir%g
-s%@statedir@%$statedir%g
-s%@extra_includes@%$extra_includes%g
-s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
-s%@PREFIX@%$PREFIX%g
-s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
-s%@EXEC_PREFIX@%$EXEC_PREFIX%g
-s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
-s%@INFODIR@%$INFODIR%g
-s%@infopath@%$infopath%g
-s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
-s%@INFOPATH@%$INFOPATH%g
-s%@package_path@%$package_path%g
-s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
-s%@PACKAGE_PATH@%$PACKAGE_PATH%g
-s%@lispdir@%$lispdir%g
-s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
-s%@LISPDIR@%$LISPDIR%g
-s%@moduledir@%$moduledir%g
-s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
-s%@MODULEDIR@%$MODULEDIR%g
-s%@sitelispdir@%$sitelispdir%g
-s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
-s%@SITELISPDIR@%$SITELISPDIR%g
-s%@sitemoduledir@%$sitemoduledir%g
-s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
-s%@SITEMODULEDIR@%$SITEMODULEDIR%g
-s%@etcdir@%$etcdir%g
-s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
-s%@ETCDIR@%$ETCDIR%g
-s%@docdir@%$docdir%g
-s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
-s%@DOCDIR@%$DOCDIR%g
-s%@archlibdir@%$archlibdir%g
-s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
-s%@ARCHLIBDIR@%$ARCHLIBDIR%g
-s%@bitmapdir@%$bitmapdir%g
-s%@extra_objs@%$extra_objs%g
-s%@machfile@%$machfile%g
-s%@opsysfile@%$opsysfile%g
-s%@c_switch_general@%$c_switch_general%g
-s%@c_switch_window_system@%$c_switch_window_system%g
-s%@c_switch_all@%$c_switch_all%g
-s%@ld_switch_general@%$ld_switch_general%g
-s%@ld_switch_window_system@%$ld_switch_window_system%g
-s%@ld_switch_all@%$ld_switch_all%g
-s%@ld_libs_general@%$ld_libs_general%g
-s%@ld_libs_window_system@%$ld_libs_window_system%g
-s%@ld_libs_all@%$ld_libs_all%g
-s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
-s%@native_sound_lib@%$native_sound_lib%g
-s%@sound_cflags@%$sound_cflags%g
-s%@dynodump_arch@%$dynodump_arch%g
-s%@XEMACS_CC@%$XEMACS_CC%g
-s%@XE_CFLAGS@%$XE_CFLAGS%g
-s%@internal_makefile_list@%$internal_makefile_list%g
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+if \$ac_cs_recheck; then
+ echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args
" --no-create --no-recursion" >&6
+ exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create
--no-recursion
+fi
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+#
+# INIT-COMMANDS section.
+#
+CPP="$CPP"
+ MAKE_SUBDIR="$MAKE_SUBDIR"
+
+
+_ACEOF
+
+
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_config_target in $ac_config_targets
+do
+ case "$ac_config_target" in
+ # Handling of arguments.
+ "$file" ) CONFIG_FILES="$CONFIG_FILES $file" ;;
+ "src/paths.h" ) CONFIG_FILES="$CONFIG_FILES src/paths.h" ;;
+ "src/xemacs.def.in" ) CONFIG_FILES="$CONFIG_FILES
src/xemacs.def.in" ;;
+ "lib-src/config.values" ) CONFIG_FILES="$CONFIG_FILES
lib-src/config.values" ;;
+ "lib-src/ellcc.h" ) CONFIG_FILES="$CONFIG_FILES lib-src/ellcc.h"
;;
+ "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
+ "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h"
;;
+ "lwlib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS
lwlib/config.h" ;;
+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target"
>&5
+echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+ { (exit 1); exit 1; }; };;
+ esac
+done
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason to put it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+ trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null`
&&
+ test -n "$tmp" && test -d "$tmp"
+} ||
+{
+ tmp=./confstat$$-$RANDOM
+ (umask 077 && mkdir $tmp)
+} ||
+{
+ echo "$me: cannot create a temporary directory in ." >&2
+ { (exit 1); exit 1; }
+}
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+
+#
+# CONFIG_FILES section.
+#
+
+# No need to generate the scripts if there are no CONFIG_FILES.
+# This happens for instance when ./config.status config.h
+if test -n "\$CONFIG_FILES"; then
+ # Protect against being on the right side of a sed subst in config.status.
+ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
+ s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
+s,@SHELL@,$SHELL,;t t
+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
+s,@exec_prefix@,$exec_prefix,;t t
+s,@prefix@,$prefix,;t t
+s,@program_transform_name@,$program_transform_name,;t t
+s,@bindir@,$bindir,;t t
+s,@sbindir@,$sbindir,;t t
+s,@libexecdir@,$libexecdir,;t t
+s,@datadir@,$datadir,;t t
+s,@sysconfdir@,$sysconfdir,;t t
+s,@sharedstatedir@,$sharedstatedir,;t t
+s,@localstatedir@,$localstatedir,;t t
+s,@libdir@,$libdir,;t t
+s,@includedir@,$includedir,;t t
+s,@oldincludedir@,$oldincludedir,;t t
+s,@infodir@,$infodir,;t t
+s,@mandir@,$mandir,;t t
+s,@build_alias@,$build_alias,;t t
+s,@host_alias@,$host_alias,;t t
+s,@target_alias@,$target_alias,;t t
+s,@DEFS@,$DEFS,;t t
+s,@ECHO_C@,$ECHO_C,;t t
+s,@ECHO_N@,$ECHO_N,;t t
+s,@ECHO_T@,$ECHO_T,;t t
+s,@LIBS@,$LIBS,;t t
+s,@inststaticdir@,$inststaticdir,;t t
+s,@statedir@,$statedir,;t t
+s,@build@,$build,;t t
+s,@build_cpu@,$build_cpu,;t t
+s,@build_vendor@,$build_vendor,;t t
+s,@build_os@,$build_os,;t t
+s,@LN_S@,$LN_S,;t t
+s,@blddir@,$blddir,;t t
+s,@configuration@,$configuration,;t t
+s,@CC@,$CC,;t t
+s,@CFLAGS@,$CFLAGS,;t t
+s,@LDFLAGS@,$LDFLAGS,;t t
+s,@CPPFLAGS@,$CPPFLAGS,;t t
+s,@ac_ct_CC@,$ac_ct_CC,;t t
+s,@EXEEXT@,$EXEEXT,;t t
+s,@OBJEXT@,$OBJEXT,;t t
+s,@CPP@,$CPP,;t t
+s,@EGREP@,$EGREP,;t t
+s,@start_flags@,$start_flags,;t t
+s,@ld_switch_shared@,$ld_switch_shared,;t t
+s,@start_files@,$start_files,;t t
+s,@ld@,$ld,;t t
+s,@lib_gcc@,$lib_gcc,;t t
+s,@RANLIB@,$RANLIB,;t t
+s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
+s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
+s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
+s,@INSTALL_DATA@,$INSTALL_DATA,;t t
+s,@YACC@,$YACC,;t t
+s,@SET_MAKE@,$SET_MAKE,;t t
+s,@GTK_CONFIG@,$GTK_CONFIG,;t t
+s,@X_CFLAGS@,$X_CFLAGS,;t t
+s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
+s,@X_LIBS@,$X_LIBS,;t t
+s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
+s,@install_pp@,$install_pp,;t t
+s,@libs_xauth@,$libs_xauth,;t t
+s,@dnd_objs@,$dnd_objs,;t t
+s,@LIBSTDCPP@,$LIBSTDCPP,;t t
+s,@dll_ld@,$dll_ld,;t t
+s,@dll_cflags@,$dll_cflags,;t t
+s,@dll_ldflags@,$dll_ldflags,;t t
+s,@dll_post@,$dll_post,;t t
+s,@dll_ldo@,$dll_ldo,;t t
+s,@ld_dynamic_link_flags@,$ld_dynamic_link_flags,;t t
+s,@with_modules@,$with_modules,;t t
+s,@MOD_CC@,$MOD_CC,;t t
+s,@MODARCHDIR@,$MODARCHDIR,;t t
+s,@MAKE_DOCFILE@,$MAKE_DOCFILE,;t t
+s,@MODCFLAGS@,$MODCFLAGS,;t t
+s,@INSTALLPATH@,$INSTALLPATH,;t t
+s,@MOD_INSTALL_PROGRAM@,$MOD_INSTALL_PROGRAM,;t t
+s,@OBJECT_TO_BUILD@,$OBJECT_TO_BUILD,;t t
+s,@ldap_libs@,$ldap_libs,;t t
+s,@postgresql_libs@,$postgresql_libs,;t t
+s,@lwlib_objs@,$lwlib_objs,;t t
+s,@ALLOCA@,$ALLOCA,;t t
+s,@have_esd_config@,$have_esd_config,;t t
+s,@SRC_SUBDIR_DEPS@,$SRC_SUBDIR_DEPS,;t t
+s,@INSTALL_ARCH_DEP_SUBDIR@,$INSTALL_ARCH_DEP_SUBDIR,;t t
+s,@MAKE_SUBDIR@,$MAKE_SUBDIR,;t t
+s,@SUBDIR_MAKEFILES@,$SUBDIR_MAKEFILES,;t t
+s,@PROGNAME@,$PROGNAME,;t t
+s,@version@,$version,;t t
+s,@instvardir@,$instvardir,;t t
+s,@srcdir@,$srcdir,;t t
+s,@extra_includes@,$extra_includes,;t t
+s,@PREFIX_USER_DEFINED@,$PREFIX_USER_DEFINED,;t t
+s,@PREFIX@,$PREFIX,;t t
+s,@EXEC_PREFIX_USER_DEFINED@,$EXEC_PREFIX_USER_DEFINED,;t t
+s,@EXEC_PREFIX@,$EXEC_PREFIX,;t t
+s,@INFODIR_USER_DEFINED@,$INFODIR_USER_DEFINED,;t t
+s,@INFODIR@,$INFODIR,;t t
+s,@infopath@,$infopath,;t t
+s,@INFOPATH_USER_DEFINED@,$INFOPATH_USER_DEFINED,;t t
+s,@INFOPATH@,$INFOPATH,;t t
+s,@package_path@,$package_path,;t t
+s,@PACKAGE_PATH_USER_DEFINED@,$PACKAGE_PATH_USER_DEFINED,;t t
+s,@PACKAGE_PATH@,$PACKAGE_PATH,;t t
+s,@lispdir@,$lispdir,;t t
+s,@LISPDIR_USER_DEFINED@,$LISPDIR_USER_DEFINED,;t t
+s,@LISPDIR@,$LISPDIR,;t t
+s,@moduledir@,$moduledir,;t t
+s,@MODULEDIR_USER_DEFINED@,$MODULEDIR_USER_DEFINED,;t t
+s,@MODULEDIR@,$MODULEDIR,;t t
+s,@sitelispdir@,$sitelispdir,;t t
+s,@SITELISPDIR_USER_DEFINED@,$SITELISPDIR_USER_DEFINED,;t t
+s,@SITELISPDIR@,$SITELISPDIR,;t t
+s,@sitemoduledir@,$sitemoduledir,;t t
+s,@SITEMODULEDIR_USER_DEFINED@,$SITEMODULEDIR_USER_DEFINED,;t t
+s,@SITEMODULEDIR@,$SITEMODULEDIR,;t t
+s,@etcdir@,$etcdir,;t t
+s,@ETCDIR_USER_DEFINED@,$ETCDIR_USER_DEFINED,;t t
+s,@ETCDIR@,$ETCDIR,;t t
+s,@archlibdir@,$archlibdir,;t t
+s,@ARCHLIBDIR_USER_DEFINED@,$ARCHLIBDIR_USER_DEFINED,;t t
+s,@ARCHLIBDIR@,$ARCHLIBDIR,;t t
+s,@docdir@,$docdir,;t t
+s,@DOCDIR_USER_DEFINED@,$DOCDIR_USER_DEFINED,;t t
+s,@DOCDIR@,$DOCDIR,;t t
+s,@bitmapdir@,$bitmapdir,;t t
+s,@extra_objs@,$extra_objs,;t t
+s,@machfile@,$machfile,;t t
+s,@opsysfile@,$opsysfile,;t t
+s,@c_switch_general@,$c_switch_general,;t t
+s,@c_switch_window_system@,$c_switch_window_system,;t t
+s,@c_switch_all@,$c_switch_all,;t t
+s,@ld_switch_general@,$ld_switch_general,;t t
+s,@ld_switch_window_system@,$ld_switch_window_system,;t t
+s,@ld_switch_all@,$ld_switch_all,;t t
+s,@ld_libs_general@,$ld_libs_general,;t t
+s,@ld_libs_window_system@,$ld_libs_window_system,;t t
+s,@ld_libs_all@,$ld_libs_all,;t t
+s,@RECURSIVE_MAKE_ARGS@,$RECURSIVE_MAKE_ARGS,;t t
+s,@native_sound_lib@,$native_sound_lib,;t t
+s,@sound_cflags@,$sound_cflags,;t t
+s,@dynodump_arch@,$dynodump_arch,;t t
+s,@XEMACS_CC@,$XEMACS_CC,;t t
+s,@XE_CFLAGS@,$XE_CFLAGS,;t t
+s,@internal_makefile_list@,$internal_makefile_list,;t t
+s,@LIBOBJS@,$LIBOBJS,;t t
+s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF
-EOF
-cat >> $CONFIG_STATUS <<\EOF
+_ACEOF
-# Split the substitutions into bite-sized pieces for seds with
-# small command number limits, like on Digital OSF/1 and HP-UX.
-ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
-ac_file=1 # Number of current file.
-ac_beg=1 # First line for current file.
-ac_end=$ac_max_sed_cmds # Line after last line for current file.
-ac_more_lines=:
-ac_sed_cmds=""
-while $ac_more_lines; do
+ cat >>$CONFIG_STATUS <<\_ACEOF
+ # Split the substitutions into bite-sized pieces for seds with
+ # small command number limits, like on Digital OSF/1 and HP-UX.
+ ac_max_sed_lines=48
+ ac_sed_frag=1 # Number of current file.
+ ac_beg=1 # First line for current file.
+ ac_end=$ac_max_sed_lines # Line after last line for current file.
+ ac_more_lines=:
+ ac_sed_cmds=
+ while $ac_more_lines; do
if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
+ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
+ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
fi
- if test ! -s conftest.s$ac_file; then
+ if test ! -s $tmp/subs.frag; then
ac_more_lines=false
- rm -f conftest.s$ac_file
else
+ # The purpose of the label and of the branching condition is to
+ # speed up the sed processing (if there are no `@' at all, there
+ # is no need to browse any of the substitutions).
+ # These are the two extra sed commands mentioned above.
+ (echo ':t
+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag)
>$tmp/subs-$ac_sed_frag.sed
if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
+ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
+ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
fi
- ac_file=`expr $ac_file + 1`
+ ac_sed_frag=`expr $ac_sed_frag + 1`
ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
+ ac_end=`expr $ac_end + $ac_max_sed_lines`
fi
-done
-if test -z "$ac_sed_cmds"; then
+ done
+ if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
-fi
-EOF
-
-cat >> $CONFIG_STATUS <<EOF
+ fi
+fi # test -n "$CONFIG_FILES"
-CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
-EOF
-cat >> $CONFIG_STATUS <<\EOF
-for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
# Support "outfile[:infile[:infile...]]", defaulting
infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
+ case $ac_file in
+ - | *:- | *:-:* ) # input from stdin
+ cat >$tmp/stdin
+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ * ) ac_file_in=$ac_file.in ;;
+ esac
+
+ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ { if $as_mkdir_p; then
+ mkdir -p "$ac_dir"
+ else
+ as_dir="$ac_dir"
+ as_dirs=
+ while test ! -d "$as_dir"; do
+ as_dirs="$as_dir $as_dirs"
+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ done
+ test ! -n "$as_dirs" || mkdir $as_dirs
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory
\"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\""
>&2;}
+ { (exit 1); exit 1; }; }; }
+
+ ac_builddir=.
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
-
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test
"$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
+if test "$ac_dir" != .; then
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
# A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+ ac_dir_suffix= ac_top_builddir=
+fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix";
top_srcdir="$ac_given_srcdir" ;;
+case $srcdir in
+ .) # No --srcdir option. We are building in place.
+ ac_srcdir=.
+ if test -z "$ac_top_builddir"; then
+ ac_top_srcdir=.
+ else
+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+ fi ;;
+ [\\/]* | ?:[\\/]* ) # Absolute path.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir ;;
*) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+# Do not use `cd foo && pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir="$ac_dir";;
+*)
+ case "$ac_dir" in
+ .) ac_abs_builddir=`pwd`;;
+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+ *) ac_abs_builddir=`pwd`/"$ac_dir";;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+ case ${ac_top_builddir}. in
+ .) ac_abs_top_builddir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+ case $ac_srcdir in
+ .) ac_abs_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+ case $ac_top_srcdir in
+ .) ac_abs_top_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+ esac;;
+esac
+
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
esac
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ if test x"$ac_file" = x-; then
+ configure_input=
+ else
+ configure_input="$ac_file. "
+ fi
+ configure_input=$configure_input"Generated from `echo $ac_file_in |
+ sed 's,.*/,,'` by configure."
- echo creating "$ac_file"
+ # First look for the input files in the build tree, otherwise in the
+ # src tree.
+ ac_file_inputs=`IFS=:
+ for f in $ac_file_in; do
+ case $f in
+ -) echo $tmp/stdin ;;
+ [\\/$]*)
+ # Absolute (can't be DOS-style, as IFS=:)
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input
file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+ { (exit 1); exit 1; }; }
+ echo "$f";;
+ *) # Relative
+ if test -f "$f"; then
+ # Build tree
+ echo "$f"
+ elif test -f "$srcdir/$f"; then
+ # Source tree
+ echo "$srcdir/$f"
+ else
+ # /dev/null tree
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+ { (exit 1); exit 1; }; }
+ fi;;
+ esac
+ done` || { (exit 1); exit 1; }
+
+ if test x"$ac_file" != x-; then
+ { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed
's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\\
-# $configure_input" ;;
- *) ac_comsub= ;;
- esac
-
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e
"s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
-s%@configure_input@%$configure_input%g
-s%@srcdir@%$srcdir%g
-s%@top_srcdir@%$top_srcdir%g
-s%@INSTALL@%$INSTALL%g
-" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
-fi; done
-rm -f conftest.s*
+ fi
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+ sed "$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s,@configure_input@,$configure_input,;t t
+s,@srcdir@,$ac_srcdir,;t t
+s,@abs_srcdir@,$ac_abs_srcdir,;t t
+s,@top_srcdir@,$ac_top_srcdir,;t t
+s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
+s,@builddir@,$ac_builddir,;t t
+s,@abs_builddir@,$ac_abs_builddir,;t t
+s,@top_builddir@,$ac_top_builddir,;t t
+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
+s,@INSTALL@,$ac_INSTALL,;t t
+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
+ rm -f $tmp/stdin
+ if test x"$ac_file" != x-; then
+ mv $tmp/out $ac_file
+ else
+ cat $tmp/out
+ rm -f $tmp/out
+ fi
+
+done
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+#
+# CONFIG_HEADER section.
+#
+
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
-ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
-ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
-ac_dC='\3'
-ac_dD='%g'
-# ac_u turns "#undef NAME" with trailing blanks into "#define NAME
VALUE".
-ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
-ac_uB='\([ ]\)%\1#\2define\3'
+ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
+ac_dB='[ ].*$,\1#\2'
+ac_dC=' '
+ac_dD=',;t'
+# ac_u turns "#undef NAME" without trailing blanks into "#define NAME
VALUE".
+ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ac_uB='$,\1#\2define\3'
ac_uC=' '
-ac_uD='\4%g'
-# ac_e turns "#undef NAME" without trailing blanks into "#define NAME
VALUE".
-ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
-ac_eB='$%\1#\2define\3'
-ac_eC=' '
-ac_eD='%g'
+ac_uD=',;t'
-if test "${CONFIG_HEADERS+set}" != set; then
-EOF
-cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="src/config.h lwlib/config.h"
-EOF
-cat >> $CONFIG_STATUS <<\EOF
-fi
-for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: &&
continue
# Support "outfile[:infile[:infile...]]", defaulting
infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
-
- echo creating $ac_file
-
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e
"s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
-
-EOF
-
-# Transform confdefs.h into a sed script conftest.vals that substitutes
-# the proper values into config.h.in to produce config.h. And first:
-# Protect against being on the right side of a sed subst in config.status.
-# Protect against being in an unquoted here document in config.status.
-rm -f conftest.vals
-cat > conftest.hdr <<\EOF
-s/[\\&%]/\\&/g
-s%[\\$`]%\\&%g
-s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
-s%ac_d%ac_u%gp
-s%ac_u%ac_e%gp
-EOF
-sed -n -f conftest.hdr confdefs.h > conftest.vals
-rm -f conftest.hdr
+ case $ac_file in
+ - | *:- | *:-:* ) # input from stdin
+ cat >$tmp/stdin
+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ * ) ac_file_in=$ac_file.in ;;
+ esac
+
+ test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating
$ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+
+ # First look for the input files in the build tree, otherwise in the
+ # src tree.
+ ac_file_inputs=`IFS=:
+ for f in $ac_file_in; do
+ case $f in
+ -) echo $tmp/stdin ;;
+ [\\/$]*)
+ # Absolute (can't be DOS-style, as IFS=:)
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input
file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+ { (exit 1); exit 1; }; }
+ # Do quote $f, to prevent DOS paths from being IFS'd.
+ echo "$f";;
+ *) # Relative
+ if test -f "$f"; then
+ # Build tree
+ echo "$f"
+ elif test -f "$srcdir/$f"; then
+ # Source tree
+ echo "$srcdir/$f"
+ else
+ # /dev/null tree
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+ { (exit 1); exit 1; }; }
+ fi;;
+ esac
+ done` || { (exit 1); exit 1; }
+ # Remove the trailing spaces.
+ sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
+
+_ACEOF
+
+# Transform confdefs.h into two sed scripts, `conftest.defines' and
+# `conftest.undefs', that substitutes the proper values into
+# config.h.in to produce config.h. The first handles `#define'
+# templates, and the second `#undef' templates.
+# And first: Protect against being on the right side of a sed subst in
+# config.status. Protect against being in an unquoted here document
+# in config.status.
+rm -f conftest.defines conftest.undefs
+# Using a here document instead of a string reduces the quoting nightmare.
+# Putting comments in sed scripts is not portable.
+#
+# `end' is used to avoid that the second main sed command (meant for
+# 0-ary CPP macros) applies to n-ary macro definitions.
+# See the Autoconf documentation for `clear'.
+cat >confdef2sed.sed <<\_ACEOF
+s/[\\&,]/\\&/g
+s,[\\$`],\\&,g
+t clear
+: clear
+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[
]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
+t end
+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[
]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
+: end
+_ACEOF
+# If some macros were called several times there might be several times
+# the same #defines, which is useless. Nevertheless, we may not want to
+# sort them, since we want the *last* AC-DEFINE to be honored.
+uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
+sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
+rm -f confdef2sed.sed
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
-cat >> conftest.vals <<\EOF
-s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
-EOF
-
-# Break up conftest.vals because some shells have a limit on
-# the size of here documents, and old seds have small limits too.
-
+cat >>conftest.undefs <<\_ACEOF
+s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
+_ACEOF
+
+# Break up conftest.defines because some shells have a limit on the size
+# of here documents, and old seds have small limits too (100 cmds).
+echo ' # Handle all the #define templates only if necessary.'
>>$CONFIG_STATUS
+echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then'
>>$CONFIG_STATUS
+echo ' # If there are no defines, we may have an empty if/fi'
>>$CONFIG_STATUS
+echo ' :' >>$CONFIG_STATUS
+rm -f conftest.tail
+while grep . conftest.defines >/dev/null
+do
+ # Write a limited-size here document to $tmp/defines.sed.
+ echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
+ # Speed up: don't consider the non `#define' lines.
+ echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
+ # Work around the forget-to-reset-the-flag bug.
+ echo 't clr' >>$CONFIG_STATUS
+ echo ': clr' >>$CONFIG_STATUS
+ sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
+ echo 'CEOF
+ sed -f $tmp/defines.sed $tmp/in >$tmp/out
+ rm -f $tmp/in
+ mv $tmp/out $tmp/in
+' >>$CONFIG_STATUS
+ sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
+ rm -f conftest.defines
+ mv conftest.tail conftest.defines
+done
+rm -f conftest.defines
+echo ' fi # grep' >>$CONFIG_STATUS
+echo >>$CONFIG_STATUS
+
+# Break up conftest.undefs because some shells have a limit on the size
+# of here documents, and old seds have small limits too (100 cmds).
+echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
rm -f conftest.tail
-while :
+while grep . conftest.undefs >/dev/null
do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
+ # Write a limited-size here document to $tmp/undefs.sed.
+ echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
+ # Speed up: don't consider the non `#undef'
+ echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
+ # Work around the forget-to-reset-the-flag bug.
+ echo 't clr' >>$CONFIG_STATUS
+ echo ': clr' >>$CONFIG_STATUS
+ sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
-' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
-done
-rm -f conftest.vals
-
-cat >> $CONFIG_STATUS <<\EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" >
conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test
"$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
+ sed -f $tmp/undefs.sed $tmp/in >$tmp/out
+ rm -f $tmp/in
+ mv $tmp/out $tmp/in
+' >>$CONFIG_STATUS
+ sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
+ rm -f conftest.undefs
+ mv conftest.tail conftest.undefs
+done
+rm -f conftest.undefs
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ if test x"$ac_file" = x-; then
+ echo "/* Generated by configure. */" >$tmp/config.h
+ else
+ echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
fi
+ cat $tmp/in >>$tmp/config.h
+ rm -f $tmp/in
+ if test x"$ac_file" != x-; then
+ if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
+ { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
+echo "$as_me: $ac_file is unchanged" >&6;}
+ else
+ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ { if $as_mkdir_p; then
+ mkdir -p "$ac_dir"
+ else
+ as_dir="$ac_dir"
+ as_dirs=
+ while test ! -d "$as_dir"; do
+ as_dirs="$as_dir $as_dirs"
+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ done
+ test ! -n "$as_dirs" || mkdir $as_dirs
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory
\"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\""
>&2;}
+ { (exit 1); exit 1; }; }; }
+
rm -f $ac_file
- mv conftest.h $ac_file
+ mv $tmp/config.h $ac_file
+ fi
+ else
+ cat $tmp/config.h
+ rm -f $tmp/config.h
fi
-fi; done
+done
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
-EOF
-cat >> $CONFIG_STATUS <<EOF
-CPP="$CPP"
- top_srcdir="$srcdir"
- MAKE_SUBDIR="$MAKE_SUBDIR"
+#
+# CONFIG_COMMANDS section.
+#
+for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: &&
continue
+ ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
+ ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
+$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_dest" : 'X\(//\)[^/]' \| \
+ X"$ac_dest" : 'X\(//\)$' \| \
+ X"$ac_dest" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$ac_dest" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ { if $as_mkdir_p; then
+ mkdir -p "$ac_dir"
+ else
+ as_dir="$ac_dir"
+ as_dirs=
+ while test ! -d "$as_dir"; do
+ as_dirs="$as_dir $as_dirs"
+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ done
+ test ! -n "$as_dirs" || mkdir $as_dirs
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory
\"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\""
>&2;}
+ { (exit 1); exit 1; }; }; }
-EOF
-cat >> $CONFIG_STATUS <<\EOF
-for dir in . $MAKE_SUBDIR; do
- (
- cd $dir
+ ac_builddir=.
+if test "$ac_dir" != .; then
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+ # A "../" for each directory in $ac_dir_suffix.
+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+ ac_dir_suffix= ac_top_builddir=
+fi
+case $srcdir in
+ .) # No --srcdir option. We are building in place.
+ ac_srcdir=.
+ if test -z "$ac_top_builddir"; then
+ ac_top_srcdir=.
+ else
+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+ fi ;;
+ [\\/]* | ?:[\\/]* ) # Absolute path.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir ;;
+ *) # Relative path.
+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Do not use `cd foo && pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir="$ac_dir";;
+*)
+ case "$ac_dir" in
+ .) ac_abs_builddir=`pwd`;;
+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+ *) ac_abs_builddir=`pwd`/"$ac_dir";;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+ case ${ac_top_builddir}. in
+ .) ac_abs_top_builddir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+ case $ac_srcdir in
+ .) ac_abs_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+ esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+ case $ac_top_srcdir in
+ .) ac_abs_top_srcdir=$ac_abs_builddir;;
+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+ esac;;
+esac
+ { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
+echo "$as_me: executing $ac_dest commands" >&6;}
+ case $ac_dest in
+ default ) for dir in . $MAKE_SUBDIR; do
+ (
+ cd $dir
rm -f junk.c
< Makefile.in \
@@ -17630,29 +38513,29 @@
}' > junk.c;
echo creating $dir/Makefile
-$CPP -I. -I${top_srcdir}/src junk.c \
+$CPP -I. -I${srcdir}/src junk.c \
| sed -e 's/^\#.*//' \
- -e 's/^[ ][ ]*$//'\
+ -e 's/^[ TAB][ TAB]*$//'\
-e 's/^ / /' \
-e '/^[ ]*$/d' \
-e '/^\"/ {
s/\\\([\"]\)/\1/g
- s/^[ ]*\"//
- s/\"[ ]*$//
+ s/^[ TAB]*\"//
+ s/\"[ TAB]*$//
}' > Makefile.new
chmod 444 Makefile.new
mv -f Makefile.new Makefile
echo creating $dir/GNUmakefile
-$CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
+$CPP -I. -I${srcdir}/src -DUSE_GNU_MAKE junk.c \
| sed -e 's/^\#.*//' \
- -e 's/^[ ][ ]*$//'\
+ -e 's/^[ TAB][ TAB]*$//'\
-e 's/^ / /' \
-e '/^[ ]*$/d' \
-e '/^\"/ {
s/\\\([\"]\)/\1/g
- s/^[ ]*\"//
- s/\"[ ]*$//
+ s/^[ TAB]*\"//
+ s/\"[ TAB]*$//
}' > Makefile.new
chmod 444 Makefile.new
mv -f Makefile.new GNUmakefile
@@ -17661,15 +38544,15 @@
rm -f junk.c
cp xemacs.def.in junk.c
echo creating $dir/xemacs.def
-$CPP -I. -I${top_srcdir}/src junk.c \
+$CPP -I. -I${srcdir}/src junk.c \
| sed -e 's/^\#.*//' \
- -e 's/^[ ][ ]*$//'\
+ -e 's/^[ TAB][ TAB]*$//'\
-e 's/^ / /' \
-e '/^[ ]*$/d' \
-e '/^\"/ {
s/\\\([\"]\)/\1/g
- s/^[ ]*\"//
- s/\"[ ]*$//
+ s/^[ TAB]*\"//
+ s/\"[ TAB]*$//
}' > Makefile.new
chmod 444 Makefile.new
mv -f Makefile.new xemacs.def
@@ -17685,9 +38568,37 @@
-e 's/^\([^ ]*\) $/\1 ""/' \
-e 's/ 1$/ t/'
+ ;;
+ esac
+done
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
-exit 0
-EOF
+{ (exit 0); exit 0; }
+_ACEOF
chmod +x $CONFIG_STATUS
-rm -fr confdefs* $ac_clean_files
-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
+ac_clean_files=$ac_clean_files_save
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = yes &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || { (exit 1); exit 1; }
+fi
+
1.1.14.1 +5899 -4 XEmacs/xemacs/configure.ac
(In the diff below, changes in quantity of whitespace are not shown.)
Index: configure.ac
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.ac,v
retrieving revision 1.1
retrieving revision 1.1.14.1
diff -u -b -r1.1 -r1.1.14.1
--- configure.ac 2001/09/25 10:20:11 1.1
+++ configure.ac 2005/02/01 15:46:17 1.1.14.1
@@ -1,6 +1,5901 @@
-AC_FATAL([
+dnl XEmacs config script for autoconf 2.5.
+dnl -------------------------------------------------------------------------
+dnl Overrides of standard autoconf macros.
-#### Autoconf 2.5x is not yet supported by XEmacs.
-#### Our configure script is known *not* to work with these versions of
-#### Autoconf. Please continue using Autoconf 2.13 for now.
+# AC_LANG(C)
+# ----------
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+m4_define([AC_LANG(C)],
+[ac_ext=c
+xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system
$c_switch_x_site $X_CFLAGS'
+xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_x_site $ld_switch_run'
+xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS
$LIBS $libs_machine $libs_system $libs_standard'
+ac_cpp='$CPP '"$xe_cppflags"
+ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext
>&AS_MESSAGE_LOG_FD'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags
$xe_ldflags"' conftest.$ac_ext '"$xe_libs"'
>&AS_MESSAGE_LOG_FD'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
])
+
+dnl -------------------------------------------------------------------------
+dnl Autoconf startup.
+
+AC_PREREQ(2.59)dnl
+AC_INIT(src/lisp.h)dnl
+
+dnl -------------------------------------------------------------------------
+dnl Local copyright notices.
+
+AC_COPYRIGHT(
+[#### Configuration script for XEmacs. Largely divergent from FSF.
+#### Guess values for system-dependent variables and create Makefiles.
+#### Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+#### Copyright (C) 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#### Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+#### Copyright (C) 1993, 1994, 1995 Board of Trustees, University of Illinois.
+#### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
+#### Copyright (C) 1995, 1996, 2002, 2003, 2004 Ben Wing.
+#### Copyright (C) 2000, 2001 Martin Buchholz.
+#### Copyright (C) 1998, 1999 J. Kean Johnston.
+#### Copyright (C) 2005 Malcolm Purvis
+
+### Don't edit this script!
+### This script was automatically generated by the `autoconf' program
+### from the file `./configure.in'.
+### To rebuild it, execute the command
+### autoconf
+### in the this directory. You must have autoconf version 2.50 or later.
+### Note: this script has been tested only with autoconf version 2.5x.
+
+### This file is part of XEmacs.
+
+### XEmacs is free software; you can redistribute it and/or modify it
+### under the terms of the GNU General Public License as published by
+### the Free Software Foundation; either version 2, or (at your
+### option) any later version.
+
+### XEmacs is distributed in the hope that it will be useful, but
+### WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+### General Public License for more details.
+
+### You should have received a copy of the GNU General Public License
+### along with XEmacs; see the file COPYING. If not, write to the Free
+### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+### 02111-1307, USA.
+
+### For usage, run `./configure --help'
+### For more detailed information on building and installing XEmacs,
+### read the file `INSTALL'.
+###
+### If configure succeeds, it leaves its status in config.status.
+### A log of configuration tests can be found in config.log.
+### If configure fails after disturbing the status quo,
+### config.status is removed.
+])
+
+dnl -------------------------------------------------------------------------
+dnl Program name (sanitize $0)
+dnl Remove any more than one leading "." element from the path name.
+dnl config.status prepends another "./" at each use. This confuses
+dnl move-if-change.
+dnl
+dnl Unfortunately, some seds (Ultrix's) don't allow you to apply * to a
+dnl \( \) group. Bleah. Remove the level config.status adds, at least.
+dnl
+dnl If there's reason to prefer $0 over this, make sure you fix all the
+dnl uses in this script!!
+progname="`echo $0 | sed 's:^\./\./:\./:'`"
+
+dnl -------------------------------------------------------------------------
+dnl Local macros
+
+define([USAGE_ERROR],
+[(echo "$progname: Usage error:"
+echo " " $1
+echo " Use \`$progname --help' to show usage.") >&2 &&
exit 1])
+
+dnl PRINT_VAR(var var ...) prints values of shell variables
+define([PRINT_VAR],[for var in patsubst([$1],[[
+]+],[ ]); do eval "echo \"$var = '\$$var'\""; done])
+
+dnl XE_ADD_OBJS(foo.o ...)
+define([XE_ADD_OBJS],
+[extra_objs="$extra_objs [$1]" && dnl
+ if test "$extra_verbose" = "yes"; then
+ echo " xemacs will be linked with \"[$1]\""
+ fi])dnl XE_ADD_OBJS
+
+dnl XE_APPEND(value, varname)
+define([XE_APPEND],
+[[$2]="$[$2] [$1]" && dnl
+ if test "$extra_verbose" = "yes"; then echo " Appending
\"[$1]\" to \$[$2]"; fi])
+
+dnl XE_PREPEND(value, varname)
+define([XE_PREPEND],
+[[$2]="[$1] $[$2]" && dnl
+ if test "$extra_verbose" = "yes"; then echo " Prepending
\"[$1]\" to \$[$2]"; fi])
+
+dnl XE_DIE(message)
+define([XE_DIE], [{ echo "Error:" $1 >&2; exit 1; }])
+
+dnl XE_CHECK_FEATURE_DEPENDENCY(feature1, feature2)
+define([XE_CHECK_FEATURE_DEPENDENCY],
+[if test "$with_$1 $with_$2" = "yes no"; then
+ USAGE_ERROR("--with-$1 requires --with-$2")
+elif test "$with_$2" = "no" ; then with_$1=no
+elif test "$with_$1" = "yes"; then with_$2=yes
+fi
+])
+
+dnl XE_STRIP_4TH_COMPONENT(var)
+dnl Changes i986-pc-linux-gnu to i986-pc-linux, as God (not RMS) intended.
+define([XE_STRIP_4TH_COMPONENT],
+[$1=`echo "$$1" | sed
'[s/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/]'`])
+
+dnl Do our best to deal with automounter brokenness
+dnl CANONICALIZE_PATH(varname)
+define([CANONICALIZE_PATH],
+[if test -d "/net"; then
+ if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else
tdir="tmp_mnt"; fi
+ $1=`echo "[$]$1" | \
+ sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e
"s|^/amd/|/net/|"`
+fi])dnl
+
+dnl XE_PROTECT_LINKER_FLAGS(shell_var)
+define([XE_PROTECT_LINKER_FLAGS], [
+if test "$GCC" = "yes"; then
+ set x $[$1]; shift; [$1]=""
+ while test -n "[$]1"; do
+ case [$]1 in
+ -L | -l | -u ) [$1]="$[$1] [$]1 [$]2"; shift ;;
+ -L* | -l* | -u* | -Wl* | -pg ) [$1]="$[$1] [$]1" ;;
+ -Xlinker* ) ;;
+ * ) [$1]="$[$1] -Xlinker [$]1" ;;
+ esac
+ shift
+ done
+fi])dnl
+
+dnl Allow use of either ":" or spaces for lists of directories
+define(COLON_TO_SPACE,
+ [case "$[$1]" in *:* [)] [$1]="`echo '' $[$1] | sed -e
's/^ //' -e 's/:/ /g'`";; esac])dnl
+
+dnl XE_ADD_RUNPATH_DIR(directory)
+define([XE_ADD_RUNPATH_DIR],[{
+xe_runpath_dir=$1
+dnl PRINT_VAR(ld_switch_site ld_switch_x_site runpath xe_runpath_dir LD_RUN_PATH
xe_ldflags)
+ test "$xe_runpath_dir" != "/lib" -a \
+ "$xe_runpath_dir" != "/usr/lib" -a \
+ -n "`ls ${xe_runpath_dir}/*.s[[ol]] 2>/dev/null`" && \
+ eval "$xe_add_unique_runpath_dir"
+}])dnl
+
+dnl XE_COMPUTE_RUNPATH()
+define([XE_COMPUTE_RUNPATH],[
+if test "$add_runtime_path" = "yes" -a -n "$dash_r";
then
+ dnl Remove runtime paths from current ld switches
+ ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e
"s/$dash_r[[^ ]]*//g"`
+ ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e
"s/$dash_r[[^ ]]*//g"`
+ dnl PRINT_VAR(ld_switch_site ld_switch_x_site)
+
+ dnl Fix up Runtime path
+ dnl If LD_RUN_PATH is set in environment, use that.
+ dnl In this case, assume user has set the right value.
+ runpath="" runpath_dirs=""
+ if test -n "$LD_RUN_PATH"; then
+ runpath="$LD_RUN_PATH"
+ elif test "$GCC" = "yes"; then
+ dnl Compute runpath from gcc's -v output
+ ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ echo "int main(int argc, char *argv[[]]) {return 0;}" > conftest.c
+ xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS
'"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ case "$arg" in P,* | -L* | -R* )
+ for dir in `echo '' "$arg" | sed -e 's:^ ::' -e
's/^..//' -e 'y/:/ /'`; do
+ XE_ADD_RUNPATH_DIR("$dir")
+ done ;;
+ esac
+ done
+ ld_switch_run="$ld_switch_run_save"
+ rm -f conftest*
+ else
+ dnl Add all directories with .so files to runpath
+ for arg in $ld_switch_site $ld_switch_x_site; do
+ case "$arg" in -L*) XE_ADD_RUNPATH_DIR(`echo ''
"$arg" | sed -e 's:^ ::' -e 's/^-L//'`);; esac
+ done
+ dnl Sometimes /opt/SUNWdt/lib is the only installed Motif available
+ if test "$opsys $need_motif" = "sol2 yes"; then
+ xe_runpath_dir="/opt/SUNWdt/lib";
+ eval "$xe_add_unique_runpath_dir";
+ fi
+ fi dnl Compute $runpath
+
+ if test -n "$runpath"; then
+ ld_switch_run="${dash_r}${runpath}"
+ XE_PROTECT_LINKER_FLAGS(ld_switch_run)
+ test "$extra_verbose" = "yes" && echo "Setting
runpath to $runpath"
+ fi
+fi
+])dnl
+
+dnl The construct foo=`echo $w1 $w2 $w3` fails on some systems if $w1 = -e or -n
+dnl So we use the following instead.
+dnl XE_SPACE(var, words)
+define([XE_SPACE],[
+T=""
+for W in $2; do if test -z "$T"; then T="$W"; else T="$T
$W"; fi; done
+$1="$T"
+])dnl XE_SPACE
+
+dnl XEmacs complex option support
+dnl
+dnl A "complex option" is one that takes a number of related values.
+dnl For example, we might use "--with-xft=all,nomenubars" for compatibility
+dnl with XFontSet i18n of menubars. (Silly, Xft looks much better than XFS.)
+dnl Processing such an option requires a number of auxiliary variables.
+dnl Use the main variable name for a prefix, eg, "with_xft" for --with-xft.
+dnl Start by declaring it with XE_INIT_COMPLEX_OPTION (prefix), eg:
+dnl XE_INIT_COMPLEX_OPTION ([with_xft])
+dnl which also initializes auxiliary variables. For each possible value,
+dnl declare and intialize it with
+dnl XE_APPEND_COMPLEX_OPTION_DEFAULT (prefix, component, yesno), eg:
+dnl XE_APPEND_COMPLEX_OPTION_DEFAULT ([with_xft], [emacs], [yes])
+dnl This will create a variable named ${prefix}_${component}.
+dnl Next, use XE_PARSE_COMPLEX_OPTION(prefix, cmdline-option) in AC_ARG_WITH
+dnl to parse the value. After XE_PARSE_COMPLEX_OPTION is done, all the
+dnl component variables will have values. The variable $prefix will contain
+dnl the complex value assigned on the command line. Do any sanity-checking
+dnl now. Finally, use XE_CLEANUP_COMPLEX_OPTION(prefix) to clear out the
+dnl namespace of the auxiliary variables.
+dnl
+dnl Probably a preferable API would look like
+dnl
+dnl XE_INIT_COMPLEX_OPTION([--with-xft])
+dnl XE_APPEND_COMPLEX_OPTION_DEFAULT([--with-xft],[tabs],[yes])
+dnl XE_PARSE_COMPLEX_OPTION([--with-xft])
+dnl XE_CLEANUP_COMPLEX_OPTION([--with-xft])
+dnl
+dnl The reason for suggesting the command-line flag is that there is already
+dnl a facility for converting it to the variable name somewhere in autoconf.
+dnl
+dnl There are two possible uses in XEmacs for this kind of facility. One is
+dnl exemplified by sound: there are alternative protocols (native, ESD, NAS)
+dnl and each is supported by a corresponding library. The other is a single
+dnl library which may or may not be supported by multiple components of
+dnl XEmacs, as exemplified by Xft. This latter usage may be more common
+dnl during development of a feature. Perhaps specialized APIs should be
+dnl provided, see comment on XE_COMPLEX_OPTION_HELP_STRING below.
+
+dnl XE_INIT_COMPLEX_OPTION(prefix)
+define([XE_INIT_COMPLEX_OPTION],[[$1]_default="" [$1]_types=""])
+
+dnl XE_CLEANUP_COMPLEX_OPTION(prefix)
+define([XE_CLEANUP_COMPLEX_OPTION],
+[# cleanup
+unset [$1]_bogus [$1]_found [$1]_notfirst [$1]_types
+unset [$1]_default [$1]_all_default x y])
+
+dnl #### This doesn't read so well for alternative libraries like sound.
+dnl #### Fucking autocrap. AC_HELP_STRING does some weird internal shit,
+dnl so if you quote the second arg with [], you get really bizarre output
+dnl from ./configure --help. Multiple quotes make it worse, and it matters
+dnl whether you define AC_HELP_STRING into XE_COMPLEX_OPTION_HELP_STRING, or
+dnl define XE_COMPLEX_OPTION_HELP_STRING to just do the string substitution
+dnl and invoke it inside of AC_HELP_STRING in the call to AC_ARG_WITH. But
+dnl St. IGNUble himself won't be able to help you if you put a comma into the
+dnl second arg to AC_HELP_STRING without the quotes; autocrap will shit its
+dnl pants. Yet it does fine if arguments to XE_COMPLEX_OPTION_HELP_STRING
+dnl contain commas!
+dnl
+dnl XE_COMPLEX_OPTION_HELP_STRING(flag, long, short, components, libraries)
+define([XE_COMPLEX_OPTION_HELP_STRING],
+[AC_HELP_STRING([$1],Compile with support for [$2]. Components that can use
+[$3] are [$4]. Prefix component with `no' to disable its use of [$3]. Requires
+[$5] support. Default is [$6].)])
+
+dnl XE_APPEND_COMPLEX_OPTION_DEFAULT(prefix, component, yesno)
+define([XE_APPEND_COMPLEX_OPTION_DEFAULT],
+[[$1]_[$2]=[$3]
+test -n "${[$1]_default}" &&
[$1]_default="${[$1]_default},"
+test "${[$1]_[$2]}" != "yes" &&
[$1]_default="${[$1]_default}no"
+[$1]_default="${[$1]_default}[$2]"
+[$1]_notfirst=""
+test -n "${[$1]_types}" && [$1]_types="${[$1]_types} "
+[$1]_types="${[$1]_types}[$2]"])
+
+dnl XE_PARSE_COMPLEX_OPTION(prefix, cmdline-flag)
+define([XE_PARSE_COMPLEX_OPTION],
+[for x in `echo "$withval" | sed -e 's/,/ /g'` ; do
+ [$1]_all_default=""
+ [$1]_found=""
+ case "$x" in
+ n | no | non | none ) [$1]_all_default=no ;;
+ a | al | all | both ) [$1]_all_default=yes ;;
+ esac
+ if test -z "$[$1]_all_default"; then
+ for y in $[$1]_types; do
+ dnl echo "testing x='$x' against y='$y'"
+ if test "$x" = "$y"; then
+ dnl echo "$x" = "$y"
+ [$1]_found=yes
+ dnl echo eval `echo "[$1]_$y=yes"`
+ eval `echo "[$1]_$y=yes"`
+ elif test "$x" = "no$y"; then
+ dnl echo "$x" = "no$y"
+ [$1]_found=yes
+ dnl echo eval `echo "[$1]_$y=no"`
+ eval `echo "[$1]_$y=no"`
+ fi
+ done
+ test -z "[$1]_found" && [$1]_bogus=yes
+ fi
+ if test "$[$1]_bogus" = "yes" -o \
+ \( -n "$[$1]_all_default" -a -n "$[$1]_notfirst" \) ;
then
+ USAGE_ERROR(["Valid values for the \`[$2]' option are:
+$[$1]_types. With prefix \"no\", switch it off.
+Defaults may be overridden with \`all' or \`none' first in the list.
+Hardcoded default is: \`$[$1]_default'."])
+ elif test -n "$[$1]_all_default" ; then
+ for y in "$[$1]_types"; do
+ eval `echo "[$1]_$y="'$[$1]_all_default'`
+ done
+ fi
+ [$1]_notfirst=yes
+done
+])
+
+dnl -------------------------------------------------------------------------
+XE_APPEND(lib-src, MAKE_SUBDIR)
+XE_APPEND(lib-src, INSTALL_ARCH_DEP_SUBDIR)
+with_dragndrop_default="no"
+dnl -------------------------------------------------------------------------
+dnl Command line argument processing.
+dnl Note that AC_HELP_STRING compresses whitespace, wraps, and indents the
+dnl string to fit the --help display; there's no need to preformat.
+
+dnl Error-checking on old-style flags
+AC_ARG_WITH([mule],[],[XE_DIE([--enable-mule, NOT --with-mule])],[])
+
+AC_ARG_WITH([prefix],
+ AC_HELP_STRING([--with-prefix=no],[Don't compile the value of --prefix into the
executable.]),
+ [true], [with_prefix=yes])
+AC_ARG_WITH([site-lisp],
+ AC_HELP_STRING([--with-site-lisp=no],[Allow for a site-lisp directory in the XEmacs
hierarchy searched before the installation packages.]),
+ [true], [with_site_lisp=no])
+AC_ARG_WITH([site-modules],
+ AC_HELP_STRING([--with-site-modules],[Disable site-modules directory in the XEmacs
hierarchy, which is searched before the installation modules.]),
+ [], [])
+AC_ARG_WITH([gtk],
+ AC_HELP_STRING([--with-gtk],[Support GTK on the X Window System. (EXPERIMENTAL)]),
+ [true], [with_gtk=no])
+AC_ARG_WITH([gnome],
+ AC_HELP_STRING([--with-gnome],[Support GNOME on the X Window System.
(EXPERIMENTAL)]),
+ [true], [with_gnome=no])
+AC_ARG_WITH([msw],
+ AC_HELP_STRING([--with-msw],[Support MS Windows as a window system (only under Cygwin
and MinGW). `--with-msw=no' may be needed on *nix systems with Wine installed.]),
+ [], [])
+AC_ARG_WITH([gcc],
+ AC_HELP_STRING([--with-gcc],[Use GCC to compile XEmacs.]),
+ [], [])
+AC_ARG_WITH([dynamic],
+ AC_HELP_STRING([--with-dynamic],[Link dynamically if supported by system.
'No' forces static linking.]),
+ [], [])
+AC_ARG_WITH([ncurses],
+ AC_HELP_STRING([--with-ncurses],[Use the ncurses library for tty support.]),
+ [], [])
+AC_ARG_WITH([dnet],
+ AC_HELP_STRING([--with-dnet],[Compile with support for DECnet.]),
+ [], [])
+AC_ARG_WITH([socks],
+ AC_HELP_STRING([--with-socks],[Compile with support for SOCKS (an Internet proxy).]),
+ [], [])
+AC_ARG_WITH([dragndrop],
+ AC_HELP_STRING([--with-dragndrop],[Compile in the generic drag and drop API. This is
automatically added if one of the drag and drop
+ protocols is found (currently CDE, OffiX, MSWindows,
+ and GTK).
+ *WARNING* The Drag'n'drop support is under
development
+ and is considered experimental.]),
+ [], [])
+AC_ARG_WITH([cde],
+ AC_HELP_STRING([--with-cde],[Compile in support for CDE drag and drop.]),
+ [], [])
+AC_ARG_WITH([offix],
+ AC_HELP_STRING([--with-offix],[Compile in support for OffiX drag and drop.
+ *WARNING* If you compile in OffiX, you may not be
+ able to use multiple X displays success-
+ fully. If the two servers are from
+ different vendors, the results may be
+ unpredictable.]),
+ [], [])
+AC_ARG_WITH([gpm],
+ AC_HELP_STRING([--with-gpm],[Compile in GPM mouse support for ttys.]),
+ [], [])
+AC_ARG_WITH([xpm],
+ AC_HELP_STRING([--with-xpm],[Compile with support for XPM images. PRACTICALLY
+ REQUIRED. Although this library is nonstandard and
+ a real hassle to build, many basic things (e.g.
+ toolbars) depend on it, and you will run into
+ many problems without it.]),
+ [], [])
+AC_ARG_WITH([xface],
+ AC_HELP_STRING([--with-xface],[Compile with support for X-Face mail headers.
+ Requires the compface package.]),
+ [], [])
+AC_ARG_WITH([gif],
+ AC_HELP_STRING([--with-gif],[Compile without the (builtin) support for GIF images.]),
+ [], [])
+AC_ARG_WITH([jpeg],
+ AC_HELP_STRING([--with-jpeg],[Compile with support for JPEG images. Useful if
+ you are using a mail, news reader, or web browser
+ in XEmacs, so that JPEG images can be displayed.]),
+ [], [])
+AC_ARG_WITH([png],
+ AC_HELP_STRING([--with-png],[Compile with support for PNG images. Recommended
+ because the images on the About page are not viewable
+ without it.]),
+ [], [])
+AC_ARG_WITH([tiff],
+ AC_HELP_STRING([--with-tiff],[Compile with support for TIFF images. Possibly
+ useful, for the same reason as JPEG images.]),
+ [], [])
+
+# Xft uses an option complex similar to sound and database
+XE_INIT_COMPLEX_OPTION([with_xft])
+dnl if you change defaults, make sure to fix arg 6 of the OPTION_HELP macro.
+dnl these should really be enable_xft_*, but COMPLEX_OPTION support doesn't
+dnl grok that mixed with AC_ARG_WITH.
+XE_APPEND_COMPLEX_OPTION_DEFAULT([with_xft],[emacs],[yes])
+XE_APPEND_COMPLEX_OPTION_DEFAULT([with_xft],[menubars],[yes])
+XE_APPEND_COMPLEX_OPTION_DEFAULT([with_xft],[tabs],[yes])
+XE_APPEND_COMPLEX_OPTION_DEFAULT([with_xft],[gauges],[yes])
+dnl handle arguments
+AC_ARG_WITH([xft],
+ [XE_COMPLEX_OPTION_HELP_STRING([--with-xft],
+ [Xft client-side font rendering and anti-aliasing],
+ [Xft],
+ [`emacs' (buffers), `menubars', `tabs', and `gauges'],
+ [X11, Xft, Xrender, freetype, and fontconfig],
+ [`emacs,menubars,tabs,gauges'])],
+ [XE_PARSE_COMPLEX_OPTION([with_xft],[--with-xft])],
+ [])
+dnl sanity checking
+dnl #### Maybe we should XE_DIE here instead? Or fix the UI so that
+dnl emacs is always implicit? (I worry that --without-xft would be weird.)
+if test \( "$with_xft_menubars" = "yes" -o
"$with_xft_tabs" = "yes" \
+ -o "$with_xft_gauges" = "yes" \) -a
"$with_xft_emacs" = "no"; then
+ AC_MSG_WARN([Forcing --with-xft=emacs because Xft is enabled])
+ with_xft_emacs=yes
+fi
+XE_CLEANUP_COMPLEX_OPTION([with_xft])
+# end of Xft parsing
+AC_ARG_WITH([zlib],
+ AC_HELP_STRING([--with-zlib],[Support inflate (de)compression internally.]),
+ [], [])
+AC_ARG_WITH([wmcommand],
+ AC_HELP_STRING([--with-wmcommand],[Compile without realized leader window which will
+ keep the WM_COMMAND property.]),
+ [], [])
+AC_ARG_WITH([xmu],
+ AC_HELP_STRING([--with-xmu],[Use Xmu utilities. Default: yes.]),
+ [], [])
+AC_ARG_WITH([purify],
+ AC_HELP_STRING([--with-purify],[Support memory debugging using Purify.]),
+ [], [])
+AC_ARG_WITH([quantify],
+ AC_HELP_STRING([--with-quantify],[Support performance debugging using Quantify.]),
+ [], [])
+AC_ARG_ENABLE([toolbars],
+ AC_HELP_STRING([--with-toolbars],[Enable toolbar support. Default: yes.]),
+ [], [])
+AC_ARG_WITH([tty],
+ AC_HELP_STRING([--with-tty],[Enable TTY support. Default: yes.]),
+ [], [])
+AC_ARG_WITH([xfs],
+ AC_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized
+ menubar. Incompatible with `--with-xim=motif' and
`--with-xft'.
+ `--enable-menubars=lucid' (the default) is desirable.]),
+ [], [])
+AC_ARG_ENABLE([mule],
+ AC_HELP_STRING([--enable-mule],[Compile with Mule (MUlti-Lingual Emacs) support,
+ needed to support non-Latin-1 (including Asian)
+ languages.]),
+ [], [])
+AC_ARG_ENABLE([default-eol-detection],
+ AC_HELP_STRING([--enable-default-eol-detection],[Turns on by default auto-detection of
end-of-line type
+ when reading a file. Applies to those platforms where
+ auto-detection is off by default (non-Mule Unix). Has
+ no effect otherwise.]),
+ [], [])
+AC_ARG_WITH([canna],
+ AC_HELP_STRING([--with-canna],[Support the Canna Japanese input method. Requires
Mule.]),
+ [], [])
+AC_ARG_WITH([wnn],
+ AC_HELP_STRING([--with-wnn],[Support the Wnn Asian language input
+ method. Requires Mule.]),
+ [], [])
+AC_ARG_WITH([wnn6],
+ AC_HELP_STRING([--with-wnn6],[Support the Wnn6 Asian language input
+ method (proprietary). Requires Mule.]),
+ [], [])
+AC_ARG_WITH([workshop],
+ AC_HELP_STRING([--with-workshop],[Support the Sun WorkShop (formerly Sparcworks)
+ development environment.]),
+ [], [])
+AC_ARG_WITH([sparcworks],
+ AC_HELP_STRING([--with-sparcworks],[Alias for --with-workshop]),
+ [], [])
+AC_ARG_WITH([tooltalk],
+ AC_HELP_STRING([--with-tooltalk],[Support the ToolTalk IPC protocol.]),
+ [], [])
+AC_ARG_WITH([ldap],
+ AC_HELP_STRING([--with-ldap],[Support the LDAP protocol.]),
+ [], [])
+AC_ARG_WITH([postgresql],
+ AC_HELP_STRING([--with-postgresql],[Support the PostgreSQL RDBMS.]),
+ [], [])
+AC_ARG_WITH([pop],
+ AC_HELP_STRING([--with-pop],[Support POP for mail retrieval.]),
+ [], [])
+AC_ARG_WITH([kerberos],
+ AC_HELP_STRING([--with-kerberos],[Support Kerberos-authenticated POP.]),
+ [], [])
+AC_ARG_WITH([hesiod],
+ AC_HELP_STRING([--with-hesiod],[Support Hesiod to get the POP server host.]),
+ [], [])
+AC_ARG_WITH([infodock],
+ AC_HELP_STRING([--with-infodock],[Support the Infodock version of XEmacs. Infodock is
a SourceForge project).]),
+ [], [])
+AC_ARG_WITH([native-sound-lib],
+ AC_HELP_STRING([--with-native-sound-lib],[Path to sound library (for systems with name
conflicts).]),
+ [], [])
+AC_ARG_WITH([netinstall],
+ AC_HELP_STRING([--with-netinstall],[Support for installation over the internet.
+ Only functional on the MS Windows platforms.]),
+ [], [with_netinstall="no"])
+AC_ARG_WITH([ipv6-cname],
+ AC_HELP_STRING([--with-ipv6-cname],[Try IPv6 information first when canonicalizing
host names. This option has no effect unless system supports getaddrinfo(3) and
getnameinfo(3).]),
+ [], [with_ipv6_cname="no"])
+AC_ARG_WITH([site-includes],
+ AC_HELP_STRING([--with-site-includes],[Prepend to include search path.]),
+ [], [])
+AC_ARG_WITH([site-libraries],
+ AC_HELP_STRING([--with-site-libraries],[Prepend to library search path.]),
+ [], [])
+AC_ARG_WITH([site-prefixes],
+ AC_HELP_STRING([--with-site-prefixes],[Prepend to include and library search paths,
with /include and /lib added. Comes after site-includes and site-libraries, if any.]),
+ [], [])
+AC_ARG_WITH([statedir],
+ AC_HELP_STRING([--with-statedir],[]),
+ [], [with_statedir='${prefix}/lib'])
+AC_ARG_WITH([lispdir],
+ AC_HELP_STRING([--with-lispdir],[]),
+ [AC_DEFINE(LISPDIR_USER_DEFINED)],
[with_lispdir='${datadir}/${instvardir}/lisp'])
+AC_ARG_WITH([archlibdir],
+ AC_HELP_STRING([--with-archlibdir],[]),
+ [AC_DEFINE(ARCHLIBDIR_USER_DEFINED)],
[with_archlibdir='${libdir}/${instvardir}/${configuration}'])
+AC_ARG_WITH([moduledir],
+ AC_HELP_STRING([--with-moduledir],[]),
+ [AC_DEFINE(MODULEDIR_USER_DEFINED)],
[with_moduledir='${libdir}/${instvardir}/${configuration}/modules'])
+AC_ARG_WITH([etcdir],
+ AC_HELP_STRING([--with-etcdir],[]),
+ [AC_DEFINE(ETCDIR_USER_DEFINED)],
[with_etcdir='${datadir}/${instvardir}/etc'])
+AC_ARG_WITH([infopath],
+ AC_HELP_STRING([--with-infopath],[]),
+ [AC_DEFINE(INFOPATH_USER_DEFINED)], [])
+AC_ARG_WITH([docdir],
+ AC_HELP_STRING([--with-docdir],[]),
+ [AC_DEFINE(DOCDIR_USER_DEFINED)], [with_docdir='${archlibdir}'])
+AC_ARG_WITH([site-runtime-libraries],
+ AC_HELP_STRING([--with-site-runtime-libraries],[]),
+ [], [])
+AC_ARG_WITH([package-prefix],
+ AC_HELP_STRING([--with-package-prefix],[Specify packages root.]),
+ [AC_DEFINE(PACKAGE_PATH_USER_DEFINED)], [])
+AC_ARG_WITH([package-path],
+ AC_HELP_STRING([--with-package-path],[Search path for package hierarchies.]),
+ [AC_DEFINE(PACKAGE_PATH_USER_DEFINED)], [])
+AC_ARG_ENABLE([external-widget],
+ AC_HELP_STRING([--enable-external-widget],[Support XEmacs server for text widgets in
other applications.]),
+ [], [])
+AC_ARG_ENABLE([kkcc],
+ AC_HELP_STRING([--enable-kkcc],[Enable new GC algorithms.]),
+ [], [])
+AC_ARG_ENABLE([union-type],
+ AC_HELP_STRING([--enable-union-type],[Use union definition of Lisp_Object type. Known
to trigger bugs in some compilers.]),
+ [], [])
+AC_ARG_ENABLE([pdump],
+ AC_HELP_STRING([--enable-pdump],[Enable portable LISP preloader.]),
+ [], [])
+AC_ARG_ENABLE([debug],
+ AC_HELP_STRING([--enable-debug],[Enable additional debugging information. No time
cost.]),
+ [], [])
+AC_ARG_ENABLE([assertions],
+ AC_HELP_STRING([--enable-assertions],[]),
+ [], [])
+AC_ARG_ENABLE([memory-usage-stats],
+ AC_HELP_STRING([--enable-memory-usage-stats],[Enable LISP memory usage API.]),
+ [], [])
+AC_ARG_ENABLE([clash-detection],
+ AC_HELP_STRING([--enable-clash-detection],[Disable use of lock files to detect
multiple edits
+ of the same file.]),
+ [], [])
+AC_ARG_ENABLE([modules],
+ AC_HELP_STRING([--enable-modules],[Compile in experimental support for dynamically
+ loaded libraries (Dynamic Shared Objects).]),
+ [], [])
+AC_ARG_ENABLE([quick-build],
+ AC_HELP_STRING([--enable-quick-build],[Speed up the build cycle by leaving out steps
where
+ XEmacs will still work (more or less) without them.
+ Potentially dangerous if you don't know what you're
+ doing. This (1) doesn't garbage-collect after loading
+ each file during dumping, (2) doesn't
+ automatically rebuild the DOC file (remove it by hand
+ to get it rebuilt), (3) Removes config.h, lisp.h and
+ associated files from the dependency lists, so changes
+ to these files don't automatically cause all .c files
+ to be rebuilt.]),
+ [], [])
+
+AC_ARG_WITH([compiler],
+ AC_HELP_STRING([--with-compiler],[C compiler to use]),
+ [], [])
+
+AC_ARG_WITH([xemacs-compiler],
+ AC_HELP_STRING([--with-xemacs-compiler],[compiler to use to compile just the xemacs
executable and C modules.
+ If you want to compile XEmacs as C++, use e.g.
+ `--xemacs-compiler=g++'. This turns on a lot of
+ additional error-checking.]),
+ [], [])
+
+AC_ARG_WITH([cflags],
+ AC_HELP_STRING([--with-cflags],[Compiler flags (such as -O); setting this overrides
+ all default compiler flags except those that control
+ warnings.]),
+ [], [])
+
+AC_ARG_WITH([cflags-warning],
+ AC_HELP_STRING([--with-cflags-warning],[Override compiler flags used to control
warnings.
+ Normally, don't set this, as XEmacs already turns on
+ the maximum safe warning level.]),
+ [], [])
+
+AC_ARG_WITH([cpp],
+ AC_HELP_STRING([--with-cpp],[C preprocessor to use (e.g. /usr/ccs/lib/cpp or cc
-E)]),
+ [CPP="$with_cpp"], [])
+
+AC_ARG_WITH([cppflags],
+ AC_HELP_STRING([--with-cppflags],[C preprocessor flags (e.g. -I/foo or -Dfoo=bar)]),
+ [CPPFLAGS="$with_cppflags"], [])
+
+AC_ARG_WITH([libs],
+ AC_HELP_STRING([--with-libs],[Additional libraries (e.g. -lfoo)]),
+ [LIBS="$with_libs"], [])
+
+AC_ARG_WITH([ldflags],
+ AC_HELP_STRING([--with-ldflags],[Additional linker flags (e.g. -L/foo)]),
+ [LDFLAGS="$with_ldflags"], [])
+
+AC_ARG_WITH([rel-alloc],
+ AC_HELP_STRING([--with-rel-alloc],[Enable the relocating allocator.]),
+ [], [with_rel_alloc='default'])
+
+AC_ARG_WITH([dlmalloc],
+ AC_HELP_STRING([--with-dlmalloc],[Use Doug Lea's malloc implementation.]),
+ [], [with_dlmalloc='default'])
+
+AC_ARG_WITH([debug-malloc],
+ AC_HELP_STRING([--with-debug-malloc],[Use a debugging malloc.]),
+ [], [])
+
+AC_ARG_WITH([system-malloc],
+ AC_HELP_STRING([--with-system-malloc],[Use the system malloc, not the one distributed
with XEmacs.]),
+ [], [with_system_malloc='default'])
+
+#Enable code.
+
+AC_ARG_ENABLE([database],
+ AC_HELP_STRING([--enable-database],[Compile with database support. Valid types are
+ `no' or a comma-separated list of one or more
+ of `berkdb' and either `dbm' or `gnudbm'.]),
+ [
+with_database_berkdb=no
+with_database_dbm=no
+with_database_gdbm=no
+for x in `echo "$enable_database" | sed -e 's/,/ /g'` ; do
+ case "$x" in
+ no ) ;;
+ b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
+ d | db | dbm ) with_database_dbm=yes ;;
+ g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
+ * ) USAGE_ERROR(["The \`--$optname' option value
+must be either \`no' or a comma-separated list
+of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."]) ;;
+ esac
+done
+if test "$with_database_dbm" = "yes" -a
"$with_database_gdbm" = "yes"; then
+ USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified
+with the \`--$optname' option.")
+fi
+], [])
+
+AC_ARG_ENABLE([sound],
+ AC_HELP_STRING([--enable-sound],[Compile with sound support.
+ Valid types are `native', `nas' and `esd'.
+ Prefix a type with 'no' to disable.
+ The first type can be `none' or `all'. `none'
means
+ `nonative,nonas,noesd'. `all' means
`native,nas,esd'.
+ Later options override earlier ones for the same TYPE.
+ The default is to autodetect all sound support except
+ for ESD which defaults to off.]),
+ [
+dnl values is a subset of all,native,nas,esd
+dnl or their negatives: none,nonative,nonas,noesd
+for x in `echo "$enable_sound" | sed -e 's/,/ /g'` ; do
+ case "$x" in
+ dnl all and none are only permitted as the first in the list.
+ n | no | non | none ) new_sdefault=no ;;
+ a | al | all | both ) new_sdefault=yes ;;
+
+ native ) with_native_sound=yes ;;
+ nonative ) with_native_sound=no ;;
+
+ nas ) with_nas_sound=yes ;;
+ nonas ) with_nas_sound=no ;;
+
+ esd ) with_esd_sound=yes ;;
+ noesd ) with_esd_sound=no ;;
+
+ * ) bogus_sound=yes ;;
+ esac
+ if test "$bogus_sound" -o \
+ \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
+ types="\`all', \`none', \`(no)native', \`no(nas)',
\`(no)esd'."
+ USAGE_ERROR(["Valid types for the \`--$optname' option are:
+$types.
+Option \`all' or \`none' must be first in the list.
+The default is to autodetect native and NAS sound support."])
+ elif test -n "$new_sdefault" ; then
+ with_native_sound=$new_sdefault
+ with_nas_sound=$new_sdefault
+ with_esd_sound=$new_sdefault
+ new_sdefault= # reset this
+ fi
+ sound_notfirst=true
+done
+], [with_esd_sound=no])
+
+AC_ARG_WITH([athena],
+ AC_HELP_STRING([--with-athena],[Use TYPE Athena widgets (xaw, 3d, next, 95, or
xpm).]),
+[case "$with_athena" in
+ xa | xaw ) val=xaw ;;
+ 3 | 3d | xaw3d ) val=3d ;;
+ dnl No `n' for next, someone may try `no'
+ ne | nex | next | naxtaw) val=next ;;
+ dnl Have not tested the next two...
+ 9 | 95 | xaw95 ) val=95 ;;
+ xp | xpm | xawxpm ) val=xpm ;;
+ * ) USAGE_ERROR(["The \`--with-athena' option must have one of these values:
+ \`xaw', \`3d', \`next', \`95', or \`xpm'."]) ;;
+ esac
+dnl #### I don't think this needs to be an `eval'
+eval "with_athena=\"$val\""
+]
+)dnl
+
+AC_ARG_WITH([xim],
+ AC_HELP_STRING([--with-xim],[]),
+ [
+case "$with_xim" in
+ y | ye | yes ) val=yes ;;
+ n | no | non | none ) val=no ;;
+ x | xl | xli | xlib ) val=xlib ;;
+ m | mo | mot | moti | motif ) val=motif ;;
+ * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
+ \`motif', \`xlib', \`yes', or \`no'."]) ;;
+esac
+eval "with_xim=\"$val\""
+], [])
+
+AC_ARG_WITH([mail-locking],
+ AC_HELP_STRING([--with-mail-locking],[Specify the locking to be used by movemail to
prevent
+ concurrent updates of mail spool files. Valid types
+ are `lockf', `flock', `dot', `locking' or
`mmdf'.]),
+ [
+case "$with_mail_locking" in
+ lockf ) val=lockf ;;
+ flock ) val=flock ;;
+ file | dot ) val=file ;;
+ locking ) val=locking ;;
+ mmdf ) val=mmdf ;;
+ pop ) val=pop ;;
+ * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
+ \`lockf', \`flock', \`file', \`dot', \`locking', \`mmdf', or
\`pop'."]) ;;
+esac
+eval "with_mail_locking=\"$val\""
+], [])
+
+AC_ARG_ENABLE([bignum],
+ AC_HELP_STRING([--enable-bignum=TYPE],[Compile in support for bignums, ratios, or
bigfloats
+ using library support. TYPE must be one of "gmp"
+ (for GNU MP), "mp" (for BSD MP), or "no"
(disabled).]),
+ [
+case "$enable_bignum" in
+ gmp ) val=gmp ;;
+ mp ) val=mp ;;
+ no|non|none ) val=no ;;
+ * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
+\`gmp', \`mp', or \`no'."]) ;;
+esac
+eval "enable_bignum=\"$val\""
+], [enable_bignum="no"])
+
+AC_ARG_ENABLE([error-checking],
+ AC_HELP_STRING([--enable-error-checking],[Compile with internal error-checking added.
+ Causes noticeable loss of speed. Valid types
+ are extents, bufpos, malloc, gc, types, text, byte_code,
glyphs, display, structures.]),
+ [
+dnl value can be all, none, and/or a list of categories to check.
+dnl Example: --enable-error-checking=all,noextents,nocharbpos
+dnl Example: --enable-error-checking=none,malloc,gc
+
+for x in `echo "$enable_error_checking" | sed -e 's/,/ /g'` ; do
+ case "$x" in
+ dnl all and none are only permitted as the first in the list.
+ n | no | non | none ) new_default=no ;;
+ a | al | all ) new_default=yes ;;
+
+ extents ) error_check_extents=yes ;;
+ noextents ) error_check_extents=no ;;
+
+ types ) error_check_types=yes ;;
+ notypes ) error_check_types=no ;;
+
+ text ) error_check_text=yes ;;
+ notext ) error_check_text=no ;;
+
+ gc ) error_check_gc=yes ;;
+ nogc ) error_check_gc=no ;;
+
+ malloc ) error_check_malloc=yes ;;
+ nomalloc ) error_check_malloc=no ;;
+
+ byte_code ) error_check_byte_code=yes ;;
+ nobyte_code ) error_check_byte_code=no ;;
+
+ glyphs ) error_check_glyphs=yes ;;
+ noglyphs ) error_check_glyphs=no ;;
+
+ display ) error_check_display=yes ;;
+ nodisplay ) error_check_display=no ;;
+
+ structures ) error_check_structures=yes ;;
+ nostructures ) error_check_structures=no ;;
+
+ * ) bogus_error_check=yes ;;
+ esac
+
+ if test "$bogus_error_check" -o \
+ \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
+ if test "$error_check_default" = yes ; then
+ types="\`all' (default), \`none', \`noextents', \`notypes',
\`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code',
\`nodisplay', \`nostructures'."
+ else
+ types="\`all', \`none' (default), \`extents', \`types',
\`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display',
\`structures'."
+ fi
+ USAGE_ERROR(["Valid types for the \`--$optname' option are:
+$types."])
+ elif test -n "$new_default" ; then
+ error_check_extents=$new_default
+ error_check_types=$new_default
+ error_check_text=$new_default
+ error_check_gc=$new_default
+ error_check_malloc=$new_default
+ error_check_byte_code=$new_default
+ error_check_glyphs=$new_default
+ error_check_display=$new_default
+ error_check_structures=$new_default
+ new_default= # reset this
+ fi
+ echeck_notfirst=true
+ done
+], [])
+
+AC_ARG_ENABLE([menubars],
+ AC_HELP_STRING([--enable-menubars=TYPE],[Use TYPE menubars (lucid, motif, or no). The
Lucid
+ widgets emulate Motif (mostly) but are faster.
+ *WARNING* The Motif menubar is currently broken.
+ Lucid menubars are the default.]),
+ [
+case "$enable_menubars" in
+ l | lu | luc | luci | lucid ) val=lucid ;;
+ mo | mot | moti | motif ) val=motif ;;
+ a | at | ath | athe | athen | athena ) val=athena ;;
+ n | no | non | none ) val=no ;;
+ y | ye | yes ) val=yes ;;
+ g | gt | gtk ) val=gtk ;;
+ ms | msw ) val=msw ;;
+ * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
+ \`gtk', \`lucid', \`motif', \`athena', \`yes', or
\`no'."]) ;;
+esac
+eval "enable_menubars=\"$val\""
+], [])
+
+AC_ARG_ENABLE([scrollbars],
+ AC_HELP_STRING([--enable-scrollbars=TYPE],[Use TYPE scrollbars (lucid, motif, athena,
or no).
+ Lucid scrollbars are the default.]),
+ [
+case "$enable_scrollbars" in
+ l | lu | luc | luci | lucid ) val=lucid ;;
+ mo | mot | moti | motif ) val=motif ;;
+ a | at | ath | athe | athen | athena ) val=athena ;;
+ n | no | non | none ) val=no ;;
+ y | ye | yes ) val=yes ;;
+ g | gt | gtk ) val=gtk ;;
+ ms | msw ) val=msw ;;
+ * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
+ \`gtk', \`lucid', \`motif', \`athena', \`yes', or
\`no'."]) ;;
+esac
+eval "enable_scrollbars=\"$val\""
+], [])
+
+AC_ARG_ENABLE([dialogs],
+ AC_HELP_STRING([--enable-dialogs=TYPE],[Use TYPE dialog boxes (lucid, motif, athena,
or no).
+ There are no true Lucid dialogs; Motif dialogs will be
+ used if Motif can be found, else Athena is used.]),
+ [
+case "$enable_dialogs" in
+ l | lu | luc | luci | lucid ) val=lucid ;;
+ mo | mot | moti | motif ) val=motif ;;
+ a | at | ath | athe | athen | athena ) val=athena ;;
+ n | no | non | none ) val=no ;;
+ y | ye | yes ) val=yes ;;
+ g | gt | gtk ) val=gtk ;;
+ ms | msw ) val=msw ;;
+ * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
+ \`gtk', \`lucid', \`motif', \`athena', \`yes', or
\`no'."]) ;;
+esac
+eval "enable_dialogs=\"$val\""
+], [])
+
+AC_ARG_ENABLE([widgets],
+ AC_HELP_STRING([--enable-widgets],[Use TYPE native widgets (lucid, motif, athena, or
no).
+ Other widget types are currently unsupported.
+ There are no true Lucid widgets; Motif widgets will be
+ used if Motif can be found, else Athena is used.]),
+ [
+case "$enable_widgets" in
+ l | lu | luc | luci | lucid ) val=lucid ;;
+ mo | mot | moti | motif ) val=motif ;;
+ a | at | ath | athe | athen | athena ) val=athena ;;
+ n | no | non | none ) val=no ;;
+ y | ye | yes ) val=yes ;;
+ g | gt | gtk ) val=gtk ;;
+ ms | msw ) val=msw ;;
+ * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
+ \`gtk', \`lucid', \`motif', \`athena', \`yes', or
\`no'."]) ;;
+esac
+eval "enable_widgets=\"$val\""
+], [])
+
+dnl -------------------------------------------------------------------------
+dnl Final command line argument checks.
+
+dnl --with-quantify or --with-purify imply --with-system-malloc
+if test "$with_purify" = "yes" -o "$with_quantify" =
"yes"; then
+ test "$with_system_malloc" = "default" &&
with_system_malloc=yes
+fi
+
+dnl CDE requires tooltalk
+XE_CHECK_FEATURE_DEPENDENCY(cde, tooltalk)
+
+dnl XFS and Xft in menubars conflict
+if test "$with_xfs" = "yes" -a "$with_xft_menubars" =
"yes"; then
+ USAGE_ERROR("XFS and Xft in the menubars are incompatible!")
+fi
+
+dnl -------------------------------------------------------------------------
+dnl Local paths
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+if test "x$exec_prefix" = xNONE
+then
+ exec_prefix='${prefix}'
+else
+ AC_DEFINE(EXEC_PREFIX_USER_DEFINED)
+fi
+if test "x$datadir" != 'x${prefix}/share'
+then
+ AC_DEFINE(INFODIR_USER_DEFINED)
+ AC_DEFINE(LISPDIR_USER_DEFINED)
+ AC_DEFINE(MODULEDIR_USER_DEFINED)
+ AC_DEFINE(ETCDIR_USER_DEFINED)
+ AC_DEFINE(DOCDIR_USER_DEFINED)
+ AC_DEFINE(ARCHLIBDIR_USER_DEFINED)
+else
+ datadir='${prefix}/lib'
+fi
+if test "x$libdir" != 'x${exec_prefix}/lib'
+then
+ AC_DEFINE(ARCHLIBDIR_USER_DEFINED)
+fi
+if test "x$mandir" = 'x${prefix}/man'
+then
+ mandir='${prefix}/man/man1'
+fi
+if test "x$infodir" != 'x${prefix}/info'
+then
+ AC_DEFINE(INFODIR_USER_DEFINED)
+else
+ infodir='${datadir}/${instvardir}/info'
+fi
+
+with_sitelispdir='${datadir}/${inststaticdir}/site-lisp'
+inststaticdir='${PROGNAME}'
+instvardir='${PROGNAME}-${version}'
+sitemoduledir='${libdir}/${inststaticdir}/site-modules'
+
+AC_SUBST(inststaticdir)
+AC_SUBST(statedir,$with_statedir)
+
+dnl -------------------------------------------------------------------------
+AC_CONFIG_AUX_DIR_DEFAULT
+AC_CANONICAL_BUILD
+dnl -------------------------------------------------------------------------
+
+AC_PROG_LN_S
+
+dnl Make symlinks for etc, lisp, and info directories while the path
+dnl is still relative. We do not symlink lock because someone may
+dnl have stuck the source on a read-only partition. Instead we
+dnl create it as an actual directory later on if it does not already
+dnl exist.
+for dir in lisp etc man info tests; do
+ if test ! -d "$dir" ; then
+ echo Making symbolic link to "$srcdir/$dir"
+ ${LN_S} "$srcdir/$dir" "$dir"
+ fi
+done
+
+dnl Calculate canonical name for blddir (i.e. current directory).
+dnl PWD may already be the preferable absolute name for ".",
+dnl but we can't trust it - it is sometimes inaccurate.
+absolute_pwd="`pwd`";
+if test -n "$PWD" -a "`cd $PWD && pwd`" =
"$absolute_pwd"
+then blddir="$PWD"
+else blddir="$absolute_pwd"; CANONICALIZE_PATH(blddir)
+fi
+AC_SUBST(blddir)
+
+dnl Make srcdir absolute, if not already. It is important to
+dnl avoid running the path through pwd unnecessary, since pwd can
+dnl give you automounter prefixes, which can go away.
+case "$srcdir" in
+ /* ) ;;
+ . ) srcdir="$blddir" ;;
+ * ) srcdir="`cd $srcdir && pwd`"; CANONICALIZE_PATH(srcdir) ;;
+esac
+
+dnl Check if the source directory already has a configured system in it.
+if test `pwd` != `sh -c cd $srcdir && pwd` \
+ && test -f "$srcdir/src/config.h"; then
+ (echo "$progname: WARNING: The directory tree \`$srcdir' is being
used"
+ echo " as a build directory right now; it has been configured in its
own"
+ echo " right. To configure in another directory as well, you MUST"
+ echo " use GNU make. If you do not have GNU make, then you must"
+ echo " now do \`make distclean' in $srcdir,"
+ echo " and then run $progname again.") >&2
+ extrasub='/^VPATH[[ ]]*=/c\
+vpath %.c $(srcdir)\
+vpath %.h $(srcdir)\
+vpath %.y $(srcdir)\
+vpath %.l $(srcdir)\
+vpath %.s $(srcdir)\
+vpath %.in $(srcdir)'
+fi
+
+dnl ----------------------------------------
+dnl Find out which version of XEmacs this is
+dnl ----------------------------------------
+. "$srcdir/version.sh" || exit 1;
+dnl Must do the following first to determine verbosity for AC_DEFINE
+if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
+: "${extra_verbose=$beta}"
+version="${emacs_major_version}.${emacs_minor_version}"
+AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version)
+AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version)
+if test -n "$emacs_beta_version" ; then
+ if test "$beta" = "yes"; then
+ version="${version}-b${emacs_beta_version}"
+ AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version)
+ else
+ version="${version}.${emacs_beta_version}"
+ AC_DEFINE_UNQUOTED(EMACS_PATCH_LEVEL, $emacs_beta_version)
+ fi
+fi
+AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename")
+if test "$xemacs_extra_name" != ""; then
+ AC_DEFINE_UNQUOTED(XEMACS_EXTRA_NAME, "$xemacs_extra_name")
+fi
+AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version")
+
+if test "$with_infodock" = "yes"; then
+ if test ! -f ../../ID-INSTALL; then
+ echo "Cannot build InfoDock without InfoDock sources"
+ with_infodock=no
+ fi
+fi
+
+if test "$with_infodock" = "yes"; then
+ dnl InfoDock version numbers. XEmacs will use the same style of numbering
+ dnl after the release of XEmacs 21.0.
+ AC_DEFINE_UNQUOTED(INFODOCK_MAJOR_VERSION, $infodock_major_version)
+ AC_DEFINE_UNQUOTED(INFODOCK_MINOR_VERSION, $infodock_minor_version)
+ AC_DEFINE_UNQUOTED(INFODOCK_BUILD_VERSION, $infodock_build_version)
+
version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
+ PROGNAME=infodock
+ CPPFLAGS="$CPPFLAGS -DINFODOCK"
+else
+ PROGNAME=xemacs
+fi
+
+AC_DEFINE_UNQUOTED(EMACS_PROGNAME, "$PROGNAME")
+
+dnl ----------------------------------
+dnl Error checking and debugging flags
+dnl ----------------------------------
+dnl Error checking default to "yes" in beta versions, to "no" in
releases.
+dnl Same goes for --enable-debug and --extra-verbosity.
+if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
+test "${error_check_extents=$beta}" = yes &&
AC_DEFINE(ERROR_CHECK_EXTENTS)
+test "${error_check_types=$beta}" = yes &&
AC_DEFINE(ERROR_CHECK_TYPES)
+test "${error_check_text=$beta}" = yes &&
AC_DEFINE(ERROR_CHECK_TEXT)
+test "${error_check_gc=$beta}" = yes &&
AC_DEFINE(ERROR_CHECK_GC)
+test "${error_check_malloc=$beta}" = yes &&
AC_DEFINE(ERROR_CHECK_MALLOC)
+test "${error_check_byte_code=$beta}" = yes &&
AC_DEFINE(ERROR_CHECK_BYTE_CODE)
+test "${error_check_glyphs=$beta}" = yes &&
AC_DEFINE(ERROR_CHECK_GLYPHS)
+test "${error_check_display=$beta}" = yes &&
AC_DEFINE(ERROR_CHECK_DISPLAY)
+test "${error_check_structures=$beta}" = yes &&
AC_DEFINE(ERROR_CHECK_STRUCTURES)
+dnl enable_debug=yes must be set when error checking is present. This should be
+dnl fixed up.
+dnl enable_debug implies other options
+if test "${enable_debug:=$beta}" = "yes"; then
+ enable_assertions=yes
+ enable_memory_usage_stats=yes
+ AC_DEFINE(DEBUG_XEMACS)
+fi
+test "$enable_assertions" = "yes" &&
AC_DEFINE(USE_ASSERTIONS)
+test "$enable_memory_usage_stats" = "yes" &&
AC_DEFINE(MEMORY_USAGE_STATS)
+
+dnl ------------------------------
+dnl Determine the s&m files to use
+dnl ------------------------------
+dnl Given the configuration name, set machfile and opsysfile to the
+dnl names of the m/*.h and s/*.h files we should use.
+
+dnl Canonicalize the configuration name.
+XE_STRIP_4TH_COMPONENT(ac_cv_build_alias)
+XE_STRIP_4TH_COMPONENT(ac_cv_build)
+AC_SUBST(configuration, $ac_cv_build)
+
+dnl If you add support for a new configuration, add code to this
+dnl switch statement to recognize your configuration name and select
+dnl the appropriate operating system and machine description files.
+
+dnl You would hope that you could choose an m/*.h file pretty much
+dnl based on the machine portion of the configuration name, and an s-
+dnl file based on the operating system portion. However, it turns out
+dnl that each m/*.h file is pretty manufacturer-specific - for
+dnl example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
+dnl all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
+dnl machines. So we basically have to have a special case for each
+dnl configuration name.
+
+dnl As far as handling version numbers on operating systems is
+dnl concerned, make sure things will fail in a fixable way. If
+dnl /etc/MACHINES says nothing about version numbers, be
+dnl prepared to handle anything reasonably. If version numbers
+dnl matter, be sure /etc/MACHINES says something about it.
+
+dnl Eric Raymond says we should accept strings like "sysvr4" to mean
+dnl "System V Release 4"; he writes, "The old convention
encouraged"
+dnl "confusion between `system' and `release' levels'."
+
+machine='' opsys=''
+
+dnl Straightforward machine determination
+case "$ac_cv_build" in
+ sparc-*-* ) machine=sparc ;;
+ alpha*-*-* ) machine=alpha ;;
+ vax-*-* ) machine=vax ;;
+ mips-dec-* ) machine=pmax ;;
+ mips-sgi-irix6* ) machine=iris6d ;;
+ mips-sgi-* ) machine=iris4d ;;
+ mips*-linux ) machine=mips ;;
+ romp-ibm-* ) machine=ibmrt ;;
+ rs6000-ibm-aix* ) machine=ibmrs6000 ;;
+ powerpc-ibm-aix* ) machine=ibmrs6000 ;;
+ powerpc*-* ) machine=powerpc ;;
+ hppa-*-* ) machine=hp800 ;;
+ m88k-dg-* ) machine=aviion ;;
+ m68*-sony-* ) machine=news ;;
+ mips-sony-* ) machine=news-risc ;;
+ clipper-* ) machine=clipper ;;
+ arm* ) machine=arm ;;
+ ns32k-* ) machine=ns32000 ;;
+esac
+
+dnl Straightforward OS determination
+case "$ac_cv_build" in
+ *-*-linux* ) opsys=linux ;;
+ *-*-netbsd* ) opsys=netbsd ;;
+ *-*-openbsd* ) opsys=openbsd ;;
+ *-*-nextstep* ) opsys=nextstep ;;
+ *-*-vms ) opsys=vms ;;
+
+ dnl DEC OSF
+ *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
+ *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
+ *-dec-osf3.[[2-9]] ) opsys=decosf3-2 ;;
+ *-dec-osf3* ) opsys=decosf3-1 ;;
+ *-dec-osf[[4-9]]* ) opsys=decosf4-0 ;;
+
+ dnl DEC Ultrix
+ *-*-ultrix[[0-3]].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
+ *-*-ultrix4.[[12]]* ) opsys=bsd4-3 ;;
+ *-*-ultrix* ) opsys=ultrix4-3 ;;
+
+ dnl AIX
+ *-*-aix3.1* ) opsys=aix3-1 ;;
+ *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
+ *-*-aix3* ) opsys=aix3-2 ;;
+ *-*-aix4.0* ) opsys=aix4 ;;
+ *-*-aix4.1* ) opsys=aix4-1 ;;
+ *-*-aix[[4-9]]* ) opsys=aix4-2 ;;
+
+ dnl Other generic OSes
+ *-gnu* ) opsys=gnu ;;
+ *-*-bsd4.[[01]] ) opsys=bsd4-1 ;;
+ *-*-bsd4.2 ) opsys=bsd4-2 ;;
+ *-*-bsd4.3 ) opsys=bsd4-3 ;;
+ *-*-aos4.2 ) opsys=bsd4-2 ;;
+ *-*-aos* ) opsys=bsd4-3 ;;
+ *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
+ *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
+ *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
+ *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
+ *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
+ *-*-sysv4.[[2-9]]* | *-sysvr4.[[2-9]]* )
+ if test -z "$NON_GNU_CPP" ; then
+ for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
+ if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
+ done
+ fi
+ opsys=usg5-4-2 ;;
+ *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
+ *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
+esac
+
+case "$ac_cv_build" in
+
+ dnl NetBSD ports
+ *-*-netbsd* )
+ case "ac_cv_build" in
+ i[[3-9]]86-*-netbsd*) machine=intel386 ;;
+ hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* |
da30-*-netbsd* | m68k-*-netbsd* )
+ dnl Yes, this is somewhat bogus.
+ machine=hp9000s300 ;;
+ pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
+ pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
+ esac
+ ;;
+
+ dnl OpenBSD ports
+ *-*-openbsd* )
+ case "${ac_cv_build}" in
+ i386-*-openbsd*) machine=intel386 ;;
+ m68k-*-openbsd*) machine=hp9000s300 ;;
+ mipsel-*-openbsd*) machine=pmax ;;
+ esac
+ ;;
+
+ dnl Acorn RISCiX:
+ arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
+ arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
+
+ dnl Alliant machines
+ fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
+ i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
+
+ dnl Altos 3068
+ m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
+
+ dnl Amdahl UTS
+ 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
+
+ dnl Apollo, Domain/OS
+ m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
+
+ dnl AT&T 3b2, 3b5, 3b15, 3b20
+ we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
+
+ dnl AT&T 3b1 - The Mighty Unix PC!
+ m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
+
+ dnl Bull machines
+ rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
+ m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
+ m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
+
+ dnl CCI 5/32, 6/32 -- see "Tahoe".
+
+ dnl Celerity
+ celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
+
+ dnl Convex
+ *-convex-bsd* | *-convex-convexos* )
+ machine=convex opsys=bsd4-3
+ NON_GNU_CPP="cc -E -P"
+ ;;
+
+ dnl Cubix QBx/386
+ i[[3-9]]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
+
+ dnl Darwin, a.k.a. MacOS X (based on Mach and Freebsd)
+ *-*-darwin*)
+ opsys=darwin
+ ;;
+
+ dnl Data General AViiON Machines
+ i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
+ m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
+ m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
+ m88k-dg-dgux* ) opsys=dgux ;;
+
+ dnl Motorola Delta machines
+ m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
+ m88k-motorola-sysv4* )
+ dnl jbotte(a)bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k
mc88110
+ dnl needs POSIX_SIGNALS and therefore needs usg5-4-2.
+ dnl I hope there are not other 4.0 versions for this machine
+ dnl which really need usg5-4 instead.
+ machine=delta88k opsys=usg5-4-2
+ ;;
+ m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
+
+ dnl Dual machines
+ m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
+ m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
+
+ dnl Encore machines
+ ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
+
+ dnl Gould Power Node and NP1
+ pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
+ pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
+ np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
+
+ dnl Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
+ dnl as far as XEmacs is concerned).
+ m88k-harris-cxux* )
+ dnl Build needs to be different on 7.0 and later releases
+ case "`uname -r`" in
+ [[56]].[[0-9]] ) machine=nh4000 opsys=cxux ;;
+ [[7]].[[0-9]] ) machine=nh4000 opsys=cxux7 ;;
+ esac
+ NON_GNU_CPP="/lib/cpp"
+ ;;
+ dnl Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
+ m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
+ dnl Harris power pc NightHawk running Power UNIX (Series 6000)
+ powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E
-P" ;;
+
+ dnl Honeywell XPS100
+ xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
+
+ dnl HP 9000 series 200 or 300
+ m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
+
+ dnl HP-UX
+ *-hp-hpux* )
+ dnl Figure out machine and opsys orthogonally
+ case "$ac_cv_build" in
+ m68* ) machine=hp9000s300 ;;
+ hppa* ) machine=hp800 ;;
+ esac
+
+ case "$ac_cv_build" in
+ *-hp-hpux7* ) opsys=hpux ;;
+ *-hp-hpux8* ) opsys=hpux8 ;;
+ *-hp-hpux9* ) opsys=hpux9 ;;
+ *-hp-hpux10* ) opsys=hpux10 ;;
+ *-hp-hpux11* ) opsys=hpux11 ;;
+ * ) opsys=hpux ;;
+ esac
+
+ dnl HP has a broken "strcat"
+ case "$opsys" in hpux9 | hpux10 ) XE_ADD_OBJS(strcat.o) ;; esac
+
+ if test "$opsys" = "hpux10" -o "$opsys" =
"hpux11"; then \
+ ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
+ NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
+
+ case "$ac_cv_build" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;;
esac
+ ;;
+
+ dnl Orion machines
+ orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
+ clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
+
+ dnl IBM machines
+ i[[3-9]]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
+ i[[3-9]]86-ibm-aix1.[[23]]* | i[[3-9]]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3
;;
+ i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
+ romp-ibm-aos* ) opsys=bsd4-3 ;;
+ romp-ibm-bsd* ) opsys=bsd4-3 ;;
+ romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
+
+ dnl Integrated Solutions "Optimum V"
+ m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
+ m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
+
+ dnl Intel 386 machines where we do care about the manufacturer
+ i[[3-9]]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
+
+ dnl Prime EXL
+ i[[3-9]]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
+
+ dnl Sequent Symmetry running Dynix
+ i[[3-9]]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
+
+ dnl Sequent Symmetry running DYNIX/ptx
+ i[[3-9]]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx
NON_GNU_CPP="/lib/cpp" ;;
+
+ dnl Unspecified sysv on an ncr machine defaults to svr4.2.
+ dnl (Plain usg5-4 does not turn on POSIX signals, which we need.)
+ i[[3-9]]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
+
+ dnl Intel Paragon OSF/1
+ i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
+
+ dnl Intel 860
+ i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc"
NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
+
+ dnl Masscomp machines
+ m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
+
+ dnl Megatest machines
+ m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
+
+ dnl Workstations sold by MIPS
+ dnl This is not necessarily all workstations using the MIPS processor -
+ dnl Irises are produced by SGI, and DECstations by DEC.
+ mips-mips-usg* ) machine=mips4 ;;
+ mips-mips-riscos4 )
+ machine=mips4
+ NON_GNU_CC="cc -systype bsd43"
+ NON_GNU_CPP="cc -systype bsd43 -E"
+ case "$ac_cv_build" in
+ mips-mips-riscos4* ) opsys=bsd4-3 ;;
+ mips-mips-riscos5* ) opsys=riscos5 ;;
+ esac
+ ;;
+ mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
+ mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
+
+ dnl NeXT
+ m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
+
+ dnl The complete machine from National Semiconductor
+ ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
+
+ dnl NCR machines
+ m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
+ m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
+
+ dnl Nixdorf Targon 31
+ m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
+
+ dnl Nu (TI or LMI)
+ m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
+
+ dnl Plexus
+ m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
+
+ dnl Pyramid machines
+ pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
+
+ dnl Sequent Balance
+ ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
+ ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
+
+ dnl Siemens Nixdorf
+ mips-siemens-sysv* | mips-sni-sysv*)
+ machine=mips-siemens opsys=usg5-4
+ NON_GNU_CC=/usr/ccs/bin/cc
+ NON_GNU_CPP=/usr/ccs/lib/cpp
+ ;;
+
+ dnl NEC
+ mips-nec-sysv*)
+ machine=mips-nec
+ NON_GNU_CC=/usr/ccs/bin/cc
+ NON_GNU_CPP=/usr/ccs/lib/cpp
+ ;;
+
+ dnl Silicon Graphics machines
+ dnl Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
+ m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
+ m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
+ dnl Iris 4D
+ mips-sgi-irix3.* ) opsys=irix3-3 ;;
+ mips-sgi-irix4.* ) opsys=irix4-0 ;;
+ mips-sgi-irix6* ) opsys=irix6-0 ;;
+ mips-sgi-irix5.1* ) opsys=irix5-1 ;;
+ mips-sgi-irix5.2* ) opsys=irix5-2 ;;
+ mips-sgi-irix5.* ) opsys=irix5-3 ;;
+ mips-sgi-irix* ) opsys=irix5-0 ;;
+
+ dnl SONY machines
+ *-sony-newsos[[34]]* | *-sony-news[[34]]* ) opsys=bsd4-3 ;;
+ *-sony-news* ) opsys=newsos5 ;;
+
+ dnl Stride
+ m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
+
+ dnl Suns
+ *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
+ dnl Hardware type
+ case "$ac_cv_build" in
+ m68*-sunos1* ) machine=sun1 ;;
+ m68*-sunos2* ) machine=sun2 ;;
+ m68* ) machine=sun3 ;;
+ i*86*-sun-sunos[[34]]* ) machine=sun386 ;;
+ i*86-*-* ) machine=intel386 ;;
+ rs6000* ) machine=rs6000 ;;
+ esac
+
+ dnl Make $canonical even more so.
+ case "$ac_cv_build" in *-sunos5*)
+ ac_cv_build=`echo $ac_cv_build | sed -e s/sunos5/solaris2/`;;
+ esac
+
+ dnl On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
+ dnl On SunOS 5, use cc -E, need dynodump, RANLIB not needed
+ dnl But, SunOS 5.6 no longer needs dynodump because it has a similar
+ dnl function integrated.
+ case "$ac_cv_build" in
+ *-sunos4* )
+ #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
+ : ;;
+ *-solaris2* )
+ #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
+ RANLIB=':' ;;
+ esac
+
+ case "$ac_cv_build" in
+ *-solaris* )
+ opsys=sol2
+ os_release_major=`uname -r | sed -e
's/^\([[0-9]]\{1,\}\)\.\([[0-9]]\{1,\}\).*/\1/'`
+ os_release_minor=`uname -r | sed -e
's/^\([[0-9]]\{1,\}\)\.\([[0-9]]\{1,\}\).*/\2/'`
+ case "$os_release_minor" in [[0-9]])
+ os_release_minor="0${os_release_minor}";;
+ esac
+ os_release="${os_release_major}${os_release_minor}"
+ AC_DEFINE_UNQUOTED(OS_RELEASE, $os_release) ;;
+
+ dnl The last Sun386 ran 4.0.
+ i*86-*-sunos4* ) opsys=sunos4-0 ;;
+ *-sunos4.0* ) opsys=sunos4-0 ;;
+ *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
+ *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
+ *-sunos4.1.[[4-9]]* ) opsys=sunos4-1-4 ;;
+ *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
+ *-mach* ) opsys=mach-bsd4-3 ;;
+ * ) opsys=bsd4-2 ;;
+ esac
+
+ case "$ac_cv_build" in *-sunos4*shr* ) opsys="${opsys}-shr" ;;
esac
+
+ dnl Watch out for a compiler guaranteed not to work.
+ test "$opsys $CC" = "sol2 /usr/ucb/cc" &&
CC=""
+ ;;
+
+ dnl Tadpole 68k
+ m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
+
+ dnl Tahoe machines
+ tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
+ tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
+
+ dnl Tandem Integrity S2
+ mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
+
+ dnl Tektronix XD88
+ m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
+
+ dnl Tektronix 16000 box (6130?)
+ ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
+ dnl Tektronix 4300
+ dnl src/m/tek4300.h hints that this is a m68k machine.
+ m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
+
+ dnl Titan P2 or P3
+ titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
+
+ dnl Ustation E30 (SS5E)
+ m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
+
+ dnl Vaxen.
+ vax-dec-* )
+ case "$ac_cv_build" in
+ *-sysv[[01]]* | *-sysvr[[01]]* ) opsys=usg5-0 ;;
+ *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
+ *-mach* ) opsys=mach-bsd4-3 ;;
+ esac
+ ;;
+
+ dnl Whitechapel MG1
+ ns16k-whitechapel-* ) machine=mg1 ;;
+
+ dnl Wicat
+ m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
+
+ dnl Intel 386 machines where we do not care about the manufacturer
+ i[[3-9]]86-*-* )
+ machine=intel386
+ case "$ac_cv_build" in
+ *-isc1.* | *-isc2.[[01]]* ) opsys=386-ix ;;
+ *-isc2.2* ) opsys=isc2-2 ;;
+ *-isc4.0* ) opsys=isc4-0 ;;
+ *-isc4.* ) opsys=isc4-1
+ GCC_TEST_OPTIONS=-posix
+ NON_GCC_TEST_OPTIONS=-Xp
+ ;;
+ *-isc* ) opsys=isc3-0 ;;
+ *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
+ *-esix* ) opsys=esix ;;
+ *-mach* ) opsys=mach-bsd4-3 ;;
+ *-xenix* ) opsys=xenix ;;
+ *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
+ *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
+ *-bsdi4* ) opsys=bsdos4 ;;
+ *-bsdi3* ) opsys=bsdos3 ;;
+ *-bsdi2.1* ) opsys=bsdos2-1 ;;
+ *-bsdi2* ) opsys=bsdos2 ;;
+ *-sco3.2v5* ) opsys=sco5 ;;
+ *-sysv5* ) opsys=sco7 ;;
+ *-386bsd* ) opsys=386bsd ;;
+ *-freebsd* ) opsys=freebsd ;;
+ *-nextstep* ) opsys=nextstep ;;
+ *-pc-cygwin* ) opsys=cygwin32 ;;
+ *-pc-mingw* ) opsys=mingw32 ;
+ test -z "$with_tty" && with_tty="no";;
+ dnl Otherwise, we fall through to the generic opsys code at the bottom.
+ esac
+ ;;
+
+ dnl Linux/68k
+ m68k-*-linux* ) machine=m68k opsys=linux ;;
+
+esac
+
+dnl Initialize machine from $canonical if not in our database above.
+test -z "$machine" && machine=`echo $ac_cv_build | sed
's/-.*$//'`
+
+dnl Initialize opsys from `uname -s` if not in our database above.
+test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz`
+
+dnl Use configure-time autodetection if s&m not available
+if test -r "${srcdir}/src/m/${machine}.h"; then
+ machfile="m/${machine}.h"
+ AC_DEFINE_UNQUOTED(config_machfile, "$machfile")
+else
+ echo "XEmacs has no builtin knowledge of \`$machine' machines."
+ echo "Using configure-time autodetection only."
+fi
+
+if test -r "${srcdir}/src/s/${opsys}.h"; then
+ opsysfile="s/${opsys}.h"
+ AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile")
+else
+ echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
+ echo "Using configure-time autodetection only."
+fi
+
+
+dnl --------------------------------------------------------------
+dnl $opsys detection complete; defaults depending on $opsys follow
+dnl --------------------------------------------------------------
+
+if test -z "$enable_pdump"; then
+ case "$opsys" in
+ linux* ) enable_pdump=yes ;; dnl glibc 2.3.1 seems to hose unexec
+ darwin ) enable_pdump=yes ;; dnl No "native" working dumper
available
+ cygwin* ) enable_pdump=yes ;; dnl unexec is broken
+ * ) enable_pdump=no ;;
+ esac
+fi
+
+if test -z "$with_dynamic"; then
+ case "$opsys" in
+ hpux* | sunos4* ) with_dynamic=no ;;
+ *) with_dynamic=yes ;;
+ esac
+fi
+if test "$with_dynamic" = "yes"; then
+ case "$opsys" in
+ hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
+ decosf* ) ld_call_shared="-call_shared" ;;
+ darwin ) AC_DEFINE(DLSYM_NEEDS_UNDERSCORE) ;;
+ esac
+else dnl "$with_dynamic" = "no"
+ case "$opsys" in
+ sol2 )
+ echo "Static linking is not supported on Solaris 2."
+ echo "Rerun configure without specifying --without-dynamic."
+ exit 1 ;;
+ linux ) ld_call_shared="-Bstatic" ;;
+ decosf* ) ld_call_shared="-non_shared" ;;
+ esac
+fi
+
+dnl Tools configuration
+case "$opsys" in
+ aix* ) NON_GNU_CC=xlc ;; dnl Use xlc by default on AIX
+ darwin ) RANLIB="ranlib -c" ;; dnl Avoid link error in lwlib-config.c
+esac
+
+stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${ac_cv_build} | sed
'y/.-/__/'`
+AC_DEFINE_UNQUOTED(STACK_TRACE_EYE_CATCHER, $stack_trace_eye_catcher)
+
+dnl --------------------------------------------------
+dnl Determine the compiler, set up for feature testing
+dnl --------------------------------------------------
+
+dnl Sun Development environment support
+test "$with_sparcworks" = "yes" && with_workshop=yes #
compatibility alias
+XE_CHECK_FEATURE_DEPENDENCY(workshop, tooltalk)
+if test "$with_workshop" = "yes"; then
+ AC_DEFINE(SUNPRO)
+fi
+
+if test "$enable_clash_detection" != "no"; then
+ AC_DEFINE(CLASH_DETECTION)
+fi
+
+dnl Choose a compiler from (in order)
+dnl --compiler, env var CC, with_gcc=no && ${NON_GNU_CC:-cc}, AC_PROG_CC
+test -n "$with_compiler" && CC="$with_compiler"
+if test "$with_gcc" = "no"; then dnl Try to find a non-gcc
compiler
+ case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;;
esac
+fi
+
+dnl If we don't set CFLAGS here, AC_PROG_CC will set it.
+dnl But we know better what's good for us, so we do our own
+dnl computation of real CFLAGS later.
+dnl --with_cflags overrides environment variable CFLAGS
+test "${with_cflags-unset}" != unset &&
CFLAGS="$with_cflags"
+if test "${CFLAGS-unset}" != unset
+ then cflags_specified=yes;
+ else cflags_specified=no;
+fi
+
+if test "${with_cflags_warning-unset}" != unset
+ then cflags_warning_specified=yes;
+ else cflags_warning_specified=no;
+fi
+
+xe_save_CFLAGS="$CFLAGS"
+
+AC_AIX dnl Defines _ALL_SOURCE on AIX.
+
+AC_PROG_CC dnl Autoconf has its own magic for compiler autodetection
+
+dnl Retry using random guesswork if AC_PROG_CC got it wrong...
+if test "$with_gcc" = "no" -a "$GCC" =
"yes"; then
+ CC=${NON_GNU_CC-cc}
+ AC_PROG_CC
+elif test "$with_gcc" = "yes" -a "$GCC" !=
"yes" ; then
+ CC=gcc
+ AC_PROG_CC
+fi
+CFLAGS="$xe_save_CFLAGS"
+
+dnl Determine GCC version.
+if test "$GCC" = "yes"; then
+AC_RUN_IFELSE([AC_LANG_SOURCE([int main () {
+#if __GNUC__ >= 3
+return 11;
+#else
+return 0;
+#endif
+}])], [:],
+[case "$?" in
+ 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;;
+esac])
+fi
+
+dnl Support for using a different compiler for xemacs itself.
+dnl Useful for building XEmacs with a C++ compiler.
+dnl For example, `configure --compiler=gcc --xemacs-compiler=g++
+
+dnl The compiler used to build xemacs, as opposed to the compiler
+dnl used by configure and lib-src, is determined from the following
+dnl sources, in order of priority:
+dnl o --xemacs-compiler configure flag
+dnl o XEMACS_CC environment variable
+dnl o same as the regular compiler, (determined previously)
+
+dnl We don't do AC_PROG_CC for XEMACS_CC; if we can't trust these people....
+test -n "$with_xemacs_compiler" &&
XEMACS_CC="$with_xemacs_compiler"
+: ${XEMACS_CC:="$CC"}
+
+dnl Figure out what C preprocessor to use.
+
+dnl On Sun systems, people sometimes set up the variable CPP
+dnl with a value that is a directory, not an executable at all.
+dnl Detect that case, and ignore that value.
+test -n "$CPP" -a -d "$CPP" && CPP=
+
+test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z
"$CPP" && CPP="$NON_GNU_CPP"
+
+AC_PROG_CPP
+
+dnl --------------------------------------------------------------------
+dnl Compiler feature macros
+dnl --------------------------------------------------------------------
+
+dnl We want feature macros defined here *and* in config.h.in, so that
+dnl the compilation environment at configure time and compile time agree.
+
+AC_MSG_CHECKING(for GNU libc)
+AC_TRY_COMPILE([#include <features.h>],[
+#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
+#error Not a GNU libc system :-(
+******* ======= ******** &&&&&&&&
+#endif
+], have_glibc=yes, have_glibc=no)
+AC_MSG_RESULT($have_glibc)
+dnl I'm tired of pop being broken with GLIBC -slb
+dnl Well. then why not fix fucking pop?
+test "$have_glibc" = "yes" && AC_DEFINE(_GNU_SOURCE)
+
+dnl We'd like to use vendor extensions, where available.
+dnl We'd like to use functions from the latest Unix98 standards.
+dnl See
http://www.opengroup.org/onlinepubs/007908799/xsh/compilation.html
+case "$opsys" in
+ sol2)
+ AC_DEFINE(__EXTENSIONS__)
+ dnl Solaris 2 before 2.5 had some bugs with feature test macro interaction.
+ if test "$os_release" -ge 505; then
+ AC_DEFINE(_XOPEN_SOURCE,500)
+ AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
+ fi ;;
+ linux)
+ AC_DEFINE(_POSIX_C_SOURCE,199506L)
+ dnl #### should this be 600?
+ AC_DEFINE(_XOPEN_SOURCE,500)
+ AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
+ ;;
+ freebsd4*)
+ AC_DEFINE(_POSIX_C_SOURCE,199506L)
+ dnl #### Do we want these too? Apparently yes for _XOPEN_SOURCE=500.
+ AC_DEFINE(_XOPEN_SOURCE,500)
+ dnl AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
+ ;;
+esac
+
+dnl Identify compilers to enable compiler-specific hacks.
+dnl Add support for other compilers HERE!
+dnl GCC is already identified elsewhere.
+AC_RUN_IFELSE([AC_LANG_SOURCE([int main () {
+#if defined __SUNPRO_C
+return 11;
+#elif defined __DECC
+return 12;
+#elif defined __USLC__ && defined __SCO_VERSION__
+return 13;
+#elif defined __INTEL_COMPILER
+return 14;
+#else
+return 0;
+#endif
+}])], [],
+[case "$?" in
+ 11) echo "You appear to be using the SunPro C compiler." ; __SUNPRO_C=yes
;;
+ 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
+ 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
+ 14) echo "You appear to be using the Intel C++ compiler."; __ICC=yes
+ dnl Newer versions of icc claim to be GCC
+ GCC=no ;;
+esac])
+
+dnl --------------------------------------------------------------------
+dnl Extract some information from the operating system and machine files
+dnl --------------------------------------------------------------------
+
+echo "Extracting information from the machine- and system-dependent
headers..."
+
+dnl It is not important that this name contain the PID; you cannot run
+dnl two configures in the same directory and have anything work
+dnl anyway.
+tempcname="conftest.c"
+
+dnl CPP_to_sh(CPP_SYMBOL, SH_VAR, DEFAULT_VALUE)
+define([CPP_to_sh],
+[[#]ifndef [$1]
+[#]define [$1]ifelse([$3],,, [ "$3"])
+[#]endif
+configure___ [$2]=[$1]
+])dnl CPP_to_sh
+
+dnl CPP_boolean_to_sh(CPP_SYMBOL, SH_VAR)
+define([CPP_boolean_to_sh],
+[[#]ifdef [$1]
+configure___ [$2]=yes
+[#]else
+configure___ [$2]=no
+[#]endif
+])dnl CPP_boolean_to_sh
+
+cat > $tempcname < confdefs.h
+cat >> $tempcname <<EOF
+#define NOT_C_CODE
+#define C_SWITCH_SITE
+#define C_SWITCH_X_SITE
+#define LD_SWITCH_SITE
+#define LD_SWITCH_X_SITE
+#define LD_SWITCH_X_SITE_AUX
+#define OS_RELEASE $os_release
+
+#ifdef config_opsysfile
+#include "$srcdir/src/$opsysfile"
+#endif
+
+#ifdef config_machfile
+#include "$srcdir/src/$machfile"
+#endif
+
+CPP_to_sh(LIBS_MACHINE, libs_machine)
+CPP_to_sh(LIBS_SYSTEM, libs_system)
+CPP_to_sh(LIBS_TERMCAP, libs_termcap)
+CPP_to_sh(LIB_STANDARD, libs_standard)
+
+CPP_to_sh(OBJECTS_MACHINE, objects_machine)
+CPP_to_sh(OBJECTS_SYSTEM, objects_system)
+
+CPP_to_sh(C_SWITCH_MACHINE, c_switch_machine)
+CPP_to_sh(C_SWITCH_SYSTEM, c_switch_system)
+
+CPP_to_sh(LD_SWITCH_MACHINE, ld_switch_machine)
+CPP_to_sh(LD_SWITCH_SYSTEM, ld_switch_system)
+
+CPP_to_sh(UNEXEC, unexec)
+
+CPP_to_sh(SYSTEM_TYPE, system_type)
+
+CPP_to_sh(LD_SWITCH_SHARED, ld_switch_shared, -c)
+
+#define ORDINARY_LD "\$(CC) \$(CFLAGS)"
+configure___ ordinary_ld=ORDINARY_LD
+
+#ifdef ORDINARY_LINK
+#define LD ORDINARY_LD
+#else /* no ORDINARY LINK */
+#ifdef COFF_ENCAPSULATE
+#define LD "\$(CC) -nostdlib"
+#else /* not COFF_ENCAPSULATE */
+#ifdef LINKER
+#define LD LINKER
+#else /* ! defined (LINKER) */
+#define LD "ld"
+#endif /* ! defined (LINKER) */
+#endif /* ! defined (COFF_ENCAPSULATE) */
+#endif /* not ORDINARY_LINK */
+configure___ ld=LD
+
+CPP_to_sh(LIB_GCC, lib_gcc)
+CPP_to_sh(LD_TEXT_START_ADDR, ld_text_start_addr)
+
+#if ! defined (ORDINARY_LINK) && !defined (START_FILES)
+#ifdef NO_REMAP
+#ifdef COFF_ENCAPSULATE
+#define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
+#else /* ! defined (COFF_ENCAPSULATE) */
+#define START_FILES "pre-crt0.o /lib/crt0.o"
+#endif /* ! defined (COFF_ENCAPSULATE) */
+#else /* ! defined (NO_REMAP) */
+#define START_FILES "ecrt0.o"
+#endif /* ! defined (NO_REMAP) */
+#endif /* no ORDINARY_LINK */
+#ifndef START_FILES
+#define START_FILES
+#endif
+configure___ start_files=START_FILES
+
+CPP_boolean_to_sh(ORDINARY_LINK, ordinary_link)
+CPP_boolean_to_sh(SYSTEM_MALLOC, system_malloc)
+CPP_boolean_to_sh(TERMINFO, have_terminfo)
+dnl The MAIL_USE_xxx variables come from the s&m headers
+CPP_boolean_to_sh(MAIL_USE_FLOCK, mail_use_flock)
+CPP_boolean_to_sh(MAIL_USE_LOCKF, mail_use_lockf)
+CPP_boolean_to_sh(MAIL_USE_LOCKING, mail_use_locking)
+CPP_boolean_to_sh(HAVE_WIN32_PROCESSES, win32_processes)
+EOF
+
+dnl The value of CPP is a quoted variable reference, so we need to do this
+dnl to get its actual value...
+CPP=`eval "echo $CPP $CPPFLAGS"`
+define(TAB, [ ])dnl
+eval `$CPP -Isrc $tempcname \
+ | sed -n -e "s/[[ TAB]]*=[[ TAB\"]]*/='/" -e "s/[[
TAB\"]]*\$/'/" -e "s/^configure___//p"`
+
+rm $tempcname
+
+dnl s&m files shouldn't be required to define anything, or even to exist.
+dnl So we default SYSTEM_TYPE to the obvious documented standard, `uname -s`,
+dnl appropriately emacsulated.
+test -z "$system_type" && \
+ AC_DEFINE_UNQUOTED(SYSTEM_TYPE,"`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz`")
+
+dnl If the s&m files don't define a system-specific dumper, simply use pdump.
+dnl Sometime in the future, we'll remove all definitions of UNEXEC
+dnl from all the s&m files.
+test -z "$unexec" && enable_pdump=yes
+
+if test "$enable_pdump" = "yes"; then
+ ordinary_link="yes"
+ ld="${ordinary_ld}"
+ start_files=
+ libs_standard=
+ unexec=
+ lib_gcc=
+fi
+
+dnl For debugging...
+dnl test "$extra_verbose" = "yes" && \
+ PRINT_VAR(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) && echo ""
+
+dnl Pick up mingw include path
+dnl We only cope with headers in mingw, not mingw32: no previous version of
+dnl XEmacs supported mingw and cygnus have made this incompatible change
+dnl so we just go with the flow.
+case "$opsys" in mingw* | cygwin*)
+ cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
+ cygwin_include=`eval "dirname $cygwin_include"` ;
+ cygwin_include="-I$cygwin_include/../include" ;
+ extra_includes="$cygwin_include/mingw $cygwin_include" ;
+ case "$opsys" in mingw*)
+ XE_APPEND($extra_includes, c_switch_system) ;;
+ esac
+ ;;
+esac
+
+dnl Non-ordinary link usually requires -lc
+test "$ordinary_link" = "no" -a -z "$libs_standard"
&& libs_standard="-lc"
+
+dnl -----------------------
+dnl Compiler-specific hacks
+dnl -----------------------
+
+dnl DEC C `-std1' means ANSI C mode
+test "$__DECC" = "yes" && XE_APPEND(-std1, c_switch_site)
+
+dnl Some versions of SCO native compiler need -Kalloca
+if test "$__USLC__" = yes; then
+ AC_MSG_CHECKING(for whether the -Kalloca compiler flag is needed)
+ need_kalloca=no
+ AC_TRY_LINK([], [void *x = alloca(4);], [:], [
+ xe_save_c_switch_system="$c_switch_system"
+ c_switch_system="$c_switch_system -Kalloca"
+ AC_TRY_LINK([], [void *x = alloca(4);], [ need_kalloca=yes ])
+ c_switch_system="$xe_save_c_switch_system"])
+ AC_MSG_RESULT($need_kalloca)
+ test "$need_kalloca" = "yes" &&
XE_APPEND(-Kalloca,c_switch_system)
+fi
+
+dnl If we're specifying XEMACS_CC, it'd better be in the same family
+dnl as CC or the following flag calculations are bogus.
+dnl #### We may want to actually error and abort here, but I am not sure.
+if test "$CC" != "$XEMACS_CC"; then
+ if test "$XEMACS_CC" = "g++" -a "$GCC" !=
"yes"; then
+ AC_MSG_WARN([CC and g++ are mismatched; XE_CFLAGS may be wrong])
+ xemacs_cc_cc_mismatch=yes
+ elif test -n "$GCC" -a "$XEMACS_CC" != "g++"; then
+ AC_MSG_WARN([gcc and XEMACS_CC are mismatched; XE_CFLAGS may be wrong])
+ xemacs_cc_cc_mismatch=yes
+ dnl #### Add other detectable mismatches here.
+ else
+ xemacs_cc_cc_mismatch=no
+ fi
+fi
+
+dnl #### This may need to be overhauled so that all of XEMACS_CC's flags
+dnl are handled separately, not just the xe_cflags_warning stuff.
+
+AC_MSG_CHECKING([for preferred CFLAGS])
+
+dnl Use either command line flag, environment var, or autodetection
+if test "$cflags_specified" = "no"; then
+ dnl Following values of CFLAGS are known to work well.
+ dnl Should we take debugging options into consideration?
+ if test "$GCC" = "yes"; then
+ CFLAGS="-g -O3"
+ elif test "$__SUNPRO_C" = "yes"; then
+ case "$opsys" in
+ sol2 ) CFLAGS="-xO4" ;;
+ sunos4* ) CFLAGS="-xO2" ;;
+ esac
+ elif test "$__DECC" = "yes"; then
+ CFLAGS="-O3"
+ elif test "$CC" = "xlc"; then
+ CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
+ elif test "$__ICC" = "yes"; then
+ CFLAGS="-g -O3 -Ob2"
+ dnl ### Add optimal CFLAGS support for other compilers HERE!
+ else
+ CFLAGS="-O" ;dnl The only POSIX-approved flag
+ fi
+fi
+AC_MSG_RESULT([${CFLAGS}])
+
+dnl Calculate warning flags. We separate the flags for warnings from
+dnl the other flags because we want to force the warnings to be seen
+dnl by everyone who doesn't specifically override them.
+
+AC_MSG_CHECKING([for preferred warning flags for XEMACS_CC])
+
+dnl If this stays nil, it will be set to cflags_warning before use.
+xe_cflags_warning=""
+
+if test "$cflags_warning_specified" = "no"; then
+ dnl Following warning flags are known to work well.
+ if test "$__SUNPRO_C" = "yes"; then
+ case "$opsys" in
+ sol2 ) with_cflags_warning="-v" ;;
+ esac
+ elif test "$CC" = "xlc"; then
+ with_cflags_warning="-qinfo"
+ elif test "$GCC" = "yes"; then
+ with_cflags_warning="-Wall -Wno-switch -Wmissing-prototypes"
+ dnl This is not very useful, as it issues warnings that may appear
+ dnl or disappear rather randomly, cannot easily be fixed, and are
+ dnl not a big deal. If you want it, add it yourself.
+ dnl with_cflags_warning="$with_cflags_warning -Winline"
+
+ dnl Yuck, bad compares have been worth at least 3 crashes!
+ dnl Warnings about char subscripts are pretty pointless, though,
+ dnl and we use them in various places.
+ with_cflags_warning="$with_cflags_warning -Wsign-compare
-Wno-char-subscripts"
+ with_cflags_warning="$with_cflags_warning -Wundef -Wstrict-prototypes"
+ test "$__GCC3" = "yes" &&
with_cflags_warning="$with_cflags_warning -Wpacked"
+ dnl glibc is intentionally not `-Wpointer-arith'-clean.
+ dnl Ulrich Drepper has rejected patches to fix the glibc header files.
+ test "$have_glibc" != "yes" && \
+ with_cflags_warning="$with_cflags_warning -Wpointer-arith"
+ dnl Warning flags that may differ for gcc and g++ (xemacs_compiler)
+ dnl With g++, -Wshadow produces five zillion utterly random warnings --
+ dnl a local var named `buffer' conflicts with `struct buffer' for
+ dnl example. Even with gcc, -Wshadow is questionable because of its
+ dnl complaints about parameters with the same names as global functions.
+ dnl There is no -Wmissing-declarations under g++.
+ dnl But gcc warns about -Weffc++ in C compiles.
+ dnl With g++, there is no effective way to use -Wunused-parameter without
+ dnl some very ugly code changes.
+ if test "$with_xemacs_compiler" = "g++"; then
+ xe_cflags_warning="$with_cflags_warning -Weffc++"
+ elif test "$__GCC3" = "yes"; then
+ xe_cflags_warning="$with_cflags_warning -Wunused-parameter"
+ fi
+ with_cflags_warning="$with_cflags_warning -Wshadow
-Wmissing-declarations"
+ dnl **** If more gcc/g++ flags are added, from here on must handle
+ dnl **** with_cflags_warning and xe_cflags_warning in parallel
+ elif test "$__ICC" = "yes"; then
+ with_cflags_warning="-Wall -w1 -we147"
+ dnl ### Add optimal with_cflags_warning support for other compilers HERE!
+ fi
+fi
+test -z "$xe_cflags_warning" &&
xe_cflags_warning="$with_cflags_warning"
+AC_MSG_RESULT([${xe_cflags_warning}])
+
+AC_MSG_CHECKING([for preferred warning flags for CC])
+AC_MSG_RESULT([${with_cflags_warning}])
+
+dnl Now combine all C flags. Put the warning flags first so that
+dnl user-specified flags will override.
+dnl Do XE_CFLAGS before adding warning flags to CFLAGS.
+dnl Flags for XEMACS_CC:
+XE_CFLAGS="$xe_cflags_warning $CFLAGS"
+dnl Flags for CC:
+CFLAGS="$with_cflags_warning $CFLAGS"
+
+dnl Search for GCC specific build problems we know about
+if test "$GCC" = "yes"; then
+AC_MSG_CHECKING(for buggy gcc versions)
+GCC_VERSION=`$CC --version`
+case `uname -s`:`uname -m`:$GCC_VERSION in
+ dnl egcs 2.90.21 (egcs-1.00 release)
+ dnl egcs 2.90.29 (egcs-1.0.3 release)
+ *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
+ dnl Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures
+ dnl without also using `-fno-schedule-insns'.
+ case "$CFLAGS" in
+ *-O2*|*-O3*)
+ case "$CFLAGS" in
+ *-fno-schedule-insns*) ;;
+ *)
+ AC_MSG_RESULT(yes)
+ AC_MSG_WARN([Don't use -O2 with gcc 2.8.1 and egcs 1.0
under SPARC architectures])
+ AC_MSG_WARN([without also using -fno-schedule-insns.])
+ AC_MSG_ERROR([Aborting due to known problem])
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ dnl egcs-2.91.57 (egcs-1.1 release)
+ dnl egcs-2.91.66 (egcs-1.1.2 release)
+ Linux:alpha:egcs-2.91.*)
+ AC_MSG_RESULT(yes)
+ AC_MSG_WARN([There have been reports of egcs-1.1 not compiling XEmacs correctly
on])
+ AC_MSG_WARN([Alpha Linux. There have also been reports that egcs-1.0.3a is
O.K.])
+ AC_MSG_ERROR([Aborting due to known problem])
+ ;;
+ *:i*86*:2.7.2*)
+ case "$CFLAGS" in
+ *-O2*|*-O3*)
+ case "$GCC_VERSION" in
+ 2.7.2)
+ case "$CFLAGS" in
+ *-fno-strength-reduce*) ;;
+ *)
+ AC_MSG_RESULT(yes)
+ AC_MSG_WARN([Don't use -O2 with gcc 2.7.2 under
Intel/XXX without also using])
+ AC_MSG_WARN([-fno-strength-reduce.])
+ AC_MSG_ERROR([Aborting due to known problem])
+ ;;
+ esac
+ ;;
+ esac
+ case "$CFLAGS" in
+ *-fno-caller-saves*) ;;
+ *)
+ AC_MSG_RESULT(yes)
+ AC_MSG_WARN([Don't use -O2 with gcc 2.7.2 under Intel/XXX without also
using])
+ AC_MSG_WARN([-fno-caller-saves.])
+ AC_MSG_ERROR([Aborting due to known problem])
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+esac
+AC_MSG_RESULT(no)
+fi
+
+dnl GNU ld now defaults to combreloc, which screws up unexec, but not pdump.
+dnl Note that it's OK if the GNU style long option causes non-GNU ld to barf
+dnl a usage message, that's often good enough. Please report it, though.
+dnl #### Should make this Solaris-friendly.
+dnl Link with -z nocombreloc for now.
+if test "$enable_pdump" != "yes"; then
+ AC_MSG_CHECKING(for \"-z nocombreloc\" linker flag)
+ case "`ld --help 2>&1`" in
+ *-z\ nocombreloc* ) AC_MSG_RESULT(yes)
+ XE_PREPEND(-z nocombreloc, ld_switch_site) ;;
+ *) AC_MSG_RESULT(no) ;;
+ esac
+fi
+
+dnl Inform compiler that certain flags are meant for the linker
+XE_PROTECT_LINKER_FLAGS(ld_switch_system)
+XE_PROTECT_LINKER_FLAGS(ld_switch_machine)
+XE_PROTECT_LINKER_FLAGS(ld_switch_site)
+XE_PROTECT_LINKER_FLAGS(LDFLAGS)
+XE_PROTECT_LINKER_FLAGS(ld_call_shared)
+
+dnl Add s&m-determined objects (including unexec) to link line
+test -n "$objects_machine" && XE_ADD_OBJS($objects_machine)
+test -n "$objects_system" && XE_ADD_OBJS($objects_system)
+test -n "$unexec" && test ! "$enable_pdump" =
"yes" && XE_ADD_OBJS($unexec)
+test "$enable_pdump" = "yes" && XE_ADD_OBJS(dumper.o)
+
+dnl Dynodump (Solaris 2.x, x<6)
+AC_MSG_CHECKING(for dynodump)
+if test "$unexec" != "unexsol2.o"; then
+ AC_MSG_RESULT(no)
+else
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(DYNODUMP)
+ XE_APPEND(dynodump, MAKE_SUBDIR)
+ XE_APPEND(dynodump, SRC_SUBDIR_DEPS)
+ case "$machine" in
+ sparc ) dynodump_arch=sparc ;;
+ *86* ) dynodump_arch=i386 ;;
+ powerpc ) dynodump_arch=ppc ;;
+ esac
+ dnl Dynodump requires the system linker
+ test "$GCC" = "yes" && XE_APPEND(-fno-gnu-linker,
ld_switch_site)
+fi
+
+dnl Feed s&m crud to src/Makefile
+
+dnl Linux/powerpc needs the following magic for some reason
+dnl [Not needed with YellowDog 2.3 and causes link problems with YellowDog 3.0,
+dnl the two most popular PowerPC distributions.]
+dnl test "$machine$opsys" = "powerpclinux" &&
start_flags="-T $srcdir/src/ppc.ldscript"
+
+AC_LANG(C)
+if test "$unexec" = "unexaix.o"; then
+dnl AIX needs various hacks to make static linking work.
+ if test "$with_dynamic" = "no"; then
+ start_flags="-Wl,-bnso,-bnodelcsect"
+ test "$GCC" = "yes" && start_flags="-B/bin/
${start_flags}"
+ for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
+ if test -r "$f"; then start_flags="${start_flags},-bI:${f}";
fi
+ done
+ for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
+ if test -r "$f"; then start_flags="${start_flags},-bI:${f}";
break; fi
+ done
+ AC_CHECK_LIB([c], [terminateAndUnload], [XE_APPEND(-lC, libs_system)])
+ fi
+elif test -n "$ld_text_start_addr"; then
+ start_flags="-T $ld_text_start_addr -e __start"
+fi
+AC_SUBST(start_flags)
+
+AC_SUBST(ld_switch_shared)
+AC_SUBST(start_files)
+if test "$ordinary_link" = "no" -a "$GCC" =
"yes"; then
+ test -z "$linker" && linker='$(CC) -nostdlib'
+ test -z "$lib_gcc" && lib_gcc='`$(CC)
-print-libgcc-file-name`'
+fi
+test "$GCC" != "yes" && lib_gcc=
+AC_SUBST(ld)
+AC_SUBST(lib_gcc)
+
+dnl ---------------------------------------------------------------
+dnl Get version information for:
+dnl C compiler, libc
+dnl #### should do CC compiler, too, if different from XEMACS_CC
+dnl ---------------------------------------------------------------
+
+compiler_version=""
+gcc_compiler_specs=""
+libc_version=""
+
+AC_MSG_CHECKING([for compiler version information])
+
+dnl First try portable compilers, then crack system secrets
+dnl #### Is this code correct if $XEMACS_CC != $CC? XEMACS_CC hasn't been
+dnl run through the AC_PROG_CC mill.
+dnl Would anybody really build libsrc with GCC and XEmacs with non-GCC?
+if test "$GCC" = "yes"; then
+ compiler_version=`$XEMACS_CC --version | head -1`
+ gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([[^ ]]\)/\1/' |
head -1`
+else case "$XEMACS_CC" in
+ dnl The Intel cc compiler
+ ic*)
+ compiler_version=`icc -V 2>&1 | head -1`
+ ;;
+ dnl non-gcc machine-specific magic - contributions welcome
+ *) case "$ac_cv_build" in
+ *-*-aix* )
+ dnl Yes, it's this ugly for AIX...
+ realcc=`which $XEMACS_CC`
+ dnl Might be a symlink created by replaceCset command
+ if test -L $realcc ; then
+ ccdir=`dirname $realcc`
+ ccprog=`/bin/ls -l $realcc | sed 's/.* \([[^ ]]\)/\1/'`
+ dnl This doesn't handle ../../xlc type stuff, but I've not seen one...
+ case $ccprog in
+ */*) realcc=$ccprog;;
+ *) realcc=$ccdir/$ccprog;;
+ esac
+ fi
+ lpp=`lslpp -wqc $realcc | cut -f2 -d:`
+ if test ! -z "$lpp" ; then
+ lppstr=`lslpp -Lqc $lpp`
+ lpplev=`echo "$lppstr" | cut -f3 -d:`
+ lppdesc=`echo "$lppstr" | cut -f8 -d:`
+ fi
+ if test ! -z "$lpplev" ; then
+ compiler_version="$lpp $lpplev - $lppdesc"
+ fi
+ ;;
+
+ *-*-solaris*)
+ compiler_version=`$XEMACS_CC -V 2>&1 | head -1`
+ ;;
+
+ alpha*-dec-osf*)
+ compiler_version=`$XEMACS_CC -V | tr '\n' ' '`
+ ;;
+
+ mips-sgi-irix*)
+ compiler_version=`$XEMACS_CC -version`
+ ;;
+ esac
+ esac
+fi
+
+dnl Awww, shucks.
+if test -z "$compiler_version"; then
+ compiler_version="detection failed (please report this)"
+fi
+
+AC_MSG_CHECKING(for standard C library version information)
+
+case "$ac_cv_build" in
+ *-*-linux*)
+ dnl #### who would ever _not_ be running the distro's libc?
+ dnl Maybe it would be better to get/augment this info with ldd?
+ if test -f /etc/redhat-release ; then
+ libc_version=`rpm -q glibc`
+ elif test -f /etc/debian_version ; then
+ libc_version=`dpkg-query --showformat='${version}' --show libc6`
+ libc_version="GNU libc $libc_version (Debian)"
+ dnl need SuSE et al checks here...
+ fi
+ dnl #### Tested on Debian, does this actually work elsewhere? ;-)
+ if test -z "$libc_version"; then
+ libc_version=`ls /lib/libc-*.so | sed -e 's,/lib/libc-\(.*\)\.so,\1,'`
+ fi
+ ;;
+
+ *-*-aix*)
+ libc_version="bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
+ ;;
+
+ *-*-solaris*)
+ libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
+ libc_version="SUNWcsl $libc"
+
+ ;;
+
+ mips-sgi-irix*)
+ libc_version="IRIX libc `uname -sRm`"
+ ;;
+
+ alpha*-dec-osf*)
+ dnl Another ugly case
+ (cd /usr/.smdb.;
+ libc_version=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}'
| tr '\n' ','`
+ )
+ ;;
+esac
+
+dnl Awww, shucks.
+if test -z "libc_version"; then
+ libc_version="detection failed (please report this)"
+fi
+
+dnl ---------------------------------------------------------------
+dnl Add site and system specific flags to compile and link commands
+dnl ---------------------------------------------------------------
+
+dnl --with-site-libraries (multiple dirs)
+COLON_TO_SPACE(with_site_libraries)
+if test -n "$with_site_libraries"; then
+ for arg in $with_site_libraries; do
+ case "$arg" in
+ -* ) ;;
+ * ) test -d "$arg" || \
+ XE_DIE("Invalid site library \`$arg': no such directory")
+ arg="-L${arg}" ;;
+ esac
+ XE_APPEND($arg, ld_switch_site)
+ done
+fi
+
+dnl --with-site-includes (multiple dirs)
+COLON_TO_SPACE(with_site_includes)
+if test -n "$with_site_includes"; then
+ for arg in $with_site_includes; do
+ case "$arg" in
+ -* ) ;;
+ * ) test -d "$arg" || \
+ XE_DIE("Invalid site include \`$arg': no such directory")
+ arg="-I${arg}" ;;
+ esac
+ XE_APPEND($arg, c_switch_site)
+ done
+fi
+
+dnl --with-site-prefixes (multiple dirs)
+dnl --with-site-prefixes=dir1:dir2 is a convenient shorthand for
+dnl --with-site-libraries=dir1/lib:dir2/lib
--with-site-includes=dir1/include:dir2/include
+dnl Site prefixes take precedence over the standard places, but not over
+dnl with-site-includes and with-site-libraries.
+COLON_TO_SPACE(with_site_prefixes)
+if test -n "$with_site_prefixes"; then
+ for dir in $with_site_prefixes; do
+ lib_dir="${dir}/lib"
+ inc_dir="${dir}/include"
+ if test ! -d "$dir"; then
+ XE_DIE("Invalid site prefix \`$dir': no such directory")
+ elif test ! -d "$lib_dir"; then
+ XE_DIE("Invalid site prefix \`$dir': no such directory
\`$lib_dir'")
+ else
+ if test -d "$inc_dir"; then
+ XE_APPEND("-I$inc_dir", c_switch_site)
+ fi
+ XE_APPEND("-L$lib_dir", ld_switch_site)
+ fi
+ done
+fi
+
+dnl GNU software installs by default into /usr/local/{include,lib}
+dnl if test -d "/usr/local/include" -a -d "/usr/local/lib"; then
+dnl XE_APPEND("-L/usr/local/lib", ld_switch_site)
+dnl XE_APPEND("-I/usr/local/include", c_switch_site)
+dnl fi
+
+dnl Extra system-specific library directories - please add to list
+for dir in "/usr/ccs/lib"; do
+ test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system)
+done
+
+dnl --with-site-runtime-libraries (multiple dirs)
+COLON_TO_SPACE(with_site_runtime_libraries)
+if test -n "$with_site_runtime_libraries"; then
+ LD_RUN_PATH="`echo $with_site_runtime_libraries | sed -e 's/
*/:/g'`"
+ export LD_RUN_PATH
+fi
+
+dnl Linux systems have dynamic runtime library directories listed in
+dnl /etc/ld.so.conf. Since those are used at run time, it seems pretty
+dnl safe to use them at link time, and less controversial than forcing
+dnl the run-time to use the link-time libraries. This also helps avoid
+dnl mismatches between the link-time and run-time libraries.
+
+dnl #### Unfortunately, there are horrible libc4 and libc5 libraries
+dnl listed in /etc/ld.so.conf on some systems, and including them on
+dnl the link path leads to linking in utterly broken libc's.
+dnl There are many clever ways of approaching this problem,
+dnl but finding one that actually works...
+
+dnl if test -z "$LD_RUN_PATH" -a -r "/etc/ld.so.conf"; then
+dnl for dir in `cat /etc/ld.so.conf`; do
+dnl test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system)
+dnl done
+dnl add_runtime_path=no
+dnl fi
+
+dnl -------------------------------------
+dnl Compute runtime library path
+dnl -------------------------------------
+
+if test -n "$add_runtime_path"; then :;
+elif test "$with_dynamic" = "no"; then add_runtime_path=no
+elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
+else case "$opsys" in
+ sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
+ * ) add_runtime_path=no ;;
+ esac
+fi
+
+if test "$add_runtime_path" = "yes"; then
+ dnl Try to autodetect runtime library flag (usually -R),
+ dnl and whether it works (or at least does no harm)
+ AC_MSG_CHECKING("for runtime libraries flag")
+ case "$opsys" in
+ sol2 ) dash_r="-R" ;;
+ decosf* | linux* | irix*) dash_r="-rpath " ;;
+ *)
+ dash_r=""
+ for try_dash_r in "-R" "-R " "-rpath "; do
+ xe_check_libs="${try_dash_r}/no/such/file-or-directory"
+ XE_PROTECT_LINKER_FLAGS(xe_check_libs)
+ AC_TRY_LINK(, , dash_r="$try_dash_r")
+ xe_check_libs=""
+ test -n "$dash_r" && break
+ done ;;
+ esac
+ if test -n "$dash_r";
+ then AC_MSG_RESULT("\"${dash_r}\"")
+ else AC_MSG_RESULT(NONE)
+ fi
+fi
+
+xe_add_unique_runpath_dir='
+ xe_add_p=yes
+ for xe_dir in $runpath_dirs; do dnl Uniquify
+ test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
+ done
+ if test "$xe_add_p" = "yes"; then
+ test -n "$runpath" && runpath="${runpath}:"
+ runpath="${runpath}${xe_runpath_dir}"
+ runpath_dirs="$runpath_dirs $xe_runpath_dir"
+ fi'
+
+XE_COMPUTE_RUNPATH()
+
+dnl -----------------------------------
+dnl Do some misc autoconf-special tests
+dnl -----------------------------------
+
+dnl Do the opsystem or machine files prohibit the use of the GNU malloc?
+dnl Assume not, until told otherwise.
+GNU_MALLOC=yes
+if test "$with_dlmalloc" != "no"; then
+ doug_lea_malloc=yes
+else
+ doug_lea_malloc=no
+fi
+after_morecore_hook_exists=yes
+AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no)
+AC_MSG_CHECKING(whether __after_morecore_hook exists)
+AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0],
+ [AC_MSG_RESULT(yes)],
+ [AC_MSG_RESULT(no)
+ after_morecore_hook_exists=no])
+if test "$system_malloc" = "yes" ; then
+ GNU_MALLOC=no
+ GNU_MALLOC_reason="
+ - The GNU allocators don't work with this system configuration."
+elif test "$with_system_malloc" = "yes" ; then
+ GNU_MALLOC=no
+ GNU_MALLOC_reason="
+ - User chose not to use GNU allocators."
+elif test "$with_debug_malloc" = "yes" ; then
+ GNU_MALLOC=no
+ GNU_MALLOC_reason="
+ - User chose to use Debugging Malloc."
+fi
+
+if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" =
"yes" ; then
+ GNU_MALLOC_reason="
+ - Using Doug Lea's new malloc from the GNU C Library."
+ AC_DEFINE(DOUG_LEA_MALLOC)
+ if test "$after_morecore_hook_exists" = "no" ; then
+ GNU_MALLOC_reason="
+ - Using Doug Lea's new malloc from the Linux C Library."
+ AC_DEFINE(_NO_MALLOC_WARNING_)
+ fi
+fi
+
+dnl #### mcheck is broken in all versions of Linux libc and glibc.
+dnl Try this again when 2.1 hits the streets.
+dnl Avoid using free-hook.c if support exists for malloc debugging in libc
+dnl have_libmcheck=no
+dnl if test "$error_check_malloc" = "yes" -a \
+dnl "$have_glibc" = "yes" -a \
+dnl "$doug_lea_malloc" = "yes"; then
+dnl AC_CHECK_HEADERS(mcheck.h)
+dnl AC_CHECK_LIB(mcheck, mcheck, have_libmcheck=yes, have_libmcheck=no)
+dnl fi
+
+dnl if test "$have_libmcheck" = "yes"; then
+dnl AC_DEFINE(HAVE_LIBMCHECK)
+dnl libmcheck=-lmcheck
+dnl AC_SUBST(libmcheck)
+dnl fi
+
+dnl Some other nice autoconf tests. If you add a test here which
+dnl should make an entry in src/config.h, do not forget to add an
+dnl #undef clause to src/config.h.in for autoconf to modify.
+
+AC_PROG_RANLIB
+AC_PROG_INSTALL
+AC_PROG_YACC
+
+dnl checks for header files
+AC_CHECK_HEADERS(dnl
+ a.out.h dnl
+ elf.h dnl
+ cygwin/version.h dnl
+ fcntl.h dnl
+ inttypes.h dnl
+ libgen.h dnl
+ locale.h dnl
+ wchar.h dnl
+ mach/mach.h dnl
+ sys/param.h dnl
+ sys/pstat.h dnl
+ sys/resource.h dnl
+ sys/time.h dnl
+ sys/timeb.h dnl
+ sys/times.h dnl
+ sys/un.h dnl
+ sys/vlimit.h dnl
+ ulimit.h dnl
+ unistd.h dnl
+)
+AC_HEADER_SYS_WAIT
+AC_HEADER_STDC
+AC_HEADER_TIME
+AC_CHECK_DECLS([sys_siglist],,,
+[#include <signal.h>
+/* NetBSD declares sys_siglist in unistd.h. */
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+])
+
+
+dnl ----------------------------------------------------------------
+dnl Checking for utime() or utimes().
+dnl We prefer utime, since it is more standard.
+dnl Some systems have utime.h but do not declare the struct anyplace,
+dnl so we use a more sophisticated test for utime than AC_CHECK_FUNCS.
+dnl ----------------------------------------------------------------
+AC_MSG_CHECKING(for utime)
+AC_TRY_COMPILE([#include <sys/types.h>
+#include <utime.h>],
+[struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_UTIME)],
+ [AC_MSG_RESULT(no)
+ dnl We don't have utime(); how about utimes()?
+ AC_CHECK_FUNCS(utimes)])
+
+
+dnl checks for typedefs
+AC_TYPE_SIGNAL
+AC_TYPE_SIZE_T
+AC_TYPE_PID_T
+AC_TYPE_UID_T
+AC_TYPE_MODE_T
+AC_TYPE_OFF_T
+AC_CHECK_TYPE(ssize_t, int)
+
+dnl not AC_CHECK_TYPE; lisp.h does hairy conditional typedef
+if test "$ac_cv_header_inttypes_h" != "yes"; then
+AC_MSG_CHECKING(for intptr_t in sys/types.h)
+AC_TRY_COMPILE([#include <sys/types.h>
+intptr_t x;
+],[],[AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_INTPTR_T_IN_SYS_TYPES_H,1)],
+ [AC_MSG_RESULT(no)])
+fi
+
+dnl check for Unix98 socklen_t
+AC_MSG_CHECKING(for socklen_t)
+AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/socket.h>
+socklen_t x;
+],[],[AC_MSG_RESULT(yes)],[
+AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/socket.h>
+int accept (int, struct sockaddr *, size_t *);
+],[],[
+AC_MSG_RESULT(size_t)
+AC_DEFINE(socklen_t,size_t)], [
+AC_MSG_RESULT(int)
+AC_DEFINE(socklen_t,int)])])
+
+AC_MSG_CHECKING(for struct timeval)
+AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif], [static struct timeval x; x.tv_sec = x.tv_usec;],
+ [AC_MSG_RESULT(yes)
+ HAVE_TIMEVAL=yes
+ AC_DEFINE(HAVE_TIMEVAL)],
+ [AC_MSG_RESULT(no)
+ HAVE_TIMEVAL=no])
+
+dnl checks for structure members
+AC_STRUCT_TM
+AC_STRUCT_TIMEZONE
+
+dnl checks for compiler characteristics
+AC_C_CONST
+
+dnl check for Make feature
+AC_PROG_MAKE_SET
+
+dnl check byte order
+AC_C_BIGENDIAN
+
+dnl define SIZEOF_TYPE
+AC_CHECK_SIZEOF(short)
+if test "$ac_cv_sizeof_short" = 0; then
+ echo ""
+ echo "*** PANIC *** Configure tests are not working - compiler is broken."
+ echo "*** PANIC *** Please examine config.log for compilation errors."
+ exit 1
+fi
+AC_CHECK_SIZEOF(int)
+AC_CHECK_SIZEOF(long)
+AC_CHECK_SIZEOF(long long)
+AC_CHECK_SIZEOF(void *)
+AC_CHECK_SIZEOF(double)
+
+dnl check for long file names
+AC_SYS_LONG_FILE_NAMES
+
+dnl -lm is required for floating point support, among other things
+AC_CHECK_FUNC(sin, ,AC_CHECK_LIB(m, sin))
+
+AC_TRY_LINK([#include <math.h>],
+ [return atanh(1.0) + asinh(1.0) + acosh(1.0); ],
+ AC_DEFINE(HAVE_INVERSE_HYPERBOLIC))
+
+dnl See if mkstemp is available
+AC_CHECK_FUNCS(mkstemp)
+
+dnl Determine type of mail locking from configure args and s&m headers
+AC_CHECKING(type of mail spool file locking)
+AC_CHECK_FUNCS(lockf flock)
+dnl The mail_use_xxx variables are set according to the s&m headers.
+test -z "$with_mail_locking" -a "$mail_use_flock" = "yes"
&& with_mail_locking=flock
+test -z "$with_mail_locking" -a "$mail_use_lockf" = "yes"
&& with_mail_locking=lockf
+test -z "$with_mail_locking" -a "$mail_use_locking" =
"yes" && with_mail_locking=locking
+if test -z "$with_mail_locking"; then
+ case "$opsys" in cygwin* | mingw*)
+ with_mail_locking=pop ;;
+ esac
+fi
+
+if test "$with_mail_locking" = "lockf"; then
AC_DEFINE(MAIL_LOCK_LOCKF)
+elif test "$with_mail_locking" = "flock"; then
AC_DEFINE(MAIL_LOCK_FLOCK)
+elif test "$with_mail_locking" = "locking"; then
AC_DEFINE(MAIL_LOCK_LOCKING)
+elif test "$with_mail_locking" = "pop"; then
+ with_pop=yes
+ with_mail_locking=
+elif test "$with_mail_locking" = "mmdf"; then
AC_DEFINE(MAIL_LOCK_MMDF)
+else with_mail_locking="file"; AC_DEFINE(MAIL_LOCK_DOT)
+fi
+test "$with_mail_locking" = "lockf" -a
"$ac_cv_func_lockf" != "yes" && \
+ XE_DIE("lockf mail locking requested but not available.")
+test "$with_mail_locking" = "flock" -a
"$ac_cv_func_flock" != "yes" && \
+ XE_DIE("flock mail locking requested but not available.")
+test "$with_mail_locking" = "locking" -a
"$ac_cv_func_locking" != "yes" && \
+ XE_DIE("locking mail locking requested but not available.")
+
+case "$opsys" in decosf*)
+ AC_CHECK_LIB(pthreads, cma_open)
+ test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
+ c_switch_site="$c_switch_site -threads" ;;
+esac
+
+dnl ----------------------------------------------------------------
+dnl Miscellaneous flags
+dnl ----------------------------------------------------------------
+
+AC_MSG_CHECKING(whether the -xildoff compiler flag is required)
+if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild
' > /dev/null ; then
+ if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild
' > /dev/null ;
+ then AC_MSG_RESULT(no);
+ else AC_MSG_RESULT(yes); XE_APPEND(-xildoff, ld_switch_site)
+ fi
+ else AC_MSG_RESULT(no)
+fi
+
+dnl Link with "-z ignore" on Solaris if supported
+if test "$opsys" = "sol2"; then
+ if test "$os_release" -ge 506; then
+ AC_MSG_CHECKING(for \"-z ignore\" linker flag)
+ case "`ld -h 2>&1`" in
+ *-z\ ignore\|record* ) AC_MSG_RESULT(yes)
+ XE_PREPEND(-z ignore, ld_switch_site) ;;
+ *) AC_MSG_RESULT(no) ;;
+ esac
+ fi
+fi
+
+dnl ----------------------
+dnl Choose a window system
+dnl ----------------------
+
+AC_CHECKING("for specified window system")
+
+dnl Autodetection of Gdk libraries and includes
+dnl -------------------------------------------
+dnl On some systems (FreeBSD springs to mind), they use
+dnl versions on the utility routines, so instead of gtk-config
+dnl you must use gtk12-config, etc, etc.
+
+GNOME_CONFIG=no
+GTK_CONFIG=no
+
+if test "$with_gnome" != "no"; then
+ AC_MSG_CHECKING(for GNOME configuration script)
+ for possible in gnome-config
+ do
+ possible_version=`${possible} --version 2> /dev/null`
+ if test "x${possible_version}" != "x"; then
+ GNOME_CONFIG="${possible}"
+ with_gnome=yes
+ with_gtk=yes
+ break
+ fi
+ done
+ AC_MSG_RESULT([${GNOME_CONFIG}])
+fi
+
+if test "${GNOME_CONFIG}" != "no"; then
+ GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
+ GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
+ AC_DEFINE(HAVE_GNOME)
+ XE_APPEND(${GNOME_LIBS}, libs_gtk)
+ XE_APPEND(${GNOME_CFLAGS}, c_switch_gtk)
+fi
+
+if test "$with_gtk" != "no";then
+ AC_MSG_CHECKING(for GTK configuration script)
+ for possible in gtk12-config gtk14-config gtk-config
+ do
+ possible_version=`${possible} --version 2> /dev/null`
+ if test "x${possible_version}" != "x"; then
+ GTK_CONFIG="${possible}"
+ case "${possible_version}" in
+ 1.0.*) AC_MSG_WARN([GTK 1.2 is required, please upgrade your version of
GTK.]); with_gtk=no;;
+ 1.3.*) AC_MSG_WARN([GTK 1.3 is not supported right now]); with_gtk=no;;
+ 1.2.*)
+ with_gtk=yes
+ break
+ ;;
+ *) AC_MSG_WARN([Found unsupported version of GTK: $possible_version]);;
+ esac
+ fi
+ done
+ AC_MSG_RESULT([${GTK_CONFIG}])
+fi
+
+if test "${GTK_CONFIG}" != "no"; then
+ AC_MSG_CHECKING(gtk version)
+ GTK_VERSION=`${GTK_CONFIG} --version`
+ AC_MSG_RESULT(${GTK_VERSION})
+
+ AC_MSG_CHECKING(gtk libs)
+ GTK_LIBS=`${GTK_CONFIG} --libs`
+ XE_APPEND(${GTK_LIBS}, libs_gtk)
+ AC_MSG_RESULT(${GTK_LIBS})
+
+ AC_MSG_CHECKING(gtk cflags)
+ GTK_CFLAGS=`${GTK_CONFIG} --cflags`
+ if test "$GCC" = "yes"; then
+ GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
+ fi
+ XE_APPEND(${GTK_CFLAGS}, c_switch_gtk)
+ AC_MSG_RESULT(${GTK_CFLAGS})
+
+ AC_CHECK_LIB(gdk_imlib, main, XE_PREPEND(-lgdk_imlib, libs_gtk))
+ AC_CHECK_LIB(Imlib, Imlib_init, XE_APPEND(-lImlib, libs_gtk))
+ AC_CHECK_FUNCS(gdk_imlib_init)
+
+ AC_DEFINE(HAVE_XPM)
+ AC_DEFINE(HAVE_GTK)
+ AC_SUBST(GTK_CONFIG)
+
+ window_system=gtk
+ with_gtk=yes
+ if test "$with_x11" != "no"; then
+ AC_MSG_WARN([Configuring GTK, forcing with_x11 to no])
+ with_x11=no
+ fi
+
+ for feature in scrollbars toolbars menubars dialogs widgets
+ do
+ eval "feature_value=\${enable_${feature}}"
+ case "${feature_value}" in
+ yes|no|gtk|"" )
+ ;;
+ * )
+ feature_conflict_with_gtk=yes
+ AC_MSG_WARN([--enable-${feature}=${feature_value} is incompatible with --with-gtk])
;;
+ esac
+ done
+ if test "${feature_conflict_with_gtk}" = "yes"; then
+ XE_DIE(["One or more GUI toolkit features conflict with GTK"])
+ fi
+
+ test "${enable_scrollbars}" != "no" &&
enable_scrollbars=gtk
+ test "${enable_toolbars}" != "no" &&
enable_toolbars=gtk
+ test "${enable_menubars}" != "no" &&
enable_menubars=gtk
+ test "${enable_dialogs}" != "no" &&
enable_dialogs=gtk
+ test "${enable_widgets}" != "no" &&
enable_widgets=gtk
+
+ dnl Check for libglade support (it rocks)
+ OLD_CFLAGS="${CFLAGS}"
+ OLD_CPPFLAGS="${CPPFLAGS}"
+ OLD_LDFLAGS="${LDFLAGS}"
+ CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
+ CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
+ LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
+ AC_CHECK_HEADERS(glade/glade.h glade.h)
+ AC_CHECK_LIB(xml, main, XE_PREPEND(-lxml, libs_gtk))
+ AC_CHECK_LIB(glade, main, XE_PREPEND(-lglade, libs_gtk))
+ AC_CHECK_LIB(glade-gnome, main, XE_PREPEND(-lglade-gnome, libs_gtk))
+ AC_EGREP_HEADER([char \*txtdomain;], [glade/glade-xml.h],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(LIBGLADE_XML_TXTDOMAIN,1)],
+ [AC_MSG_RESULT(no)])
+ CFLAGS="${OLD_CFLAGS}"
+ CPPFLAGS="${OLD_CPPFLAGS}"
+ LDFLAGS="${OLD_LDFLAGS}"
+fi
+
+dnl We may eventually prefer gtk/gdk over vanilla X11...
+
+if test "$with_x11" != "no"; then
+ dnl User-specified --x-includes or --x-libraries implies --with-x11.
+ test "$x_includes $x_libraries" != "NONE NONE" && \
+ window_system=x11 with_x11=yes
+
+ dnl Autodetection of X11 libraries and includes
+ dnl -------------------------------------------
+ dnl AC_PATH_XTRA thinks it can find our X headers and includes, but
+ dnl it often gets it wrong, so we only use it as a last resort.
+
+ dnl $OPENWINHOME implies --x-includes and --x-libraries
+ dnl Not (yet) handled by autoconf2
+ if test "$x_includes $x_libraries" = "NONE NONE" \
+ -a -n "$OPENWINHOME" \
+ -a "$OPENWINHOME" != "/usr/openwin" \
+ -a -d "$OPENWINHOME"; then
+ test -d "$OPENWINHOME/lib" &&
x_libraries="$OPENWINHOME/lib"
+ test -d "$OPENWINHOME/include" &&
x_includes="$OPENWINHOME/include"
+ test -d "$OPENWINHOME/share/include" &&
x_includes="$OPENWINHOME/share/include"
+ fi
+
+ if test "$x_includes" = "NONE"; then
+ dnl AC_PATH_XTRA often guesses /usr/include, when some other
+ dnl include directory is a MUCH better guess (Linux, HP-UX 10.20).
+ dnl This is a workaround for idiot (esp. HP) system vendors, who
+ dnl provide a /usr/include/X11, but DON'T FULLY POPULATE IT.
+ for dir in "/usr/X11" "/usr/X11R6"; do
+ if test -d "$dir/include/X11"; then
x_includes="$dir/include"; break; fi
+ done
+ fi
+
+ if test "$x_libraries" = "NONE"; then
+ for dir in "/usr/X11/lib" "/usr/X11R6/lib"
"/usr/lib/X11R6"; do
+ if test -r "$dir/libX11.a"; then x_libraries="$dir"; break;
fi
+ done
+ fi
+
+ AC_PATH_XTRA # Autoconf claims to find X library and include dirs for us.
+ if test "$no_x" = "yes"
+ then with_x11=no window_system=none HAVE_X_WINDOWS=no
+ else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
+ fi
+fi
+
+dnl #### wmperry:: !x11 != NONE
+dnl case "$with_x11" in
+dnl yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
+dnl no ) window_system=none HAVE_X_WINDOWS=no ;;
+dnl esac
+
+if test "$with_x11" = "yes"; then
+ AC_DEFINE(HAVE_X_WINDOWS)
+ XE_APPEND(lwlib, MAKE_SUBDIR)
+ XE_APPEND(lwlib, SRC_SUBDIR_DEPS)
+
+ dnl Look for Motif, but only if not found in $x_includes and $x_libraries
+ AC_CHECK_HEADER(Xm/Xm.h, [AC_CHECK_LIB(Xm, XmStringFree, got_motif=yes)])
+
+ if test "$got_motif" != "yes"; then
+ dnl Try to find Motif/CDE/Tooltalk dirs
+ dnl These take precedence over other X libs/includes, so PRE-pend
+ for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
+ "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
+ inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
+ if test -d "$lib_dir" -a -d "$inc_dir"; then
+ case "$x_libraries" in *"$lib_dir"* ) ;; *)
+ x_libraries="$lib_dir $x_libraries"
+ XE_PREPEND(-L${lib_dir}, X_LIBS) ;;
+ esac
+ case "$x_includes" in "$inc_dir"* ) ;; *)
+ x_includes="$inc_dir $x_includes"
+ XE_PREPEND(-I${inc_dir}, X_CFLAGS) ;;
+ esac
+ break; dnl only need ONE Motif implementation!
+ fi
+ done
+ fi
+
+ dnl Contrib X libs/includes do NOT take precedence, so AP-pend
+ for rel in "X11R6" "X11R5" "X11R4"; do
+ lib_dir="/usr/contrib/$rel/lib"
inc_dir="/usr/contrib/$rel/include"
+ if test -d "$lib_dir" -a -d "$inc_dir"; then
+ case "$x_libraries" in *"$lib_dir"* ) ;; *)
+ x_libraries="$x_libraries $lib_dir"
+ XE_APPEND(-L${lib_dir}, X_LIBS)
+ esac
+ case "$x_includes" in "$inc_dir"* ) ;; *)
+ x_includes="$x_includes $inc_dir"
+ XE_APPEND(-I${inc_dir}, X_CFLAGS)
+ esac
+ break; dnl Only need ONE X11 implementation !
+ fi
+ done
+
+ dnl Avoid version mismatch for shared library libXm.so on osf4
+ case "$opsys" in
+ decosf*) if test "$GCC" = yes -a -d /usr/shlib; then
XE_APPEND(-L/usr/shlib, X_LIBS); fi ;;
+ esac
+
+ ld_switch_x_site="$X_LIBS"
+
+ XE_COMPUTE_RUNPATH()
+
+ if test "$extra_verbose" = "yes"; then
+ echo; echo "X11 compilation variables:"
+ PRINT_VAR(x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS)
+ echo
+ fi
+
+ dnl Set up bitmaps search path.
+ dnl The original suggestion was to unconditionally to append X11/bitmaps
+ dnl to each element of $x_includes, I'm pretty sure this is the wrong
+ dnl thing to do. We test for bitmaps and X11/bitmaps directories on each
+ dnl element and add them to BITMAPDIR if they exist.
+ bitmapdirs=
+ if test "$x_includes" != NONE; then
+ for i in $x_includes; do
+ if test -d "$i/bitmaps"; then
+ bitmapdirs="$i/bitmaps:$bitmapdirs"
+ fi
+ if test -d "$i/X11/bitmaps"; then
+ bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
+ fi
+ done
+ bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
+ fi
+ test ! -z "$bitmapdirs" && AC_DEFINE_UNQUOTED(BITMAPDIR,
"$bitmapdirs")
+
+ dnl Autodetect defines extracted from X config by xmkmf, e.g. NARROWPROTO
+ AC_CHECKING(for X defines extracted by xmkmf)
+ rm -fr conftestdir
+ if mkdir conftestdir; then
+ cd conftestdir
+ cat > Imakefile <<'EOF'
+xetest:
+ @echo ${PROTO_DEFINES} ${STD_DEFINES}
+EOF
+ if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
+ # GNU make sometimes prints "make[1]: Entering...", which would confuse
us.
+ xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
+ fi
+ cd ..
+ rm -fr conftestdir
+ for word in $xmkmf_defines; do
+ case "$word" in
+ -D__STDC__*) ;;
+ -D* )
+ sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
+ case "$word" in
+ -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
+ * ) val=1 ;;
+ esac
+dnl Avoid re-AC_DEFINE-ing xmkmf symbols we've already defined above.
+ if grep "^#define $sym " confdefs.h >/dev/null; then :; else
+ if test "$val" = "1"
+ then AC_DEFINE_UNQUOTED($sym)
+ else AC_DEFINE_UNQUOTED($sym,$val)
+ fi
+ fi ;;
+ esac
+ done
+ fi
+
+ dnl make sure we can find Intrinsic.h
+ AC_CHECK_HEADER(X11/Intrinsic.h, ,
+ [AC_MSG_ERROR([Unable to find X11 header files.])])
+
+ dnl -lXt and -lX11 are required
+ dnl Some broken systems require the magic "-b i486-linuxaout" flag
+ AC_CHECK_LIB(X11, XOpenDisplay, have_lib_x11=yes)
+ if test "$have_lib_x11" != "yes"; then
+ AC_CHECK_LIB(X11, XGetFontProperty,
+ ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site",
+ [AC_MSG_ERROR([Unable to find X11 libraries.])],
+ -b i486-linuxaout)
+ fi
+ libs_x="-lX11"
+ test "$extra_verbose" = "yes" && echo " Setting
libs_x to \"-lX11\""
+
+ dnl Autodetect -lXext
+ AC_CHECK_LIB(Xext, XShapeSelectInput, XE_PREPEND(-lXext, libs_x))
+
+ dnl Require -lXt
+ AC_CHECK_LIB(Xt, XtOpenDisplay, XE_PREPEND(-lXt, libs_x),
+ AC_MSG_ERROR([Unable to find X11 libraries.]))
+
+ AC_MSG_CHECKING(the version of X11 being used)
+ AC_RUN_IFELSE([AC_LANG_SOURCE([#include <X11/Intrinsic.h>
+ int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }])],
+ [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4])
+ AC_MSG_RESULT(R${x11_release})
+ AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release})
+
+ if test "${x11_release}" = "4"; then
+ case "$enable_widgets" in
+ "" | "no") enable_widgets=no ;;
+ *) XE_DIE("Widget support requires X11R5 or greater") ;;
+ esac
+ fi
+
+ AC_CHECK_FUNCS(XConvertCase)
+
+ AC_CHECK_HEADERS(X11/Xlocale.h)
+
+ dnl XFree86 has a non-standard prototype for this X11R6 function
+ AC_CHECK_FUNCS(XRegisterIMInstantiateCallback)
+ AC_MSG_CHECKING(for standard XRegisterIMInstantiateCallback prototype)
+ AC_TRY_COMPILE([
+#define NeedFunctionPrototypes 1
+#include <X11/Xlib.h>
+extern Bool XRegisterIMInstantiateCallback(
+ Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
+], [],
+ [AC_MSG_RESULT(yes)],
+ [AC_MSG_RESULT(no)
+ AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)])
+
+ dnl autodetect -lXmu
+ test -z "$with_xmu" && { AC_CHECK_LIB(Xmu,
XmuReadBitmapDataFromFile,
+ with_xmu=yes, with_xmu=no) }
+ if test "$with_xmu" = "no"; then
+ XE_ADD_OBJS(xmu.o)
+ else
+ XE_PREPEND(-lXmu, libs_x)
+ AC_DEFINE(HAVE_XMU)
+ fi
+
+ dnl Autodetect -lXbsd
+ dnl #### Someone, please add a better function than main
+ AC_CHECK_LIB(Xbsd, main, XE_PREPEND(-lXbsd, libs_x))
+
+ dnl Problem with the MIT distribution of X on AIX
+ if test "$unexec" = "unexaix.o" -a "$x11_release" =
"6"; then
+ dnl X11R6 requires thread-safe code on AIX for some reason
+ if test "$GCC" = "yes"; then
+ XE_PREPEND(-mthreads, X_CFLAGS)
+ XE_PREPEND(-mthreads, libs_x)
+ else
+ case "$CC" in
+ "xlc" ) CC="xlc_r" ;;
+ "xlC" ) CC="xlC_r" ;;
+ "cc" ) CC="cc_r" ;;
+ esac
+ fi
+ fi
+
+ dnl include xft/AA support?
+ dnl #### need to check for includes here (especially, freetype.h for v.2)
+
+ if test "$with_xft_emacs" = "yes"; then
+ AC_CHECKING([for Xrender, fontconfig, and Xft])
+ xft_includes_found=no
+ AC_CHECK_HEADERS([freetype/config/ftheader.h],
+ [xft_includes_found=yes],
+ [
+ dnl #### How about /sw/include, and /opt/local/include?
+ dnl these directories need to be the parent of the freetype directory
+ for freetype_include_top in "/usr/X11R6/include/freetype2" \
+ "/usr/include/freetype2"
+ do
+ if test -d $freetype_include_top; then
+ AC_CHECKING([in ${freetype_include_top}/freetype2])
+ dnl disable autoconf's fucking cache; why these fuckheads think it
+ dnl is better to be broken than to be slow, I don't know!
+ dnl #### there's gotta be a better-looking way to do this!!
+ unset "$as_ac_Header"
+ save_c_switch_site="$c_switch_site"
+ c_switch_site="$c_switch_site -I${freetype_include_top}"
+ AC_CHECK_HEADERS([freetype/config/ftheader.h],
+ [xft_includes_found=yes],
+ [c_switch_site=$save_c_switch_site])
+ fi
+ done
+ if test "$xft_includes_found" != "yes"; then
+ XE_DIE(["Unable to find headers for --with-xft"])
+ else
+ AC_CHECK_LIB(Xrender, XRenderQueryExtension, XE_PREPEND(-lXrender, libs_x),
+ [XE_DIE(["Unable to find libXrender for --with-xft"])])
+ AC_CHECK_LIB(fontconfig, FcPatternCreate, XE_PREPEND(-lfontconfig, libs_x),
+ [XE_DIE(["Unable to find libfontconfig for --with-xft"])])
+ AC_CHECK_LIB(Xft, XftFontOpen, XE_PREPEND(-lXft, libs_x),
+ [XE_DIE(["Unable to find libXft for --with-xft"])])
+ AC_DEFINE(USE_XFT)
+ dnl Due to interactions with other libraries, must postpone AC_DEFINE
+ dnl of USE_XFT_MENUBARS, USE_XFT_TABS, and USE_XFT_GAUGE.
+ unset xft_includes_found
+ fi
+])
+ fi
+
+fi dnl $with_x11 = yes
+
+if test "$with_msw" != "no"; then
+ AC_CHECKING(for MS-Windows)
+ AC_CHECK_LIB(gdi32,main,with_msw=yes)
+ if test "$with_msw" = "yes"; then
+ AC_DEFINE(HAVE_MS_WINDOWS)
+
+ dnl The net installer only works with MS-Windows currently
+ if test "$with_netinstall" = "yes"; then
+ XE_APPEND(netinstall, MAKE_SUBDIR)
+ XE_APPEND(netinstall, SRC_SUBDIR_DEPS)
+ XE_APPEND(netinstall, INSTALL_ARCH_DEP_SUBDIR)
+ fi
+
+ install_pp="$srcdir/lib-src/installexe.sh"
+ XE_APPEND(-limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid
-lwinspool -lmpr, libs_system)
+ if test "$with_dragndrop" != no; then
+ XE_APPEND(msw, dragndrop_proto)
+ with_dragndrop=yes
+ fi
+ if test "$window_system" != x11; then
+ window_system=msw
+ test "$enable_scrollbars" != "no" &&
enable_scrollbars=msw
+ test "$enable_menubars" != "no" &&
enable_menubars=msw
+ test "$enable_toolbars" != "no" &&
enable_toolbars=msw
+ test "$enable_dialogs" != "no" &&
enable_dialogs=msw
+ test "$enable_widgets" != "no" &&
enable_widgets=msw
+ fi
+ dnl check for our special version of select
+ AC_RUN_IFELSE([AC_LANG_SOURCE([#include <fcntl.h>
+ int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1;
}])],
+ [AC_DEFINE(HAVE_MSG_SELECT)])
+ fi
+fi
+
+AC_SUBST(install_pp)
+
+test -z "$with_dragndrop" &&
with_dragndrop="$with_dragndrop_default"
+test -z "$window_system" && window_system="none"
+
+dnl Test for features that require a window system - ANY window system
+if test "$window_system" = "none"; then
+ for feature in menubars scrollbars toolbars dialogs dragndrop xface
+ do
+ if eval "test -n \"\$enable_${feature}\" -a
\"\$enable_${feature}\" != no" ; then
+ AC_MSG_WARN([--enable-$feature ignored: Not valid without window system
support])
+ fi
+ eval "enable_${feature}=no"
+ done
+else
+ test -z "$enable_toolbars" && enable_toolbars=yes
+fi
+
+dnl ### Test for features that require mswindows support - currently none
+dnl ### MS-Windows folks: add code here..... (martin)
+if test "$with_msw" != "yes"; then
+ for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
+ do
+ if eval "test -n \"\$with_${feature}\" -a
\"\$with_${feature}\" != no" ; then
+ AC_MSG_WARN([--with-$feature ignored: Not valid without MS-Windows support])
+ fi
+ eval "with_${feature}=no"
+ done
+else
+:
+fi
+
+dnl Test for features that require X11 support
+if test "$with_x11" != "yes"; then
+ dnl It ought to be reasonable to have no output device at all, and only use
+ dnl XEmacs in --batch mode.
+ dnl if test "$with_tty" = "no" ; then
+ dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to
proceed.])
+ dnl fi
+ for feature in tooltalk cde offix wmcommand xim xmu nas_sound
+ do
+ if eval "test -n \"\$with_${feature}\" -a
\"\$with_${feature}\" != no" ; then
+ AC_MSG_WARN([--with-$feature ignored: Not valid without X support])
+ fi
+ eval "with_${feature}=no"
+ done
+fi
+
+dnl Balloon Help requires the Shape extension, not available everywhere,
+dnl for example not on AIX 4.3.
+if test "$with_x11" = "yes"; then
+ AC_CHECK_HEADER(X11/extensions/shape.h, [
+ AC_DEFINE(HAVE_BALLOON_HELP)
+ ])
+fi
+
+dnl FSF 19.29 has some bitmapdir stuff here.
+bitmapdir=
+
+case "$window_system" in
+ x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
+ msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
+ gtk )
+ HAVE_X_WINDOWS=no
+ test "$with_gnome" = "yes" && echo " Using
GNOME."
+ test "$with_gnome" = "no" && echo " Using
GTK."
+ ;;
+ none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
+esac
+
+case "$x_libraries" in *X11R4* )
+ test "$opsys" = "hpux9" &&
opsysfile="s/hpux9-x11r4.h"
+ test "$opsys" = "hpux9-shr" &&
opsysfile="s/hpux9shxr4.h"
+esac
+
+dnl Enable or disable proper handling of WM_COMMAND
+AC_CHECKING(for WM_COMMAND option);
+dnl if test "$with_wmcommand" = "yes"; then
+if test "$with_wmcommand" != "no"; then
+ AC_DEFINE(HAVE_WMCOMMAND)
+fi
+
+dnl Autodetect Xauth
+dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs
+test -z "$with_xauth" && test "$window_system" =
"none" && with_xauth=no
+test -z "$with_xauth" && { AC_CHECK_HEADER(X11/Xauth.h,
,with_xauth=no) }
+test -z "$with_xauth" && { AC_CHECK_LIB(Xau,
XauGetAuthByAddr,[:],with_xauth=no) }
+test -z "$with_xauth" && with_xauth=yes
+if test "$with_xauth" = "yes"; then
+ AC_DEFINE(HAVE_XAUTH)
+ XE_SPACE(libs_xauth, $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS)
+fi
+AC_SUBST(libs_xauth)
+
+dnl This one is for the static initializeds variables in
+dnl offix.c, so that the thing is dumped after lastfile.o
+AC_SUBST(dnd_objs)
+
+dnl Autodetect dll support
+
+dnl If g++ is used, we have to explicitly link modules with -lstdc++ on Cygwin
+dnl to avoid undefined symbol errors. This will never hurt, so just do it on
+dnl all platforms in case others have the same brain damage.
+if test "$with_xemacs_compiler" = "g++"; then
+ LIBSTDCPP=-lstdc++
+else
+ LIBSTDCPP=
+fi
+AC_SUBST(LIBSTDCPP)
+
+dnl This must come before the detection code for anything that is in a module
+if test "$enable_modules" != "no"; then
+ AC_CHECKING(for module support)
+
+ case "$opsys" in
+ mingw* | cygwin* ) have_dl=yes ;;
+ darwin ) have_dl=yes
+ AC_DEFINE(HAVE_DYLD)
+ ;;
+ * )
+ dnl Check for the ELFish dlopen()
+ AC_CHECK_HEADER(dlfcn.h, [
+ AC_MSG_CHECKING([for dlopen in -lc])
+ AC_TRY_LINK([#include <dlfcn.h>],dnl
+ [dlopen ("", 0);], [ have_dl=yes ], [
+ AC_MSG_CHECKING([for dlopen in -ldl])
+ ac_save_LIBS="$LIBS"
+ LIBS="$LIBS -ldl"
+ AC_TRY_LINK([#include <dlfcn.h>],dnl
+ [dlopen ("", 0);], [ have_dl=yes ], [
+ AC_MSG_CHECKING([for dlopen in -lsvld])
+ LIBS="$ac_save_LIBS -lsvld"
+ AC_TRY_LINK([#include <dlfcn.h>],dnl
+ [dlopen ("", 0);], [ have_dl=yes ],
[LIBS="$ac_save_LIBS"])])])])
+ if test "$have_dl" = "yes"; then
+ AC_DEFINE(HAVE_DLOPEN)
+ else
+ dnl Check for HP/UX shl_load
+ AC_CHECK_HEADER(dl.h, [
+ AC_MSG_CHECKING([for shl_load in -lc])
+ AC_TRY_LINK([#include <dl.h>],dnl
+ [shl_load ("", 0, 0);], [have_dl=yes], [
+ AC_MSG_CHECKING([for shl_load in -ldl])
+ ac_save_LIBS="$LIBS"
+ LIBS="$LIBS -ldld"
+ AC_TRY_LINK([#include <dl.h>],dnl
+ [shl_load ("", 0, 0);], [have_dl=yes],
[LIBS="$ac_save_LIBS"])])])
+ if test "$have_dl" = "yes"; then
+ AC_DEFINE(HAVE_SHL_LOAD)
+ else
+ dnl Check for libtool's libltdl
+ AC_CHECK_HEADER(ltdl.h, [
+ AC_MSG_CHECKING([for lt_dlinit in -lltdl])
+ ac_save_LIBS="$LIBS"
+ LIBS="$LIBS -lltdl"
+ AC_TRY_LINK([#include <ltdl.h>],dnl
+ [lt_dlinit ();], [have_dl=yes], [LIBS="$ac_save_LIBS"])])
+ if test "$have_dl" = "yes"; then
+ AC_DEFINE(HAVE_LTDL)
+ fi
+ dnl end !HP/UX
+ fi
+ dnl end !dlopen
+ fi
+ ac_save_LIBS=
+ dnl end !darwin
+ esac
+
+ if test -n "$have_dl"; then
+ dnl XE_SHLIB_STUFF (in aclocal.m4) defines $can_build_shared
+ XE_SHLIB_STUFF
+ fi
+
+ if test "$can_build_shared" = "yes"; then
+ AC_DEFINE(HAVE_SHLIB)
+ dnl src must be built before modules on MacOSX and Windows platforms, since
+ dnl the binary must be available to properly link the modules
+ dnl For no-module builds, this is added *after* the module directories
+ XE_APPEND(src, MAKE_SUBDIR)
+ XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR)
+ test -n "$libdl" && XE_PREPEND(-l${libdl}, LIBS)
+ AC_CHECK_FUNCS(dlerror _dlerror)
+ enable_modules=yes
+ MOD_CC="../../lib-src/ellcc"
+ MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src
-I\$(srcdir)/../../src"
+ INSTALLPATH="\$(moduledir)"
+ MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
+ OBJECT_TO_BUILD="\$(MODNAME).ell"
+ else
+ if test "$enable_modules" = "yes"; then
+ XE_DIE("Required module support cannot be provided.")
+ else
+ echo " No module support."
+ fi
+ enable_modules=no
+ fi
+fi
+if test "$enable_modules" != "yes"; then
+ MOD_CC="$XEMACS_CC"
+ MODCFLAGS="\$(XE_CFLAGS) -I../../src -I\$(srcdir)/../../src"
+ INSTALLPATH=""
+ MOD_INSTALL_PROGRAM="true"
+ OBJECT_TO_BUILD="\$(MODNAME).o"
+fi
+MODARCHDIR=
+MAKE_DOCFILE="../../lib-src/make-docfile"
+AC_SUBST(with_modules, $enable_modules)
+AC_SUBST(MOD_CC)
+AC_SUBST(MODARCHDIR)
+AC_SUBST(MAKE_DOCFILE)
+AC_SUBST(MODCFLAGS)
+AC_SUBST(INSTALLPATH)
+AC_SUBST(MOD_INSTALL_PROGRAM)
+AC_SUBST(OBJECT_TO_BUILD)
+
+dnl Autodetect tooltalk
+if test "$with_tooltalk" != "no" ; then
+ dnl autodetect the location of tt_c.h
+ dnl tt_c.h might be in Tt or desktop include directories
+ for dir in "" "Tt/" "desktop/" ; do
+ AC_CHECK_HEADER(${dir}tt_c.h, tt_c_h_file="${dir}tt_c.h"; break)
+ done
+ if test -z "$tt_c_h_file"; then
+ if test "$with_tooltalk" = "yes"; then
+ USAGE_ERROR("Unable to find required tooltalk header files.")
+ fi
+ with_tooltalk=no
+ fi
+fi
+if test "$with_tooltalk" != "no" ; then
+ for extra_libs in "" "-lI18N -lce" "-lcxx"; do
+ AC_CHECK_LIB(tt, tt_message_create,
+ tt_libs="-ltt $extra_libs"; break, [:],$extra_libs)
+ done
+ if test -z "$tt_libs"; then
+ if test "$with_tooltalk" = "yes"; then
+ USAGE_ERROR("Unable to find required tooltalk libraries.")
+ fi
+ with_tooltalk=no
+ fi
+fi
+test -z "$with_tooltalk" && with_tooltalk=yes
+if test "$with_tooltalk" = "yes"; then
+ AC_DEFINE(TOOLTALK)
+ AC_DEFINE_UNQUOTED(TT_C_H_FILE, "$tt_c_h_file")
+ XE_PREPEND($tt_libs, libs_x)
+fi
+
+dnl Autodetect CDE
+test -z "$with_cde" && { AC_CHECK_HEADER(Dt/Dt.h, ,
with_cde=no) }
+test -z "$with_cde" && { AC_CHECK_LIB(DtSvc, DtDndDragStart, [:],
with_cde=no) }
+if test "$with_dragndrop" = "no" ; then
+ if test "$with_cde" = "yes" ; then
+ AC_MSG_WARN([--with-cde forced to \`no'; no generic Drag'n'Drop
support])
+ fi
+ with_cde=no
+fi
+test -z "$with_cde" && with_cde=yes
+if test "$with_cde" = "yes" ; then
+ AC_DEFINE(HAVE_CDE)
+ XE_PREPEND(-lDtSvc, libs_x)
+ XE_APPEND(CDE, dragndrop_proto)
+ with_tooltalk=yes # CDE requires Tooltalk
+ need_motif=yes # CDE requires Motif
+fi
+
+dnl Always compile OffiX unless --without-offix is given, no
+dnl X11 support is compiled in, no standard Xmu is available,
+dnl or dragndrop support is disabled
+dnl Because OffiX support currently loses when more than one display
+dnl is in use, we now disable it by default -slb 07/10/1998.
+test "$window_system" != "x11" && with_offix=no
+if test "$with_xmu" != yes -a "$with_x11" = yes; then
+ if test "$with_offix" = "yes" ; then
+ AC_MSG_WARN([--with-offix forced to \`no'; no real Xmu support])
+ fi
+ with_offix=no
+fi
+if test "$with_dragndrop" = no; then
+ if test "$with_offix" = "yes" ; then
+ AC_MSG_WARN([--with-offix forced to \`no'; no generic Drag'n'Drop
support])
+ fi
+ with_offix=no
+fi
+if test "$with_cde" = yes; then
+ if test "$with_offix" = "yes" ; then
+ AC_MSG_WARN([--with-offix forced to \`no'; CDE already found])
+ fi
+ with_offix=no
+fi
+test -z "$with_offix" && with_offix=no
+if test "$with_offix" = "yes"; then
+ AC_DEFINE(HAVE_OFFIX_DND)
+ XE_APPEND(offix.o, dnd_objs)
+ XE_APPEND(OffiX, dragndrop_proto)
+fi
+if test "$with_gtk" = "yes"; then
+ XE_APPEND(GTK, dragndrop_proto)
+fi
+
+dnl Autodetect Drag'n'Drop support
+dnl always included if CDE, Offix, or MSWindows are defined
+if test "$with_dragndrop" != "no" ; then
+ AC_MSG_CHECKING(if drag and drop API is needed)
+ if test -n "$dragndrop_proto" ; then
+ with_dragndrop=yes
+ AC_MSG_RESULT([yes (${dragndrop_proto} )])
+ AC_DEFINE(HAVE_DRAGNDROP)
+ XE_APPEND(dragdrop.o, extra_objs)
+ else
+ with_dragndrop=no
+ AC_MSG_RESULT(no)
+ fi
+fi
+
+dnl Autodetect LDAP
+AC_CHECKING(for LDAP)
+ldap_libs=
+test -z "$with_ldap" && { AC_CHECK_HEADER(ldap.h, ,with_ldap=no) }
+test -z "$with_ldap" && { AC_CHECK_HEADER(lber.h, ,with_ldap=no) }
+if test "$with_ldap" != "no"; then
+ AC_CHECK_LIB(ldap, ldap_search, with_ldap=yes)
+ dnl Check for other libraries we need to link with to get the main routines.
+ test "$with_ldap" != "yes" && { AC_CHECK_LIB(ldap,
ldap_open, [with_ldap=yes with_ldap_lber=yes], , -llber) }
+ test "$with_ldap" != "yes" && { AC_CHECK_LIB(ldap,
ldap_open, [with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes], , -llber -lkrb) }
+ test "$with_ldap" != "yes" && { AC_CHECK_LIB(ldap,
ldap_open, [with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes with_ldap_des=yes], ,
-llber -lkrb -ldes) }
+ dnl Recently, we need -lber even though the main routines are elsewhere,
+ dnl because otherwise be get link errors w.r.t. ber_pvt_opt_on. So just
+ dnl check for that (it's a variable not a fun but that doesn't seem to
+ dnl matter in these checks) and stick in -lber if so. Can't hurt (even to
+ dnl stick it in always shouldn't hurt, I don't think) ... #### Someone who
+ dnl #### understands LDAP needs to fix this properly.
+ test "$with_ldap_lber" != "yes" && { AC_CHECK_LIB(lber,
ber_pvt_opt_on, with_ldap_lber=yes) }
+fi
+if test "$with_ldap" = "yes"; then
+ AC_DEFINE(HAVE_LDAP)
+ if test "$with_ldap_des" = "yes" ; then
+ XE_PREPEND(-ldes, ldap_libs)
+ fi
+ if test "$with_ldap_krb" = "yes" ; then
+ XE_PREPEND(-lkrb, ldap_libs)
+ fi
+ if test "$with_ldap_lber" = "yes" ; then
+ XE_PREPEND(-llber, ldap_libs)
+ fi
+ XE_PREPEND(-lldap, ldap_libs)
+ save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
+ AC_CHECK_FUNCS(ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result)
+ LIBS="$save_LIBS"
+ XE_APPEND(modules/ldap, MAKE_SUBDIR)
+ need_modules_common=yes
+ if test "$enable_modules" = "yes"; then
+ XE_APPEND(modules/ldap, INSTALL_ARCH_DEP_SUBDIR)
+ fi
+fi
+AC_SUBST(ldap_libs)
+
+dnl Autodetect PostgreSQL
+dnl On many Linux systems, PostgreSQL is packaged to be installed in /usr;
+dnl in this case, configure will easily detect it there.
+dnl
+dnl If PostgreSQL is installed into a different prefix,
+dnl (such as the default /usr/local/pgsql when building from source),
+dnl that prefix must be specified using the --with-site-prefixes flag.
+postgresql_libs=
+if test "$with_postgresql" != "no"; then
+ AC_CHECKING(for PostgreSQL)
+
+dnl Look for these standard header file locations, known to be used on Linux
+ for header_dir in "" "pgsql/" "postgresql/"; do
+ AC_CHECK_HEADER(${header_dir}libpq-fe.h,
+ libpq_fe_h_file=${header_dir}libpq-fe.h; break)
+ done
+
+ test -n "$libpq_fe_h_file" && {
AC_CHECK_LIB(pq,PQconnectdb,have_libpq=yes) }
+
+ if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes";
then
+ with_postgresql=yes
+ AC_DEFINE(HAVE_POSTGRESQL)
+ AC_CHECK_LIB(pq,PQconnectStart, [
+ with_postgresqlv7=yes;
+ AC_DEFINE(HAVE_POSTGRESQLV7)])
+ AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file")
+ XE_PREPEND(-lpq, postgresql_libs)
+ XE_APPEND(modules/postgresql, MAKE_SUBDIR)
+ need_modules_common=yes
+ if test "$enable_modules" = "yes"; then
+ XE_APPEND(modules/postgresql, INSTALL_ARCH_DEP_SUBDIR)
+ fi
+ elif test "$with_postgresql" = "yes"; then
+ XE_DIE("Required PostgreSQL support cannot be provided. Check
--with-site-prefixes.")
+ fi
+fi
+AC_SUBST(postgresql_libs)
+
+dnl ----------------------
+dnl Graphics libraries
+dnl ----------------------
+
+if test "$window_system" != "none"; then
+ AC_CHECKING([for graphics libraries])
+
+ dnl add special code to handle xpm-nox on Cygwin (csw)
+ dnl -- should only happen if CYGWIN && WITH_XPM && WITH_MSW
&& !WITH_X
+ libpath_xpm=
+ incpath_xpm=
+ case "$opsys" in
+ cygwin*)
+ cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
+ cygwin_top=`eval "dirname ${cygwin_top}"`;
+ cygwin_top="${cygwin_top}/..";
+ case "$window_system" in
+ dnl use "standard" search pattern
+ x11) ;;
+ dnl hardcode "standard" non-X11 xpm lib/inc dirs
+ msw) libpath_xpm="-L${cygwin_top}/lib/noX"
+ incpath_xpm="-I${cygwin_top}/include/noX"
+ ;;
+ dnl not supported on cygwin (yet?)
+ gtk) ;;
+ dnl probably not reached...
+ none) ;;
+ dnl ditto
+ *) ;;
+ esac
+ ;;
+ dnl use "standard" search pattern for all other OS's
+ *) ;;
+ esac
+ dnl Autodetect Xpm
+ xpm_problem=""
+ if test -z "$with_xpm"; then
+ XE_PREPEND("$incpath_xpm", CFLAGS)
+ XE_PREPEND("$libpath_xpm", LDFLAGS)
+ AC_MSG_CHECKING(for Xpm - no older than 3.4f)
+ xe_check_libs=-lXpm
+ AC_RUN_IFELSE([AC_LANG_SOURCE([#define XPM_NUMBERS
+#include <X11/xpm.h>
+ int main(int c, char **v) {
+ return c == 1 ? 0 :
+ XpmIncludeVersion != XpmLibraryVersion() ? 1 :
+ XpmIncludeVersion < 30406 ? 2 : 0 ;}])],
+ [./conftest dummy_arg; xpm_status=$?;
+ if test "$xpm_status" = "0"; then
+ with_xpm=yes;
+ else
+ with_xpm=no;
+ if test "$xpm_status" = "1"; then
+ xpm_problem="Xpm library version and header file version don't
match!"
+ elif test "$xpm_status" = "2"; then
+ xpm_problem="Xpm library version is too old!"
+ else
+ xpm_problem="Internal xpm detection logic error!"
+ fi
+ echo "
+*** WARNING *** $xpm_problem
+ I'm not touching that with a 10-foot pole!
+ If you really want to use the installed version of Xpm, rerun
+ configure and add '--with-xpm=yes', but don't blame me if XEmacs
crashes!"
+ fi],
+ [with_xpm=no])
+ xe_check_libs=
+ AC_MSG_RESULT($with_xpm)
+ fi
+ if test "$with_xpm" = "yes"; then
+ dnl #### This code assumes that if AC_CHECK_LIB fails,
+ dnl #### then it will succeed if FOR_MSW is defined,
+ dnl #### but doesn't actually verify this assumption.
+ AC_DEFINE(HAVE_XPM)
+ XE_PREPEND("$libpath_xpm", LDFLAGS)
+ XE_PREPEND(-lXpm, libs_x)
+ XE_PREPEND("$incpath_xpm", CFLAGS)
+ AC_MSG_CHECKING(for \"FOR_MSW\" xpm)
+ xe_check_libs=-lXpm
+ AC_TRY_LINK(, [XpmCreatePixmapFromData()],
+ [xpm_for_msw=no],
+ [xpm_for_msw=yes])
+ xe_check_libs=
+ AC_MSG_RESULT($xpm_for_msw)
+ if test "$xpm_for_msw" = "yes"; then
+ AC_DEFINE(FOR_MSW)
+ fi
+ fi
+
+ dnl Autodetect XFACE
+ test -z "$with_xface" && { AC_CHECK_HEADER(compface.h,
,with_xface=no) }
+ test -z "$with_xface" && { AC_CHECK_LIB(compface, UnGenFace,[:]
,with_xface=no) }
+ test -z "$with_xface" && with_xface=yes
+ if test "$with_xface" = "yes"; then
+ AC_DEFINE(HAVE_XFACE)
+ XE_PREPEND(-lcompface, libs_x)
+ fi
+
+ dnl For a brief period we had the GIF code split out into a separate library,
+ dnl but patent problems, etc. sort of squashed that idea.
+ dnl We default to building with builtin GIF decoding
+ if test "$with_gif" != "no"; then
+ with_gif="yes"
+ AC_DEFINE(HAVE_GIF)
+ fi
+
+ dnl Too many stupid linkers can't detect cascaded lib dependencies until runtime
+ dnl So we always search for libz compression support.
+ if test "$with_png $with_tiff" != "no no"; then
+ AC_CHECK_LIB(c, inflate, [:], [
+ AC_CHECK_LIB(z, inflate, [XE_PREPEND(-lz, libs_x)],[
+ AC_CHECK_LIB(gz, inflate, [XE_PREPEND(-lgz, libs_x)])])])
+ fi
+
+ dnl autodetect JPEG
+ test -z "$with_jpeg" && { AC_CHECK_HEADER(jpeglib.h,
,with_jpeg=no) }
+ test -z "$with_jpeg" && { AC_CHECK_LIB(jpeg,
jpeg_destroy_decompress,[:],with_jpeg=no) }
+ test -z "$with_jpeg" && with_jpeg=yes
+ if test "$with_jpeg" = "yes"; then
+ AC_DEFINE(HAVE_JPEG)
+ XE_PREPEND(-ljpeg, libs_x)
+ fi
+
+ dnl autodetect PNG
+ png_problem=""
+ test -z "$with_png" && { AC_CHECK_FUNC(pow,
,with_png=no) }
+ test -z "$with_png" && { AC_CHECK_HEADER(png.h,
,with_png=no) }
+ test -z "$with_png" && { AC_CHECK_LIB(png,
png_read_image,[:],with_png=no) }
+ if test -z "$with_png"; then
+ AC_MSG_CHECKING(for workable png version information)
+ xe_check_libs="-lpng -lz"
+ AC_RUN_IFELSE([AC_LANG_SOURCE([#include <png.h>
+ int main(int c, char **v) {
+ if (c == 1) return 0;
+ if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
+ return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}])],
+ [./conftest dummy_arg; png_status=$?;
+ if test "$png_status" = "0"; then
+ with_png=yes;
+ else
+ with_png=no;
+ if test "$png_status" = "1"; then
+ png_problem="PNG library version and header file don't match!"
+ elif test "$png_status" = "2"; then
+ png_problem="PNG library version too old (pre 1.0.2)!"
+ fi
+ echo "
+*** WARNING *** $png_problem
+ I'm not touching that with a 10-foot pole!
+ If you really want to use the installed version of libPNG, rerun
+ configure and add '--with-png=yes', but don't blame me if XEmacs
crashes!"
+ fi],
+ [with_png=no])
+ xe_check_libs=
+ AC_MSG_RESULT($with_png)
+ fi
+ if test "$with_png" = "yes"; then
+ AC_DEFINE(HAVE_PNG)
+ XE_PREPEND(-lpng, libs_x)
+ fi
+
+ dnl autodetect TIFF
+ test -z "$with_tiff" && { AC_CHECK_HEADER(tiffio.h,
,with_tiff=no) }
+ test -z "$with_tiff" && { AC_CHECK_LIB(tiff,
TIFFClientOpen,[:],with_tiff=no) }
+ test -z "$with_tiff" && with_tiff=yes
+ if test "$with_tiff" = "yes"; then
+ AC_DEFINE(HAVE_TIFF)
+ XE_PREPEND(-ltiff, libs_x)
+ fi
+fi
+
+dnl ----------------------
+dnl GTK-Specific Graphics libraries
+dnl ----------------------
+
+if test "$with_gtk" = "yes"; then
+ dnl Autodetect XFACE
+ test -z "$with_xface" && { AC_CHECK_HEADER(compface.h,
,with_xface=no) }
+ test -z "$with_xface" && { AC_CHECK_LIB(compface, UnGenFace,[:]
,with_xface=no) }
+ test -z "$with_xface" && with_xface=yes
+ if test "$with_xface" = "yes"; then
+ AC_DEFINE(HAVE_XFACE)
+ XE_PREPEND(-lcompface, libs_gtk)
+ fi
+fi
+
+
+dnl ----------------------
+dnl X-Specific Graphics libraries
+dnl ----------------------
+
+if test "$with_x11" = "yes"; then
+ AC_CHECKING(for X11 graphics libraries)
+fi
+
+dnl We don't automatically trigger widgets if athena is present
+dnl because of stability concerns.
+dnl But if the user wants widgets, still offer him autodetections
+case "$enable_widgets" in
+ "yes" | "athena") detect_athena=yes ;;
+ *) detect_athena=no ;;
+esac
+
+if test "$with_x11" = "yes" -a "$detect_athena" =
"yes" ; then
+ AC_CHECKING(for the Athena widgets)
+
+ dnl What in heck did the user actually want?
+ case "$with_athena" in
+ dnl This is the default, old fashioned flat Athena.
+ "xaw" | "") athena_variant=Xaw athena_3d=no ;;
+ "3d") athena_variant=Xaw3d athena_3d=yes ;;
+ "next") athena_variant=neXtaw athena_3d=yes ;;
+ "95") athena_variant=Xaw95 athena_3d=yes ;;
+ "xpm") athena_variant=XawXpm athena_3d=yes ;;
+ *) XE_DIE("Unknown Athena widget set \`$with_athena'. This should not
happen.") ;;
+ esac
+
+ dnl Search for the Athena library...
+ if test "$athena_3d" = "no"; then
+ AC_CHECK_LIB($athena_variant, XawScrollbarSetThumb,
+ [
+ dnl Must not be a 3d library...
+ AC_CHECK_LIB($athena_variant, threeDClassRec,
+ [AC_MSG_WARN([Could not find a non-3d Athena widget library.])],
+ athena_lib=$athena_variant)
+ ],
+ AC_MSG_WARN([Could not find an Athena widget library.]))
+ else
+ dnl The real configuration, need 3d library
+ AC_CHECK_LIB($athena_variant, threeDClassRec, athena_lib=$athena_variant,
+ dnl OK, couldn't find it with a proper name, try the standard Athena lib
+ dnl If that is 3d, presume the user asked for what they have installed.
+ AC_CHECK_LIB(Xaw, threeDClassRec,
+ [
+ athena_lib=Xaw;
+ AC_MSG_WARN([Assuming that libXaw is actually $athena_variant.]);
+ ],
+ [AC_MSG_WARN([Could not find a 3d Athena widget library that looked like
$athena_variant.])]))
+ fi
+
+ dnl Now we locate the Athena headers that we need.
+ if test "$athena_3d" = "no"; then
+ AC_CHECK_HEADER(X11/Xaw/ThreeD.h,
+ [AC_MSG_WARN([Could not find a non-3d Athena header set.])],
+ [AC_CHECK_HEADER(X11/Xaw/XawInit.h,
+ [athena_h_path=X11/Xaw],
+ [AC_MSG_WARN([Could not find a non-3d Athena header set.])])])
+ else
+ dnl The three-d Athena headers are so much more slippery.
+ dnl Curse this `Lets replace standard libraries' thing that they did. :/
+ AC_CHECK_HEADER(X11/$athena_variant/XawInit.h,
+ [AC_CHECK_HEADER(X11/$athena_variant/ThreeD.h,
+ [athena_h_path=X11/$athena_variant])])
+
+ dnl Is the variant specific header directory directly under include?
+ if test -z "$athena_h_path"; then
+ AC_CHECK_HEADER($athena_variant/XawInit.h,
+ [AC_CHECK_HEADER($athena_variant/ThreeD.h,
+ athena_h_path=$athena_variant)])
+ fi
+
+ dnl If we couldn't find the specific variant, try the generic Athena 3d
headers
+ if test -z "$athena_h_path" -a "$athena_variant" !=
"Xaw3d"; then
+ AC_CHECK_HEADER(X11/Xaw3d/XawInit.h,
+ [AC_CHECK_HEADER(X11/Xaw3d/ThreeD.h,
+ [
+ AC_MSG_WARN([Assuming that X11/Xaw3d headers are suitable for
$athena_variant.])
+ athena_h_path=X11/Xaw3d
+ ])])
+ fi
+
+ dnl Also generic 3d headers directly under include dir
+ if test -z "$athena_h_path" -a "$athena_variant" !=
"Xaw3d"; then
+ AC_CHECK_HEADER(Xaw3d/XawInit.h,
+ [AC_CHECK_HEADER(Xaw3d/ThreeD.h,
+ [
+ AC_MSG_WARN([Assuming that Xaw3d headers are suitable for
$athena_variant.])
+ athena_h_path=Xaw3d
+ ])])
+ fi
+
+ dnl If nothing yet found, see if Xaw is a 3d header set...
+ dnl We AC_MSG_WARN if we fail because I am all out of ideas...
+ if test -z "$athena_h_path"; then
+ AC_CHECK_HEADER(X11/Xaw/ThreeD.h,
+ [
+ AC_MSG_WARN([Assuming that X11/Xaw headers are suitable for
$athena_variant.])
+ athena_h_path=X11/Xaw
+ ],
+ [AC_MSG_WARN([Could not find a suitable 3d Athena header set.])])
+ fi
+ fi
+
+ dnl Do we actually have a usable Athena widget set? Please?
+ if test -n "$athena_lib" -a -n "$athena_h_path"; then
+ have_xaw=yes
+ else
+ have_xaw=no
+ fi
+
+else
+ have_xaw=no
+fi dnl "$with_x11" = "yes" -a "detect_athena" =
"yes"
+
+if test "$with_x11" = "yes"; then
+ dnl autodetect Motif - but only add to libs_x later (if necessary)
+ dnl Use a different function to the earlier test to avoid problems with the
+ dnl internal cache.
+ AC_CHECK_HEADER(Xm/Xm.h,
+ [AC_CHECK_LIB(Xm, XmStringCreate, have_motif=yes, have_motif=no)],
+ have_motif=no)
+
+ if test "$have_motif" = "yes"; then
+ dnl autodetect lesstif
+ AC_MSG_CHECKING(for Lesstif)
+ AC_EGREP_CPP(yes,
+[#include <Xm/Xm.h>
+#ifdef LESSTIF_VERSION
+yes
+#endif
+], have_lesstif=yes, have_lesstif=no)
+ AC_MSG_RESULT($have_lesstif)
+ fi
+
+fi dnl "$with_x11" = "yes"
+
+dnl Finish ensuring that we have values for the various toolkit items.
+dnl Not all toolkits support all widgets
+dnl if Motif is available we use it for the dialog boxes.
+
+case "$enable_menubars" in "" | "yes" |
"athena" )
+ enable_menubars="lucid" ;;
+esac
+dnl this is not in xft reloaded #3
+if test "$with_xft_menubars" != "no" ; then
+ if test "$with_xft_emacs" = "yes" -a "$with_menubars"
!= "no" ; then
+ with_xft_menubars="yes"
+ else
+ with_xft_menubars="no"
+ fi
+fi
+case "$enable_dialogs" in "" | "yes" | "lucid"
)
+ if test "$have_motif" = "yes"; then
enable_dialogs="motif"
+ elif test "$have_xaw" = "yes"; then
enable_dialogs="athena"
+ elif test "$with_msw" = "yes"; then
enable_dialogs="msw"
+ else enable_dialogs=no
+ fi ;;
+esac
+case "$enable_scrollbars" in "" | "yes" )
+ enable_scrollbars="lucid" ;;
+esac
+case "$enable_widgets" in "" | "yes" |
"lucid")
+ if test "$have_motif" = "yes"; then
enable_widgets="motif"
+ elif test "$have_xaw" = "yes"; then
enable_widgets="athena"
+ elif test "$with_msw" = "yes"; then
enable_widgets="msw"
+ else enable_widgets=no
+ fi ;;
+esac
+dnl this is not in xft reloaded #3
+if test "$with_xft_tabs" != "no" ; then
+ if test "$with_xft_emacs" = "yes" -a "$enable_widgets"
!= "no" ; then
+ with_xft_tabs="yes"
+ else
+ with_xft_tabs="no"
+ fi
+fi
+dnl this is not in xft reloaded #3
+if test "$with_xft_gauge" != "no" ; then
+ if test "$with_xft_emacs" = "yes" -a "$enable_widgets"
!= "no" ; then
+ with_xft_gauge="yes"
+ else
+ with_xft_gauge="no"
+ fi
+fi
+
+all_widgets="$enable_menubars $enable_scrollbars $enable_dialogs $enable_toolbars
$enable_widgets"
+
+case "$all_widgets" in
+ *athena* )
+ if test "$have_xaw" != "yes"; then
+ XE_DIE("Could not find a suitable Athena library to build with.")
+ fi
+
+ dnl Add the Lucid widget Athena code
+ XE_APPEND(lwlib-Xaw.o, lwlib_objs)
+
+ dnl Add the Athena widget library we located earlier
+ XE_PREPEND(-l$athena_lib, libs_x)
+
+ dnl Tell lwlib where to find the Athena header files.
+ dnl Many people have tried to create a `smart' way of doing this,
+ dnl but all have failed. Before changing the following ugly definitions,
+ dnl consult the veterans of many a battle.
+ AC_DEFINE_UNQUOTED(ATHENA_Scrollbar_h_,"$athena_h_path/Scrollbar.h")
+ AC_DEFINE_UNQUOTED(ATHENA_Dialog_h_,"$athena_h_path/Dialog.h")
+ AC_DEFINE_UNQUOTED(ATHENA_Form_h_,"$athena_h_path/Form.h")
+ AC_DEFINE_UNQUOTED(ATHENA_Command_h_,"$athena_h_path/Command.h")
+ AC_DEFINE_UNQUOTED(ATHENA_Label_h_,"$athena_h_path/Label.h")
+ AC_DEFINE_UNQUOTED(ATHENA_LabelP_h_,"$athena_h_path/LabelP.h")
+ AC_DEFINE_UNQUOTED(ATHENA_Toggle_h_,"$athena_h_path/Toggle.h")
+ AC_DEFINE_UNQUOTED(ATHENA_ToggleP_h_,"$athena_h_path/ToggleP.h")
+ AC_DEFINE_UNQUOTED(ATHENA_AsciiText_h_,"$athena_h_path/AsciiText.h")
+ AC_DEFINE_UNQUOTED(ATHENA_XawInit_h_,"$athena_h_path/XawInit.h")
+
+ AC_DEFINE(LWLIB_USES_ATHENA)
+ AC_DEFINE(NEED_ATHENA)
+ need_athena="yes"
+
+ if test "$athena_3d" = "yes"; then
+ AC_DEFINE(HAVE_ATHENA_3D)
+ fi
+ ;;
+esac
+
+case "$all_widgets" in *motif* )
+ AC_DEFINE(LWLIB_USES_MOTIF)
+ AC_DEFINE(NEED_MOTIF)
+ XE_APPEND(lwlib-Xm.o, lwlib_objs)
+ need_motif=yes ;;
+esac
+
+test "$enable_menubars" = "lucid" && XE_APPEND(xlwmenu.o,
lwlib_objs)
+test "$enable_menubars" = "motif" && XE_APPEND(xlwmenu.o,
lwlib_objs)
+test "$enable_scrollbars" = "lucid" &&
XE_APPEND(xlwscrollbar.o, lwlib_objs)
+test "$enable_widgets" != "no" && test
"$enable_widgets" != "msw" && \
+ XE_APPEND(xlwtabs.o xlwgcs.o, lwlib_objs)
+case "$enable_widgets" in athena* )
+ XE_APPEND(xlwradio.o xlwcheckbox.o xlwgauge.o, lwlib_objs);;
+esac
+case "$all_widgets" in *lucid* )
+ AC_DEFINE(NEED_LUCID)
+ XE_APPEND(lwlib-Xlw.o, lwlib_objs) ;;
+esac
+
+AC_SUBST(lwlib_objs)
+
+test "$enable_scrollbars" = "athena" &&
AC_DEFINE(LWLIB_SCROLLBARS_ATHENA)
+test "$enable_dialogs" = "athena" &&
AC_DEFINE(LWLIB_DIALOGS_ATHENA)
+
+if test "$athena_3d" = "yes"; then
+ test "$enable_scrollbars" = "athena" &&
AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D)
+ test "$enable_dialogs" = "athena" &&
AC_DEFINE(LWLIB_DIALOGS_ATHENA3D)
+fi
+
+case "$enable_widgets" in athena* ) AC_DEFINE(LWLIB_WIDGETS_ATHENA);; esac
+test "$enable_widgets" != "no" && test
"$enable_widgets" != "msw" && \
+ AC_DEFINE(LWLIB_TABS_LUCID)
+
+test "$enable_menubars" != "no" &&
AC_DEFINE(HAVE_MENUBARS)
+test "$enable_scrollbars" != "no" &&
AC_DEFINE(HAVE_SCROLLBARS)
+test "$enable_dialogs" != "no" &&
AC_DEFINE(HAVE_DIALOGS)
+test "$enable_toolbars" != "no" &&
AC_DEFINE(HAVE_TOOLBARS)
+test "$enable_widgets" != "no" &&
AC_DEFINE(HAVE_WIDGETS)
+
+test "$enable_menubars" = "lucid" &&
AC_DEFINE(LWLIB_MENUBARS_LUCID)
+test "$enable_scrollbars" = "lucid" &&
AC_DEFINE(LWLIB_SCROLLBARS_LUCID)
+
+test "$enable_menubars" = "motif" &&
AC_DEFINE(LWLIB_MENUBARS_MOTIF)
+test "$enable_scrollbars" = "motif" &&
AC_DEFINE(LWLIB_SCROLLBARS_MOTIF)
+test "$enable_dialogs" = "motif" &&
AC_DEFINE(LWLIB_DIALOGS_MOTIF)
+test "$enable_widgets" = "motif" &&
AC_DEFINE(LWLIB_WIDGETS_MOTIF)
+
+dnl this is not in xft reloaded #3
+test "$with_xft_menubars" = "yes" &&
AC_DEFINE(USE_XFT_MENUBARS)
+dnl these are new in sjt-xft
+test "$with_xft_tabs" = "yes" && AC_DEFINE(USE_XFT_TABS)
+test "$with_xft_gauge" = "yes" &&
AC_DEFINE(USE_XFT_GAUGE)
+
+dnl ----------------------
+dnl Mule-dependent options
+dnl ----------------------
+
+test -z "$enable_mule" && enable_mule=no
+
+dnl if test "$enable_mule" = "yes" && test ! -d
"$srcdir/lisp/mule"; then
+dnl echo "Attempt to Build with Mule without Mule/Lisp"
+dnl echo "Please install the XEmacs/Mule tarball or"
+dnl echo "rerun configure with --with-mule=no"
+dnl exit 1
+dnl fi
+
+if test "$enable_default_eol_detection" = "yes"; then
+ AC_DEFINE(HAVE_DEFAULT_EOL_DETECTION)
+fi
+
+if test "$enable_mule" = "yes" ; then
+ AC_CHECKING(for Mule-related features)
+ AC_DEFINE(MULE)
+
+ dnl Use -lintl to get internationalized strerror for Mule
+ AC_CHECK_HEADERS(libintl.h)
+ AC_CHECK_LIB(intl, strerror)
+
+ AC_CHECKING(for Mule input methods)
+ dnl Do we have the XmIm* routines? And if so, do we want to use them?
+ dnl XIM seems to be flaky except on Solaris...
+ dnl test -z "$with_xim" -a "$opsys" != "sol2"
&& with_xim=no
+ case "$with_xim" in "" | "yes" )
+ AC_CHECKING(for XIM)
+ AC_CHECK_LIB(X11, XOpenIM, with_xim=xlib, with_xim=no)
+ dnl XIM + Lesstif is not (yet?) usable
+ if test "$have_motif $have_lesstif" = "yes no"; then
+ AC_CHECK_LIB(Xm, XmImMbLookupString, with_xim=motif)
+ fi ;;
+ esac
+ if test "$with_xim" != "no"; then
+ AC_DEFINE(HAVE_XIM)
+ if test "$with_xim" = "xlib"; then
+ AC_DEFINE(XIM_XLIB)
+ XE_ADD_OBJS(input-method-xlib.o)
+ fi
+ if test "$with_xim" = "motif"; then
+ AC_DEFINE(XIM_MOTIF)
+ need_motif=yes
+ XE_ADD_OBJS(input-method-motif.o)
+ fi
+ if test "$with_xim" = "motif"; then
+ with_xfs=no
+ fi
+ fi
+
+ dnl "with_xfs" = "yes"
+ if test "$with_xfs" = "yes" ; then
+ AC_CHECKING(for XFontSet)
+ AC_CHECK_LIB(X11, XmbDrawString, [:], with_xfs=no)
+ if test "$with_xfs" = "yes" && test
"$enable_menubars" = "lucid"; then
+ AC_DEFINE(USE_XFONTSET)
+ if test "$with_xim" = "no" ; then
+ XE_ADD_OBJS(input-method-xlib.o)
+ fi
+ fi
+ fi dnl with_xfs
+
+ dnl Autodetect WNN
+ test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies
wnn support
+ test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no)
}
+ dnl gcc 2.97 fixincludes breaks inclusion of wnn/commonhd.h
+ test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/commonhd.h,
,with_wnn=no) }
+ dnl Detour to find crypt
+ if test "$with_wnn" != "no"; then
+ AC_CHECK_FUNCS(crypt)
+ test "$ac_cv_func_crypt" != "yes" && {
AC_CHECK_LIB(crypt, crypt) }
+ fi
+ dnl Back to our regularly scheduled wnn hunting
+ if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
+ AC_CHECK_LIB(wnn,jl_dic_list_e,libwnn=wnn,
+ AC_CHECK_LIB(wnn4,jl_dic_list_e,libwnn=wnn4,
+ AC_CHECK_LIB(wnn6,jl_dic_list_e,libwnn=wnn6,
+ AC_CHECK_LIB(wnn6_fromsrc,dic_list_e,libwnn=wnn6_fromsrc,with_wnn=no))))
+ fi
+ test -z "$with_wnn" && with_wnn=yes
+ if test "$with_wnn" = "yes"; then
+ AC_DEFINE(HAVE_WNN)
+ XE_PREPEND(-l$libwnn, libs_x)
+ if test "$with_wnn6" != "no"; then
+ AC_CHECK_LIB($libwnn, jl_fi_dic_list, with_wnn6=yes)
+ test "$with_wnn6" = "yes" && AC_DEFINE(WNN6)
+ fi
+ fi
+
+ dnl Autodetect canna
+ canna_includes_found=no
+ if test "$with_canna" != "no"; then
+ AC_CHECK_HEADER(canna/jrkanji.h,canna_includes_found=yes)
+ fi
+ if test "$canna_includes_found" = "no" -a "$with_canna"
!= "no" -a \
+ -d "/usr/local/canna/include"; then
+ save_c_switch_site="$c_switch_site"
+ c_switch_site="$c_switch_site -I/usr/local/canna/include"
+ AC_CHECK_HEADER(canna/jrkanji.h,canna_includes_found=yes)
+ if test "$canna_includes_found" != "yes"; then
+ c_switch_site="$save_c_switch_site"
+ with_canna="no"
+ fi
+ fi
+
+ test -z "$with_canna" && { AC_CHECK_HEADER(canna/RK.h, ,
with_canna=no) }
+ test -z "$with_canna" && { AC_CHECK_LIB(RKC, RkBgnBun,
[:],with_canna=no) }
+ test -z "$with_canna" && {
AC_CHECK_LIB(canna,jrKanjiControl,[:],with_canna=no) }
+ test -z "$with_canna" && with_canna=yes
+ if test "$with_canna" = "yes"; then
+ AC_DEFINE(HAVE_CANNA)
+ XE_PREPEND(-lcanna -lRKC, libs_x)
+ fi
+
+else dnl "$enable_mule" = "no"
+ for feature in xim canna wnn; do
+ if eval "test -n \"\$with_${feature}\" -a
\"\$with_${feature}\" != no" ; then
+ AC_MSG_WARN([--with-${feature} ignored: Not valid without Mule support])
+ fi
+ eval "with_${feature}=no"
+ done
+fi dnl with_mule
+
+
+dnl At this point, we know whether we need the motif lib or not.
+if test "$need_motif" = "yes" ; then
+ XE_PREPEND(-lXm, libs_x)
+ dnl AIX needs the following library for use with Motif
+ AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)])
+ XE_COMPUTE_RUNPATH()
+fi
+
+dnl ----------------------------------------------------------------
+dnl Check for POSIX functions.
+dnl ----------------------------------------------------------------
+
+AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp fsync ftime ftruncate
getaddrinfo gethostname getnameinfo getpagesize getrlimit gettimeofday getcwd link logb
lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select
setitimer setpgid setsid sigblock sighold sigprocmask snprintf strerror strlwr strupr
symlink tzset ulimit umask usleep vlimit vsnprintf waitpid wcscmp wcslen)
+
+dnl getaddrinfo() is borked under hpux11
+if test "$ac_cv_func_getaddrinfo" != "no" ; then
+ case "$opsys" in
+ hpux11 )
+ AC_MSG_WARN([Use of getaddrinfo is disabled for HP-UX 11.XX.])
+ ac_cv_func_getaddrinfo=no
+ ;;
+ esac
+fi
+
+dnl ----------------------------------------------------------------
+dnl Check for Unixoid pty/process support.
+dnl ----------------------------------------------------------------
+
+dnl There is no "standard" pty allocation method. Every system is
different.
+dnl getpt() is the preferred pty allocation method on glibc systems.
+dnl _getpty() is the preferred pty allocation method on SGI systems.
+dnl grantpt(), unlockpt(), ptsname() are defined by Unix98.
+AC_CHECK_FUNCS(getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp)
+
+dnl openpty() is the preferred pty allocation method on BSD and Tru64 systems.
+dnl openpty() might be declared in:
+dnl - pty.h (Tru64 or Linux)
+dnl - libutil.h (FreeBSD)
+dnl - util.h (NetBSD)
+AC_CHECK_FUNC(openpty, have_openpty=yes, [
+ AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)])
+if test "$have_openpty" = "yes"; then
+ AC_DEFINE(HAVE_OPENPTY)
+ AC_CHECK_HEADERS(libutil.h util.h, break)
+ test "$need_libutil" = "yes" && XE_APPEND(-lutil,
libs_system)
+fi
+
+dnl Check for system-specific pty header files
+dnl Often the TIOCSIG* symbols are hiding there.
+case "$opsys" in
+ dnl HPUX pty.h #defines TRUE and FALSE, so just use ptyio.h there.
+ hpux*) AC_CHECK_HEADERS(sys/ptyio.h) ;;
+ *) AC_CHECK_HEADERS(pty.h)
+ test "$ac_cv_header_pty_h" = "no" &&
AC_CHECK_HEADERS(sys/pty.h)
+ ;;
+esac
+
+dnl Check for STREAM support functions.
+dnl Confusingly, "str" means both "string" and "SysV
Streams".
+AC_CHECK_HEADERS(stropts.h)
+if test "$ac_cv_header_stropts_h" = "yes"; then
+ AC_CHECK_FUNCS(isastream)
+ AC_CHECK_HEADERS(strtio.h) dnl TIOCSIGNAL
+fi
+
+dnl Check whether the system provides getloadavg().
+AC_CHECK_FUNCS(getloadavg)
+
+if test "$ac_cv_func_getloadavg" = "yes"; then
+ dnl Solaris 8 declares getloadavg() in <sys/loadavg.h>.
+ dnl glibc 2.2 declares getloadavg() in <stdlib.h>...
+ dnl ...if we #define _GNU_SOURCE, which we do.
+ AC_CHECK_HEADERS(sys/loadavg.h)
+else
+ dnl We define our own getloadavg() using lower level functions.
+ XE_ADD_OBJS(getloadavg.o)
+
+ dnl Used by getloadavg() - does not require root priveleges
+ AC_CHECK_LIB(kstat, kstat_open)
+ AC_CHECK_HEADERS(kstat.h)
+
+ dnl Another way to get the load average
+ AC_CHECK_LIB(kvm, kvm_read)
+fi
+
+dnl If netdb.h does not declare h_errno, we must declare it by hand.
+AC_MSG_CHECKING(whether netdb declares h_errno)
+AC_TRY_LINK([#include <netdb.h>],
+ [return h_errno;],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_H_ERRNO)],
+ [AC_MSG_RESULT(no)])
+
+AC_MSG_CHECKING(for sigsetjmp)
+AC_TRY_COMPILE([#include <setjmp.h>],
+ [sigjmp_buf bar; sigsetjmp (bar, 0);],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_SIGSETJMP)],
+ [AC_MSG_RESULT(no)])
+
+AC_MSG_CHECKING(whether localtime caches TZ)
+AC_CACHE_VAL(emacs_cv_localtime_cache,
+[if test "$ac_cv_func_tzset" = "yes"; then
+AC_RUN_IFELSE([AC_LANG_SOURCE([#include <time.h>
+#if STDC_HEADERS
+# include <stdlib.h>
+#endif
+extern char **environ;
+unset_TZ ()
+{
+ char **from, **to;
+ for (to = from = environ; (*to = *from); from++)
+ if (! (to[[0]][[0]] == 'T' && to[[0]][[1]] == 'Z'
&& to[[0]][[2]] == '='))
+ to++;
+}
+char TZ_GMT0[[]] = "TZ=GMT0";
+char TZ_PST8[[]] = "TZ=PST8";
+main()
+{
+ time_t now = time ((time_t *) 0);
+ int hour_GMT0, hour_unset;
+ if (putenv (TZ_GMT0) != 0)
+ exit (1);
+ hour_GMT0 = localtime (&now)->tm_hour;
+ unset_TZ ();
+ hour_unset = localtime (&now)->tm_hour;
+ if (putenv (TZ_PST8) != 0)
+ exit (1);
+ if (localtime (&now)->tm_hour == hour_GMT0)
+ exit (1);
+ unset_TZ ();
+ if (localtime (&now)->tm_hour != hour_unset)
+ exit (1);
+ exit (0);
+}])], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
+[# If we have tzset, assume the worst when cross-compiling.
+emacs_cv_localtime_cache=yes])
+else
+ # If we lack tzset, report that localtime does not cache TZ,
+ # since we can't invalidate the cache if we don't have tzset.
+ emacs_cv_localtime_cache=no
+fi],[:])dnl
+AC_MSG_RESULT($emacs_cv_localtime_cache)
+if test $emacs_cv_localtime_cache = yes; then
+ AC_DEFINE(LOCALTIME_CACHE)
+fi
+
+if test "$HAVE_TIMEVAL" = "yes"; then
+AC_MSG_CHECKING(whether gettimeofday accepts one or two arguments)
+AC_TRY_LINK([
+#ifdef TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif
+ ],
+ [
+ struct timeval time;
+ gettimeofday (&time, 0);
+],
+ [AC_MSG_RESULT(two)],
+ [AC_MSG_RESULT(one)
+ AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)])
+fi
+
+
+AC_C_INLINE
+test "$ac_cv_c_inline" != "no" -a "$GCC" =
"yes" && XE_ADD_OBJS(inline.o)
+
+dnl check for the typeof extension
+AC_MSG_CHECKING(for typeof)
+AC_TRY_COMPILE(, [int i; __typeof__(i) j;], typeofname="__typeof__",
+ [AC_TRY_COMPILE(, [int i; typeof(i) j;], typeofname="typeof",
+ typeofname=no)])
+AC_MSG_RESULT($typeofname)
+if test "$typeofname" != "no"; then
+ AC_DEFINE_UNQUOTED(TYPEOF, $typeofname)
+fi
+
+dnl HP-UX has a working alloca in libPW.
+dnl case "${GCC}${opsys}" in hpux* )
+dnl AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)])
+dnl esac
+
+dnl AC_FUNC_ALLOCA doesn't know about DEC C's #pragma intrinsic(alloca)
+if test "$__DECC" != "yes"; then
+ AC_FUNC_ALLOCA
+ test -n "$ALLOCA" && XE_ADD_OBJS($ALLOCA)
+fi
+
+AC_MSG_CHECKING(for working alloca in function calls)
+AC_RUN_IFELSE([AC_LANG_SOURCE([
+#if defined (__CYGWIN__)
+#include <alloca.h>
+#elif defined (__GNUC__)
+#define alloca __builtin_alloca
+#elif defined (__DECC)
+#include <alloca.h>
+#pragma intrinsic(alloca)
+#elif defined (HAVE_ALLOCA_H)
+#include <alloca.h>
+#elif defined (_AIX)
+#pragma alloca
+#elif ! defined (alloca)
+#ifdef C_ALLOCA
+#define alloca xemacs_c_alloca
+#else
+void *alloca ();
+#endif /* C_ALLOCA */
+#endif /* !defined (alloca) */
+
+void
+f1 (double a, void *ptr, int b)
+{
+ unsigned char *ptr2 = (unsigned char *) ptr;
+ if (ptr2[[0]] != 0xBF || ptr2[[1]] != 0xBF || ptr2[[3000]] != 0xBF)
+ exit (1);
+ if (a != 3.1415 || b != -5490)
+ exit (1);
+}
+
+int
+f2 (short c, void *ptr, long e)
+{
+ unsigned char *ptr2 = (unsigned char *) ptr;
+ if (ptr2[[0]] != 0xFB || ptr2[[1]] != 0xFB || ptr2[[1000]] != 0xFB)
+ exit (1);
+ if (c != 665 || e != 776776776)
+ exit (1);
+ f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490);
+ return 42;
+}
+
+int
+main (int argc, char *argv[])
+{
+ if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42)
+ return 1;
+ return 0;
+}
+])], working_alloca_in_function_calls=yes, working_alloca_in_function_calls=no)
+AC_MSG_RESULT($working_alloca_in_function_calls)
+test "$working_alloca_in_function_calls" != "yes" && \
+ AC_DEFINE(BROKEN_ALLOCA_IN_FUNCTION_CALLS)
+
+AC_MSG_CHECKING([for working scanf])
+AC_RUN_IFELSE([AC_LANG_SOURCE([
+int
+main (int argc, char **argv)
+{
+ int ret, cp1, cp2, endcount;
+ char *p = "0x7d 0x000E ";
+ ret = sscanf (p, "%i %i%n", &cp1, &cp2, &endcount);
+ /* endcount should be 13 but it's 11 in Cygwin newlib after 6/04;
+ this breaks unicode.c */
+ return endcount != 13;
+}
+])], working_scanf=yes, working_scanf=no)
+AC_MSG_RESULT($working_scanf)
+test "$working_scanf" != "yes" && \
+ AC_DEFINE(CYGWIN_SCANF_BUG)
+
+dnl Check whether strcoll exists and works correctly. (This does more
+dnl than just check for its existence.) If so, it defines HAVE_STRCOLL.
+AC_FUNC_STRCOLL
+
+dnl If `getpgrp' takes no argument (the POSIX.1 version), define
+dnl `GETPGRP_VOID'. Otherwise, it is the BSD version, which takes a
+dnl process ID as an argument.
+AC_CHECK_FUNCS(getpgrp)
+AC_FUNC_GETPGRP
+
+dnl We used to call AC_FUNC_MMAP here
+dnl Instead we now use following, suggested by Neal Becker
+AC_MSG_CHECKING(for working mmap)
+case "$opsys" in ultrix* ) have_mmap=no ;; *)
+AC_RUN_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <sys/mman.h>
+
+#ifndef MAP_VARIABLE
+#define MAP_VARIABLE 0
+#endif
+
+#ifndef MAP_FAILED
+#define MAP_FAILED -1
+#endif
+
+int main (int argc, char *argv[])
+{
+ int fd = -1;
+ caddr_t p;
+#ifndef MAP_ANONYMOUS
+ fd = open ("/dev/zero", O_RDWR);
+ if (fd < 0)
+ return 1;
+#define MAP_ANONYMOUS 0
+#endif
+ if (mmap(0, 1024, PROT_READ | PROT_WRITE,
+ MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
+ fd, 0) != (void *) MAP_FAILED)
+ return 0;
+ perror ("conftest: mmap failed");
+ return 1;
+}])], have_mmap=yes, have_mmap=no) ;;
+esac
+AC_MSG_RESULT($have_mmap)
+test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP)
+
+dnl By default we switch off rel-alloc on cygwin as it generally causes us grief
+case "$opsys" in cygwin*)
+ test "$with_rel_alloc" = "default" && with_rel_alloc=no
;;
+esac
+dnl rel_alloc requires either GNU malloc or system malloc with mmap
+dnl We only turn rel_alloc on by default if mmap is available.
+test "$GNU_MALLOC" != "yes" -a "$have_mmap" !=
"yes" && with_rel_alloc=no
+if test "$with_rel_alloc $have_mmap" = "default yes"; then
+ if test "$doug_lea_malloc" = "yes"; then
+ dnl Check if malloc() calls mmap(), making rel_alloc pointless.
+ AC_MSG_CHECKING(for M_MMAP_THRESHOLD)
+ AC_TRY_COMPILE([#include <malloc.h>],[
+#ifndef M_MMAP_THRESHOLD
+#error No M_MMAP_THRESHOLD :-(
+!@+$%^&*_)(_ - unlikely to compile...
+#endif
+], [with_rel_alloc=no; AC_MSG_RESULT(yes);], [with_rel_alloc=yes; AC_MSG_RESULT(no);])
+ else
+ with_rel_alloc=yes
+ fi
+fi
+test "$with_rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC)
+
+dnl Check for terminal I/O variants
+dnl TERMIOS systems may have termio.h, but not vice-versa, I think.
+AC_CHECK_HEADER(termios.h,
+ AC_DEFINE(HAVE_TERMIOS)
+ AC_DEFINE(SIGNALS_VIA_CHARACTERS)
+ AC_DEFINE(NO_TERMIO),
+ [AC_CHECK_HEADER(termio.h, [AC_DEFINE(HAVE_TERMIO)])])
+
+
+dnl Check for Internet sockets.
+AC_CHECK_FUNC(socket,
+ [AC_CHECK_HEADER(netinet/in.h,
+ [AC_CHECK_HEADER(arpa/inet.h, [
+ AC_DEFINE(HAVE_SOCKETS)
+ AC_MSG_CHECKING("for sun_len member in struct sockaddr_un")
+ AC_TRY_LINK([
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+ ],
+ [static struct sockaddr_un x; x.sun_len = 1;],
+ [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)],
+ [AC_MSG_RESULT(no)])
+ AC_MSG_CHECKING("for ip_mreq struct in netinet/in.h")
+ AC_TRY_LINK([
+#include <sys/types.h>
+#include <netinet/in.h>
+ ],
+ [static struct ip_mreq x;],
+ [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MULTICAST)],
+ [AC_MSG_RESULT(no)])])])])
+
+dnl Check for SYS V IPC. (Inferior to sockets.)
+AC_CHECK_FUNC(msgget,
+ [AC_CHECK_HEADER(sys/ipc.h,
+ [AC_CHECK_HEADER(sys/msg.h,
+ [AC_DEFINE(HAVE_SYSVIPC)])])])
+
+dnl Check for directory variants
+AC_CHECK_HEADER(dirent.h, [AC_DEFINE(SYSV_SYSTEM_DIR)],
+ [AC_CHECK_HEADER(sys/dir.h, , [AC_DEFINE(NONSYSTEM_DIR_LIBRARY)])])
+
+dnl Check for nlist.h
+AC_CHECK_HEADER(nlist.h, AC_DEFINE(NLIST_STRUCT), )
+
+dnl Check for sound of various sorts.
+
+dnl Autodetect native sound
+AC_CHECKING("for sound support")
+test -z "$with_native_sound" -a -n "$with_native_sound_lib"
&& with_native_sound=yes
+
+if test "$with_native_sound" != "no"; then
+ dnl Maybe sound is already on include path...
+ if test -n "$with_native_sound_lib"; then
+ AC_CHECK_HEADER(multimedia/audio_device.h,
+ [sound_found=yes sound_cflags=""
+ XE_ADD_OBJS(sunplay.o)])
+ fi
+
+ dnl Autodetect Sun native sound from SUNWaudmo package
+ if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
+ if test -d "/usr/demo/SOUND/include/multimedia"; then
+ sun_sound_cflags="-I/usr/demo/SOUND/include"
+ elif test -d "/usr/demo/SOUND/multimedia"; then
+ sun_sound_cflags="-I/usr/demo/SOUND"
+ fi
+
+ if test -n "$with_native_sound_lib"; then
+ sun_sound_lib="$with_native_sound_lib"
+ elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then
+ sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
+ elif test -r "/usr/demo/SOUND/libaudio.a"; then
+ sun_sound_lib="/usr/demo/SOUND/libaudio.a"
+ fi
+
+ if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then
+ with_native_sound_lib="$sun_sound_lib"
+ sound_cflags="$sun_sound_cflags"
+ sound_found=yes
+ XE_ADD_OBJS(sunplay.o)
+ fi
+ fi
+
+ dnl Check for SGI and HP native sound libs
+ if test -z "$sound_found"; then
+ case "$ac_cv_build" in
+ *-sgi-* )
+ if test -z "$with_native_sound_lib"; then
+ AC_CHECK_LIB(audio, ALopenport, with_native_sound_lib="-laudio")
+ fi
+ if test -n "$with_native_sound_lib"; then
+ sound_found=yes sound_cflags=""
+ XE_ADD_OBJS(sgiplay.o)
+ fi ;;
+ hppa*-hp-hpux* )
+ if test -z "$with_native_sound_lib"; then
+ AC_CHECK_LIB(Alib, AOpenAudio, with_native_sound_lib="-lAlib")
+ fi
+ if test -n "$with_native_sound_lib"; then
+ sound_found=yes
+ XE_ADD_OBJS(hpplay.o)
+ if test "$GCC" = "yes" # Kludge city
+ then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
+ else sound_cflags="+e -I/usr/audio/examples"
+ fi
+ fi ;;
+ esac
+ fi
+
+ dnl Win32 Native uses native sound
+ if test -z "$sound_found"; then
+ if test "$with_msw" = "yes"; then
+ sound_found=yes
+ with_native_sound_lib=
+ XE_ADD_OBJS(ntplay.o)
+ fi
+ fi
+
+ dnl Check for Linux/BSD native sound (also on recent Cygwins)
+ if test -z "$sound_found"; then
+ for dir in "machine" "sys" "linux"; do
+ AC_CHECK_HEADER(${dir}/soundcard.h,
+ sound_found=yes
+ need_miscplay=yes
+ XE_ADD_OBJS(linuxplay.o)
+ [AC_DEFINE_UNQUOTED(SOUNDCARD_H_FILE, "${dir}/soundcard.h")]
+ break)
+ done
+ fi
+
+ test "$sound_found" = "yes" && with_native_sound=yes
+fi
+
+if test "$with_native_sound" = "yes"; then
+ AC_DEFINE(HAVE_NATIVE_SOUND)
+ test -n "$with_native_sound_lib" &&
XE_PREPEND($with_native_sound_lib, LIBS)
+fi
+
+dnl NAS Sound support
+if test "$with_nas_sound" != "no"; then
+ AC_CHECK_HEADER(audio/audiolib.h, [
+ AC_CHECK_LIB(audio, AuOpenServer, have_nas_sound=yes)])
+ if test "$have_nas_sound" = "yes"; then
+ with_nas_sound=yes
+ AC_DEFINE(HAVE_NAS_SOUND)
+ XE_ADD_OBJS(nas.o)
+ XE_PREPEND(-laudio, libs_x)
+ dnl If the nas library does not contain the error jump point,
+ dnl then we force safer behavior.
+ AC_EGREP_HEADER(AuXtErrorJump,audio/Xtutil.h,,[old_nas=yes;
AC_DEFINE(NAS_NO_ERROR_JUMP)])
+ else
+ test "$with_nas_sound" = "yes" && \
+ XE_DIE("Required NAS sound support cannot be provided.")
+ with_nas_sound=no
+ fi
+fi
+
+dnl ESD Sound support
+if test "$with_esd_sound" != "no"; then
+ AC_CHECK_PROG(have_esd_config, esd-config, yes, no)
+ if test "$have_esd_config" = "yes"; then
+ save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
+ XE_APPEND(`esd-config --cflags`, c_switch_site)
+ XE_PREPEND(`esd-config --libs`, LIBS)
+ AC_CHECK_FUNC(esd_play_stream,
+ have_esd_sound=yes,
+ c_switch_site="$save_c_switch_site" LIBS="$save_LIBS")
+ fi
+
+ if test "$have_esd_sound" = "yes"; then
+ with_esd_sound=yes
+ need_miscplay=yes
+ XE_ADD_OBJS(esd.o)
+ AC_DEFINE(HAVE_ESD_SOUND)
+ else
+ test "$with_esd_sound" = "yes" && \
+ XE_DIE("Required ESD sound support cannot be provided.")
+ with_esd_sound=no
+ fi
+fi
+
+test "$need_miscplay" = "yes" && XE_ADD_OBJS(miscplay.o)
+
+dnl ---------------------
+dnl TTY-dependent options
+dnl ---------------------
+
+test -z "$with_tty" && with_tty=yes
+
+if test "$with_tty" = "yes" ; then
+ AC_CHECKING(for TTY-related features)
+ AC_DEFINE(HAVE_TTY)
+
+ dnl Autodetect ncurses.
+ if test -z "$with_ncurses"; then
+ AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no)
+ fi
+ if test "$with_ncurses" = "yes"; then
+ AC_DEFINE(HAVE_NCURSES)
+ AC_CHECK_HEADER(ncurses/curses.h, curses_h_file=ncurses/curses.h)
+ AC_CHECK_HEADER(ncurses/term.h, term_h_file=ncurses/term.h)
+ XE_ADD_OBJS(terminfo.o)
+ XE_PREPEND(-lncurses, LIBS)
+
+ if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
+ dnl Try again, and check for the bogus ncurses/ include bug.
+ dnl (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
+ dnl <ncurses/unctrl.h>)
+ save_c_switch_site="$c_switch_site"
+ c_switch_site="$c_switch_site -I/usr/include/ncurses"
+ AC_CHECK_HEADER(ncurses/curses.h, curses_h_file=ncurses/curses.h)
+ if test "$ac_cv_header_ncurses_curses_h" = "yes"
+ then AC_MSG_WARN([Your system has the bogus ncurses include bug.])
+ else c_switch_site="$save_c_switch_site"
+ fi
+ fi
+ else dnl "$with_ncurses" = "no"
+ dnl Autodetect terminfo/-lcurses/-ltermlib/-ltermcap
+ if test "$have_terminfo" = "yes"; then
+ XE_ADD_OBJS(terminfo.o)
+ if test -n "$libs_termcap"; then
+ XE_PREPEND($libs_termcap, LIBS)
+ else
+ for lib in curses termlib termcap; do
+ AC_CHECK_LIB($lib, tgetent, XE_PREPEND(-l${lib}, LIBS); break)
+ done
+ fi
+ else dnl "$have_terminfo" = "no" &&
"with_ncurses" = "no"
+ XE_ADD_OBJS(tparam.o)
+ dnl The HP-UX curses library seems to have a badly broken version of select(2)
+ dnl that makes "poll: interrupted system call" messages to appear and
+ dnl Emacs subprocesses to hang (e.g. TeX compilation w/ AUCTeX) */
+ case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;;
esac
+ if test -n "$libs_termcap"; then
+ XE_PREPEND($libs_termcap, LIBS)
+ else
+ AC_CHECK_LIB(curses, tgetent, XE_PREPEND(-lcurses, LIBS),
+ AC_CHECK_LIB(termcap, tgetent, XE_PREPEND(-ltermcap, LIBS),
+ XE_ADD_OBJS(termcap.o)))
+ fi
+ fi
+ fi
+ AC_DEFINE_UNQUOTED(CURSES_H_FILE, "${curses_h_file-curses.h}")
+ AC_DEFINE_UNQUOTED(TERM_H_FILE, "${term_h_file-term.h}")
+
+ dnl General Purpose Mouse (libgpm) support
+ if test "$with_gpm" != "no"; then
+ AC_CHECK_HEADER(gpm.h, [
+ AC_CHECK_LIB(gpm, Gpm_Open, have_gpm=yes)])
+ if test "$have_gpm" = "yes"; then
+ with_gpm=yes
+ AC_DEFINE(HAVE_GPM)
+ XE_PREPEND(-lgpm, LIBS)
+ elif test "$with_gpm" = "yes"; then
+ XE_DIE(["GPM requested, but gpm.h or libgpm seems to be missing."])
+ else
+ with_gpm=no
+ fi
+ fi
+
+else dnl "$with_tty" = "no"
+ for feature in ncurses gpm; do
+ if eval "test -n \"\$with_${feature}\" -a
\"\$with_${feature}\" != no" ; then
+ AC_MSG_WARN([--with-${feature} ignored: Not valid without TTY support])
+ fi
+ eval "with_${feature}=no"
+ done
+fi dnl with_tty
+
+dnl Database support
+dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
+dnl On FreeBSD, both DB and DBM are part of libc.
+dnl By default, we check for DBM support in libgdbm, then libc, then libdbm.
+
+test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
+ != "no no no" && AC_CHECKING(for database support)
+
+dnl Check for ndbm.h, required for either kind of DBM support.
+if test "$with_database_gdbm $with_database_dbm" != "no no"; then
+ AC_CHECK_HEADER(ndbm.h, [:], [
+ test "$with_database_gdbm" = "yes" -o \
+ "$with_database_dbm" = "yes" && \
+ XE_DIE("Required DBM support cannot be provided.")
+ with_database_gdbm=no with_database_dbm=no])
+fi
+
+dnl Check for DBM support in libgdbm.
+if test "$with_database_gdbm" != "no"; then
+ AC_CHECK_LIB(gdbm, dbm_open, [
+ with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm], [
+ if test "$with_database_gdbm" = "yes"; then
+ XE_DIE("Required GNU DBM support cannot be provided.")
+ fi
+ with_database_gdbm=no])
+fi
+
+dnl Check for DBM support in libc and libdbm.
+if test "$with_database_dbm" != "no"; then
+ AC_CHECK_FUNC(dbm_open, [with_database_dbm=yes libdbm=], [
+ AC_CHECK_LIB(dbm, dbm_open, [with_database_dbm=yes libdbm=-ldbm], [
+ test "$with_database_dbm" = "yes" && \
+ XE_DIE("Required DBM support cannot be provided.")
+ with_database_dbm=no])])
+fi
+
+dnl Tell make about the DBM support we detected.
+test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS)
+test "$with_database_gdbm" = "yes" -o \
+ "$with_database_dbm" = "yes" && \
+ AC_DEFINE(HAVE_DBM)
+
+dnl Check for Berkeley DB.
+if test "$with_database_berkdb" != "no"; then
+ AC_MSG_CHECKING(for Berkeley db.h)
+ for header in "db/db.h" "db.h"; do
+ AC_TRY_COMPILE([
+#include <stdlib.h>
+#if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
+#ifdef HAVE_INTTYPES_H
+#define __BIT_TYPES_DEFINED__
+#include <inttypes.h>
+typedef uint8_t u_int8_t;
+typedef uint16_t u_int16_t;
+typedef uint32_t u_int32_t;
+#ifdef WE_DONT_NEED_QUADS
+typedef uint64_t u_int64_t;
+#endif
+#endif
+#endif
+#include <$header>
+],[], db_h_file="$header"; break)
+ done
+ if test -z "$db_h_file"
+ then AC_MSG_RESULT(no); with_database_berkdb=no
+ else AC_MSG_RESULT($db_h_file)
+ fi
+
+ if test "$with_database_berkdb" != "no"; then
+ AC_MSG_CHECKING(for Berkeley DB version)
+ AC_EGREP_CPP(yes,
+[#include <$db_h_file>
+#if DB_VERSION_MAJOR > 1
+yes
+#endif
+], [AC_EGREP_CPP(yes,
+[#include <$db_h_file>
+#if DB_VERSION_MAJOR > 2
+yes
+#endif
+], [AC_EGREP_CPP(yes,
+[#include <$db_h_file>
+#if DB_VERSION_MAJOR > 3
+yes
+#endif
+], [AC_MSG_RESULT(4); dbfunc=db_create; dbver=4],[
+ AC_MSG_RESULT(3); dbfunc=db_create; dbver=3])],[
+ AC_MSG_RESULT(2); dbfunc=db_open; dbver=2])],[
+ AC_MSG_RESULT(1); dbfunc=dbopen; dbver=1])
+ AC_CHECK_FUNC($dbfunc, with_database_berkdb=yes need_libdb=no, [
+ AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)])
+ fi
+
+ dnl Berk db 4.1 decorates public functions with version information
+ if test "$with_database_berkdb" != "yes" -a "$dbver" =
"4"; then
+ rm -f $tempcname
+ echo "#include <$db_h_file>" > $tempcname
+ echo "configure___ dbfunc=db_create" >> $tempcname
+ define(TAB, [ ])dnl
+ eval `$CPP -Isrc $tempcname \
+ | sed -n -e "s/[[ TAB]]*=[[ TAB\"]]*/='/" -e "s/[[
TAB\"]]*\$/'/" -e "s/^configure___//p"`
+ rm -f $tempcname
+ AC_MSG_WARN("db_create is really $dbfunc")
+ AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)
+ fi
+
+ if test "$with_database_berkdb" = "yes"; then
+ AC_DEFINE_UNQUOTED(DB_H_FILE, "$db_h_file")
+ AC_DEFINE(HAVE_BERKELEY_DB)
+ test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS)
+ else with_database_berkdb=no
+ fi
+fi
+
+if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
+ != "no no no"; then
+ AC_DEFINE(HAVE_DATABASE)
+fi
+
+dnl Socks support
+if test "$with_socks" = "yes"; then
+ AC_CHECK_LIB(socks, SOCKSinit)
+ test -n "$ac_cv_lib_socks_SOCKSinit" && AC_DEFINE(HAVE_SOCKS)
+fi
+
+dnl Usage tracking (undocumented and likely unused option)
+if test "$usage_tracking" = "yes"; then
+ AC_DEFINE(USAGE_TRACKING)
+ XE_PREPEND(-Bstatic -lut -Bdynamic, LIBS)
+fi
+
+dnl Enhanced number support
+if test "$enable_bignum" = "gmp"; then
+ AC_CHECK_HEADER(gmp.h, [
+ AC_CHECK_LIB(gmp, __gmpz_init, have_mpz_init=yes)])
+ if test "$have_mpz_init" = "yes"; then
+ AC_DEFINE(WITH_NUMBER_TYPES)
+ AC_DEFINE(WITH_GMP)
+ XE_PREPEND(-lgmp, LIBS)
+ else
+ XE_DIE("Required GMP numeric support cannot be provided.")
+ fi
+elif test "$enable_bignum" = "mp"; then
+ for library in "" "-lcrypto"; do
+ AC_CHECK_HEADER(mp.h, [
+ AC_CHECK_LIB(mp, mp_mfree, have_mp_mfree=yes; break, [
+ AC_CHECK_LIB(mp, mfree, have_mfree=yes; break, , $library)],
+ $library)])
+ done
+ if test "$have_mp_mfree" = "yes"; then
+ AC_DEFINE(MP_PREFIX)
+ XE_APPEND(-lmp, LIBS)
+ if test "$library" != ""; then
+ XE_APPEND($library, LIBS)
+ fi
+ AC_CHECK_FUNC(mp_move, [AC_DEFINE(HAVE_MP_MOVE)])
+ elif test "$have_mfree" = "yes"; then
+ XE_APPEND(-lmp, LIBS)
+ if test "$library" != ""; then
+ XE_APPEND($library, LIBS)
+ fi
+ AC_CHECK_FUNC(move, [AC_DEFINE(HAVE_MP_MOVE)])
+ else
+ XE_DIE("Required MP numeric support cannot be provided.")
+ fi
+ AC_DEFINE(WITH_NUMBER_TYPES)
+ AC_DEFINE(WITH_MP)
+fi
+
+dnl Unfortunately, just because we can link doesn't mean we can run.
+dnl One of the above link tests may have succeeded but caused resulting
+dnl executables to fail to run. Also any tests using AC_RUN_IFELSE will
+dnl have reported incorrect results.
+AC_RUN_IFELSE([AC_LANG_SOURCE([int main(int c,char *v[]){return 0;}])],[:],[
+ echo ""
+ echo "*** PANIC *** The C compiler can no longer build working
executables."
+ echo "*** PANIC *** Please examine the tail of config.log for runtime
errors."
+ echo "*** PANIC *** The most likely reason for this problem is that
configure"
+ echo "*** PANIC *** links with shared libraries, but those libraries cannot
be"
+ echo "*** PANIC *** found at run time."
+ echo "*** PANIC ***"
+ echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run
ldconfig."
+ echo "*** PANIC *** On other systems, try telling configure where to find
the"
+ echo "*** PANIC *** shared libraries using the --with-site-runtime-libraries
option"
+ echo "*** PANIC ***"
+ echo "*** PANIC *** Another way to shoot yourself in the foot is to
specify"
+ echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
+ echo "*** PANIC *** on your system. Don't do that."
+ exit 1])
+
+dnl Process support
+if test "$win32_processes" != "yes"; then
+ AC_DEFINE(HAVE_UNIX_PROCESSES)
+fi
+
+dnl --------------------------------
+dnl Compute SUBST-itutable variables
+dnl --------------------------------
+
+dnl We ignore (C|LD)_SWITCH_X_(MACHINE|SYSTEM)
+dnl Use XE_SPACE instead of plain assignment statements to remove extraneous blanks
+if test "$enable_modules" = "yes"; then
+ ld_libs_module=
+else
+ XE_SPACE(ld_libs_module, $ldap_libs $postgresql_libs)
+fi
+
+XE_SPACE(CFLAGS, $CFLAGS)
+XE_SPACE(extra_objs, $extra_objs)
+XE_SPACE(c_switch_general, -DHAVE_CONFIG_H $c_switch_site $c_switch_machine
$c_switch_system)
+XE_SPACE(c_switch_window_system, $c_switch_x_site $c_switch_gtk $X_CFLAGS)
+XE_SPACE(c_switch_all, $c_switch_general $c_switch_window_system)
+XE_SPACE(ld_switch_general, $ld_switch_site $ld_switch_machine $ld_switch_system
$ld_switch_run)
+XE_SPACE(ld_switch_window_system, $ld_switch_x_site)
+XE_SPACE(ld_switch_all, $ld_switch_general $ld_switch_window_system)
+XE_SPACE(ld_libs_general, $LIBS $libs_machine $libs_system $libs_standard)
+XE_SPACE(ld_libs_window_system, $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS)
+XE_SPACE(ld_libs_all, $ld_libs_window_system $ld_libs_general $ld_libs_module)
+
+dnl For no-module builds, make the src dir last
+if test "$enable_modules" = "no"; then
+ XE_APPEND(src, MAKE_SUBDIR)
+fi
+
+dnl Compute lists of Makefiles and subdirs
+AC_SUBST(SRC_SUBDIR_DEPS)
+internal_makefile_list="Makefile.in"
+SUBDIR_MAKEFILES=''
+test -d lock || mkdir lock
+for dir in $MAKE_SUBDIR; do
+ case "$dir" in */* ) dnl Implement mkdir -p
+ ( for d in `echo $dir | sed 's:/: :g'` ; do
+ test -d "$d" || mkdir "$d"; cd "$d"
+ done ) ;;
+ * ) test -d "$dir" || mkdir "$dir" ;;
+ esac
+ XE_SPACE(SUBDIR_MAKEFILES, $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile)
+ XE_SPACE(internal_makefile_list, $internal_makefile_list $dir/Makefile.in)
+done
+AC_SUBST(INSTALL_ARCH_DEP_SUBDIR)
+AC_SUBST(MAKE_SUBDIR)
+AC_SUBST(SUBDIR_MAKEFILES)
+
+dnl Make s&m symlinks in the src directory, for config.h.
+for dir in src/s src/m; do
+ if test ! -d "$dir" ; then
+ echo Making symbolic link to "$srcdir/$dir"
+ ${LN_S} "$srcdir/$dir" "$dir"
+ fi
+done
+
+dnl Also make modules/common link if needed for the module Makefiles.
+if test "$need_modules_common" = "yes"; then
+ for dir in modules/common; do
+ if test ! -d "$dir" ; then
+ echo Making symbolic link to "$srcdir/$dir"
+ ${LN_S} "$srcdir/$dir" "$dir"
+ fi
+ done
+fi
+
+if test "$extra_verbose" = "yes"; then
+ echo ""
+ PRINT_VAR(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)
+ echo ""
+fi
+
+dnl ----------------------------------------------
+dnl Create some auxiliary files for developers.
+dnl ----------------------------------------------
+
+dnl Create a .gdbinit useful for debugging XEmacs
+if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
+ test "$extra_verbose" = "yes" && echo "creating
src/.gdbinit"
+ echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
+fi
+
+dnl Create a .dbxrc useful for debugging XEmacs
+if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
+ test "$extra_verbose" = "yes" && echo "creating
src/.dbxrc"
+ echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
+fi
+
+dnl Create a useful TAGS file
+if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
+ test "$extra_verbose" = "yes" && echo "creating
TAGS"
+ echo "
+$srcdir/TAGS,include" > "TAGS"
+fi
+
+dnl Create top level .sbinit for Sun compilers
+if test "$__SUNPRO_C" = "yes"; then
+ test "$extra_verbose" = "yes" && echo "creating
.sbinit"
+ ( echo "# For use with Sun WorkShop's Source browser."
+ echo "# See sbquery(1) and sbinit(4) for more information"
+ for dir in $MAKE_SUBDIR; do echo "import $dir"; done
+ ) > .sbinit
+fi
+
+dnl There are no more compile tests; remove the core they created.
+rm -f core
+
+dnl ----------------------------------------------
+dnl Substitute into Makefile, config.h and paths.h
+dnl ----------------------------------------------
+
+dnl what sort of things to edit into Makefile, config.h and paths.h
+dnl configuration here uncanonicalized to avoid exceeding size limits.
+
+AC_SUBST(PROGNAME)
+AC_SUBST(version)
+AC_SUBST(inststaticdir)
+AC_SUBST(instvardir)
+AC_SUBST(srcdir)
+AC_SUBST(bindir)
+AC_SUBST(datadir)
+AC_SUBST(statedir)
+AC_SUBST(libdir)
+AC_SUBST(mandir)
+AC_SUBST(extra_includes)
+
+AC_SUBST(prefix)
+AC_SUBST(PREFIX_USER_DEFINED)
+dnl Yo, Stephen Bourne! I want to marry you!
+PREFIX=$prefix
+while true; do
+ case "$PREFIX" in
+ *\$* ) eval "PREFIX=$PREFIX" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(PREFIX)
+
+AC_SUBST(exec_prefix)
+AC_SUBST(EXEC_PREFIX_USER_DEFINED)
+EXEC_PREFIX=$exec_prefix
+while true; do
+ case "$EXEC_PREFIX" in
+ *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(EXEC_PREFIX)
+
+AC_SUBST(infodir)
+AC_SUBST(INFODIR_USER_DEFINED)
+INFODIR=$infodir
+while true; do
+ case "$INFODIR" in
+ *\$* ) eval "INFODIR=$INFODIR" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(INFODIR)
+
+AC_SUBST(infopath,$with_infopath)
+AC_SUBST(INFOPATH_USER_DEFINED)
+INFOPATH=$with_infopath
+while true; do
+ case "$INFOPATH" in
+ *\$* ) eval "INFOPATH=$INFOPATH" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(INFOPATH)
+
+if test -z "$with_package_path" && test -n
"$with_package_prefix" ; then
+ if test "$enable_mule" = "yes" ; then
+
with_package_path="~/.xemacs::${with_package_prefix}/site-packages:${with_package_prefix}/xemacs-packages:${with_package_prefix}/mule-packages"
+ else
+
with_package_path="~/.xemacs::${with_package_prefix}/site-packages:${with_package_prefix}/xemacs-packages"
+ fi
+fi
+
+AC_SUBST(package_path,$with_package_path)
+AC_SUBST(PACKAGE_PATH_USER_DEFINED)
+PACKAGE_PATH=$with_package_path
+while true; do
+ case "$PACKAGE_PATH" in
+ *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(PACKAGE_PATH)
+
+AC_SUBST(lispdir, $with_lispdir)
+AC_SUBST(LISPDIR_USER_DEFINED)
+LISPDIR=$with_lispdir
+while true; do
+ case "$LISPDIR" in
+ *\$* ) eval "LISPDIR=$LISPDIR" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(LISPDIR)
+
+AC_SUBST(moduledir,$with_moduledir)
+AC_SUBST(MODULEDIR_USER_DEFINED)
+MODULEDIR=$with_moduledir
+while true; do
+ case "$MODULEDIR" in
+ *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(MODULEDIR)
+
+AC_SUBST(sitelispdir,$with_sitelispdir)
+AC_SUBST(SITELISPDIR_USER_DEFINED)
+SITELISPDIR=$sitelispdir
+while true; do
+ case "$SITELISPDIR" in
+ *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(SITELISPDIR)
+
+AC_SUBST(sitemoduledir)
+AC_SUBST(SITEMODULEDIR_USER_DEFINED)
+SITEMODULEDIR=$sitemoduledir
+while true; do
+ case "$SITEMODULEDIR" in
+ *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(SITEMODULEDIR)
+
+AC_SUBST(etcdir,$with_etcdir)
+AC_SUBST(ETCDIR_USER_DEFINED)
+ETCDIR=$with_etcdir
+while true; do
+ case "$ETCDIR" in
+ *\$* ) eval "ETCDIR=$ETCDIR" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(ETCDIR)
+
+AC_SUBST(archlibdir,$with_archlibdir)
+AC_SUBST(ARCHLIBDIR_USER_DEFINED)
+ARCHLIBDIR=$with_archlibdir
+while true; do
+ case "$ARCHLIBDIR" in
+ *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(ARCHLIBDIR)
+
+AC_SUBST(docdir,$with_docdir)
+AC_SUBST(DOCDIR_USER_DEFINED)
+DOCDIR=$with_docdir
+while true; do
+ case "$DOCDIR" in
+ *\$* ) eval "DOCDIR=$DOCDIR" ;;
+ *) break ;;
+ esac
+done
+AC_SUBST(DOCDIR)
+
+AC_SUBST(docdir)
+AC_SUBST(bitmapdir)
+AC_SUBST(extra_objs)
+
+dnl The following flags combine all the information from:
+dnl - command line options (user always gets priority)
+dnl - user environment variables
+dnl - determined by configure
+dnl - the s&m header files (required for ellcc)
+AC_SUBST(machfile)
+AC_SUBST(opsysfile)
+AC_SUBST(c_switch_general)
+AC_SUBST(c_switch_window_system)
+AC_SUBST(c_switch_all)
+AC_SUBST(ld_switch_general)
+AC_SUBST(ld_switch_window_system)
+AC_SUBST(ld_switch_all)
+AC_SUBST(ld_libs_general)
+AC_SUBST(ld_libs_window_system)
+AC_SUBST(ld_libs_all)
+AC_SUBST(CFLAGS)
+AC_SUBST(CPPFLAGS)
+AC_SUBST(LDFLAGS)
+RECURSIVE_MAKE_ARGS="\$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)'
LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
+AC_SUBST(RECURSIVE_MAKE_ARGS)
+
+AC_SUBST(native_sound_lib,$with_native_sound_lib)
+AC_SUBST(sound_cflags)
+AC_SUBST(RANLIB)
+AC_SUBST(dynodump_arch)
+
+AC_SUBST(XEMACS_CC)
+AC_SUBST(XE_CFLAGS)
+
+dnl The default is yes
+if test "$with_prefix" = "yes"; then
+ AC_DEFINE(PREFIX_USER_DEFINED)
+fi
+
+dnl The default is no
+if test "$with_site_lisp" = "no"; then
+ AC_DEFINE(INHIBIT_SITE_LISP)
+fi
+dnl The default is yes
+if test "$with_site_modules" = "no"; then
+ AC_DEFINE(INHIBIT_SITE_MODULES)
+fi
+
+XE_SPACE(ac_configure_args, $ac_configure_args)
+AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$ac_cv_build")
+AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args")
+
+dnl Following are deprecated
+
+null_string=""
+AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, $null_string)
+AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, $null_string)
+AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, $null_string)
+AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, $null_string)
+AC_DEFINE_UNQUOTED(C_SWITCH_SITE, $null_string)
+
+dnl Note: as a general rule, *only* define things here that are not
+dnl autodetected. For things that are autodetected, define them
+dnl at the point where the autodetection occurs or would occur,
+dnl so that the user gets immediate feedback on the results of the
+dnl autodetection.
+
+if test "$GNU_MALLOC" = "yes"; then
AC_DEFINE(GNU_MALLOC)
+elif test "$with_system_malloc" = "yes"; then
AC_DEFINE(USE_SYSTEM_MALLOC)
+elif test "$with_debug_malloc" = "yes"; then
AC_DEFINE(USE_DEBUG_MALLOC)
+ AC_DEFINE(USE_SYSTEM_MALLOC)
+fi
+test "$GCC" = "yes" && AC_DEFINE(USE_GCC)
+test "$enable_external_widget" = "yes" &&
AC_DEFINE(EXTERNAL_WIDGET)
+test "$enable_kkcc" = "yes" && AC_DEFINE(USE_KKCC)
+test "$enable_quick_build" = "yes" &&
AC_DEFINE(QUICK_BUILD)
+test "$with_purify" = "yes" && AC_DEFINE(PURIFY)
+test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY)
+test "$with_pop" = "yes" &&
AC_DEFINE(MAIL_USE_POP)
+test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS)
+test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD)
+test "$enable_union_type" = "yes" &&
AC_DEFINE(USE_UNION_TYPE)
+test "$enable_pdump" = "yes" && AC_DEFINE(PDUMP)
+test "$with_ipv6_cname" = "yes" &&
AC_DEFINE(IPV6_CANONICALIZE)
+
+
+
+dnl -------------------------------------------------------------------------
+dnl -------------------------------
+dnl Report on what we decided to do
+dnl -------------------------------
+
+dnl #### We should tag this as the _build_ environment.
+dnl Before doing that, though, must check if tools care about line 1.
+
+(
+dnl /etc/osversion is on SONY NEWS-OS
+if test -f /etc/osversion; then dnl SONY NEWS-OS
+ echo "osversion: `cat /etc/osversion`"
+else
+ echo "uname -a: `uname -a`"
+fi
+echo ""
+echo "$progname $ac_configure_args"
+) > Installation
+
+if test ! -z ${emacs_beta_version} ; then
+ if test -z "${emacs_is_beta}" ; then
+ xemacs_betaname=".${emacs_beta_version}"
+ else
+ xemacs_betaname="-b${emacs_beta_version}"
+ fi
+else
+ xemacs_betaname=""
+fi
+
+dnl Start stdout redirection to '| tee -a Installation'
+(
+echo "
+
+XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname}
\"$xemacs_codename\" $xemacs_extra_name configured for \`$ac_cv_build'.
+"
+echo "
+Compilation Environment and Installation Defaults:"
+echo " Source code location: $srcdir"
+echo " Installation prefix: $prefix"
+if test -n "$with_site_includes"; then
+ echo " Additional header files: $with_site_includes"
+fi
+if test -n "$with_site_libraries"; then
+ echo " Additional libraries: $with_site_libraries"
+fi
+if test -n "$with_site_prefixes"; then
+ echo " Additional prefixes: $with_site_prefixes"
+fi
+if test -n "$runpath"; then
+ echo " Runtime library search path: $runpath"
+fi
+
+if test -n "$opsysfile"
+then echo " Operating system description file: \`$opsysfile'"
+else echo " Not using any operating system description file"
+fi
+if test -n "$machfile"
+then echo " Machine description file: \`$machfile'"
+else echo " Not using any machine description file"
+fi
+
+echo " Compiler version: $compiler_version"
+if test -n "$gcc_compiler_specs"; then
+ echo " - GCC specs file: $gcc_compiler_specs"
+fi
+echo " - Compiler command: $XEMACS_CC $XE_CFLAGS"
+if test "$CC" != "$XEMACS_CC"; then
+ echo " Compiler version for lib-src: (detection code unimplemented)"
+ echo " - Compiler command for lib-src: $CC $CFLAGS"
+ if test "$xemacs_cc_cc_mismatch" = "yes"; then
+ echo " WARNING: CC and XEMACS_CC mismatched; check CFLAGS carefully."
+ fi
+fi
+echo " libc version: $libc_version"
+echo " Relocating allocator for buffers: $with_rel_alloc"
+echo " GNU version of malloc:
${GNU_MALLOC}${GNU_MALLOC_reason}"
+case "$ld_switch_site" in
+ *nocombreloc*) echo " Linking with \`-z nocombreloc'.
+ - Consider configuring with --enable-pdump." ;;
+esac
+
+echo "
+Window System:"
+if test "$with_msw" = "yes"; then
+ echo " Compiling in support for the Microsoft window system."
+fi
+if test "$with_x11" = "yes"; then
+ echo " Compiling in support for the X window system:"
+ echo " - X Windows headers location: $x_includes"
+ echo " - X Windows libraries location: $x_libraries"
+ if test "$with_xauth" != yes; then
+ echo " - Xau (X authority) not available."
+ fi
+ if test "$with_xmu" != yes; then
+ echo " - Xmu library not available; substituting equivalent
routines."
+ fi
+ if test "$with_wmcommand" != no; then
+ echo " - Handling WM_COMMAND properly."
+ fi
+ if test "$with_xft" = "yes"; then
+ echo " - Compiling in support for Xft antialiased fonts
(EXPERIMENTAL)."
+ fi
+fi
+if test "$need_athena" = "yes"; then
+ echo " Compiling in support for the Athena widget set:"
+ echo " - Athena headers location: $athena_h_path"
+ echo " - Athena library to link: $athena_lib"
+fi
+case "$enable_menubars" in
+ gtk ) echo " Using GTK menubars." ;;
+ lucid ) echo " Using Lucid menubars." ;;
+ motif ) echo " Using Motif menubars."
+ echo " *WARNING* The Motif menubar implementation is currently
buggy."
+ echo " We recommend using the Lucid menubar instead."
+ echo " Re-run configure with
--enable-menubars='lucid'." ;;
+ msw ) echo " Using MS-Windows menubars." ;;
+esac
+dnl this is not in xft reloaded #3
+if test "$with_xft_menubars" = "yes"; then
+ echo " - Using Xft to render antialiased fonts in menubars."
+ echo " WARNING: This feature will be replaced with a face."
+fi
+case "$enable_scrollbars" in
+ gtk ) echo " Using GTK scrollbars." ;;
+ lucid ) echo " Using Lucid scrollbars." ;;
+ motif ) echo " Using Motif scrollbars." ;;
+ athena ) echo " Using Athena scrollbars." ;;
+ msw ) echo " Using MS-Windows scrollbars." ;;
+esac
+case "$enable_dialogs" in
+ gtk ) echo " Using GTK dialog boxes." ;;
+ motif ) echo " Using Motif dialog boxes."
+ if test "$unexec" = "unexaix.o"; then if test
"`uname -v`" = 4 -a "`uname -r`" -ge 3; then
+ echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3
and higher."
+ echo " We recommend using the Athena dialog boxes
instead."
+ echo " Install libXaw and re-run configure with
--enable-dialogs='athena'."
+ echo " Read the PROBLEMS file for more
information."
+ fi; fi ;;
+ athena ) echo " Using Athena dialog boxes." ;;
+ msw ) echo " Using MS-Windows dialog boxes." ;;
+esac
+case "$enable_widgets" in
+ gtk ) echo " Using GTK native widgets." ;;
+ motif ) echo " Using Motif native widgets." ;;
+ athena ) echo " Using Athena native widgets." ;;
+ msw ) echo " Using MS-Windows native widgets." ;;
+esac
+dnl this is not in xft reloaded #3
+if test "$with_xft_tabs" = "yes"; then
+ echo " - Using Xft to render antialiased fonts in tab controls."
+ echo " WARNING: This feature will be replaced with a face."
+fi
+dnl this is not in xft reloaded #3
+if test "$with_xft_gauge" = "yes"; then
+ echo " - Using Xft to render antialiased fonts in progress bars."
+ echo " WARNING: This feature will be replaced with a face."
+ echo " WARNING: This feature not yet implemented; setting ignored."
+fi
+if test "$with_dragndrop" = yes; then
+ echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
+ echo " - Drag'n'Drop prototype:
$dragndrop_proto."
+fi
+
+echo "
+TTY:"
+test "$with_ncurses" = yes && echo " Compiling in support for
ncurses."
+test "$with_gpm" = yes && echo " Compiling in support for GPM
(General Purpose Mouse)."
+
+echo "
+Images:"
+test "$with_gif" = yes && echo " Compiling in support for GIF
images (builtin)."
+if test "$with_xpm" = yes; then
+ echo " Compiling in support for XPM images."
+elif test "$with_x11" = yes; then
+ echo " WARNING:
-----------------------------------------------------------"
+ echo " WARNING: Compiling without XPM image support."
+ if test "$xpm_problem" != ""; then
+ echo " Reason: $xpm_problem"
+ fi
+ echo " WARNING: You should strongly consider installing XPM."
+ echo " WARNING: Otherwise toolbars and other graphics will look
suboptimal."
+ echo " WARNING: (a copy may be found in
ftp://ftp.xemacs.org/pub/xemacs/aux)"
+ echo " WARNING:
-----------------------------------------------------------"
+fi
+if test "$with_png" = yes; then
+ echo " Compiling in support for PNG images."
+elif test "$window_system" != "none"; then
+ echo " WARNING:
-----------------------------------------------------------"
+ echo " WARNING: Compiling without PNG image support."
+ if test "$png_problem" != ""; then
+ echo " Reason: $png_problem"
+ fi
+ echo " WARNING: You should strongly consider installing the PNG
libraries."
+ echo " WARNING: Otherwise certain images and glyphs may not display."
+ echo " WARNING: (a copy may be found in
ftp://ftp.xemacs.org/pub/xemacs/aux)"
+ echo " WARNING:
-----------------------------------------------------------"
+fi
+test "$with_jpeg" = yes && echo " Compiling in support for JPEG
images."
+test "$with_tiff" = yes && echo " Compiling in support for TIFF
images."
+test "$with_xface" = yes && echo " Compiling in support for
X-Face message headers."
+
+echo "
+Sound:"
+test "$with_native_sound" = yes && echo " Compiling in support
for sound (native)."
+test "$with_nas_sound" = yes && echo " Compiling in support for
NAS (network audio system)."
+test "$old_nas" = yes && echo " - NAS library lacks error
trapping; will play synchronously."
+test "$with_esd_sound" = yes && echo " Compiling in support for
ESD (Enlightened Sound Daemon)."
+
+echo "
+Databases:"
+test "$with_database_berkdb" = yes && echo " Compiling in
support for Berkeley database."
+test "$with_database_dbm" = yes && echo " Compiling in
support for DBM."
+test "$with_database_gdbm" = yes && echo " Compiling in
support for GNU DBM."
+test "$with_ldap" = yes && echo " Compiling in support for
LDAP."
+if test "$with_postgresql" = yes; then
+ echo " Compiling in support for PostgreSQL."
+ echo " - Using PostgreSQL header file: $libpq_fe_h_file"
+ test "$with_postgresqlv7" = yes && echo " - Using
PostgreSQL V7 bindings."
+fi
+
+echo "
+Internationalization:"
+test "$enable_mule" = yes && echo " Compiling in support for
Mule (multi-lingual Emacs)."
+test "$with_xim" != no && echo " Compiling in support for XIM
(X11R5+ I18N input method)."
+test "$with_xim" = motif && echo " - Using Motif to provide
XIM support."
+test "$with_xim" = xlib && echo " - Using raw Xlib to provide
XIM support."
+test "$with_xfs" = yes && echo " - Using XFontSet to provide
bilingual menubar."
+test "$with_canna" = yes && echo " Compiling in support for
Canna on Mule."
+if test "$with_wnn" = yes; then
+ echo " Compiling in support for the WNN input method on Mule."
+ test "$with_wnn6" = yes && echo " - Using WNN version
6."
+fi
+
+echo "
+Mail:"
+test "$with_pop" = yes && echo " Compiling in support for POP
mail retrieval."
+test "$with_kerberos" = yes && echo " Compiling in support for
Kerberos POP authentication."
+test "$with_hesiod" = yes && echo " Compiling in support for
Hesiod POP server access."
+test -n "$with_mail_locking" && echo " Compiling in support for
\"$with_mail_locking\" mail spool file locking method."
+
+echo "
+Other Features:"
+test "$with_ipv6_cname" = no && echo " Inhibiting IPv6
canonicalization at startup."
+test "$with_tooltalk" = yes && echo " Compiling in support for
ToolTalk."
+test "$with_workshop" = yes && echo " Compiling in support for
Sun WorkShop."
+test "$with_socks" = yes && echo " Compiling in support for
SOCKS."
+test "$with_dnet" = yes && echo " Compiling in support for
DNET."
+test "$enable_modules" = "yes" && echo " Compiling in
support for dynamic shared object modules."
+test "$enable_bignum" = "gmp" && echo " Compiling in
support for more number types using the GNU MP library."
+test "$enable_bignum" = "mp" && echo " Compiling in
support for more number types using the BSD MP library."
+if test "$enable_union_type" = yes ; then
+ echo " Using the union type for Lisp_Objects."
+ echo " WARNING:
---------------------------------------------------------"
+ echo " WARNING: This tends to trigger compiler bugs, especially when"
+ echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have"
+ echo " WARNING: been seen with various versions of GCC (up to about
2.95),"
+ echo " WARNING: and recently with Visual C++ as well (mid-2003)."
+ echo " WARNING: More recent versions may be safer, or not."
+ echo " WARNING:
---------------------------------------------------------"
+fi
+test "$enable_kkcc" = yes && echo " Using the new GC
algorithms."
+test "$enable_pdump" = yes && echo " Using the new portable
dumper."
+test "$enable_debug" = yes && echo " Compiling in support for
extra debugging code."
+test "$usage_tracking" = yes && echo " Compiling in support for
active usage tracking (Sun internal)."
+if test "$error_check_extents $error_check_types $error_check_text $error_check_gc
$error_check_malloc $error_check_glyphs $error_check_byte_code $error_check_display
$error_check_structures" \
+ != "no no no no no no no no no"; then
+ echo " Compiling in support for runtime error checking."
+ echo " WARNING:
---------------------------------------------------------"
+ echo " WARNING: XEmacs will run noticeably more slowly as a result."
+ echo " WARNING: Error checking is on by default for XEmacs beta
releases."
+ echo " WARNING:
---------------------------------------------------------"
+fi
+echo ""
+) | tee -a Installation
+dnl echo "The above configure report is appended to \"Installation\"
file."
+echo ""
+
+dnl -----------------------------------
+dnl Now generate config.h and Makefiles
+dnl -----------------------------------
+AC_CONFIG_HEADER(src/config.h lwlib/config.h)
+
+dnl This has to be called in order for this variable to get into config.status
+AC_SUBST(internal_makefile_list)
+# Remove any trailing slashes in these variables.
+test -n "$prefix" &&
+ prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e
's,\([[^/]]\)/*$,\1,'`
+test -n "$exec_prefix" &&
+ exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e
's,\([[^/]]\)/*$,\1,'`
+
+dnl Build Makefile.in's from Makefile.in.in's
+dnl except ./Makefile from $srcdir/Makefile.in
+dnl src/Makefile.in will have src/depend appended to it;
+dnl module Makefiles will have the common text in
+dnl modules/common/Makefile.common appended.
+
+for file in $internal_makefile_list; do
+ case $file in
+ src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend"
;;
+ modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
+ esac
+ AC_CONFIG_FILES($file)
+done
+AC_CONFIG_FILES(src/paths.h src/xemacs.def.in lib-src/config.values)
+test "$enable_modules" = "yes" &&
AC_CONFIG_FILES(lib-src/ellcc.h)
+
+
+dnl Normally []'s are used for quoting but this will cause problems
+dnl since we use brackets in sed. When not inside of a macro definition,
+dnl two brackets become one, but inside of a macro definition you need
+dnl more, or something -- I don't understand, but Martin probably does.
+dnl We put the brackets back later.
+dnl [ben]
+
+dnl MAKE_JUNK_C(filename):
+dnl Copy a .in file to junk.c in preparation for passing through the
+dnl C preprocessor. Delete comment lines, pass lines that will be
+dnl interpreted by cpp through directly, and put quotes around remaining
+dnl lines, to avoid problems from overly helpful preprocessors that
+dnl "helpfully" put extra quotes in various places for later use by the
+dnl compiler. Later, the quotes will be removed.
+
+m4_define([MAKE_JUNK_C],
+[ rm -f junk.c
+ < $1 \
+ sed -e '/^# Generated/d' \
+ -e 's%/\*\*/#.*%%' \
+ -e 's/^ *# */#/' \
+dnl Delete Makefile.in.in comment lines
+ -e '/^##/d' \
+dnl Pass through CPP directives unchanged
+ -e '/^#/ {
+p
+d
+}' \
+dnl Quote other lines to protect from CPP substitution
+ -e '/./ {
+s/\([[\"]]\)/\\\1/g
+s/^/"/
+s/$/"/
+}' > junk.c;
+])dnl MAKE_JUNK_C
+
+dnl CPP_MAKEFILE(CPPFLAGS,filename):
+dnl Pass junk.c through the preprocessor and put the result in FILENAME.
+
+m4_define([CPP_MAKEFILE],
+[echo creating $dir/$2
+$CPP -I. -I${srcdir}/src $1 junk.c \
+dnl Delete line directives inserted by $CPP
+ | sed -e 's/^\#.*//' \
+dnl Delete spurious blanks inserted by $CPP
+ -e 's/^[[ TAB]][[ TAB]]*$//'\
+ -e 's/^ /TAB/' \
+dnl Delete blank lines
+ -e '/^[[ ]]*$/d' \
+dnl Restore lines quoted above to original contents.
+ -e '/^\"/ {
+ s/\\\([[\"]]\)/\1/g
+ s/^[[ TAB]]*\"//
+ s/\"[[ TAB]]*$//
+}' > Makefile.new
+ chmod 444 Makefile.new
+ mv -f Makefile.new $2
+])dnl CPP_MAKEFILE
+
+AC_CONFIG_COMMANDS([default],
+[for dir in . $MAKE_SUBDIR; do
+ (
+ cd $dir
+
+dnl Create a GNUmakefile and Makefile from Makefile.in.
+dnl Create xemacs.def from xemacs.def.in in the same fashion,
+dnl if it exists (i.e. in the src/ directory).
+ MAKE_JUNK_C(Makefile.in)
+ CPP_MAKEFILE(,Makefile)
+ CPP_MAKEFILE(-DUSE_GNU_MAKE,GNUmakefile)
+ if test -r "xemacs.def.in"; then
+dnl #### We should be using MAKE_JUNK_C instead of the next two lines.
+dnl #### But the comments in xemacs.def.in need to be converted from C-style
+dnl #### to lines beginning with ##.
+ rm -f junk.c
+ cp xemacs.def.in junk.c
+ CPP_MAKEFILE(,xemacs.def)
+ fi
+ rm -f junk.c
+ )
+done
+
+dnl Append AC_DEFINE information to lib-src/config.values
+dnl (AC_SUBST information is already there (see config.values.sh).
+sed < config.status >> lib-src/config.values \
+ -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
+ -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
+ -e 's/^\([[^ ]]*\) $/\1 ""/' \
+ -e 's/ 1$/ t/'
+
+],
+[CPP="$CPP"
+ MAKE_SUBDIR="$MAKE_SUBDIR"
+])dnl
+
+AC_OUTPUT()dnl
+
1.36.2.4 +1 -0 XEmacs/xemacs/configure.usage
(In the diff below, changes in quantity of whitespace are not shown.)
Index: configure.usage
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.usage,v
retrieving revision 1.36.2.3
retrieving revision 1.36.2.4
diff -u -b -r1.36.2.3 -r1.36.2.4
--- configure.usage 2004/12/11 05:12:32 1.36.2.3
+++ configure.usage 2005/02/01 15:46:18 1.36.2.4
@@ -243,6 +243,7 @@
--with-xfs Enable XFontSet support for localized menubar.
Incompatible with `--with-xim=motif' and `--with-xft'.
+
File-related options:
---------------------
1.984.2.2 +1 -1 XEmacs/xemacs/version.sh
(In the diff below, changes in quantity of whitespace are not shown.)
Index: version.sh
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/version.sh,v
retrieving revision 1.984.2.1
retrieving revision 1.984.2.2
diff -u -b -r1.984.2.1 -r1.984.2.2
--- version.sh 2004/12/11 05:12:34 1.984.2.1
+++ version.sh 2005/02/01 15:46:18 1.984.2.2
@@ -8,4 +8,4 @@
infodock_major_version=4
infodock_minor_version=0
infodock_build_version=8
-xemacs_extra_name="(+CVS-20041209)"
+xemacs_extra_name="(+Xft+CVS-20041209)"
No revision
No revision
1.178.2.2 +10 -0 XEmacs/xemacs/lib-src/ChangeLog
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lib-src/ChangeLog,v
retrieving revision 1.178.2.1
retrieving revision 1.178.2.2
diff -u -b -r1.178.2.1 -r1.178.2.2
--- ChangeLog 2004/12/11 05:12:52 1.178.2.1
+++ ChangeLog 2005/02/01 15:46:35 1.178.2.2
@@ -1,3 +1,13 @@
+2005-01-04 Malcolm Purvis <malcolmp(a)xemacs.org>
+
+ * config.values.sh (FileContents): Different regex for autoconf
+ 2.59.
+
+2004-12-19 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * make-docfile.c (write_c_args): Handle UNUSED, USED_IF macros.
+ (scan_c_file): Handle nested parens in DEFUN argument lists.
+
2004-12-06 Ben Wing <ben(a)xemacs.org>
* i.c (pump):
1.3.12.1 +1 -1 XEmacs/xemacs/lib-src/config.values.sh
(In the diff below, changes in quantity of whitespace are not shown.)
Index: config.values.sh
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lib-src/config.values.sh,v
retrieving revision 1.3
retrieving revision 1.3.12.1
diff -u -b -r1.3 -r1.3.12.1
--- config.values.sh 2001/05/17 13:44:34 1.3
+++ config.values.sh 2005/02/01 15:46:35 1.3.12.1
@@ -80,7 +80,7 @@
my %done;
for my $var (sort { $a cmp $b }
$configure_contents =~
- /^s\%\@([A-Za-z0-9_]+)\@\%\$[A-Za-z0-9_]+\%g/mg) {
+ /^s\,\@([A-Za-z0-9_]+)\@\,\$[A-Za-z0-9_]+\,;t t/mg) {
$new_cvi_contents .= "$var \"\@$var\@\"\n" unless exists
$done{$var};
$done{$var} = 1;
}
1.15.2.2 +55 -3 XEmacs/xemacs/lib-src/make-docfile.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: make-docfile.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lib-src/make-docfile.c,v
retrieving revision 1.15.2.1
retrieving revision 1.15.2.2
diff -u -b -r1.15.2.1 -r1.15.2.2
--- make-docfile.c 2004/12/11 05:12:54 1.15.2.1
+++ make-docfile.c 2005/02/01 15:46:36 1.15.2.2
@@ -525,9 +525,16 @@
char c = *p;
int ident_start = 0;
- /* XEmacs addition: add support for ANSI prototypes. Hop over
- "Lisp_Object" string (the only C type allowed in DEFUNs) */
+ /* XEmacs addition: add support for ANSI prototypes and the UNUSED
+ macros. Hop over them. "Lisp_Object" is the only C type allowed
+ in DEFUNs. For the UNUSED macros we need to eat parens, too. */
+ static char uu [] = "UNUSED";
+ static char ui [] = "USED_IF_";
static char lo[] = "Lisp_Object";
+
+ /* aren't these all vulnerable to buffer overrun? I guess that
+ means that the .c is busted, so we may as well just die ... */
+ /* skip over "Lisp_Object" */
if ((C_IDENTIFIER_CHAR_P (c) != in_ident) && !in_ident &&
(strncmp (p, lo, sizeof (lo) - 1) == 0) &&
isspace ((unsigned char) p[sizeof (lo) - 1]))
@@ -538,6 +545,45 @@
c = *p;
}
+ /* skip over "UNUSED" invocation */
+ if ((C_IDENTIFIER_CHAR_P (c) != in_ident) && !in_ident &&
+ (strncmp (p, uu, sizeof (uu) - 1) == 0))
+ {
+ char *here = p;
+ p += (sizeof (uu) - 1);
+ while (isspace ((unsigned char) (*p)))
+ p++;
+ if (*p == '(')
+ {
+ while (isspace ((unsigned char) (*++p)))
+ ;
+ c = *p;
+ }
+ else
+ p = here;
+ }
+
+ /* skip over "USED_IF_*" invocation (only if USED failed) */
+ else if ((C_IDENTIFIER_CHAR_P (c) != in_ident) && !in_ident &&
+ (strncmp (p, ui, sizeof (ui) - 1) == 0))
+ {
+ char *here = p;
+ p += (sizeof (ui) - 1);
+ /* There should be a law against parsing in C:
+ this allows a broken USED_IF call, skipping to next macro's
+ parens. *You* can fix that, I don't see how offhand. ;-) */
+ while (*p && *p++ != '(')
+ ;
+ if (*p)
+ {
+ while (isspace ((unsigned char) (*p)))
+ p++;
+ c = *p;
+ }
+ else
+ p = here;
+ }
+
/* Notice when we start printing a new identifier. */
if (C_IDENTIFIER_CHAR_P (c) != in_ident)
{
@@ -836,6 +882,7 @@
if (defunflag && maxargs != -1)
{
char argbuf[1024], *p = argbuf;
+ int paren_level = 1;
#if 0 /* For old DEFUN's only */
while (c != ')')
{
@@ -858,8 +905,13 @@
*p++ = c = getc (infile);
if (c < 0)
goto eof;
+ /* XEmacs change: handle macros with args (eg, UNUSED) */
+ if (c == ')')
+ paren_level--;
+ if (c == '(')
+ paren_level++;
}
- while (c != ')');
+ while (paren_level > 0);
*p = '\0';
/* Output them. */
if (ellcc)
No revision
No revision
1.64.2.3 +9 -0 XEmacs/xemacs/lwlib/ChangeLog
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lwlib/ChangeLog,v
retrieving revision 1.64.2.2
retrieving revision 1.64.2.3
diff -u -b -r1.64.2.2 -r1.64.2.3
--- ChangeLog 2004/12/10 06:43:24 1.64.2.2
+++ ChangeLog 2005/02/01 15:46:38 1.64.2.3
@@ -1,3 +1,12 @@
+2005-01-27 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * xlwtabs.c (DrawTab):
+ Correct geometry when clearing rectangle.
+ Remove some "check me" comments.
+ Deemphasize a lot of debugging output.
+ (TabLayout): Add debugging fprintf.
+ (TabWidth): Deemphasize some debugging output.
+
2004-12-10 Stephen J. Turnbull <stephen(a)xemacs.org>
* lwlib-Xaw.c (xaw_create_button):
1.4.2.5 +61 -36 XEmacs/xemacs/lwlib/xlwtabs.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: xlwtabs.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lwlib/xlwtabs.c,v
retrieving revision 1.4.2.4
retrieving revision 1.4.2.5
diff -u -b -r1.4.2.4 -r1.4.2.5
--- xlwtabs.c 2004/12/11 05:13:32 1.4.2.4
+++ xlwtabs.c 2005/02/01 15:46:39 1.4.2.5
@@ -82,6 +82,7 @@
#define XFT_USE_HEIGHT_NOT_ASCENT_DESCENT 0
+/* #### These should probably be resources. */
#define MIN_WID 10
#define MIN_HGT 10
#define INDENT 3 /* tabs indented from edge by this much */
@@ -925,7 +926,7 @@
if (++debug_count == debug_mask) \
{ \
debug_mask <<= 1; \
- fprintf (stderr, "\nridiculous request #%d: field %d > %d", \
+ fprintf (stderr, "ridiculous request #%d: field %d > %d\n", \
debug_count, req->field, size); \
} \
req->field = tab->core.field; \
@@ -1060,8 +1061,8 @@
get triggered forever after */
int n = control->composite.num_children;
ah = control->tabs.tab_height;
- fprintf (stderr,
- "\nkludging around %d != 1 rows, #children = %d, total height %d, using
%d",
+ fprintf (stderr, "Kludging around %d != 1 rows, #children = %d,"
+ " total height %d, using %d\n.",
check_nrows, n, th, ah);
}
@@ -1580,7 +1581,7 @@
int x,y ;
#ifdef USE_XFT_TABS
- if (debug_xft > 0) fprintf (stderr, "DrawTab called.\n");
+ if (debug_xft > 1) fprintf (stderr, "DrawTab called.\n");
#endif
if( !XtIsRealized((Widget)tw))
@@ -1606,7 +1607,7 @@
colorBG = xft_convert_color (dpy, cmap, visual,
tw->core.background_pixel, 0);
- if (debug_xft > 0)
+ if (debug_xft > 2)
fprintf (stderr, "(Re)drawing labels.\n");
#endif
@@ -1670,36 +1671,35 @@
#ifdef USE_XFT_TABS
XftDraw *xftDraw = XftDrawCreate (dpy, win, visual, cmap);
XftFont *renderFont = tw->tabs.renderFont;
- /* [[ #### FMH!! something is tromping on this string! ]]
- It appears that was due to an out of order declaration.
- GCC didn't catch that, though. */
- /* FcChar8 *llbl = lbl; */ /* strdup (lbl); */
XGlyphInfo glyphinfo;
XftColor colorDBG;
XftColorAllocName (dpy, visual, cmap, "wheat", &colorDBG);
XftTextExtents8 (dpy, renderFont, lbl, (int) strlen (lbl),
&glyphinfo);
- /* #### unnecessary? */
+ /* #### unnecessary? for the moment, give visual extent */
/* draw background rect */
#if 1
- if (debug_xft > 0)
+ if (debug_xft > 2)
+ {
fprintf (stderr, "background color: pixel=%08lx, r=%04x,"
" g=%04x, b=%04x, alpha=%04x.\n",
colorDBG.pixel, colorDBG.color.red,
colorDBG.color.green, colorDBG.color.blue,
colorDBG.color.alpha);
+ fprintf (stderr, "label geometry: x=%d, y=%d, xOff=%d,"
+ " yOff=%d, width=%d, height=%d\n",
+ glyphinfo.x, glyphinfo.y, glyphinfo.xOff,
+ glyphinfo.yOff, glyphinfo.width, glyphinfo.height);
+ }
XftDrawRect (xftDraw, &colorDBG,
- /* left, top, width, height (#### check this!) */
+ /* left, top, width, height */
x+tab->tabs.l_x-glyphinfo.x,
- y+tab->tabs.l_y-glyphinfo.height,
+ y+tab->tabs.l_y-glyphinfo.y,
glyphinfo.width, glyphinfo.height);
#endif
/* draw text */
- if (debug_xft > 0)
+ if (debug_xft > 2)
{
- /* [[ #### URK! fontconfig frees size!! ]]
- That has got to be an artifact of something writing
- through a pointer allocated on the stack. */
FcValue name;
FcValue size;
FcPatternGet (renderFont->pattern, FC_FAMILY, 0, &name);
@@ -1959,15 +1959,14 @@
+ tw->tabs.renderFont->ascent
/* #### how can this subtraction be correct? */
- tw->tabs.renderFont->descent)/2;
- if (debug_xft)
- {
+ if (debug_xft > 2)
fprintf (stderr, "tab: height=%d, width=%d, baseline=%d.\n",
tw->tabs.tab_height, tab->tabs.width, tab->tabs.l_y);
+ if (debug_xft > 1)
fprintf (stderr, "font: height=%d, ascent=%d, descent=%d.\n",
tw->tabs.renderFont->height,
tw->tabs.renderFont->ascent,
tw->tabs.renderFont->descent);
- }
#else
tab->tabs.width += XTextWidth (font, lbl, (int)strlen(lbl)) + iw;
tab->tabs.l_y = (tw->tabs.tab_height +
@@ -1988,6 +1987,18 @@
*
* TODO: if they require more than two rows and the total height:width
* ratio is more than 2:1, then try something else.
+ *
+ * TODO SOONER: for reasons unclear, some applications (specifically
+ * XEmacs) give a nominal geometry (in the core record) which doesn't
+ * make much sense (eg, may be smaller than some of the tab children).
+ * This results in bizarre values for DISPLAY_ROWS and REPLY_HEIGHT.
+ * Specify a way to say "tell me what you really want" (eg, with WID
+ * and/or HGT == 0 or == Dimension_MAX), and use it where appropriate.
+ * LATE-BREAKING LOSE: This is happening in PreferredSize()!
+ *
+ * TODO EVEN SOONER: some applications lay out the tab control by
+ * repeatedly querying until a fixed width and height has been filled
+ * by the tabs (XEmacs). There should be an API to cache this?
*/
static int
@@ -2016,21 +2027,27 @@
x = INDENT ;
y = 0 ;
wid -= INDENT ;
+#ifdef USE_XFT_TABS
+ if (debug_xft > 0)
+ fprintf (stderr, "wid=%d: x,w,y=", wid);
+#endif
for(i=num_children, childP=tw->composite.children; --i >= 0; ++childP)
if( XtIsManaged(*childP) )
{
tab = (TabsConstraints) (*childP)->core.constraints ;
w = tab->tabs.width ;
+ if (debug_xft > 0)
+ fprintf (stderr, "%d,%d,%d;", x, w, y);
if( x + w > wid ) { /* new row */
- if (y + tw->tabs.tab_height > hgt && !done)
+ ++row;
+ x = INDENT ;
+ y += tw->tabs.tab_height ;
+ if (y > hgt && !done)
{
display_rows = row;
done = 1;
}
- ++row;
- x = INDENT ;
- y += tw->tabs.tab_height ;
}
if( !query_only ) {
tab->tabs.x = x ;
@@ -2042,10 +2059,11 @@
tab->tabs.visible = 1;
}
+ if (debug_xft > 0)
+ fprintf (stderr, "\n");
/* If there was only one row, increase the height by TABDELTA */
if( ++display_rows == 1 )
{
- row++;
y = TABDELTA ;
if( !query_only )
for(i=num_children, childP=tw->composite.children;
@@ -2056,6 +2074,7 @@
tab->tabs.y = y ;
}
}
+ row++;
y += tw->tabs.tab_height ;
}
else
@@ -2066,6 +2085,12 @@
tw->tabs.numRows = display_rows ;
tw->tabs.realRows = row;
}
+
+ if (debug_xft > 0 && (row > 1 || display_rows > 1))
+ fprintf (stderr, "tab: %d display rows, #children = %d,"
+ " total height %d, total rows %d%s.\n",
+ display_rows, num_children, y, row,
+ query_only ? " (query)" : "");
if( reply_height != NULL )
*reply_height = y ;
No revision
No revision
1.269.2.3 +24 -0 XEmacs/xemacs/man/ChangeLog
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/man/ChangeLog,v
retrieving revision 1.269.2.2
retrieving revision 1.269.2.3
diff -u -b -r1.269.2.2 -r1.269.2.3
--- ChangeLog 2004/12/11 05:13:43 1.269.2.2
+++ ChangeLog 2005/02/01 15:46:42 1.269.2.3
@@ -1,3 +1,27 @@
+2005-01-16 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * internals/internals.texi (Better Rendering Support --
+ Configuration with the Interim Patches):
+ Improve notes on configuration.
+
+2004-12-15 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * internals/internals.texi (Better Rendering Support --
+ Configuration with the Interim Patches): Menubar uses xftFont
+ resource, too.
+
+2005-01-16 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * internals/internals.texi (Better Rendering Support --
+ Configuration with the Interim Patches):
+ Improve notes on configuration.
+
+2004-12-15 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * internals/internals.texi (Better Rendering Support --
+ Configuration with the Interim Patches): Menubar uses xftFont
+ resource, too.
+
2004-12-10 Stephen J. Turnbull <stephen(a)xemacs.org>
* internals/internals.texi (Better Rendering Support --
No revision
No revision
1.52.2.3 +81 -39 XEmacs/xemacs/man/internals/internals.texi
(In the diff below, changes in quantity of whitespace are not shown.)
Index: internals.texi
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/man/internals/internals.texi,v
retrieving revision 1.52.2.2
retrieving revision 1.52.2.3
diff -u -b -r1.52.2.2 -r1.52.2.3
--- internals.texi 2004/12/11 05:14:23 1.52.2.2
+++ internals.texi 2005/02/01 15:46:44 1.52.2.3
@@ -22998,7 +22998,7 @@
don't blame Ben (or Eric and Matthias, for that matter). Feel free to
add, edit, and share the blame, guys!
-@c #### make these @urlref's!!
+@c #### Make these @urlref's!!
As of late November 2004, this principally means adding support for the
@file{Xft} library, which provides a more robust @emph{font
configuration} mechanism via Keith Packard's @file{fontconfig} library
@@ -23011,7 +23011,7 @@
@emph{face} support; @emph{widget} support (including the toolbar and
menubar); and @emph{redisplay refactoring}.
-@c Describe Alexey Gladkov and Yury Konovalov's work.
+@c #### Describe Alexey Gladkov and Yury Konovalov's work.
However, in late 2003 Eric Knauel <knauel@(a)informatik.uni-tuebingen.de>
and Matthias Neubauer <neubauer@(a)informatik.uni-freiburg.de> put forward
@@ -23022,15 +23022,15 @@
one may be made available for the Knauel-Matthias patch soon.
@menu
-* Better Rendering Support -- Issues::
+* Better Rendering Support -- Review Criteria::
* Better Rendering Support -- Implementation::
* Better Rendering Support -- Current Status::
* Better Rendering Support -- Configuration with the Interim Patches::
@end menu
-@node Better Rendering Support -- Issues, Better Rendering Support -- Implementation, ,
Future Work -- Better Rendering Support
-@subsection Better Rendering Support -- Issues
+@node Better Rendering Support -- Review Criteria, Better Rendering Support --
Implementation, , Future Work -- Better Rendering Support
+@subsection Better Rendering Support -- Review Criteria
@cindex better rendering support, issues
@cindex issues, better rendering support
@@ -23067,7 +23067,7 @@
to properly support display of different faces in non-buffer, non-window
contexts.
-@node Better Rendering Support -- Implementation, Better Rendering Support -- Current
Status, Better Rendering Support -- Issues, Future Work -- Better Rendering Support
+@node Better Rendering Support -- Implementation, Better Rendering Support -- Current
Status, Better Rendering Support -- Review Criteria, Future Work -- Better Rendering
Support
@subsection Better Rendering Support -- Implementation
@cindex better rendering support, implementation
@cindex implementation, better rendering support
@@ -23091,6 +23091,15 @@
of @file{Xft}'s rendering functionality should be separated from use of
@file{fontconfig}.
+@item fontconfig
+Fontconfig is dramatically different from the X model in several ways.
+In particular, @emph{fontconfig always returns a font}. However, the
+font returned need not be anything like the desired font. This means
+that XEmacs must adopt a strategy of delegating the search to
+fontconfig, then sanity-checking the return, rather than trying to use
+the fontconfig API to search using techniques appropriate for the X11
+core font API.
+
@item Font menus
The @samp{Options->Font} and @samp{Options->Font Sizes} menus are
broken, by design, not just by @file{Xft}. Although they work better
@@ -23259,6 +23268,26 @@
These menus don't work. All fonts are greyed out. All sizes are
available, but many (most?) faces don't change size, in particular,
@samp{default} does not.
+
+@item Antialiased text bleeding outside of reported extent
+On my PowerBook G4 Titanium 15" screen, X.org server v6.8.1,
+ dimensions: 1280x833 pixels (433x282 millimeters),
+ resolution: 75x75 dots per inch,
+ depth of root window: 24 planes
+(yes, those dimensions are broken),
+with font "Bitstream Vera Sans Mono-16:dpi=75" antialiased text may
+bleed out of the extent reported by XftTextExtents and other such
+facilities. This is most obvious with the underscore character in that
+font. The bottom of the underscore is antialiased, and insertions or
+deletions in the same line before the underscore leave a series of
+"phantom" underlines. Except that it doesn't happen on the very first
+such insertion or deletion after a window refresh. A similar effect
+sometimes occurs with deletions at the end of the line (no, I can't
+define "sometimes"). See also comments in @file{redisplay-x.c},
+functions @code{x_output_string} and @code{x_output_display_block}.
+(Mostly duplicated here.)
+
+I think this is probably an Xft bug, but I'm not sure.
@end table
@@ -23271,44 +23300,25 @@
mind when configuring:
@itemize
-@item
-The only way to configure widget fonts at the present time is to use X
-resources (or hack the source and rebuild). Currently supported widgets
-are
-@itemize
-@item
-menubars
@item
-tab controls
-@end itemize
-
-Here are the resources I use. @strong{Warning:} @emph{This interface
-will change.} The tab control has separate Font and XftFont resources,
-and uses the X resource manager to instantiate a FontStruct from the
-Font resource. The menubar on the other hand uses Font for both, but
-converts to FontStruct if Xft is not compiled in, and leaves it as a
-string if Xft is compiled in. There is no equivalent facility for
-XftFont yet, and creating one that handles both FontStruct and XftFont
-depending on XEmacs's configuration and the font name seems error-prone
-at best. Probably we will revert to a simple string representation for
-this resource, and convert to a face in XEmacs rather than a font in
-Xt/Xft.
-@example
-XEmacs*Tabs.xftFont: Bitstream Vera Sans-18
-XEmacs*menubar.font: Bitstream Vera Sans-18
-XEmacs.modeline.attributeFont: Bitstream Charter-26
-XEmacs.default.attributeFont: Bitstream Vera Sans Mono-24
-@end example
-No, I don't understand why I need to use different point sizes to get
-what looks like good balance to my eyes. I do highly recommend use of a
-proportional font in the modeline because it allows a lot more text to
-fit there.
+Although the menus don't work, it is possible to specify fonts for
+@emph{faces} using @code{set-face-font} (and other specifier-changing
+functions).
+
+There currently is no explicit way to specify that a particular font be
+used only for a given language. However, since many fonts support only
+a limited repertoire such as ISO 8859/1, you can use the precedence of
+specifications for a given specifier locale to get something of this
+effect for non-Latin character sets. This will normally work rather
+poorly for multiple Latin character sets, however, because the
+repertoires tend to have large amounts of overlap. Support for
+specifying font by @emph{language} as well as by character set is
+planned.
-@item
Because fonts supporting other languages tend to support English as
well, if you want to use one font for English and another for the other
language, you must use the @code{append} method when adding font
-specifications for the other language.
+specifications for the @emph{other} language.
However, this leaves you with a problem if you want to change the other
language's font: you have to remove the existing specification so it
@@ -23326,6 +23336,38 @@
(set-face-font 'default "Mikachan-14"
nil '(lang-ja) 'remove-tag-set-append)
@end example
+
+@item
+The only way to configure widget fonts at the present time is to use X
+resources (or hack the source and rebuild). Currently supported widgets
+are
+@itemize
+@item
+menubars
+@item
+tab controls
+@end itemize
+
+Here are the resources I use. @strong{Warning:} @emph{This interface
+will change.} The tab control and menubar have separate Font and
+XftFont resources, and use the X resource manager to instantiate a
+FontStruct from the Font resource. There is no converter facility for
+XftFont yet, and creating one that handles both FontStruct and XftFont
+depending on XEmacs's configuration and the font name seems error-prone
+at best. Probably we will should to a simple string representation for
+this resource, and convert to a face in XEmacs rather than a font in
+Xt/Xft.
+@example
+XEmacs*Tabs.xftFont: Bitstream Vera Sans-16
+XEmacs*menubar*xftFont: Bitstream Vera Sans-16
+XEmacs.modeline.attributeFont: Bitstream Charter-16
+XEmacs.default.attributeFont: Bitstream Vera Sans Mono-16
+@end example
+I highly recommend use of a proportional font in the modeline because it
+allows a lot more text to fit there. (Previously the font sizes were
+quite varied, and there was a comment that this weirdness gave good
+balance. This isn't true on my main platform, Mac OS X, and needs to be
+rechecked on Linux, where it was observed.)
@end itemize
No revision
No revision
1.758.2.4 +57 -0 XEmacs/xemacs/src/ChangeLog
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.758.2.3
retrieving revision 1.758.2.4
diff -u -b -r1.758.2.3 -r1.758.2.4
--- ChangeLog 2004/12/11 05:15:25 1.758.2.3
+++ ChangeLog 2005/02/01 15:46:48 1.758.2.4
@@ -1,3 +1,60 @@
+2005-02-01 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * redisplay-x.c (separate_textual_runs): Check for MULE properly.
+
+2005-01-04 Malcolm Purvis <malcolmp(a)xemacs.org>
+
+ * config.h.in: Remove trailing comments, which autoconf 2.59 does
+ not like. Use autoconf 2.59's HAVE_DECL_SYS_SIGLIST instead of
+ SYS_SIGLIST_DECLARED.
+ * syssignal.h: Use autoconf 2.59's HAVE_DECL_SYS_SIGLIST instead of
+ SYS_SIGLIST_DECLARED.
+
+2005-01-28 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * glyphs-widget.c (Fwidget_logical_to_character_height):
+ (Fwidget_logical_to_character_width):
+ (layout_query_geometry):
+ (widget_update):
+ Fix typos in docstrings and preceding comments.
+
+2005-01-26 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * redisplay-x.c (x_output_string): Position strikethru by dl
+ geometry. Kludge to fix remnants from antialiased underscores.
+
+2004-12-19 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * compiler.h (UNUSED): Document make-docfile.c hack.
+
+2004-12-19 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * keymap.c (Fwhere_is_internal): Rewrite docstring.
+
+2004-12-15 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * EmacsManager.c (EmacsManagerChangeSize): Exit immediately if
+ geometry change refused. Fixes notorious metacity maximize bug.
+
+2004-12-19 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * glyphs-x.c,objects-x.c: Deemphasize warnings (to debug or alert).
+
+ * redisplay-x.c: Don't abort() when ichar_to_unicode returns error.
+
+2004-12-19 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * keymap.c (Fwhere_is_internal): Rewrite docstring.
+
+2004-12-15 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * EmacsManager.c (EmacsManagerChangeSize): Exit immediately if
+ geometry change refused. Fixes notorious metacity maximize bug.
+
+2004-12-17 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * regex.c (re_match_2_internal): DEBUG_PRINT "can match null".
+
2004-12-10 Stephen J. Turnbull <stephen(a)xemacs.org>
* redisplay-x.c (x_text_width_single_run): Whitespace improvement.
1.6.2.1 +9 -5 XEmacs/xemacs/src/EmacsManager.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: EmacsManager.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/EmacsManager.c,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -b -r1.6 -r1.6.2.1
--- EmacsManager.c 2004/09/20 19:19:34 1.6
+++ EmacsManager.c 2005/02/01 15:46:51 1.6.2.1
@@ -243,11 +243,15 @@
/* do nothing if we're already that size */
if (w->core.width != width || w->core.height != height)
- if (XtMakeResizeRequest (w, width, height, &w->core.width,
&w->core.height)
- == XtGeometryAlmost)
+ {
+ XtGeometryResult result =
+ XtMakeResizeRequest (w, width, height, &w->core.width,
&w->core.height);
+ if (result == XtGeometryNo)
+ return;
+ if (result == XtGeometryAlmost)
XtMakeResizeRequest (w, w->core.width, w->core.height, NULL, NULL);
-
Resize (w);
+ }
}
1.6.2.1 +1 -0 XEmacs/xemacs/src/EmacsShell-sub.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: EmacsShell-sub.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/EmacsShell-sub.c,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -b -r1.6 -r1.6.2.1
--- EmacsShell-sub.c 2003/02/14 07:38:30 1.6
+++ EmacsShell-sub.c 2005/02/01 15:46:52 1.6.2.1
@@ -245,6 +245,7 @@
cell_height = w->wm.size_hints.height_inc;
base_width = width - cell_width * w->emacs_shell.width_cells;
base_height = height - cell_height * w->emacs_shell.height_cells;
+#define DEBUG_GEOMETRY_MANAGEMENT
#ifdef DEBUG_GEOMETRY_MANAGEMENT
/* Very useful info when debugging geometry management problems.
When it's guaranteed that no more such problems exist, take
1.8.2.2 +7 -0 XEmacs/xemacs/src/compiler.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: compiler.h
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/compiler.h,v
retrieving revision 1.8.2.1
retrieving revision 1.8.2.2
diff -u -b -r1.8.2.1 -r1.8.2.2
--- compiler.h 2004/12/10 06:43:47 1.8.2.1
+++ compiler.h 2005/02/01 15:46:52 1.8.2.2
@@ -195,6 +195,13 @@
#endif /* ATTRIBUTE_CONST */
/* Unused declarations; g++ and icc do not support this. */
+/*
+ NOTE: These macros MUST be named UNUSED (exactly) or something
+ prefixed with USED_IF_, or DEFUN docstrings will be parsed incorrectly.
+ See comments in make_docfile.c (write_c_args). You'd think that this
+ wouldn't happen, but unfortunately we do indeed have some arguments
+ of DEFUNs unused for GNU compatibility.
+*/
#ifndef UNUSED_ARG
# define UNUSED_ARG(decl) unused_##decl
#endif
1.95.2.3 +35 -18 XEmacs/xemacs/src/config.h.in
(In the diff below, changes in quantity of whitespace are not shown.)
Index: config.h.in
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/config.h.in,v
retrieving revision 1.95.2.2
retrieving revision 1.95.2.3
diff -u -b -r1.95.2.2 -r1.95.2.3
--- config.h.in 2004/12/10 06:43:47 1.95.2.2
+++ config.h.in 2005/02/01 15:46:52 1.95.2.3
@@ -329,7 +329,7 @@
#undef HAVE_LIBRESOLV
/* Is `sys_siglist' declared by <signal.h>? */
-#undef SYS_SIGLIST_DECLARED
+#undef HAVE_DECL_SYS_SIGLIST
/* Is `struct timeval' declared by <sys/time.h>? */
#undef HAVE_TIMEVAL
@@ -424,22 +424,38 @@
#undef HAVE_SIGSETJMP
/* Many flavors of PTY support */
-#undef HAVE_GETPT /* glibc's easy pty allocation function */
-#undef HAVE__GETPTY /* SGI's easy pty allocation function */
-#undef HAVE_OPENPTY /* BSD's easy pty allocation function */
-#undef HAVE_GRANTPT /* Unix98 */
-#undef HAVE_UNLOCKPT /* Unix98 */
-#undef HAVE_PTSNAME /* Unix98 */
-#undef HAVE_KILLPG /* BSD */
-#undef HAVE_TCGETPGRP /* Posix 1 */
-#undef HAVE_ISASTREAM /* SysV streams */
-#undef HAVE_SYS_PTY_H /* AIX */
-#undef HAVE_SYS_PTYIO_H /* HP-UX */
-#undef HAVE_PTY_H /* Linux, Tru64 */
-#undef HAVE_LIBUTIL_H /* BSD openpty */
-#undef HAVE_UTIL_H /* NetBSD openpty */
-#undef HAVE_STROPTS_H /* SysV streams */
-#undef HAVE_STRTIO_H /* SysV streams TIOCSIGNAL */
+/* glibc's easy pty allocation function */
+#undef HAVE_GETPT
+/* SGI's easy pty allocation function */
+#undef HAVE__GETPTY
+/* BSD's easy pty allocation function */
+#undef HAVE_OPENPTY
+/* Unix98 */
+#undef HAVE_GRANTPT
+/* Unix98 */
+#undef HAVE_UNLOCKPT
+/* Unix98 */
+#undef HAVE_PTSNAME
+/* BSD */
+#undef HAVE_KILLPG
+/* Posix 1 */
+#undef HAVE_TCGETPGRP
+/* SysV streams */
+#undef HAVE_ISASTREAM
+/* AIX */
+#undef HAVE_SYS_PTY_H
+/* HP-UX */
+#undef HAVE_SYS_PTYIO_H
+/* Linux, Tru64 */
+#undef HAVE_PTY_H
+/* BSD openpty */
+#undef HAVE_LIBUTIL_H
+/* NetBSD openpty */
+#undef HAVE_UTIL_H
+/* SysV streams */
+#undef HAVE_STROPTS_H
+/* SysV streams TIOCSIGNAL */
+#undef HAVE_STRTIO_H
#undef HAVE_SOCKETS
#undef HAVE_SOCKADDR_SUN_LEN
@@ -516,7 +532,8 @@
/* Do we have PostgreSQL RDBMS support? */
#undef HAVE_POSTGRESQL
#undef HAVE_POSTGRESQLV7
-#undef LIBPQ_FE_H_FILE /* main PostgreSQL header file */
+/* main PostgreSQL header file */
+#undef LIBPQ_FE_H_FILE
/* Do you have the Xauth library present? This will add some extra
functionality to gnuserv. */
1.51.2.1 +4 -3 XEmacs/xemacs/src/depend
(In the diff below, changes in quantity of whitespace are not shown.)
Index: depend
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/depend,v
retrieving revision 1.51
retrieving revision 1.51.2.1
diff -u -b -r1.51 -r1.51.2.1
--- depend 2004/11/04 23:06:19 1.51
+++ depend 2005/02/01 15:46:53 1.51.2.1
@@ -48,8 +48,8 @@
gui-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h buffer.h bufslots.h casetab.h charset.h
chartab.h conslots.h console-impl.h console-x-impl.h console-x.h console.h device-impl.h
device.h devslots.h events.h frame.h glyphs.h gui.h menubar.h opaque.h redisplay.h
scrollbar.h specifier.h systime.h window-impl.h window.h winslots.h xintrinsic.h xmotif.h
intl-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h console-x.h console.h xintrinsic.h
menubar-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h EmacsFrame.h buffer.h bufslots.h
casetab.h charset.h chartab.h commands.h conslots.h console-impl.h console-x-impl.h
console-x.h console.h device-impl.h device.h devslots.h events.h frame-impl.h frame.h
frameslots.h gui.h keymap.h menubar.h opaque.h redisplay.h scrollbar.h systime.h
window-impl.h window.h winslots.h xintrinsic.h
-objects-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h charset.h conslots.h console-impl.h
console-x-impl.h console-x.h console.h device-impl.h device.h devslots.h insdel.h
objects-impl.h objects-x-impl.h objects-x.h objects.h specifier.h xintrinsic.h
-redisplay-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h EmacsFrame.h EmacsFrameP.h buffer.h
bufslots.h casetab.h charset.h chartab.h coding-system-slots.h conslots.h console-impl.h
console-x-impl.h console-x.h console.h debug.h device-impl.h device.h devslots.h faces.h
file-coding.h frame-impl.h frame.h frameslots.h glyphs-x.h glyphs.h gutter.h mule-ccl.h
objects-impl.h objects-x-impl.h objects-x.h objects.h redisplay.h scrollbar.h specifier.h
sysdep.h sysproc.h syssignal.h systime.h window-impl.h window.h winslots.h xgccache.h
xintrinsic.h xintrinsicp.h xmotif.h xmprimitivep.h
+objects-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h charset.h conslots.h console-impl.h
console-x-impl.h console-x.h console.h device-impl.h device.h devslots.h insdel.h
objects-impl.h objects-x-impl.h objects-x.h objects.h specifier.h xft-fonts.h
xintrinsic.h
+redisplay-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h EmacsFrame.h EmacsFrameP.h buffer.h
bufslots.h casetab.h charset.h chartab.h coding-system-slots.h conslots.h console-impl.h
console-x-impl.h console-x.h console.h debug.h device-impl.h device.h devslots.h faces.h
file-coding.h frame-impl.h frame.h frameslots.h glyphs-x.h glyphs.h gutter.h mule-ccl.h
objects-impl.h objects-x-impl.h objects-x.h objects.h redisplay.h scrollbar.h specifier.h
sysdep.h sysproc.h syssignal.h systime.h window-impl.h window.h winslots.h xft-fonts.h
xgccache.h xintrinsic.h xintrinsicp.h xmotif.h xmprimitivep.h
scrollbar-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h EmacsFrame.h conslots.h console-impl.h
console-x-impl.h console-x.h console.h device-impl.h device.h devslots.h frame-impl.h
frame.h frameslots.h glyphs-x.h glyphs.h redisplay.h scrollbar-x.h scrollbar.h specifier.h
window-impl.h window.h winslots.h xintrinsic.h
select-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h charset.h conslots.h console-impl.h
console-x-impl.h console-x.h console.h device-impl.h device.h devslots.h frame-impl.h
frame.h frameslots.h objects-x.h objects.h opaque.h redisplay.h select-common.h select.h
systime.h xintrinsic.h xmotif.h
toolbar-x.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h EmacsFrame.h EmacsFrameP.h charset.h
conslots.h console-impl.h console-x-impl.h console-x.h console.h faces.h frame-impl.h
frame.h frameslots.h glyphs-x.h glyphs.h objects-x.h objects.h redisplay.h scrollbar.h
specifier.h toolbar-common.h toolbar.h window-impl.h window.h winslots.h xintrinsic.h
xintrinsicp.h xmotif.h xmprimitivep.h
@@ -169,7 +169,7 @@
hpplay.o: $(LISP_H) buffer.h bufslots.h casetab.h charset.h chartab.h sound.h
imgproc.o: $(LISP_H) imgproc.h
indent.o: $(LISP_H) buffer.h bufslots.h casetab.h charset.h chartab.h console.h
device.h extents.h faces.h frame.h glyphs.h insdel.h redisplay.h scrollbar.h specifier.h
window-impl.h window.h winslots.h
-inline.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h buffer.h bufslots.h bytecode.h casetab.h
charset.h chartab.h coding-system-slots.h conslots.h console-gtk.h console-impl.h
console-msw.h console.h database.h device-impl.h device.h devslots.h elhash.h events.h
extents-impl.h extents.h faces.h file-coding.h frame-impl.h frame.h frameslots.h
glyphs-x.h glyphs.h gui.h intl-auto-encap-win32.h keymap.h lstream.h objects-impl.h
objects.h opaque.h process.h rangetab.h redisplay.h scrollbar.h specifier.h syntax.h
sysdll.h sysfile.h systime.h syswindows.h toolbar.h tooltalk.h ui-gtk.h window-impl.h
window.h winslots.h xintrinsic.h
+inline.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h buffer.h bufslots.h bytecode.h casetab.h
charset.h chartab.h coding-system-slots.h conslots.h console-gtk.h console-impl.h
console-msw.h console.h database.h device-impl.h device.h devslots.h elhash.h events.h
extents-impl.h extents.h faces.h file-coding.h frame-impl.h frame.h frameslots.h
glyphs-x.h glyphs.h gui.h intl-auto-encap-win32.h keymap.h lstream.h objects-impl.h
objects.h opaque.h process.h rangetab.h redisplay.h scrollbar.h specifier.h syntax.h
sysdll.h sysfile.h systime.h syswindows.h toolbar.h tooltalk.h ui-gtk.h window-impl.h
window.h winslots.h xft-fonts.h xintrinsic.h
input-method-motif.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h EmacsFrame.h conslots.h
console-impl.h console-x-impl.h console-x.h console.h device.h frame-impl.h frame.h
frameslots.h redisplay.h xintrinsic.h xmotif.h
input-method-xlib.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h EmacsFrame.h buffer.h bufslots.h
casetab.h charset.h chartab.h conslots.h console-impl.h console-x-impl.h console-x.h
console.h device-impl.h device.h devslots.h events.h frame-impl.h frame.h frameslots.h
redisplay.h scrollbar.h systime.h window-impl.h window.h winslots.h xintrinsic.h
insdel.o: $(LISP_H) buffer.h bufslots.h casetab.h charset.h chartab.h console.h
device.h extents.h frame.h insdel.h line-number.h lstream.h redisplay.h
@@ -265,4 +265,5 @@
widget.o: $(LISP_H) buffer.h bufslots.h casetab.h charset.h chartab.h
win32.o: $(LISP_H) buffer.h bufslots.h casetab.h charset.h chartab.h console-msw.h
console.h intl-auto-encap-win32.h sysfile.h sysproc.h syssignal.h systime.h syswindows.h
window.o: $(LISP_H) buffer.h bufslots.h casetab.h charset.h chartab.h commands.h
conslots.h console-impl.h console.h device-impl.h device.h devslots.h elhash.h faces.h
frame-impl.h frame.h frameslots.h glyphs.h gutter.h objects.h redisplay.h scrollbar.h
specifier.h window-impl.h window.h winslots.h
+xft-fonts.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h conslots.h console-impl.h
console-x-impl.h console-x.h console.h device-impl.h device.h devslots.h objects-impl.h
objects-x-impl.h objects-x.h objects.h specifier.h xft-fonts.h xintrinsic.h
xmu.o: $(CONFIG_H)
1.43.2.2 +5 -2 XEmacs/xemacs/src/faces.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: faces.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/faces.c,v
retrieving revision 1.43.2.1
retrieving revision 1.43.2.2
diff -u -b -r1.43.2.1 -r1.43.2.2
--- faces.c 2004/11/25 12:44:13 1.43.2.1
+++ faces.c 2005/02/01 15:46:53 1.43.2.2
@@ -2016,8 +2016,11 @@
#ifdef USE_XFT
/************** Xft fonts *************/
- "Courier", /* Western #### add encoding info? */
- "Sazanami Mincho" /* Japanese #### add encoding info? */
+ /* Blow me! there really doesn't seem to a standard Xft font.
+ Note that fontconfig can search for several font families in one
+ call. We should use this facility. */
+ "Courier-12", /* Western #### add encoding info? */
+ "Sazanami Mincho-12", /* Japanese #### add encoding info? */
/* Arphic for Chinese? */
/* Korean */
#else
1.68.2.2 +1 -0 XEmacs/xemacs/src/frame-x.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: frame-x.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/frame-x.c,v
retrieving revision 1.68.2.1
retrieving revision 1.68.2.2
diff -u -b -r1.68.2.1 -r1.68.2.2
--- frame-x.c 2004/11/25 12:44:13 1.68.2.1
+++ frame-x.c 2005/02/01 15:46:54 1.68.2.2
@@ -283,6 +283,7 @@
if (!XtIsWMShell (wmshell))
abort ();
+#define DEBUG_GEOMETRY_MANAGEMENT
#ifdef DEBUG_GEOMETRY_MANAGEMENT
/* See comment in EmacsShell.c */
printf ("x_wm_set_variable_size: %d %d\n", width, height);
1.17.2.2 +5 -5 XEmacs/xemacs/src/glyphs-widget.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: glyphs-widget.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/glyphs-widget.c,v
retrieving revision 1.17.2.1
retrieving revision 1.17.2.2
diff -u -b -r1.17.2.1 -r1.17.2.2
--- glyphs-widget.c 2004/12/10 06:43:48 1.17.2.1
+++ glyphs-widget.c 2005/02/01 15:46:54 1.17.2.2
@@ -346,7 +346,7 @@
#### property is still a valid function since we have to be able to
extract information from the actual widget.
- #### update_widget should probably be re-written to use the
+ #### widget_update should probably be re-written to use the
instantiator. We probably want to keep a record of the differences
also to make this easy. We would also need a pending_instantiator
so that changes could be delayed. */
@@ -1296,7 +1296,7 @@
allow users to stack widgets vertically or horizontally. These
layouts also allow the widgets to be centered (space evenly
distributed), left or right justified (fixed spacing widgets
- stacked against the left, righ, top or bottom edge). Unfortunately
+ stacked against the left, right, top or bottom edge). Unfortunately
this doesn't allow widgets in different layouts to be aligned. For
instance how should the search dialog be organized for alignment?
The obvious choice of two vertical columns does not work since the
@@ -1642,8 +1642,8 @@
DEFUN ("widget-logical-to-character-width",
Fwidget_logical_to_character_width, 1, 3, 0, /*
Convert the width in logical widget units to characters.
-Logical widget units do not take into account adjusments made for
-layout borders, so this adjusment is approximated.
+Logical widget units do not take into account adjustments made for
+layout borders, so this adjustment is approximated.
*/
(width, UNUSED (face), domain))
{
@@ -1668,7 +1668,7 @@
DEFUN ("widget-logical-to-character-height",
Fwidget_logical_to_character_height, 1, 3, 0, /*
Convert the height in logical widget units to characters.
-Logical widget units do not take into account adjusments made for
+Logical widget units do not take into account adjustments made for
layout borders, so this adjustment is approximated.
If the components of a widget layout are justified to the top or the
1.80.2.4 +1 -1 XEmacs/xemacs/src/glyphs-x.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: glyphs-x.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/glyphs-x.c,v
retrieving revision 1.80.2.3
retrieving revision 1.80.2.4
diff -u -b -r1.80.2.3 -r1.80.2.4
--- glyphs-x.c 2004/12/11 05:16:15 1.80.2.3
+++ glyphs-x.c 2005/02/01 15:46:55 1.80.2.4
@@ -2342,7 +2342,7 @@
lw_add_widget_value_arg (wv, XtNfont, (XtArgVal) fs);
else
warn_when_safe_lispobj
- (intern ("xft"), Qwarning,
+ (intern ("xft"), Qdebug,
Fcons (build_string ("missing font in update_widget_face"),
Fface_name (face)));
}
1.52.2.2 +9 -6 XEmacs/xemacs/src/keymap.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: keymap.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/keymap.c,v
retrieving revision 1.52.2.1
retrieving revision 1.52.2.2
diff -u -b -r1.52.2.1 -r1.52.2.2
--- keymap.c 2004/12/11 05:16:16 1.52.2.1
+++ keymap.c 2005/02/01 15:46:56 1.52.2.2
@@ -3458,17 +3458,20 @@
Return list of keys that invoke DEFINITION in KEYMAPS.
KEYMAPS can be either a keymap (meaning search in that keymap and the
current global keymap) or a list of keymaps (meaning search in exactly
-those keymaps and no others). If KEYMAPS is nil, search in the currently
-applicable maps for EVENT-OR-KEYS (this is equivalent to specifying
-`(current-keymaps EVENT-OR-KEYS)' as the argument to KEYMAPS).
+those keymaps and no others).
If optional 3rd arg FIRSTONLY is non-nil, return a vector representing
the first key sequence found, rather than a list of all possible key
sequences.
-If optional 4th arg NOINDIRECT is non-nil, don't follow indirections
- to other keymaps or slots. This makes it possible to search for an
- indirect definition itself.
+Optional 4th argument NOINDIRECT is ignored. (GNU Emacs uses it to allow
+searching for an indirect keymap by inhibiting following of indirections to
+keymaps or slots, but XEmacs doesn't need it because keymaps are a type.)
+
+If optional 5th argument EVENT-OR-KEYS is non-nil and KEYMAPS is nil,
+search in the currently applicable maps for EVENT-OR-KEYS (this is
+equivalent to specifying `(current-keymaps EVENT-OR-KEYS)' as the
+argument to KEYMAPS).
*/
(definition, keymaps, firstonly, UNUSED (noindirect), event_or_keys))
{
1.26.2.6 +50 -17 XEmacs/xemacs/src/objects-x.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: objects-x.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/objects-x.c,v
retrieving revision 1.26.2.5
retrieving revision 1.26.2.6
diff -u -b -r1.26.2.5 -r1.26.2.6
--- objects-x.c 2004/12/11 05:16:25 1.26.2.5
+++ objects-x.c 2005/02/01 15:46:56 1.26.2.6
@@ -214,7 +214,7 @@
LISP_STRING_TO_EXTERNAL (f->name, extname, Qx_font_name_encoding);
#ifdef USE_XFT
- if (debug_xft > 0)
+ if (debug_xft > 2)
stderr_out ("attempting to initialize font spec %s\n", extname);
/* #### serialize (optimize) these later... */
/* #### This function really needs to go away.
@@ -254,6 +254,14 @@
if (rf)
/* Have an Xft font, initialize font info from it. */
{
+ if (debug_xft > 2)
+ stderr_out ("pre-initial ascent %d descent %d width %d height %d\n",
+ f->ascent, f->descent, f->width, f->height);
+
+ /* #### This shit is just plain wrong unless we have a character cell
+ font. It really hoses us on large repertoire Unicode fonts with
+ "double-width" characters. */
+ /* #### We just init'ed the memory; these are all zero to start. */
if (f->ascent < rf->ascent)
f->ascent = rf->ascent;
if (f->descent < rf->descent)
@@ -262,9 +270,12 @@
f->width = rf->max_advance_width;
if (f->height < rf->height)
f->height = rf->height;
- /* #### is this right? See comment on proportional_p below. */
+ /* #### Is this right? See comment on proportional_p below. */
f->proportional_p = 1; /* we can't recognize monospaced fonts! */
+ if (debug_xft > 1)
+ stderr_out ("initialized ascent %d descent %d width %d height %d\n",
+ f->ascent, f->descent, f->width, f->height);
if (debug_xft > 0)
stderr_out ("initialized Xft font %s\n", extname);
}
@@ -342,10 +353,11 @@
#ifdef USE_XFT
if (debug_xft > 0)
{
+ int n = 3, d = 5;
/* #### check for weirdness */
- if (f->height < f->width)
- stderr_out ("width of font %s is %d, larger than its height %d\n",
- extname, f->width, f->height);
+ if (n*f->height < d*f->width)
+ stderr_out ("width of %s is %d, larger than %d/%d its height %d\n",
+ extname, f->width, n, d, f->height);
stderr_out ("initialized Xft font %s\n", extname);
}
#else
@@ -1026,7 +1038,7 @@
LISP_STRING_TO_EXTERNAL (font, patternext, Qx_font_name_encoding);
#ifdef USE_XFT
- if (debug_xft > 0)
+ if (debug_xft > 1)
stderr_out ("confirming charset for font instance %s\n", patternext);
/* #### totally lazy, let's just get something out the door */
waste = FcInit ();
@@ -1041,11 +1053,11 @@
/* #### There's probably a way to do this with FcCharsets, but isn't
the language approach better in the long run? */
/* #### can we regression test this, or does it break too early? */
- if (debug_xft > 0)
+ if (debug_xft > 1)
stderr_out ("FcNameParse'ed name is %s\n",
FcNameUnparse (patternxft));
FcConfigSubstitute (fcc, patternxft, FcMatchFont);
- if (debug_xft > 0)
+ if (debug_xft > 1)
stderr_out ("FcConfigSubstitute'ed name is %s\n",
FcNameUnparse (patternxft));
FcDefaultSubstitute (patternxft);
@@ -1069,8 +1081,8 @@
else
{
/* #### is this the right way to make a warning? */
- warn_when_safe_lispobj (intern ("xft"), Qwarning,
- list2 (build_string ("unknown charset"),
+ warn_when_safe_lispobj (intern ("xft"), intern ("alert"),
+ list2 (build_string ("unchecked charset"),
charset));
/* default to "en" */
}
@@ -1085,28 +1097,49 @@
/* the main event */
FcResult r = FcPatternGet (patternxft, FC_LANG, i, &v);
if (r == FcResultMatch)
+ {
+ if (v.type != FcTypeLangSet) /* excessive paranoia */
{
- if (v.type == FcTypeLangSet && /* #### excessive paranoia */
- FcLangSetHasLang (v.u.l, lang) != FcLangDifferentLang)
+ /* Urk! Fall back and punt to core font. */
+ if (debug_xft > 0)
+ stderr_out ("Unexpected type of lang value (%s)\n",
+ FcTypeOfValueToString (v));
+ /* uncomment this to not try core font */
+ /* return Qnil; */
+ }
+ else if (FcLangSetHasLang (v.u.l, lang) != FcLangDifferentLang)
{
if (debug_xft > 0)
stderr_out ("Xft font %s supports %s\n", patternext, lang);
- /* heuristic to give reasonable names */
+ /* heuristic to give reasonable-length names */
FcPatternDel (patternxft, FC_CHARSET);
FcPatternDel (patternxft, FC_LANG);
return (build_string (FcNameUnparse (patternxft)));
}
- /* #### this is wrong, we should pass to X? */
+ /* assume everything supports English */
+#if 0
+ /* KLUDGE!! */
+ else if (!strcmp (lang, "en"))
+ {
+ if (debug_xft > 0)
+ stderr_out ("Xft font %s doesn't support en, using anyway\n",
+ patternext);
+ /* heuristic to give reasonable-length names */
+ FcPatternDel (patternxft, FC_CHARSET);
+ FcPatternDel (patternxft, FC_LANG);
+ return (build_string (FcNameUnparse (patternxft)));
+ }
+#endif
else
{
if (debug_xft > 0)
- stderr_out ("Unexpected type of lang value (%s)\n",
- FcTypeOfValueToString (v));
+ stderr_out ("Xft font %s doesn't support %s\n",
+ patternext, lang);
return Qnil;
}
}
if (debug_xft > 0)
- stderr_out ("Unexpected result getting lang (%s)\n",
+ stderr_out ("Unexpected result getting lang=%s\n",
FcResultToString (r));
}
}
1.39.2.3 +74 -22 XEmacs/xemacs/src/redisplay-x.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: redisplay-x.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/redisplay-x.c,v
retrieving revision 1.39.2.2
retrieving revision 1.39.2.3
diff -u -b -r1.39.2.2 -r1.39.2.3
--- redisplay-x.c 2004/12/10 06:43:50 1.39.2.2
+++ redisplay-x.c 2005/02/01 15:46:57 1.39.2.3
@@ -253,15 +253,22 @@
looks like this depends on the font, not the charset. */
{
XftChar16 xftchar16 = 0xFFFD; /* unsigned short */
+#ifndef MULE
+ int unicode = ch;
+#else
int unicode = ichar_to_unicode (ch);
if (unicode < 0)
- abort(); /* #### serious error, tables are corrupt */
+ /* abort(); */ /* #### serious error, tables are corrupt
+ Unfortunately, not a valid assumption; this can happen with
+ composite characters. Fake it. */
+ unicode = 0xFFFD; /* REPLACEMENT CHARACTER, can't represent */
else if (need_ccl_conversion)
/* #### maybe we should just ignore this and hope the font wins? */
unicode = 0xFFFD; /* REPLACEMENT CHARACTER, can't represent */
else if (unicode > 65535)
unicode = 0xFFFD; /* REPLACEMENT CHARACTER, can't represent */
else
+#endif
xftchar16 = (XftChar16) unicode;
/* #### endianness dependency? No,
apparently xft handles endianness for us;
@@ -429,7 +436,9 @@
int start, int end, int start_pixpos, int cursor_start,
int cursor_width, int cursor_height)
{
+#ifndef USE_XFT
struct frame *f = XFRAME (w->frame);
+#endif
Ichar_dynarr *buf = Dynarr_new (Ichar);
Lisp_Object window;
@@ -612,13 +621,17 @@
x_output_string (w, dl, buf, xpos, 0, start_pixpos, width, findex,
0, cursor_start, cursor_width, cursor_height);
- /* #### This is really conditionalized well for optimized
- performance. */
if (dl->modeline
&& !EQ (Qzero, w->modeline_shadow_thickness)
+#ifndef USE_XFT
+ /* This optimization doesn't work right with some Xft fonts, which
+ leave antialiasing turds at the boundary. I don't know if this
+ is an Xft bug or not, but I think it is. See x_output_string. */
&& (f->clear
|| f->windows_structure_changed
- || w->shadow_thickness_changed))
+ || w->shadow_thickness_changed)
+#endif
+ )
bevel_modeline (w, dl);
Dynarr_free (buf);
@@ -1120,11 +1133,44 @@
if (!bgc)
{
+ /* #### Neither rect_height nor XftTextExtents as computed
+ below handles the vertical space taken up by antialiasing,
+ which for some fonts (eg, Bitstream Vera Sans Mono-16 on
+ my Mac PowerBook G4) leaves behind orphaned dots on
+ insertion or deletion earlier in the line, especially in
+ the case of the underscore character.
+ Interestingly, insertion or deletion of a single character
+ immediately after a refresh does not leave any droppings,
+ but any further insertions or deletions do.
+ While adding a pixel to rect_height (mostly) takes care of
+ this, it trashes aggressively laid-out elements like the
+ modeline (overwriting part of the bevel).
+ OK, unconditionally redraw the bevel, and increment
+ rect_height by 1. See x_output_display_block. -- sjt */
+ struct textual_run *run = &runs[i];
+ int rect_width = x_text_width_single_run (f, cachel, run);
+#ifndef USE_XFTTEXTENTS_TO_AVOID_FONT_DROPPINGS
int rect_height = FONT_INSTANCE_ASCENT(fi)
+ + FONT_INSTANCE_DESCENT(fi) + 1;
+#else
+ int rect_height = FONT_INSTANCE_ASCENT(fi)
+ FONT_INSTANCE_DESCENT(fi);
- int rect_width = x_text_width_single_run (f, cachel, &runs[i]);
+ XGlyphInfo gi;
+ if (run->dimension == 2) {
+ XftTextExtents16 (dpy,
+ FONT_INSTANCE_X_XFTFONT(fi),
+ (XftChar16 *) run->ptr, run->len, &gi);
+ } else {
+ XftTextExtents8 (dpy,
+ FONT_INSTANCE_X_XFTFONT(fi),
+ run->ptr, run->len, &gi);
+ }
+ rect_height = rect_height > gi.height
+ ? rect_height : gi.height;
+#endif
- XftDrawRect (xftDraw, &bg, xpos, ypos, rect_width, rect_height);
+ XftDrawRect (xftDraw, &bg,
+ xpos, ypos, rect_width, rect_height);
}
if (runs[i].dimension == 1)
@@ -1203,23 +1249,29 @@
{
int ascent, descent, upos, uthick;
unsigned long ascent_ext, descent_ext, uthick_ext;
- XFontStruct *xfont = FONT_INSTANCE_X_FONT (fi);
+ XFontStruct *xf = FONT_INSTANCE_X_FONT (fi);
- if (!use_x_font
- || !XGetFontProperty (xfont, XA_STRIKEOUT_ASCENT, &ascent_ext))
- ascent = xfont->ascent;
+ if (!use_x_font)
+ {
+ ascent = dl->ascent;
+ descent = dl->descent;
+ uthick = 1;
+ }
else
+ {
+ if (!XGetFontProperty (xf, XA_STRIKEOUT_ASCENT, &ascent_ext))
+ ascent = xf->ascent;
+ else
ascent = (int) ascent_ext;
- if (!use_x_font
- || !XGetFontProperty (xfont, XA_STRIKEOUT_DESCENT, &descent_ext))
- descent = xfont->descent;
+ if (!XGetFontProperty (xf, XA_STRIKEOUT_DESCENT, &descent_ext))
+ descent = xf->descent;
else
descent = (int) descent_ext;
- if (!use_x_font
- || !XGetFontProperty (xfont, XA_UNDERLINE_THICKNESS, &uthick_ext))
+ if (!XGetFontProperty (xf, XA_UNDERLINE_THICKNESS, &uthick_ext))
uthick = 1;
else
uthick = (int) uthick_ext;
+ }
upos = ascent - ((ascent + descent) / 2) + 1;
1.53.2.2 +5 -2 XEmacs/xemacs/src/regex.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: regex.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/regex.c,v
retrieving revision 1.53.2.1
retrieving revision 1.53.2.2
diff -u -b -r1.53.2.1 -r1.53.2.2
--- regex.c 2004/12/11 05:16:30 1.53.2.1
+++ regex.c 2005/02/01 15:46:57 1.53.2.2
@@ -5406,6 +5406,9 @@
if (REG_MATCH_NULL_STRING_P (reg_info[*p]) == MATCH_NULL_UNSET_VALUE)
REG_MATCH_NULL_STRING_P (reg_info[*p])
= group_match_null_string_p (&p1, pend, reg_info);
+
+ DEBUG_PRINT2 (" group CAN%s match null string\n",
+ REG_MATCH_NULL_STRING_P (reg_info[*p]) ? "NOT" : "");
/* Save the position in the string where we were the last time
we were at this open-group operator in case the group is
1.15.2.1 +2 -2 XEmacs/xemacs/src/syssignal.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: syssignal.h
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/syssignal.h,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -b -r1.15 -r1.15.2.1
--- syssignal.h 2004/09/20 19:20:02 1.15
+++ syssignal.h 2005/02/01 15:46:58 1.15.2.1
@@ -267,10 +267,10 @@
# endif
#endif
-/* SYS_SIGLIST_DECLARED is determined by configure. On Linux, it seems,
+/* HAVE_DECL_SYS_SIGLIST is determined by configure. On Linux, it seems,
configure incorrectly fails to find it, so s/linux.h defines
HAVE_SYS_SIGLIST. */
-#if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST)
+#if !defined (HAVE_DECL_SYS_SIGLIST) && !defined (HAVE_SYS_SIGLIST)
extern const char *sys_siglist[];
#endif
No revision
No revision
1.62.2.1 +13 -0 XEmacs/xemacs/tests/ChangeLog
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/tests/ChangeLog,v
retrieving revision 1.62
retrieving revision 1.62.2.1
diff -u -b -r1.62 -r1.62.2.1
--- ChangeLog 2004/10/28 11:31:18 1.62
+++ ChangeLog 2005/02/01 15:47:12 1.62.2.1
@@ -1,3 +1,16 @@
+2005-01-30 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * autoconf/regressiontest.pl: Basename of configure need not be
+ "configure" and arguments differ. HAVE_DECL_SYS_SIGLIST
+ differences are known spurious. Delete those lines before diff.
+ Add my standard configure line to test hash.
+ Add usage notes.
+
+2005-01-29 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * autoconf: New directory for tests for configure.
+ * autoconf/regressiontest.pl: New file from Malcolm Purvis.
+
2004-10-28 Stephen J. Turnbull <stephen(a)xemacs.org>
* automated/os-tests.el: New file. Add tests for bug reported by
No revision
No revision
1.1.2.1 +130 -0 XEmacs/xemacs/tests/autoconf/Attic/regressiontest.pl
(In the diff below, changes in quantity of whitespace are not shown.)
Index: regressiontest.pl
===================================================================
RCS file: regressiontest.pl
diff -N regressiontest.pl
--- /dev/null Tue Feb 1 16:47:13 2005
+++ /tmp/cvsAAAWlaOfz Tue Feb 1 16:47:15 2005
@@ -0,0 +1,130 @@
+#!/usr/bin/perl -w
+#
+# Try the new and old versions of configure with various command lines to see
+# if they produce identical output.
+#
+# Invocation: $0 /path/to/old/configure /path/to/new/configure
+#
+# Since not all tests use --srcdir, invoke this script from a directory where
+# configure can automatically find its input files (Makefile.in.in, etc). If
+# interrupted, it probably will leave its temporary directories behind. In
+# that case, it will error on next invocation, but remove the directories.
+# The next invocation will then succeed.
+#
+
+use strict;
+use File::Basename;
+
+# Files generated by configure. There should be no functional difference
+# between these files generated by 2.13 and those generated by 2.59.
+my @output_files =
+ (
+ "Installation",
+ "Makefile.in",
+ "./Makefile",
+ "./GNUmakefile",
+ "dynodump/Makefile.in",
+ "dynodump/Makefile",
+ "lib-src/Makefile.in",
+ "lib-src/Makefile",
+ "lib-src/GNUmakefile",
+# "lib-src/config.values", # This is specific to the version of autoconf.
+ "lib-src/ellcc.h",
+ "lwlib/Makefile.in",
+ "lwlib/Makefile",
+ "lwlib/GNUmakefile",
+ "lwlib/config.h",
+ "modules/ldap/Makefile.in",
+ "modules/ldap/Makefile",
+ "modules/ldap/GNUmakefile",
+ "modules/postgresql/Makefile.in",
+ "modules/postgresql/Makefile",
+ "modules/postgresql/GNUmakefile",
+ "netinstall/Makefile.in",
+ "netinstall/Makefile",
+ "src/Makefile.in",
+ "src/Makefile",
+ "src/GNUmakefile",
+ "src/config.h",
+ "src/paths.h",
+ "src/xemacs.def.in",
+ "src/xemacs.def",
+ );
+
+# The list of complete command line arguments to test against. Since the
+# command line arguments have changed between 2.13 and 2.59 this hash maps from
+# old => new. If new is 'undef' then the old arguments are used instead.
+my %config_args =
+ (
+ " " => undef,
+ "--prefix=/tmp/foo" => undef,
+ "--with-gnome" => undef,
+ "--with-mule" => "--enable-mule",
+# My build flags for MacOS X. Needs /sw (fink) to be present.
+# "--prefix=/Users/malcolmp/prefix --site-prefixes=/sw --with-sound=none
--with-database=no --without-ldap --without-postgresql" =>
+# "--prefix=/Users/malcolmp/prefix --with-site-prefixes=/sw --disable-sound
--disable-database --without-ldap --without-postgresql",
+# My build flags for Linux (powerpc64)
+ "--prefix=/usr/local/gcc3-world --package-path=/usr/local/lib/xemacs"
=>
+ "--prefix=/usr/local/gcc3-world
--with-package-path=/usr/local/lib/xemacs",
+ "--use_union_type" => "--enable-union-type",
+ "--use_kkcc" => "--enable-kkcc",
+ "--xemacs-compiler=g++" => "--with-xemacs-compiler=g++",
+ "--lispdir=/tmp/foo" => "--with-lispdir=/tmp/foo",
+ "--moduledir=/tmp/foo" => "--with-moduledir=/tmp/foo",
+ "--etcdir=/tmp/foo" => "--with-etcdir=/tmp/foo",
+ "--infopath=/tmp/foo" => "--with-infopath=/tmp/foo",
+ "--archlibdir=/tmp/foo" => "--with-archlibdir=/tmp/foo",
+ "--docdir=/tmp/foo" => "--with-docdir=/tmp/foo",
+ "--package-prefix=/tmp/foo" =>
"--with-package-prefix=/tmp/foo",
+ "--package-path=/tmp/foo" => "--with-package-path=/tmp/foo",
+ "--datadir=/tmp/foo" => undef,
+ "--mandir=/tmp/foo" => undef,
+ "--infodir=/tmp/foo" => undef,
+ "--libdir=/tmp/foo" => undef,
+ "--exec-prefix=/tmp/foo" => undef,
+ "--with-mule --with-xft=emacs --debug --error-checking=all --with-xim=xlib
--with-widgets=athena --with-athena=3d --with-dialogs=athena --memory-usage-stats
--use-number-lib=gmp --site-prefixes=/opt/local:/sw --with-ldap=no --use-union-type"
=> "--enable-mule --with-xft=emacs --enable-debug --enable-error-checking=all
--with-xim=xlib --enable-widgets=athena --with-athena=3d --enable-dialogs=athena
--enable-memory-usage-stats --enable-bignum=gmp --with-site-prefixes=/opt/local:/sw
--with-ldap=no --enable-union-type"
+ );
+
+die "Usage: $0 /path/to/configure-2.13 /path/to/configure-2.59\n" if
scalar(@ARGV) != 2;
+
+my $old_configure = $ARGV[0];
+my $new_configure = $ARGV[1];
+my $old_dir = dirname($old_configure);
+my $new_dir = dirname($new_configure);
+
+foreach my $old_arg (keys %config_args) {
+ mkdir "/tmp/old" or die "$0: Cannot create /tmp/old: $!\n";
+ mkdir "/tmp/new" or die "$0: Cannot create /tmp/new: $!\n";
+
+ my $new_arg = $config_args{$old_arg};
+ $new_arg = $old_arg if ! defined($new_arg);
+
+ print "--------------------------------------------------\n";
+ print "$old_configure $old_arg\n";
+ print "$new_configure $new_arg\n";
+
+ chdir "/tmp/old" or die "$0: Cannot cd to /tmp/old: $!\n";
+ system ("$old_configure $old_arg >/tmp/old-output.txt\n") == 0 or
+ die "$0: $old_configure $old_arg failed\n";
+
+ chdir "/tmp/new" or die "$0: Cannot cd to /tmp/new: $!\n";
+ system ("$new_configure $new_arg >/tmp/new-output.txt\n") == 0 or
+ die "$0: $new_configure $new_arg failed\n";
+
+ foreach my $file (@output_files) {
+ if (-r "/tmp/old/$file" && -r "/tmp/new/$file") {
+# Strip out parts that always differ: Paths and the 'Generated by configure'
+# lines.
+ system("for i in /tmp/old/$file /tmp/new/$file ; do sed -e
'/HAVE_DECL_SYS_SIGLIST/d' -e '\\!$old_configure!d' -e
'\\!$new_configure!d' -e '/EMACS_CONFIG_OPTIONS/d' -e
'/Generated.*configure/d' -e '\\!$old_dir!s///' -e
'\\!$new_dir!s///' -e '\\!/tmp/new!s///' -e '\\!/tmp/old!s///'
<\$i >\$i.processed ; done");
+# Compare the processed versions. These should be the same.
+ system "diff -U 0 -L old-$file -L new-$file /tmp/old/$file.processed
/tmp/new/$file.processed";
+ }
+ }
+ chdir "/";
+ system("rm -rf /tmp/old /tmp/new");
+}
+
+END {
+ chdir "/";
+ system("rm -rf /tmp/old /tmp/new");
+}