#! /bin/sh
+
+#AC_DEFUN([PGAC_PROG_ANT],[AC_CHECK_PROG(ANT, ant, ant)
+#])
+
+
+## libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
+## Copyright (C) 1996-1999,2000 Free Software Foundation, Inc.
+## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+##
+## This program 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 of the License, or
+## (at your option) any later version.
+##
+## This program 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 this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+##
+## As a special exception to the GNU General Public License, if you
+## distribute this file as part of a program that contains a
+## configuration script generated by Autoconf, you may include it under
+## the same distribution terms that you use for the rest of that program.
+
+# No, PostgreSQL doesn't use libtool (yet), we just borrow stuff from it.
+# This file was taken on 2000-10-20 from the multi-language branch (since
+# that is the branch that PostgreSQL would most likely adopt anyway).
+# --petere
+
+# ... bunch of stuff removed here ...
+
+# AC_PROG_LD - find the path to the GNU or non-GNU linker
+
+
+
+
+# ... more stuff removed ...
+
+# $Header: /cvsroot/pgsql/configure,v 1.112 2001/03/05 09:38:55 peter Exp $
+
+
+# PGAC_PATH_FLEX
+# --------------
+# Look for Flex, set the output variable FLEX to its path if found.
+# Avoid the buggy version 2.5.3. Also find Flex if its installed
+# under `lex', but do not accept other Lex programs.
+
+# PGAC_PATH_FLEX
+
+
+
+# PGAC_CHECK_READLINE
+# -------------------
+# Check for the readline library and dependent libraries, either
+# termcap or curses. Also try libedit, since NetBSD's is compatible.
+# Add the required flags to LIBS, define HAVE_LIBREADLINE.
+
+# PGAC_CHECK_READLINE
+
+#
+# Autoconf macros for configuring the build of Python extension modules
+#
+# $Header: /cvsroot/pgsql/configure,v 1.112 2001/03/05 09:38:55 peter Exp $
+#
+
+# PGAC_PROG_PYTHON
+# ----------------
+# Look for Python and set the output variable `PYTHON'
+# to `python' if found, empty otherwise.
+
+
+
+# PGAC_PATH_PYTHONDIR
+# -------------------
+# Finds the names of various install dirs and helper files
+# necessary to build a Python extension module.
+#
+# It would be nice if we could check whether the current setup allows
+# the build of the shared module. Future project.
+# PGAC_PATH_PYTHONDIR
+
+# $Header: /cvsroot/pgsql/configure,v 1.112 2001/03/05 09:38:55 peter Exp $
+
+# Autoconf macros to check for Tcl related things
+
+
+
+
+
+# PGAC_PATH_TCLCONFIGSH([SEARCH-PATH])
+# ------------------------------------
+# PGAC_PATH_TCLCONFIGSH
+
+
+# PGAC_PATH_TKCONFIGSH([SEARCH-PATH])
+# ------------------------------------
+# PGAC_PATH_TKCONFIGSH
+
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
# Any additions from configure.in:
ac_default_prefix=/usr/local/pgsql
ac_help="$ac_help
- --with-template=TEMPLATE
- use operating system template file
- see template directory"
-ac_help="$ac_help
- --with-includes=DIRS add non-standard include paths"
+ --with-includes=DIRS look for additional header files in DIRS"
ac_help="$ac_help
--with-libraries=DIRS look for additional libraries in DIRS"
ac_help="$ac_help
- --with-libs=DIRS alternate spelling of --with-libraries"
+ --with-libs=DIRS alternative spelling of --with-libraries"
+ac_help="$ac_help
+ --enable-locale enable locale support"
+ac_help="$ac_help
+ --enable-recode enable character set recode support"
ac_help="$ac_help
- --enable-locale enable locale support "
+ --enable-multibyte enable multibyte character support"
ac_help="$ac_help
- --enable-recode enable cyrillic recode support "
+ --enable-unicode-conversion enable unicode conversion support"
ac_help="$ac_help
- --enable-multibyte enable multibyte character support "
+ --with-pgport=PORTNUM change default port number [5432]"
ac_help="$ac_help
- --with-pgport=PORTNUM change default postmaster port "
+ --with-maxbackends=N set default maximum number of connections [32]"
ac_help="$ac_help
- --with-maxbackends=N set default maximum number of server processes "
+ --disable-shared do not build shared libraries"
ac_help="$ac_help
- --with-CC=compiler use specific C compiler"
+ --disable-rpath do not embed shared library search path in executables"
ac_help="$ac_help
- --with-tcl build Tcl interfaces and pgtclsh "
+ --enable-debug build with debugging symbols (-g)"
+ac_help="$ac_help
+ --enable-depend turn on automatic dependency tracking"
+ac_help="$ac_help
+ --enable-cassert enable assertion checks (for debugging)"
+ac_help="$ac_help
+ --with-tcl build Tcl and Tk interfaces"
+ac_help="$ac_help
+ --without-tk do not build Tk interfaces if Tcl is enabled"
ac_help="$ac_help
--with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
ac_help="$ac_help
--with-tkconfig=DIR tkConfig.sh is in DIR"
ac_help="$ac_help
- --with-perl build Perl interface and plperl"
+ --with-perl build Perl interface and PL/Perl"
ac_help="$ac_help
--with-python build Python interface module"
ac_help="$ac_help
- --with-krb4[=DIR] use Kerberos 4 [/usr/athena]"
+ --with-java build JDBC interface & Java tools"
ac_help="$ac_help
- --with-krb5[=DIR] use Kerberos 5 [/usr/athena]"
+ --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
ac_help="$ac_help
- --with-krb-srvnam=NAME name of the Postgres service principal in Kerberos"
+ --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
ac_help="$ac_help
- --with-krb-srvtab=FILE location of Kerberos server's keytab file"
+ --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
ac_help="$ac_help
--with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
ac_help="$ac_help
--enable-odbc build the ODBC driver package"
ac_help="$ac_help
--with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
-ac_help="$ac_help
- --enable-cassert enable assertion checks (for debugging) "
-ac_help="$ac_help
- --enable-debug build with debugging symbols (-g) "
ac_help="$ac_help
--with-CXX build C++ modules (libpq++)"
ac_help="$ac_help
- --enable-syslog enable logging to syslog"
+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
ac_help="$ac_help
- --with-x use the X Window System"
+ --enable-syslog enable logging to syslog"
# Initialize some variables set by options.
# The variables have the same names as the options, with
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
-infodir='${prefix}/info'
+docdir='${prefix}/doc'
mandir='${prefix}/man'
# Initialize some other variables.
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
- --infodir=DIR info documentation in DIR [PREFIX/info]
+ --docdir=DIR doc documentation in DIR [PREFIX/doc]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
| --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" ;;
+ -docdir | --docdir | --infodi | --infod | --doc | --inf)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
+ docdir="$ac_optarg" ;;
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
+
+
+
ac_aux_dir=
for ac_dir in config $srcdir/config; do
if test -f $ac_dir/install-sh; then
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
-VERSION='7.1devel'
+VERSION='7.1beta5'
cat >> confdefs.h <<EOF
#define PG_VERSION "$VERSION"
EOF
+unset CDPATH
+
# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:620: checking host system type" >&5
+echo "configure:731: checking host system type" >&5
host_alias=$host
case "$host_alias" in
echo "$ac_t""$host" 1>&6
-tas_file=dummy.s
-case "$host_os" in
- solaris*)
- case "$host_cpu" in
- sparc) os=solaris_sparc need_tas=yes tas_file=solaris_sparc.s ;;
- i386) os=solaris_i386 need_tas=yes tas_file=solaris_i386.s ;;
- esac ;;
- sunos*) os=sunos4 need_tas=no ;;
- beos) os=beos need_tas=no ;;
- aux*) os=aux need_tas=no ;;
- linux*) os=linux need_tas=no ;;
- bsdi*) os=bsdi need_tas=no ;;
- freebsd1*|freebsd2*) os=freebsd need_tas=no ;;
- freebsd*) os=freebsd need_tas=no elf=yes ;;
- netbsd*) os=netbsd need_tas=no ;;
- openbsd*) os=bsd need_tas=no ;;
- dgux*) os=dgux need_tas=no ;;
- aix*) os=aix need_tas=no ;;
-nextstep*) os=nextstep need_tas=no ;;
- ultrix*) os=ultrix4 need_tas=no ;;
- irix*) os=irix5 need_tas=no ;;
- hpux*) os=hpux need_tas=yes tas_file=hpux.s ;;
- osf*) os=alpha need_tas=no ;;
- sco*) os=sco need_tas=no ;;
- machten*) os=machten need_tas=no ;;
- cygwin*) os=win need_tas=no ;;
- sysv4.2*)
- case "$host_vendor" in
- univel) os=univel need_tas=no ;;
- *) os=unknown need_tas=no ;;
- esac ;;
- sysv4*) os=svr4 need_tas=no ;;
- sysv5uw*) os=unixware need_tas=no ;;
- unixware*) os=unixware need_tas=no ;;
- qnx*) os=qnx4 need_tas=no ;;
-*) echo ""
- echo "*************************************************************"
- echo "configure does not currently recognize your operating system,"
- echo "therefore you must do a manual configuration of:"
- echo "$host_os"
- echo "Please contact scrappy@hub.org to see about rectifying this, "
- echo "including the above 'checking host system type...' line "
- echo "*************************************************************"
- echo ""
- exit;;
-esac
-PORTNAME=${os}
-CPU=${host_cpu}
+template=
+echo $ac_n "checking which template to use""... $ac_c" 1>&6
+echo "configure:757: checking which template to use" >&5
+# Check whether --with-template was given
+if test x"${with_template+set}" = xset; then
+ case $with_template in
+ yes)
+ { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
+ ;;
+ *)
+ withval=$with_template
+
+ case $withval in
+ list) echo; ls "$srcdir/src/template"; exit;;
+ *) if test -f "$srcdir/src/template/$with_template" ; then
+ template=$withval
+ else
+ { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
+ fi;;
+ esac
+ ;;
+ esac # $with_template
+else
+
+ # --with-template not given
-if test "X$need_tas" = "Xyes"
-then
-
- TAS=tas.o
-
-fi
+case $host_os in
+ aix*) template=aix ;;
+ beos*) template=beos ;;
+ bsdi*) template=bsdi ;;
+ cygwin*) template=win ;;
+ darwin*) template=darwin ;;
+ dgux*) template=dgux ;;
+ freebsd*) template=freebsd ;;
+ hpux*) template=hpux ;;
+ irix*) template=irix5 ;;
+ linux*) template=linux ;;
+ netbsd*) template=netbsd ;;
+nextstep*) template=nextstep ;;
+ openbsd*) template=openbsd ;;
+ osf*) template=osf ;;
+ qnx*) template=qnx4 ;;
+ sco*) template=sco ;;
+ solaris*) template=solaris ;;
+ sunos*) template=sunos4 ;;
+ sysv4.2*)
+ case $host_vendor in
+ univel) template=univel ;;
+ esac ;;
+ sysv4*) template=svr4 ;;
+ sysv5uw*) template=unixware ;;
+ ultrix*) template=ultrix4 ;;
+esac
+ if test x"$template" = x"" ; then
+ { echo "configure: error:
+*******************************************************************
+PostgreSQL has apparently not been ported to your platform yet.
+To try a manual configuration, look into the src/template directory
+for a similar platform and use the '--with-template=' option.
+
+Please also contact <pgsql-ports@postgresql.org> to see about
+rectifying this. Include the above 'checking host system type...'
+line.
+*******************************************************************
+" 1>&2; exit 1; }
+ fi
-echo $ac_n "checking setting template to""... $ac_c" 1>&6
-echo "configure:704: checking setting template to" >&5
-# Check whether --with-template or --without-template was given.
-if test "${with_template+set}" = set; then
- withval="$with_template"
- TEMPLATE=$withval
-else
-
-# lowercase $host
-host="`echo $host | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`"
-
-# First, try for a template exactly matching $host
-if test -f "src/template/$host"
-then TEMPLATE="$host"
-else
- # Scan template/.similar for a rule that tells us which template to use.
- # The format of each line of the file is
- # hostnamepattern=templatefilename
- # where the hostnamepattern is evaluated per the rules of expr(1) ---
- # namely, it is a standard regular expression with an implicit ^ at the
- # start. If multiple lines match, we will end up using the last match.
- #
- # The tempfile hackery is needed because some shells will run the loop
- # inside a subshell, whereupon shell variables set therein aren't seen
- # outside the loop :-(
- TMPFILE="guesses.$$"
- cat /dev/null > $TMPFILE
- while read LINE
- do
- SIMHOST=`expr "$LINE" : '\(.*\)='`
- MATCH=`expr "$host" : "$SIMHOST"`
- if test "$MATCH" != 0
- then
- echo "$LINE" | sed 's/^.*=//' > $TMPFILE
- fi
- done <src/template/.similar
- GUESS=`cat $TMPFILE`
- rm -f $TMPFILE
- if test "$GUESS"
- then TEMPLATE="$GUESS"
- else
- # Last chance ... maybe uname -s will match an entry.
- TEMPLATE=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- fi
-fi
-
fi
-echo "$ac_t""$TEMPLATE" 1>&6
+echo "$ac_t""$template" 1>&6
-export TEMPLATE
-if test ! -f "src/template/$TEMPLATE"; then
- echo ""
- echo "$TEMPLATE does not exist"
- echo ""
- echo "Available Templates (select one using --with-template):"
- echo ""
- ls src/template
- echo ""
- exit
-fi
+PORTNAME=$template
-rm -f conftest.sh
-sed 's/^\([A-Za-z_]*\):\(.*\)$/\1="\2"/' "src/template/$TEMPLATE" >conftest.sh
-. ./conftest.sh
-rm -f conftest.sh
-# Check whether --with-includes or --without-includes was given.
-if test "${with_includes+set}" = set; then
- withval="$with_includes"
- if test x"$withval" = x"yes" || test x"$withval" = x"no" ; then
- { echo "configure: error: You must supply an argument to the --with-includes option." 1>&2; exit 1; }
-fi
+
+
+# Pick right test-and-set (TAS) code. Most platforms have inline
+# assembler code in src/include/storage/s_lock.h, so we just use
+# a dummy file here.
+case $host in
+ *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
+ sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
+ i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
+ *) need_tas=no; tas_file=dummy.s ;;
+esac
+
+
+if test "$need_tas" = yes ; then
+ TAS=tas.o
fi
-# SRCH_INC comes from the template file
-ac_save_IFS=$IFS
-IFS=':'
-for dir in $with_includes $SRCH_INC; do
- if test -d "$dir"; then
- INCLUDES="$INCLUDES -I$dir"
- else
- echo "configure: warning: *** Include directory $dir does not exist." 1>&2
- fi
-done
-IFS=$ac_save_IFS
+##
+## Command line options
+##
-# Check whether --with-libraries or --without-libraries was given.
-if test "${with_libraries+set}" = set; then
- withval="$with_libraries"
-
- case "$withval" in
- "" | y | ye | yes | n | no)
- { echo "configure: error: *** You must supply an argument to the --with-libraries option." 1>&2; exit 1; }
- ;;
- esac
- LIBRARY_DIRS="$withval"
-
+
+#
+# Add non-standard directories to the include path
+#
+# Check whether --with-includes was given
+if test x"${with_includes+set}" = xset; then
+ case $with_includes in
+ yes)
+ { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
+ ;;
+ esac # $with_includes
fi
-# Check whether --with-libs or --without-libs was given.
-if test "${with_libs+set}" = set; then
- withval="$with_libs"
-
- case "$withval" in
- "" | y | ye | yes | n | no)
- { echo "configure: error: *** You must supply an argument to the --with-libs option." 1>&2; exit 1; }
- ;;
- esac
- LIBRARY_DIRS="$withval"
-
+#
+# Add non-standard directories to the library search path
+#
+# Check whether --with-libraries was given
+if test x"${with_libraries+set}" = xset; then
+ case $with_libraries in
+ yes)
+ { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
+ ;;
+ *)
+ withval=$with_libraries
+ LIBRARY_DIRS=$withval
+ ;;
+ esac # $with_libraries
fi
-
-if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
- for dir in $LIBRARY_DIRS $SRCH_LIB; do
- if test -d "$dir"; then
- PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
- else
- echo "configure: warning: *** Library directory $dir does not exist." 1>&2
- fi
- done
+# Check whether --with-libs was given
+if test x"${with_libs+set}" = xset; then
+ case $with_libs in
+ yes)
+ { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
+ ;;
+ *)
+ withval=$with_libs
+ LIBRARY_DIRS=$withval
+ ;;
+ esac # $with_libs
fi
-echo $ac_n "checking whether to support locale""... $ac_c" 1>&6
-echo "configure:837: checking whether to support locale" >&5
-# Check whether --enable-locale or --disable-locale was given.
-if test "${enable_locale+set}" = set; then
- enableval="$enable_locale"
- cat >> confdefs.h <<\EOF
+#
+# Locale (--enable-locale)
+#
+echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
+echo "configure:920: checking whether to build with locale support" >&5
+# Check whether --enable-locale was given
+if test x"${enable_locale+set}" = xset; then
+ case $enable_locale in
+ yes)
+ cat >> confdefs.h <<\EOF
#define USE_LOCALE 1
EOF
- echo "$ac_t""enabled" 1>&6
+
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_locale
+ { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_locale
else
- echo "$ac_t""disabled" 1>&6
+ enable_locale=no
fi
+echo "$ac_t""$enable_locale" 1>&6
-echo $ac_n "checking whether to support cyrillic recode""... $ac_c" 1>&6
-echo "configure:852: checking whether to support cyrillic recode" >&5
-# Check whether --enable-recode or --disable-recode was given.
-if test "${enable_recode+set}" = set; then
- enableval="$enable_recode"
- cat >> confdefs.h <<\EOF
+#
+# Character set recode (--enable-recode)
+#
+echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
+echo "configure:949: checking whether to build with recode support" >&5
+# Check whether --enable-recode was given
+if test x"${enable_recode+set}" = xset; then
+ case $enable_recode in
+ yes)
+ cat >> confdefs.h <<\EOF
#define CYR_RECODE 1
EOF
- echo "$ac_t""enabled" 1>&6
+
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_recode
+ { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_recode
else
- echo "$ac_t""disabled" 1>&6
+ enable_recode=no
fi
+echo "$ac_t""$enable_recode" 1>&6
+#
+# Multibyte support
+#
+MULTIBYTE=
+echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
+echo "configure:979: checking whether to build with multibyte character support" >&5
+
+# Check whether --enable-multibyte was given
+if test x"${enable_multibyte+set}" = xset; then
+ case $enable_multibyte in
+ yes)
+ MULTIBYTE=SQL_ASCII
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_multibyte
+ enable_multibyte=yes
-echo $ac_n "checking whether to support multibyte""... $ac_c" 1>&6
-echo "configure:868: checking whether to support multibyte" >&5
-# Check whether --enable-multibyte or --disable-multibyte was given.
-if test "${enable_multibyte+set}" = set; then
- enableval="$enable_multibyte"
-
- MULTIBYTE=SQL_ASCII
- if test "$enableval" != "yes"; then
- case "$enableval" in
- SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
- # ok
- ;;
- *)
- { echo "configure: error: Argument to --enable-multibyte must be one of:
+ case $enableval in
+ SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
+ MULTIBYTE=$enableval;;
+ *)
+ { echo "configure: error: argument to --enable-multibyte must be one of:
SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
UNICODE, MULE_INTERNAL,
LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
KOI8, WIN, ALT
-Or do not specify an argument to the option to use the default." 1>&2; exit 1; }
- esac
- MULTIBYTE=$enableval
- fi
- cat >> confdefs.h <<\EOF
+Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
+ esac
+
+ ;;
+ esac # $enable_multibyte
+else
+ enable_multibyte=no
+fi
+
+if test "$enable_multibyte" = yes; then
+
+ cat >> confdefs.h <<\EOF
#define MULTIBYTE 1
EOF
- echo "$ac_t""enabled" 1>&6
-
-else
- echo "$ac_t"""disabled"" 1>&6
+ echo "$ac_t""yes, default $MULTIBYTE" 1>&6
+else
+ echo "$ac_t""no" 1>&6
fi
-if test "${with_mb}"; then
- { echo "configure: error: --with-mb is not supported anymore. Use --enable-multibyte instead." 1>&2; exit 1; }
-fi
-echo $ac_n "checking setting DEF_PGPORT""... $ac_c" 1>&6
-echo "configure:907: checking setting DEF_PGPORT" >&5
-# Check whether --with-pgport or --without-pgport was given.
-if test "${with_pgport+set}" = set; then
- withval="$with_pgport"
- default_port="$withval"
+#
+# Unicode conversion (--enable-unicode-conversion)
+#
+echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
+echo "configure:1031: checking whether to build with Unicode conversion support" >&5
+# Check whether --enable-unicode-conversion was given
+if test x"${enable_unicode_conversion+set}" = xset; then
+ case $enable_unicode_conversion in
+ yes)
+ if test -z "$MULTIBYTE"; then
+ { echo "configure: error: --enable-unicode-conversion only works with --enable-multibyte" 1>&2; exit 1; }
+fi
+cat >> confdefs.h <<\EOF
+#define UNICODE_CONVERSION 1
+EOF
+
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_unicode_conversion
+ { echo "configure: error: no argument expected for --enable-unicode-conversion option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_unicode_conversion
else
- default_port=5432
+ enable_unicode_conversion=no
fi
+echo "$ac_t""$enable_unicode_conversion" 1>&6
+#
+# Default port number (--with-pgport), default 5432
+#
+echo $ac_n "checking for default port number""... $ac_c" 1>&6
+echo "configure:1062: checking for default port number" >&5
+# Check whether --with-pgport was given
+if test x"${with_pgport+set}" = xset; then
+ case $with_pgport in
+ yes)
+ { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
+ ;;
+ *)
+ withval=$with_pgport
+ default_port=$withval
+ ;;
+ esac # $with_pgport
+else
+ default_port=5432
+fi
+echo "$ac_t""$default_port" 1>&6
+# Need both of these because some places want an integer and some a string
cat >> confdefs.h <<EOF
#define DEF_PGPORT ${default_port}
EOF
#define DEF_PGPORT_STR "${default_port}"
EOF
-echo "$ac_t""${default_port}" 1>&6
-echo $ac_n "checking setting DEF_MAXBACKENDS""... $ac_c" 1>&6
-echo "configure:929: checking setting DEF_MAXBACKENDS" >&5
-# Check whether --with-maxbackends or --without-maxbackends was given.
-if test "${with_maxbackends+set}" = set; then
- withval="$with_maxbackends"
- cat >> confdefs.h <<EOF
-#define DEF_MAXBACKENDS ${withval}
-EOF
- echo "$ac_t""$with_maxbackends" 1>&6
+#
+# Maximum number of allowed connections (--with-maxbackends), default 32
+#
+echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
+echo "configure:1096: checking for default soft limit on number of connections" >&5
+# Check whether --with-maxbackends was given
+if test x"${with_maxbackends+set}" = xset; then
+ case $with_maxbackends in
+ yes)
+ { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
+ ;;
+ esac # $with_maxbackends
else
- cat >> confdefs.h <<EOF
-#define DEF_MAXBACKENDS 32
+ with_maxbackends=32
+fi
+echo "$ac_t""$with_maxbackends" 1>&6
+cat >> confdefs.h <<EOF
+#define DEF_MAXBACKENDS $with_maxbackends
EOF
- echo "$ac_t""32" 1>&6
+
+
+
+#
+# Option to disable shared libraries
+#
+# Check whether --enable-shared was given
+if test x"${enable_shared+set}" = xset; then
+ case $enable_shared in
+ yes)
+ :
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_shared
+ { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_shared
+else
+ enable_shared=yes
+
+fi
+
+
+#
+# '-rpath'-like feature can be disabled
+#
+# Check whether --enable-rpath was given
+if test x"${enable_rpath+set}" = xset; then
+ case $enable_rpath in
+ yes)
+ :
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_rpath
+ { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_rpath
+else
+ enable_rpath=yes
fi
-# Check whether --with-CC or --without-CC was given.
-if test "${with_CC+set}" = set; then
- withval="$with_CC"
-
- case "$withval" in
- "" | y | ye | yes | n | no)
- { echo "configure: error: *** You must supply an argument to the --with-CC option." 1>&2; exit 1; }
- ;;
- esac
- CC="$withval"
-
+#
+# --enable-debug adds -g to compiler flags
+#
+# Check whether --enable-debug was given
+if test x"${enable_debug+set}" = xset; then
+ case $enable_debug in
+ yes)
+ :
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_debug
+ { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_debug
+else
+ enable_debug=no
+
+fi
+
+
+#
+# C compiler
+#
+
+# For historical reasons you can also use --with-CC to specify the C compiler
+# to use, although the standard way to do this is to set the CC environment
+# variable.
+# Check whether --with-CC was given
+if test x"${with_CC+set}" = xset; then
+ case $with_CC in
+ yes)
+ { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
+ ;;
+ *)
+ withval=$with_CC
+ CC=$with_CC
+ ;;
+ esac # $with_CC
fi
+# On AIX, default compiler to xlc.
+if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
+
+# Save CFLAGS from the environment
+has_environ_CFLAGS="${CFLAGS+yes}"
+save_CFLAGS=$CFLAGS
# 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:964: checking for $ac_word" >&5
+echo "configure:1220: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# 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:994: checking for $ac_word" >&5
+echo "configure:1250: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# 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:1045: checking for $ac_word" >&5
+echo "configure:1301: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1077: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:1333: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cat > conftest.$ac_ext << EOF
-#line 1088 "configure"
+#line 1344 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:1093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1349: \"$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
{ 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:1119: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1375: 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:1124: checking whether we are using GNU C" >&5
+echo "configure:1380: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1389: \"$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
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:1152: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:1408: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
fi
-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1184: checking how to run the C preprocessor" >&5
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
- CPP=
+# Read the template
+. "$srcdir/src/template/$template" || exit
+
+if test "$has_environ_CFLAGS" = yes; then
+ CFLAGS=$save_CFLAGS
fi
-if test -z "$CPP"; then
-if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- # 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 1199 "configure"
+if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
+ CFLAGS="$CFLAGS -g"
+fi
+echo "using CFLAGS=$CFLAGS"
+# Check if the compiler still works with the template settings
+echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
+echo "configure:1451: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+
+ac_ext=c
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+cross_compiling=$ac_cv_prog_cc_cross
+
+cat > conftest.$ac_ext << EOF
+
+#line 1462 "configure"
#include "confdefs.h"
-#include <assert.h>
-Syntax Error
+
+main(){return(0);}
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1205: \"$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*
+if { (eval echo configure:1467: \"$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
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+cross_compiling=$ac_cv_prog_cc_cross
+
+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:1493: 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 for Cygwin environment""... $ac_c" 1>&6
+echo "configure:1498: checking for Cygwin environment" >&5
+if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1503 "configure"
+#include "confdefs.h"
+
+int main() {
+
+#ifndef __CYGWIN__
+#define __CYGWIN__ __CYGWIN32__
+#endif
+return __CYGWIN__;
+; return 0; }
+EOF
+if { (eval echo configure:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_cygwin=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_cv_cygwin=no
+fi
+rm -f conftest*
+rm -f conftest*
+fi
+
+echo "$ac_t""$ac_cv_cygwin" 1>&6
+CYGWIN=
+test "$ac_cv_cygwin" = yes && CYGWIN=yes
+echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
+echo "configure:1531: checking for mingw32 environment" >&5
+if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1536 "configure"
+#include "confdefs.h"
+
+int main() {
+return __MINGW32__;
+; return 0; }
+EOF
+if { (eval echo configure:1543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_mingw32=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_cv_mingw32=no
+fi
+rm -f conftest*
+rm -f conftest*
+fi
+
+echo "$ac_t""$ac_cv_mingw32" 1>&6
+MINGW32=
+test "$ac_cv_mingw32" = yes && MINGW32=yes
+
+
+echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
+echo "configure:1562: checking for executable suffix" >&5
+if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
+ ac_cv_exeext=.exe
+else
+ rm -f conftest*
+ echo 'int main () { return 0; }' > conftest.$ac_ext
+ ac_cv_exeext=
+ if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+ for file in conftest.*; do
+ case $file in
+ *.c | *.o | *.obj) ;;
+ *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
+ esac
+ done
+ else
+ { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
+ fi
+ rm -f conftest*
+ test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
+fi
+fi
+
+EXEEXT=""
+test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
+echo "$ac_t""${ac_cv_exeext}" 1>&6
+ac_exeext=$EXEEXT
+
+echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
+echo "configure:1593: 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
+if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ # 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 1608 "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:1614: \"$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 1216 "configure"
+#line 1625 "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:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1631: \"$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*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
-#line 1233 "configure"
+#line 1642 "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:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1648: \"$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
:
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
-echo "configure:1265: checking whether ${CC-cc} needs -traditional" >&5
+echo "configure:1674: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <<EOF
-#line 1271 "configure"
+#line 1680 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
-#line 1289 "configure"
+#line 1698 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
+# Create compiler version string
if test x"$GCC" = x"yes" ; then
cc_string="GCC `${CC} --version`"
else
-
-echo $ac_n "checking setting USE_TCL""... $ac_c" 1>&6
-echo "configure:1325: checking setting USE_TCL" >&5
-# Check whether --with-tcl or --without-tcl was given.
-if test "${with_tcl+set}" = set; then
- withval="$with_tcl"
-
- case "$withval" in
- y | ye | yes) USE_TCL=true; USE_TK=true; echo "$ac_t""enabled" 1>&6 ;;
- *) USE_TCL=; USE_TK=; echo "$ac_t""disabled" 1>&6 ;;
- esac
-
+#
+# Automatic dependency tracking
+#
+# Check whether --enable-depend was given
+if test x"${enable_depend+set}" = xset; then
+ case $enable_depend in
+ yes)
+ autodepend=yes
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_depend
+ { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_depend
else
- USE_TCL=; USE_TK=; echo "$ac_t""disabled" 1>&6
+ enable_depend=no
fi
-export USE_TCL
-export USE_TK
+#
+# Enable assert checks
+#
+# Check whether --enable-cassert was given
+if test x"${enable_cassert+set}" = xset; then
+ case $enable_cassert in
+ yes)
+ cat >> confdefs.h <<\EOF
+#define USE_ASSERT_CHECKING 1
+EOF
-# Check whether --with-tclconfig or --without-tclconfig was given.
-if test "${with_tclconfig+set}" = set; then
- withval="$with_tclconfig"
-
- case "$withval" in
- "" | y | ye | yes | n | no)
- { echo "configure: error: *** You must supply an argument to the --with-tclconfig option." 1>&2; exit 1; }
- ;;
- esac
- TCL_DIRS="$withval"
-
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_cassert
+ { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_cassert
+else
+ enable_cassert=no
fi
+#
+# Include directories
+#
+ac_save_IFS=$IFS
+IFS="${IFS}:"
+# SRCH_INC comes from the template file
+for dir in $with_includes $SRCH_INC; do
+ if test -d "$dir"; then
+ INCLUDES="$INCLUDES -I$dir"
+ else
+ echo "configure: warning: *** Include directory $dir does not exist." 1>&2
+ fi
+done
+IFS=$ac_save_IFS
+
+
-# Check whether --with-tkconfig or --without-tkconfig was given.
-if test "${with_tkconfig+set}" = set; then
- withval="$with_tkconfig"
-
- case "$withval" in
- "" | y | ye | yes | n | no)
- { echo "configure: error: *** You must supply an argument to the --with-tkconfig option." 1>&2; exit 1; }
- ;;
- esac
- TK_DIRS="$withval"
-
+#
+# Library directories
+#
+ac_save_IFS=$IFS
+IFS="${IFS}:"
+# LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
+for dir in $LIBRARY_DIRS $SRCH_LIB; do
+ if test -d "$dir"; then
+ LIBDIRS="$LIBDIRS -L$dir"
+ else
+ echo "configure: warning: *** Library directory $dir does not exist." 1>&2
+ fi
+done
+IFS=$ac_save_IFS
-fi
+#
+# Tcl/Tk
+#
+echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
+echo "configure:1820: checking whether to build with Tcl" >&5
+# Check whether --with-tcl was given
+if test x"${with_tcl+set}" = xset; then
+ case $with_tcl in
+ yes)
+ :
+ ;;
+ no)
+ :
+ ;;
+ *)
+ withval=$with_tcl
+ { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
+ ;;
+ esac # $with_tcl
+else
+ with_tcl=no
+
+fi
+echo "$ac_t""$with_tcl" 1>&6
-echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
-echo "configure:1378: checking whether to build Perl modules" >&5
-# Check whether --with-perl or --without-perl was given.
-if test "${with_perl+set}" = set; then
- withval="$with_perl"
- if test x"${withval}" = x"yes" ; then
- echo "$ac_t""yes" 1>&6
+# If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
+echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
+echo "configure:1844: checking whether to build with Tk" >&5
+if test "$with_tcl" = yes; then
+ # Check whether --with-tk was given
+if test x"${with_tk+set}" = xset; then
+ case $with_tk in
+ yes)
+ :
+ ;;
+ no)
+ :
+ ;;
+ *)
+ withval=$with_tk
+ { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
+ ;;
+ esac # $with_tk
else
- echo "$ac_t""no" 1>&6
+ with_tk=yes
+
fi
else
- echo "$ac_t""no" 1>&6
+ with_tk=no
+fi
+echo "$ac_t""$with_tk" 1>&6
+
+
+
+# We see if the path to the TCL/TK configuration scripts is specified.
+# This will override the use of tclsh to find the paths to search.
+
+# Check whether --with-tclconfig was given
+if test x"${with_tclconfig+set}" = xset; then
+ case $with_tclconfig in
+ yes)
+ { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
+ ;;
+ esac # $with_tclconfig
+fi
+
+# We see if the path to the TK configuration scripts is specified.
+# This will override the use of tclsh to find the paths to search.
+
+# Check whether --with-tkconfig was given
+if test x"${with_tkconfig+set}" = xset; then
+ case $with_tkconfig in
+ yes)
+ { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
+ ;;
+ esac # $with_tkconfig
fi
+#
+# Optionally build Perl modules (Pg.pm and PL/Perl)
+#
+echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
+echo "configure:1906: checking whether to build Perl modules" >&5
+# Check whether --with-perl was given
+if test x"${with_perl+set}" = xset; then
+ case $with_perl in
+ yes)
+ :
+ ;;
+ no)
+ :
+ ;;
+ *)
+ withval=$with_perl
+ { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
+ ;;
+ esac # $with_perl
+else
+ with_perl=no
+
+fi
+echo "$ac_t""$with_perl" 1>&6
+
+#
+# Optionally build Python interface module
+#
echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
-echo "configure:1395: checking whether to build Python modules" >&5
-# Check whether --with-python or --without-python was given.
-if test "${with_python+set}" = set; then
- withval="$with_python"
- if test x"${withval}" = x"yes" ; then
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "python", so it can be a program name with args.
+echo "configure:1933: checking whether to build Python modules" >&5
+# Check whether --with-python was given
+if test x"${with_python+set}" = xset; then
+ case $with_python in
+ yes)
+ echo "$ac_t""yes" 1>&6
+# Extract the first word of "python", so it can be a program name with args.
set dummy python; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1404: checking for $ac_word" >&5
+echo "configure:1942: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo "$ac_t""no" 1>&6
fi
-
+
if test "${PYTHON+set}" = set ; then
python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
python_extmakefile="${python_configdir}/Makefile.pre.in"
echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
-echo "configure:1440: checking for Python extension makefile" >&5
+echo "configure:1978: checking for Python extension makefile" >&5
if test -f "${python_extmakefile}" ; then
echo "$ac_t""found" 1>&6
else
else
{ echo "configure: error: Python not found" 1>&2; exit 1; }
fi
+ ;;
+ no)
+ echo "$ac_t""no" 1>&6
+ ;;
+ *)
+ withval=$with_python
+ { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
+ ;;
+ esac # $with_python
else
- echo "$ac_t""no" 1>&6
+ with_python=no
+echo "$ac_t""no" 1>&6
+fi
+
+
+#
+# Optionally build the Java/JDBC tools
+#
+echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
+echo "configure:2015: checking whether to build Java/JDBC tools" >&5
+# Check whether --with-java was given
+if test x"${with_java+set}" = xset; then
+ case $with_java in
+ yes)
+ echo "$ac_t""yes" 1>&6
+for ac_prog in ant ant.sh ant.bat
+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:2026: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ case "$ANT" in
+ /*)
+ ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
+ ;;
+ *)
+ 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_path_ANT="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
fi
+ANT="$ac_cv_path_ANT"
+if test -n "$ANT"; then
+ echo "$ac_t""$ANT" 1>&6
else
echo "$ac_t""no" 1>&6
fi
+test -n "$ANT" && break
+done
+ ;;
+ no)
+ echo "$ac_t""no" 1>&6
+ ;;
+ *)
+ withval=$with_java
+ { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
+ ;;
+ esac # $with_java
+else
+ with_java=no
+echo "$ac_t""no" 1>&6
+fi
#
# Kerberos 4
#
-# Check whether --with-krb4 or --without-krb4 was given.
-if test "${with_krb4+set}" = set; then
- withval="$with_krb4"
- if test x"$withval" != x"no"; then
- if test x"$withval" != x"yes"; then
- krb4_prefix=$withval
- else
- krb4_prefix=/usr/athena
- fi
- with_krb4=yes
-else
- with_krb4=no
-fi
+# Check whether --with-krb4 was given
+if test x"${with_krb4+set}" = xset; then
+ case $with_krb4 in
+ yes)
+ krb4_prefix=/usr/athena
+ ;;
+ no)
+ :
+ ;;
+ *)
+ withval=$with_krb4
+ with_krb4=yes
+krb4_prefix=$withval
+ ;;
+ esac # $with_krb4
else
with_krb4=no
fi
-
-
-if test "$with_krb4" = yes ; then
+if test "$with_krb4" = yes; then
+
echo "$ac_t""building with Kerberos 4 support" 1>&6
cat >> confdefs.h <<\EOF
-#define KRB4
+#define KRB4 1
EOF
- if test -d "$krb4_prefix"; then
- if test -d "$krb4_prefix/include"; then
- INCLUDES="$INCLUDES -I$krb4_prefix/include"
- fi
- if test -d "$krb4_prefix/lib"; then
- krb_libdir="-L$krb4_prefix/lib"
- LIBS="$krb_libdir $LIBS"
- fi
+ if test -d "$krb4_prefix/include"; then
+ INCLUDES="$INCLUDES -I$krb4_prefix/include"
+ fi
+ if test -d "$krb4_prefix/lib"; then
+ LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
fi
- KRB_LIBS="$krb_libdir -lkrb -ldes"
+
+ krb_srvtab="/etc/srvtab"
+
fi
+
+
+
#
# Kerberos 5
#
-# Check whether --with-krb5 or --without-krb5 was given.
-if test "${with_krb5+set}" = set; then
- withval="$with_krb5"
- if test x"$withval" != x"no"; then
- if test x"$withval" != x"yes"; then
- krb5_prefix=$withval
- else
- krb5_prefix=/usr/athena
- fi
- with_krb5=yes
-else
- with_krb5=no
-fi
+# Check whether --with-krb5 was given
+if test x"${with_krb5+set}" = xset; then
+ case $with_krb5 in
+ yes)
+ krb5_prefix=/usr/athena
+ ;;
+ no)
+ :
+ ;;
+ *)
+ withval=$with_krb5
+ with_krb5=yes
+krb5_prefix=$withval
+ ;;
+ esac # $with_krb5
else
with_krb5=no
fi
-
-
-if test "$with_krb5" = yes ; then
+if test "$with_krb5" = yes; then
+
echo "$ac_t""building with Kerberos 5 support" 1>&6
cat >> confdefs.h <<\EOF
-#define KRB5
+#define KRB5 1
EOF
- if test -d $krb5_prefix; then
- if test -d "$krb5_prefix/include"; then
- INCLUDES="$INCLUDES -I$krb5_prefix/include"
- fi
- if test -d "$krb5_prefix/lib"; then
- krb_libdir="-L$krb5_prefix/lib"
- LIBS="$krb_libdir $LIBS"
- fi
+ if test -d "$krb5_prefix/include"; then
+ INCLUDES="$INCLUDES -I$krb5_prefix/include"
fi
+ if test -d "$krb5_prefix/lib"; then
+ LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
+ fi
+
+ krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
- KRB_LIBS="$krb_libdir -lkrb5 -lcrypto -lcom_err"
fi
+
+
+
# Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
{ echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
#
# Kerberos configuration parameters
#
-# Check whether --with-krb-srvnam or --without-krb-srvnam was given.
-if test "${with_krb_srvnam+set}" = set; then
- withval="$with_krb_srvnam"
- if test x"$withval" = x"yes"; then
- { echo "configure: error: argument required for --with-krb-srvnam" 1>&2; exit 1; }
-else
- krb_srvnam=$withval
-fi
+# Check whether --with-krb-srvnam was given
+if test x"${with_krb_srvnam+set}" = xset; then
+ case $with_krb_srvnam in
+ yes)
+ { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
+ ;;
+ esac # $with_krb_srvnam
else
- krb_srvnam="postgres"
+ with_krb_srvnam="postgres"
fi
-
cat >> confdefs.h <<EOF
-#define PG_KRB_SRVNAM "$krb_srvnam"
+#define PG_KRB_SRVNAM "$with_krb_srvnam"
EOF
-# Check whether --with-krb-srvtab or --without-krb-srvtab was given.
-if test "${with_krb_srvtab+set}" = set; then
- withval="$with_krb_srvtab"
- if test x"$withval" = x"yes"; then
- { echo "configure: error: argument required for --with-krb-srvtab" 1>&2; exit 1; }
-else
- krb_srvtab=$withval
-fi
-else
- if test "$with_krb5" = yes ; then
- krb_srvtab='FILE:${sysconfdir}/krb5.keytab'
-elif test "$with_krb4" = yes ; then
- krb_srvtab='/etc/srvtab'
-else
- krb_srvtab=
-fi
-fi
-
-
#
# OpenSSL
#
-# Check whether --with-openssl or --without-openssl was given.
-if test "${with_openssl+set}" = set; then
- withval="$with_openssl"
- if test x"$withval" != x"no" ; then
- if test x"$withval" != x"yes" ; then
- openssl_prefix=$withval
- else
- openssl_prefix=/usr/local/ssl
- fi
- with_openssl=yes
-else
- with_openssl=no
-fi
+# Check whether --with-openssl was given
+if test x"${with_openssl+set}" = xset; then
+ case $with_openssl in
+ yes)
+ openssl_prefix=/usr/local/ssl
+ ;;
+ no)
+ :
+ ;;
+ *)
+ withval=$with_openssl
+ with_openssl=yes
+openssl_prefix=$withval
+ ;;
+ esac # $with_openssl
else
with_openssl=no
fi
-
-
-if test "$with_openssl" = yes ; then
+if test "$with_openssl" = yes; then
+
echo "$ac_t""building with OpenSSL support" 1>&6
cat >> confdefs.h <<\EOF
-#define USE_SSL
+#define USE_SSL 1
EOF
INCLUDES="$INCLUDES -I${openssl_prefix}/include"
fi
if test -d "${openssl_prefix}/lib" ; then
- openssl_libdir="${openssl_prefix}/lib"
- LIBS="$LIBS -L${openssl_prefix}/lib"
+ LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
fi
+
fi
-# OpenSSL and Kerberos 5 both have a `crypto' library, so if you want to
-# use both of them you'll have to figure it out yourself.
-if test "$with_openssl" = yes && test "$with_krb5" = yes ; then
- { echo "configure: error: OpenSSL and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
-fi
+
+
+#
+# Optionally enable the building of the ODBC driver
+#
-if test "x${with_odbc+set}" = xset && test "x${enable_odbc+set}" != xset; then
+# Old option name
+if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
enable_odbc=$with_odbc
fi
echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
-echo "configure:1655: checking whether to build the ODBC driver" >&5
-# Check whether --enable-odbc or --disable-odbc was given.
-if test "${enable_odbc+set}" = set; then
- enableval="$enable_odbc"
- if test x"$enableval" = x"yes" ; then
- echo "$ac_t""yes" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-else
- echo "$ac_t""no" 1>&6
-fi
-
-
-
-
-if test x"$enable_odbc" = x"yes" ; then
-# Check whether --with-odbcinst or --without-odbcinst was given.
-if test "${with_odbcinst+set}" = set; then
- withval="$with_odbcinst"
- if test x"$with_odbcinst" = x"yes" || test x"$with_odbcinst" = x"no" ; then
- { echo "configure: error: You must supply an argument to the --with-odbcinst option." 1>&2; exit 1; }
-fi
-odbcinst_ini_dir=$withval
+echo "configure:2252: checking whether to build the ODBC driver" >&5
+# Check whether --enable-odbc was given
+if test x"${enable_odbc+set}" = xset; then
+ case $enable_odbc in
+ yes)
+ :
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_odbc
+ { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_odbc
else
- odbcinst_ini_dir='${sysconfdir}'
-fi
+ enable_odbc=no
-else
- odbcinst_ini_dir='${sysconfdir}'
fi
+echo "$ac_t""$enable_odbc" 1>&6
-
-echo $ac_n "checking setting ASSERT CHECKING""... $ac_c" 1>&6
-echo "configure:1691: checking setting ASSERT CHECKING" >&5
-# Check whether --enable-cassert or --disable-cassert was given.
-if test "${enable_cassert+set}" = set; then
- enableval="$enable_cassert"
- cat >> confdefs.h <<\EOF
-#define USE_ASSERT_CHECKING 1
-EOF
- echo "$ac_t""enabled" 1>&6
+# Allow for overriding the default location of the odbcinst.ini
+# file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
+# Check whether --with-odbcinst was given
+if test x"${with_odbcinst+set}" = xset; then
+ case $with_odbcinst in
+ yes)
+ { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
+ ;;
+ no)
+ { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
+ ;;
+ *)
+ withval=$with_odbcinst
+ odbcinst_ini_dir=$withval
+ ;;
+ esac # $with_odbcinst
else
- echo "$ac_t""disabled" 1>&6
-
+ odbcinst_ini_dir="\${sysconfdir}"
fi
-CPPFLAGS="$CPPFLAGS $INCLUDES"
-echo "- setting CPPFLAGS=$CPPFLAGS"
-
-LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
-echo "- setting LDFLAGS=$LDFLAGS"
-
-echo $ac_n "checking setting debug compiler flag""... $ac_c" 1>&6
-echo "configure:1712: checking setting debug compiler flag" >&5
-# Check whether --enable-debug or --disable-debug was given.
-if test "${enable_debug+set}" = set; then
- enableval="$enable_debug"
-
- case "$enableval" in
- y | ye | yes)
- CFLAGS="$CFLAGS -g"
- echo "$ac_t""enabled" 1>&6
- ;;
- *)
- CFLAGS=`echo "$CFLAGS" | sed -e 's/ -g/ /g' | sed -e 's/^-g//'`
- echo "$ac_t""disabled" 1>&6
- ;;
- esac
-
-else
- echo "$ac_t""using default" 1>&6
-
-fi
# Assume system is ELF if it predefines __ELF__ as 1,
-# otherwise believe "elf" setting from check of host_os above.
+# otherwise believe host_os based default.
+case $host_os in
+ freebsd1*|freebsd2*) elf=yes;;
+esac
+
cat > conftest.$ac_ext <<EOF
-#line 1737 "configure"
+#line 2305 "configure"
#include "confdefs.h"
#if __ELF__
yes
ELF_SYS=true
else
rm -rf conftest*
- if test "X$elf" = "Xyes"
-then
- ELF_SYS=true
+ if test "X$elf" = "Xyes" ; then
+ ELF_SYS=true
else
- ELF_SYS=
+ ELF_SYS=
fi
-
fi
rm -f conftest*
+#
+# Optionally build C++ code (i.e., libpq++)
+#
+echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
+echo "configure:2334: checking whether to build C++ modules" >&5
+# Check whether --with-CXX was given
+if test x"${with_CXX+set}" = xset; then
+ case $with_CXX in
+ yes)
+ :
+ ;;
+ no)
+ :
+ ;;
+ *)
+ withval=$with_CXX
+ with_CXX=yes
+CXX=$withval
+ ;;
+ esac # $with_CXX
+else
+ with_CXX=no
+fi
+if test "$with_CXX" = yes; then
+
+ echo "$ac_t""yes" 1>&6
+ # If the user has specified CXXFLAGS in the environment, leave it
+ # alone, else use a default.
-
-
-
-
-
-
-
-
-
-
-echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
-echo "configure:1778: checking whether to build C++ modules" >&5
-# Check whether --with-CXX or --without-CXX was given.
-if test "${with_CXX+set}" = set; then
- withval="$with_CXX"
- if test "x${withval+set}" = xset; then
- echo "$ac_t""yes" 1>&6
- if test x"$withval" != xyes ; then
- CXX=$withval
- fi
+ has_environ_CXXFLAGS="${CXXFLAGS+yes}"
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1792: checking for $ac_word" >&5
+echo "configure:2367: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1824: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
+echo "configure:2399: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cat > conftest.$ac_ext << EOF
-#line 1835 "configure"
+#line 2410 "configure"
#include "confdefs.h"
int main(){return(0);}
EOF
-if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cxx_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; 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 ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1866: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:2441: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
-echo "configure:1871: checking whether we are using GNU C++" >&5
+echo "configure:2446: checking whether we are using GNU C++" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
-echo "configure:1899: checking whether ${CXX-g++} accepts -g" >&5
+echo "configure:2474: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
fi
+ if test "$has_environ_CXXFLAGS" != yes; then
+ if test "$GXX" = yes; then
+ CXXFLAGS=-O2
+ else
+ case $template in
+ osf) CXXFLAGS='-O4 -Olimit 2000' ;;
+ unixware) CXXFLAGS='-O' ;;
+ *) CXXFLAGS= ;;
+ esac
+ fi
+ fi
+ if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
+ CXXFLAGS="$CXXFLAGS -g"
+ fi
+ echo "using CXXFLAGS=$CXXFLAGS"
+
echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
-echo "configure:1931: checking how to run the C++ preprocessor" >&5
+echo "configure:2522: checking how to run the C++ preprocessor" >&5
if test -z "$CXXCPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross
CXXCPP="${CXX-g++} -E"
cat > conftest.$ac_ext <<EOF
-#line 1944 "configure"
+#line 2535 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2540: \"$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
:
echo "$ac_t""$CXXCPP" 1>&6
+
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for string""... $ac_c" 1>&6
-echo "configure:1983: checking for string" >&5
+echo "configure:2575: checking for string" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1988 "configure"
+#line 2580 "configure"
#include "confdefs.h"
#include <string>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2585: \"$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*
if test x"$ac_cv_header_string" != xyes ; then
echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
-echo "configure:2020: checking for class string in <string.h>" >&5
+echo "configure:2612: checking for class string in <string.h>" >&5
if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2025 "configure"
+#line 2617 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
string foo = "test"
; return 0; }
EOF
-if { (eval echo configure:2035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
pgac_cv_class_string_in_string_h=yes
else
echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
-echo "configure:2062: checking for namespace std in C++" >&5
+echo "configure:2654: checking for namespace std in C++" >&5
if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cross_compiling=$ac_cv_prog_cxx_cross
cat > conftest.$ac_ext <<EOF
-#line 2076 "configure"
+#line 2668 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
; return 0; }
EOF
-if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
pgac_cv_cxx_namespace_std=yes
else
EOF
fi
+
else
echo "$ac_t""no" 1>&6
fi
-else
- echo "$ac_t""no" 1>&6
-fi
+CPPFLAGS="$CPPFLAGS $INCLUDES"
+LDFLAGS="$LDFLAGS $LIBDIRS"
+
+echo "using CPPFLAGS=$CPPFLAGS"
+echo "using LDFLAGS=$LDFLAGS"
+
# Figure out how to invoke "install" and what install options to use.
# 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:2140: checking for a BSD compatible install" >&5
+echo "configure:2736: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
# needs here if necessary.
case $host_os in
hpux*) INSTL_SHLIB_OPTS="-m 555" ;;
- *) INSTL_SHLIB_OPTS="-m 644" ;;
+ *) INSTL_SHLIB_OPTS="-m 755" ;;
esac
INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
-mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
-
-
-
-for ac_prog in gawk mawk nawk awk
+for ac_prog in mawk gawk nawk awk
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:2222: checking for $ac_word" >&5
+echo "configure:2814: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
test -n "$AWK" && break
done
-
-# Extract the first word of "flex", so it can be a program name with args.
-set dummy flex; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2255: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
+echo $ac_n "checking for flex""... $ac_c" 1>&6
+echo "configure:2844: checking for flex" >&5
+if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
+ # Let the user override the test
+if test -n "$FLEX"; then
+ pgac_cv_path_flex=$FLEX
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_LEX="flex"
- break
+ pgac_save_IFS=$IFS
+ IFS=:
+ for pgac_dir in $PATH; do
+ if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
+ pgac_dir=`pwd`
fi
+ for pgac_prog in flex lex; do
+ pgac_candidate="$pgac_dir/$pgac_prog"
+ if test -f "$pgac_candidate" \
+ && $pgac_candidate --version </dev/null >/dev/null 2>&1
+ then
+ echo '%%' > conftest.l
+ if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
+ if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
+ pgac_broken_flex=$pgac_candidate
+ continue
+ fi
+
+ pgac_cv_path_flex=$pgac_candidate
+ break 2
+ fi
+ fi
+ done
done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
+ IFS=$pgac_save_IFS
+ rm -f conftest.l
+ : ${pgac_cv_path_flex=no}
fi
-fi
-LEX="$ac_cv_prog_LEX"
-if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
-else
- echo "$ac_t""no" 1>&6
+
fi
-if test -z "$LEXLIB"
-then
- case "$LEX" in
- flex*) ac_lib=fl ;;
- *) ac_lib=l ;;
- esac
- echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
-echo "configure:2289: checking for yywrap in -l$ac_lib" >&5
-ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-l$ac_lib $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2297 "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 yywrap();
+echo "$ac_t""$pgac_cv_path_flex" 1>&6
+if test x"$pgac_cv_path_flex" = x"no"; then
+ if test -n "$pgac_broken_flex"; then
+ echo "configure: warning:
+*** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
+*** should get version 2.5.4 or later." 1>&2
+ fi
-int main() {
-yywrap()
-; return 0; }
-EOF
-if { (eval echo configure:2308: \"$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"
+ echo "configure: warning:
+*** Without Flex you will not be able to build PostgreSQL from CVS or
+*** change any of the scanner definition files. You can obtain Flex from
+*** a GNU mirror site. (If you are using the official distribution of
+*** PostgreSQL then you do not need to worry about this because the Flex
+*** output is pre-generated.)" 1>&2
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LEXLIB="-l$ac_lib"
+if test x"$pgac_cv_path_flex" = x"no"; then
+ FLEX=
else
- echo "$ac_t""no" 1>&6
+ FLEX=$pgac_cv_path_flex
fi
-fi
-if test "$LEX" = "flex"; then
- $LEX --version 2> /dev/null | grep -s '2\.5\.3' > /dev/null 2>&1
- if test $? -eq 0 ; then
- echo "configure: warning:
-***
-You have flex version 2.5.3, which is broken. Get version 2.5.4 or
-a different lex.
-(If you are using the official distribution of PostgreSQL then you
-do not need to worry about this because the lexer files are
-pre-generated. However, other software using flex is likely to be
-broken as well.)
-***" 1>&2
- fi
-fi
+
+
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
-echo "configure:2345: checking whether ln -s works" >&5
+echo "configure:2909: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo "$ac_t""no" 1>&6
fi
+# Check whether --with-gnu-ld or --without-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then
+ withval="$with_gnu_ld"
+ test "$withval" = no || with_gnu_ld=yes
+else
+ with_gnu_ld=no
+fi
+
+ac_prog=ld
+if test "$ac_cv_prog_gcc" = 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:2941: checking for ld used by GCC" >&5
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case "$ac_prog" in
+ # Accept absolute paths.
+ [\\/]* | [A-Za-z]:[\\/]*)
+ re_direlt='/[^/][^/]*/\.\./'
+ # Canonicalize the path of ld
+ ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
+echo "configure:2971: checking for GNU ld" >&5
+else
+ echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
+echo "configure:2974: checking for non-GNU ld" >&5
+fi
+if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -z "$LD"; then
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ ac_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some GNU ld's only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+ test "$with_gnu_ld" != no && break
+ else
+ test "$with_gnu_ld" != yes && break
+ fi
+ fi
+ done
+ IFS="$ac_save_ifs"
+else
+ ac_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
+
+LD="$ac_cv_path_LD"
+if test -n "$LD"; then
+ echo "$ac_t""$LD" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
+echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
+echo "configure:3009: checking if the linker ($LD) is GNU ld" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+ ac_cv_prog_gnu_ld=yes
+else
+ ac_cv_prog_gnu_ld=no
+fi
+fi
+
+echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
+with_gnu_ld=$ac_cv_prog_gnu_ld
+
+
+
+
+case $host_os in sysv5uw*)
+ echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
+echo "configure:3029: checking whether ld -R works" >&5
+if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+
+ pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
+ cat > conftest.$ac_ext <<EOF
+#line 3036 "configure"
+#include "confdefs.h"
+
+int main() {
+
+; return 0; }
+EOF
+if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ pgac_cv_prog_ld_R=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ pgac_cv_prog_ld_R=no
+fi
+rm -f conftest*
+ LDFLAGS=$pgac_save_LDFLAGS
+
+fi
+
+echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
+ ld_R_works=$pgac_cv_prog_ld_R
+
+esac
# 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:2368: checking for $ac_word" >&5
+echo "configure:3064: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo "$ac_t""no" 1>&6
fi
-# Extract the first word of "tar", so it can be a program name with args.
-set dummy tar; ac_word=$2
+for ac_prog in lorder
+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:2398: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
+echo "configure:3096: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- case "$tar" in
- /*)
- ac_cv_path_tar="$tar" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_tar="$tar" # Let the user override the test with a dos path.
- ;;
- *)
+ if test -n "$LORDER"; then
+ ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
+else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
+ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
- ac_cv_path_tar="$ac_dir/$ac_word"
+ ac_cv_prog_LORDER="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
- ;;
+fi
+fi
+LORDER="$ac_cv_prog_LORDER"
+if test -n "$LORDER"; then
+ echo "$ac_t""$LORDER" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+test -n "$LORDER" && break
+done
+
+# Extract the first word of "tar", so it can be a program name with args.
+set dummy tar; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:3128: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ case "$TAR" in
+ /*)
+ ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
+ ;;
+ *)
+ 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_path_TAR="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
esac
fi
-tar="$ac_cv_path_tar"
-if test -n "$tar"; then
- echo "$ac_t""$tar" 1>&6
+TAR="$ac_cv_path_TAR"
+if test -n "$TAR"; then
+ echo "$ac_t""$TAR" 1>&6
else
echo "$ac_t""no" 1>&6
fi
# 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:2435: checking for $ac_word" >&5
+echo "configure:3165: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
test -n "$PERL" && break
done
-for ac_prog in 'bison -y' byacc
+
+for ac_prog in 'bison -y'
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:2469: checking for $ac_word" >&5
+echo "configure:3200: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
test -n "$YACC" && break
done
-test -n "$YACC" || YACC="yacc"
-
+if test -z "$YACC"; then
+ echo "configure: warning:
+*** Without Bison you will not be able to build PostgreSQL from CVS or
+*** change any of the parser definition files. You can obtain Bison from
+*** a GNU mirror site. (If you are using the official distribution of
+*** PostgreSQL then you do not need to worry about this because the Bison
+*** output is pre-generated.) To use a different yacc program (possible,
+*** but not recommended), set the environment variable YACC before running
+*** 'configure'." 1>&2
+fi
-echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
-echo "configure:2503: checking for main in -lsfio" >&5
-ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+if test "$with_tk" = yes; then
+ # Extract the first word of "wish", so it can be a program name with args.
+set dummy wish; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:3245: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lsfio $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2511 "configure"
-#include "confdefs.h"
-
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:2518: \"$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*
-LIBS="$ac_save_LIBS"
-
+ case "$WISH" in
+ /*)
+ ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
+ ;;
+ *)
+ 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_path_WISH="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-lsfio $LIBS"
-
+WISH="$ac_cv_path_WISH"
+if test -n "$WISH"; then
+ echo "$ac_t""$WISH" 1>&6
else
echo "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
-echo "configure:2546: checking for main in -lncurses" >&5
-ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lncurses $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2554 "configure"
-#include "confdefs.h"
-
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:2561: \"$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"
+ test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
- LIBS="-lncurses $LIBS"
+##
+## Libraries
+##
-else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
-echo "configure:2587: checking for main in -lcurses" >&5
-ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
+echo "configure:3286: checking for main in -lsfio" >&5
+ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lcurses $LIBS"
+LIBS="-lsfio $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2595 "configure"
+#line 3294 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3301: \"$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
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lcurses $LIBS"
+ LIBS="-lsfio $LIBS"
else
echo "$ac_t""no" 1>&6
fi
-fi
+echo $ac_n "checking for readline""... $ac_c" 1>&6
+echo "configure:3329: checking for readline" >&5
-echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
-echo "configure:2632: checking for main in -ltermcap" >&5
-ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-ltermcap $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2640 "configure"
+ pgac_cv_check_readline=no
+for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
+ for pgac_rllib in -lreadline -ledit ; do
+ pgac_save_LIBS=$LIBS
+ LIBS="${pgac_rllib}${pgac_lib} $LIBS"
+ cat > conftest.$ac_ext <<EOF
+#line 3340 "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 readline();
int main() {
-main()
+readline()
; return 0; }
EOF
-if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3351: \"$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"
+ pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
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*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-ltermcap $LIBS"
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
-echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
-echo "configure:2675: checking for main in -lreadline" >&5
-ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lreadline $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2683 "configure"
-#include "confdefs.h"
+ LIBS=$pgac_save_LIBS
+ done
+done
+LIBS=$pgac_save_LIBS
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:2690: \"$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*
-LIBS="$ac_save_LIBS"
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
+if test "$pgac_cv_check_readline" != no ; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_LIBREADLINE 1
EOF
- LIBS="-lreadline $LIBS"
-
+ LIBS="$pgac_cv_check_readline $LIBS"
+ echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
else
echo "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for using_history in -lreadline""... $ac_c" 1>&6
-echo "configure:2718: checking for using_history in -lreadline" >&5
-ac_lib_var=`echo readline'_'using_history | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
+echo "configure:3378: checking for library containing using_history" >&5
+if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lreadline $LIBS"
+ ac_func_search_save_LIBS="$LIBS"
+ac_cv_search_using_history="no"
cat > conftest.$ac_ext <<EOF
-#line 2726 "configure"
+#line 3385 "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
using_history()
; return 0; }
EOF
-if { (eval echo configure:2737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3396: \"$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"
+ ac_cv_search_using_history="none required"
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*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_HISTORY_IN_READLINE 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
-echo "configure:2759: checking for main in -lhistory" >&5
-ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lhistory $LIBS"
+test "$ac_cv_search_using_history" = "no" && for i in history; do
+LIBS="-l$i $ac_func_search_save_LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2767 "configure"
+#line 3407 "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 using_history();
int main() {
-main()
+using_history()
; return 0; }
EOF
-if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3418: \"$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"
+ ac_cv_search_using_history="-l$i"
+break
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*
-LIBS="$ac_save_LIBS"
-
+done
+LIBS="$ac_func_search_save_LIBS"
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo history | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
- LIBS="-lhistory $LIBS"
+echo "$ac_t""$ac_cv_search_using_history" 1>&6
+if test "$ac_cv_search_using_history" != "no"; then
+ test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
+ cat >> confdefs.h <<\EOF
+#define HAVE_HISTORY_FUNCTIONS 1
+EOF
-else
- echo "$ac_t""no" 1>&6
-fi
-
+else :
+
fi
-
if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
then
echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
-echo "configure:2807: checking for main in -lbsd" >&5
+echo "configure:3445: checking for main in -lbsd" >&5
ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lbsd $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2815 "configure"
+#line 3453 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:2822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3460: \"$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
fi
echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
-echo "configure:2851: checking for setproctitle in -lutil" >&5
+echo "configure:3489: checking for setproctitle in -lutil" >&5
ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lutil $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2859 "configure"
+#line 3497 "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
setproctitle()
; return 0; }
EOF
-if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3508: \"$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
fi
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
-echo "configure:2898: checking for main in -lm" >&5
+echo "configure:3536: checking for main in -lm" >&5
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2906 "configure"
+#line 3544 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3551: \"$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
fi
echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
-echo "configure:2941: checking for main in -ldl" >&5
+echo "configure:3579: checking for main in -ldl" >&5
ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2949 "configure"
+#line 3587 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3594: \"$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
fi
echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
-echo "configure:2984: checking for main in -lsocket" >&5
+echo "configure:3622: checking for main in -lsocket" >&5
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2992 "configure"
+#line 3630 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3637: \"$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
fi
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
-echo "configure:3027: checking for main in -lnsl" >&5
+echo "configure:3665: checking for main in -lnsl" >&5
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3035 "configure"
+#line 3673 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3680: \"$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
fi
echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
-echo "configure:3070: checking for main in -lipc" >&5
+echo "configure:3708: checking for main in -lipc" >&5
ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lipc $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3078 "configure"
+#line 3716 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3723: \"$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
fi
echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
-echo "configure:3113: checking for main in -lIPC" >&5
+echo "configure:3751: checking for main in -lIPC" >&5
ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lIPC $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3121 "configure"
+#line 3759 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3766: \"$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
fi
echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
-echo "configure:3156: checking for main in -llc" >&5
+echo "configure:3794: checking for main in -llc" >&5
ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-llc $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3164 "configure"
+#line 3802 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3809: \"$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
fi
echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
-echo "configure:3199: checking for main in -ldld" >&5
+echo "configure:3837: checking for main in -ldld" >&5
ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-ldld $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3207 "configure"
+#line 3845 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3852: \"$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 "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
-echo "configure:3242: checking for main in -lln" >&5
-ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
+echo "configure:3880: checking for main in -lld" >&5
+ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lln $LIBS"
+LIBS="-lld $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3250 "configure"
+#line 3888 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3895: \"$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
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lln $LIBS"
+ LIBS="-lld $LIBS"
else
echo "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
-echo "configure:3285: checking for main in -lld" >&5
-ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
+echo "configure:3923: checking for main in -lcompat" >&5
+ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lld $LIBS"
+LIBS="-lcompat $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3293 "configure"
+#line 3931 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3938: \"$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
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lld $LIBS"
+ LIBS="-lcompat $LIBS"
else
echo "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
-echo "configure:3328: checking for main in -lcompat" >&5
-ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
+echo "configure:3966: checking for main in -lBSD" >&5
+ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lcompat $LIBS"
+LIBS="-lBSD $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3336 "configure"
+#line 3974 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3981: \"$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
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lcompat $LIBS"
+ LIBS="-lBSD $LIBS"
else
echo "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
-echo "configure:3371: checking for main in -lBSD" >&5
-ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
+echo "configure:4009: checking for main in -lgen" >&5
+ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lBSD $LIBS"
+LIBS="-lgen $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3379 "configure"
+#line 4017 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4024: \"$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
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lBSD $LIBS"
+ LIBS="-lgen $LIBS"
else
echo "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
-echo "configure:3414: checking for main in -lgen" >&5
-ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
+echo "configure:4052: checking for main in -lPW" >&5
+ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lgen $LIBS"
+LIBS="-lPW $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3422 "configure"
+#line 4060 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4067: \"$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
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lgen $LIBS"
+ LIBS="-lPW $LIBS"
else
echo "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
-echo "configure:3457: checking for main in -lPW" >&5
-ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
+echo "configure:4095: checking for main in -lresolv" >&5
+ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lPW $LIBS"
+LIBS="-lresolv $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3465 "configure"
+#line 4103 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4110: \"$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
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lPW $LIBS"
+ LIBS="-lresolv $LIBS"
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
+echo "configure:4138: checking for main in -lunix" >&5
+ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lunix $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 4146 "configure"
+#include "confdefs.h"
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:4153: \"$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*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_lib 1
+EOF
+
+ LIBS="-lunix $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
-echo "configure:3501: checking for library containing crypt" >&5
+echo "configure:4182: checking for library containing crypt" >&5
if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_func_search_save_LIBS="$LIBS"
ac_cv_search_crypt="no"
cat > conftest.$ac_ext <<EOF
-#line 3508 "configure"
+#line 4189 "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
crypt()
; return 0; }
EOF
-if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_search_crypt="none required"
else
test "$ac_cv_search_crypt" = "no" && for i in crypt; do
LIBS="-l$i $ac_func_search_save_LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3530 "configure"
+#line 4211 "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
crypt()
; return 0; }
EOF
-if { (eval echo configure:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_search_crypt="-l$i"
break
else :
fi
+echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
+echo "configure:4243: checking for __inet_ntoa in -lbind" >&5
+ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lbind $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 4251 "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 __inet_ntoa();
+
+int main() {
+__inet_ntoa()
+; return 0; }
+EOF
+if { (eval echo configure:4262: \"$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*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_lib 1
+EOF
+
+ LIBS="-lbind $LIBS"
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
+echo "configure:4291: checking for zlib.h" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 4296 "configure"
+#include "confdefs.h"
+#include <zlib.h>
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:4301: \"$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*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+
echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
-echo "configure:3562: checking for inflate in -lz" >&5
+echo "configure:4319: checking for inflate in -lz" >&5
ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lz $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3570 "configure"
+#line 4327 "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
inflate()
; return 0; }
EOF
-if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4338: \"$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
fi
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+
+
if test "$with_krb4" = yes ; then
echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
-echo "configure:3611: checking for des_encrypt in -ldes" >&5
+echo "configure:4374: checking for des_encrypt in -ldes" >&5
ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-ldes $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3619 "configure"
+#line 4382 "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
des_encrypt()
; return 0; }
EOF
-if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4393: \"$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
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: library \`des' is required for Kerberos 4" 1>&2; exit 1; }
+{ echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
fi
echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
-echo "configure:3659: checking for krb_sendauth in -lkrb" >&5
+echo "configure:4422: checking for krb_sendauth in -lkrb" >&5
ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lkrb $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3667 "configure"
+#line 4430 "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
krb_sendauth()
; return 0; }
EOF
-if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4441: \"$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
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: library \`krb' is required for Kerberos 4" 1>&2; exit 1; }
+{ echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
fi
fi
if test "$with_krb5" = yes ; then
- echo $ac_n "checking for main in -lcom_err""... $ac_c" 1>&6
-echo "configure:3710: checking for main in -lcom_err" >&5
-ac_lib_var=`echo com_err'_'main | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
+echo "configure:4473: checking for com_err in -lcom_err" >&5
+ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lcom_err $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3718 "configure"
+#line 4481 "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 com_err();
int main() {
-main()
+com_err()
; return 0; }
EOF
-if { (eval echo configure:3725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4492: \"$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
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: library \`com_err' is required for Kerberos 5" 1>&2; exit 1; }
+{ echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
fi
- echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
-echo "configure:3754: checking for main in -lcrypto" >&5
-ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
+echo "configure:4521: checking for krb5_encrypt in -lcrypto" >&5
+ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lcrypto $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3762 "configure"
+#line 4529 "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 krb5_encrypt();
int main() {
-main()
+krb5_encrypt()
; return 0; }
EOF
-if { (eval echo configure:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4540: \"$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
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: library \`crypto' is required for Kerberos 5" 1>&2; exit 1; }
+echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
+echo "configure:4566: checking for krb5_encrypt in -lk5crypto" >&5
+ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lk5crypto $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 4574 "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 krb5_encrypt();
+
+int main() {
+krb5_encrypt()
+; return 0; }
+EOF
+if { (eval echo configure:4585: \"$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*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_lib 1
+EOF
+
+ LIBS="-lk5crypto $LIBS"
+
+else
+ echo "$ac_t""no" 1>&6
+{ echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
+fi
+
fi
- echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
-echo "configure:3798: checking for main in -lkrb5" >&5
-ac_lib_var=`echo krb5'_'main | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
+echo "configure:4616: checking for krb5_sendauth in -lkrb5" >&5
+ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lkrb5 $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3806 "configure"
+#line 4624 "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 krb5_sendauth();
int main() {
-main()
+krb5_sendauth()
; return 0; }
EOF
-if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4635: \"$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
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: library \`krb5' is required for Kerberos 5" 1>&2; exit 1; }
+{ echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
fi
fi
if test "$with_openssl" = yes ; then
echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
-echo "configure:3845: checking for CRYPTO_new_ex_data in -lcrypto" >&5
+echo "configure:4667: checking for CRYPTO_new_ex_data in -lcrypto" >&5
ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lcrypto $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3853 "configure"
+#line 4675 "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
CRYPTO_new_ex_data()
; return 0; }
EOF
-if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4686: \"$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
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
+{ echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
fi
echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
-echo "configure:3893: checking for SSL_library_init in -lssl" >&5
+echo "configure:4715: checking for SSL_library_init in -lssl" >&5
ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lssl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3901 "configure"
+#line 4723 "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
SSL_library_init()
; return 0; }
EOF
-if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4734: \"$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
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
+{ echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
fi
fi
-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:3944: checking for ANSI C header files" >&5
-if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
+##
+## Header files
+##
+for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/types.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
+do
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+echo "configure:4772: checking for $ac_hdr" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3949 "configure"
+#line 4777 "configure"
#include "confdefs.h"
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
+#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4782: \"$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
+ 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*
- ac_cv_header_stdc=no
+ eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
+fi
+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___%'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_hdr 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
-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 3974 "configure"
+
+for ac_hdr in netinet/in.h
+do
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+echo "configure:4813: checking for $ac_hdr" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 4818 "configure"
#include "confdefs.h"
-#include <string.h>
+#include <$ac_hdr>
EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:4823: \"$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*
- ac_cv_header_stdc=no
+ eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
-
fi
+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___%'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_hdr 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
-if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
+echo "configure:4850: checking for netinet/tcp.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 3992 "configure"
+#line 4852 "configure"
#include "confdefs.h"
-#include <stdlib.h>
+
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#include <netinet/tcp.h>
+
EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:4862: \"$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 >> confdefs.h <<\EOF
+#define HAVE_NETINET_TCP_H 1
+EOF
+ echo "$ac_t""yes" 1>&6
else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_header_stdc=no
+ echo "$ac_t""no" 1>&6
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
- :
+echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
+echo "configure:4880: checking whether string.h and strings.h may both be included" >&5
+if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4013 "configure"
+#line 4885 "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); }
-
-EOF
-if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- :
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
-fi
-rm -fr conftest*
-fi
-
-fi
-fi
+#include <string.h>
+#include <strings.h>
-echo "$ac_t""$ac_cv_header_stdc" 1>&6
-if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<\EOF
-#define STDC_HEADERS 1
EOF
-
-fi
-
-echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
-echo "configure:4048: checking for sys/wait.h that is POSIX.1 compatible" >&5
-if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:4892: \"$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 <<EOF
-#line 4053 "configure"
+#line 4897 "configure"
#include "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
+#include <string.h>
+#include <strings.h>
+
int main() {
-int s;
-wait (&s);
-s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
+int n = strcasecmp("a", "b");
; return 0; }
EOF
-if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- ac_cv_header_sys_wait_h=yes
+ pgac_cv_header_strings_both=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_header_sys_wait_h=no
+ pgac_cv_header_strings_both=no
fi
rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
-if test $ac_cv_header_sys_wait_h = yes; then
- cat >> confdefs.h <<\EOF
-#define HAVE_SYS_WAIT_H 1
-EOF
-
-fi
-
-for ac_hdr in arpa/inet.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4093: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 4098 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4103: \"$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"
+ pgac_cv_header_strings_both=no
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
+if test x"$pgac_cv_header_strings_both" = x"yes"; then
+ cat >> confdefs.h <<\EOF
+#define STRING_H_WITH_STRINGS_H 1
EOF
-
-else
- echo "$ac_t""no" 1>&6
+
fi
-done
-for ac_hdr in crypt.h
+for ac_hdr in readline/readline.h readline.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4133: checking for $ac_hdr" >&5
+echo "configure:4938: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4138 "configure"
+#line 4943 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4948: \"$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 >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
-
+ break
else
echo "$ac_t""no" 1>&6
fi
done
-for ac_hdr in dld.h
+for ac_hdr in readline/history.h history.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4173: checking for $ac_hdr" >&5
+echo "configure:4978: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4178 "configure"
+#line 4983 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4988: \"$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 >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
-
+ break
else
echo "$ac_t""no" 1>&6
fi
done
-for ac_hdr in endian.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4213: checking for $ac_hdr" >&5
+
+if test "$with_krb4" = yes ; then
+ ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for krb.h""... $ac_c" 1>&6
+echo "configure:5018: checking for krb.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4218 "configure"
+#line 5023 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <krb.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5028: \"$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*
fi
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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
+ :
else
echo "$ac_t""no" 1>&6
+{ echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
fi
-done
-for ac_hdr in float.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4253: checking for $ac_hdr" >&5
+fi
+
+if test "$with_krb5" = yes ; then
+ ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
+echo "configure:5055: checking for krb5.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4258 "configure"
+#line 5060 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <krb5.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5065: \"$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*
fi
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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
+ :
else
echo "$ac_t""no" 1>&6
+{ echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
fi
-done
-for ac_hdr in fp_class.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4293: checking for $ac_hdr" >&5
+ ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
+echo "configure:5089: checking for com_err.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4298 "configure"
+#line 5094 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <com_err.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5099: \"$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*
fi
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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
+ :
else
echo "$ac_t""no" 1>&6
+{ echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
fi
-done
-for ac_hdr in getopt.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4333: checking for $ac_hdr" >&5
+fi
+
+if test "$with_openssl" = yes ; then
+ ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
+echo "configure:5126: checking for openssl/ssl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4338 "configure"
+#line 5131 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <openssl/ssl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5136: \"$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*
fi
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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
+ :
else
echo "$ac_t""no" 1>&6
+{ echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
fi
-done
-for ac_hdr in ieeefp.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4373: checking for $ac_hdr" >&5
+ ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
+echo "configure:5160: checking for openssl/err.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4378 "configure"
+#line 5165 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <openssl/err.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5170: \"$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*
fi
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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
+ :
else
echo "$ac_t""no" 1>&6
+{ echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
fi
-done
-for ac_hdr in limits.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4413: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+fi
+
+
+##
+## Types, structures, compiler characteristics
+##
+echo $ac_n "checking for working const""... $ac_c" 1>&6
+echo "configure:5199: checking for working const" >&5
+if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4418 "configure"
+#line 5204 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+
+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;
+
+ *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; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4423: \"$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
+if { (eval echo configure:5253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ ac_cv_c_const=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"
+ ac_cv_c_const=no
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$ac_cv_c_const" 1>&6
+if test $ac_cv_c_const = no; then
+ cat >> confdefs.h <<\EOF
+#define const
EOF
-
-else
- echo "$ac_t""no" 1>&6
+
fi
-done
-for ac_hdr in netdb.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4453: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+echo $ac_n "checking for inline""... $ac_c" 1>&6
+echo "configure:5274: checking for inline" >&5
+if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
+ ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
-#line 4458 "configure"
+#line 5281 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+
+int main() {
+} $ac_kw foo() {
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4463: \"$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
+if { (eval echo configure:5288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ ac_cv_c_inline=$ac_kw; break
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*
+done
+
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$ac_cv_c_inline" 1>&6
+case "$ac_cv_c_inline" in
+ inline | yes) ;;
+ no) cat >> confdefs.h <<\EOF
+#define inline
EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
+ ;;
+ *) cat >> confdefs.h <<EOF
+#define inline $ac_cv_c_inline
+EOF
+ ;;
+esac
-for ac_hdr in netinet/in.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4493: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+
+
+echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
+echo "configure:5316: checking for preprocessor stringizing operator" >&5
+if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4498 "configure"
+#line 5321 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+
+#define x(y) #y
+
+char *s = x(teststring);
+
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4503: \"$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
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "#teststring" >/dev/null 2>&1; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ ac_cv_c_stringize=no
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"
+ ac_cv_c_stringize=yes
fi
rm -f conftest*
+
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+if test "${ac_cv_c_stringize}" = yes
+then
+ cat >> confdefs.h <<\EOF
+#define HAVE_STRINGIZE 1
EOF
-
-else
- echo "$ac_t""no" 1>&6
+
fi
-done
+echo "$ac_t""${ac_cv_c_stringize}" 1>&6
-for ac_hdr in readline/readline.h readline.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4533: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+echo $ac_n "checking for signed types""... $ac_c" 1>&6
+echo "configure:5351: checking for signed types" >&5
+if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4538 "configure"
+#line 5356 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+
+int main() {
+signed char c; signed short s; signed int i;
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4543: \"$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
+if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ pgac_cv_c_signed=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"
+ pgac_cv_c_signed=no
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$pgac_cv_c_signed" 1>&6
+if test x"$pgac_cv_c_signed" = xno ; then
+ cat >> confdefs.h <<\EOF
+#define signed
EOF
- break
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-for ac_hdr in readline/history.h history.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4573: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+fi
+echo $ac_n "checking for volatile""... $ac_c" 1>&6
+echo "configure:5383: checking for volatile" >&5
+if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4578 "configure"
+#line 5388 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+
+int main() {
+extern volatile int i;
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4583: \"$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
+if { (eval echo configure:5395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ pgac_cv_c_volatile=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"
+ pgac_cv_c_volatile=no
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$pgac_cv_c_volatile" 1>&6
+if test x"$pgac_cv_c_volatile" = xno ; then
+ cat >> confdefs.h <<\EOF
+#define volatile
EOF
- break
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-for ac_hdr in sys/select.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4613: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+fi
+echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
+echo "configure:5415: checking whether struct tm is in sys/time.h or time.h" >&5
+if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4618 "configure"
+#line 5420 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <sys/types.h>
+#include <time.h>
+int main() {
+struct tm *tp; tp->tm_sec;
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4623: \"$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
+if { (eval echo configure:5428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ ac_cv_struct_tm=time.h
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"
+ ac_cv_struct_tm=sys/time.h
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$ac_cv_struct_tm" 1>&6
+if test $ac_cv_struct_tm = sys/time.h; then
+ cat >> confdefs.h <<\EOF
+#define TM_IN_SYS_TIME 1
EOF
-
-else
- echo "$ac_t""no" 1>&6
+
fi
-done
-for ac_hdr in termios.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4653: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
+echo "configure:5449: checking for tm_zone in struct tm" >&5
+if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4658 "configure"
+#line 5454 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <sys/types.h>
+#include <$ac_cv_struct_tm>
+int main() {
+struct tm tm; tm.tm_zone;
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4663: \"$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
+if { (eval echo configure:5462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ ac_cv_struct_tm_zone=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"
+ ac_cv_struct_tm_zone=no
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
+if test "$ac_cv_struct_tm_zone" = yes; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_TM_ZONE 1
EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-for ac_hdr in unistd.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4693: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+else
+ echo $ac_n "checking for tzname""... $ac_c" 1>&6
+echo "configure:5482: checking for tzname" >&5
+if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4698 "configure"
+#line 5487 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <time.h>
+#ifndef tzname /* For SGI. */
+extern char *tzname[]; /* RS6000 and others reject char **tzname. */
+#endif
+int main() {
+atoi(*tzname);
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4703: \"$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
+if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ ac_cv_var_tzname=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"
+ ac_cv_var_tzname=no
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$ac_cv_var_tzname" 1>&6
+ if test $ac_cv_var_tzname = yes; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_TZNAME 1
EOF
-
-else
- echo "$ac_t""no" 1>&6
+
+ fi
fi
-done
-for ac_hdr in values.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4733: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+echo $ac_n "checking for union semun""... $ac_c" 1>&6
+echo "configure:5519: checking for union semun" >&5
+if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4738 "configure"
+#line 5524 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4743: \"$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
+#include <sys/types.h>
+#include <sys/ipc.h>
+#include <sys/sem.h>
+int main() {
+union semun semun;
+; return 0; }
+EOF
+if { (eval echo configure:5533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ pgac_cv_union_semun=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"
+ pgac_cv_union_semun=no
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$pgac_cv_union_semun" 1>&6
+if test x"$pgac_cv_union_semun" = xyes ; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_UNION_SEMUN 1
EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-for ac_hdr in sys/pstat.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4773: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+fi
+echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
+echo "configure:5553: checking for struct sockaddr_un" >&5
+if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4778 "configure"
+#line 5558 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <sys/types.h>
+#ifdef HAVE_SYS_UN_H
+#include <sys/un.h>
+#endif
+int main() {
+struct sockaddr_un un;
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4783: \"$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
+if { (eval echo configure:5568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ pgac_cv_struct_sockaddr_un=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"
+ pgac_cv_struct_sockaddr_un=no
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
+if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_STRUCT_SOCKADDR_UN 1
EOF
-
-else
- echo "$ac_t""no" 1>&6
+
fi
-done
-for ac_hdr in sys/types.h sys/socket.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4813: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+##
+## Functions, global variables
+##
+echo $ac_n "checking for int timezone""... $ac_c" 1>&6
+echo "configure:5592: checking for int timezone" >&5
+if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4818 "configure"
+#line 5597 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#include <time.h>
+int res;
+int main() {
+res = timezone / 60;
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4823: \"$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
+if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ pgac_cv_var_int_timezone=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"
+ pgac_cv_var_int_timezone=no
fi
rm -f conftest*
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
+
+echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
+if test x"$pgac_cv_var_int_timezone" = xyes ; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_INT_TIMEZONE
EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-for ac_hdr in sys/param.h pwd.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4853: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+fi
+echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
+echo "configure:5625: checking types of arguments for accept()" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 4858 "configure"
+ if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
+ for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
+ for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
+ cat > conftest.$ac_ext <<EOF
+#line 5639 "configure"
#include "confdefs.h"
-#include <$ac_hdr>
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
+int main() {
+
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4863: \"$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
+if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ ac_not_found=no; break 3
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"
+ ac_not_found=yes
fi
rm -f conftest*
+ done
+ done
+ done
+ if test "$ac_not_found" = yes; then
+ { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
+ fi
+ if test "$ac_cv_func_accept_arg3" = "void"; then
+ ac_cv_func_accept_arg3=int
+ fi
+
+fi
+
fi
-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___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-else
- echo "$ac_t""no" 1>&6
fi
-done
+ echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
+ cat >> confdefs.h <<EOF
+#define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
+EOF
+ cat >> confdefs.h <<EOF
+#define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
+EOF
-if test "$with_krb4" = yes ; then
- ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for krb.h""... $ac_c" 1>&6
-echo "configure:4893: checking for krb.h" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ cat >> confdefs.h <<EOF
+#define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
+EOF
+
+
+echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
+echo "configure:5692: checking whether gettimeofday takes only one argument" >&5
+if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4898 "configure"
+#line 5697 "configure"
#include "confdefs.h"
-#include <krb.h>
+#include <sys/time.h>
+int main() {
+struct timeval *tp;
+struct timezone *tzp;
+gettimeofday(tp,tzp);
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4903: \"$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
+if { (eval echo configure:5706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ pgac_cv_func_gettimeofday_1arg=no
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"
+ pgac_cv_func_gettimeofday_1arg=yes
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
-fi
+
+echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
+if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
+ cat >> confdefs.h <<\EOF
+#define GETTIMEOFDAY_1ARG
+EOF
fi
-if test "$with_krb5" = yes ; then
- ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
-echo "configure:4930: checking for krb5.h" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:5729: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4935 "configure"
+#line 5734 "configure"
#include "confdefs.h"
-#include <krb5.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();
+
+int main() {
+
+/* 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();
+#endif
+
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4940: \"$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
+if { (eval echo configure:5757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ eval "ac_cv_func_$ac_func=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"
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+
+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'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_func 1
+EOF
+
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
fi
+done
- ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
-echo "configure:4964: checking for com_err.h" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 4969 "configure"
+
+cat > conftest.$ac_ext <<EOF
+#line 5783 "configure"
#include "confdefs.h"
-#include <com_err.h>
+#include <unistd.h>
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4974: \"$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
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "fdatasync" >/dev/null 2>&1; 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"
+ cat >> confdefs.h <<\EOF
+#define HAVE_FDATASYNC_DECL 1
+EOF
+
fi
rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
-fi
-fi
-if test "$with_openssl" = yes ; then
- ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
-echo "configure:5001: checking for openssl/ssl.h" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
+echo "configure:5799: checking for PS_STRINGS" >&5
+if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5006 "configure"
+#line 5804 "configure"
#include "confdefs.h"
-#include <openssl/ssl.h>
+#include <machine/vmparam.h>
+#include <sys/exec.h>
+
+int main() {
+PS_STRINGS->ps_nargvstr = 1;
+PS_STRINGS->ps_argvstr = "foo";
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5011: \"$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
+if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
+ pgac_cv_var_PS_STRINGS=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"
+ pgac_cv_var_PS_STRINGS=no
fi
rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
fi
- ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
-echo "configure:5035: checking for openssl/err.h" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 5040 "configure"
-#include "confdefs.h"
-#include <openssl/err.h>
+echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
+if test "$pgac_cv_var_PS_STRINGS" = yes ; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_PS_STRINGS
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5045: \"$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*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
-fi
fi
-
-echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:5071: checking for working const" >&5
-if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+SNPRINTF=''
+echo $ac_n "checking for snprintf""... $ac_c" 1>&6
+echo "configure:5836: checking for snprintf" >&5
+if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5076 "configure"
+#line 5841 "configure"
#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char snprintf(); 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 snprintf();
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;
-
- *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;
-}
+/* 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_snprintf) || defined (__stub___snprintf)
+choke me
+#else
+snprintf();
+#endif
; return 0; }
EOF
-if { (eval echo configure:5125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_cv_c_const=yes
+ eval "ac_cv_func_snprintf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_c_const=no
+ eval "ac_cv_func_snprintf=no"
fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_c_const" 1>&6
-if test $ac_cv_c_const = no; then
+if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define const
+#define HAVE_SNPRINTF 1
EOF
+else
+ echo "$ac_t""no" 1>&6
+SNPRINTF='snprintf.o'
fi
-echo $ac_n "checking for inline""... $ac_c" 1>&6
-echo "configure:5146: checking for inline" >&5
-if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
+echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
+echo "configure:5888: checking for vsnprintf" >&5
+if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_cv_c_inline=no
-for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
-#line 5153 "configure"
+#line 5893 "configure"
#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char vsnprintf(); 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 vsnprintf();
int main() {
-} $ac_kw foo() {
+
+/* 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_vsnprintf) || defined (__stub___vsnprintf)
+choke me
+#else
+vsnprintf();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_cv_c_inline=$ac_kw; break
+ eval "ac_cv_func_vsnprintf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_func_vsnprintf=no"
fi
rm -f conftest*
-done
-
fi
-echo "$ac_t""$ac_cv_c_inline" 1>&6
-case "$ac_cv_c_inline" in
- inline | yes) ;;
- no) cat >> confdefs.h <<\EOF
-#define inline
-EOF
- ;;
- *) cat >> confdefs.h <<EOF
-#define inline $ac_cv_c_inline
+if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<\EOF
+#define HAVE_VSNPRINTF 1
EOF
- ;;
-esac
-
-
-echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
-echo "configure:5188: checking for preprocessor stringizing operator" >&5
-if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 5193 "configure"
-#include "confdefs.h"
-
-#define x(y) #y
+ echo "$ac_t""no" 1>&6
+SNPRINTF='snprintf.o'
+fi
-char *s = x(teststring);
+cat > conftest.$ac_ext <<EOF
+#line 5941 "configure"
+#include "confdefs.h"
+#include <stdio.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "#teststring" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_c_stringize=no
-else
+ egrep "snprintf" >/dev/null 2>&1; then
rm -rf conftest*
- ac_cv_c_stringize=yes
-fi
-rm -f conftest*
+ cat >> confdefs.h <<\EOF
+#define HAVE_SNPRINTF_DECL 1
+EOF
fi
+rm -f conftest*
-if test "${ac_cv_c_stringize}" = yes
-then
- cat >> confdefs.h <<\EOF
-#define HAVE_STRINGIZE 1
+cat > conftest.$ac_ext <<EOF
+#line 5956 "configure"
+#include "confdefs.h"
+#include <stdio.h>
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "vsnprintf" >/dev/null 2>&1; then
+ rm -rf conftest*
+ cat >> confdefs.h <<\EOF
+#define HAVE_VSNPRINTF_DECL 1
EOF
fi
-echo "$ac_t""${ac_cv_c_stringize}" 1>&6
+rm -f conftest*
-echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
-echo "configure:5223: checking for uid_t in sys/types.h" >&5
-if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
+
+# do this one the hard way in case isinf() is a macro
+echo $ac_n "checking for isinf""... $ac_c" 1>&6
+echo "configure:5973: checking for isinf" >&5
+if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5228 "configure"
+#line 5978 "configure"
#include "confdefs.h"
-#include <sys/types.h>
+#include <math.h>
+
+int main() {
+double x = 0.0; int res = isinf(x);
+; return 0; }
EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
+if { (eval echo configure:5986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_cv_type_uid_t=yes
+ ac_cv_func_isinf=yes
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_type_uid_t=no
+ ac_cv_func_isinf=no
fi
rm -f conftest*
-
fi
-echo "$ac_t""$ac_cv_type_uid_t" 1>&6
-if test $ac_cv_type_uid_t = no; then
- cat >> confdefs.h <<\EOF
-#define uid_t int
-EOF
+echo "$ac_t""$ac_cv_func_isinf" 1>&6
+if test $ac_cv_func_isinf = yes ; then
cat >> confdefs.h <<\EOF
-#define gid_t int
+#define HAVE_ISINF 1
EOF
-fi
-
-echo $ac_n "checking for mode_t""... $ac_c" 1>&6
-echo "configure:5257: checking for mode_t" >&5
-if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
+ ISINF=
+else
+ ISINF='isinf.o'
+ # Look for a way to implement a substitute for isinf()
+ for ac_func in fpclass fp_class fp_class_d class
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:6012: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5262 "configure"
+#line 6017 "configure"
#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.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();
+
+int main() {
+
+/* 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();
#endif
+
+; return 0; }
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
+if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_cv_type_mode_t=yes
+ eval "ac_cv_func_$ac_func=yes"
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_type_mode_t=no
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
-
-fi
-echo "$ac_t""$ac_cv_type_mode_t" 1>&6
-if test $ac_cv_type_mode_t = no; then
- cat >> confdefs.h <<\EOF
-#define mode_t int
-EOF
-
fi
-echo $ac_n "checking for off_t""... $ac_c" 1>&6
-echo "configure:5290: checking for off_t" >&5
-if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 5295 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#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'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_func 1
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
+ break
else
- rm -rf conftest*
- ac_cv_type_off_t=no
+ echo "$ac_t""no" 1>&6
fi
-rm -f conftest*
+done
fi
-echo "$ac_t""$ac_cv_type_off_t" 1>&6
-if test $ac_cv_type_off_t = no; then
- cat >> confdefs.h <<\EOF
-#define off_t long
-EOF
-fi
-echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:5323: checking for size_t" >&5
-if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
+echo $ac_n "checking for getrusage""... $ac_c" 1>&6
+echo "configure:6068: checking for getrusage" >&5
+if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5328 "configure"
+#line 6073 "configure"
#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char getrusage(); 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 getrusage();
+
+int main() {
+
+/* 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_getrusage) || defined (__stub___getrusage)
+choke me
+#else
+getrusage();
#endif
+
+; return 0; }
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
+if { (eval echo configure:6096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_cv_type_size_t=yes
+ eval "ac_cv_func_getrusage=yes"
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_type_size_t=no
+ eval "ac_cv_func_getrusage=no"
fi
rm -f conftest*
-
fi
-echo "$ac_t""$ac_cv_type_size_t" 1>&6
-if test $ac_cv_type_size_t = no; then
+
+if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define size_t unsigned
+#define HAVE_GETRUSAGE 1
EOF
+else
+ echo "$ac_t""no" 1>&6
+GETRUSAGE='getrusage.o'
fi
-echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
-echo "configure:5356: checking whether struct tm is in sys/time.h or time.h" >&5
-if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
+
+echo $ac_n "checking for srandom""... $ac_c" 1>&6
+echo "configure:6121: checking for srandom" >&5
+if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5361 "configure"
+#line 6126 "configure"
#include "confdefs.h"
-#include <sys/types.h>
-#include <time.h>
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char srandom(); 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 srandom();
+
int main() {
-struct tm *tp; tp->tm_sec;
+
+/* 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_srandom) || defined (__stub___srandom)
+choke me
+#else
+srandom();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_cv_struct_tm=time.h
+ eval "ac_cv_func_srandom=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_struct_tm=sys/time.h
+ eval "ac_cv_func_srandom=no"
fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_struct_tm" 1>&6
-if test $ac_cv_struct_tm = sys/time.h; then
+if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define TM_IN_SYS_TIME 1
+#define HAVE_SRANDOM 1
EOF
+else
+ echo "$ac_t""no" 1>&6
+SRANDOM='srandom.o'
fi
-echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
-echo "configure:5390: checking for tm_zone in struct tm" >&5
-if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
+
+echo $ac_n "checking for gethostname""... $ac_c" 1>&6
+echo "configure:6174: checking for gethostname" >&5
+if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5395 "configure"
+#line 6179 "configure"
#include "confdefs.h"
-#include <sys/types.h>
-#include <$ac_cv_struct_tm>
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char gethostname(); 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 gethostname();
+
int main() {
-struct tm tm; tm.tm_zone;
+
+/* 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_gethostname) || defined (__stub___gethostname)
+choke me
+#else
+gethostname();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_cv_struct_tm_zone=yes
+ eval "ac_cv_func_gethostname=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_struct_tm_zone=no
+ eval "ac_cv_func_gethostname=no"
fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
-if test "$ac_cv_struct_tm_zone" = yes; then
+if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define HAVE_TM_ZONE 1
+#define HAVE_GETHOSTNAME 1
EOF
else
- echo $ac_n "checking for tzname""... $ac_c" 1>&6
-echo "configure:5423: checking for tzname" >&5
-if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
+ echo "$ac_t""no" 1>&6
+GETHOSTNAME='gethostname.o'
+fi
+
+
+echo $ac_n "checking for random""... $ac_c" 1>&6
+echo "configure:6227: checking for random" >&5
+if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5428 "configure"
+#line 6232 "configure"
#include "confdefs.h"
-#include <time.h>
-#ifndef tzname /* For SGI. */
-extern char *tzname[]; /* RS6000 and others reject char **tzname. */
-#endif
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char random(); 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 random();
+
int main() {
-atoi(*tzname);
+
+/* 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_random) || defined (__stub___random)
+choke me
+#else
+random();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_cv_var_tzname=yes
+ eval "ac_cv_func_random=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_var_tzname=no
+ eval "ac_cv_func_random=no"
fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_var_tzname" 1>&6
- if test $ac_cv_var_tzname = yes; then
- cat >> confdefs.h <<\EOF
-#define HAVE_TZNAME 1
+if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<\EOF
+#define HAVE_RANDOM 1
EOF
- fi
+else
+ echo "$ac_t""no" 1>&6
+MISSING_RANDOM='random.o'
fi
-echo $ac_n "checking for signed types""... $ac_c" 1>&6
-echo "configure:5460: checking for signed types" >&5
-if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
+
+echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
+echo "configure:6280: checking for inet_aton" >&5
+if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5465 "configure"
+#line 6285 "configure"
#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char inet_aton(); 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 inet_aton();
int main() {
-signed char c; signed short s; signed int i;
+
+/* 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_inet_aton) || defined (__stub___inet_aton)
+choke me
+#else
+inet_aton();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- pgac_cv_c_signed=yes
+ eval "ac_cv_func_inet_aton=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- pgac_cv_c_signed=no
+ eval "ac_cv_func_inet_aton=no"
fi
rm -f conftest*
fi
-echo "$ac_t""$pgac_cv_c_signed" 1>&6
-if test x"$pgac_cv_c_signed" = xno ; then
+if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define signed
+#define HAVE_INET_ATON 1
EOF
-fi
-echo $ac_n "checking for volatile""... $ac_c" 1>&6
-echo "configure:5492: checking for volatile" >&5
-if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 5497 "configure"
+ echo "$ac_t""no" 1>&6
+INET_ATON='inet_aton.o'
+fi
+
+
+echo $ac_n "checking for strerror""... $ac_c" 1>&6
+echo "configure:6333: checking for strerror" >&5
+if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 6338 "configure"
#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char strerror(); 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 strerror();
int main() {
-extern volatile int i;
+
+/* 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_strerror) || defined (__stub___strerror)
+choke me
+#else
+strerror();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- pgac_cv_c_volatile=yes
+ eval "ac_cv_func_strerror=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- pgac_cv_c_volatile=no
+ eval "ac_cv_func_strerror=no"
fi
rm -f conftest*
fi
-echo "$ac_t""$pgac_cv_c_volatile" 1>&6
-if test x"$pgac_cv_c_volatile" = xno ; then
+if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define volatile
+#define HAVE_STRERROR 1
EOF
-fi
-echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
-echo "configure:5524: checking types of arguments for accept()" >&5
- if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
else
- if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
+ echo "$ac_t""no" 1>&6
+STRERROR='strerror.o'
+fi
+
+
+echo $ac_n "checking for strdup""... $ac_c" 1>&6
+echo "configure:6386: checking for strdup" >&5
+if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
- for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'void *'; do
- for ac_cv_func_accept_arg3 in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
- cat > conftest.$ac_ext <<EOF
-#line 5538 "configure"
+ cat > conftest.$ac_ext <<EOF
+#line 6391 "configure"
#include "confdefs.h"
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char strdup(); 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 strdup();
+
int main() {
+/* 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_strdup) || defined (__stub___strdup)
+choke me
+#else
+strdup();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_not_found=no ; break 3
+ eval "ac_cv_func_strdup=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_not_found=yes
+ eval "ac_cv_func_strdup=no"
fi
rm -f conftest*
- done
- done
- done
-
-fi
-
-fi
-
fi
- if test "$ac_not_found" = yes; then
- ac_cv_func_accept_arg1=int
- ac_cv_func_accept_arg2='struct sockaddr *'
- ac_cv_func_accept_arg3='socklen_t'
- fi
- echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
- cat >> confdefs.h <<EOF
-#define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
-EOF
-
- cat >> confdefs.h <<EOF
-#define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
-EOF
- cat >> confdefs.h <<EOF
-#define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
+if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<\EOF
+#define HAVE_STRDUP 1
EOF
+else
+ echo "$ac_t""no" 1>&6
+STRDUP='../../utils/strdup.o'
+fi
-
-echo $ac_n "checking for int timezone""... $ac_c" 1>&6
-echo "configure:5592: checking for int timezone" >&5
-if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
+echo $ac_n "checking for strtol""... $ac_c" 1>&6
+echo "configure:6439: checking for strtol" >&5
+if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5597 "configure"
+#line 6444 "configure"
#include "confdefs.h"
-#include <time.h>
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char strtol(); 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 strtol();
+
int main() {
-int res = timezone / 60;
+
+/* 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_strtol) || defined (__stub___strtol)
+choke me
+#else
+strtol();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- pgac_cv_var_int_timezone=yes
+ eval "ac_cv_func_strtol=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- pgac_cv_var_int_timezone=no
+ eval "ac_cv_func_strtol=no"
fi
rm -f conftest*
fi
-echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
-if test x"$pgac_cv_var_int_timezone" = xyes ; then
+if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define HAVE_INT_TIMEZONE
+#define HAVE_STRTOL 1
EOF
+else
+ echo "$ac_t""no" 1>&6
+STRTOL='strtol.o'
fi
-echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
-echo "configure:5624: checking whether gettimeofday takes only one argument" >&5
-if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
+
+
+echo $ac_n "checking for strtoul""... $ac_c" 1>&6
+echo "configure:6492: checking for strtoul" >&5
+if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5629 "configure"
+#line 6497 "configure"
#include "confdefs.h"
-#include <sys/time.h>
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char strtoul(); 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 strtoul();
+
int main() {
-struct timeval *tp;
-struct timezone *tzp;
-gettimeofday(tp,tzp);
+
+/* 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_strtoul) || defined (__stub___strtoul)
+choke me
+#else
+strtoul();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- pgac_cv_func_gettimeofday_1arg=no
+ eval "ac_cv_func_strtoul=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- pgac_cv_func_gettimeofday_1arg=yes
+ eval "ac_cv_func_strtoul=no"
fi
rm -f conftest*
fi
-echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
-if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
+if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define GETTIMEOFDAY_1ARG
+#define HAVE_STRTOUL 1
EOF
+else
+ echo "$ac_t""no" 1>&6
+STRTOUL='strtoul.o'
fi
-echo $ac_n "checking for union semun""... $ac_c" 1>&6
-echo "configure:5658: checking for union semun" >&5
-if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
+
+
+echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
+echo "configure:6545: checking for strcasecmp" >&5
+if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5663 "configure"
+#line 6550 "configure"
#include "confdefs.h"
-#include <sys/types.h>
-#include <sys/ipc.h>
-#include <sys/sem.h>
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char strcasecmp(); 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 strcasecmp();
+
int main() {
-union semun semun;
+
+/* 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_strcasecmp) || defined (__stub___strcasecmp)
+choke me
+#else
+strcasecmp();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- pgac_cv_union_semun=yes
+ eval "ac_cv_func_strcasecmp=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- pgac_cv_union_semun=no
+ eval "ac_cv_func_strcasecmp=no"
fi
rm -f conftest*
fi
-echo "$ac_t""$pgac_cv_union_semun" 1>&6
-if test x"$pgac_cv_union_semun" = xyes ; then
+if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define HAVE_UNION_SEMUN
+#define HAVE_STRCASECMP 1
EOF
+else
+ echo "$ac_t""no" 1>&6
+STRCASECMP='strcasecmp.o'
fi
-echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
-echo "configure:5694: checking for fcntl(F_SETLK)" >&5
-if test "$os" != linux ; then
-cat > conftest.$ac_ext <<EOF
-#line 5697 "configure"
+echo $ac_n "checking for cbrt""... $ac_c" 1>&6
+echo "configure:6598: checking for cbrt" >&5
+if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 6603 "configure"
#include "confdefs.h"
-#include <stdio.h>
-#include <fcntl.h>
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char cbrt(); 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 cbrt();
+
int main() {
-struct flock lck;
- lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
- lck.l_type = F_WRLCK;
- fcntl(0, F_SETLK, &lck);
+
+/* 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_cbrt) || defined (__stub___cbrt)
+choke me
+#else
+cbrt();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- cat >> confdefs.h <<\EOF
-#define HAVE_FCNTL_SETLK 1
-EOF
- echo "$ac_t""yes" 1>&6
+ eval "ac_cv_func_cbrt=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- echo "$ac_t""no" 1>&6
+ eval "ac_cv_func_cbrt=no"
fi
rm -f conftest*
-else
- echo "$ac_t""broken on Linux" 1>&6
fi
-echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
-echo "configure:5726: checking for 8-bit clean memcmp" >&5
-if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- ac_cv_func_memcmp_clean=no
-else
- cat > conftest.$ac_ext <<EOF
-#line 5734 "configure"
-#include "confdefs.h"
-
-main()
-{
- char c0 = 0x40, c1 = 0x80, c2 = 0x81;
- exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
-}
-
+if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<\EOF
+#define HAVE_CBRT 1
EOF
-if { (eval echo configure:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- ac_cv_func_memcmp_clean=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_memcmp_clean=no
-fi
-rm -fr conftest*
-fi
-
-fi
-
-echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
-test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
-echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
-echo "configure:5762: checking return type of signal handlers" >&5
-if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
+else
+ echo "$ac_t""no" 1>&6
+echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
+echo "configure:6647: checking for cbrt in -lm" >&5
+ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 5767 "configure"
+ ac_save_LIBS="$LIBS"
+LIBS="-lm $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 6655 "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
+/* 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 cbrt();
int main() {
-int i;
+cbrt()
; return 0; }
EOF
-if { (eval echo configure:5784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ac_cv_type_signal=void
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- ac_cv_type_signal=int
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
-fi
+LIBS="$ac_save_LIBS"
-echo "$ac_t""$ac_cv_type_signal" 1>&6
-cat >> confdefs.h <<EOF
-#define RETSIGTYPE $ac_cv_type_signal
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<\EOF
+#define HAVE_CBRT 1
EOF
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+fi
+
+
+# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
+# this hackery with HPUXMATHLIB allows us to cope.
+HPUXMATHLIB=""
+case $host_cpu in
+ hppa1.1)
+ if [ -r /lib/pa1.1/libm.a ] ; then
+ HPUXMATHLIB="-L /lib/pa1.1 -lm"
+ fi ;;
+esac
+
-echo $ac_n "checking for vprintf""... $ac_c" 1>&6
-echo "configure:5803: checking for vprintf" >&5
-if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
+echo $ac_n "checking for rint""... $ac_c" 1>&6
+echo "configure:6704: checking for rint" >&5
+if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5808 "configure"
+#line 6709 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char vprintf(); below. */
+ which can conflict with char rint(); 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 vprintf();
+char rint();
int main() {
/* 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_vprintf) || defined (__stub___vprintf)
+#if defined (__stub_rint) || defined (__stub___rint)
choke me
#else
-vprintf();
+rint();
#endif
; return 0; }
EOF
-if { (eval echo configure:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_func_vprintf=yes"
+ eval "ac_cv_func_rint=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_func_vprintf=no"
+ eval "ac_cv_func_rint=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
+if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define HAVE_VPRINTF 1
+#define HAVE_RINT 1
EOF
else
echo "$ac_t""no" 1>&6
-fi
-
-if test "$ac_cv_func_vprintf" != yes; then
-echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
-echo "configure:5855: checking for _doprnt" >&5
-if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
+echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
+echo "configure:6753: checking for rint in -lm" >&5
+ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 5860 "configure"
+ ac_save_LIBS="$LIBS"
+LIBS="-lm $HPUXMATHLIB $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 6761 "configure"
#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char _doprnt(); 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 _doprnt();
+char rint();
int main() {
-
-/* 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__doprnt) || defined (__stub____doprnt)
-choke me
-#else
-_doprnt();
-#endif
-
+rint()
; return 0; }
EOF
-if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_func__doprnt=yes"
+ 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_func__doprnt=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
-fi
+LIBS="$ac_save_LIBS"
-if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define HAVE_DOPRNT 1
+#define HAVE_RINT 1
EOF
else
fi
-for ac_func in memmove sysconf
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5910: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 5915 "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();
-int main() {
-/* 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();
+# Readline versions < 2.1 don't have rl_completion_append_character
+echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
+echo "configure:6801: checking for rl_completion_append_character" >&5
+cat > conftest.$ac_ext <<EOF
+#line 6803 "configure"
+#include "confdefs.h"
+#include <stdio.h>
+#ifdef HAVE_READLINE_H
+# include <readline.h>
#endif
-
+#ifdef HAVE_READLINE_READLINE_H
+# include <readline/readline.h>
+#endif
+int main() {
+rl_completion_append_character = 'x';
; return 0; }
EOF
-if { (eval echo configure:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6816: \"$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"
+ echo "$ac_t""yes" 1>&6
+cat >> confdefs.h <<\EOF
+#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
+EOF
+
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
+ echo "$ac_t""no" 1>&6
fi
rm -f conftest*
-fi
-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'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
+
+# Check whether readline's filename_completion_function is declared.
+# Some prehistoric versions of readline, in particular those shipped
+# with earlier Cygwins don't have this declared, although it's in the
+# library.
+echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
+echo "configure:6837: checking whether filename_completion_function is declared" >&5
+if test "$ac_cv_header_readline_h" = yes; then
+ _readline_header='readline.h'
+elif test "$ac_cv_header_readline_readline_h" = yes; then
+ _readline_header='readline/readline.h'
+else
+ _readline_header='xxx'
+fi
+cat > conftest.$ac_ext <<EOF
+#line 6846 "configure"
+#include "confdefs.h"
+#include <$_readline_header>
EOF
-
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "filename_completion_function" >/dev/null 2>&1; then
+ rm -rf conftest*
+ cat >> confdefs.h <<\EOF
+#define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
+EOF
+
+echo "$ac_t""yes" 1>&6
else
+ rm -rf conftest*
echo "$ac_t""no" 1>&6
fi
-done
+rm -f conftest*
-for ac_func in sigprocmask waitpid setsid fcvt
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5965: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 5970 "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();
-int main() {
-/* 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();
-#endif
+echo $ac_n "checking for finite""... $ac_c" 1>&6
+echo "configure:6868: checking for finite" >&5
+cat > conftest.$ac_ext <<EOF
+#line 6870 "configure"
+#include "confdefs.h"
+#include <math.h>
+int main() {
+int dummy=finite(1.0);
; return 0; }
EOF
-if { (eval echo configure:5993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6877: \"$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"
+ cat >> confdefs.h <<\EOF
+#define HAVE_FINITE 1
+EOF
+ echo "$ac_t""yes" 1>&6
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
+ echo "$ac_t""no" 1>&6
fi
rm -f conftest*
-fi
-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'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
+echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
+echo "configure:6892: checking for sigsetjmp" >&5
+cat > conftest.$ac_ext <<EOF
+#line 6894 "configure"
+#include "confdefs.h"
+#include <setjmp.h>
+int main() {
+sigjmp_buf x; sigsetjmp(x, 1);
+; return 0; }
EOF
-
+if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ cat >> confdefs.h <<\EOF
+#define HAVE_SIGSETJMP 1
+EOF
+ 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
fi
-done
+rm -f conftest*
-for ac_func in setproctitle pstat
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:6020: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+
+# Check whether --enable-syslog was given
+if test x"${enable_syslog+set}" = xset; then
+ case $enable_syslog in
+ yes)
+ echo $ac_n "checking for syslog""... $ac_c" 1>&6
+echo "configure:6921: checking for syslog" >&5
+if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6025 "configure"
+#line 6926 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
+ which can conflict with char syslog(); 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();
+char syslog();
int main() {
/* 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)
+#if defined (__stub_syslog) || defined (__stub___syslog)
choke me
#else
-$ac_func();
+syslog();
#endif
; return 0; }
EOF
-if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6949: \"$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"
+ eval "ac_cv_func_syslog=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
+ eval "ac_cv_func_syslog=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
+ cat >> confdefs.h <<\EOF
+#define ENABLE_SYSLOG 1
EOF
-
+
else
echo "$ac_t""no" 1>&6
+{ echo "configure: error: no syslog interface found" 1>&2; exit 1; }
fi
-done
+ ;;
+ no)
+ :
+ ;;
+ *)
+ enableval=$enable_syslog
+ { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
+ ;;
+ esac # $enable_syslog
+else
+ enable_syslog=no
+
+fi
-echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
-echo "configure:6074: checking for PS_STRINGS" >&5
-if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
+
+echo $ac_n "checking for optreset""... $ac_c" 1>&6
+echo "configure:6988: checking for optreset" >&5
+if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6079 "configure"
+#line 6993 "configure"
#include "confdefs.h"
-#include <machine/vmparam.h>
-#include <sys/exec.h>
-
+#include <unistd.h>
int main() {
-PS_STRINGS->ps_nargvstr = 1;
-PS_STRINGS->ps_argvstr = "foo";
+extern int optreset; optreset = 1;
; return 0; }
EOF
-if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- pgac_cv_var_PS_STRINGS=yes
+ pgac_cv_var_int_optreset=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- pgac_cv_var_PS_STRINGS=no
+ pgac_cv_var_int_optreset=no
fi
rm -f conftest*
fi
-echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
-if test "$pgac_cv_var_PS_STRINGS" = yes ; then
+echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
+if test x"$pgac_cv_var_int_optreset" = x"yes"; then
cat >> confdefs.h <<\EOF
-#define HAVE_PS_STRINGS
+#define HAVE_INT_OPTRESET 1
EOF
fi
-for ac_func in fpclass fp_class fp_class_d class
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:6112: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+
+echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
+echo "configure:7022: checking whether long int is 64 bits" >&5
+if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test "$cross_compiling" = yes; then
+ pgac_cv_type_long_int_64=no
+echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
else
cat > conftest.$ac_ext <<EOF
-#line 6117 "configure"
+#line 7031 "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();
+typedef long int int64;
-int main() {
+/*
+ * These are globals to discourage the compiler from folding all the
+ * arithmetic tests down to compile-time constants.
+ */
+int64 a = 20000001;
+int64 b = 40000005;
-/* 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();
-#endif
+int does_int64_work()
+{
+ int64 c,d;
-; return 0; }
+ if (sizeof(int64) != 8)
+ return 0; /* definitely not the right size */
+
+ /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
+ c = a * b;
+ d = (c + b) / b;
+ if (d != a+1)
+ return 0;
+ return 1;
+}
+main() {
+ exit(! does_int64_work());
+}
EOF
-if { (eval echo configure:6140: \"$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"
+if { (eval echo configure:7060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ pgac_cv_type_long_int_64=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
+ rm -fr conftest*
+ pgac_cv_type_long_int_64=no
fi
-rm -f conftest*
+rm -fr conftest*
fi
-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'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
fi
-done
-
-SNPRINTF=''
-echo $ac_n "checking for snprintf""... $ac_c" 1>&6
-echo "configure:6166: checking for snprintf" >&5
-if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6171 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char snprintf(); 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 snprintf();
-
-int main() {
-
-/* 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_snprintf) || defined (__stub___snprintf)
-choke me
-#else
-snprintf();
-#endif
-; return 0; }
-EOF
-if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_snprintf=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_snprintf=no"
-fi
-rm -f conftest*
-fi
+echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
-if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
- echo "$ac_t""yes" 1>&6
+HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
+if test x"$pgac_cv_type_long_int_64" = xyes ; then
cat >> confdefs.h <<\EOF
-#define HAVE_SNPRINTF 1
+#define HAVE_LONG_INT_64
EOF
-else
- echo "$ac_t""no" 1>&6
-SNPRINTF='snprintf.o'
fi
-echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
-echo "configure:6218: checking for vsnprintf" >&5
-if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
+
+if test x"$HAVE_LONG_INT_64" = x"no" ; then
+ echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
+echo "configure:7087: checking whether long long int is 64 bits" >&5
+if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test "$cross_compiling" = yes; then
+ pgac_cv_type_long_long_int_64=no
+echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
else
cat > conftest.$ac_ext <<EOF
-#line 6223 "configure"
+#line 7096 "configure"
#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char vsnprintf(); 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 vsnprintf();
+typedef long long int int64;
-int main() {
+/*
+ * These are globals to discourage the compiler from folding all the
+ * arithmetic tests down to compile-time constants.
+ */
+int64 a = 20000001;
+int64 b = 40000005;
-/* 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_vsnprintf) || defined (__stub___vsnprintf)
-choke me
-#else
-vsnprintf();
-#endif
+int does_int64_work()
+{
+ int64 c,d;
-; return 0; }
+ if (sizeof(int64) != 8)
+ return 0; /* definitely not the right size */
+
+ /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
+ c = a * b;
+ d = (c + b) / b;
+ if (d != a+1)
+ return 0;
+ return 1;
+}
+main() {
+ exit(! does_int64_work());
+}
EOF
-if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_vsnprintf=yes"
+if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ pgac_cv_type_long_long_int_64=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_vsnprintf=no"
+ rm -fr conftest*
+ pgac_cv_type_long_long_int_64=no
fi
-rm -f conftest*
+rm -fr conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_VSNPRINTF 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-SNPRINTF='snprintf.o'
fi
+echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
-cat > conftest.$ac_ext <<EOF
-#line 6271 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "snprintf" >/dev/null 2>&1; then
- rm -rf conftest*
+HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
+if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
cat >> confdefs.h <<\EOF
-#define HAVE_SNPRINTF_DECL 1
+#define HAVE_LONG_LONG_INT_64
EOF
fi
-rm -f conftest*
-
-cat > conftest.$ac_ext <<EOF
-#line 6286 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "vsnprintf" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<\EOF
-#define HAVE_VSNPRINTF_DECL 1
-EOF
fi
-rm -f conftest*
-echo $ac_n "checking for isinf""... $ac_c" 1>&6
-echo "configure:6301: checking for isinf" >&5
-if eval "test \"`echo '$''{'ac_cv_func_or_macro_isinf'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
+
+
+if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
+ if [ x$SNPRINTF = x ] ; then
+ echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
+echo "configure:7156: checking whether snprintf handles 'long long int' as %lld" >&5
+ if test "$cross_compiling" = yes; then
+ echo "$ac_t""assuming not on target machine" 1>&6
+ # Force usage of our own snprintf, since we cannot test foreign snprintf
+ SNPRINTF='snprintf.o'
+ INT64_FORMAT='"%lld"'
+
else
cat > conftest.$ac_ext <<EOF
-#line 6306 "configure"
+#line 7165 "configure"
#include "confdefs.h"
-#include <math.h>
-int main() {
-double x = 0.0; int res = isinf(x);
-; return 0; }
-EOF
-if { (eval echo configure:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_func_or_macro_isinf=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_func_or_macro_isinf=no
-fi
-rm -f conftest*
-fi
+#include <stdio.h>
+typedef long long int int64;
+#define INT64_FORMAT "%lld"
-if [ $ac_cv_func_or_macro_isinf = yes ]; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_ISINF 1
-EOF
+int64 a = 20000001;
+int64 b = 40000005;
- ISINF=''
-else
- echo "$ac_t""no" 1>&6
- ISINF='isinf.o'
-fi
+int does_int64_snprintf_work()
+{
+ int64 c;
+ char buf[100];
-echo $ac_n "checking for getrusage""... $ac_c" 1>&6
-echo "configure:6338: checking for getrusage" >&5
-if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
+ if (sizeof(int64) != 8)
+ return 0; /* doesn't look like the right size */
+
+ c = a * b;
+ snprintf(buf, 100, INT64_FORMAT, c);
+ if (strcmp(buf, "800000140000005") != 0)
+ return 0; /* either multiply or snprintf is busted */
+ return 1;
+}
+main() {
+ exit(! does_int64_snprintf_work());
+}
+EOF
+if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ echo "$ac_t""yes" 1>&6
+ INT64_FORMAT='"%lld"'
+
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -fr conftest*
+ echo "$ac_t""no" 1>&6
+ echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
+echo "configure:7203: checking whether snprintf handles 'long long int' as %qd" >&5
+ if test "$cross_compiling" = yes; then
+ echo "$ac_t""assuming not on target machine" 1>&6
+ # Force usage of our own snprintf, since we cannot test foreign snprintf
+ SNPRINTF='snprintf.o'
+ INT64_FORMAT='"%lld"'
+
else
cat > conftest.$ac_ext <<EOF
-#line 6343 "configure"
+#line 7212 "configure"
#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char getrusage(); 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 getrusage();
-
-int main() {
+#include <stdio.h>
+typedef long long int int64;
+#define INT64_FORMAT "%qd"
+
+int64 a = 20000001;
+int64 b = 40000005;
+
+int does_int64_snprintf_work()
+{
+ int64 c;
+ char buf[100];
-/* 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_getrusage) || defined (__stub___getrusage)
-choke me
-#else
-getrusage();
-#endif
+ if (sizeof(int64) != 8)
+ return 0; /* doesn't look like the right size */
-; return 0; }
+ c = a * b;
+ snprintf(buf, 100, INT64_FORMAT, c);
+ if (strcmp(buf, "800000140000005") != 0)
+ return 0; /* either multiply or snprintf is busted */
+ return 1;
+}
+main() {
+ exit(! does_int64_snprintf_work());
+}
EOF
-if { (eval echo configure:6366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_getrusage=yes"
+if { (eval echo configure:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ echo "$ac_t""yes" 1>&6
+ INT64_FORMAT='"%qd"'
+
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_getrusage=no"
+ rm -fr conftest*
+ echo "$ac_t""no" 1>&6
+ # Force usage of our own snprintf, since system snprintf is broken
+ SNPRINTF='snprintf.o'
+ INT64_FORMAT='"%lld"'
+
fi
-rm -f conftest*
+rm -fr conftest*
+fi
+
+fi
+rm -fr conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_GETRUSAGE 1
-EOF
-
+ else
+ # here if we previously decided we needed to use our own snprintf
+ INT64_FORMAT='"%lld"'
+ fi
else
- echo "$ac_t""no" 1>&6
-GETRUSAGE='getrusage.o'
+ # Here if we are not using 'long long int' at all
+ INT64_FORMAT='"%ld"'
fi
+cat >> confdefs.h <<EOF
+#define INT64_FORMAT $INT64_FORMAT
+EOF
-echo $ac_n "checking for srandom""... $ac_c" 1>&6
-echo "configure:6391: checking for srandom" >&5
-if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
+
+
+for ac_func in strtoll strtoq
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:7279: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6396 "configure"
+#line 7284 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char srandom(); below. */
+ 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 srandom();
+char $ac_func();
int main() {
/* 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_srandom) || defined (__stub___srandom)
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-srandom();
+$ac_func();
#endif
; return 0; }
EOF
-if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_func_srandom=yes"
+ 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_srandom=no"
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_SRANDOM 1
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_func 1
EOF
-
+ break
else
echo "$ac_t""no" 1>&6
-SRANDOM='srandom.o'
fi
+done
-
-echo $ac_n "checking for gethostname""... $ac_c" 1>&6
-echo "configure:6444: checking for gethostname" >&5
-if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
+for ac_func in strtoull strtouq
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:7334: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6449 "configure"
+#line 7339 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostname(); below. */
+ 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 gethostname();
+char $ac_func();
int main() {
/* 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_gethostname) || defined (__stub___gethostname)
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-gethostname();
+$ac_func();
#endif
; return 0; }
EOF
-if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_func_gethostname=yes"
+ 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_gethostname=no"
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_GETHOSTNAME 1
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_func 1
EOF
-
+ break
else
echo "$ac_t""no" 1>&6
-GETHOSTNAME='gethostname.o'
fi
+done
-echo $ac_n "checking for random""... $ac_c" 1>&6
-echo "configure:6497: checking for random" >&5
-if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
+echo $ac_n "checking for atexit""... $ac_c" 1>&6
+echo "configure:7388: checking for atexit" >&5
+if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6502 "configure"
+#line 7393 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char random(); below. */
+ which can conflict with char atexit(); 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 random();
+char atexit();
int main() {
/* 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_random) || defined (__stub___random)
+#if defined (__stub_atexit) || defined (__stub___atexit)
choke me
#else
-random();
+atexit();
#endif
; return 0; }
EOF
-if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_func_random=yes"
+ eval "ac_cv_func_atexit=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_func_random=no"
+ eval "ac_cv_func_atexit=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
+if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
-#define HAVE_RANDOM 1
+#define HAVE_ATEXIT 1
EOF
else
echo "$ac_t""no" 1>&6
-MISSING_RANDOM='random.o'
-fi
-
-
-echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
-echo "configure:6550: checking for inet_aton" >&5
-if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
+for ac_func in on_exit
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:7439: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6555 "configure"
+#line 7444 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char inet_aton(); below. */
+ 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 inet_aton();
+char $ac_func();
int main() {
/* 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_inet_aton) || defined (__stub___inet_aton)
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-inet_aton();
+$ac_func();
#endif
; return 0; }
EOF
-if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_func_inet_aton=yes"
+ 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_inet_aton=no"
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_INET_ATON 1
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_func 1
+EOF
+ cat >> confdefs.h <<\EOF
+#define HAVE_ON_EXIT 1
EOF
else
echo "$ac_t""no" 1>&6
-INET_ATON='inet_aton.o'
+{ echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
+fi
+done
+
fi
-echo $ac_n "checking for strerror""... $ac_c" 1>&6
-echo "configure:6603: checking for strerror" >&5
-if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
+
+echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
+echo "configure:7500: checking size of unsigned long" >&5
+if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test "$cross_compiling" = yes; then
+ ac_cv_sizeof_unsigned_long=4
else
cat > conftest.$ac_ext <<EOF
-#line 6608 "configure"
+#line 7508 "configure"
#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strerror(); 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 strerror();
-
-int main() {
-
-/* 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_strerror) || defined (__stub___strerror)
-choke me
-#else
-strerror();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:6631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strerror=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strerror=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_STRERROR 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
-fi
-
-
-
-echo $ac_n "checking for strdup""... $ac_c" 1>&6
-echo "configure:6657: checking for strdup" >&5
-if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6662 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strdup(); 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 strdup();
-
-int main() {
-
-/* 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_strdup) || defined (__stub___strdup)
-choke me
-#else
-strdup();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strdup=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strdup=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_STRDUP 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-STRDUP='../../utils/strdup.o'
-fi
-
-
-echo $ac_n "checking for strtol""... $ac_c" 1>&6
-echo "configure:6710: checking for strtol" >&5
-if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6715 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strtol(); 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 strtol();
-
-int main() {
-
-/* 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_strtol) || defined (__stub___strtol)
-choke me
-#else
-strtol();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strtol=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strtol=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_STRTOL 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-STRTOL='strtol.o'
-fi
-
-
-echo $ac_n "checking for strtoul""... $ac_c" 1>&6
-echo "configure:6763: checking for strtoul" >&5
-if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6768 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strtoul(); 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 strtoul();
-
-int main() {
-
-/* 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_strtoul) || defined (__stub___strtoul)
-choke me
-#else
-strtoul();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strtoul=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strtoul=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_STRTOUL 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-STRTOL='strtoul.o'
-fi
-
-
-echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
-echo "configure:6816: checking for strcasecmp" >&5
-if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6821 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strcasecmp(); 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 strcasecmp();
-
-int main() {
-
-/* 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_strcasecmp) || defined (__stub___strcasecmp)
-choke me
-#else
-strcasecmp();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strcasecmp=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strcasecmp=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_STRCASECMP 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-STRCASECMP='strcasecmp.o'
-fi
-
-
-echo $ac_n "checking for cbrt""... $ac_c" 1>&6
-echo "configure:6869: checking for cbrt" >&5
-if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6874 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cbrt(); 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 cbrt();
-
-int main() {
-
-/* 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_cbrt) || defined (__stub___cbrt)
-choke me
-#else
-cbrt();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cbrt=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cbrt=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_CBRT 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
-echo "configure:6918: checking for cbrt in -lm" >&5
-ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lm $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 6926 "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 cbrt();
-
-int main() {
-cbrt()
-; return 0; }
-EOF
-if { (eval echo configure:6937: \"$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*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_CBRT 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
-fi
-
-
-# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
-# this hackery with HPUXMATHLIB allows us to cope.
-HPUXMATHLIB=""
-case "$host_cpu" in
- hppa1.1)
- if [ -r /lib/pa1.1/libm.a ] ; then
- HPUXMATHLIB="-L /lib/pa1.1 -lm"
- fi ;;
-esac
-
-
-echo $ac_n "checking for rint""... $ac_c" 1>&6
-echo "configure:6975: checking for rint" >&5
-if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6980 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char rint(); 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 rint();
-
-int main() {
-
-/* 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_rint) || defined (__stub___rint)
-choke me
-#else
-rint();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_rint=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_rint=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_RINT 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
-echo "configure:7024: checking for rint in -lm" >&5
-ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lm $HPUXMATHLIB $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 7032 "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 rint();
-
-int main() {
-rint()
-; return 0; }
-EOF
-if { (eval echo configure:7043: \"$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*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_RINT 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
-fi
-
-
-cat > conftest.$ac_ext <<EOF
-#line 7070 "configure"
-#include "confdefs.h"
-#include <readline.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "rl_completion_append_character" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<\EOF
-#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
-EOF
-
-else
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
-#line 7084 "configure"
-#include "confdefs.h"
-#include <readline/readline.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "rl_completion_append_character" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<\EOF
-#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
-EOF
-
-fi
-rm -f conftest*
-
-fi
-rm -f conftest*
-
-
-
-for ac_func in filename_completion_function
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:7106: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 7111 "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();
-
-int main() {
-
-/* 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();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:7134: \"$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*
-fi
-
-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'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
- cat > conftest.$ac_ext <<EOF
-#line 7153 "configure"
-#include "confdefs.h"
-#include <readline.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "filename_completion_function" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<\EOF
-#define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
-EOF
-
-else
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
-#line 7167 "configure"
-#include "confdefs.h"
-#include <readline/readline.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "filename_completion_function" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<\EOF
-#define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
-EOF
-
-fi
-rm -f conftest*
-
-fi
-rm -f conftest*
-
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-
-
-
-for ac_func in getopt_long
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:7196: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 7201 "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();
-
-int main() {
-
-/* 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();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:7224: \"$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*
-fi
-
-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'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-
-echo $ac_n "checking for finite""... $ac_c" 1>&6
-echo "configure:7250: checking for finite" >&5
-cat > conftest.$ac_ext <<EOF
-#line 7252 "configure"
-#include "confdefs.h"
-#include <math.h>
-int main() {
-int dummy=finite(1.0);
-; return 0; }
-EOF
-if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cat >> confdefs.h <<\EOF
-#define HAVE_FINITE 1
-EOF
- 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
-fi
-rm -f conftest*
-
-echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
-echo "configure:7274: checking for sigsetjmp" >&5
-cat > conftest.$ac_ext <<EOF
-#line 7276 "configure"
-#include "confdefs.h"
-#include <setjmp.h>
-int main() {
-sigjmp_buf x; sigsetjmp(x, 1);
-; return 0; }
-EOF
-if { (eval echo configure:7283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cat >> confdefs.h <<\EOF
-#define HAVE_SIGSETJMP 1
-EOF
- 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
-fi
-rm -f conftest*
-
-# Check whether --enable-syslog or --disable-syslog was given.
-if test "${enable_syslog+set}" = set; then
- enableval="$enable_syslog"
- case $enableval in y|ye|yes)
- echo $ac_n "checking for syslog""... $ac_c" 1>&6
-echo "configure:7302: checking for syslog" >&5
-if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 7307 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char syslog(); 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 syslog();
-
-int main() {
-
-/* 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_syslog) || defined (__stub___syslog)
-choke me
-#else
-syslog();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:7330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_syslog=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_syslog=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define ENABLE_SYSLOG 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: no syslog interface found" 1>&2; exit 1; }
-fi
-
- ;;
- esac
-
-fi
-
-
-
-echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
-echo "configure:7361: checking whether long int is 64 bits" >&5
-if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- pgac_cv_type_long_int_64=no
-echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
-else
- cat > conftest.$ac_ext <<EOF
-#line 7370 "configure"
-#include "confdefs.h"
-typedef long int int64;
-
-/*
- * These are globals to discourage the compiler from folding all the
- * arithmetic tests down to compile-time constants.
- */
-int64 a = 20000001;
-int64 b = 40000005;
-
-int does_int64_work()
-{
- int64 c,d;
-
- if (sizeof(int64) != 8)
- return 0; /* definitely not the right size */
-
- /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
- c = a * b;
- d = (c + b) / b;
- if (d != a+1)
- return 0;
- return 1;
-}
-main() {
- exit(! does_int64_work());
-}
-EOF
-if { (eval echo configure:7399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- pgac_cv_type_long_int_64=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- pgac_cv_type_long_int_64=no
-fi
-rm -fr conftest*
-fi
-
-fi
-
-echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
-
-HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
-if test x"$pgac_cv_type_long_int_64" = xyes ; then
- cat >> confdefs.h <<\EOF
-#define HAVE_LONG_INT_64
-EOF
-
-fi
-
-
-if test x"$HAVE_LONG_INT_64" = x"no" ; then
- echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
-echo "configure:7426: checking whether long long int is 64 bits" >&5
-if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- pgac_cv_type_long_long_int_64=no
-echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
-else
- cat > conftest.$ac_ext <<EOF
-#line 7435 "configure"
-#include "confdefs.h"
-typedef long long int int64;
-
-/*
- * These are globals to discourage the compiler from folding all the
- * arithmetic tests down to compile-time constants.
- */
-int64 a = 20000001;
-int64 b = 40000005;
-
-int does_int64_work()
-{
- int64 c,d;
-
- if (sizeof(int64) != 8)
- return 0; /* definitely not the right size */
-
- /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
- c = a * b;
- d = (c + b) / b;
- if (d != a+1)
- return 0;
- return 1;
-}
-main() {
- exit(! does_int64_work());
-}
-EOF
-if { (eval echo configure:7464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- pgac_cv_type_long_long_int_64=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- pgac_cv_type_long_long_int_64=no
-fi
-rm -fr conftest*
-fi
-
-fi
-
-echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
-
-HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
-if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
- cat >> confdefs.h <<\EOF
-#define HAVE_LONG_LONG_INT_64
-EOF
-
-fi
-
-fi
-
-
-
-if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
- if [ x$SNPRINTF = x ] ; then
- echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
-echo "configure:7495: checking whether snprintf handles 'long long int' as %lld" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""assuming not on target machine" 1>&6
- # Force usage of our own snprintf, since we cannot test foreign snprintf
- SNPRINTF='snprintf.o'
- INT64_FORMAT='"%lld"'
-
-else
- cat > conftest.$ac_ext <<EOF
-#line 7504 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-typedef long long int int64;
-#define INT64_FORMAT "%lld"
-
-int64 a = 20000001;
-int64 b = 40000005;
-
-int does_int64_snprintf_work()
-{
- int64 c;
- char buf[100];
-
- if (sizeof(int64) != 8)
- return 0; /* doesn't look like the right size */
-
- c = a * b;
- snprintf(buf, 100, INT64_FORMAT, c);
- if (strcmp(buf, "800000140000005") != 0)
- return 0; /* either multiply or snprintf is busted */
- return 1;
-}
-main() {
- exit(! does_int64_snprintf_work());
-}
-EOF
-if { (eval echo configure:7531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- echo "$ac_t""yes" 1>&6
- INT64_FORMAT='"%lld"'
-
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
-echo "configure:7542: checking whether snprintf handles 'long long int' as %qd" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""assuming not on target machine" 1>&6
- # Force usage of our own snprintf, since we cannot test foreign snprintf
- SNPRINTF='snprintf.o'
- INT64_FORMAT='"%lld"'
-
-else
- cat > conftest.$ac_ext <<EOF
-#line 7551 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-typedef long long int int64;
-#define INT64_FORMAT "%qd"
-
-int64 a = 20000001;
-int64 b = 40000005;
-
-int does_int64_snprintf_work()
-{
- int64 c;
- char buf[100];
-
- if (sizeof(int64) != 8)
- return 0; /* doesn't look like the right size */
-
- c = a * b;
- snprintf(buf, 100, INT64_FORMAT, c);
- if (strcmp(buf, "800000140000005") != 0)
- return 0; /* either multiply or snprintf is busted */
- return 1;
-}
-main() {
- exit(! does_int64_snprintf_work());
-}
-EOF
-if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- echo "$ac_t""yes" 1>&6
- INT64_FORMAT='"%qd"'
-
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- # Force usage of our own snprintf, since system snprintf is broken
- SNPRINTF='snprintf.o'
- INT64_FORMAT='"%lld"'
-
-fi
-rm -fr conftest*
-fi
-
-fi
-rm -fr conftest*
-fi
-
- else
- # here if we previously decided we needed to use our own snprintf
- INT64_FORMAT='"%lld"'
- fi
-else
- # Here if we are not using 'long long int' at all
- INT64_FORMAT='"%ld"'
-fi
-
-cat >> confdefs.h <<EOF
-#define INT64_FORMAT $INT64_FORMAT
-EOF
-
-
-
-
-echo $ac_n "checking alignment of short""... $ac_c" 1>&6
-echo "configure:7617: checking alignment of short" >&5
-if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- pgac_cv_alignof_short='sizeof(short)'
-else
- cat > conftest.$ac_ext <<EOF
-#line 7625 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-struct { char filler; short field; } mystruct;
-main()
-{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
-}
-EOF
-if { (eval echo configure:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- pgac_cv_alignof_short=`cat conftestval`
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- pgac_cv_alignof_short='sizeof(short)'
-fi
-rm -fr conftest*
-fi
-
-fi
-echo "$ac_t""$pgac_cv_alignof_short" 1>&6
-cat >> confdefs.h <<EOF
-#define ALIGNOF_SHORT $pgac_cv_alignof_short
-EOF
-
-
-echo $ac_n "checking alignment of int""... $ac_c" 1>&6
-echo "configure:7657: checking alignment of int" >&5
-if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- pgac_cv_alignof_int='sizeof(int)'
-else
- cat > conftest.$ac_ext <<EOF
-#line 7665 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-struct { char filler; int field; } mystruct;
-main()
-{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
-}
-EOF
-if { (eval echo configure:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- pgac_cv_alignof_int=`cat conftestval`
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- pgac_cv_alignof_int='sizeof(int)'
-fi
-rm -fr conftest*
-fi
-
-fi
-echo "$ac_t""$pgac_cv_alignof_int" 1>&6
-cat >> confdefs.h <<EOF
-#define ALIGNOF_INT $pgac_cv_alignof_int
-EOF
-
-
-echo $ac_n "checking alignment of long""... $ac_c" 1>&6
-echo "configure:7697: checking alignment of long" >&5
-if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- pgac_cv_alignof_long='sizeof(long)'
-else
- cat > conftest.$ac_ext <<EOF
-#line 7705 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-struct { char filler; long field; } mystruct;
-main()
-{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
-}
-EOF
-if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- pgac_cv_alignof_long=`cat conftestval`
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- pgac_cv_alignof_long='sizeof(long)'
-fi
-rm -fr conftest*
-fi
-
-fi
-echo "$ac_t""$pgac_cv_alignof_long" 1>&6
-cat >> confdefs.h <<EOF
-#define ALIGNOF_LONG $pgac_cv_alignof_long
-EOF
-
-
-if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
- echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
-echo "configure:7738: checking alignment of long long int" >&5
-if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- pgac_cv_alignof_long_long_int='sizeof(long long int)'
-else
- cat > conftest.$ac_ext <<EOF
-#line 7746 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-struct { char filler; long long int field; } mystruct;
-main()
-{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
-}
-EOF
-if { (eval echo configure:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- pgac_cv_alignof_long_long_int=`cat conftestval`
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- pgac_cv_alignof_long_long_int='sizeof(long long int)'
-fi
-rm -fr conftest*
-fi
-
-fi
-echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
-cat >> confdefs.h <<EOF
-#define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
-EOF
-
-
-fi
-echo $ac_n "checking alignment of double""... $ac_c" 1>&6
-echo "configure:7779: checking alignment of double" >&5
-if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- pgac_cv_alignof_double='sizeof(double)'
-else
- cat > conftest.$ac_ext <<EOF
-#line 7787 "configure"
-#include "confdefs.h"
-#include <stdio.h>
-struct { char filler; double field; } mystruct;
-main()
-{
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
-}
-EOF
-if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- pgac_cv_alignof_double=`cat conftestval`
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- pgac_cv_alignof_double='sizeof(double)'
-fi
-rm -fr conftest*
-fi
-
-fi
-echo "$ac_t""$pgac_cv_alignof_double" 1>&6
-cat >> confdefs.h <<EOF
-#define ALIGNOF_DOUBLE $pgac_cv_alignof_double
-EOF
-
-
-
-
-if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
- MAX_ALIGNOF=$pgac_cv_alignof_long
- if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
- MAX_ALIGNOF=$pgac_cv_alignof_double
- fi
- if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
- MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
- fi
-else
- MAX_ALIGNOF="$pgac_cv_alignof_double"
-fi
-cat >> confdefs.h <<EOF
-#define MAXIMUM_ALIGNOF $MAX_ALIGNOF
-EOF
-
-
-echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
-echo "configure:7837: checking for POSIX signal interface" >&5
-if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 7842 "configure"
-#include "confdefs.h"
-#include <signal.h>
-
-int main() {
-struct sigaction act, oact;
-sigemptyset(&act.sa_mask);
-act.sa_flags = SA_RESTART;
-sigaction(0, &act, &oact);
-; return 0; }
-EOF
-if { (eval echo configure:7853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- pgac_cv_func_posix_signals=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- pgac_cv_func_posix_signals=no
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
-if test x"$pgac_cv_func_posix_signals" = xyes ; then
- cat >> confdefs.h <<\EOF
-#define HAVE_POSIX_SIGNALS
-EOF
-
-fi
-HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
-
-
-
-
-if test -z "$TCL_DIRS"
-then
- # Extract the first word of "tclsh", so it can be a program name with args.
-set dummy tclsh; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:7882: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- case "$TCLSH" in
- /*)
- ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
- ;;
- *)
- 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_path_TCLSH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac
-fi
-TCLSH="$ac_cv_path_TCLSH"
-if test -n "$TCLSH"; then
- echo "$ac_t""$TCLSH" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
- if test -z "$TCLSH"
- then
- # Extract the first word of "tcl", so it can be a program name with args.
-set dummy tcl; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:7919: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- case "$TCLSH" in
- /*)
- ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
- ;;
- *)
- 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_path_TCLSH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac
-fi
-TCLSH="$ac_cv_path_TCLSH"
-if test -n "$TCLSH"; then
- echo "$ac_t""$TCLSH" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
- if test -z "$TCLSH"
- then
- echo "configure: warning: TCL/TK support disabled; tcl shell is not in your path" 1>&2
- USE_TCL=
- fi
- fi
-fi
-
-if test "$USE_TCL" = true
-then
- echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
-echo "configure:7962: checking for tclConfig.sh" >&5
- TCL_CONFIG_SH=
- library_dirs=
- if test -z "$TCL_DIRS"
- then
- library_dirs=`echo 'puts $auto_path' | $TCLSH`
- fi
- library_dirs="$TCL_DIRS $TK_DIRS $library_dirs"
- for dir in $library_dirs; do
- if test -d "$dir" -a -r "$dir/tclConfig.sh"; then
- TCL_CONFIG_SH=$dir/tclConfig.sh
- break
- fi
- done
- if test -z "$TCL_CONFIG_SH"; then
- echo "$ac_t""no" 1>&6
- echo "configure: warning: TCL/TK support disabled; Tcl configuration script missing" 1>&2
- USE_TCL=
- else
- echo "$ac_t""$TCL_CONFIG_SH" 1>&6
-
- fi
-fi
-
-USE_TK=$USE_TCL # If TCL is disabled, disable TK
-
-if test "$USE_TK" = true
-then
- echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
-echo "configure:7991: checking for tkConfig.sh" >&5
- TK_CONFIG_SH=
- # library_dirs are set in the check for TCL
- for dir in $library_dirs
- do
- if test -d "$dir" -a -r "$dir/tkConfig.sh"
- then
- TK_CONFIG_SH=$dir/tkConfig.sh
- break
- fi
- done
- if test -z "$TK_CONFIG_SH"
- then
- echo "$ac_t""no" 1>&6
- echo "configure: warning: TK support disabled; Tk configuration script missing" 1>&2
- USE_TK=
- else
- echo "$ac_t""$TK_CONFIG_SH" 1>&6
-
- # Extract the first word of "wish", so it can be a program name with args.
-set dummy wish; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:8013: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- case "$WISH" in
- /*)
- ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
- ;;
- *)
- 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_path_WISH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac
-fi
-WISH="$ac_cv_path_WISH"
-if test -n "$WISH"; then
- echo "$ac_t""$WISH" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
- fi
-fi
-
-USE_X=$USE_TK
-
-
-if test "$USE_X" = true; then
-
- ice_save_LIBS="$LIBS"
- ice_save_CFLAGS="$CFLAGS"
- ice_save_CPPFLAGS="$CPPFLAGS"
- ice_save_LDFLAGS="$LDFLAGS"
-
- # 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:8063: checking for X" >&5
-
-# Check whether --with-x or --without-x was given.
-if test "${with_x+set}" = set; then
- withval="$with_x"
- :
-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.
- have_x=disabled
-else
- if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
- # Both variables are already set.
- have_x=yes
- else
-if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&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 conftestdir
-if mkdir conftestdir; then
- cd conftestdir
- # Make sure to not put "make" in the Imakefile rules, since we grep it out.
- cat > Imakefile <<'EOF'
-acfindx:
- @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
-EOF
- 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`
- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
- for ac_extension in a so sl; do
- if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
- test -f $ac_im_libdir/libX11.$ac_extension; then
- ac_im_usrlibdir=$ac_im_libdir; break
- fi
- done
- # 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
- /usr/include) ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
- esac
- case "$ac_im_usrlibdir" in
- /usr/lib | /lib) ;;
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
- esac
- fi
- cd ..
- rm -fr conftestdir
-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
-
- # First, try using that file with no special directory specified.
-cat > conftest.$ac_ext <<EOF
-#line 8125 "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:8130: \"$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*
- # 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
- ac_x_includes=$ac_dir
- break
- fi
- done
-fi
-rm -f conftest*
-fi # $ac_x_includes = NO
-
-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 8199 "configure"
-#include "confdefs.h"
-
-int main() {
-${x_direct_test_function}()
-; return 0; }
+#include <stdio.h>
+main()
+{
+ FILE *f=fopen("conftestval", "w");
+ if (!f) exit(1);
+ fprintf(f, "%d\n", sizeof(unsigned long));
+ exit(0);
+}
EOF
-if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
-# We can link X programs with no special library path.
-ac_x_libraries=
+if { (eval echo configure:7519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ ac_cv_sizeof_unsigned_long=`cat conftestval`
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 \
- ; \
-do
- for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
- ac_x_libraries=$ac_dir
- break 2
- fi
- done
-done
-fi
-rm -f conftest*
-fi # $ac_x_libraries = NO
-
-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
- # Record where we found X for the cache.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
+ rm -fr conftest*
+ ac_cv_sizeof_unsigned_long=0
fi
+rm -fr conftest*
fi
- fi
- eval "$ac_cv_have_x"
-fi # $with_x != no
-if test "$have_x" != yes; then
- echo "$ac_t""$have_x" 1>&6
- no_x=yes
-else
- # If each of the values was on the command line, it overrides each guess.
- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
- # 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
fi
-
-if test "$no_x" = yes; then
- # Not all programs may use this symbol, but it does not hurt to define it.
- cat >> confdefs.h <<\EOF
-#define X_DISPLAY_MISSING 1
-EOF
-
- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
-else
- if test -n "$x_includes"; then
- X_CFLAGS="$X_CFLAGS -I$x_includes"
- fi
-
- # It would also be nice to do this for all -L options, not just this one.
- if test -n "$x_libraries"; then
- 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
- "SunOS 5"*)
- echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
-echo "configure:8312: 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 8315 "configure"
-#include "confdefs.h"
-
-int main() {
-
-; return 0; }
+echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
+cat >> confdefs.h <<EOF
+#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
EOF
-if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_nospace=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_nospace=no
-fi
-rm -f conftest*
- if test $ac_R_nospace = yes; then
- echo "$ac_t""no" 1>&6
- X_LIBS="$X_LIBS -R$x_libraries"
- else
- LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat > conftest.$ac_ext <<EOF
-#line 8338 "configure"
-#include "confdefs.h"
-int main() {
-; return 0; }
+cat >> confdefs.h <<EOF
+#define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
EOF
-if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_space=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_space=no
-fi
-rm -f conftest*
- if test $ac_R_space = yes; then
- echo "$ac_t""yes" 1>&6
- X_LIBS="$X_LIBS -R $x_libraries"
- else
- echo "$ac_t""neither works" 1>&6
- fi
- fi
- LIBS="$ac_xsave_LIBS"
- esac
- fi
-
- # Check for system-dependent libraries X programs must link with.
- # Do this before checking for the system-independent R6 libraries
- # (-lICE), since we may need -lsocket or whatever for X linking.
-
- if test "$ISC" = yes; then
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
- else
- # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And karl@cs.umb.edu says
- # the Alpha needs dnet_stub (dnet does not exist).
- echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
-echo "configure:8377: checking for dnet_ntoa in -ldnet" >&5
-ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-ldnet $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 8385 "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 dnet_ntoa();
-int main() {
-dnet_ntoa()
-; return 0; }
-EOF
-if { (eval echo configure:8396: \"$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*
-LIBS="$ac_save_LIBS"
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
-else
- echo "$ac_t""no" 1>&6
-fi
- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
- echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
-echo "configure:8418: checking for dnet_ntoa in -ldnet_stub" >&5
-ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+echo $ac_n "checking alignment of short""... $ac_c" 1>&6
+echo "configure:7545: checking alignment of short" >&5
+if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-ldnet_stub $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 8426 "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 dnet_ntoa();
-
-int main() {
-dnet_ntoa()
-; return 0; }
-EOF
-if { (eval echo configure:8437: \"$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*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
-else
- echo "$ac_t""no" 1>&6
-fi
-
- fi
-
- # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
- # to get the SysV transport functions.
- # chad@anasazi.com 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@clark.net.
- echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
-echo "configure:8466: checking for gethostbyname" >&5
-if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
+ if test "$cross_compiling" = yes; then
+ pgac_cv_alignof_short='sizeof(short)'
else
cat > conftest.$ac_ext <<EOF
-#line 8471 "configure"
+#line 7553 "configure"
#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname(); 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 gethostbyname();
-
-int main() {
-
-/* 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();
-#endif
-
-; return 0; }
+#include <stdio.h>
+struct { char filler; short field; } mystruct;
+main()
+{
+ FILE *f=fopen("conftestval", "w");
+ if (!f) exit(1);
+ fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
+ exit(0);
+}
EOF
-if { (eval echo configure:8494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=yes"
+if { (eval echo configure:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ pgac_cv_alignof_short=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=no"
+ rm -fr conftest*
+ pgac_cv_alignof_short='sizeof(short)'
fi
-rm -f conftest*
+rm -fr conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
fi
+echo "$ac_t""$pgac_cv_alignof_short" 1>&6
+cat >> confdefs.h <<EOF
+#define ALIGNOF_SHORT $pgac_cv_alignof_short
+EOF
- if test $ac_cv_func_gethostbyname = no; then
- echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
-echo "configure:8515: checking for gethostbyname in -lnsl" >&5
-ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+echo $ac_n "checking alignment of int""... $ac_c" 1>&6
+echo "configure:7585: checking alignment of int" >&5
+if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lnsl $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 8523 "configure"
+ if test "$cross_compiling" = yes; then
+ pgac_cv_alignof_int='sizeof(int)'
+else
+ cat > conftest.$ac_ext <<EOF
+#line 7593 "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 gethostbyname();
-
-int main() {
-gethostbyname()
-; return 0; }
+#include <stdio.h>
+struct { char filler; int field; } mystruct;
+main()
+{
+ FILE *f=fopen("conftestval", "w");
+ if (!f) exit(1);
+ fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
+ exit(0);
+}
EOF
-if { (eval echo configure:8534: \"$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"
+if { (eval echo configure:7605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ pgac_cv_alignof_int=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ rm -fr conftest*
+ pgac_cv_alignof_int='sizeof(int)'
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
+rm -fr conftest*
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
-else
- echo "$ac_t""no" 1>&6
+
fi
+echo "$ac_t""$pgac_cv_alignof_int" 1>&6
+cat >> confdefs.h <<EOF
+#define ALIGNOF_INT $pgac_cv_alignof_int
+EOF
- fi
- # lieder@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@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:8564: checking for connect" >&5
-if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
+echo $ac_n "checking alignment of long""... $ac_c" 1>&6
+echo "configure:7625: checking alignment of long" >&5
+if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test "$cross_compiling" = yes; then
+ pgac_cv_alignof_long='sizeof(long)'
else
cat > conftest.$ac_ext <<EOF
-#line 8569 "configure"
+#line 7633 "configure"
#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char connect(); 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 connect();
-
-int main() {
-
-/* 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();
-#endif
-
-; return 0; }
+#include <stdio.h>
+struct { char filler; long field; } mystruct;
+main()
+{
+ FILE *f=fopen("conftestval", "w");
+ if (!f) exit(1);
+ fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
+ exit(0);
+}
EOF
-if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_connect=yes"
+if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ pgac_cv_alignof_long=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_connect=no"
+ rm -fr conftest*
+ pgac_cv_alignof_long='sizeof(long)'
fi
-rm -f conftest*
+rm -fr conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
fi
+echo "$ac_t""$pgac_cv_alignof_long" 1>&6
+cat >> confdefs.h <<EOF
+#define ALIGNOF_LONG $pgac_cv_alignof_long
+EOF
- if test $ac_cv_func_connect = no; then
- echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
-echo "configure:8613: checking for connect in -lsocket" >&5
-ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
+ echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
+echo "configure:7666: checking alignment of long long int" >&5
+if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 8621 "configure"
+ if test "$cross_compiling" = yes; then
+ pgac_cv_alignof_long_long_int='sizeof(long long int)'
+else
+ cat > conftest.$ac_ext <<EOF
+#line 7674 "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 connect();
-
-int main() {
-connect()
-; return 0; }
+#include <stdio.h>
+struct { char filler; long long int field; } mystruct;
+main()
+{
+ FILE *f=fopen("conftestval", "w");
+ if (!f) exit(1);
+ fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
+ exit(0);
+}
EOF
-if { (eval echo configure:8632: \"$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"
+if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ pgac_cv_alignof_long_long_int=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ rm -fr conftest*
+ pgac_cv_alignof_long_long_int='sizeof(long long int)'
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
+rm -fr conftest*
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
-else
- echo "$ac_t""no" 1>&6
+
fi
+echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
+cat >> confdefs.h <<EOF
+#define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
+EOF
- fi
- # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
- echo $ac_n "checking for remove""... $ac_c" 1>&6
-echo "configure:8656: checking for remove" >&5
-if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
+fi
+echo $ac_n "checking alignment of double""... $ac_c" 1>&6
+echo "configure:7707: checking alignment of double" >&5
+if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test "$cross_compiling" = yes; then
+ pgac_cv_alignof_double='sizeof(double)'
else
cat > conftest.$ac_ext <<EOF
-#line 8661 "configure"
+#line 7715 "configure"
#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char remove(); 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 remove();
-
-int main() {
-
-/* 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();
-#endif
-
-; return 0; }
+#include <stdio.h>
+struct { char filler; double field; } mystruct;
+main()
+{
+ FILE *f=fopen("conftestval", "w");
+ if (!f) exit(1);
+ fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
+ exit(0);
+}
EOF
-if { (eval echo configure:8684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_remove=yes"
+if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ pgac_cv_alignof_double=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_remove=no"
+ rm -fr conftest*
+ pgac_cv_alignof_double='sizeof(double)'
fi
-rm -f conftest*
+rm -fr conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
+fi
+echo "$ac_t""$pgac_cv_alignof_double" 1>&6
+cat >> confdefs.h <<EOF
+#define ALIGNOF_DOUBLE $pgac_cv_alignof_double
+EOF
+
+
+
+
+if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
+ MAX_ALIGNOF=$pgac_cv_alignof_long
+ if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
+ MAX_ALIGNOF=$pgac_cv_alignof_double
+ fi
+ if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
+ MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
+ fi
else
- echo "$ac_t""no" 1>&6
+ MAX_ALIGNOF="$pgac_cv_alignof_double"
fi
+cat >> confdefs.h <<EOF
+#define MAXIMUM_ALIGNOF $MAX_ALIGNOF
+EOF
- if test $ac_cv_func_remove = no; then
- echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
-echo "configure:8705: checking for remove in -lposix" >&5
-ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
+echo "configure:7765: checking for POSIX signal interface" >&5
+if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lposix $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 8713 "configure"
+ cat > conftest.$ac_ext <<EOF
+#line 7770 "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 remove();
+#include <signal.h>
int main() {
-remove()
+struct sigaction act, oact;
+sigemptyset(&act.sa_mask);
+act.sa_flags = SA_RESTART;
+sigaction(0, &act, &oact);
; return 0; }
EOF
-if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7781: \"$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"
+ pgac_cv_func_posix_signals=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ pgac_cv_func_posix_signals=no
fi
rm -f conftest*
-LIBS="$ac_save_LIBS"
+fi
+
+echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
+if test x"$pgac_cv_func_posix_signals" = xyes ; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_POSIX_SIGNALS
+EOF
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
+HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
+
+
+
+# Check for Tcl configuration script tclConfig.sh
+if test "$with_tcl" = yes; then
+ for ac_prog in tclsh tcl
+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:7811: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ case "$TCLSH" in
+ /*)
+ ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
+ ;;
+ *)
+ 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_path_TCLSH="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
+fi
+TCLSH="$ac_cv_path_TCLSH"
+if test -n "$TCLSH"; then
+ echo "$ac_t""$TCLSH" 1>&6
else
echo "$ac_t""no" 1>&6
fi
+test -n "$TCLSH" && break
+done
+
+echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
+echo "configure:7847: checking for tclConfig.sh" >&5
+# Let user override test
+if test -z "$TCL_CONFIG_SH"; then
+ pgac_test_dirs="$with_tclconfig"
+
+ set X $pgac_test_dirs; shift
+ if test $# -eq 0; then
+ test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
+ set X `echo 'puts $auto_path' | $TCLSH`; shift
fi
- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- echo $ac_n "checking for shmat""... $ac_c" 1>&6
-echo "configure:8748: checking for shmat" >&5
-if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
+ for pgac_dir do
+ if test -r "$pgac_dir/tclConfig.sh"; then
+ TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
+ break
+ fi
+ done
+fi
+
+if test -z "$TCL_CONFIG_SH"; then
+ echo "$ac_t""no" 1>&6
+ { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
else
- cat > conftest.$ac_ext <<EOF
-#line 8753 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shmat(); 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 shmat();
+ echo "$ac_t""$TCL_CONFIG_SH" 1>&6
+fi
-int main() {
-/* 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();
-#endif
-; return 0; }
-EOF
-if { (eval echo configure:8776: \"$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*
+
+# Check for Tk configuration script tkConfig.sh
+if test "$with_tk" = yes; then
+ echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
+echo "configure:7880: checking for tkConfig.sh" >&5
+# Let user override test
+if test -z "$TK_CONFIG_SH"; then
+ pgac_test_dirs="$with_tkconfig $with_tclconfig"
+
+ set X $pgac_test_dirs; shift
+ if test $# -eq 0; then
+ test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
+ set X `echo 'puts $auto_path' | $TCLSH`; shift
+ fi
+
+ for pgac_dir do
+ if test -r "$pgac_dir/tkConfig.sh"; then
+ TK_CONFIG_SH=$pgac_dir/tkConfig.sh
+ break
+ fi
+ done
fi
-if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
+if test -z "$TK_CONFIG_SH"; then
+ echo "$ac_t""no" 1>&6
+ { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
else
- echo "$ac_t""no" 1>&6
+ echo "$ac_t""$TK_CONFIG_SH" 1>&6
fi
- if test $ac_cv_func_shmat = no; then
- echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
-echo "configure:8797: checking for shmat in -lipc" >&5
-ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+
+fi
+
+
+#
+# Check for DocBook and tools
+#
+for ac_prog in onsgmls nsgmls
+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:7919: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lipc $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 8805 "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 shmat();
-
-int main() {
-shmat()
-; return 0; }
-EOF
-if { (eval echo configure:8816: \"$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"
+ if test -n "$NSGMLS"; then
+ ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ 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_NSGMLS="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
+NSGMLS="$ac_cv_prog_NSGMLS"
+if test -n "$NSGMLS"; then
+ echo "$ac_t""$NSGMLS" 1>&6
else
echo "$ac_t""no" 1>&6
fi
- fi
- fi
+test -n "$NSGMLS" && break
+done
- # Check for libraries that X11R6 Xt/Xaw programs need.
- 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@uluru.Stanford.EDU, kb@cs.umb.edu.
- echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
-echo "configure:8849: checking for IceConnectionNumber in -lICE" >&5
-ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+# If you don't have nsgmls you won't get very far, so save the cycles.
+if test -n "$NSGMLS"; then
+ for ac_prog in openjade jade
+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:7955: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lICE $X_EXTRA_LIBS $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 8857 "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 IceConnectionNumber();
-
-int main() {
-IceConnectionNumber()
-; return 0; }
-EOF
-if { (eval echo configure:8868: \"$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"
+ if test -n "$JADE"; then
+ ac_cv_prog_JADE="$JADE" # Let the user override the test.
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ 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_JADE="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+JADE="$ac_cv_prog_JADE"
+if test -n "$JADE"; then
+ echo "$ac_t""$JADE" 1>&6
else
echo "$ac_t""no" 1>&6
fi
- LDFLAGS="$ac_save_LDFLAGS"
+test -n "$JADE" && break
+done
+
+
+echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
+echo "configure:7986: checking for DocBook V3.1" >&5
+if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat >conftest.sgml <<EOF
+<!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
+<book>
+ <title>test</title>
+ <chapter>
+ <title>random</title>
+ <sect1>
+ <title>testsect</title>
+ <para>text</para>
+ </sect1>
+ </chapter>
+</book>
+EOF
+${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
+if test $? -eq 0; then
+ pgac_cv_check_docbook=yes
+else
+ pgac_cv_check_docbook=no
+fi
+rm -f conftest.sgml
fi
+echo "$ac_t""$pgac_cv_check_docbook" 1>&6
- LIBS="$LIBS $X_EXTRA_LIBS"
- CFLAGS="$CFLAGS $X_CFLAGS"
- CPPFLAGS="$CPPFLAGS $X_CFLAGS"
- LDFLAGS="$LDFLAGS $X_LIBS"
+have_docbook=$pgac_cv_check_docbook
-
- X11_LIBS=""
- echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
-echo "configure:8901: checking for XOpenDisplay in -lX11" >&5
-ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+ echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
+echo "configure:8019: checking for DocBook stylesheets" >&5
+if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lX11 ${X_PRE_LIBS} $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 8909 "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 XOpenDisplay();
-
-int main() {
-XOpenDisplay()
-; return 0; }
-EOF
-if { (eval echo configure:8920: \"$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"
+ if test -n "$DOCBOOKSTYLE"; then
+ pgac_cv_path_stylesheets=$DOCBOOKSTYLE
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ for pgac_prefix in /usr /usr/local /opt; do
+ for pgac_infix in share lib; do
+ for pgac_postfix in \
+ sgml/stylesheets/nwalsh-modular \
+ sgml/stylesheets/docbook \
+ sgml/docbook/dsssl/modular
+ do
+ pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
+ if test -r "$pgac_candidate/html/docbook.dsl" \
+ && test -r "$pgac_candidate/print/docbook.dsl"
+ then
+ pgac_cv_path_stylesheets=$pgac_candidate
+ break 3
+ fi
+ done
+ done
+ done
+fi
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+DOCBOOKSTYLE=$pgac_cv_path_stylesheets
+
+if test -n "$DOCBOOKSTYLE"; then
+ echo "$ac_t""$DOCBOOKSTYLE" 1>&6
+else
+ echo "$ac_t""no" 1>&6
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X11_LIBS="-lX11"
+ for ac_prog in sgmlspl
+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:8058: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$SGMLSPL"; then
+ ac_cv_prog_SGMLSPL="$SGMLSPL" # 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_SGMLSPL="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+SGMLSPL="$ac_cv_prog_SGMLSPL"
+if test -n "$SGMLSPL"; then
+ echo "$ac_t""$SGMLSPL" 1>&6
else
echo "$ac_t""no" 1>&6
fi
- if test "$X11_LIBS" = ""; then
- echo "configure: warning: The X11 library '-lX11' could not be found,
-so TK support will be disabled. To enable TK support,
-please use the configure options '--x-includes=DIR'
-and '--x-libraries=DIR' to specify the X location.
-See the file 'config.log' for further diagnostics." 1>&2
- USE_TK=
- fi
-
-
-
+test -n "$SGMLSPL" && break
+done
- LIBS="$ice_save_LIBS"
- CFLAGS="$ice_save_CFLAGS"
- CPPFLAGS="$ice_save_CPPFLAGS"
- LDFLAGS="$ice_save_LDFLAGS"
fi
+<<<<<<< configure.in
-# Wait with these until we're done so no tests fail because of too
-# many warnings.
-if test x"$GCC" = x"yes" ; then
- CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wmissing-declarations"
+# Finally ready to produce output files ...
+=======
+
+# check whether 'test -ef' works
+if (test "$srcdir" -ef "$srcdir") >/dev/null 2>&1 ; then
+ test_ef_works=yes
+else
+ test_ef_works=no
fi
+>>>>>>> 1.104
+
+<<<<<<< configure.in
+if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then
+ echo $ac_n "preparing build tree... $ac_c" 1>&6
+ /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "$abs_top_builddir" \
+ || { echo "configure: error: failed" 1>&2; exit 1; }
+ echo "$ac_t""done" 1>&6
+=======
+abs_top_srcdir=
+if test "$test_ef_works" = yes ; then
+# prepare build tree if outside source tree
+ if test "$srcdir" -ef . ; then : ; else
+ abs_top_srcdir=`cd $srcdir && pwd`
+ echo $ac_n "preparing build tree... $ac_c" 1>&6
+ /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
+ || { echo "configure: error: failed" 1>&2; exit 1; }
+ echo "$ac_t""done" 1>&6
+ fi
+>>>>>>> 1.104
+fi
+
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
-trap 'rm -fr `echo "GNUmakefile
- src/GNUmakefile
- src/Makefile.global
- src/backend/port/Makefile
- src/test/regress/GNUmakefile
+trap 'rm -fr `echo "
+ GNUmakefile
+ src/GNUmakefile
+ src/Makefile.global
+ src/backend/port/Makefile
src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
+s%@ANT@%$ANT%g
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
-s%@infodir@%$infodir%g
+s%@docdir@%$docdir%g
s%@mandir@%$mandir%g
s%@VERSION@%$VERSION%g
s%@host@%$host%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
+s%@PORTNAME@%$PORTNAME%g
s%@TAS@%$TAS%g
-s%@INCLUDES@%$INCLUDES%g
+s%@MULTIBYTE@%$MULTIBYTE%g
+s%@default_port@%$default_port%g
+s%@enable_shared@%$enable_shared%g
+s%@enable_rpath@%$enable_rpath%g
s%@CC@%$CC%g
+s%@EXEEXT@%$EXEEXT%g
s%@CPP@%$CPP%g
s%@GCC@%$GCC%g
+s%@autodepend@%$autodepend%g
+s%@INCLUDES@%$INCLUDES%g
+s%@with_tcl@%$with_tcl%g
+s%@with_tk@%$with_tk%g
s%@with_perl@%$with_perl%g
s%@PYTHON@%$PYTHON%g
s%@python_version@%$python_version%g
s%@python_moduledir@%$python_moduledir%g
s%@python_extmakefile@%$python_extmakefile%g
s%@with_python@%$with_python%g
+s%@with_java@%$with_java%g
s%@with_krb4@%$with_krb4%g
s%@with_krb5@%$with_krb5%g
-s%@KRB_LIBS@%$KRB_LIBS%g
s%@krb_srvtab@%$krb_srvtab%g
s%@with_openssl@%$with_openssl%g
s%@enable_odbc@%$enable_odbc%g
s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
s%@ELF_SYS@%$ELF_SYS%g
-s%@PORTNAME@%$PORTNAME%g
-s%@CPU@%$CPU%g
-s%@SRCDIR@%$SRCDIR%g
-s%@AROPT@%$AROPT%g
-s%@SHARED_LIB@%$SHARED_LIB%g
-s%@DLSUFFIX@%$DLSUFFIX%g
-s%@DL_LIB@%$DL_LIB%g
-s%@USE_TCL@%$USE_TCL%g
-s%@USE_TK@%$USE_TK%g
-s%@WISH@%$WISH%g
-s%@MULTIBYTE@%$MULTIBYTE%g
s%@CXX@%$CXX%g
s%@CXXCPP@%$CXXCPP%g
+s%@GXX@%$GXX%g
s%@with_CXX@%$with_CXX%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
-s%@mkinstalldirs@%$mkinstalldirs%g
s%@AWK@%$AWK%g
-s%@LEX@%$LEX%g
-s%@LEXLIB@%$LEXLIB%g
+s%@FLEX@%$FLEX%g
+s%@FLEXFLAGS@%$FLEXFLAGS%g
s%@LN_S@%$LN_S%g
+s%@LD@%$LD%g
+s%@with_gnu_ld@%$with_gnu_ld%g
+s%@ld_R_works@%$ld_R_works%g
s%@RANLIB@%$RANLIB%g
-s%@tar@%$tar%g
+s%@LORDER@%$LORDER%g
+s%@TAR@%$TAR%g
s%@PERL@%$PERL%g
s%@YACC@%$YACC%g
s%@YFLAGS@%$YFLAGS%g
-s%@LIBOBJS@%$LIBOBJS%g
+s%@WISH@%$WISH%g
s%@SNPRINTF@%$SNPRINTF%g
s%@ISINF@%$ISINF%g
s%@GETRUSAGE@%$GETRUSAGE%g
s%@MISSING_RANDOM@%$MISSING_RANDOM%g
s%@INET_ATON@%$INET_ATON%g
s%@STRERROR@%$STRERROR%g
-s%@STRERROR2@%$STRERROR2%g
s%@STRDUP@%$STRDUP%g
s%@STRTOL@%$STRTOL%g
s%@STRTOUL@%$STRTOUL%g
s%@STRCASECMP@%$STRCASECMP%g
s%@HPUXMATHLIB@%$HPUXMATHLIB%g
-s%@HAVE_RL_COMPLETION_APPEND_CHARACTER@%$HAVE_RL_COMPLETION_APPEND_CHARACTER%g
-s%@HAVE_FILENAME_COMPLETION_FUNCTION@%$HAVE_FILENAME_COMPLETION_FUNCTION%g
-s%@HAVE_FILENAME_COMPLETION_FUNCTION_DECL@%$HAVE_FILENAME_COMPLETION_FUNCTION_DECL%g
s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
s%@TCLSH@%$TCLSH%g
s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
s%@TK_CONFIG_SH@%$TK_CONFIG_SH%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%@X11_LIBS@%$X11_LIBS%g
+s%@NSGMLS@%$NSGMLS%g
+s%@JADE@%$JADE%g
+s%@have_docbook@%$have_docbook%g
+s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
+s%@SGMLSPL@%$SGMLSPL%g
+s%@abs_top_srcdir@%$abs_top_srcdir%g
CEOF
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
- src/GNUmakefile
- src/Makefile.global
- src/backend/port/Makefile
- src/test/regress/GNUmakefile
+ src/GNUmakefile
+ src/Makefile.global
+ src/backend/port/Makefile
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
EOF
cat >> $CONFIG_STATUS <<EOF
-ac_sources="src/backend/port/dynloader/${os}.c src/backend/port/dynloader/${os}.h src/include/port/${os}.h src/makefiles/Makefile.${os} src/backend/port/tas/${tas_file}"
+ac_sources="src/backend/port/dynloader/${template}.c src/backend/port/dynloader/${template}.h src/include/port/${template}.h src/makefiles/Makefile.${template} src/backend/port/tas/${tas_file}"
ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
+# Update timestamp for config.h (see Makefile.global)
+test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
+
exit 0
EOF
chmod +x $CONFIG_STATUS